/* Tea-cupfox visual system */
:root {
    --tea: #6B5C4D;
    --tea-soft: #A78B6D;
    --ink: #25211E;
    --paper: #F7F4EF;
    --paper-2: #EEE8E0;
    --text: #292724;
    --muted: #746E67;
    --accent: #D97732;
    --white: #ffffff;
    --line: rgba(37, 33, 30, .13);
    --line-strong: rgba(37, 33, 30, .22);
    --shadow-sm: 0 8px 24px rgba(37, 33, 30, .08);
    --shadow-md: 0 18px 50px rgba(37, 33, 30, .12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shell: min(1180px, calc(100vw - 40px));
    --reading: 760px;
    --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--text); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; line-height: 1.72; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
input[type="search"] { appearance: none; }
::selection { background: rgba(217,119,50,.22); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(217,119,50,.55); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 999; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 10px; transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 760; text-decoration: underline; text-decoration-color: rgba(107,92,77,.38); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.button { min-height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-weight: 760; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--accent { background: var(--accent); color: var(--white); box-shadow: 0 7px 18px rgba(217,119,50,.24); }
.button--accent:hover { background: #c9692c; box-shadow: 0 10px 24px rgba(217,119,50,.28); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #171411; }
.button--ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.06); }
.button--ghost:hover { background: rgba(255,255,255,.12); }
.button--ghost-dark { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button--ghost-dark:hover { border-color: var(--tea); background: rgba(107,92,77,.05); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,239,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(37,33,30,.08); }
.site-header__inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: 182px; }
.brand-lockup__logo { width: 72px; height: 38px; object-fit: contain; }
.brand-lockup__text { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand-lockup__text strong { color: var(--ink); font-size: 1.03rem; letter-spacing: .01em; }
.brand-lockup__text small { color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 5px; }
.nav-link { padding: 10px 12px; border-radius: 999px; color: #554f49; font-size: .92rem; font-weight: 690; transition: background-color .2s ease, color .2s ease; }
.nav-link:hover { color: var(--ink); background: rgba(107,92,77,.08); }
.nav-link.is-active { background: var(--ink); color: var(--white); }
.header-search { width: min(290px, 24vw); display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(37,33,30,.04); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 8px 10px 8px 12px; color: var(--text); font-size: .88rem; }
.header-search input::placeholder { color: #948d86; }
.header-search button { border: 0; background: var(--paper-2); color: var(--ink); border-radius: 999px; padding: 7px 11px; cursor: pointer; font-size: .82rem; font-weight: 750; }
.menu-button { display: none; border: 0; background: transparent; cursor: pointer; }
.hero-section { color: var(--white); background: var(--ink); overflow: hidden; position: relative; }
.hero-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 22%, rgba(167,139,109,.25), transparent 34%), linear-gradient(120deg, rgba(107,92,77,.12), transparent 55%); pointer-events: none; }
.hero-grid { position: relative; min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding-block: 64px; }
.hero-copy { max-width: 670px; }
.hero-copy h1, .page-hero h1, .search-hero h1, .not-found-section h1 { margin: 0; font-size: clamp(2.3rem, 4.4vw, 4.85rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { color: rgba(255,255,255,.76); max-width: 630px; font-size: 1.08rem; margin: 24px 0 26px; }
.hero-search { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 16px; margin-top: 24px; max-width: 650px; }
.hero-search > label { display: block; font-weight: 760; margin-bottom: 8px; }
.hero-search__row { display: flex; gap: 10px; }
.hero-search input { flex: 1; min-width: 0; background: var(--white); border: 0; border-radius: 999px; padding: 12px 16px; outline: none; color: var(--ink); }
.hero-search .button { min-width: 118px; }
.form-hint { margin: 9px 4px 0; color: rgba(255,255,255,.64); font-size: .82rem; }
.form-hint a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hero-actions, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-visual { position: relative; align-self: stretch; display: grid; place-items: center; }
.hero-visual > img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 42px; box-shadow: 0 30px 70px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.13); }
.hero-stat-card { position: absolute; min-width: 155px; background: rgba(247,244,239,.94); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.hero-stat-card span, .hero-stat-card small { display: block; color: var(--muted); font-size: .72rem; }
.hero-stat-card strong { display: block; font-size: 1.45rem; margin: 1px 0; }
.hero-stat-card--top { top: 11%; left: -8%; }
.hero-stat-card--bottom { right: -4%; bottom: 12%; }
.type-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 34px 0 42px; }
.section-heading { display: flex; justify-content: space-between; gap: 46px; align-items: end; margin-bottom: 28px; }
.section-heading h2, .editorial-band h2, .access-band h2, .query-examples h2, .faq-layout h2, .narrow-reading h2, .search-callout h2 { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); }
.section-heading--compact { align-items: center; margin-bottom: 18px; }
.section-heading--compact h2 { font-size: clamp(1.45rem, 2.3vw, 2.25rem); }
.section-heading--narrow { max-width: 820px; }
.type-pills { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.type-pill { min-height: 126px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--paper); transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.type-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(107,92,77,.28); }
.type-pill strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.type-pill span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.content-section { padding: 82px 0; }
.content-section--soft { background: var(--paper-2); }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.media-grid--home { grid-template-columns: repeat(4, minmax(0,1fr)); }
.media-grid--compact { grid-template-columns: repeat(3, minmax(0,1fr)); }
.media-card { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(37,33,30,.04); transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(107,92,77,.24); }
.media-card__image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: #dfd7ce; }
.media-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.media-card:hover .media-card__image { transform: scale(1.025); }
.media-card__type { position: absolute; left: 12px; top: 12px; background: rgba(37,33,30,.86); color: var(--white); border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 760; backdrop-filter: blur(6px); }
.media-card__body { padding: 17px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.media-card__title { margin: 0 0 8px; color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.media-card__title a:hover { color: var(--accent); }
.media-card__summary { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.media-card .text-link { margin-top: auto; font-size: .82rem; }
.tag-list { list-style: none; padding: 0; margin: 0 0 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { color: #675f58; background: var(--paper-2); border-radius: 999px; padding: 4px 8px; font-size: .72rem; }
.path-section { padding: 88px 0; background: var(--paper); }
.path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.path-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.path-card__media { aspect-ratio: 1.55; overflow: hidden; background: var(--paper-2); }
.path-card__media img { width: 100%; height: 100%; object-fit: cover; }
.path-card__body { position: relative; padding: 24px; }
.path-card__index { color: var(--tea-soft); font-size: .74rem; font-weight: 850; letter-spacing: .12em; }
.path-card h3 { margin: 8px 0 10px; color: var(--ink); font-size: 1.3rem; }
.path-card p { color: var(--muted); margin: 0 0 20px; }
.editorial-band { background: var(--ink); color: var(--white); padding: 90px 0; }
.editorial-band__grid { display: grid; grid-template-columns: 1fr .95fr; gap: 64px; align-items: center; }
.editorial-band__media img { width: 100%; border-radius: 28px; aspect-ratio: 4/3; object-fit: cover; }
.editorial-band h2 { color: var(--white); }
.editorial-band__copy p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.editorial-band .button--ghost-dark { border-color: rgba(255,255,255,.32); color: var(--white); }
.page-hero { background: var(--ink); color: var(--white); padding: 54px 0 64px; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.page-hero h1 { font-size: clamp(2.25rem, 4.1vw, 4.4rem); }
.page-hero__lead { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 680px; margin: 20px 0 0; }
.page-hero__grid > img { border-radius: 28px; width: 100%; aspect-ratio: 1.45; object-fit: cover; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 22px 60px rgba(0,0,0,.24); }
.breadcrumbs { margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; color: rgba(255,255,255,.57); font-size: .78rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; opacity: .55; }
.breadcrumbs a:hover { color: var(--white); }
.filter-section { padding: 28px 0 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 13px; font-size: .88rem; }
.filter-chip span { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(107,92,77,.1); color: var(--muted); font-size: .7rem; }
.filter-chip:hover { border-color: rgba(107,92,77,.35); }
.filter-chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-chip.is-active span { background: rgba(255,255,255,.12); color: var(--white); }
.filter-summary { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 15px 17px; background: var(--paper-2); border-radius: 14px; }
.filter-summary > div { display: flex; align-items: baseline; gap: 8px; }
.filter-summary__label { color: var(--muted); font-size: .76rem; }
.filter-summary p { margin: 0; color: var(--muted); font-size: .86rem; }
.filter-summary__count { color: var(--tea); font-size: .78rem; font-weight: 750; }
.search-callout { padding: 66px 0; background: var(--tea); color: var(--white); }
.search-callout__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 64px; align-items: center; }
.search-callout h2 { color: var(--white); }
.search-callout p { color: rgba(255,255,255,.76); }
.callout-form { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 16px; }
.callout-form label { display: block; font-weight: 760; margin-bottom: 8px; }
.callout-form > div { display: flex; gap: 8px; }
.callout-form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 11px 14px; outline: none; }
.split-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.split-layout__intro h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(1.8rem,3vw,3rem); line-height: 1.1; letter-spacing: -.035em; }
.split-layout__intro p:not(.eyebrow) { color: var(--muted); }
.brand-point-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.brand-point { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.brand-point h3 { color: var(--ink); margin: 0 0 9px; font-size: 1.05rem; }
.brand-point p { color: var(--muted); margin: 0; font-size: .9rem; }
.access-band { padding: 88px 0; background: var(--ink); color: var(--white); }
.access-band__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.access-band__visual img { border-radius: 28px; width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.access-band h2 { color: var(--white); }
.access-band p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.access-links { display: grid; gap: 9px; margin-top: 22px; }
.access-links a { position: relative; display: grid; gap: 3px; padding: 14px 44px 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.05); }
.access-links a:hover { background: rgba(255,255,255,.09); }
.access-links span { color: var(--tea-soft); font-size: .76rem; font-weight: 760; }
.access-links strong { font-size: .92rem; }
.access-links i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; }
.narrow-reading { max-width: 860px; }
.narrow-reading > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; }
.notice-box { margin-top: 24px; padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
.notice-box a { text-decoration: underline; text-underline-offset: 3px; }
.steps-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.step-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.step-card > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 820; font-size: .82rem; }
.step-card h3 { margin: 2px 0 8px; color: var(--ink); font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--muted); }
.query-examples { padding: 76px 0; background: var(--tea); color: var(--white); }
.query-examples__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.query-examples h2 { color: var(--white); }
.query-examples p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.query-chip-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.query-chip-grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 720; }
.query-chip-grid a:hover { background: rgba(255,255,255,.13); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; }
.faq-layout__intro { position: sticky; top: 112px; align-self: start; }
.faq-layout__intro p:not(.eyebrow) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 21px 2px; border: 0; background: transparent; text-align: left; font-weight: 760; cursor: pointer; color: var(--ink); }
.faq-item button span { transition: transform .2s ease; font-size: 1.2rem; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-item__panel { padding: 0 36px 20px 2px; color: var(--muted); }
.faq-item__panel p { margin: 0; }
.search-hero { background: var(--ink); color: var(--white); padding: 58px 0 54px; }
.search-hero__inner { max-width: 920px; }
.search-hero h1 { font-size: clamp(2.2rem,4vw,4.2rem); }
.search-hero__inner > p:not(.eyebrow) { color: rgba(255,255,255,.7); max-width: 700px; }
.search-form-large { display: flex; gap: 10px; margin-top: 24px; max-width: 800px; }
.search-form-large input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.98); color: var(--ink); border-radius: 999px; padding: 13px 17px; outline: none; }
.search-form-large .button { min-width: 112px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: rgba(255,255,255,.56); font-size: .8rem; }
.search-suggestions a { color: var(--white); border-bottom: 1px dotted rgba(255,255,255,.4); }
.search-results-section { min-height: 420px; }
.search-empty-intro > div:first-child { margin-bottom: 24px; }
.search-empty-intro h2 { margin: 0; color: var(--ink); font-size: clamp(1.7rem,3vw,2.7rem); letter-spacing: -.03em; }
.empty-state { text-align: center; max-width: 720px; margin: 0 auto; padding: 44px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.empty-state img { margin: 0 auto 22px; border-radius: 18px; max-height: 260px; object-fit: cover; }
.empty-state h2, .empty-state h3 { color: var(--ink); margin: 0 0 10px; }
.empty-state p { color: var(--muted); }
.empty-state .inline-actions { justify-content: center; }
.not-found-section { min-height: 66vh; display: grid; align-items: center; padding: 80px 0; }
.not-found-section__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: center; }
.not-found-section h1 { color: var(--ink); font-size: clamp(2.4rem,5vw,4.5rem); }
.not-found-section p { color: var(--muted); max-width: 620px; }
.not-found-section img { border-radius: 26px; }
.not-found-code { margin: 0 0 4px !important; color: var(--accent) !important; font-size: 1rem; font-weight: 850; letter-spacing: .18em; }
.site-footer { background: #1d1a18; color: rgba(255,255,255,.72); padding: 56px 0 22px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; }
.footer-brand { display: inline-block; color: var(--white); font-size: 1.22rem; font-weight: 820; }
.footer-brand span { color: var(--tea-soft); font-size: .8rem; }
.site-footer__intro p { max-width: 350px; color: rgba(255,255,255,.55); font-size: .86rem; }
.footer-group h2 { color: var(--white); font-size: .88rem; margin: 0 0 12px; }
.footer-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-group a { color: rgba(255,255,255,.6); font-size: .83rem; }
.footer-group a:hover { color: var(--white); }
.site-footer__bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; font-size: .76rem; color: rgba(255,255,255,.42); }
.site-footer__bottom p { margin: 0; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; z-index: 40; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (max-width: 1120px) {
    :root { --shell: min(100% - 32px, 1060px); }
    .site-header__inner { grid-template-columns: auto 1fr auto; gap: 14px; }
    .site-nav { justify-content: flex-end; }
    .nav-link { padding-inline: 9px; font-size: .86rem; }
    .header-search { display: none; }
    .hero-grid { gap: 38px; }
    .hero-stat-card--top { left: -2%; }
    .media-grid--home { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .type-pills { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
    :root { --shell: min(100% - 28px, 820px); }
    body.menu-open { overflow: hidden; }
    .site-header__inner { min-height: 68px; grid-template-columns: 1fr auto; }
    .brand-lockup__logo { width: 64px; height: 34px; }
    .menu-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; }
    .menu-button__bars { display: grid; gap: 3px; width: 19px; }
    .menu-button__bars span { height: 2px; background: var(--ink); border-radius: 4px; transition: transform .2s ease, opacity .2s ease; }
    .menu-button__label { font-size: .82rem; font-weight: 760; }
    .menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(2) { opacity: 0; }
    .menu-button[aria-expanded="true"] .menu-button__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .site-nav { position: fixed; left: 14px; right: 14px; top: 74px; display: grid; align-content: start; justify-content: stretch; gap: 7px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 18px; padding: 12px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .nav-link { display: block; padding: 11px 13px; border-radius: 10px; }
    .hero-grid, .page-hero__grid, .editorial-band__grid, .access-band__grid, .query-examples__grid, .faq-layout, .split-layout, .search-callout__grid, .not-found-section__grid { grid-template-columns: 1fr; }
    .hero-grid { min-height: 0; padding-block: 52px; gap: 36px; }
    .hero-visual { max-width: 620px; }
    .hero-stat-card--top { left: 3%; }
    .page-hero__grid { gap: 34px; }
    .page-hero__grid > img { max-height: 380px; }
    .media-grid, .media-grid--home, .media-grid--compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .path-grid { grid-template-columns: 1fr; }
    .path-card { grid-template-columns: .75fr 1.25fr; grid-template-rows: auto; }
    .path-card__media { aspect-ratio: auto; min-height: 240px; }
    .type-pills { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .filter-summary { grid-template-columns: 1fr auto; }
    .filter-summary p { grid-row: 2; grid-column: 1 / -1; }
    .faq-layout__intro { position: static; }
    .brand-point-grid, .steps-list { grid-template-columns: 1fr; }
    .query-chip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-footer__grid { grid-template-columns: 1.4fr repeat(2,1fr); }
    .site-footer__grid .footer-group:last-child { grid-column: 2 / -1; }
}
@media (max-width: 620px) {
    :root { --shell: calc(100% - 24px); --radius-lg: 24px; }
    .hero-section, .page-hero, .search-hero { border-radius: 0; }
    .hero-copy h1, .page-hero h1, .search-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
    .hero-search__row, .callout-form > div, .search-form-large { flex-direction: column; }
    .hero-search .button, .callout-form .button, .search-form-large .button { width: 100%; }
    .hero-actions .button { flex: 1 1 100%; }
    .hero-stat-card { min-width: 135px; padding: 11px 13px; }
    .hero-stat-card--bottom { right: 2%; }
    .type-pills, .media-grid, .media-grid--home, .media-grid--compact, .query-chip-grid { grid-template-columns: 1fr; }
    .type-pill { min-height: 0; }
    .content-section, .path-section, .editorial-band, .access-band, .query-examples { padding-block: 58px; }
    .path-card { grid-template-columns: 1fr; }
    .path-card__media { min-height: 0; aspect-ratio: 16/10; }
    .section-heading h2, .editorial-band h2, .access-band h2, .query-examples h2, .faq-layout h2, .narrow-reading h2, .search-callout h2 { font-size: clamp(1.6rem, 8vw, 2.3rem); }
    .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .filter-chip { flex: 0 0 auto; }
    .filter-summary { grid-template-columns: 1fr; }
    .filter-summary p { grid-row: auto; grid-column: auto; }
    .filter-summary__count { justify-self: start; }
    .step-card { grid-template-columns: 50px 1fr; padding: 18px; gap: 12px; }
    .step-card > span { width: 44px; height: 44px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .site-footer__intro { grid-column: 1 / -1; }
    .site-footer__grid .footer-group:last-child { grid-column: 1 / -1; }
    .site-footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) {
    .brand-lockup__text small { display: none; }
    .brand-lockup { min-width: 0; }
    .hero-grid { padding-top: 42px; }
    .hero-visual > img { border-radius: 24px; }
    .hero-stat-card { display: none; }
    .media-card__body { padding: 15px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__intro, .site-footer__grid .footer-group:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .back-to-top, .menu-button, .hero-search, .header-search, .filter-bar, .button { display: none !important; }
    body { background: #fff; color: #000; }
    .hero-section, .page-hero, .search-hero, .editorial-band, .access-band, .query-examples { background: #fff; color: #000; }
    .hero-copy h1, .page-hero h1, .search-hero h1, .editorial-band h2, .access-band h2, .query-examples h2 { color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* Additional detail states and progressive enhancement */
.media-card:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.media-card a:focus-visible, .media-card button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .media-card:hover { background-color: rgba(107,92,77,.05); } }
.path-card:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.path-card a:focus-visible, .path-card button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .path-card:hover { background-color: rgba(167,139,109,.07); } }
.brand-point:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.brand-point a:focus-visible, .brand-point button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .brand-point:hover { background-color: rgba(217,119,50,.04); } }
.step-card:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.step-card a:focus-visible, .step-card button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .step-card:hover { background-color: rgba(37,33,30,.035); } }
.type-pill:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.type-pill a:focus-visible, .type-pill button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .type-pill:hover { background-color: rgba(107,92,77,.045); } }
.filter-chip:focus-within { box-shadow: 0 0 0 3px rgba(217,119,50,.18), var(--shadow-sm); }
.filter-chip a:focus-visible, .filter-chip button:focus-visible { outline-color: var(--accent); }
@media (hover: hover) { .filter-chip:hover { background-color: rgba(37,33,30,.028); } }
.u-gap-1 { gap: 2px; }
.u-gap-2 { gap: 4px; }
.u-gap-3 { gap: 6px; }
.u-gap-4 { gap: 8px; }
.u-gap-5 { gap: 10px; }
.u-gap-6 { gap: 12px; }
.u-gap-7 { gap: 14px; }
.u-gap-8 { gap: 16px; }
.u-gap-9 { gap: 18px; }
.u-gap-10 { gap: 20px; }
.u-gap-11 { gap: 22px; }
.u-gap-12 { gap: 24px; }
.u-gap-13 { gap: 26px; }
.u-gap-14 { gap: 28px; }
.u-gap-15 { gap: 30px; }
.u-gap-16 { gap: 32px; }
.u-gap-17 { gap: 34px; }
.u-gap-18 { gap: 36px; }
.u-gap-19 { gap: 38px; }
.u-gap-20 { gap: 40px; }
.u-gap-21 { gap: 42px; }
.u-gap-22 { gap: 44px; }
.u-gap-23 { gap: 46px; }
.u-gap-24 { gap: 48px; }
.u-mt-1 { margin-top: 4px; }
.u-mb-1 { margin-bottom: 4px; }
.u-mt-2 { margin-top: 8px; }
.u-mb-2 { margin-bottom: 8px; }
.u-mt-3 { margin-top: 12px; }
.u-mb-3 { margin-bottom: 12px; }
.u-mt-4 { margin-top: 16px; }
.u-mb-4 { margin-bottom: 16px; }
.u-mt-5 { margin-top: 20px; }
.u-mb-5 { margin-bottom: 20px; }
.u-mt-6 { margin-top: 24px; }
.u-mb-6 { margin-bottom: 24px; }
.u-mt-7 { margin-top: 28px; }
.u-mb-7 { margin-bottom: 28px; }
.u-mt-8 { margin-top: 32px; }
.u-mb-8 { margin-bottom: 32px; }
.u-mt-9 { margin-top: 36px; }
.u-mb-9 { margin-bottom: 36px; }
.u-mt-10 { margin-top: 40px; }
.u-mb-10 { margin-bottom: 40px; }
.u-mt-11 { margin-top: 44px; }
.u-mb-11 { margin-bottom: 44px; }
.u-mt-12 { margin-top: 48px; }
.u-mb-12 { margin-bottom: 48px; }
.u-mt-13 { margin-top: 52px; }
.u-mb-13 { margin-bottom: 52px; }
.u-mt-14 { margin-top: 56px; }
.u-mb-14 { margin-bottom: 56px; }
.u-mt-15 { margin-top: 60px; }
.u-mb-15 { margin-bottom: 60px; }
.u-mt-16 { margin-top: 64px; }
.u-mb-16 { margin-bottom: 64px; }
