/* ============================================================
   PBC Swiss — exhibit pages
   Shared CSS for all four single-exhibit-{template} layouts:
   visual, standard, content, interactive.

   Composed of section-scoped blocks. Per-template variations
   are scoped via body.exhibit-template-{visual|standard|content|interactive}.
   ============================================================ */

/* ------------------------------------------------------------
   Hero accent — meta strip uses the category color set inline
   on .exhibit-hero via --accent.
   ------------------------------------------------------------ */
.exhibit-hero .hero-meta-wrap {
    background: var(--accent, #efefef);
}
/* Banner-style overlay: diagonal white highlights layered on top of the picked
   accent color. Opacity is bumped vs the .lb-banner recipe because the meta
   strip is much shorter than the hero banner and the original 6-8% values
   wash out entirely at this height. */
.exhibit-hero--banner-bar .hero-meta-wrap {
    background-color: var(--accent, #efefef);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, .22) 40%, transparent 40%),
        linear-gradient(225deg, rgba(255, 255, 255, .14) 25%, transparent 25%);
}
/* Category accents are pastel — keep ink-on-accent text but slightly
   reduce label muted contrast since the bg is no longer plain gray. */
.exhibit-hero .hero-meta .cell .l { color: rgba(10, 10, 10, .65); }
.exhibit-hero .hero-meta .cell .v { color: var(--ink); }

/* ------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------ */
.exhibit-breadcrumb {
    border-bottom: 1px solid var(--hair);
    padding: 14px 0;
    background: #fff;
}
.exhibit-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.exhibit-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.exhibit-breadcrumb li + li::before {
    content: "/";
    color: var(--hair);
    font-weight: 400;
}
.exhibit-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}
.exhibit-breadcrumb a:hover { color: var(--ink); }
.exhibit-breadcrumb li[aria-current="page"] { color: var(--ink); }

/* ------------------------------------------------------------
   Article wrapper — neutralizes any inherited entry-content margins
   ------------------------------------------------------------ */
article.exhibit-template { background: var(--bg); color: var(--ink); }
article.exhibit-template a { color: inherit; }
article.exhibit-template a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   Intro band — used by all four templates, replaces legacy yellow .exhibit-intro
   ------------------------------------------------------------ */
.exhibit-intro { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-intro .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.exhibit-intro .intro-heading {
    font-size: var(--t-h3);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.exhibit-intro .intro-text {
    font-size: var(--t-deck);
    color: var(--ink-2);
    line-height: 1.6;
    max-width: 56ch;
}
.exhibit-intro .intro-text p { margin-bottom: var(--s-4); }
.exhibit-intro .intro-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
    .exhibit-intro .intro-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ------------------------------------------------------------
   Features — Standard template (3-up mod-grid with accent fill cells)
   ------------------------------------------------------------ */
.exhibit-features { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.exhibit-features .feature-cell {
    padding: var(--s-6);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}
.exhibit-features .feature-cell .n {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.exhibit-features .feature-cell h3 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.exhibit-features .feature-cell p {
    font-size: var(--t-h4);
    color: var(--ink-2);
    line-height: 1.55;
    margin-top: auto;
}
/* Every third cell gets the category accent for visual rhythm. */
.exhibit-features .feature-cell:nth-child(3n+2) {
    background: var(--accent, #f3f0e8);
}
@media (max-width: 1024px) { .exhibit-features .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .exhibit-features .features-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Image+Text sections (Visual + Standard) — Swiss 12-col split
   ------------------------------------------------------------ */
.exhibit-section { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-section .section-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--col-gap);
    align-items: center;
}
.exhibit-section .section-image { grid-column: 1 / span 7; }
.exhibit-section .section-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .12));
}
.exhibit-section .section-text {
    grid-column: 9 / span 4;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}
.exhibit-section.image-right .section-image { grid-column: 6 / span 7; grid-row: 1; }
.exhibit-section.image-right .section-text  { grid-column: 1 / span 4; grid-row: 1; }

.exhibit-section .section-text h2 {
    font-size: var(--t-h3);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.exhibit-section .section-text .section-content {
    font-size: var(--t-body);
    color: var(--ink-2);
    line-height: 1.6;
}
.exhibit-section .section-text .section-content p { margin-bottom: var(--s-4); }
.exhibit-section .section-text .section-content p:last-child { margin-bottom: 0; }
.exhibit-section .section-text .exhibit-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);
    font-size: var(--t-meta);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.exhibit-section .section-text .exhibit-button:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
    .exhibit-section .section-image,
    .exhibit-section .section-text,
    .exhibit-section.image-right .section-image,
    .exhibit-section.image-right .section-text {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* ------------------------------------------------------------
   Video section — full-bleed 16:9 with text band above
   ------------------------------------------------------------ */
.exhibit-section.video-section .video-text {
    max-width: 800px;
    margin-bottom: var(--s-6);
}
.exhibit-section.video-section .video-text h2 {
    font-size: var(--t-h3);
    font-weight: 400;
    letter-spacing: -.02em;
    margin-bottom: var(--s-4);
}
.exhibit-section.video-section .video-text .video-description {
    font-size: var(--t-deck);
    color: var(--ink-2);
    line-height: 1.6;
}
.exhibit-section.video-section .video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--line);
}
.exhibit-section.video-section .video-embed iframe,
.exhibit-section.video-section .video-embed embed,
.exhibit-section.video-section .video-embed object,
.exhibit-section.video-section .video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------
   Gallery — Visual template (mod-grid look but 4-up at desktop)
   ------------------------------------------------------------ */
.exhibit-gallery-section { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-gallery-section .gallery-heading {
    font-size: var(--t-h3);
    font-weight: 300;
    letter-spacing: -.02em;
    margin-bottom: var(--s-7);
}
.exhibit-gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.exhibit-gallery-section .gallery-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
}
.exhibit-gallery-section .gallery-image {
    aspect-ratio: 4 / 3;
    background: #f3f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
}
.exhibit-gallery-section .gallery-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12));
}
.exhibit-gallery-section .gallery-caption {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: var(--t-meta);
    color: var(--ink-2);
    line-height: 1.4;
    background: #fff;
}
@media (max-width: 1024px) { .exhibit-gallery-section .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .exhibit-gallery-section .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------
   Content template — vertical timeline
   (the homepage uses .tl, a horizontal 7-col chronology — this is the
   long-form variant: a vertical stack of year/title/description rows.)
   ------------------------------------------------------------ */
.exhibit-timeline { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-timeline .timeline-stack {
    border-top: 1px solid var(--line);
}
.exhibit-timeline .timeline-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--col-gap);
    padding: var(--s-6) 0;
    border-bottom: 1px solid var(--hair);
    align-items: baseline;
}
.exhibit-timeline .timeline-row:last-child { border-bottom: 1px solid var(--line); }
.exhibit-timeline .timeline-year {
    font-size: 40px;
    font-weight: 200;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
    border-left: 4px solid var(--accent, var(--ink));
    padding-left: var(--s-4);
}
.exhibit-timeline .timeline-body h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-bottom: var(--s-2);
}
.exhibit-timeline .timeline-body p {
    font-size: var(--t-body);
    color: var(--ink-2);
    line-height: 1.55;
    max-width: 60ch;
}
@media (max-width: 700px) {
    .exhibit-timeline .timeline-row { grid-template-columns: 1fr; gap: var(--s-3); }
    .exhibit-timeline .timeline-year { font-size: 30px; }
}

/* ------------------------------------------------------------
   Content template — text sections (long-form prose blocks)
   ------------------------------------------------------------ */
.exhibit-text-sections { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-text-sections .text-block {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--col-gap);
    padding: var(--s-7) 0;
    border-top: 1px solid var(--hair);
}
.exhibit-text-sections .text-block:first-of-type { border-top: 0; padding-top: 0; }
.exhibit-text-sections .text-block .label-col {
    grid-column: 1 / span 3;
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.exhibit-text-sections .text-block .body-col {
    grid-column: 5 / span 7;
}
.exhibit-text-sections .text-block .body-col h3 {
    font-size: var(--t-h3);
    font-weight: 300;
    letter-spacing: -.02em;
    margin-bottom: var(--s-4);
    line-height: 1.1;
}
.exhibit-text-sections .text-block .body-col .body {
    font-size: var(--t-deck);
    line-height: 1.65;
    color: var(--ink-2);
}
.exhibit-text-sections .text-block .body-col .body p { margin-bottom: var(--s-4); }
.exhibit-text-sections .text-block .body-col .body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
    .exhibit-text-sections .text-block { grid-template-columns: 1fr; }
    .exhibit-text-sections .text-block .label-col,
    .exhibit-text-sections .text-block .body-col { grid-column: 1; }
}

/* ------------------------------------------------------------
   Content template — resources grid
   ------------------------------------------------------------ */
.exhibit-resources { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-resources .resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.exhibit-resources .resource-cell {
    padding: var(--s-5) var(--s-5) var(--s-6);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    min-height: 200px;
}
.exhibit-resources .resource-cell:hover { background: #fafafa; }
.exhibit-resources .resource-cell .kind {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 10px;
    background: var(--ink);
    color: #fff;
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.exhibit-resources .resource-cell h4 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.exhibit-resources .resource-cell p {
    font-size: var(--t-meta);
    color: var(--ink-2);
    line-height: 1.5;
    margin-top: auto;
}
.exhibit-resources .resource-cell .arrow {
    margin-top: var(--s-3);
    font-size: var(--t-meta);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
@media (max-width: 1024px) { .exhibit-resources .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .exhibit-resources .resources-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Interactive template — accordion-style tabs (native <details>)
   ------------------------------------------------------------ */
.exhibit-tabs { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-tabs .tabs-stack {
    border-top: 1px solid var(--line);
}
.exhibit-tabs details {
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.exhibit-tabs details[open] { background: #fafafa; }
.exhibit-tabs summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--s-5) 0;
    cursor: pointer;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.01em;
    list-style: none;
    color: var(--ink);
}
.exhibit-tabs summary::-webkit-details-marker { display: none; }
.exhibit-tabs summary .tab-n {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: var(--s-5);
}
.exhibit-tabs summary .tab-toggle {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.exhibit-tabs details[open] summary .tab-toggle::after { content: " \2212"; }
.exhibit-tabs details:not([open]) summary .tab-toggle::after { content: " +"; }
.exhibit-tabs .tab-body {
    padding: 0 0 var(--s-6);
    font-size: var(--t-deck);
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 70ch;
}
.exhibit-tabs .tab-body p { margin-bottom: var(--s-4); }
.exhibit-tabs .tab-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Interactive template — comparison table
   ------------------------------------------------------------ */
.exhibit-comparison { padding: var(--s-9) 0; border-bottom: 1px solid var(--line); }
.exhibit-comparison table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.exhibit-comparison th,
.exhibit-comparison td {
    padding: var(--s-5) var(--s-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--hair);
    font-size: var(--t-body);
    line-height: 1.5;
}
.exhibit-comparison thead th {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.exhibit-comparison tbody th {
    font-weight: 600;
    color: var(--ink);
    width: 28%;
}
.exhibit-comparison .col-a { background: rgba(255, 255, 255, .5); }
.exhibit-comparison .col-b { background: var(--accent, #f3f0e8); }
.exhibit-comparison tbody tr:last-child th,
.exhibit-comparison tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------
   Interactive template — CTA panel
   ------------------------------------------------------------ */
.exhibit-cta {
    padding: var(--s-9) 0;
    border-bottom: 1px solid var(--line);
    background: var(--accent, #f3f0e8);
}
.exhibit-cta .cta-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--col-gap);
    align-items: end;
}
.exhibit-cta .cta-eyebrow {
    grid-column: 1 / span 12;
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: var(--s-4);
}
.exhibit-cta .cta-title {
    grid-column: 1 / span 8;
    font-size: var(--t-cta);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.exhibit-cta .cta-title b { font-weight: 700; }
.exhibit-cta .cta-text {
    grid-column: 1 / span 7;
    margin-top: var(--s-5);
    font-size: var(--t-deck);
    line-height: 1.6;
    color: var(--ink);
    max-width: 60ch;
}
.exhibit-cta .cta-action {
    grid-column: 9 / span 4;
    align-self: end;
    text-align: right;
}
.exhibit-cta .cta-action .btn {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.exhibit-cta .cta-action .btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 900px) {
    .exhibit-cta .cta-title,
    .exhibit-cta .cta-text,
    .exhibit-cta .cta-action {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* ------------------------------------------------------------
   Prev / Next exhibit strip
   ------------------------------------------------------------ */
.exhibit-prevnext {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--s-6) 0;
    background: #fff;
}
.exhibit-prevnext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--col-gap);
}
.exhibit-prevnext .prev,
.exhibit-prevnext .next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.exhibit-prevnext .next { text-align: right; align-items: flex-end; }
.exhibit-prevnext .prev .dir,
.exhibit-prevnext .next .dir {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.exhibit-prevnext .prev .title,
.exhibit-prevnext .next .title {
    font-size: var(--t-h4);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.3;
}
.exhibit-prevnext a:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.exhibit-prevnext .empty { display: block; }

/* ------------------------------------------------------------
   Footer credit strip — reuse on every layout
   ------------------------------------------------------------ */
.exhibit-credit {
    padding: var(--s-7) 0;
    background: #fff;
}
.exhibit-credit .credit-line {
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.exhibit-credit .credit-line span + span::before {
    content: "/ ";
    color: var(--hair);
    margin-right: 18px;
}

/* ------------------------------------------------------------
   Responsive — hero meta strip stacks on small screens
   ------------------------------------------------------------ */
@media (max-width: 720px) {
    .exhibit-hero .hero-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .exhibit-prevnext-grid { grid-template-columns: 1fr; }
    .exhibit-prevnext .next { text-align: left; align-items: flex-start; }
    .exhibit-features .feature-cell:nth-child(3n+2) { background: #fff; }
    .exhibit-features .feature-cell:nth-child(2n) { background: var(--accent, #f3f0e8); }
}
