@layer mobilefirst {
  :root { --content-max: 1360px; --ui-green: #194b32; --ui-paper: #fcfbf5; --ui-line: #d7dfce; --ui-muted: #52634b; }
  html { scroll-padding-top: 86px; scrollbar-gutter: stable; }
  html.dialog-open { overflow: hidden; }
  .dialog-content { overscroll-behavior: contain; scrollbar-gutter: stable; }
  .journal-list,.atlas-body { min-height: 100svh; }
  .search-workspace .search-body { min-height: 100svh; }
  .brand-header .site-nav a,.brand-header .site-nav a[aria-current] { font-weight: 600; }
  .library-tabs a,.library-tabs a[aria-current] { font-weight: 600; }
  .mobile-museum-dock .bottom-navigation > :is(a,button),.mobile-museum-dock .bottom-navigation > :is([aria-current],.is-selected) { font-weight: 600; }
  .theme-journal { --paper: #fcfbf5; --ink: #193c29; --soft: #52634b; --line: #d7dfce; --accent: #225a37; }
  #experience { font-size: 1rem; line-height: 1.55; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  #experience :is(p,li,dd) { font-size: 1rem; }
  #experience :is(button,.primary-button,.secondary-button,.text-button,.pill,.topic-chip,summary,label,.form-field > span,.navigation-links strong,.site-footer a) { font-size: .875rem; }
  #experience :is(.primary-button,.secondary-button,.text-button,.pill,.topic-chip,summary,.icon-button) { min-height: 44px; }
  #experience :is(input,select,textarea) { font-size: 1rem; max-width: 100%; }
  #experience :is(small,.eyebrow,.source-note,.story-meta,figcaption,.duration,.story-meta,.progress-label,.map-credit,.home-trail-preview span) { font-size: .75rem; line-height: 1.5; }
  #experience :is(h1,h2,h3) { text-wrap: balance; }
  #experience :is(h2,h3) { line-height: 1.2; }
  .form-field select, .search-region-row select { background-position: calc(100% - 19px) 21px,calc(100% - 14px) 21px; padding-right: 38px; }
  :is(.reading-page,.story-page,.watch-page,.search-page,.discovery-home,.watch-discover,.atlas,.journal,.site-footer,.context-navigation) { width: calc(100% - 32px); max-width: var(--content-max); margin-inline: auto; }
  .reading-heading { padding-block: 18px 20px; }
  #experience :is(.reading-heading h1,.story-heading h1,.watch-page .reading-heading h1,.search-heading h1) { font: 400 clamp(2rem,7.5cqw,3.75rem)/1.08 Georgia,serif; letter-spacing: -.045em; margin: 10px 0 14px; }
  #experience .reading-deck { font-size: 1.0625rem; line-height: 1.65; max-width: 66ch; }
  .button-row { gap: 8px 12px; flex-wrap: wrap; }
  .section-heading { gap: 14px; }
  .section-heading a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; }
  #experience :is(.discovery-section,.archive-section) h2 { font: 400 clamp(1.5rem,4cqw,2.25rem)/1.2 Georgia,serif; letter-spacing: -.035em; }
  .site-footer { gap: 20px; padding-block: 28px; }
  .site-footer > div { gap: 8px 20px; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

  /* One compact header, with navigation chosen to fit the available room. */
  .brand-header { min-height: 64px; padding-inline: 16px; background: #fcfbf5f5; transition: transform .22s ease; }
  .header-inner { min-height: 64px; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .brand-header .wordmark { min-height: 44px; font-size: 1.1875rem; gap: 8px; letter-spacing: -.035em; }
  .brand-header .wordmark img { width: 38px; height: 40px; border-radius: 6px; }
  .brand-header .wordmark small { font-size: .75rem; line-height: 1.2; margin-top: 4px; letter-spacing: -.015em; white-space: normal; }
  .brand-header .site-nav { display: none; }
  .brand-header .header-search { width: 44px; min-width: 44px; padding: 0; }
  .header-search-label,.brand-header .header-search kbd,.browse-label { display: none; }
  .brand-header .desktop-browse,.brand-header .header-collections { display: none; }
  .brand-header.header-retreated { transform: translateY(-110%); }
  .brand-header:focus-within { transform: none; }
  .context-navigation { padding-top: 8px; gap: 12px; }
  .context-navigation a { min-height: 44px; font-size: .875rem; }
  #experience[data-page=home] .header-search { display: none; }

  /* A stable, thumb-friendly dock with full-sized destination labels. */
  .mobile-museum-dock { left: 8px; right: 8px; padding: 5px; bottom: calc(8px + env(safe-area-inset-bottom)); border-radius: 20px; background: #fffefaf7; }
  .mobile-museum-dock .bottom-navigation > :is(a,button) { font-size: .875rem; min-height: 64px; gap: 4px; border-radius: 15px; }
  .mobile-museum-dock .bottom-navigation > :is(a,button) > span:first-child { height: 24px; width: 28px; }
  .mobile-museum-dock .bottom-navigation small { font-size: .75rem; min-width: 18px; }
  .keyboard-open .mobile-museum-dock { display: none; }
  .toast { bottom: calc(104px + env(safe-area-inset-bottom)); }
  #experience:has(.museum-resume) { padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
  .museum-resume small { font-size: .75rem; }
  .museum-resume strong { font-size: .875rem; }

  /* Home: a short invitation, one search, then the story. */
  .discovery-home .discovery-welcome { display: block; padding-top: 18px; }
  .discovery-home .discovery-welcome .eyebrow { display: none; }
  .discovery-home .discovery-welcome h1 { font: 400 clamp(1.75rem,7.8cqw,2.75rem)/1.1 Georgia,serif; margin: 0 0 8px; letter-spacing: -.05em; }
  .discovery-home .discovery-welcome p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; max-width: none; }
  .discovery-home .discovery-launcher { min-height: 52px; margin: 14px 0 0; padding: 12px 14px; font-size: 1rem; background: white; border-color: #c4d0ba; }
  .discovery-home .topic-rail { padding-block: 12px; gap: 8px; }
  .discovery-home .topic-chip { font-size: .875rem; min-height: 44px; padding: 10px 14px; background: transparent; }
  .discovery-home .topic-chip[aria-pressed=true] { background: var(--ui-green); }
  .discovery-home .discovery-lead { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
  .discovery-home .lead-story { border: 1px solid #dbe0d2; border-radius: 16px; background: #fff; color: var(--ink); }
  .discovery-home .lead-story > a { width: 100%; aspect-ratio: 1.25; min-height: 240px; max-height: 440px; overflow: hidden; }
  .discovery-home .lead-story-content { inset: auto 18px 20px; gap: 10px; }
  .discovery-home .lead-story-content > small { font-size: .75rem; color: #f1efd9; }
  .discovery-home .lead-story-content > strong { font: 400 clamp(1.75rem,8cqw,3rem)/1.1 Georgia,serif; letter-spacing: -.035em; max-width: 20ch; }
  .discovery-home .lead-story-content .lead-cta { font-size: .875rem; line-height: 1.5; }
  #experience .lead-story-description { font-size: 1rem; line-height: 1.65; padding: 16px 18px; color: #465c40; margin: 0; }
  .lead-story-shade { background: linear-gradient(0deg,#082616ee,transparent 85%); }
  .discovery-home .home-side { padding: 0; background: transparent; border: 0; gap: 18px; }
  .discovery-home .continue-card { border: 1px solid #d1ddc4; padding: 18px; background: #edf3e5; }
  .discovery-home .continue-card small { font-size: .75rem; }
  .discovery-home .continue-card strong { font-size: 1.125rem; }
  .discovery-home .continue-card span span { font-size: 1rem; }
  .discovery-home .home-quick h2 { font-size: 1.375rem; }
  .discovery-home .home-quick a { font-size: .875rem; }
  .discovery-home .home-quick a > span { background: #eff4e8; border-color: #d0dcc4; }
  .discovery-home .personal-home { margin-top: 22px; padding: 16px; background: #f2f6eb; }
  .personal-home .button-row > :is(a,span), .personal-home .pill { font-size: .875rem; }
  .personal-home .button-row > a { flex-basis: 100%; margin-right: 0; justify-content: start; }
  .discovery-story-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .compact-story { padding-block: 16px; align-items: center; }
  .compact-story > a { display: flex; align-items: center; gap: 13px; }
  .compact-story img { width: 92px; height: 96px; aspect-ratio: auto; border-radius: 11px; }
  .compact-story > .icon-button { position: static; align-self: center; width: 44px; height: 44px; }
  .compact-story strong { font-size: 1.0625rem; }
  .compact-story :is(small,span span) { font-size: .75rem; line-height: 1.5; }
  .trail-rail { display: grid; grid-auto-columns: minmax(260px,85%); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 0 12px; }
  .trail-card { background: #fff; border-radius: 16px; }
  .trail-card h3 { font: 400 1.625rem/1.15 Georgia,serif; }
  .trail-card .text-button { min-height: 44px; }
  .maker-card,.feature-promo-grid a { border-radius: 16px; background: #f2f6eb; }
  .maker-card h3 { font: 400 1.5rem/1.2 Georgia,serif; }

  /* Search results lead on a phone; the detailed filters are a staged sheet. */
  .search-heading,.search-page.has-results .search-heading,.search-page:has(#discovery-query:focus) .search-heading { padding: 20px 0 16px; }
  .search-heading .eyebrow { display: none; }
  #experience .search-heading h1 { font-size: 1.5rem; margin: 0; }
  .search-page.has-results .search-heading h1 { font-size: 1.5rem; margin-bottom: 0; }
  .search-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .search-tools { position: static; grid-column: auto; grid-row: auto; }
  .discovery-search-input { min-height: 54px; background: white; border-color: #a9bda0; }
  .search-controls { display: flex; align-items: center; gap: 10px; }
  .search-facets { flex: 1; min-width: 0; flex-wrap: nowrap; padding-block: 12px; gap: 6px; overflow-x: auto; }
  .search-facets .topic-chip { min-height: 44px; padding: 10px 13px; font-size: .875rem; }
  .facet-count { display: none; }
  .search-filter-trigger { display: flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 10px 12px; border: 1px solid #b9c8ad; border-radius: 10px; background: #edf3e5; color: #214a2f; }
  .search-filter-trigger svg { display: none; }
  .search-filter-sidebar { display: none; }
  .applied-filters { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; }
  .applied-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #c1d1b4; border-radius: 10px; background: #eaf3e0; color: #244f31; text-align: left; }
  .applied-filter svg { flex: none; }
  .search-workspace .search-body { grid-column: auto; grid-row: auto; }
  .results-heading { padding-top: 6px; }
  .results-heading p { font-size: .875rem; margin: 0; }
  .discovery-result { gap: 12px; }
  .discovery-result > img { width: 86px; height: 90px; border-radius: 10px; }
  .discovery-result strong { font-size: 1.0625rem; }
  .discovery-result span span { font-size: .875rem; }
  .suggestion-chip { font-size: .875rem; min-height: 44px; background: white; }
  .place-discovery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overlay[data-mode=search-filters],.overlay[data-mode=place-details] { width: min(100%,560px); max-height: calc(100dvh - 20px); margin: auto auto 0; border-radius: 24px 24px 0 0; background: #fcfbf5; color: #193c29; border: 1px solid #ccd9c1; color-scheme: light; }
  .overlay[data-mode=search-filters] .dialog-content,.overlay[data-mode=place-details] .dialog-content { max-height: calc(100dvh - 22px); padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
  .overlay:is([data-mode=search-filters],[data-mode=place-details]) .dialog-close { position: sticky; float: right; top: 8px; margin-top: 22px; z-index: 2; background: #e7efdd; color: #22482f; }
  .overlay[data-mode=search-filters] h2,.overlay[data-mode=place-details] h2 { font: 400 2rem/1.1 Georgia,serif; letter-spacing: -.04em; margin: 10px 0 14px; }
  .overlay[data-mode=search-filters] .eyebrow { font-size: .75rem; line-height: 1.5; color: #586b50; max-width: 75%; }
  .filter-intro { font-size: 1rem; line-height: 1.6; }
  .filter-fields { padding: 8px 0 20px; }
  .filter-fields .form-field { margin-block: 18px; }
  .filter-fields label { font-size: .875rem; }
  .filter-fields select { background-color: white; color: #193c29; border-color: #b9cbb0; font-size: 1rem; min-height: 50px; }
  .filter-sheet-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; bottom: -18px; background: #fcfbf5; border-top: 1px solid #d0dcc5; padding-top: 16px; }
  .filter-sheet-actions :is(button,.text-button) { font-size: .875rem; min-height: 48px; }
  .filter-sheet-actions .primary-button { background: #245c36; color: white; padding-inline: 18px; }
  .filter-sheet-actions .text-button { color: #345a39; }

  /* Reading has its own measure and reachable tools. */
  .story-page .reading-heading { padding-top: 16px; max-width: 850px; }
  .story-primary { gap: 8px; margin-bottom: 12px; }
  .story-primary .primary-button { flex-grow: 1; }
  .story-primary > .text-button { min-width: 80px; }
  .reading-language,.bilingual,.collection-options,.collection-note-editor,.story-options { display: block; margin-block: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
  :is(.reading-language,.bilingual,.collection-options,.collection-note-editor,.story-options) summary { cursor: pointer; display: list-item; min-height: 48px; padding-block: 12px; font-weight: 600; }
  .story-options .button-row { padding-bottom: 12px; }
  .reading-language .button-row { padding-bottom: 8px; }
  .reading-language .button-row > span { font-size: .875rem; }
  .story-main-image { margin-top: 18px; }
  .story-main-image img { aspect-ratio: 1.45; max-height: 540px; border-radius: 14px; }
  .story-main-image figcaption a { min-height: 32px; display: inline-flex; align-items: center; }
  .story-body { grid-template-columns: minmax(0,1fr); padding-top: 20px; gap: 28px; }
  .story-body > article { max-width: 68ch; }
  .story-body :is(p,li,dd) { line-height: 1.8; }
  .story-body h2 { font: 400 1.625rem/1.2 Georgia,serif; }
  .reader-toolbar { position: sticky; top: 76px; z-index: 4; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 13px; padding: 7px 12px; margin-bottom: 22px; background: #f9fcf3f5; color: #224c31; border: 1px solid #d1dfc7; border-radius: 13px; backdrop-filter: blur(14px); }
  #experience:has(.header-retreated) .reader-toolbar { top: 8px; }
  .reader-toolbar .text-button { font-size: .875rem; min-height: 44px; }
  .reader-toolbar progress { flex-basis: 100%; height: 3px; margin: 0 0 2px; accent-color: #37734a; }
  .reading-progress-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sticky-reader { position: static; background: #f0f6e7; padding: 20px; border-radius: 14px; border: 1px solid #d1dfc5; }
  .sticky-reader > a { min-height: 44px; font-size: .875rem; }

  /* Film playback leads; chapters and notes follow it naturally. */
  .watch-page { padding-top: 12px; }
  .watch-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; align-items: start; }
  .watch-page .video-frame { min-height: 0; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin: 0; }
  .watch-page .video-frame iframe { width: 100%; height: 100%; }
  .watch-main .reading-heading { padding-block: 18px 0; }
  #experience .watch-main .reading-heading h1 { font-size: clamp(1.75rem,6cqw,2.75rem); }
  .chapter-list { padding: 20px; border: 1px solid #7a705f55; border-radius: 14px; }
  .chapter-list h2,.film-reading h2,.film-tools h2 { font: 400 1.5rem/1.2 Georgia,serif; }
  .chapter-list a { min-height: 52px; gap: 14px; font-size: 1rem; }
  .film-tools,.film-reading { padding: 22px 0; max-width: 900px; }
  .watch-discover .discovery-welcome { padding-top: 22px; }
  .watch-discover .discovery-welcome h1 { font-size: clamp(2rem,8cqw,3.5rem); }
  .watch-feature { height: auto; min-height: 310px; aspect-ratio: 1.3; }
  .watch-feature strong { font: 400 clamp(2rem,8cqw,3.5rem)/1.1 Georgia,serif; }
  .watch-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .watch-grid article > a > span { aspect-ratio: 16/9; }
  .watch-grid a > small { font-size: .75rem; }

  /* Places are a usable list first, with a dedicated map and detail sheet. */
  .atlas .reading-heading { padding-bottom: 10px; }
  .atlas-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
  .atlas-toolbar > span { font-size: .75rem; color: var(--soft); }
  .atlas-view-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 13px; gap: 4px; }
  .atlas-view-switch .pill { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 10px 13px; margin: 0; }
  .atlas-refine { border-block: 1px solid var(--line); margin-bottom: 18px; padding: 0 2px; }
  .atlas-refine summary { cursor: pointer; font-weight: 600; padding-block: 12px; }
  .atlas-refine .pills { flex-wrap: wrap; margin-bottom: 12px; }
  .atlas-refine .form-field { max-width: 420px; }
  .atlas-body,.atlas-body.list-mode { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .atlas .place-list { max-height: none; overflow: visible; margin-top: 0; border: 0; background: transparent; }
  .atlas .place-row { display: flex; justify-content: start; gap: 14px; padding: 15px 0; min-height: 96px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .place-row > img { width: 76px; height: 76px; flex: none; border-radius: 12px; object-fit: cover; }
  .place-row > span { display: grid; gap: 6px; }
  .place-row strong { font-size: 1rem; line-height: 1.45; }
  .place-row small { font-size: .875rem; line-height: 1.5; }
  .atlas .atlas-selected { display: none; }
  .map-panel { margin-bottom: 12px; border-radius: 14px; }
  .map-plot { width: 100%; max-width: 540px; }
  .map-pin { width: 44px; height: 44px; }
  .overlay[data-mode=place-details] .dialog-content > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
  .overlay[data-mode=place-details] p { line-height: 1.7; font-size: 1rem; }
  .overlay[data-mode=place-details] .eyebrow { font-size: .75rem; }
  .overlay[data-mode=place-details] .button-row { margin-top: 20px; }

  /* Collections stay compact until a note or a secondary action is needed. */
  .collection-heading { display: grid; gap: 20px; padding-top: 16px; }
  .collection-cover { margin: 0; }
  .collection-cover img { aspect-ratio: 1.8; max-height: 280px; border-radius: 14px; }
  .collection-heading .reading-heading { padding: 0; }
  .collection-count { font-size: .875rem; margin-bottom: 12px; color: var(--soft); }
  .collection-entries { max-width: 920px; margin-top: 24px; }
  .collection-entry { padding-block: 14px 20px; }
  .collection-entry .compact-story { padding-block: 6px; }
  .collection-entry .compact-story img { width: 72px; height: 80px; }
  .collection-entry .compact-story > .icon-button { position: static; }
  .collection-order { display: flex; flex-wrap: wrap; gap: 5px 16px; align-items: center; }
  .collection-order .text-button { font-size: .875rem; }
  .collection-order button:disabled { opacity: .4; cursor: default; }
  .collection-note-editor { margin-top: 5px; }
  .collection-options { margin-top: 16px; max-width: 560px; }
  .collection-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .collection-card { border-radius: 14px; overflow: hidden; background: white; }
  .collection-card h2 { font-size: 1.625rem; }
  .collection-card img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
  .navigation-cards strong { font-size: 1.5rem; }
  .navigation-cards small,.navigation-links small,.overlay[data-mode=navigation] .eyebrow { font-size: .75rem; }
  .navigation-links strong { font-size: .875rem; }
  .navigation-links a { min-height: 84px; }
  .overlay[data-mode=navigation] .sheet-intro { font-size: 1rem; }
  .overlay[data-mode=navigation] .sheet-library { font-size: .875rem; }
  .navigation-cards a { min-height: 156px; }
  .navigation-cards a > span { gap: 8px; }

  @container (min-width: 640px) {
    :is(.reading-page,.story-page,.watch-page,.search-page,.discovery-home,.watch-discover,.atlas,.journal,.site-footer,.context-navigation) { width: calc(100% - 48px); }
    .brand-header { padding-inline: 24px; }
    .header-inner { min-height: 72px; }
    .brand-header .wordmark { font-size: 1.5rem; }
    .brand-header .wordmark img { width: 44px; height: 46px; }
    .brand-header .header-search { min-width: 44px; width: 44px; }
    .brand-header .desktop-browse { display: inline-flex; width: auto; min-height: 44px; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #ecf2e4; }
    .browse-label { display: inline; font-size: .875rem; }
    #experience[data-page=home] .header-search { display: none; }
    .discovery-home .discovery-welcome { padding-top: 25px; }
    .discovery-home .discovery-welcome .eyebrow { display: block; font-size: .75rem; margin-bottom: 12px; }
    .discovery-home .discovery-welcome h1 { font-size: clamp(2.25rem,5cqw,3.25rem); }
    .discovery-home .discovery-launcher { max-width: 600px; margin-top: 20px; }
    .discovery-home .topic-rail { padding-block: 20px; }
    .discovery-home .discovery-lead { grid-template-columns: minmax(0,1fr) minmax(230px,.72fr); gap: 20px; align-items: start; }
    .discovery-home .lead-story > a { aspect-ratio: 1.08; min-height: 300px; }
    .discovery-home .lead-story-content > strong { font-size: 2rem; }
    .discovery-home .home-side { grid-template-columns: minmax(0,1fr); padding: 18px; background: #edf3e5; border: 1px solid #d4e0c9; border-radius: 16px; align-content: start; gap: 28px; }
    .discovery-home .continue-card { padding: 0; border: 0; }
    .discovery-home .continue-icon { display: none; }
    .discovery-home .home-quick > div:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .discovery-home .home-quick a { min-height: 78px; }
    .discovery-home .home-quick a > span { height: 46px; }
    .discovery-story-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
    .compact-story img { width: 80px; height: 90px; }
    .trail-rail { grid-auto-columns: 46%; }
    .watch-grid,.collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .watch-feature { aspect-ratio: 1.9; }
    .watch-feature > span:last-child { max-width: 72%; }
    .collection-heading { grid-template-columns: minmax(180px,.7fr) minmax(0,1fr); align-items: center; }
    .collection-heading:not(:has(.collection-cover)) { grid-template-columns: 1fr; }
    .collection-cover img { aspect-ratio: 1; max-height: 330px; }
    .personal-home .button-row > a { flex-basis: auto; margin-right: auto; }
  }
  @container (max-width: 959px) {
    #experience:has(#discovery-query:focus) { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
    #experience:has(.museum-resume):has(#discovery-query:focus) { padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
    .editor-actions { bottom: calc(96px + env(safe-area-inset-bottom)); }
  }
  @container (min-width: 960px) {
    #experience,#experience:has(.museum-resume) { padding-bottom: 0; }
    :is(.reading-page,.story-page,.watch-page,.search-page,.discovery-home,.watch-discover,.atlas,.journal,.site-footer,.context-navigation) { width: calc(100% - 64px); }
    .brand-header { padding-inline: 32px; }
    .header-inner { grid-template-columns: minmax(0,1fr) auto; min-height: 80px; gap: 24px; }
    .brand-header .wordmark { grid-row: auto; grid-column: auto; min-height: 80px; font-size: 1.625rem; }
    .brand-header .header-actions { grid-row: auto; grid-column: auto; gap: 8px; }
    .brand-header .site-nav { display: none; }
    .brand-header .header-collections { display: inline-grid; }
    .brand-header .header-search { display: inline-flex; min-width: 190px; width: auto; padding-inline: 14px; }
    .header-search-label { display: inline; font-size: .875rem; }
    .brand-header .header-search kbd { display: inline-grid; font-size: .75rem; }
    .mobile-museum-dock { display: none; }
    .discovery-home .discovery-welcome { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 40px; align-items: end; padding-top: 36px; }
    .discovery-home .discovery-launcher { margin: 0 0 2px; }
    .discovery-home .discovery-lead { grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 24px; align-items: stretch; }
    .discovery-home .lead-story > a { aspect-ratio: 1.8; min-height: 340px; }
    .discovery-home .lead-story-content > strong { font-size: 2.75rem; }
    .discovery-home .home-side { padding: 24px; align-content: space-between; }
    .discovery-home .home-quick a { min-height: 54px; }
    .discovery-home .home-quick a > span { display: contents; }
    .home-trail-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-trail-preview span { font-size: .75rem; }
    .discovery-story-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 24px; }
    .compact-story img { width: 84px; height: 96px; }
    .trail-rail { grid-auto-columns: 32%; overflow-x: auto; }
    .search-workspace { grid-template-columns: 260px minmax(0,1fr); gap: 18px 32px; align-items: start; }
    .search-tools { grid-column: 1/-1; grid-row: 1; position: static; }
    .search-controls { gap: 20px; }
    .search-facets { padding-block: 14px; }
    .facet-count { display: inline; }
    .search-filter-trigger { display: none; }
    .search-filter-sidebar { display: block; grid-column: 1; grid-row: 2; position: sticky; top: 100px; padding: 20px; background: #f1f6e9; border: 1px solid #d6e1cb; border-radius: 14px; }
    .search-filter-sidebar h2 { font-size: 1.125rem; font-weight: 600; }
    .search-workspace .search-body { grid-column: 2; grid-row: 2; }
    .search-filter-sidebar .form-field { margin-block: 18px; }
    .discovery-result > img { width: 105px; height: 100px; }
    .story-body { grid-template-columns: minmax(0,68ch) minmax(230px,1fr); gap: 48px; align-items: start; }
    .story-body > article { width: 100%; }
    .sticky-reader { position: sticky; top: 100px; }
    .reader-toolbar { top: 95px; }
    .story-main-image img { aspect-ratio: 2.2; max-height: 510px; }
    .story-primary .primary-button { flex-grow: 0; }
    .watch-layout { grid-template-columns: minmax(0,2.4fr) minmax(260px,1fr); gap: 28px; }
    .chapter-list { position: sticky; top: 100px; }
    .watch-feature { aspect-ratio: 2.5; max-height: 520px; }
    .watch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .atlas-body,.atlas-body.list-mode { grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); }
    .atlas .atlas-selected { display: block; position: sticky; top: 100px; border-radius: 14px; }
    .atlas-selected > div { padding: 22px; }
    .atlas-selected p:not(.eyebrow) { font-size: 1rem; }
    .atlas-selected h2 { font-size: 2rem; }
    .atlas-refine { max-width: 680px; }
    .atlas .place-list { max-height: 650px; overflow-y: auto; padding-right: 8px; }
    .collection-heading { grid-template-columns: minmax(230px,.6fr) minmax(0,1fr); gap: 36px; max-width: 1100px; }
    .collection-cover img { aspect-ratio: 1.3; }
    .collection-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 24px; align-items: center; }
    .collection-entry .collection-note-editor { grid-column: 1/-1; }
    .collection-order { justify-content: end; }
    .toast,body:has(.museum-resume) .toast { bottom: 24px; }
  }
  @container (min-width: 1200px) {
    .header-inner { grid-template-columns: minmax(260px,1fr) auto minmax(260px,1fr); gap: 24px; }
    .brand-header .wordmark { min-height: 80px; }
    .brand-header .site-nav { display: flex; align-items: center; justify-content: center; grid-row: auto; grid-column: auto; gap: clamp(14px,1.5cqw,22px); border: 0; }
    .brand-header .site-nav a { min-height: 80px; font-size: .875rem; padding-inline: 0; }
    .brand-header .header-actions { grid-column: auto; gap: 4px; }
    .brand-header .header-search { min-width: 150px; }
    .brand-header .desktop-browse { width: 44px; padding: 0; justify-content: center; background: transparent; }
    .browse-label { display: none; }
    .discovery-home .discovery-welcome h1 { font-size: 3.25rem; }
  }
  @media (min-width: 640px) {
    .overlay[data-mode=search-filters],.overlay[data-mode=place-details] { margin: auto; width: min(560px,calc(100% - 40px)); border-radius: 22px; }
  }
  @media (prefers-reduced-motion: reduce) { .brand-header { transition: none; } }
  @media print {
    .reader-toolbar,.mobile-museum-dock,.brand-header { display: none !important; }
    #experience,#experience:has(.museum-resume) { padding-bottom: 0; }
    .collection-note-editor { border: 0; }
  }
}
