@layer discovery {
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .brand-header { grid-template-columns: minmax(0,1fr) auto; min-height: 70px; padding: 12px 20px; gap: 12px; }
  .wordmark { font-size: 1.0625rem; letter-spacing: -.045em; gap: 8px; }
  .wordmark img { width: 36px; height: 36px; }
  .header-actions { grid-column: 2; display: flex; }
  .header-search { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; gap: 7px; border: 1px solid var(--line); background: transparent; border-radius: 30px; color: var(--ink); font-size: .875rem; font-weight: 600; }
  .desktop-browse, .header-collections { display: none; }
  #experience { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .bottom-navigation {
    position: fixed; z-index: 3; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 6px max(6px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
    border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -8px 24px #19291c08;
  }
  .bottom-navigation > a, .bottom-navigation > button { display: grid; place-content: center; justify-items: center; min-width: 0; gap: 3px; min-height: 57px; padding: 3px 0; border: 0; background: transparent; color: var(--soft); font-size: .875rem; font-weight: 500; }
  .bottom-navigation > :is(a,button) > span:first-child { position: relative; display: grid; place-items: center; width: 45px; height: 27px; border-radius: 30px; }
  .bottom-navigation :is([aria-current],.is-selected) { color: var(--accent); font-weight: 700; }
  .bottom-navigation :is([aria-current],.is-selected) > span:first-child { background: color-mix(in srgb,var(--accent) 12%,var(--paper)); }
  .bottom-navigation small { position: absolute; right: -2px; top: -4px; border-radius: 20px; padding: 1px 4px; min-width: 18px; background: var(--button); color: var(--button-text); font-size: .75rem; line-height: 16px; }
  .site-frame[data-device="mobile"] .bottom-navigation { left: 50%; right: auto; width: min(430px,100%); transform: translateX(-50%); }
  .toast { bottom: calc(94px + env(safe-area-inset-bottom)); }
  .discovery-home, .search-page, .watch-discover { width: calc(100% - 40px); max-width: 1280px; margin: auto; padding-bottom: 32px; }
  .discovery-welcome { padding: 26px 0 0; }
  .discovery-welcome h1 { font: 400 clamp(2.5rem,10.8cqw,4.5rem)/1 var(--serif); letter-spacing: -.025em; margin: 12px 0; }
  .discovery-welcome h1 em { color: var(--accent); font-weight: 400; }
  .discovery-welcome p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; color: var(--soft); }
  .discovery-welcome .eyebrow { font-size: .75rem; letter-spacing: .06em; }
  .discovery-launcher { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; margin-top: 23px; text-align: left; background: #fffaf0; border: 1px solid #c9cfbf; border-radius: 12px; color: #576450; min-height: 56px; font-size: 1rem; }
  .discovery-launcher kbd { display: none; }
  .topic-rail, .search-facets { display: flex; overflow: auto; scrollbar-width: none; gap: 8px; padding: 16px 0 20px; scroll-padding: 0 20px; }
  .topic-rail::-webkit-scrollbar, .search-facets::-webkit-scrollbar { display: none; }
  .topic-chip { flex: none; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 30px; font-size: .875rem; font-weight: 650; background: transparent; color: var(--soft); white-space: nowrap; }
  .topic-chip[aria-pressed=true] { background: var(--button); color: var(--button-text); border-color: var(--button); }
  .topic-chip:hover { border-color: var(--accent); }
  .discovery-lead { display: grid; gap: 20px; }
  .lead-story { position: relative; overflow: hidden; border-radius: 16px; background: #263c28; }
  .lead-story > a { display: block; position: relative; min-height: 340px; aspect-ratio: 1; color: #fff7e3; }
  .lead-story > a > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
  :is(.lead-story > a,.watch-feature,.navigation-cards a) > img[src$="-still.jpg"] { transform: scale(1.36); }
  .lead-story-shade { position: absolute; inset: 0; background: linear-gradient(0deg,#08180ef5 0%,#08180ea8 40%,#08180e00 85%); }
  .lead-story-content { position: absolute; inset: auto 20px 23px; display: grid; gap: 8px; }
  .lead-story-content > small { font-size: .75rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .035em; color: #e4d9b6; }
  .lead-story-content > strong { font: 400 clamp(2.25rem,9.5cqw,4rem)/1 var(--serif); letter-spacing: -.015em; max-width: 15ch; }
  .lead-story-content > span:not(.lead-cta) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.45; max-width: 44ch; color: #eee6d6; }
  .lead-story-content .lead-cta { display: flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 650; margin-top: 6px; }
  .lead-story .card-save { top: 14px; right: 14px; }
  .home-side { display: grid; gap: 28px; }
  .continue-card { display: flex; gap: 13px; align-items: center; padding: 17px; border: 1px solid #ced7c3; background: #e8edde; border-radius: 12px; }
  .continue-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: #255734; background: #d9e2ce; border-radius: 50%; }
  .continue-card > span:nth-child(2) { display: grid; gap: 5px; }
  .continue-card small { font-size: .75rem; letter-spacing: .035em; color: #4c6347; }
  .continue-card strong { font-size: 1rem; line-height: 1.3; }
  .continue-card span span { font-size: .875rem; line-height: 1.5; color: #596450; }
  .continue-card > svg { display: none; }
  .home-quick h2, .discovery-section .section-heading h2, .watch-discover .section-heading h2 { font: 400 clamp(1.875rem,7cqw,2.75rem)/1.1 var(--serif); letter-spacing: -.01em; }
  .home-quick > div:last-child { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
  .home-quick a { display: grid; justify-items: center; gap: 9px; font-size: .875rem; font-weight: 600; min-height: 80px; }
  .home-quick a > span { display: grid; place-items: center; height: 52px; width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); }
  .home-quick a:hover > span { background: #e5eadb; }
  .discovery-section { margin-top: 30px; }
  .discovery-section .section-heading { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 16px; }
  .discovery-section .section-heading a { white-space: nowrap; font-size: .875rem; }
  .discovery-story-list { display: grid; gap: 0; }
  .compact-story { position: relative; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 16px 0; }
  .compact-story > a { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
  .compact-story img { width: 86px; height: 90px; flex: none; border-radius: 9px; object-fit: cover; }
  .compact-story > a > span { display: grid; gap: 5px; }
  .compact-story small { color: var(--soft); font-size: .75rem; line-height: 1.4; }
  .compact-story strong { font-size: 1rem; line-height: 1.35; }
  .compact-story span span { font-size: .75rem; color: var(--soft); line-height: 1.4; }
  .compact-story > .icon-button { align-self: center; }
  .trail-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
  .trail-rail .trail-card { scroll-snap-align: start; border-radius: 12px; }
  .trail-rail .trail-card h3 { font-size: 1.875rem; }
  .maker-card { border-radius: 12px; }
  .maker-card h3 { font-size: 1.625rem; }
  .watch-discover .discovery-welcome { padding-bottom: 24px; }
  .watch-feature { display: block; position: relative; height: 380px; border-radius: 16px; overflow: hidden; color: #fff7e8; }
  .watch-feature > img { width: 100%; height: 100%; object-fit: cover; }
  .watch-feature > span:last-child { position: absolute; inset: auto 22px 24px; display: grid; gap: 11px; }
  .watch-feature > span > svg { display: grid; box-sizing: content-box; padding: 12px; border: 1px solid #f4e8c98c; border-radius: 50%; }
  .watch-feature strong { font: 400 clamp(2.5rem,11cqw,5rem)/1 var(--serif); }
  .watch-feature small { font-size: .75rem; }
  .watch-feature span span { font-size: 1rem; font-weight: 650; }
  .watch-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .watch-grid article { position: relative; }
  .watch-grid a { display: grid; gap: 8px; }
  .watch-grid a > span { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1.65; }
  .watch-grid img { width: 100%; height: 100%; object-fit: cover; }
  .watch-grid a > span small { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 5px; background: #10170fe6; color: #fff; font-size: .75rem; }
  .watch-grid i { position: absolute; bottom: 10px; right: 10px; display: grid; place-items: center; border-radius: 50%; background: #f3e6cb; width: 36px; height: 36px; color: #273722; }
  .watch-grid strong { font-size: 1.125rem; line-height: 1.4; }
  .watch-grid a > small { font-size: .875rem; color: var(--soft); }
  .library-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 24px; }
  .library-tabs a { display: flex; align-items: center; gap: 8px; min-height: 50px; font-size: .875rem; color: var(--soft); }
  .library-tabs a[aria-current] { border-bottom: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
  .library-tabs span { background: #e2e7d8; color: #364f2c; border-radius: 20px; padding: 2px 7px; font-size: .75rem; }
  .library-empty { text-align: center; padding: 26px 10px 35px; }
  .library-empty > span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #e7ecde; color: var(--accent); margin: 0 auto 20px; }
  .library-empty h2 { font: 400 2rem/1.15 var(--serif); }
  .library-empty p { color: var(--soft); max-width: 30ch; margin: 12px auto 20px; }
  .library-collection-card { display: flex; gap: 16px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; align-items: center; margin-top: 22px; }
  .library-collection-card > span { display: grid; gap: 6px; }
  .library-collection-card small { font-size: .875rem; color: var(--soft); line-height: 1.5; }
  .search-heading { padding: 26px 0 22px; }
  .search-heading h1 { font: 400 clamp(2.25rem,9cqw,4.5rem)/1.05 var(--serif); letter-spacing: -.025em; margin: 12px 0; }
  .search-heading p:not(.eyebrow) { max-width: 46ch; font-size: 1rem; line-height: 1.5; color: var(--soft); }
  .search-page.has-results .search-heading, .search-page:has(#discovery-query:focus) .search-heading { padding: 15px 0 0; }
  .search-page.has-results .search-heading > *, .search-page:has(#discovery-query:focus) .search-heading > * { display: none; }
  .search-page.has-results .search-heading h1, .search-page:has(#discovery-query:focus) .search-heading h1 { display: block; font: 400 1.75rem/1.1 var(--serif); margin: 0 0 17px; }
  .discovery-search-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 15px; border: 1px solid #a3b298; border-radius: 12px; background: #fffaf1; color: #375530; min-height: 58px; }
  .discovery-search-input:focus-within { outline: 2px solid #527149; outline-offset: 2px; }
  .discovery-search-input input { min-width: 0; flex: 1; font-size: 1rem; min-height: 44px; border: 0; outline: 0; background: transparent; color: #253c22; padding: 0; }
  .discovery-search-input input::-webkit-search-cancel-button { display: none; }
  .search-facets { padding-bottom: 16px; }
  .search-facets .topic-chip { padding-inline: 15px; }
  .search-region-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
  .search-region-row label { font-size: .875rem; color: var(--soft); }
  .search-region-row select { appearance: none; max-width: 60%; padding: 10px 30px 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff9ef; color: #2d4a27; font-size: 1rem; background-image: linear-gradient(45deg,transparent 50%,#45613b 50%),linear-gradient(135deg,#45613b 50%,transparent 50%); background-position: calc(100% - 17px) 20px,calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
  .search-body h2 { font-size: 1rem; line-height: 1.5; margin-bottom: 14px; }
  #search-suggestions > section { padding-top: 25px; }
  .suggestion-chips { display: flex; flex-wrap: wrap; gap: 9px; }
  .suggestion-chip { min-height: 44px; max-width: 100%; overflow-wrap: anywhere; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff8e9; color: var(--ink); text-align: left; font-size: .875rem; }
  .suggestion-chip:hover { border-color: var(--accent); }
  .search-recent > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .search-recent h2 { margin: 0; }
  .place-discovery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .place-discovery a { position: relative; height: 106px; overflow: hidden; border-radius: 10px; background: #25402c; }
  .place-discovery img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
  .place-discovery a::after { position: absolute; content: ''; inset: 25% 0 0; background: linear-gradient(transparent,#081b10c9); }
  .place-discovery span { position: absolute; z-index: 1; left: 13px; bottom: 12px; font-size: 1rem; color: #fff8e6; font-weight: 650; }
  .search-shortcuts a { display: flex; align-items: center; gap: 12px; min-height: 54px; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--accent); }
  .results-heading { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 19px 0 6px; }
  .results-heading p { font-size: .875rem; color: var(--soft); overflow-wrap: anywhere; }
  .discovery-result { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
  .discovery-result > img, .result-monogram { flex: none; width: 78px; height: 86px; object-fit: cover; border-radius: 8px; }
  .result-monogram { display: grid; place-items: center; background: #dde5d3; color: #35502a; font: 400 1.75rem var(--serif); }
  .discovery-result > span:not(.result-monogram) { display: grid; gap: 5px; flex: 1; min-width: 0; }
  .discovery-result small { font-size: .75rem; color: var(--soft); line-height: 1.4; }
  .discovery-result strong { font-size: 1rem; line-height: 1.4; }
  .discovery-result span span { font-size: .875rem; color: var(--soft); line-height: 1.4; }
  .discovery-result em { font-size: .75rem; color: var(--accent); }
  .discovery-result > svg { display: none; }
  .search-empty { text-align: center; padding: 35px 12px; }
  .search-empty > svg { margin-bottom: 15px; color: var(--soft); }
  .search-empty h2 { font: 400 2rem/1.1 var(--serif); }
  .search-empty p { color: var(--soft); line-height: 1.6; margin: 12px 0 20px; }
  .search-empty .suggestion-chips { justify-content: center; margin-top: 22px; }
  .overlay[data-mode=navigation] { width: min(100%,720px); max-height: calc(100dvh - 35px); margin: auto auto 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .overlay[data-mode=navigation] .dialog-content { max-height: calc(100dvh - 36px); padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sheet-handle { width: 40px; height: 4px; background: #bbc4af; border-radius: 4px; margin: 0 auto 22px; }
  @container (max-width:959px) {
    #experience:has(#discovery-query:focus) .bottom-navigation { display: none; }
    #experience:has(#discovery-query:focus) { padding-bottom: 24px; }
  }
  .overlay[data-mode=navigation] h2 { font: 400 2.5rem/1.05 var(--serif); margin: 7px 0; }
  .overlay[data-mode=navigation] .sheet-intro { font-size: .875rem; line-height: 1.5; margin: 10px 0 20px; }
  .overlay[data-mode=navigation] .dialog-close { top: 32px; right: 16px; }
  .navigation-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .navigation-cards a { position: relative; display: flex; align-items: end; min-height: 143px; overflow: hidden; border-radius: 11px; background: #283b2a; color: #fff5df; }
  .navigation-cards a > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .48; }
  .navigation-cards a::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg,#0c2415ef,transparent); }
  .navigation-cards a > span { position: relative; z-index: 1; display: grid; gap: 7px; padding: 15px; }
  .navigation-cards strong { font-size: 1rem; }
  .navigation-cards small { font-size: .875rem; line-height: 1.35; color: #e0e7d4; }
  .navigation-cards a:hover, .navigation-cards a[aria-current] { outline: 2px solid #a0b47b; outline-offset: -2px; }
  .sheet-library { display: flex; align-items: center; gap: 14px; padding: 18px 0 0; color: #314d29; }
  .sheet-library > span { display: grid; gap: 5px; }
  .sheet-library small { font-size: .875rem; line-height: 1.5; }
  @container (min-width: 640px) {
    .discovery-home, .search-page, .watch-discover { width: 90%; }
    .discovery-welcome { padding-top: 36px; }
    .discovery-welcome h1 { font-size: 4rem; }
    .lead-story > a { aspect-ratio: 1.6; }
    .home-side { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
    .home-quick > div:last-child { margin-top: 14px; }
    .home-quick h2 { font-size: 1.875rem; }
    .trail-rail { grid-auto-columns: 46%; }
    .watch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .watch-feature { height: 450px; }
    .place-discovery { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .overlay[data-mode=navigation] .dialog-content { padding-inline: 30px; }
  }
  @container (min-width: 960px) {
    #experience { padding-bottom: 0; }
    .brand-header { grid-template-columns: auto minmax(0,1fr) auto; padding: 16px 4%; }
    .header-actions { grid-column: 3; gap: 8px; }
    .desktop-browse, .header-collections { display: inline-grid; }
    .bottom-navigation { display: none; }
    .toast { bottom: 24px; }
    .discovery-welcome { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,400px); align-items: end; gap: 60px; padding-top: 44px; }
    .discovery-welcome h1 { font-size: 4.75rem; }
    .discovery-welcome h1 br { display: none; }
    .discovery-launcher { margin: 0 0 4px; }
    .discovery-launcher kbd { display: block; margin-left: auto; border: 1px solid #d8decd; border-radius: 4px; padding: 2px 7px; font-size: .875rem; }
    .topic-rail { padding-block: 24px; }
    .discovery-lead { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 28px; }
    .lead-story > a { aspect-ratio: 1.75; min-height: 390px; }
    :is(.lead-story > a,.watch-feature) > img[src$="-still.jpg"] { transform: scale(1.08); }
    .lead-story-content { inset: auto 28px 28px; gap: 11px; }
    .lead-story-content > strong { font-size: 3.25rem; }
    .home-side { grid-template-columns: minmax(0,1fr); align-content: space-between; }
    .home-quick > div:last-child { gap: 12px; }
    .home-quick a > span { height: 68px; }
    .continue-card { padding: 22px; }
    .discovery-story-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
    .compact-story { align-items: start; }
    .compact-story > a { display: grid; }
    .compact-story img { width: 100%; height: auto; aspect-ratio: 1.7; }
    .compact-story > button { position: absolute; right: 10px; top: 26px; background: #f6f0df; }
    .compact-story strong { font-size: 1.125rem; }
    .discovery-section { margin-top: 38px; }
    .trail-rail { grid-auto-columns: minmax(0,1fr); overflow: visible; }
    .watch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .watch-discover .discovery-welcome { display: block; }
    .watch-discover .discovery-welcome h1 br { display: none; }
    .search-workspace { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 42px; align-items: start; }
    .search-tools { position: sticky; top: 25px; }
    .search-facets { flex-wrap: wrap; overflow: visible; }
    #search-suggestions > section:first-child { padding-top: 0; }
    .results-heading { padding-top: 0; }
    .discovery-result { padding: 20px 0; }
    .discovery-result > img,.result-monogram { width: 100px; height: 95px; }
    .discovery-result > svg { display: block; }
    .search-heading { padding-block: 40px; }
    .search-page.has-results .search-heading, .search-page:has(#discovery-query:focus) .search-heading { padding-block: 35px; }
    .search-page.has-results .search-heading h1, .search-page:has(#discovery-query:focus) .search-heading h1 { font-size: 3rem; margin: 0; }
    .library-page .discovery-story-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .library-empty { padding-block: 50px; }
    .library-collection-card { max-width: 620px; }
    .navigation-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }
  @media(min-width:960px) {
    .overlay[data-mode=navigation] { margin: auto; width: min(820px,calc(100% - 40px)); border-radius: 20px; border-bottom: 1px solid var(--line); }
    .overlay[data-mode=navigation] .dialog-content { padding: 30px; }
    .sheet-handle { display: none; }
    .navigation-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }
  @media(prefers-reduced-motion:no-preference) {
    .overlay[data-mode=navigation][open] { animation: sheet-in .2s ease-out; }
    @keyframes sheet-in { from { opacity: .5; transform: translateY(20px); } }
  }
}
