:root {
  --ink: #20201d;
  --muted: #6d6a62;
  --paper: #f6f2e9;
  --card: #fffdf8;
  --line: #d9d2c4;
  --blue: #1d5067;
  --blue-soft: #dce9ec;
  --rust: #9a432d;
  --rust-soft: #f1ded4;
  --green: #40624e;
  --green-soft: #dfebe2;
  --amber: #8c6819;
  --amber-soft: #f3e9ca;
  --shadow: 0 10px 35px rgba(54, 45, 31, .08);
  --radius: 18px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
a { color: var(--blue); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; padding: .75rem max(1.25rem, calc((100vw - 1280px) / 2)); background: rgba(246, 242, 233, .94); border-bottom: 1px solid rgba(133, 123, 105, .25); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: white; background: var(--blue); border-radius: 50% 50% 45% 45%; font: 700 1.6rem/1 var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.17rem/1.1 var(--serif); }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav a { padding: .55rem .72rem; color: var(--muted); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .45rem .8rem; }

main { min-height: calc(100vh - 160px); }
.page { width: min(1280px, calc(100% - 2.5rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 3rem; align-items: end; margin-bottom: 2rem; }
.hero.single { grid-template-columns: minmax(0, 900px); }
.eyebrow { margin: 0 0 .5rem; color: var(--rust); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.13; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.35rem, 5.5vw, 5.2rem); font-weight: 600; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 1.25rem; }
.lead { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.hero-note { padding: 1.15rem 1.25rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; }
.hero-note strong { display: block; margin-bottom: .3rem; color: var(--ink); }

.exhibition-home { padding-top: 1.5rem; }
.exhibition-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(2rem, 5vw, 5rem); min-height: 590px; padding: clamp(2.25rem, 6vw, 5.5rem); overflow: hidden; color: #fffdf8; background: var(--blue); border-radius: 32px; box-shadow: 0 24px 70px rgba(29, 80, 103, .2); }
.exhibition-hero::before { content: ""; position: absolute; right: -10%; bottom: -43%; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025); }
.exhibition-hero-copy { position: relative; z-index: 1; align-self: center; }
.exhibition-hero .eyebrow { color: #e8cbbd; }
.exhibition-hero h1 { max-width: 760px; font-size: clamp(3.2rem, 7vw, 6.8rem); }
.exhibition-lead { max-width: 720px; margin: 1.5rem 0 0; color: rgba(255,253,248,.82); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.exhibition-hero .button { color: var(--blue); background: #fffdf8; border-color: #fffdf8; }
.exhibition-hero .button:hover { background: #f1ded4; border-color: #f1ded4; }
.exhibition-hero .button.light { color: #fffdf8; background: transparent; border-color: rgba(255,255,255,.5); }
.exhibition-hero .button.light:hover { border-color: #fffdf8; background: rgba(255,255,255,.08); }
.exhibition-map { position: relative; z-index: 1; align-self: end; padding: 1.5rem; background: rgba(10, 42, 55, .48); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; backdrop-filter: blur(8px); }
.map-kicker { margin: 0 0 .9rem; color: #e8cbbd; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-line { display: flex; align-items: center; justify-content: space-between; margin: 0 .2rem 1.4rem; border-top: 1px solid rgba(255,255,255,.35); }
.map-line span { width: 9px; height: 9px; margin-top: -5px; background: #fffdf8; border: 2px solid var(--blue); border-radius: 50%; }
.exhibition-map ol { display: grid; gap: 1.05rem; margin: 0; padding: 0; list-style: none; counter-reset: map-step; }
.exhibition-map li { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: .65rem; counter-increment: map-step; }
.exhibition-map li::before { content: counter(map-step); grid-row: 1 / span 2; display: grid; place-items: center; align-self: start; width: 1.55rem; height: 1.55rem; color: var(--blue); background: #e8cbbd; border-radius: 50%; font-size: .68rem; font-weight: 850; }
.exhibition-map li strong, .exhibition-map li span { display: block; }
.exhibition-map li strong { font-family: var(--serif); font-size: 1rem; }
.exhibition-map li span { color: rgba(255,253,248,.67); font-size: .77rem; }

.exhibition-numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -1px; padding: 1.5rem 2rem; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 24px 24px; }
.exhibition-numbers p { margin: 0; padding: .25rem 1.5rem; border-left: 1px solid var(--line); }
.exhibition-numbers p:first-child { border-left: 0; }
.exhibition-numbers strong, .exhibition-numbers span { display: block; }
.exhibition-numbers strong { color: var(--blue); font: 600 2.25rem/1 var(--serif); }
.exhibition-numbers span { margin-top: .4rem; color: var(--muted); font-size: .76rem; }
.exhibition-heading { align-items: end; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.path-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; min-height: 230px; padding: 1.6rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.path-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.path-card::after { content: ""; align-self: end; justify-self: end; width: 74px; height: 74px; grid-column: 2; background: var(--blue-soft); border-radius: 50%; box-shadow: inset 0 0 0 14px var(--card), inset 0 0 0 16px var(--blue-soft); }
.path-card.designer::after { border-radius: 50% 50% 46% 54%; background: var(--green-soft); box-shadow: inset 0 0 0 14px var(--card), inset 0 0 0 16px var(--green-soft); }
.path-card.decoration::after { border-radius: 35% 65% 55% 45%; background: var(--amber-soft); box-shadow: inset 0 0 0 14px var(--card), inset 0 0 0 16px var(--amber-soft); }
.path-card.mark::after { border-radius: 10px; background: var(--rust-soft); box-shadow: inset 0 0 0 14px var(--card), inset 0 0 0 16px var(--rust-soft); transform: rotate(8deg); }
.path-number { color: var(--rust); font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.path-card h3 { margin-bottom: .6rem; font-size: 1.65rem; }
.path-card p { max-width: 480px; margin: 0; color: var(--muted); font-size: .9rem; }
.path-card strong { display: inline-block; margin-top: 1rem; color: var(--blue); font-size: .82rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 3rem; }
.metric { min-height: 142px; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-value { display: block; margin: .35rem 0; color: var(--blue); font: 600 clamp(2rem, 4vw, 3.25rem)/1 var(--serif); }
.metric-label { color: var(--muted); font-size: .84rem; }
.section { margin-top: 3.5rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.25rem; }
.section-heading p { max-width: 550px; margin: 0; color: var(--muted); font-size: .9rem; }
.panel { padding: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice { padding: 1rem 1.15rem; color: #5f4b18; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 8px; font-size: .88rem; }

.bar-chart { display: grid; grid-template-columns: repeat(14, minmax(42px, 1fr)); gap: .65rem; align-items: end; height: 285px; padding: 1rem 0 .25rem; overflow-x: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: .5rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend-source { background: var(--blue); }
.legend-inferred { background: var(--rust); }
.bar-column { display: grid; grid-template-rows: 1fr auto; gap: .55rem; height: 100%; min-width: 42px; color: inherit; text-align: center; text-decoration: none; }
.bar-area { display: flex; align-items: end; height: 100%; }
.bar-stack { position: relative; display: flex; flex-direction: column; justify-content: end; width: 100%; min-height: 3px; overflow: visible; transition: filter .2s; }
.bar-stack:hover { filter: brightness(1.18); }
.bar-stack strong { position: absolute; top: -1.55rem; left: 50%; transform: translateX(-50%); font-size: .76rem; }
.bar-segment { display: block; width: 100%; min-height: 0; }
.bar-segment.inferred { background: var(--rust); border-radius: 6px 6px 0 0; }
.bar-segment.source { background: var(--blue); }
.bar-segment:first-of-type:last-of-type, .bar-segment.source:first-of-type { border-radius: 6px 6px 2px 2px; }
.bar-label { color: var(--muted); font-size: .7rem; white-space: nowrap; transform: rotate(-48deg); transform-origin: center; }

.filters { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(150px, .7fr)); gap: .8rem; margin: 1.5rem 0; }
.subject-badge { color: var(--blue); background: #e9eff2; border-color: #cad9df; }
.model-filters { grid-template-columns: minmax(260px, 1fr); }
.compact-card { min-height: 0; }
.model-card { min-height: 190px; }
.model-card .profile-stat { min-width: 85px; }
.product-rows div { grid-template-columns: 140px 1fr; }
.inline-notice { display: inline-block; margin-top: .45rem; padding: .45rem .6rem; }
.candidate-groups { display: grid; gap: .75rem; }
.candidate-groups summary { cursor: pointer; }
.candidate-codes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.candidate-codes .badge { text-decoration: none; }
.field { display: grid; gap: .3rem; }
.field span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.field input, .field select { width: 100%; padding: .75rem .85rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.field input:focus, .field select:focus { outline: 3px solid rgba(29, 80, 103, .16); border-color: var(--blue); }
.result-count { color: var(--muted); font-size: .85rem; }

.decoration-discovery { margin: 2rem 0 2.75rem; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 18px 55px rgba(54, 45, 31, .08); }
.discovery-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin: 1rem; padding: .75rem 1rem; background: #fff; border: 1px solid #c9c2b4; border-radius: 16px; transition: border-color .18s, box-shadow .18s; }
.discovery-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 80, 103, .12); }
.discovery-search svg { width: 25px; height: 25px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.discovery-search input { min-width: 0; padding: .45rem 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.discovery-search input::placeholder { color: #918d84; }
.discovery-search small { padding: .32rem .62rem; color: var(--muted); background: var(--paper); border-radius: 999px; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.subject-browser { padding: 1.35rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.filter-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; margin-bottom: 1rem; }
.filter-heading > div { display: flex; gap: .75rem; align-items: start; }
.filter-heading strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.filter-heading p { margin: .18rem 0 0; color: var(--muted); font-size: .78rem; }
.filter-step { display: grid; place-items: center; flex: 0 0 auto; width: 2rem; height: 2rem; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: .68rem; font-weight: 850; }
.subject-pills, .topic-pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.subject-pills button, .topic-pills button { display: inline-flex; gap: .55rem; align-items: center; padding: .62rem .85rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 720; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.subject-pills button:hover, .topic-pills button:hover { transform: translateY(-1px); color: var(--blue); border-color: #9db6c0; background: #f4f8f8; }
.subject-pills button[aria-pressed="true"], .topic-pills button[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.subject-pills small, .topic-pills small { color: inherit; opacity: .62; font-size: .65rem; }
.topic-refinement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 1rem 1.5rem; padding: 1.35rem 1.5rem; background: #edf4f5; border-top: 1px solid #cadcdf; }
.topic-refinement .filter-heading { grid-column: 1 / -1; margin-bottom: 0; }
.topic-refinement .topic-pills { align-content: start; }
.compact-topic-select { display: grid; gap: .35rem; align-self: start; }
.compact-topic-select span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.compact-topic-select select { width: 100%; padding: .62rem .75rem; color: var(--ink); background: white; border: 1px solid #b8cdd2; border-radius: 10px; }
.advanced-filters { border-top: 1px solid var(--line); }
.advanced-filters summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.5rem; list-style: none; }
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary span { display: grid; }
.advanced-filters summary strong { color: var(--ink); font-size: .83rem; }
.advanced-filters summary small { color: var(--muted); font-size: .7rem; }
.advanced-filters summary b { padding: .28rem .55rem; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: .65rem; }
.advanced-filters[open] summary { background: #faf8f2; }
.advanced-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; padding: 1.2rem 1.5rem 1.5rem; background: #faf8f2; border-top: 1px solid var(--line); }
.text-button { padding: .25rem 0; color: var(--blue); background: transparent; border: 0; font-size: .72rem; font-weight: 780; }
.text-button:hover { text-decoration: underline; }
.filter-provenance { margin: 0; padding: .72rem 1.5rem; color: var(--muted); background: #faf8f2; border-top: 1px solid var(--line); font-size: .68rem; }
.result-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin: 0 0 .75rem; padding: 0 .1rem; }
.result-toolbar p { display: flex; gap: .65rem; align-items: baseline; margin: 0; }
.result-toolbar strong { font-family: var(--serif); font-size: 1.35rem; }
.result-toolbar span { color: var(--muted); font-size: .75rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.entity-card { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 1.15rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 15px; text-decoration: none; box-shadow: 0 4px 18px rgba(54, 45, 31, .05); transition: transform .18s, box-shadow .18s; }
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.entity-card .card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.entity-card h3 { margin-bottom: .3rem; }
.card-meta { color: var(--muted); font-size: .82rem; }
.card-footer { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .28rem; padding: .22rem .5rem; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: .7rem; font-weight: 750; }
.badge.rust { color: var(--rust); background: var(--rust-soft); }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.image-state { display: inline-flex; align-items: center; gap: .36rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.image-dot { width: 9px; height: 9px; border: 2px solid var(--muted); border-radius: 50%; }
.image-state.reference .image-dot { border-color: var(--amber); background: var(--amber); }
.image-state.local .image-dot { border-color: var(--green); background: var(--green); }
.image-state.placeholder .image-dot { border-color: var(--rust); background: var(--rust); }
.image-state.missing .image-dot { border-color: var(--muted); background: transparent; }
.card-thumb { width: 100%; height: clamp(210px, 22vw, 280px); object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .85rem; }
.detail-image { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: white; border-radius: 12px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; margin: 1rem 0 1.5rem; }
.pagination-pages { display: inline-flex; align-items: center; gap: .3rem; }
.pagination button { min-width: 2.4rem; min-height: 2.4rem; padding: .45rem .65rem; color: var(--blue); background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-weight: 750; }
.pagination button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.pagination button[aria-current="page"] { color: white; background: var(--blue); border-color: var(--blue); }
.pagination button:disabled { opacity: .38; cursor: default; }
.pagination-gap { min-width: 1.2rem; color: var(--muted); text-align: center; }
.pagination-step { white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem .9rem; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; text-decoration: none; font-weight: 700; }
.button.secondary { color: var(--blue); background: transparent; }
.button:disabled { opacity: .4; cursor: default; }

.method-details { margin-top: .75rem; color: var(--muted); font-size: .82rem; }
.method-details summary { cursor: pointer; color: var(--blue); font-weight: 750; }
.method-details p { max-width: 760px; }
.exhibition-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); gap: 1rem; align-items: stretch; }
.exhibition-split > div { min-width: 0; }
.curator-note { align-self: end; padding: 1.6rem; color: #fffdf8; background: var(--rust); border-radius: 20px; }
.curator-note .eyebrow { color: #f3d8ca; }
.curator-note h3 { font-size: 1.75rem; }
.curator-note p:not(.eyebrow) { color: rgba(255,253,248,.8); font-size: .88rem; }
.curator-note a { color: #fffdf8; font-weight: 750; }
.people-preview { border-top: 1px solid var(--line); }
.people-preview > a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem .25rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.people-preview > a:hover h3 { color: var(--blue); }
.people-preview > a > span { color: var(--rust); font-size: .72rem; font-weight: 850; }
.people-preview h3 { font-size: 1.35rem; }
.people-preview p { margin: .18rem 0 0; color: var(--muted); font-size: .78rem; }
.people-preview > a > strong { color: var(--blue); font-size: .78rem; }
.section-action { margin: 1.25rem 0 0; text-align: center; }
.research-helper { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--blue-soft); border-radius: 24px; }
.research-helper h2 { max-width: 700px; }
.research-helper p:not(.eyebrow) { max-width: 760px; color: var(--muted); }
.research-helper nav { display: grid; gap: .45rem; min-width: 210px; }
.research-helper nav a { padding: .7rem .9rem; color: var(--blue); background: rgba(255,255,255,.48); border-radius: 8px; text-decoration: none; font-size: .82rem; font-weight: 750; }
.research-helper nav a::after { content: " →"; }

.identification-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: guide-step; }
.guide-step { position: relative; min-height: 330px; padding: 4.5rem 1.35rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.guide-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -.82rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; color: white; background: var(--blue); border: 4px solid var(--paper); border-radius: 50%; font-size: .75rem; }
.guide-number { position: absolute; top: 1.15rem; left: 1.25rem; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; color: white; background: var(--blue); border-radius: 50%; font: 700 1.15rem var(--serif); }
.guide-step h2 { font-size: 1.55rem; }
.guide-step p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.guide-step a { position: absolute; right: 1.35rem; bottom: 1.25rem; left: 1.35rem; font-size: .78rem; font-weight: 750; text-decoration: none; }
.guide-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); color: #fffdf8; background: var(--blue); border-radius: 24px; }
.guide-callout h2 { max-width: 760px; }
.guide-callout p:not(.eyebrow) { max-width: 850px; color: rgba(255,253,248,.78); }
.guide-callout .eyebrow { color: #e8cbbd; }
.guide-callout .button { color: white; border-color: rgba(255,255,255,.65); white-space: nowrap; }
.concept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 20px; }
.concept-grid article { min-height: 180px; padding: 1.5rem; background: var(--card); }
.concept-grid h3 { color: var(--blue); font-size: 1.45rem; }
.concept-grid p { max-width: 540px; color: var(--muted); font-size: .9rem; }
.guide-branches { max-width: 980px; }
.guide-branches .fact-list div { grid-template-columns: 190px 1fr; padding: 1rem 0; }
.guide-branches .fact-list dt { color: var(--blue); font-size: .82rem; }
.guide-ending { max-width: 900px; margin: 3rem 0 0; padding: 1.25rem 1.5rem; color: var(--muted); border-left: 3px solid var(--rust); font-size: .88rem; }
.guide-sources { max-width: 900px; }
.guide-sources ul { display: grid; gap: .45rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.guide-sources li { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline; }
.guide-sources li a { color: var(--blue); font-weight: 750; text-decoration: none; }
.guide-sources li span { color: var(--muted); font-size: .7rem; }

.decade-picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: .5rem; margin: 2.5rem 0 1rem; padding-bottom: .5rem; overflow-x: auto; }
.decade-picker a { display: grid; gap: .25rem; min-height: 82px; padding: .8rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.decade-picker a:hover, .decade-picker a[aria-current="page"] { color: #fffdf8; background: var(--blue); border-color: var(--blue); }
.decade-picker strong { font: 600 1.2rem var(--serif); }
.decade-picker span { font-size: .68rem; }
.decade-summary { display: grid; grid-template-columns: repeat(3, 1fr); color: #fffdf8; background: var(--blue); border-radius: 18px; }
.decade-summary div { padding: 1.4rem 1.6rem; border-left: 1px solid rgba(255,255,255,.18); }
.decade-summary div:first-child { border-left: 0; }
.decade-summary strong, .decade-summary span { display: block; }
.decade-summary strong { font: 600 2.35rem/1 var(--serif); }
.decade-summary span { margin-top: .35rem; color: rgba(255,253,248,.7); font-size: .76rem; }
.decade-context { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.decade-context p:not(.eyebrow) { max-width: 720px; color: var(--muted); }
.decade-key { display: flex; flex-wrap: wrap; gap: .8rem; }
.decade-key span { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .72rem; font-weight: 750; }
.decade-key i { width: 10px; height: 10px; border-radius: 50%; }
.key-decoration { background: var(--blue); }
.key-designer { background: var(--green); }
.key-mark { background: var(--rust); }
.decade-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.name-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.name-cloud a { padding: .48rem .68rem; color: var(--green); background: var(--green-soft); border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 750; }
.name-cloud a:hover { color: white; background: var(--green); }
.period-list { border-top: 1px solid var(--line); }
.period-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .1rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; font-size: .8rem; }
.period-list a:hover span { color: var(--rust); }
.period-list strong { color: var(--rust); white-space: nowrap; }

.timeline-shell { overflow-x: auto; padding-bottom: .5rem; }
.timeline { min-width: 820px; }
.timeline-axis { display: grid; grid-template-columns: 220px 1fr; margin-bottom: .35rem; }
.timeline-years { position: relative; display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.timeline-row { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: center; min-height: 53px; border-top: 1px solid #ebe6dc; }
.timeline-title { min-width: 0; overflow: hidden; }
.timeline-title span, .timeline-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-title span { font-size: .84rem; font-weight: 750; }
.timeline-title small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.timeline-track { position: relative; height: 17px; background-image: linear-gradient(to right, transparent calc(100% - 1px), #e1dbcf 1px); background-size: 10% 100%; }
.timeline-range { position: absolute; top: 2px; height: 13px; min-width: 4px; background: var(--blue); border-radius: 999px; }
.timeline-range.mark { background: var(--rust); }

.split { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: start; }
.sticky-panel { position: sticky; top: 96px; }
.select-list { display: grid; max-height: 590px; margin-top: 1rem; overflow-y: auto; border-top: 1px solid var(--line); }
.select-list button { padding: .7rem .2rem; text-align: left; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.select-list button:hover, .select-list button[aria-current="true"] { color: var(--blue); font-weight: 750; }
.profile-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.profile-stat { color: var(--blue); text-align: right; }
.profile-stat strong { display: block; font: 600 2rem/1 var(--serif); }
.mini-bars { display: flex; gap: .3rem; align-items: end; height: 120px; margin: 1.25rem 0; }
.mini-bar-column { display: flex; flex: 1; flex-direction: column; justify-content: end; min-width: 8px; }
.mini-bar { display: block; width: 100%; }
.mini-bar.inferred { background: var(--rust); border-radius: 3px 3px 0 0; }
.mini-bar.source { background: var(--blue); }

.mark-period { display: grid; grid-template-columns: minmax(130px, 210px) 1fr; gap: 1.25rem; align-items: center; padding: 1rem; background: var(--rust-soft); border-radius: 12px; }
.mark-period strong { color: var(--rust); font: 600 1.45rem var(--serif); }
.selected-mark-image { width: 100%; max-height: 210px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 10px; }
.selected-mark-images { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.selected-mark-images figure { min-width: 0; margin: 0; }
.selected-mark-images figcaption { margin-top: .25rem; color: var(--muted); font-size: .68rem; text-align: center; }
.mark-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mark-card { display: grid; grid-template-rows: 150px auto; gap: .75rem; min-width: 0; padding: .8rem; text-align: left; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.mark-card:hover, .mark-card[aria-pressed="true"] { border-color: var(--rust); box-shadow: var(--shadow); transform: translateY(-1px); }
.mark-card img { width: 100%; height: 150px; object-fit: contain; background: white; border-radius: 8px; }
.mark-card-copy { display: grid; gap: .25rem; }
.mark-card-copy strong { font: 600 1.05rem/1.2 var(--serif); }
.mark-card-copy span { color: var(--rust); font-weight: 750; }
.mark-card-copy small { color: var(--muted); }
.mark-image-missing { display: grid; place-items: center; color: var(--muted); background: var(--blue-soft); border-radius: 8px; }
.mark-overview-reference { margin-top: 1rem; }
.mark-overview-reference summary { cursor: pointer; font-weight: 750; }
.mark-overview-reference img { width: 100%; margin-top: 1rem; border-radius: 10px; }
.match-summary { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.match-summary span { padding: .5rem .7rem; background: var(--blue-soft); border-radius: 8px; font-weight: 750; }

.detail-back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: 2rem; }
.decoration-detail-layout { grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: clamp(2rem, 4vw, 4rem); }
.decoration-visual { min-width: 0; }
.visual-panel { position: sticky; top: 96px; padding: .75rem; }
.visual-panel .eyebrow { margin: .35rem .35rem .7rem; }
.image-caption { display: grid; gap: .2rem; margin: .75rem .35rem .25rem; }
.image-caption strong { font-size: .86rem; }
.image-caption span { color: var(--muted); font-size: .66rem; }
.image-source-link { display: inline-block; margin: .35rem; font-size: .72rem; font-weight: 700; }
.detail-image-missing { display: grid; place-items: center; min-height: 320px; color: var(--muted); background: var(--blue-soft); border-radius: 12px; }
.detail-sources { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin: .7rem .25rem 0; color: var(--muted); font-size: .66rem; }
.detail-sources strong { color: var(--ink); }
.detail-sources a { margin-left: auto; }
.evidence-section { margin-top: 1.5rem; padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; }
.evidence-section h2 { color: var(--ink); font-family: var(--sans); font-size: .9rem; font-weight: 800; letter-spacing: .02em; }
.evidence-section .fact-list div { grid-template-columns: 145px 1fr; gap: .7rem; padding: .42rem 0; }
.evidence-section .fact-list dt { font-size: .7rem; }
.evidence-section .notice, .evidence-section .source-box { margin: .6rem 0; padding: .65rem .75rem; font-size: .72rem; }
.evidence-section p { margin: .5rem 0; }
.detail-title { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.fact-list { margin: 0; }
.fact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.fact-list dd { margin: 0; }
.source-box { padding: 1rem; background: var(--blue-soft); border-radius: 12px; font-size: .83rem; }
.source-box a { overflow-wrap: anywhere; }
.empty { padding: 3rem 1rem; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { display: flex; justify-content: center; align-items: center; gap: .7rem; min-height: 65vh; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { width: min(700px, calc(100% - 2rem)); margin: 5rem auto; padding: 1.5rem; color: var(--rust); background: var(--rust-soft); border-radius: var(--radius); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1280px, calc(100% - 2.5rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .76rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; padding: .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
}

@media (max-width: 900px) {
  .identification-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-step:not(:last-child)::after { display: none; }
  .mark-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .split, .detail-layout { grid-template-columns: 1fr; }
  .visual-panel { position: static; }
  .exhibition-hero { grid-template-columns: 1fr; min-height: auto; }
  .exhibition-map { max-width: 520px; }
  .exhibition-split { grid-template-columns: 1fr; }
  .curator-note { max-width: 680px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-panel { position: static; }
  .advanced-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .page { width: min(100% - 1.5rem, 1280px); padding-top: 2rem; }
  .brand small { display: none; }
  .hero { gap: 1.25rem; }
  .exhibition-home { width: 100%; padding-top: 0; }
  .exhibition-hero { gap: 2rem; padding: 2rem 1.25rem; border-radius: 0 0 24px 24px; }
  .exhibition-hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .exhibition-lead { font-size: 1rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .exhibition-map { padding: 1.2rem; }
  .exhibition-numbers { grid-template-columns: repeat(2, 1fr); margin: 0 .75rem; padding: 1rem; border-radius: 0 0 18px 18px; }
  .exhibition-numbers p { padding: .75rem; border-left: 0; border-top: 1px solid var(--line); }
  .exhibition-numbers p:nth-child(-n+2) { border-top: 0; }
  .exhibition-numbers strong { font-size: 1.8rem; }
  .exhibition-home > .section { margin-right: .75rem; margin-left: .75rem; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 210px; padding: 1.25rem; }
  .people-preview > a { grid-template-columns: 32px 1fr; }
  .people-preview > a > strong { grid-column: 2; }
  .research-helper, .decade-context, .decade-columns, .guide-callout, .concept-grid, .identification-flow { grid-template-columns: 1fr; }
  .research-helper nav { min-width: 0; }
  .decade-summary { grid-template-columns: 1fr; }
  .decade-summary div { border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .decade-summary div:first-child { border-top: 0; }
  .metric-grid, .card-grid, .filters, .mark-period, .selected-mark-images { grid-template-columns: 1fr; }
  .decoration-discovery { margin-right: -.25rem; margin-left: -.25rem; border-radius: 20px; }
  .discovery-search { grid-template-columns: auto minmax(0, 1fr); gap: .7rem; margin: .7rem; padding: .65rem .75rem; }
  .discovery-search small { display: none; }
  .subject-browser, .topic-refinement { padding: 1.1rem; }
  .topic-refinement { grid-template-columns: 1fr; }
  .topic-refinement .filter-heading { grid-column: auto; }
  .subject-pills, .topic-pills { flex-wrap: nowrap; margin-right: -1.1rem; padding-right: 1.1rem; overflow-x: auto; scrollbar-width: thin; }
  .subject-pills button, .topic-pills button { flex: 0 0 auto; }
  .advanced-filters summary { padding: .9rem 1.1rem; }
  .advanced-filter-grid { grid-template-columns: 1fr; padding: 1rem 1.1rem 1.2rem; }
  .filter-provenance { padding: .7rem 1.1rem; }
  .result-toolbar { align-items: start; }
  .result-toolbar p { display: grid; gap: 0; }
  .card-thumb { height: min(78vw, 340px); }
  .detail-image-missing { min-height: 240px; }
  .evidence-section .fact-list div { grid-template-columns: 1fr; gap: .15rem; }
  .guide-step { min-height: 0; padding-bottom: 3.6rem; }
  .guide-branches .fact-list div { grid-template-columns: 1fr; gap: .25rem; }
  .metric { min-height: 115px; }
  .section-heading, .site-footer { align-items: start; flex-direction: column; }
  .bar-chart { height: 245px; }
  .pagination { gap: .3rem; }
  .pagination-step { font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
