:root {
    --ink: #2f2f2f;
    --sage: #e9e5dc;
    --moss: #3f3f3f;
    --clay: #d06a2c;
    --cream: #f8f7f3;
    --card: #ffffff;
    --line: #e8e4db;
    --muted: #5f5f5f;
    --shadow: 0 12px 28px rgba(37, 35, 30, 0.08);
    --card-radius: 12px;
    --card-radius-lg: 14px;
    --card-padding: 20px;
    --site-width: 1140px;
    --article-width: 780px;
    --narrow-width: 860px;
    --article-shell-width: 1030px;
    --checkout-width: 760px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Work Sans", "Segoe UI", sans-serif;
    line-height: 1.65;
}

a { color: inherit; }

h1, h2, h3 {
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.card h2 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
td, th { border: 1px solid #e5ddce; padding: 8px 10px; }
th { text-align: left; background: #f8f4ec; }

.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    position: relative;
}

.brand {
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 1.48rem;
    font-weight: 650;
    color: #2f2f2f;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.brand span {
    color: #7a7776;
}

.brand:hover {
    color: #1f1f1f;
}

.brand:hover span {
    color: #7a7776;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.92rem;
}

.nav a:hover, .nav a.active {
    color: var(--ink);
    border-color: #ddd5c8;
    background: #faf7f2;
}

.nav a.button-link {
    background: var(--clay);
    color: #fff;
    border-color: #bf5f27;
    font-weight: 700;
}

.nav a.button-link:hover,
.nav a.button-link.active {
    background: #bf5f27;
    color: #fff;
    border-color: #b15825;
}

.nav a.outline-cta-link {
    border-color: #d7b488;
    background: #fff;
    color: #8a4f1f;
    font-weight: 700;
}

.nav a.outline-cta-link:hover,
.nav a.outline-cta-link.active {
    border-color: #bf7a40;
    background: #fff5eb;
    color: #7a441a;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border: 1px solid #d9d3c7;
    border-radius: 999px;
    background: #fffdf8;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #bf5f27;
    background: var(--clay);
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn.secondary {
    border-color: #d9d3c7;
    background: transparent;
    color: #3b3b3b;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0 0 12px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
    line-height: 1.1;
}

.hero p { margin: 0 0 15px; color: #484d48; }
.guide-note {
    max-width: 72ch;
    margin: 0 0 15px;
    padding: 10px 12px;
    border-left: 3px solid #d6c1a4;
    background: #fbf7ef;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #484d48;
}
.guide-note-full {
    max-width: none;
    margin: 28px 0 0;
}
.home-hero p {
    max-width: 62ch;
}

.food-list-hero {
    grid-template-columns: 1fr;
}

.hero-art {
    border-radius: 14px;
    border: 1px solid var(--line);
    min-height: 260px;
    background: linear-gradient(155deg, #f0ece3 0%, #e7dfd1 52%, #d7c9b0 100%);
    position: relative;
    overflow: hidden;
}

.hero-art::before,
.hero-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-art::before { width: 220px; height: 220px; right: -45px; top: -75px; }
.hero-art::after { width: 170px; height: 170px; left: -40px; bottom: -70px; }

.herb-hero-image {
    display: block;
    width: 100%;
    min-height: 260px;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(34, 29, 23, 0.16);
}

.section-title {
    margin: 40px 0 16px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 1.6rem;
}

.grid {
    display: grid;
    gap: 24px;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--card-radius-lg);
    padding: var(--card-padding);
    box-shadow: 0 2px 8px rgba(37, 35, 30, 0.06);
}

.card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card .chip {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fcf5ee;
    border: 1px solid #f0d0b5;
    font-size: 0.74rem;
    margin-bottom: 10px;
}

.card-link {
    display: block;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40, 53, 39, 0.12); }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.search {
    width: min(390px, 100%);
    border: 1px solid #cccfbf;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.94rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: #696f69;
    margin: 10px 0 20px;
    font-size: 0.88rem;
}

.breadcrumb a { color: #556455; text-decoration: none; }

.feature-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.media-slot {
    border: 1px dashed #d6cdbd;
    border-radius: 14px;
    min-height: 250px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f4efe4 0%, #ece6d9 100%);
    color: #7c7467;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .78rem;
}

.food-detail-photo {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d6cdbd;
}

.recipe-hero-video {
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #d6cdbd;
    border-radius: 14px;
    background: #1f211e;
}

.recipe-hero-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.text-link {
    color: #6c4c31;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.list {
    margin: 0;
    padding-left: 18px;
}

.list li { margin: 8px 0; color: #505650; }

.ingredient-item { display: flex; align-items: center; gap: 10px; }
.ingredient-item-linked {
    border-radius: 8px;
    cursor: help;
    outline: none;
}
.ingredient-item-linked:hover,
.ingredient-item-linked:focus {
    background: #fff8eb;
    color: #3b3d35;
}
.ingredient-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

.ingredient-popover {
    position: fixed;
    z-index: 1200;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    width: min(330px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid #ded4c4;
    border-radius: 10px;
    background: #fffdf8;
    box-shadow: 0 16px 36px rgba(33, 29, 22, .16);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
}
.ingredient-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.ingredient-popover-image {
    width: 58px;
    height: 58px;
    border: 1px solid #e5dac8;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f4efe4;
}
.ingredient-popover-body {
    min-width: 0;
}
.ingredient-popover-kicker,
.ingredient-popover-small {
    margin: 0;
    color: #7a7469;
    font-size: .72rem;
    line-height: 1.35;
}
.ingredient-popover h3 {
    margin: 1px 0 3px;
    font-size: .98rem;
    line-height: 1.18;
}
.ingredient-popover p {
    margin: 0;
    color: #4f554f;
    font-size: .8rem;
    line-height: 1.4;
}
.ingredient-popover-small {
    margin-top: 6px;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0 12px;
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    border: 1px solid var(--line);
    background: linear-gradient(140deg, #fbf3e8 0%, #f4e2cf 100%);
}
.cta-band-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: #2f2f2f; }
.cta-band-sub { margin: 0; color: #5a4f44; }
.cta-band .btn { white-space: nowrap; flex-shrink: 0; }

.footer { margin: 38px 0 28px; color: #676d67; font-size: .9rem; }
.fundamentals blockquote {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-left: 3px solid #d3b49a;
    background: #faf7f2;
    color: #4f4f4f;
}
.fundamentals > p {
    margin: 0 0 12px;
    line-height: 1.68;
    max-width: 78ch;
}
.fundamentals .grid.two {
    margin-top: 14px !important;
}
.fundamentals .grid.two .card h3 {
    margin: 0 0 8px;
    line-height: 1.28;
}
.fundamentals .grid.two .card p {
    margin: 0;
    line-height: 1.62;
}
.fundamentals .cta-band {
    margin-top: 16px !important;
    line-height: 1.6;
}
.global-footer {
    margin: 34px 0 26px;
    border-top: 1px solid #d6d0c2;
    padding-top: 18px;
}
.medical-disclaimer {
    margin-top: 12px;
    padding: var(--card-padding);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    font-size: 0.84rem;
    line-height: 1.55;
    color: #666;
    background: #fffdf7;
}
.medical-disclaimer-title {
    display: block;
    margin-bottom: 8px;
    color: #3f3f3f;
}
.footer-copy {
    margin-top: 14px;
    color: #6d706a;
    font-size: .9rem;
}

.meta-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #e7d3c1;
    background: #fcf5ee;
    color: #7f4f32;
    font-size: .77rem;
    font-weight: 600;
    padding: 6px 10px;
}

.meta-chip.warn {
    border-color: #ddc8ad;
    background: #f8ecdf;
    color: #6d4d31;
}

.herb-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ref-item {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 12px;
    background: #fffef8;
}

.ref-label {
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .72rem;
    color: #6a6f67;
    font-weight: 700;
}

.ref-value {
    margin: 0;
    color: #464b46;
    font-size: .94rem;
}

.detail-card {
}

.detail-card .chip {
    margin-bottom: 12px;
}

.detail-card h1 {
    margin: 0 0 8px !important;
    line-height: 1.14;
}

.detail-lead {
    margin: 0 0 14px !important;
    line-height: 1.62;
}

.detail-card .meta-chip-row {
    margin-bottom: 14px;
}

.detail-card .herb-ref-grid {
    gap: 12px;
    margin-top: 2px;
}

.detail-card .ref-item {
    padding: 13px 12px;
}

.detail-card .btn {
    margin-top: 14px;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-stat-card {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 12px;
    background: #fffef8;
}

.quick-stat-label {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .72rem;
    color: #6a6f67;
    font-weight: 700;
}

.quick-stat-value {
    margin: 0;
    color: #3f443f;
    font-weight: 600;
}

.nutrient-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.nutrient-card {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 12px;
    background: #fffef8;
}

.use-cautions {
    display: grid;
    gap: 10px;
}

@media (max-width: 940px) {
    .hero,
    .grid.three,
    .grid.two,
    .feature-wrap { grid-template-columns: 1fr; }

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

    .herb-ref-grid { grid-template-columns: 1fr; }

    .card, .detail-card {
        padding: 16px;
    }
}

/* ── Food List page ── */
.page-header h1 { margin: 0 0 14px; }
.page-header p { margin: 0 0 14px; color: var(--muted); }
.quick-search,
.reader-poll,
.category-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: var(--card-padding); margin-bottom: 14px; }
.quick-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.quick-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-search input { flex: 1 1 320px; min-width: 220px; border: 1px solid #d8d2c4; border-radius: 8px; padding: 10px 12px; }
.quick-search button,
.poll-option { border: 1px solid #d8d2c4; border-radius: 8px; padding: 9px 12px; background: #fff; cursor: pointer; text-align: left; }
.poll-option.selected { border-color: var(--clay); background: #fdf6ec; font-weight: 600; }
.quick-search button.secondary { background: #f6f1e7; }
.food-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 14px;
    align-items: start;
}
.food-info-rail {
    order: 2;
    position: sticky;
    top: 18px;
    align-self: start;
}
.food-list-sections {
    order: 1;
    min-width: 0;
}
.food-info-panel {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #d8d2c4;
    border-radius: var(--card-radius);
    background: #fffdf8;
    box-shadow: 0 8px 24px rgba(45, 38, 25, 0.06);
}
.food-info-rail .food-info-panel {
    grid-template-columns: 1fr;
}
.food-info-media {
    min-height: 132px;
    border-radius: 10px;
    border: 1px solid #e3ddcf;
    background:
        radial-gradient(circle at 35% 30%, rgba(208, 106, 44, 0.18), transparent 36%),
        linear-gradient(145deg, #eee5d5 0%, #d9ccb6 100%);
    background-size: cover;
    background-position: center;
}
.food-info-media.has-image {
    background-color: #efe6d7;
}
.food-info-rail .food-info-media {
    min-height: 184px;
}
.food-info-body {
    min-width: 0;
}
.food-info-kicker {
    margin: 0 0 5px;
    color: #7a7469;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.food-info-panel h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.15;
}
.food-info-panel p {
    margin: 0;
    color: #555047;
    line-height: 1.55;
}
.food-info-chips {
    margin-top: 12px;
}
.food-info-meta {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid #ebe3d6;
}
.food-info-meta div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ebe3d6;
}
.food-info-meta dt {
    color: #81786b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.45;
    text-transform: uppercase;
}
.food-info-meta dd {
    min-width: 0;
    margin: 0;
    color: #393a35;
    font-size: .86rem;
    line-height: 1.45;
}
.food-info-meta dd strong {
    color: #263327;
}
.food-info-chip-primary {
    background: transparent;
    color: #2f342f;
    font-weight: 650;
    padding: 0;
}
.food-info-panel p.food-info-source-note,
.food-mobile-sheet p.food-info-source-note {
    display: block;
    margin: 8px 0 0;
    overflow: visible;
    color: #9a9185;
    font-size: .74rem;
    font-style: italic;
    line-height: 1.45;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}
.food-mobile-sheet {
    display: none;
}
.poll-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.grid-2,
.grid-3 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.list-card { }
.list-card h3 { margin: 0 0 8px; }
.list-card ul { margin: 0; padding-left: 18px; }
.list-card li { margin: 5px 0; }
.list-card li.search-hit,
.list-card li.food-item-active {
    border-radius: 8px;
    background: #fdf3e7;
    outline: 1px solid rgba(208, 106, 44, 0.32);
    outline-offset: 3px;
}
.food-trigger {
    display: inline;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
}
.food-trigger:hover,
.food-trigger:focus-visible {
    color: var(--clay);
}
.food-subtext { color: #77706a; font-size: .9em; }
.missing-food { color: inherit; font-weight: 600; }
.quick-search-status,
.poll-result { font-size: .92rem; color: #666; }
@media (max-width: 940px) {
    .food-list-layout {
        display: block;
    }
    .food-info-rail {
        position: static;
    }
    .food-info-rail .food-info-panel {
        grid-template-columns: 148px minmax(0, 1fr);
    }
    .food-info-rail .food-info-media {
        min-height: 132px;
    }
    .grid-3,
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .food-info-rail {
        display: none;
    }
    .food-mobile-sheet {
        display: grid;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 80;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 10px;
        max-height: min(42vh, 292px);
        padding: 12px;
        overflow: auto;
        border: 1px solid #d8d2c4;
        border-radius: 16px;
        background: #fffdf8;
        box-shadow: 0 18px 48px rgba(45, 38, 25, 0.24);
        transform: translateY(calc(100% + 24px));
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
    }
    .food-mobile-sheet.is-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .food-mobile-sheet-image {
        width: 74px;
        min-height: 0;
        aspect-ratio: 1;
        margin-top: 18px;
        align-self: start;
        border: 1px solid #ded4c4;
        border-radius: 10px;
        background:
            radial-gradient(circle at 35% 30%, rgba(208, 106, 44, 0.18), transparent 36%),
            linear-gradient(145deg, #eee5d5 0%, #d9ccb6 100%);
        background-size: cover;
        background-position: center;
    }
    .food-mobile-sheet-image.has-image {
        background-color: #efe6d7;
    }
    .food-mobile-sheet-body {
        min-width: 0;
        padding-top: 18px;
    }
    .food-mobile-sheet-kicker {
        margin: 0 0 3px;
        color: #7a7469;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
    }
    .food-mobile-sheet h2 {
        margin: 0 0 5px;
        font-size: 1.02rem;
        line-height: 1.15;
    }
    .food-mobile-sheet p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin: 0;
        overflow: hidden;
        color: #555047;
        font-size: .88rem;
        line-height: 1.38;
    }
    .food-mobile-sheet-chips {
        margin-top: 7px;
    }
    .food-mobile-sheet .food-info-meta {
        border-top-color: #eee6d8;
    }
    .food-mobile-sheet .food-info-meta div {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
        padding: 5px 0;
        border-bottom-color: #eee6d8;
    }
    .food-mobile-sheet .food-info-meta dt {
        font-size: .62rem;
    }
    .food-mobile-sheet .food-info-meta dd {
        font-size: .74rem;
    }
    .food-mobile-sheet-close {
        display: inline-flex;
        position: absolute;
        top: 8px;
        right: 8px;
        align-items: center;
        justify-content: center;
        border: 1px solid #ded4c4;
        border-radius: 999px;
        background: #fffaf2;
        color: #5e564b;
        font-size: .78rem;
        font-weight: 700;
        padding: 5px 9px;
        cursor: pointer;
    }
}

/* ── Recipes page ── */
.recipe-filter-bar {
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 35, 30, 0.05);
}
.recipe-filter-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}
.recipe-filter-label {
    margin: 0;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7a7469;
    font-weight: 700;
    padding-top: 7px;
}
.recipe-filter-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.recipe-filter-types button {
    border: 1px solid #ddd5c8;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .84rem;
    color: #5c6058;
    background: #faf7f2;
    cursor: pointer;
    transition: all .18s ease;
}
.recipe-filter-types button:hover {
    border-color: #cdbfa7;
    background: #f3eadb;
    color: #3e3f3a;
}
.recipes-hero-image {
    background-image: url('/images/uploads/dr-sebi-recipes-kitchen1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--card-radius);
    border: 1px solid var(--line);
}
@media (max-width: 680px) {
    .recipe-filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .recipe-filter-label {
        padding-top: 0;
    }
}

/* ── Blog detail page ── */
.article-wrap { max-width: var(--article-width); margin: 0 auto; }
.article-hero { border:1px solid #e3d8c7; border-radius:16px; background:#fffdf8; padding:22px; margin-bottom:16px; box-shadow:0 8px 24px rgba(45,38,25,.05); }
.article-hero h1 { max-width: 12.5em; margin:0 0 14px; font-family: "Work Sans", "Segoe UI", sans-serif; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight:650; line-height:1.06; letter-spacing:-.012em; color:#263327; }
.article-meta { margin:0 0 10px; color:#8a5a35; font-size:.76rem; font-weight:700; letter-spacing:.055em; text-transform:uppercase; }
.article-image { display:block; width:100%; aspect-ratio:16 / 9; height:auto; max-height:420px; object-fit:cover; border-radius:12px; border:1px solid #e3d5bf; background:linear-gradient(145deg,#ebe2d4 0%,#e3d5bf 100%); }
.article-card { border:1px solid #e3d8c7; border-radius:16px; background:#fff; padding:28px 30px; }
.article-card h2 { margin:26px 0 10px; font-family: "Work Sans", "Segoe UI", sans-serif; font-size:1.55rem; line-height:1.16; color:#263327; }
.article-card h3 { margin:20px 0 8px; font-size:1.14rem; font-weight:500; line-height:1.35; color:#30372f; }
.article-card p { margin:0 0 14px; color:#4f554f; line-height:1.76; }
.article-card ul, .article-card ol { margin:0 0 16px; padding-left:22px; }
.article-card li { margin:7px 0; color:#4f554f; line-height:1.65; }
.article-card a { color:#96572d; text-decoration-thickness:1px; text-underline-offset:3px; }
.article-card blockquote { margin:18px 0; padding:12px 16px; border-left:3px solid #c88d57; background:#fff8ee; color:#4f554f; border-radius:0 10px 10px 0; }
.article-card iframe { display:block; width:100%; aspect-ratio:16/9; height:auto; border:0; border-radius:12px; margin:14px 0 20px; }
.book-section { display:grid; grid-template-columns:150px minmax(0, 1fr); gap:20px; align-items:start; margin:12px 0 26px; padding-bottom:20px; border-bottom:1px solid #eee4d6; }
.book-section:last-of-type { border-bottom:0; padding-bottom:0; }
.book-cover { display:block; width:150px; max-width:100%; height:auto; border-radius:6px; border:1px solid #e0d4c3; box-shadow:0 10px 22px rgba(48, 39, 24, .14); background:#f7f1e8; }
.book-copy { min-width:0; }
.article-card .book-copy p:last-child { margin-bottom:0; }
.author-box { position:relative; display:block; border:1px solid #d8c6aa; border-radius:16px; background:radial-gradient(circle at 100% 0%, rgba(208,106,44,.09), transparent 34%), #fffdf8; padding:22px; margin-top:18px; box-shadow:0 12px 28px rgba(49,39,22,.07); }
.author-head { display:grid; grid-template-columns:58px minmax(0,1fr); gap:12px; align-items:start; margin-bottom:14px; }
.author-avatar { width:58px; height:58px; border-radius:50%; background:#e3d5bf; border:3px solid #f1e1c8; box-shadow:0 5px 14px rgba(55,42,25,.12); display:flex; align-items:center; justify-content:center; font-weight:700; color:#6b5c48; overflow:hidden; }
.author-photo { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.author-details p { margin:0; font-size:.93rem; color:#5f655e; line-height:1.62; }
.author-details p + p { margin-top:12px; }
.author-details .author-note { margin-top:14px; padding-top:12px; border-top:1px solid #e5d8c4; color:#6b665e; font-size:.84rem; }
.author-details a { color:#96572d; text-decoration-thickness:1px; text-underline-offset:3px; }
.author-box h2 { margin:0; font-size:1.25rem; line-height:1.16; color:#263327; }
.author-label { margin:0 0 4px; font-size:.72rem !important; text-transform:uppercase; letter-spacing:.06em; color:#8a5a35 !important; font-weight:700; }
.article-shell { display:grid; grid-template-columns:minmax(0, var(--article-width)) 210px; gap:24px; align-items:start; max-width:var(--article-shell-width); margin:0 auto; }
.article-toc { position:sticky; top:18px; border:1px solid #e3d8c7; border-radius:14px; background:#fffdf8; padding:14px; box-shadow:0 8px 22px rgba(45,38,25,.045); }
.article-toc p { margin:0 0 8px; color:#8a5a35; font-size:.72rem; font-weight:800; letter-spacing:.065em; text-transform:uppercase; }
.article-toc nav { display:grid; gap:2px; }
.article-toc a { display:block; padding:6px 0; color:#5f655e; font-size:.84rem; line-height:1.35; text-decoration:none; border-bottom:1px solid transparent; }
.article-toc a:hover { color:#263327; border-bottom-color:#e3d8c7; }
.article-card h2 { scroll-margin-top:24px; }

@media (max-width: 720px) {
    .article-hero { padding:16px; }
    .article-card { padding:20px 18px; }
    .book-section { grid-template-columns:96px minmax(0, 1fr); gap:14px; }
    .book-cover { width:96px; }
}

@media (max-width: 1060px) {
    .article-shell { display:block; max-width:var(--article-width); }
    .article-toc { display:none; }
}

/* ── About page ── */
.about-wrap,
.narrow-wrap { max-width: var(--narrow-width); margin: 0 auto; }
.about-page {
    max-width: 1060px;
    display: grid;
    gap: 16px;
}
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 22px;
    align-items: stretch;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--card-radius-lg);
    background: #fffdf8;
    box-shadow: 0 10px 26px rgba(45, 35, 24, 0.06);
}
.about-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-page .eyebrow {
    margin: 0 0 10px;
    color: #8a5f32;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.about-page h1 {
    max-width: 11em;
    margin: 0 0 14px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 720;
    line-height: 1.02;
    color: #243327;
}
.about-page h2 {
    margin: 0 0 10px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    line-height: 1.15;
    color: #263327;
}
.about-page p {
    margin: 0;
    color: #515851;
    line-height: 1.72;
}
.about-page p + p {
    margin-top: 12px;
}
.about-page .lead {
    max-width: 780px;
    margin-bottom: 14px;
    color: #3f4740;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.55;
}
.about-portrait {
    margin: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5d9c8;
    border-radius: var(--card-radius);
    background: #fff;
}
.about-portrait img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 10px;
}
.about-portrait p {
    color: #5f574b;
    font-size: .92rem;
    line-height: 1.55;
}
.about-section {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
}
.about-intro {
    max-width: 920px;
}
.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.about-principles article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
}
.about-principles span {
    display: block;
    margin-bottom: 18px;
    color: #9a7042;
    font-size: .78rem;
    font-weight: 700;
}
.about-principles h2 {
    margin-bottom: 8px;
    font-size: 1.18rem;
}
.about-principles p {
    font-size: .94rem;
}
.about-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid #decdb6;
    border-radius: var(--card-radius);
    background: #f7efe3;
}
.about-contact h2 {
    margin-bottom: 8px;
}
.about-contact-button {
    white-space: nowrap;
}
@media (max-width: 760px) {
    .about-hero,
    .about-principles,
    .about-contact {
        grid-template-columns: 1fr;
    }
    .about-portrait {
        max-width: 360px;
    }
    .about-contact-button {
        justify-self: start;
    }
}

/* ── Blog index page ── */
.blog-hero { grid-template-columns: 1fr; margin-bottom: 14px; }
.blog-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.blog-toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin: 0 0 14px; }
.blog-cats { display:flex; gap:8px; flex-wrap:wrap; }
.blog-cats button { border:1px solid #ddd5c8; border-radius:999px; padding:6px 10px; font-size:.82rem; color:#5c6058; background:#faf7f2; cursor:pointer; }
.blog-cats button.active { border-color:#cdbfa7; background:#f3eadb; color:#3e3f3a; }
.blog-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.blog-card { display:block; text-decoration:none; background:#fff; border:1px solid var(--line); border-radius:var(--card-radius); overflow:hidden; }
.blog-thumb { height:150px; border-bottom:1px solid #e9dfcf; background: linear-gradient(145deg,#ece4d6 0%, #e4d7c1 100%); }
.blog-body { padding:12px; }
.blog-meta { margin:0 0 6px; color:#7a7469; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.blog-body h3 { margin:0 0 8px; font-size:1.06rem; line-height:1.28; }
.blog-body p { margin:0; color:#595c57; font-size:.92rem; }
@media (max-width: 940px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Herbs page ── */
.card p + p { margin-top: 12px; }
.herb-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #ede5d8; }
.herb-item:first-of-type { border-top: none; padding-top: 0; }
.herb-img { width: 110px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid #e3d9c8; flex-shrink: 0; }
.herb-body { flex: 1; min-width: 0; }
.herb-body h3 { margin: 0 0 8px; font-size: 1.05rem; }
.herb-body p { margin: 0; }
.herb-body p + p { margin-top: 8px; }
.herb-body ul { margin: 8px 0; padding-left: 18px; }
.herb-body ul li { margin: 4px 0; font-size: .92rem; color: #595c57; }
.herb-area-cta { margin-top: 16px; padding: 10px 12px; background: #f8f3eb; border-radius: 8px; font-size: .86rem; color: #5a4f44; }
.herb-area-cta a { color: #7a5c3a; font-weight: 600; }
.herb-scan-card h2 { margin-bottom: 12px; }
.herb-scan-grid,
.herb-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.herb-scan-grid div,
.herb-points div { border: 1px solid #eadfce; border-radius: 8px; background: #fffdf8; padding: 12px; }
.herb-scan-grid strong,
.herb-points strong { display: block; margin-bottom: 4px; color: #343b32; font-size: .9rem; }
.herb-scan-grid p,
.herb-points p { margin: 0; color: #5d625b; font-size: .9rem; line-height: 1.55; }
.synergy-list { margin: 10px 0; padding-left: 18px; }
.synergy-list li { margin: 5px 0; font-style: italic; color: #5a4f44; }
@media (max-width: 540px) {
    .herb-item { flex-direction: column; }
    .herb-img { width: 100%; height: 180px; }
    .herb-scan-grid,
    .herb-points { grid-template-columns: 1fr; }
}

[data-recipes-list-page] .card-link {
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

[data-recipes-list-page] .card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 35, 30, 0.10);
}

[data-recipes-list-page] .card-link {
    padding: var(--card-padding);
}

[data-recipes-list-page] .blog-thumb {
    margin: -20px -20px 0;
    height: 185px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    transition: opacity .2s ease;
}

[data-recipes-list-page] .card-link:hover .blog-thumb {
    opacity: .92;
}

[data-recipes-list-page] .card-link > .chip {
    align-self: flex-start;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: transparent;
    border-color: #d4c9b5;
    color: #9a8f7e;
    padding: 2px 7px;
}

[data-recipes-list-page] .card-link > h3 {
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.3;
    color: #252320;
    margin: 10px 0 0;
}

.recipe-review-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.recipe-review-controls button,
.recipe-review-controls a {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid #d8c9b3;
    background: #fffaf2;
    color: #4b463d;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    padding: 7px 10px;
    text-decoration: none;
    cursor: pointer;
}

.recipe-review-controls button {
    background: #4f3529;
    border-color: #4f3529;
    color: #fffaf2;
}

.recipe-review-removed {
    opacity: .48;
    background: #f4eee5;
}

.recipe-review-removed h3 {
    text-decoration: line-through;
}

.recipe-review-removed .recipe-review-controls button {
    background: #f7f0e8;
    border-color: #c9bba7;
    color: #3e3a34;
}

.recipe-review-panel {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #d8c9b3;
    border-radius: 8px;
    background: rgba(255, 250, 242, .96);
    box-shadow: 0 12px 28px rgba(45, 38, 28, .16);
}

.recipe-review-panel[hidden] {
    display: none;
}

.recipe-review-panel p {
    margin: 3px 0 0;
    color: #70695e;
    font-size: .86rem;
}

.recipe-review-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.recipe-review-panel textarea {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 180px;
    resize: vertical;
    border: 1px solid #e0d4c3;
    border-radius: 8px;
    background: #fffdf8;
    color: #2d2c29;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 10px;
}

@media (max-width: 680px) {
    .recipe-review-panel {
        grid-template-columns: 1fr;
    }

    .recipe-review-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ── Dr. Sebi Products page ── */
.products-wrap .products-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
    margin-bottom: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.products-wrap .products-kicker {
    margin: 0 0 8px;
    color: #8a5a35;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.products-wrap .products-hero h1 {
    max-width: 11.5em;
    margin: 0 0 12px;
    color: #263327;
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -.014em;
}
.products-wrap .products-hero p {
    max-width: 68ch;
    margin: 0 0 12px;
    color: #4d554e;
    line-height: 1.68;
}
.products-wrap .quick-jump {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.products-wrap .quick-jump a {
    text-decoration: none;
    border: 1px solid #ddd0bd;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .8rem;
    color: #655b4d;
    background: #fff8ee;
}
.products-wrap .quick-jump a:hover { color: #263327; border-color: #c99a6f; }
.products-wrap .products-hero-note {
    border: 1px solid #e0d1bb;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}
.products-wrap .products-hero-note span {
    display: block;
    margin-bottom: 8px;
    color: #8a5a35;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.products-wrap .products-hero-note p {
    margin-bottom: 14px;
    font-size: .9rem;
    line-height: 1.55;
}
.products-wrap .products-hero-note .btn {
    width: 100%;
}
.products-wrap .section { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius); padding: var(--card-padding); margin-bottom: 14px; }
.products-wrap .section h2 { margin: 0 0 10px; }
.products-wrap .section-intro { margin: 0 0 12px; color: #5f5f5f; }
.products-wrap .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.products-wrap .product-card { border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.products-wrap .product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; border: 0; }
.products-wrap .product-thumb-placeholder { width: 100%; height: 120px; background: linear-gradient(145deg, #ece4d6 0%, #e4d7c1 100%); border-bottom: 1px solid #e3ddcf; }
.products-wrap .product-content { padding: 12px; }
.products-wrap .product-content h3 { margin: 0 0 8px; }
.products-wrap .product-content p { margin: 0 0 10px; color: #575757; }
.products-wrap .product-content strong { display: block; margin: 0 0 6px; font-size: .9rem; }
.products-wrap .product-content ul { margin: 0; padding-left: 18px; }
.products-wrap .product-content li { margin: 4px 0; color: #505650; }
.products-wrap .product-cta { margin-top: 10px; padding: 8px 12px; font-size: .84rem; }
.products-wrap .product-source-note { display: block; margin-top: 10px; color: #6f6b63; font-size: .82rem; }
.products-wrap .notes { background: #fffdf7; border: 1px solid var(--line); border-radius: var(--card-radius); padding: var(--card-padding); margin-top: 12px; }
@media (max-width: 940px) {
    .products-wrap .products-hero { grid-template-columns: 1fr; padding: 18px; }
    .products-wrap .products-hero-note .btn { width: auto; }
    .products-wrap .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar {
        gap: 12px;
        padding: 14px 0;
    }

    .brand {
        font-size: 1.32rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: absolute;
        z-index: 40;
        top: calc(100% - 4px);
        left: 0;
        right: 0;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
        border: 1px solid #ddd5c8;
        border-radius: 12px;
        background: #fffdf8;
        box-shadow: 0 16px 32px rgba(37, 35, 30, 0.14);
    }

    .nav.is-open {
        display: grid;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
        border-radius: 8px;
        padding: 9px 11px;
        font-size: .96rem;
    }

    .nav a.outline-cta-link {
        background: #fff7ec;
    }

}

/* ── Checkout page ── */
.checkout-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.checkout-wrap { width: 100%; max-width: var(--checkout-width); }
.checkout-head { margin-bottom: 12px; }
.checkout-kicker { margin: 0 0 6px; color: #7b6a53; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.checkout-title { margin: 0; font-family: "Work Sans", "Segoe UI", sans-serif; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; }
.checkout-sub { margin: 8px 0 0; color: #5e5a53; }
.step-card { border: 1px solid var(--line); border-radius: var(--card-radius-lg); background: #fff; padding: var(--card-padding); box-shadow: 0 10px 24px rgba(45, 35, 24, 0.08); }
.step-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.step-badge { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .84rem; border: 1px solid #d6c8b4; background: #f8f1e6; color: #7a5636; }
.step-label { margin: 0; font-size: .94rem; font-weight: 700; color: #4e4b45; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 700; color: #4f4e49; }
.field input { width: 100%; border: 1px solid #d5cebf; border-radius: 10px; padding: 11px 12px; font-size: .95rem; background: #fff; color: #2f2f2f; }
.field input:focus { outline: 2px solid #efcfb0; border-color: #c89d73; }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.summary { display: none; margin-top: 14px; border-top: 1px solid #ece3d5; padding-top: 14px; }
.summary.active { display: block; }
.summary-card { border: 1px solid var(--line); border-radius: var(--card-radius); background: #fdfaf5; padding: var(--card-padding); }
.summary-card h2 { margin: 0 0 8px; font-family: "Work Sans", "Segoe UI", sans-serif; font-size: 1.35rem; }
.summary-list { margin: 0; padding-left: 18px; }
.summary-list li { margin: 5px 0; color: #57514a; }
.summary-price { margin: 10px 0 0; font-size: 1.05rem; font-weight: 700; color: #3f3a34; }
.summary-meta { margin: 10px 0 0; font-size: .83rem; color: #6f6b63; }

.scroll-top-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    border: 1px solid #d8c8b2;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    color: #6f482d;
    box-shadow: 0 10px 24px rgba(45, 38, 25, 0.12);
    cursor: pointer;
    font-weight: 700;
    font-size: .82rem;
    padding: 9px 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.scroll-top-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    border-color: #b98455;
    outline: none;
}

@media (max-width: 640px) {
    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        padding: 8px 11px;
    }
}
