:root {
    --bg: #FCF9F2;
    --bg-alt: #F5F0E4;
    --bg-deep: #EDE3CD;
    --green-deep: #88691F;
    --green-deep-dark: #6B5119;
    --green-mid: #947126;
    --green-line: #E0D5BC;
    --ink: #302B23;
    --ink-soft: #605748;
    --paper: #FFFFFC;
    --focus: #947126;
    --accent: #F2C653;
    --accent-dark: #E8B83F;
    --dark-yellow: #503B16;
    --dark-yellow-2: #3D2D11;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    color: var(--green-deep);
    line-height: 1.18;
    margin: 0 0 0.5em 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    font-weight: 500;
}

h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em 0;
    color: var(--ink-soft);
    max-width: 62ch;
}

a {
    color: var(--green-deep);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

ul {
    margin: 0 0 1em 0;
    padding-left: 0;
    list-style: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

/*---------- Header (shared) ----------*/
header.site {
    padding: 22px 0;
    position: sticky;
    top: 0;
    background: rgba(252,249,242,0.94);
    backdrop-filter: blur(6px);
    z-index: 50;
    border-bottom: 1px solid var(--green-line);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    color: var(--green-deep);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.96rem;
}

nav.main-nav a:hover {
    color: var(--green-deep);
}

nav.main-nav a[aria-current="page"] {
    color: var(--green-deep);
    font-weight: 600;
}

.nav-cta {
    background: var(--accent);
    color: var(--ink) !important;
    padding: 9px 18px;
    border-radius: 12px;
    transition: background .15s ease;
}

.nav-cta:hover {
    background: var(--accent-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-deep);
    position: relative;
    transition: transform .2s ease;
}

.nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--ink);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: background .15s ease;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn.ghost {
    background: transparent;
    color: var(--green-deep);
    border: 1px solid var(--green-mid);
}

.btn.ghost:hover {
    background: #FFF3CF;
}

hr.rule {
    border: none;
    border-top: 1px solid var(--green-line);
    margin: 0;
}

section {
    padding: 60px 0;
}

section.alt {
    background: #FFF3CF;
}

/*---------- Draft notice ----------*/
.draft-notice {
    background: var(--dark-yellow);
    color: #FCF9F2;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/*---------- Intro ----------*/
.konf-intro {
    padding: 56px 0 40px;
    background: #FFF3CF;
}

.konf-intro .eyebrow {
    color: var(--green-mid);
    font-style: italic;
    font-family: "Fraunces", serif;
    margin-bottom: 10px;
}

.konf-intro p.lead {
    font-size: 1.08rem;
    max-width: 66ch;
}

/*---------- Edition cards ----------*/
.editions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edition-card {
    background: var(--paper);
    border: 1px solid var(--green-line);
    border-radius: 6px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
    gap: 30px;
}

.edition-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edition-year {
    font-family: "Fraunces", serif;
    font-size: 2.1rem;
    font-weight: 400;
    line-height: normal;
    color: var(--green-deep);
    margin: 0;
}

.edition-badge {
    display: inline-block;
    background: #FFF3CF;
    color: var(--green-deep-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    width: fit-content;
}

.edition-photo {
    margin: 0;
    border: 1px solid var(--green-line);
    border-radius: 6px;
    background: var(--bg-alt);
    overflow: hidden;
}

.edition-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.edition-date {
    font-family: "Karla", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: normal;
    color: var(--ink-soft);
    margin: -8px 0 0;
}

.edition-main h3 {
    margin-bottom: 10px;
}

.edition-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 14px;
}

.edition-tag {
    background: var(--bg-alt);
    border: 1px solid var(--green-line);
    color: var(--green-deep-dark);
    font-size: 0.78rem;
    padding: 4px 11px;
    border-radius: 999px;
}

.edition-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.edition-main {
    min-width: 0;
}

.edition-links a {
    overflow-wrap: anywhere;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
}

.placeholder-text {
    color: #947126;
    font-style: italic;
}

.experts-details {
    margin-top: 14px;
}

.experts-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--green-deep);
    font-size: 0.95rem;
    list-style: none;
}

.experts-details summary::-webkit-details-marker {
    display: none;
}

.experts-details summary::before {
    content: "+ ";
}

.experts-details[open] summary::before {
    content: "– ";
}

.experts-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.experts-list li {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.experts-list li strong {
    color: var(--ink);
}





/*---------- CTA band ----------*/
.contact-band {
    background: var(--dark-yellow);
    color: #F8F1E0;
}

.contact-band h2 {
    color: #FCF9F2;
}

.contact-band p {
    color: #E6D7B8;
}

.contact-band a {
    color: #FCF9F2;
}

.contact-band .btn {
    background: var(--accent);
    color: var(--ink);
}

.contact-band .btn:hover {
    background: #fff;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

footer.site {
    padding: 40px 0;
    border-top: 1px solid var(--green-line);
}

footer.site .wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

footer.site p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

footer.site .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

footer.site .footer-bottom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--green-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

footer.site .footer-bottom a {
    color: var(--ink-soft);
    text-decoration: underline;
}

footer.site .footer-bottom a:hover {
    color: var(--green-deep);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--green-deep);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}





/*Relacja z III Konferencji: zdjęcia i grafiki bez kadrowania.*/
.conference-report {
    display: block;
}

.conference-overview {
    display: grid;
    grid-template-columns: minmax(0,30%) minmax(0,1fr);
    gap: 30px;
    align-items: start;
}

.conference-overview .edition-photo {
    border: 0;
    background: transparent;
}

.conference-overview .edition-photo img {
    max-height: 540px;
    object-fit: contain;
}

.conference-report p {
    max-width: none;
}

.conference-chapter {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--green-line);
}

.conference-report h4 {
    font-family: "Karla",sans-serif;
    color: var(--green-deep-dark);
    font-size: 1.05rem;
    margin: 26px 0 12px;
}

.conference-gallery,.conference-speakers {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.conference-gallery-single {
    grid-template-columns: minmax(0,1fr);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.conference-photo {
    margin: 0;
    min-width: 0;
}

.conference-photo a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-alt);
}

.conference-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.conference-photo figcaption {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 10px 2px 0;
}

#iii-konferencja-2026 {
    scroll-margin-top: 100px;
}





/*Układ plakatów i opisów (dawniej konferencje-dodatki.css)*/
/*Posters follow the height of the adjacent description without cropping.*/




/*Przeniesiona relacja z konferencji ogólnopolskiej*/
.special-conference .event-highlight {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
    gap: 28px;
    align-items: center;
}

.special-conference .event-highlight-photo {
    margin: 0;
}

.special-conference .event-highlight-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.special-conference .event-highlight h3 {
    margin: 10px 0 14px;
    font-size: clamp(1.3rem,2.5vw,2rem);
}

.special-conference .event-highlight-label {
    font-weight: 700;
}



/*Kadrowanie od dołu: pary zdjęć o równej wysokości na desktopie.*/


/*Konferencja ogólnopolska: pełna szerokość i dwie kolumny na desktopie.*/




/*Mobile: contained cards, left-aligned copy and centered media.*/




/* Spójny układ metadanych konferencji. */
.conference-overview .edition-side,
.special-conference .event-highlight-meta {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.special-conference .event-highlight-meta {
    margin-bottom: 16px;
}

/* ---------- Responsywność ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
            scroll-behavior: auto;
        }
}

@media (min-width: 801px) {
    .poster-card {
            grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
            align-items: stretch;
        }
        .poster-card .edition-photo {
            position: relative;
            flex: 1;
            min-height: 160px;
            border: 0;
            background: transparent;
        }
        .poster-card .edition-photo img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: left bottom;
        }
        .flow-card {
            display: grid;
            grid-template-columns: minmax(0,38%) minmax(0,1fr);
            column-gap: 26px;
            row-gap: 18px;
            align-items: start;
        }
        .flow-card .edition-side {
            float: none;
            width: auto;
            margin: 0;
        }
        .flow-card .edition-main {
            display: block;
        }
        .flow-card .edition-main p {
            max-width: none;
        }
        .flow-card .edition-footer {
            grid-column: 1 / -1;
        }

    .conference-gallery-adhd {
            align-items: start;
        }
        .conference-gallery-adhd .conference-photo:nth-child(-n
        /**/
        +4) .gallery-trigger {
            display: block;
            width: 100%;
            height: clamp(200px, 25vw, 330px);
            overflow: hidden;
            border-radius: 6px;
            padding: 0;
            border: 0;
        }
        .conference-gallery-adhd .conference-photo:nth-child(-n
        /**/
        +4) img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        /*Prowadząca: na szerokim ekranie zachowaj górę zdjęcia i ukryj wyłącznie dół.*/
        .conference-gallery-adhd .conference-photo:nth-child(2) .gallery-trigger img {
            width: 100%;
            height: auto;
            max-width: none;
            object-fit: unset;
            object-position: initial;
        }
        .conference-gallery-adhd .conference-photo:nth-child(3) img {
            object-position: center bottom;
        }

    .edition-card.special-conference .event-highlight {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
            gap: 28px;
            align-items: center;
        }
        .edition-card.special-conference .event-highlight > * {
            min-width: 0;
        }
        .editions > .edition-card.special-conference {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        .editions > .edition-card.special-conference .event-highlight {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
            gap: 32px;
            width: 100%;
            align-items: center;
        }
        .editions > .edition-card.special-conference .event-highlight-photo {
            margin: 0;
            width: 100%;
            aspect-ratio: 4 / 3;
            overflow: hidden;
        }
        .editions > .edition-card.special-conference .event-highlight-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .editions > .edition-card.special-conference .event-highlight > div {
            min-width: 0;
        }
}

@media (max-width: 1050px) {
    nav.main-nav {
            position: fixed;
            inset: 66px 0 0 0;
            background: var(--bg);
            flex-direction: column;
            align-items: flex-start;
            padding: 28px;
            gap: 22px;
            display: none;
            transition: transform .22s ease;
        }
        nav.main-nav.open {
            display: flex;
        }
        .nav-toggle {
            display: block;
        }
        .nav-cta {
            margin-top: 6px;
        }
        .cta-band-inner {
            align-items: flex-start;
        }
}

@media (max-width: 800px) {
    .edition-card {
            grid-template-columns: 1fr;
            padding: 22px;
        }

    .conference-overview {
            grid-template-columns: 1fr;
            gap: 24px;
        }
        .conference-overview .edition-photo img {
            max-height: 380px;
        }
        .conference-chapter {
            margin-top: 26px;
            padding-top: 24px;
        }

    .poster-card .edition-photo {
            border: 0;
            background: transparent;
        }
        .poster-card .edition-photo img {
            width: auto;
            max-width: 100%;
            max-height: 340px;
            margin: 0 auto;
        }

    .editions > .edition-card.special-conference {
            display: block;
        }
        .editions > .edition-card.special-conference .event-highlight {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
        }

    .wrap, .editions, .edition-card, .conference-report,
      .conference-chapter, .conference-overview, .conference-gallery,
      .conference-speakers, .conference-photo, .edition-side, .edition-main,
      .edition-footer, .event-highlight, .event-highlight > *, .flow-card {
            min-width: 0;
            max-width: 100%;
        }
        .edition-card, .flow-card, .poster-card,
      .conference-overview, .special-conference .event-highlight {
            grid-template-columns: minmax(0, 1fr);
        }
        .edition-card, .conference-report {
            width: 100%;
            margin-inline: auto;
        }
        .edition-card p, .edition-card h3, .edition-card h4,
      .conference-report p, .conference-report h3, .conference-report h4,
      .conference-photo figcaption, .edition-links, .edition-tags,
      .konf-intro p {
            text-align: left;
            overflow-wrap: anywhere;
        }
        .edition-photo, .event-highlight-photo, .conference-photo,
      .conference-photo a, .conference-photo button.gallery-trigger {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            margin-left: auto;
            margin-right: auto;
        }
        .edition-photo img, .event-highlight-photo img,
      .conference-photo img, .conference-photo button.gallery-trigger img,
      .conference-overview img, .poster-card .edition-photo img {
            display: block;
            max-width: 100%;
            width: auto;
            height: auto;
            margin-left: auto;
            margin-right: auto;
        }
        .conference-photo button.gallery-trigger {
            padding: 0;
            border: 0;
            background: transparent;
            overflow: hidden;
        }
        .conference-gallery, .conference-speakers {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
}

@media (max-width: 720px) {
    .special-conference .event-highlight {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 640px) {
    .experts-list {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 560px) {
    .conference-gallery,.conference-speakers {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .conference-report {
            padding: 20px;
        }
        .conference-report .edition-links {
            gap: 12px;
        }
        .wrap {
            padding-left: 18px;
            padding-right: 18px;
        }

    .conference-gallery, .conference-speakers {
            grid-template-columns: minmax(0, 1fr);
        }
}
