@font-face {
  font-family: Poppins;
  src: url("assets/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #232323;
  --navy: #172d49;
  --muted: #585858;
  --gold: #8a4e21;
  --line: #dedce1;
  --paper: #fff;
  --lavender: #f5effb;
  --ice: #eff4f8;
  --canvas: #f9f8f5;
  --radius: 12px;
  --shadow: 0 3px 14px rgb(23 45 73 / .05);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 400 1rem/1.65 Poppins, Arial, sans-serif;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.14; text-wrap: balance; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
a:focus-visible, summary:focus-visible { outline: 3px solid #315b97; outline-offset: 4px; }
[tabindex="-1"]:focus-visible { outline-offset: -4px; }
section[id] { scroll-margin-top: 1.25rem; }

.wrap { width: min(100% - 2rem, 1200px); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  color: white;
  background: var(--navy);
}

.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
}

.brand { grid-column: 2; display: inline-flex; align-items: center; gap: .45rem; width: max-content; }
.brand img { width: 44px; }
.brand-wordmark { display: grid; gap: .2rem; white-space: nowrap; }
.brand-name { color: var(--navy); font: 700 clamp(1.45rem, 3vw, 1.8rem)/.98 Georgia, serif; letter-spacing: .025em; }
.brand-descriptor { color: #405773; font-size: .54rem; font-weight: 700; line-height: 1.15; letter-spacing: .2em; }
.masthead-label, .masthead-link { display: none; }
.site-nav { border-top: 1px solid var(--line); }

.site-nav > ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(.25rem, 1.6vw, 2rem);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 .4rem;
  border-bottom: 2px solid transparent;
  font-size: .72rem;
}

.site-nav a:hover { border-color: var(--gold); color: var(--gold); }

.language-menu { position: relative; }
.language-menu summary {
  min-height: 46px;
  padding: 0 .45rem;
  line-height: 46px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.language-menu .language-options {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto auto;
  min-width: 9rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  list-style: none;
}

.language-options a, .language-options [aria-current] {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .65rem;
  border: 0;
  border-radius: 4px;
  font-size: .85rem;
  white-space: nowrap;
}

.language-options a:hover, .language-options [aria-current] { background: var(--ice); }
.language-options [aria-current] { color: var(--navy); font-weight: 700; }

.intro {
  display: grid;
  align-items: end;
  gap: .75rem 2rem;
  padding-block: clamp(2rem, 4.4vw, 4.25rem) clamp(1.4rem, 3.2vw, 2.5rem);
}

.eyebrow {
  color: var(--navy);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.6;
}

.accent-mark {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  margin-right: .38rem;
  background: var(--gold);
  transform: rotate(45deg);
}

h1 { margin-top: .45rem; font-size: clamp(2.1rem, 5.3vw, 4.35rem); letter-spacing: -.048em; }
.intro > p { max-width: 37ch; color: var(--muted); font-size: clamp(.9rem, 1.3vw, 1rem); }

.feature-grid, .feature-side { display: grid; gap: 1rem; }

.feature-lead, .side-story-link, .story-card a, .category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lead-image { display: block; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.lead-image {
  background: radial-gradient(ellipse at 50% 70%, #fff9e8, #f3e9fb 68%, #eaf0fa);
}

.lead-image img {
  aspect-ratio: 2.25;
  padding: 1rem;
  object-fit: contain;
}
.lead-copy { padding: clamp(1rem, 2.7vw, 1.9rem); }
.feature-lead h2 { margin-top: .22rem; font-size: clamp(1.65rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.lead-description { max-width: 60ch; margin-top: .45rem; color: var(--muted); font-size: .9rem; }

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 46px;
  margin-top: 1rem;
  padding: .55rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-size: .85rem;
  font-weight: 700;
}

.primary-link:hover { background: #315b97; border-color: #315b97; }

.side-story-link {
  display: grid;
  grid-template-columns: minmax(80px, 32%) minmax(0, 1fr);
  height: 100%;
}

.side-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 118px;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}

.side-copy { position: relative; align-self: center; padding: .8rem 2.2rem .8rem .8rem; }
.side-copy .eyebrow { letter-spacing: .08em; }
.side-arrow { position: absolute; top: .65rem; right: .8rem; color: var(--gold); }
.side-story-link:hover h2 { text-decoration: underline; text-underline-offset: .18em; }

.side-cards { background: var(--ice); }
.side-figures { background: var(--lavender); }
.side-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.side-story h2 { margin-top: .25rem; font-size: clamp(1.07rem, 1.65vw, 1.4rem); letter-spacing: -.02em; }

.site-footer { background: var(--navy); color: white; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.8rem; }
.site-footer .eyebrow { color: #e0c8fc; }
.footer-brand { margin-top: .2rem; font-weight: 700; }
.site-footer a { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .78rem; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .wrap { width: min(100% - 5rem, 1200px); }
  .masthead { min-height: 100px; }
  .brand { gap: .55rem; }
  .brand img { width: 52px; }
  .masthead-label { display: block; color: var(--muted); font-size: .69rem; letter-spacing: .15em; }
  .masthead-link { display: flex; justify-self: end; align-items: center; gap: .5rem; min-height: 44px; font-size: .78rem; }
  .masthead-link:hover { text-decoration: underline; }
  .site-nav > ul { gap: 0 clamp(.75rem, 3vw, 2rem); }
  .site-nav a { font-size: .84rem; }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 31%); }
  .intro > p { padding-bottom: .3rem; }
  .feature-grid { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: clamp(1.3rem, 3.5vw, 3.25rem); }
  .feature-side { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .side-story-link { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side-image { height: clamp(110px, 12vw, 170px); min-height: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .side-copy { align-self: start; min-height: 98px; padding: .85rem 2.2rem 1rem 1rem; }
}

.collection-guide, .stories { margin-block: clamp(2.7rem, 6vw, 5.5rem); }

.stories-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .6rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--navy);
}

.stories-heading h2 { margin-top: .3rem; font-size: clamp(1.85rem, 4.1vw, 3rem); letter-spacing: -.045em; }
.stories-heading > p { max-width: 38ch; color: var(--muted); font-size: .88rem; }

.stories-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.story-card a {
  display: grid;
  height: 100%;
}

.story-card img {
  aspect-ratio: 2 / 1;
  padding: .6rem;
  object-fit: contain;
  background: var(--ice);
  border-radius: var(--radius) var(--radius) 0 0;
}

.story-card:first-child img { background: var(--lavender); }
.story-card:last-child img { background: #f6f1eb; }

.story-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.story-card h3, .story-card h4 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.story-card-copy > p:not(.eyebrow) { color: var(--muted); font-size: .84rem; }
.story-read { margin-top: auto; padding-top: .2rem; color: var(--navy); font-size: .78rem; font-weight: 700; }
.story-card a:hover .story-read { text-decoration: underline; text-underline-offset: .2em; }

.category-grid {
  --columns: 1;
  --gap: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin-top: var(--gap);
}

@media (min-width: 600px) {
  .category-grid { --columns: 2; }
}

@media (min-width: 1080px) {
  .category-grid { --columns: 4; }
}

.category-card {
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 0 0 calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns));
  min-width: 0;
  scroll-margin-top: 1.25rem;
}

.category-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 1.85;
  background: var(--ice);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.category-image img { height: 100%; padding: .65rem; object-fit: contain; }
.category-image-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-image-pair img { padding-inline: .25rem; }
.category-card:first-child .category-image { background: #f6f1eb; }
.category-card:last-child .category-image { background: var(--lavender); }
.category-card:not(#cards) img { mix-blend-mode: multiply; }
.category-card h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.category-card .category-image-note { font-style: italic; }

.category-story-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  margin-top: auto;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.category-story-link:hover { color: #315b97; }
.category-related { display: flex; flex-wrap: wrap; column-gap: 1.2rem; margin-top: .7rem; }
.site-nav a.nav-current { border-color: var(--navy); font-weight: 700; }

.story-page { max-width: 1000px; padding-block: 1.25rem 3.5rem; }

.story-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--navy);
  font-size: .84rem;
  font-weight: 700;
}

.story-back:hover, .story-related a:hover { text-decoration: underline; text-underline-offset: .18em; }

.story-header {
  display: grid;
  align-items: center;
  gap: 1.25rem;
  margin-block: 1rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.story-header h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.story-deck { max-width: 45ch; margin-top: .7rem; color: var(--muted); }
.story-header img { aspect-ratio: 16 / 9; padding: .6rem; object-fit: contain; border-radius: var(--radius); background: var(--ice); }
.story-header img.story-cover-public-plush { aspect-ratio: 4 / 3; }

.lead-image img.story-cover, .side-image img.story-cover,
.story-card img.story-cover, .story-header img.story-cover {
  padding: 0;
  object-fit: cover;
}

.lead-image img.story-cover-detail, .side-image img.story-cover-detail,
.story-card img.story-cover-detail, .story-header img.story-cover-detail {
  padding: .55rem;
  object-fit: contain;
}

.story-card img.story-cover-detail, .story-header img.story-cover-detail {
  background: var(--paper);
}

.story-body, .story-related { max-width: 690px; margin-inline: auto; }
.story-body section + section { margin-top: 1.7rem; }
.story-body h2, .story-related h2 { font-size: clamp(1.25rem, 2.7vw, 1.7rem); }
.story-body section > p { margin-top: .65rem; color: var(--muted); line-height: 1.8; }
.story-example { margin: .9rem 0 0; }
.story-example img { border-radius: var(--radius); }
.story-example figcaption { margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.story-related {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.story-related ul { list-style: none; padding: .45rem 0 0; }
.story-related a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); }

@media (min-width: 760px) {
  .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-card a { grid-template-rows: auto 1fr; }
  .story-header { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; }
  .story-header img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .feature-grid { animation: show-content 380ms ease-out both; }

  .primary-link, .side-story-link, .story-card a {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .side-story-link:hover, .story-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(23 45 73 / .09);
  }
}

@keyframes show-content {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.display-layouts {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.display-layouts figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.display-layouts svg {
  display: block;
  width: 100%;
  height: 116px;
  padding: .4rem;
  background: var(--ice);
}

.display-layouts figcaption { padding: .8rem; }
.display-layouts strong { display: block; color: var(--navy); }
.display-layouts figcaption span { display: block; margin-top: .25rem; color: var(--muted); font-size: .83rem; }

@media (min-width: 680px) {
  .display-layouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stories-featured {
  padding-block: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.stories-featured h3 { font-size: clamp(1.25rem, 2.7vw, 1.7rem); }
.stories-featured-grid {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.35rem);
  margin-top: .8rem;
}

.stories-featured .story-card-lead h4 { font-size: clamp(1.35rem, 2.7vw, 2.15rem); }
.stories-featured .story-card:not(.story-card-lead) a {
  grid-template: 1fr / minmax(0, 1fr) minmax(0, 2.4fr);
}
.stories-featured .story-card:not(.story-card-lead) img {
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: start;
  border-radius: var(--radius) 0 0 var(--radius);
}

@media (min-width: 760px) {
  .stories-featured-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .stories-featured .story-card-lead { grid-row: span 2; }
  .stories-featured .story-card-lead a { grid-template-rows: auto 1fr; }
  .stories-featured .story-card-lead img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 759px) {
  .stories-featured .story-card-copy { padding: .8rem; }
}

.stories-filter {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.25rem;
}

.stories-filter[hidden], .story-card[hidden] { display: none; }
.stories-filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.stories-filter-group legend { margin-bottom: .45rem; color: var(--navy); font-size: .78rem; font-weight: 700; }
.stories-filter-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.stories-filter-options label { position: relative; display: flex; }

.stories-filter-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.stories-filter-options span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}

.stories-filter-options small { font-weight: 400; }
.stories-filter-options input:checked + span { border-color: var(--navy); background: var(--navy); color: white; }
.stories-filter-options input:focus-visible + span { outline: 3px solid #315b97; outline-offset: 2px; }
.stories-filter-status { color: var(--muted); font-size: .8rem; }

@media (hover: hover) {
  .stories-filter-options input:not(:checked):hover + span { border-color: var(--navy); }
}

@media (max-width: 519px) {
  .stories-filter-group { width: 100%; }
  .stories-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories-filter-options span { width: 100%; }
}

.exhibit-hub, .exhibit-pieces {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.2rem;
}

.exhibit-entry, .exhibit-piece, .character-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.exhibit-entry img {
  aspect-ratio: 2.3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.exhibit-entry > div { padding: 1rem 1.15rem; }
.exhibit-entry p, .exhibit-heading > p:last-child, .character-panel-content > p { color: var(--muted); }
.exhibit-entry p { margin-top: .35rem; font-size: .88rem; }
.exhibit-entry:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.exhibit-entry span { color: var(--gold); }

.exhibit-page { max-width: 1000px; padding-block: 1.25rem 3.5rem; }
.exhibit-heading { margin: 1rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--navy); }
.exhibit-heading > p:last-child { max-width: 65ch; margin-top: .65rem; }

.character-panel { margin-block: .7rem; scroll-margin-top: 1.25rem; }
.character-panel summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .45rem .8rem;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.character-panel summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  margin-inline-start: auto;
  margin-inline-end: .4rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
}
.character-panel[open] summary::after { transform: rotate(225deg); }
.character-panel summary img { width: 2.9rem; border-radius: 6px; }
.character-panel-content { padding: .25rem 1rem 1rem; }
.character-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: .75rem;
  margin-top: .8rem;
}
.character-photos figure { margin: 0; background: var(--ice); border-radius: 8px; }
.character-photos img { aspect-ratio: 1; padding: .5rem; object-fit: contain; mix-blend-mode: multiply; }
.character-photos figcaption { padding: .45rem .7rem; color: var(--navy); font-size: .8rem; font-weight: 700; }

.exhibit-piece { min-width: 0; padding: clamp(.85rem, 2vw, 1.35rem); scroll-margin-top: 1.25rem; }
.exhibit-piece h2 { margin-bottom: .7rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.exhibit-zoom { display: block; border-radius: 8px; }
.exhibit-plate { display: block; position: relative; width: 100%; border-radius: 8px; overflow: hidden; }
.exhibit-plate img { width: 100%; height: auto; }
.exhibit-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  display: grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  padding: 0 .25rem;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  box-shadow: 0 1px 5px #172d4970;
  transform: translate(-50%, -50%);
  font-size: .75rem;
  font-weight: 700;
}
.exhibit-zoom-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.exhibit-notes { margin: .15rem 0 0; padding-inline-start: 1.4rem; color: var(--muted); font-size: .88rem; }
.exhibit-notes li + li { margin-top: .25rem; }
.exhibit-notes li::marker { color: var(--navy); font-weight: 700; }

.exhibit-dialog {
  width: min(100% - 2rem, 42rem);
  max-height: 92dvh;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}
.exhibit-dialog::backdrop { background: rgb(23 45 73 / .75); }
.exhibit-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.exhibit-dialog-header h2 { font-size: clamp(1.15rem, 3vw, 1.6rem); }
.exhibit-dialog-header button {
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper);
  font: inherit;
  cursor: pointer;
}
.exhibit-dialog-view { overflow-x: auto; margin-block: .65rem; }
.exhibit-dialog-view:focus-visible { outline: 3px solid #315b97; outline-offset: -3px; }
.exhibit-dialog-view .exhibit-plate { width: min(100%, 56dvh); margin-inline: auto; }
.exhibit-pan-hint { display: none; margin-top: .5rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 600px) {
  .exhibit-dialog-view .exhibit-plate { width: max(100%, 24rem); margin-inline: 0; }
  .exhibit-pan-hint { display: block; }
}

@media (min-width: 700px) {
  .exhibit-hub, .exhibit-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.planner-stage {
  position: relative;
  isolation: isolate;
  max-width: 700px;
  aspect-ratio: 2;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(#e8edf4 0 72%, #cda77d 72% 74%, #ead5bc 74% 100%);
}
.planner-stage[data-scene="bookcase"] {
  max-width: 470px;
  border: 8px solid #b48b66;
  background: linear-gradient(#eee5da 0 70%, #b9916e 70% 73%, #dbc3ad 73% 100%);
}
.planner-stage[data-scene="cabinet"] {
  border: 8px solid #8092a2;
  background: linear-gradient(#e1eef3 0 71%, #86a5b4 71% 74%, #d1e3e9 74% 100%);
}
.planner-piece {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: 25%;
  max-height: 67%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translateX(-50%);
}
.planner-piece[data-piece="plush"] { width: 32%; }
.planner-piece[data-piece="card"] { width: 18%; }
.planner-piece[data-row="front"] { bottom: 8%; z-index: 1; }
.planner-piece[data-column="1"] { left: 20%; }
.planner-piece[data-column="3"] { left: 80%; }
.planner-settings, .tool-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.planner-settings { justify-content: space-between; margin-block: 1rem .65rem; }
.planner-piece-controls, .checklist-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: .65rem;
}
.planner-control, .checklist-form {
  min-width: 0;
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.planner-control legend, .planner-controls label, .checklist-form label { color: var(--navy); font-weight: 700; font-size: .84rem; }
.planner-controls label, .checklist-form label { display: grid; gap: .25rem; }
.planner-control label + label { margin-top: .55rem; }
.planner select, .checklist-form input, .checklist-form select,
.planner button, .checklist-tools button {
  max-width: 100%;
  min-height: 44px;
  padding: .4rem .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper);
  font: inherit;
}
.planner button, .checklist-tools button { font-size: .82rem; font-weight: 700; cursor: pointer; }
.checklist-tools button:disabled { opacity: .55; cursor: default; }
.planner button:hover, .checklist-tools button:not(:disabled):hover { border-color: var(--navy); }
.planner :is(button,select):focus-visible, .checklist-tools :is(button,input,select,[tabindex]):focus-visible {
  outline: 3px solid #315b97;
  outline-offset: 2px;
}
.tool-status, .checklist-intro { margin-block: .75rem; color: var(--muted); font-size: .9rem; }
.tool-status:empty { display: none; }

.checklist-form .tool-actions { grid-column: 1 / -1; }
.checklist-table { overflow-x: auto; }
.checklist-table table { width: 100%; border-collapse: collapse; text-align: start; }
.checklist-table th, .checklist-table td { padding: .55rem; border-bottom: 1px solid var(--line); text-align: start; overflow-wrap: anywhere; }
.checklist-table td:last-child { white-space: nowrap; }
.checklist-row-actions button + button { margin-inline-start: .35rem; }
.checklist-output { margin-top: .85rem; }
.checklist-results { margin-top: 1rem; }

.theme-panel summary { min-height: 46px; }
.theme-panel .character-photos img { aspect-ratio: 1.4; }
.glossary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .85rem; }
.glossary-term {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 1.25rem;
}
.glossary-term dt { color: var(--navy); font-weight: 700; }
.glossary-term dd { margin: .4rem 0 0; color: var(--muted); }
.glossary-term img { height: 135px; margin-top: .35rem; object-fit: contain; }

@media print {
  body:has(.checklist-tools) :is(.site-header,.site-footer,.skip-link,.story-back,.exhibit-heading p,.checklist-intro,.checklist-form,.checklist-output,.checklist-row-actions,.tool-status) {
    display: none !important;
  }
  body:has(.checklist-tools) .exhibit-page { width: 100%; padding: 0; }
  .checklist-table { overflow: visible; }
  .checklist-table tr { break-inside: avoid; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @view-transition { navigation: auto; }

  ::view-transition-group(root) { animation-duration: 220ms; }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease-out;
  }

  :is(.exhibit-entry, .exhibit-zoom, .language-menu summary, .language-options a,
      .character-panel summary, .planner button, .checklist-tools button,
      .exhibit-dialog button, .site-nav > ul > li > a, .category-story-link) {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
      box-shadow 160ms ease, transform 140ms ease-out;
  }

  :is(.primary-link, .side-story-link, .story-card a, .exhibit-entry, .exhibit-zoom,
      .planner button, .checklist-tools button:not(:disabled), .exhibit-dialog button):active {
    transform: scale(.987);
  }

  .language-menu details[open] .language-options,
  .character-panel[open] .character-panel-content {
    animation: panel-enter 180ms ease-out;
  }

  .character-panel summary::after { transition: transform 160ms ease-out; }
  .exhibit-dialog[open] { animation: dialog-enter 200ms ease-out; }
  .exhibit-dialog[open]::backdrop { animation: backdrop-enter 180ms ease-out; }
  .planner-piece { transition: left 260ms ease-out, bottom 260ms ease-out; }
  .stories-filter-options span { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .exhibit-entry:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgb(23 45 73 / .1); }
  .exhibit-entry:active { transform: scale(.987); }
  .character-panel summary:hover, .language-menu summary:hover { background: var(--ice); }
}

@keyframes panel-enter {
  from { opacity: .55; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.compare-form label, .site-search-form label { display: grid; gap: .35rem; color: var(--navy); font-weight: 700; }
.compare-form label { max-width: 17rem; }
.compare-form select, .site-search-form input, .site-search-form button {
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper);
  font: inherit;
}
.compare-group { margin-block: 1.25rem 2rem; }
.compare-picks { margin: .75rem 0 0; padding: .55rem .75rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.compare-picks legend { padding-inline: .2rem; color: var(--navy); font-size: .85rem; font-weight: 700; }
.compare-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.compare-options label { display: inline-flex; align-items: center; min-height: 44px; gap: .25rem; padding-inline: .45rem; border-radius: 6px; }
.compare-options label:has(input:checked) { color: var(--navy); background: var(--ice); }
.compare-options label:has(input:disabled) { color: var(--muted); }
.compare-options input { accent-color: var(--navy); }
.compare-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.compare-photos figcaption p { margin-top: .35rem; color: var(--muted); font-weight: 400; }
.compare-group[hidden], .compare-card[hidden] { display: none; }

.site-search-form > div { display: flex; gap: .55rem; margin-top: .4rem; }
.site-search-form input { min-width: 0; flex: 1; }
.site-search-form button { color: white; background: var(--navy); cursor: pointer; font-weight: 700; }
.site-search-form button:hover { background: #315b97; }
.site-search-form :is(input,button):focus-visible, .compare-form select:focus-visible { outline: 3px solid #315b97; outline-offset: 2px; }
.search-results { display: grid; gap: .65rem; padding: 0; list-style: none; }
.search-results li { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.search-results a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.search-results p { color: var(--muted); font-size: .88rem; }
.search-context { display: block; margin-bottom: .25rem; color: var(--gold); font-size: .75rem; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .compare-options label { transition: background-color 160ms ease, color 160ms ease; }
}

.recognition-answer { margin-bottom: 0; box-shadow: none; }
.recognition-answer summary { min-height: 44px; }
.recognition-answer p { font-size: .88rem; }
.planner-presets {
  min-width: 0;
  margin: 1rem 0 0;
  padding: .65rem .8rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 1.25rem;
}
.planner-presets legend { padding-inline: .25rem; color: var(--navy); font-weight: 700; }
.checklist-planning { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.checklist-planning h2 { font-size: clamp(1.2rem, 2.8vw, 1.7rem); }
.checklist-planning > p { margin-top: .45rem; color: var(--muted); font-size: .88rem; }
.location-group summary { min-height: 44px; overflow-wrap: anywhere; }
.location-group .location-items { padding-inline-start: 2rem; overflow-wrap: anywhere; }
.swap-select {
  min-width: 0;
  margin: .7rem 0 1rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.swap-select legend { padding-inline: .25rem; color: var(--navy); font-weight: 700; }
.swap-options label { display: flex; align-items: center; gap: .45rem; min-height: 44px; overflow-wrap: anywhere; }
.swap-options input { accent-color: var(--navy); }
.swap-sheet { margin-bottom: .8rem; }
.swap-sheet table { min-width: 520px; }
.swap-sheet td:empty { min-width: 4rem; }
.swap-sheet td { height: 3rem; }
#swap-preparation .tool-actions { margin-top: .7rem; }

@media print {
  body:not([data-checklist-print="swap"]) .checklist-planning { display: none !important; }
  body[data-checklist-print="swap"] :is(.exhibit-heading,.checklist-results,#location-map,.swap-help,.swap-select,.swap-empty,.checklist-planning .tool-actions) {
    display: none !important;
  }
  body[data-checklist-print="swap"] #swap-preparation { margin: 0; padding: 0; border: 0; }
  body[data-checklist-print="swap"] .swap-sheet { margin-top: .8rem; }
  .swap-sheet table { min-width: 0; }
}

.feature-carousel { min-width: 0; }
.carousel-slides { display: grid; }
.carousel-slide { grid-area: 1 / 1; min-width: 0; }
.carousel-ready .carousel-slide[hidden] { display: block; visibility: hidden; }
.carousel-slide .lead-image img { aspect-ratio: 2 / 1; }
.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: .55rem clamp(.65rem, 2.7vw, 1.9rem) .8rem;
  border-top: 1px solid var(--line);
}
.carousel-controls[hidden] { display: none; }
.carousel-picks { display: flex; flex-wrap: wrap; gap: .2rem; }
.carousel-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: .3rem .6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper);
  font: 700 .8rem/1.2 Poppins, Arial, sans-serif;
  cursor: pointer;
}
.carousel-controls [data-carousel-step] { border-color: var(--line); font-size: 1.45rem; }
.carousel-controls [data-carousel-rotation] { margin-inline-start: auto; }
.carousel-controls button:hover { background: var(--ice); }
.carousel-controls button[aria-current="true"] { color: white; background: var(--navy); }
.carousel-controls button:focus-visible { outline: 3px solid #315b97; outline-offset: 2px; }

@media (max-width: 390px) {
  .carousel-controls:not([hidden]) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .2rem .1rem;
    padding-inline: .3rem;
  }
  .carousel-picks { justify-content: center; gap: .1rem; }
  .carousel-controls [data-carousel-rotation] { grid-column: 1 / -1; }
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-ready .carousel-slide:not([hidden]) { animation: carousel-reveal 240ms ease-out; }
  .carousel-controls button { transition: background-color 160ms ease, color 160ms ease, transform 140ms ease-out; }
  .carousel-controls button:active { transform: scale(.96); }
}

@keyframes carousel-reveal {
  from { opacity: .35; }
  to { opacity: 1; }
}

.design-features { margin-top: clamp(1.7rem, 4vw, 3rem); padding-top: 1rem; border-top: 1px solid var(--line); }
.design-features h3, .design-summary h2 { font-size: clamp(1.2rem, 2.7vw, 1.65rem); }
.design-features > p, .design-summary p { margin-top: .45rem; color: var(--muted); }
.design-entry > .design-photo { padding: 0; }
.design-entry h4 { font-size: clamp(1.1rem, 2.4vw, 1.45rem); }
.design-entry:hover h4 { text-decoration: underline; text-underline-offset: .2em; }

.design-grid { display: grid; gap: 1rem; }
.design-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  scroll-margin-top: 1.25rem;
}
.design-photo { background: var(--ice); border-radius: var(--radius) var(--radius) 0 0; }
.design-card:nth-child(2) .design-photo, .design-entry:nth-child(2) .design-photo { background: var(--lavender); }
.design-card:nth-child(3) .design-photo { background: #f6f1eb; }
.design-card .design-photo img, .design-entry .design-photo img { padding: .7rem; object-fit: contain; mix-blend-mode: multiply; }
.design-card .design-photo img { aspect-ratio: 1; }
.design-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-card .design-photo-pair img { padding: .45rem; }
.design-grid-pair .design-photo img { aspect-ratio: 4 / 3; }
.design-card figcaption { padding: 1rem; }
.design-card h2 { font-size: clamp(1.07rem, 2vw, 1.35rem); }
.design-card p { margin-top: .45rem; color: var(--muted); font-size: .88rem; }
.design-summary { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

@media (min-width: 760px) {
  .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-grid-scenes { grid-template-columns: minmax(0, 1fr); }
  .design-grid-scenes .design-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .design-grid-scenes .design-photo { border-radius: 0; }
  .design-grid-scenes figcaption { align-self: center; padding: 1.25rem; }
}
