/* =============================================================
   staff.css — style profili nauczycieli akademickich
   -------------------------------------------------------------
   Rozszerza system zmiennych z mep_page.css. Kolory pochodzą
   z mysite.css (zmienne --brand-*), z fallbackami na wypadek
   ich braku. Aby zmienić paletę — ustaw --brand-* w mysite.css.
   ============================================================= */

:root {
    --staff-primary: var(--brand-primary, #054DA1);
    --staff-primary-dark: var(--brand-primary-dark, #0A3263);
    --staff-accent: var(--brand-accent, #ffcc00);
    --staff-text: var(--brand-text, #1a1a1a);
    --staff-muted: var(--brand-muted, #5a6472);
    --staff-bg: var(--brand-bg, #F8F9FA);
    --staff-surface: var(--brand-surface, #f4f6fb);
    --staff-border: var(--brand-border, #e0e4ec);
    --staff-radius: 10px;
}

/* ======================= PROFIL ======================= */
.staff {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--staff-text);
    line-height: 1.6;
}

.staff__header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 4px solid var(--staff-primary);
    background-color: var(--staff-bg);
}

.staff__photo {
/*    flex: 0 0 auto; */
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: var(--staff-radius);
    border: 3px solid var(--staff-primary);
    align-self: center;
}




.staff__intro {
    flex: 1 1 320px;
    min-width: 0;
}

.staff__name {
    margin: 0 0 .35rem;
    font-size: 2rem;
    color: var(--staff-primary);
}

.staff__position {
    margin: 0 0 .5rem;
    color: var(--staff-muted);
    font-weight: 600;
}

.staff__email {
    margin: 0 0 1rem;
}

.staff__email a {
    color: var(--staff-primary);
}


/* Linki kontaktowe / social */
.staff__contacts {
    font-size: 2.5rem;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 4rem;
    padding: 0;
    position: relative;
/*
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: center;
     */
}

.staff__contact {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: var(--staff-surface);
    border: 1px solid var(--staff-border);
    color: var(--staff-primary);
/*    font-size: .85rem; */
    font-size: 1.5rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.staff__contact:hover,
.staff__contact:focus {
    background: var(--staff-primary);
    color: #fff;
}

/* ============== SEKCJE STREAMFIELD ============== */
.staff__body {
    margin-top: 1.5rem;
}

.staff-section {
    margin-top: 2rem;
}

.staff-section__title {
    font-size: 1.35rem;
    color: var(--staff-primary);
    border-left: 4px solid var(--staff-accent);
    padding-left: .6rem;
    margin: 0 0 1rem;
}

/* Zachowanie formatowania treści RichText */
.rich-text h2 { font-size: 1.3rem; color: var(--staff-primary); margin: 1.5rem 0 .75rem; }
.rich-text h3 { font-size: 1.15rem; color: var(--staff-primary-dark); margin: 1.25rem 0 .5rem; }
.rich-text h4 { font-size: 1.02rem; margin: 1rem 0 .5rem; }
.rich-text p { margin: 0 0 1rem; }
.rich-text ul,
.rich-text ol { margin: 0 0 1rem 1.4rem; }
.rich-text li { margin-bottom: .35rem; }
.rich-text a { color: var(--staff-primary); text-decoration: underline; }
.rich-text a:hover { color: var(--staff-primary-dark); }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--staff-radius); }
.rich-text blockquote {
    margin: 1rem 0;
    padding: .5rem 0 .5rem 1rem;
    border-left: 4px solid var(--staff-accent);
    color: var(--staff-muted);
    font-style: italic;
}
.rich-text hr {
    border: none;
    border-top: 1px solid var(--staff-border);
    margin: 1.5rem 0;
}

/* Lista odnośników */
.staff-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.staff-link {
    color: var(--staff-primary);
    text-decoration: none;
    font-weight: 500;
}

.staff-link:hover { text-decoration: underline; }

/* Pliki do pobrania */
.staff-downloads {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.staff-download {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    background: var(--staff-surface);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-radius);
    text-decoration: none;
    color: var(--staff-text);
}

.staff-download:hover { border-color: var(--staff-primary); }

.staff-download__ext {
    flex: 0 0 auto;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--staff-primary);
    padding: .2rem .45rem;
    border-radius: 5px;
}

.staff-download__size { color: var(--staff-muted); font-size: .85rem; }

/* Obraz i cytat */
.staff-figure { margin: 1.5rem 0; }
.staff-figure__img { max-width: 100%; height: auto; border-radius: var(--staff-radius); }
.staff-figure__caption { margin-top: .5rem; font-size: .85rem; color: var(--staff-muted); }

.staff-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--staff-surface);
    border-left: 4px solid var(--staff-accent);
    border-radius: 0 var(--staff-radius) var(--staff-radius) 0;
}
.staff-quote__text { margin: 0 0 .5rem; font-style: italic; }
.staff-quote__cite { color: var(--staff-muted); font-size: .9rem; }

/* ============== STRONA ZBIORCZA (LISTA) ============== */
.staff-index {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--staff-text);
}

.staff-index__title {
    color: var(--staff-primary);
    border-bottom: 4px solid var(--staff-primary);
    padding-bottom: .5rem;
}

.staff-index__group { margin-top: 2rem; }

.staff-index__group-title {
    font-size: 1.25rem;
    color: var(--staff-primary);
    border-left: 4px solid var(--staff-accent);
    padding-left: .6rem;
}

.staff-index__list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.staff-card__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem;
    background: var(--staff-surface);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-radius);
    text-decoration: none;
    color: var(--staff-text);
    transition: border-color .15s ease, transform .15s ease;
    height: 100%;
}

.staff-card__link:hover {
    border-color: var(--staff-primary);
    transform: translateY(-2px);
}

.staff-card__photo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--staff-primary);
}

.staff-card__photo--placeholder { background: var(--staff-border); }

.staff-card__text { display: flex; flex-direction: column; }
.staff-card__name { font-weight: 600; color: var(--staff-primary); }
.staff-card__position { font-size: .85rem; color: var(--staff-muted); }

/* ============== RESPONSYWNOŚĆ ============== */
@media (max-width: 600px) {
    .staff__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .staff__contacts { justify-content: center; }
    .staff__name { font-size: 1.6rem; }
}

/*
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 1px;
    align-content: center;
}

.separator:after {
    border-color: #d1d3d4;
    border-top-style: solid;
    border-width: 1px;
    content: "";
    width: 100%;
    z-index: 0;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
}

.separator-dotted:after {
    border-top-style: dotted;
}

.border-secondary {
    border-color: #505154 !important;
}

.separator.border-secondary:after {
    border-color: #505154 !important;
}

*/

.w-block-embed .block-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.w-block-embed .block-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.w-block-embed .block-embed img,
.w-block-embed .block-embed iframe,
.w-block-embed .block-embed video,
.w-block-embed .block-embed svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

