:root {
    --paper: #fff7ef;
    --paper-strong: #fffdf9;
    --paper-deep: #f8ebde;
    --ink: #2a211c;
    --ink-soft: #69594d;
    --ink-faint: #998778;
    --line: rgba(83, 63, 46, 0.12);
    --line-strong: rgba(83, 63, 46, 0.18);
    --card: rgba(255, 252, 247, 0.8);
    --card-strong: rgba(255, 255, 255, 0.92);
    --tea: #6f9f84;
    --tea-soft: #dff0e3;
    --amber: #d9783d;
    --amber-deep: #b95a2d;
    --amber-soft: #f8dfc8;
    --berry: #d98a76;
    --gold: #efb24d;
    --shadow: 0 18px 40px rgba(92, 55, 24, 0.08);
    --shadow-strong: 0 24px 56px rgba(92, 55, 24, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --pill: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 10% 14%, rgba(111, 159, 132, 0.2), transparent 24%),
        radial-gradient(circle at 84% 12%, rgba(239, 178, 77, 0.18), transparent 24%),
        radial-gradient(circle at 66% 86%, rgba(217, 138, 118, 0.14), transparent 22%),
        linear-gradient(180deg, #fffdf8 0%, #fff6ed 42%, #fdf0e2 100%);
    color: var(--ink);
    font-family: "Manrope", "Noto Sans TC", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 18px,
            rgba(140, 109, 77, 0.018) 18px,
            rgba(140, 109, 77, 0.018) 19px
        );
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

.page-glow {
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.55;
    pointer-events: none;
    position: fixed;
    z-index: -3;
}

.page-glow-a {
    background: rgba(217, 120, 61, 0.24);
    height: 420px;
    left: -120px;
    top: 60px;
    width: 420px;
}

.page-glow-b {
    background: rgba(111, 159, 132, 0.22);
    bottom: -80px;
    height: 360px;
    right: -80px;
    width: 360px;
}

.page-texture {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.38), transparent 55%);
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    background: rgba(34, 25, 19, 0.06);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 2px 6px;
}

button,
input,
select {
    font: inherit;
}

button {
    background: none;
    border: none;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
    width: 100%;
}

.site-nav {
    background: rgba(255, 250, 243, 0.64);
    backdrop-filter: blur(22px) saturate(1.5);
    border-bottom: 1px solid transparent;
    left: 0;
    position: sticky;
    top: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    z-index: 40;
}

.site-nav.is-scrolled {
    background: rgba(255, 250, 243, 0.92);
    border-color: rgba(83, 63, 46, 0.08);
    box-shadow: 0 10px 28px rgba(42, 27, 16, 0.05);
}

.nav-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 78px;
}

.site-logo {
    align-items: center;
    display: inline-flex;
    gap: 12px;
}

.logo-mark {
    background: linear-gradient(135deg, var(--tea), var(--amber));
    border-radius: var(--pill);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.logo-text {
    font-family: "Noto Serif TC", serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 0.96rem;
    font-weight: 700;
    position: relative;
}

.nav-links a::after {
    background: linear-gradient(90deg, var(--tea), var(--amber));
    border-radius: var(--pill);
    bottom: -10px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.2s ease;
    width: 0;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta,
.button {
    align-items: center;
    border-radius: var(--pill);
    display: inline-flex;
    justify-content: center;
    padding: 14px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.nav-cta,
.button-primary {
    background: linear-gradient(135deg, var(--tea), var(--amber));
    box-shadow: 0 14px 28px rgba(111, 159, 132, 0.18);
    color: #fff;
    font-weight: 800;
}

.nav-cta:hover,
.button-primary:hover {
    box-shadow: 0 18px 34px rgba(111, 159, 132, 0.24);
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(111, 159, 132, 0.18);
    color: var(--ink);
    font-weight: 700;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: translateY(-2px);
}

.hero {
    padding: 72px 0 48px;
}

.hero-layout {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.eyebrow {
    color: var(--tea);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.hero-panel h2,
.formula-callout h3 {
    font-family: "Noto Serif TC", serif;
    line-height: 1.15;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero-copy h1 em {
    background: linear-gradient(135deg, var(--tea), var(--amber));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-style: normal;
}

.hero-description,
.section-heading p,
.panel-copy,
.formula-card p,
.formula-callout p,
.industry-card p,
.results-helper,
.footer-copy {
    color: var(--ink-soft);
}

.hero-description {
    font-size: 1.1rem;
    margin-top: 24px;
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 36px;
}

.stat-card,
.industry-card,
.formula-card,
.formula-callout,
.atlas-card,
.finder-shell,
.insight-card,
.drink-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: var(--shadow);
}

.stat-card,
.industry-card,
.formula-card,
.formula-callout,
.atlas-card,
.insight-card,
.drink-card {
    border-radius: var(--radius-lg);
}

.stat-card {
    backdrop-filter: blur(18px);
    min-height: 132px;
    padding: 22px 20px;
}

.stat-value {
    color: var(--amber-deep);
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-label {
    color: var(--ink-soft);
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 8px;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(250, 242, 233, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    padding: 30px;
    position: relative;
}

.hero-panel::after {
    background: radial-gradient(circle, rgba(217, 120, 61, 0.12), rgba(111, 159, 132, 0.08) 46%, transparent 72%);
    content: "";
    inset: auto -60px -60px auto;
    pointer-events: none;
    position: absolute;
    width: 220px;
    height: 220px;
}

.panel-label,
.callout-label,
.mini-label,
.formula-step,
.insight-kicker,
.editorial-kicker {
    color: var(--ink-faint);
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-top: 12px;
}

.panel-copy {
    font-size: 0.98rem;
    margin-top: 12px;
}

.route-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.finder-route-buttons {
    margin-bottom: 18px;
}

.route-button {
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(253, 245, 237, 0.72));
    border: 1px solid rgba(111, 159, 132, 0.12);
    border-radius: 18px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 92px;
    padding: 16px;
    text-align: left;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder-route-buttons .route-button {
    min-height: 78px;
    width: fit-content;
}

.route-button:hover {
    transform: translateY(-2px);
}

.route-button.is-active {
    background: linear-gradient(135deg, rgba(111, 159, 132, 0.16), rgba(239, 178, 77, 0.14), rgba(217, 120, 61, 0.1));
    border-color: rgba(111, 159, 132, 0.4);
    box-shadow: 0 12px 28px rgba(111, 159, 132, 0.14);
}

.route-button-title {
    font-size: 1rem;
    font-weight: 800;
}

.route-button-hint {
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.hero-snapshot-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.snapshot-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 240, 230, 0.72));
    border: 1px solid rgba(111, 159, 132, 0.12);
    border-radius: 18px;
    min-height: 154px;
    padding: 18px;
}

.snapshot-card strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    margin-top: 8px;
}

.snapshot-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 10px;
}

.panel-note {
    background: linear-gradient(135deg, rgba(111, 159, 132, 0.12), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(111, 159, 132, 0.14);
    border-radius: 18px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-top: 16px;
    padding: 16px 18px;
}

.section {
    padding: 84px 0;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(223, 240, 227, 0.28), rgba(255, 255, 255, 0));
}

.section-finder {
    padding-bottom: 112px;
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    font-size: 1.02rem;
    max-width: 52ch;
}

.industry-grid,
.formula-grid,
.category-grid,
.finder-insights,
.drinks-grid {
    display: grid;
    gap: 18px;
}

.industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.industry-card {
    min-height: 230px;
    padding: 22px;
}

.industry-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.9), rgba(247, 231, 215, 0.78));
}

.industry-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(249, 255, 249, 0.9), rgba(230, 245, 234, 0.78));
}

.industry-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 234, 218, 0.78));
}

.industry-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(255, 249, 243, 0.9), rgba(243, 226, 201, 0.78));
}

.industry-card:nth-child(5) {
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.9), rgba(246, 239, 230, 0.82));
}

.industry-card:nth-child(6) {
    background: linear-gradient(180deg, rgba(248, 252, 249, 0.9), rgba(224, 237, 229, 0.78));
}

.industry-index {
    color: var(--amber);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.industry-card h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.46rem;
    margin-bottom: 10px;
}

.industry-brands {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 18px;
}

.formula-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.formula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formula-card,
.formula-callout {
    padding: 24px;
}

.formula-card h3,
.formula-callout h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.38rem;
    line-height: 1.3;
    margin: 10px 0 12px;
}

.callout-tags,
.active-tags,
.drink-tags,
.route-story-tags,
.card-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.callout-tags span,
.route-story-tags span,
.active-tags span,
.drink-tag,
.card-footer-tags span {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(111, 159, 132, 0.12);
    border-radius: var(--pill);
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 12px;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atlas-card {
    cursor: pointer;
    padding: 22px;
    text-align: left;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.atlas-card:hover {
    border-color: rgba(194, 103, 43, 0.28);
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.atlas-card-top {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.atlas-card h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.28rem;
}

.atlas-count {
    color: var(--amber);
    font-size: 0.92rem;
    font-weight: 800;
}

.atlas-card p {
    color: var(--ink-soft);
    font-size: 0.94rem;
    margin-top: 10px;
}

.atlas-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.atlas-metric {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    padding: 14px;
}

.atlas-metric span {
    color: var(--ink-faint);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atlas-metric strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
}

.finder-shell {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.route-story {
    background: linear-gradient(135deg, rgba(111, 159, 132, 0.12), rgba(239, 178, 77, 0.1), rgba(217, 138, 118, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 22px;
    margin-bottom: 20px;
    padding: 22px;
}

.route-story-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.route-story-badge {
    background: rgba(255, 255, 255, 0.84);
    border-radius: var(--pill);
    color: var(--tea);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 7px 12px;
}

.route-story h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.42rem;
}

.route-story p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.controls-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
}

.control-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-field span {
    color: var(--ink-faint);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.control-field input,
.control-field select {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(111, 159, 132, 0.14);
    border-radius: 16px;
    color: var(--ink);
    min-height: 56px;
    outline: none;
    padding: 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.control-field input:focus,
.control-field select:focus {
    border-color: rgba(111, 159, 132, 0.45);
    box-shadow: 0 0 0 4px rgba(111, 159, 132, 0.1);
}

.finder-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 18px;
}

.text-button {
    color: var(--tea);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
}

.finder-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.insight-card {
    padding: 20px;
}

.insight-card strong {
    display: block;
    font-size: 1.26rem;
    font-weight: 800;
    margin: 8px 0;
}

.insight-card p {
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.results-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 28px 0 12px;
    padding-bottom: 16px;
}

.results-head h2 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.72rem;
}

#results-count {
    background: linear-gradient(135deg, rgba(111, 159, 132, 0.12), rgba(239, 178, 77, 0.12));
    border-radius: var(--pill);
    color: var(--tea);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 10px 16px;
}

.results-helper {
    font-size: 0.98rem;
    margin-bottom: 22px;
    max-width: 76ch;
}

.drinks-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.drink-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 22px;
}

.drink-card-top {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.brand-badge {
    background: linear-gradient(135deg, #4f7d64, #355848);
    border-radius: var(--pill);
    color: #fff;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 8px 12px;
}

.tone-badge {
    border-radius: var(--pill);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 12px;
}

.tone-light {
    background: #dff2e3;
    color: #366247;
}

.tone-balanced {
    background: #fae6c0;
    color: #8f5a2a;
}

.tone-rich {
    background: #efcfaa;
    color: #8a4927;
}

.tone-dessert {
    background: #f4d8cc;
    color: #935339;
}

.drink-card h3 {
    font-family: "Noto Serif TC", serif;
    font-size: 1.42rem;
    line-height: 1.3;
}

.drink-subtitle {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.drink-note {
    color: var(--ink-soft);
    font-size: 0.95rem;
    min-height: 3.4em;
}

.drink-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drink-metric {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 243, 234, 0.68));
    border-radius: 16px;
    padding: 12px;
}

.drink-metric span {
    color: var(--ink-faint);
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.drink-metric strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    margin-top: 4px;
}

.card-footer {
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.card-footer-copy {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.load-more[hidden] {
    display: none;
}

.empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 240, 230, 0.76));
    border: 1px solid rgba(111, 159, 132, 0.12);
    border-radius: var(--radius-xl);
    color: var(--ink-soft);
    grid-column: 1 / -1;
    padding: 34px 24px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid rgba(73, 50, 31, 0.08);
    padding: 28px 0 48px;
}

.footer-layout {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) auto auto;
}

.footer-brand {
    font-family: "Noto Serif TC", serif;
    font-size: 1.24rem;
    font-weight: 800;
}

.footer-copy {
    font-size: 0.94rem;
    margin-top: 8px;
    max-width: 52ch;
}

.footer-links,
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a,
.footer-meta span {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-layout,
    .section-heading,
    .formula-layout,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .industry-grid,
    .finder-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .controls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-stats,
    .hero-snapshot-grid,
    .industry-grid,
    .formula-grid,
    .category-grid,
    .finder-insights,
    .drink-metrics {
        grid-template-columns: 1fr;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .finder-actions,
    .results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 18px;
    }

    .site-nav {
        position: static;
    }

    .hero-panel,
    .finder-shell {
        padding: 20px;
    }

    .button,
    .nav-cta {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .route-button {
        min-height: auto;
    }

    .footer-links,
    .footer-meta {
        flex-direction: column;
        gap: 8px;
    }
}
