/* ==========================================================================
   Spice and Salt (תבלין ומלח) — main stylesheet. RTL-first, logical properties.
   Concept: a home-kitchen spice rack. Paprika red + saffron on warm paper,
   wooden shelves, glass jars with paper labels.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Assistant"; src: url(../fonts/assistant-hebrew.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url(../fonts/assistant-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Suez One"; src: url(../fonts/suezone-hebrew.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Suez One"; src: url(../fonts/suezone-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Amatic SC"; src: url(../fonts/amatic-hebrew-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Amatic SC"; src: url(../fonts/amatic-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
    --paprika: #9C2C13;
    --paprika-deep: #7A200C;
    --saffron: #F2BB05;
    --saffron-soft: #FCEDB8;
    --paper: #FBF5EA;
    --paper-2: #F4E8D3;
    --card: #FFFDF8;
    --labelpaper: #FFF8E6;
    --ink: #2A1A14;
    --ink-2: #5E4A3F;
    --line: #E6D6BD;
    --line-strong: #CDB492;
    --link: #9C2C13;
    --focus: #1F1410;
    --wood-1: #B47B47;
    --wood-2: #8D5B32;
    --wood-3: #6A4122;
    --glass: rgba(255, 255, 255, .62);
    --glass-line: rgba(59, 26, 16, .35);
    --lid: #3B1A10;
    --allergen-bg: #FBE4DA;
    --ingredients-bg: #FDF2CC;
    --shadow: 0 1px 2px rgba(60, 30, 10, .08), 0 8px 24px -12px rgba(60, 30, 10, .28);
    --radius: 14px;
    --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
    --font-title: "Suez One", "Assistant", Georgia, serif;
    --font-hand: "Amatic SC", "Assistant", sans-serif;
    --wrap: 1200px;
    color-scheme: light;
}

:root[data-mode="dark"] {
    --paper: #1C1310;
    --paper-2: #241914;
    --card: #2A1E18;
    --labelpaper: #FFF3D9;
    --ink: #F3E8D8;
    --ink-2: #CDB9A5;
    --line: #3E2E25;
    --line-strong: #5A4436;
    --link: #F39A7C;
    --focus: #F7D27A;
    --glass: rgba(255, 255, 255, .13);
    --glass-line: rgba(255, 240, 220, .35);
    --lid: #6B3A24;
    --allergen-bg: #3A1F17;
    --ingredients-bg: #33291A;
    --saffron-soft: #3A2E12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) {
        --paper: #1C1310;
        --paper-2: #241914;
        --card: #2A1E18;
        --labelpaper: #FFF3D9;
        --ink: #F3E8D8;
        --ink-2: #CDB9A5;
        --line: #3E2E25;
        --line-strong: #5A4436;
        --link: #F39A7C;
        --focus: #F7D27A;
        --glass: rgba(255, 255, 255, .13);
        --glass-line: rgba(255, 240, 220, .35);
        --lid: #6B3A24;
        --allergen-bg: #3A1F17;
        --ingredients-bg: #33291A;
        --saffron-soft: #3A2E12;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -12px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.tvm-main:focus { outline: none; }
.tvm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tvm-skip {
    position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.tvm-skip:focus { top: 1rem; }
.tvm-icon { flex: none; }

.tvm-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.tvm-wrap--mid { width: min(100% - 2.5rem, 1000px); }
.tvm-wrap--text { width: min(100% - 2.5rem, 760px); }

/* ---------- Buttons, labels, facts ---------- */
.tvm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px; border: 2px solid transparent;
    font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.tvm-btn--primary { background: var(--paprika); color: #fff; }
.tvm-btn--primary:hover { background: var(--paprika-deep); }
.tvm-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.tvm-btn--ghost:hover { border-color: var(--paprika); color: var(--link); }

.tvm-label {
    --tvm-spice: var(--paprika);
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .2rem .75rem .22rem; margin-block-end: .7rem;
    background: var(--labelpaper); color: #2A1A14;
    border: 1.5px solid rgba(59, 26, 16, .28); border-radius: 4px;
    font-size: .84rem; font-weight: 700; line-height: 1.4; text-decoration: none;
    box-shadow: 0 1px 0 rgba(59, 26, 16, .08);
}
a.tvm-label:hover { border-color: var(--paprika); color: var(--paprika); }
.tvm-label__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--tvm-spice); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.tvm-fact {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .18rem .65rem; border-radius: 999px;
    background: var(--saffron-soft); color: var(--ink);
    font-size: .86rem; font-weight: 600; line-height: 1.5;
}
.tvm-fact .tvm-icon { color: var(--link); }

.tvm-kicker {
    margin: 0 0 .35rem; color: var(--link);
    font: 700 1.6rem/1 var(--font-hand); letter-spacing: .02em;
}

/* ---------- Header ---------- */
.tvm-header { position: relative; z-index: 20; background: var(--paper); }
.tvm-header__bar {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1rem;
    padding-block: .9rem .2rem;
}
.tvm-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.tvm-brand__text { display: flex; flex-direction: column; }
.tvm-brand__name { font: 700 2.5rem/.85 var(--font-hand); color: var(--paprika); letter-spacing: .02em; }
.tvm-brand__tag { font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-top: .2rem; }
:root[data-mode="dark"] .tvm-brand__name { color: #F39A7C; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .tvm-brand__name { color: #F39A7C; } }

.tvm-tools { display: flex; gap: .35rem; grid-row: 1; grid-column: 2; }
.tvm-iconbtn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer;
}
.tvm-iconbtn:hover { border-color: var(--paprika); color: var(--link); }
.tvm-iconbtn[aria-expanded="true"] { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.tvm-modebtn .tvm-icon:last-child { display: none; }
:root[data-mode="dark"] .tvm-modebtn .tvm-icon:first-child { display: none; }
:root[data-mode="dark"] .tvm-modebtn .tvm-icon:last-child { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) .tvm-modebtn .tvm-icon:first-child { display: none; }
    :root:not([data-mode="light"]) .tvm-modebtn .tvm-icon:last-child { display: block; }
}
.tvm-burger .tvm-icon:last-child { display: none; }
.tvm-burger[aria-expanded="true"] .tvm-icon:first-child { display: none; }
.tvm-burger[aria-expanded="true"] .tvm-icon:last-child { display: block; }

.tvm-nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .25rem 1.4rem; flex-wrap: wrap; padding-block: .35rem .5rem; }
.tvm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.25rem; }
.tvm-nav a {
    display: inline-flex; align-items: center; min-height: 44px; color: var(--ink);
    font-weight: 700; font-size: 1rem; text-decoration: none; position: relative;
}
.tvm-nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 3px; border-radius: 2px;
    background: var(--saffron); transform: scaleX(0); transition: transform .2s;
}
.tvm-nav a:hover::after, .tvm-nav .current-menu-item > a::after, .tvm-nav .current-menu-parent > a::after { transform: scaleX(1); }
.tvm-nav__all { color: var(--link) !important; }

/* the shelf plank under the header */
.tvm-shelfline { height: 10px; background: linear-gradient(var(--wood-1), var(--wood-2) 55%, var(--wood-3)); box-shadow: 0 6px 10px -6px rgba(60, 30, 10, .5); }

.tvm-searchpanel { background: var(--paper-2); border-block-start: 1px solid var(--line); padding-block: 1rem; }
.tvm-searchpanel[hidden] { display: none; }

.tvm-burger { display: none; }

@media (max-width: 899px) {
    .tvm-burger { display: inline-grid; }
    .tvm-brand__name { font-size: 2.15rem; }
    .tvm-brand__tag { font-size: .78rem; }
    .tvm-header__bar { padding-block: .7rem; }
    .tvm-nav {
        display: none; position: absolute; inset-inline: 0; top: 100%;
        background: var(--card); border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
        padding: .5rem 1.25rem 1rem; flex-direction: column; align-items: stretch;
    }
    .tvm-nav.is-open { display: flex; }
    .tvm-nav__list { flex-direction: column; gap: 0; }
    .tvm-nav__list li + li { border-block-start: 1px solid var(--line); }
    .tvm-nav a { width: 100%; }
    .tvm-nav a::after { display: none; }
}
@media (max-width: 420px) {
    .tvm-brand .tvm-mark { width: 40px; height: 40px; }
    .tvm-brand__tag { display: none; }
    .tvm-iconbtn { width: 42px; height: 42px; }
    .tvm-tools { gap: .25rem; }
}

/* dark-mode adjustments of the inline mark */
:root[data-mode="dark"] .tvm-header .tvm-mark__ink, :root[data-mode="dark"] .tvm-header .tvm-mark__grains { fill: #E8D7C0; }
:root[data-mode="dark"] .tvm-header .tvm-mark__salt { stroke: #E8D7C0; }
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) .tvm-header .tvm-mark__ink, :root:not([data-mode="light"]) .tvm-header .tvm-mark__grains { fill: #E8D7C0; }
    :root:not([data-mode="light"]) .tvm-header .tvm-mark__salt { stroke: #E8D7C0; }
}

/* ---------- Search form ---------- */
.tvm-search__label { display: block; font-weight: 700; margin-bottom: .35rem; }
.tvm-search__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tvm-search__input {
    flex: 1 1 220px; min-height: 46px; padding: .5rem .9rem; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit;
}
.tvm-search__input::placeholder { color: var(--ink-2); opacity: .85; }

/* ---------- Hero + spice rack ---------- */
.tvm-hero {
    padding-block: 2.6rem 3rem;
    background-color: var(--paper-2);
    background-image:
        radial-gradient(circle at 12px 12px, rgba(156, 44, 19, .07) 0 2px, transparent 2.5px),
        radial-gradient(circle at 36px 30px, rgba(242, 187, 5, .14) 0 2px, transparent 2.5px);
    background-size: 48px 44px;
    border-block-end: 1px solid var(--line);
}
.tvm-hero__text { text-align: center; max-width: 860px; }
.tvm-hero__title { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem); margin-bottom: .5em; text-wrap: balance; }
.tvm-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; margin-inline: auto; text-wrap: pretty; }
.tvm-hero__counts { list-style: none; margin: 1.2rem 0 2.2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tvm-hero__counts li {
    background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem 1rem;
    font-weight: 600; color: var(--ink-2);
}
.tvm-hero__counts strong { color: var(--link); font-family: var(--font-title); font-weight: 400; font-size: 1.15rem; margin-inline-end: .25rem; }

.tvm-rack {
    list-style: none; margin: 0 auto; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; row-gap: 2.4rem;
    max-width: 1060px;
}
.tvm-rack__slot { position: relative; flex: 0 0 20%; display: flex; justify-content: center; padding: 0 .5rem 20px; }
/* each slot carries its own piece of plank; adjacent pieces read as one continuous shelf */
.tvm-rack__slot::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 18px;
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .05) 46px 48px),
        linear-gradient(var(--wood-1), var(--wood-2) 55%, var(--wood-3));
    box-shadow: 0 10px 14px -8px rgba(60, 30, 10, .55);
}
.tvm-rack__link {
    display: block; width: 100%; max-width: 176px; color: inherit; text-decoration: none;
    transform-origin: 50% 100%; transition: transform .22s ease;
}
.tvm-rack__link:hover { transform: translateY(-8px) rotate(-2deg); }
.tvm-rack__link:focus-visible { outline-offset: 6px; border-radius: 12px; }

.tvm-jarbox { position: relative; display: block; aspect-ratio: 100 / 130; }
.tvm-jar { display: block; width: 100%; height: 100%; }
.tvm-jar__lid { fill: var(--lid); }
.tvm-jar__ridge { stroke: rgba(255, 255, 255, .16); stroke-width: 2; fill: none; }
.tvm-jar__neck { fill: var(--glass); stroke: var(--glass-line); stroke-width: 1; }
.tvm-jar__glass { fill: var(--glass); }
.tvm-jar__outline { fill: none; stroke: var(--glass-line); stroke-width: 1.6; }
.tvm-jar__shine { stroke: rgba(255, 255, 255, .7); stroke-width: 3.5; stroke-linecap: round; fill: none; }

.tvm-jarlabel {
    position: absolute; inset-inline: 21%; bottom: 6%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem;
    min-height: 30%; padding: .4rem .3rem .3rem;
    background: var(--labelpaper); color: #2A1A14; text-align: center;
    border: 1.5px solid rgba(59, 26, 16, .3); border-radius: 5px;
    box-shadow: 0 2px 0 rgba(59, 26, 16, .08);
}
.tvm-jarlabel::before { content: ""; position: absolute; inset-inline: 10%; top: 4px; height: 3px; border-radius: 2px; background: var(--tvm-spice); opacity: .9; }
.tvm-jarlabel__name { font: 700 1.6rem/.95 var(--font-hand); text-wrap: balance; padding-top: .2rem; }
.tvm-jarlabel__count { font-size: .76rem; font-weight: 700; color: #6B4A3A; }

@media (max-width: 900px) {
    .tvm-rack__slot { flex-basis: 25%; }
}
@media (max-width: 640px) {
    .tvm-hero { padding-block: 1.8rem 2.2rem; }
    .tvm-rack { row-gap: 1.8rem; }
    .tvm-rack__slot { flex-basis: 33.333%; }
    .tvm-rack__slot { padding-inline: .3rem; }
    .tvm-jarlabel { inset-inline: 17%; }
    .tvm-jarlabel__name { font-size: 1.18rem; }
    .tvm-jarlabel__count { font-size: .7rem; }
}

/* ---------- Sections ---------- */
.tvm-section { padding-block: 3.2rem; }
.tvm-section--flush { padding-block: 2rem 3.5rem; }
.tvm-section--paper { background: var(--paper-2); border-block: 1px solid var(--line); }
.tvm-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.tvm-section__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); margin: 0; }
.tvm-section__title--sm { font-size: 1.35rem; margin: 2rem 0 1rem; }
.tvm-more { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.tvm-more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.tvm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.6rem; }
.tvm-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.tvm-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.tvm-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 30, 10, .08), 0 16px 32px -14px rgba(60, 30, 10, .35); }
.tvm-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.tvm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tvm-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.tvm-card__title { font-size: 1.22rem; line-height: 1.35; margin: 0 0 .5rem; }
.tvm-card__title a { color: var(--ink); text-decoration: none; }
.tvm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.tvm-card__title a:hover { color: var(--link); }
.tvm-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.tvm-card__title a:focus-visible { outline: none; }
.tvm-card__excerpt { color: var(--ink-2); font-size: .98rem; line-height: 1.65; margin-bottom: .9rem; }
.tvm-card__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }

.tvm-grid .tvm-card--lead { grid-column: 1 / -1; }
@media (min-width: 760px) {
    .tvm-grid .tvm-card--lead { flex-direction: row; }
    .tvm-grid .tvm-card--lead .tvm-card__media { flex: 0 0 52%; aspect-ratio: 3 / 2; }
    .tvm-grid .tvm-card--lead .tvm-card__body { justify-content: center; padding: 1.8rem 2rem; }
    .tvm-grid .tvm-card--lead .tvm-card__title { font-size: 1.75rem; }
}

.tvm-latest { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; }
.tvm-latest .tvm-card--lead .tvm-card__media { aspect-ratio: 3 / 2; }
.tvm-latest .tvm-card--lead .tvm-card__title { font-size: 1.6rem; }
.tvm-latest__list { display: grid; gap: 1rem; grid-auto-rows: 1fr; }
.tvm-latest__more { margin-top: 1.6rem; }
.tvm-card--row { flex-direction: row; align-items: stretch; }
.tvm-card--row .tvm-card__media { flex: 0 0 38%; max-width: 190px; aspect-ratio: auto; }
.tvm-card--row .tvm-card__body { justify-content: center; }
.tvm-card--row .tvm-card__body { padding: .85rem 1rem; }
.tvm-card--row .tvm-card__title { font-size: 1.05rem; }
.tvm-card--row .tvm-label { margin-bottom: .45rem; font-size: .78rem; }
@media (max-width: 899px) {
    .tvm-latest { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .tvm-card--row .tvm-card__media { flex-basis: 108px; }
}

/* ---------- Writers ---------- */
.tvm-writers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.4rem; }
.tvm-writer {
    display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.tvm-writer__name { font-size: 1.3rem; margin-bottom: .3rem; }
.tvm-writer p { color: var(--ink-2); font-size: .98rem; }
.tvm-avatar {
    flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--paprika); color: #fff; font: 400 1.05rem/1 var(--font-title);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
}
.tvm-avatar--lg { width: 64px; height: 64px; font-size: 1.5rem; background: var(--saffron); color: #2A1A14; }

/* ---------- Page head ---------- */
.tvm-pagehead { background: var(--paper-2); border-block-end: 1px solid var(--line); padding-block: 1.6rem 2.2rem; }
.tvm-pagehead__inner { display: flex; align-items: center; gap: 2rem; }
.tvm-pagehead__text { flex: 1; min-width: 0; }
.tvm-pagehead__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); margin-bottom: .35em; }
.tvm-pagehead__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 52rem; margin-bottom: .6rem; }
.tvm-pagehead__count { font-weight: 700; color: var(--link); margin: 0; }
.tvm-pagehead__jar { flex: 0 0 132px; position: relative; padding-bottom: 16px; }
.tvm-pagehead__jar::after {
    content: ""; position: absolute; inset-inline: -18px; bottom: 0; height: 16px; border-radius: 3px;
    background: linear-gradient(var(--wood-1), var(--wood-2) 55%, var(--wood-3));
    box-shadow: 0 10px 14px -8px rgba(60, 30, 10, .55);
}
.tvm-pagehead__jar .tvm-jarlabel { min-height: 26%; }
.tvm-pagehead__jar .tvm-jarlabel__name { display: none; }
@media (max-width: 640px) {
    .tvm-pagehead__inner { gap: 1rem; align-items: flex-start; }
    .tvm-pagehead__jar { flex-basis: 76px; margin-top: 2.6rem; }
    .tvm-pagehead__jar .tvm-jarlabel__name { font-size: 1rem; }
}

.tvm-crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: .8rem; }
.tvm-crumbs a { color: var(--ink-2); }
.tvm-crumbs a:hover { color: var(--link); }

.tvm-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tvm-chips .tvm-label { margin: 0; min-height: 40px; padding-inline: .9rem; font-size: .9rem; }

.tvm-termtext { margin-top: 3rem; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 860px; }
.tvm-termtext__title { font-size: 1.4rem; }

.tvm-empty { padding: 2rem; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Pagination ---------- */
.tvm-pagination { margin-top: 2.5rem; }
.tvm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.tvm-pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
    border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 700;
}
.tvm-pagination .page-numbers.current { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.tvm-pagination a.page-numbers:hover { border-color: var(--paprika); color: var(--link); }

/* ---------- Article ---------- */
.tvm-article__head { padding-block: 1.6rem 1.4rem; }
.tvm-article__title { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.85rem); margin-bottom: .45em; text-wrap: balance; }
.tvm-article__lead { font-size: 1.2rem; color: var(--ink-2); }
.tvm-byline { display: flex; align-items: center; gap: .75rem; }
.tvm-byline__text { display: flex; flex-direction: column; line-height: 1.45; }
.tvm-byline__name { font-weight: 700; color: var(--ink); }
.tvm-byline__meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--ink-2); font-size: .92rem; }
.tvm-byline__meta span { display: inline-flex; align-items: center; gap: .3rem; }

.tvm-article__media { margin-block: .6rem 2.2rem; }
.tvm-article__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }

.tvm-article__layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "main aside";
    gap: 3rem; align-items: start; padding-bottom: 3.5rem;
}
.tvm-article__main { grid-area: main; min-width: 0; max-width: 46rem; }
.tvm-recipecard { grid-area: aside; position: sticky; top: 1.2rem; }
.tvm-recipecard__box {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.tvm-recipecard__box::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--paprika) 0 50%, var(--saffron) 50%); }
.tvm-recipecard__title { font: 700 1.7rem/1 var(--font-hand); color: var(--link); margin: .2rem 0 .7rem; }
.tvm-recipecard__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.tvm-printbtn { width: 100%; }
.tvm-toc { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.tvm-toc summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; cursor: pointer; font-weight: 700; }
.tvm-toc ol { margin: .2rem 0 0; padding: 0; list-style: none; counter-reset: toc; max-height: 52vh; overflow: auto; }
.tvm-toc li { counter-increment: toc; }
.tvm-toc a {
    display: flex; gap: .55rem; padding: .35rem .2rem; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.45; border-radius: 6px;
}
.tvm-toc a::before { content: counter(toc); flex: none; font-family: var(--font-title); color: var(--link); min-width: 1.2rem; }
.tvm-toc a:hover, .tvm-toc a.is-active { color: var(--ink); background: var(--saffron-soft); }

@media (max-width: 999px) {
    .tvm-article__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "main"; gap: 1.6rem; }
    .tvm-recipecard { position: static; }
    .tvm-article__main { max-width: none; }
    .tvm-printbtn { width: auto; }
}

/* ---------- Prose ---------- */
.tvm-prose { font-size: 1.11rem; line-height: 1.85; }
.tvm-prose > *:first-child { margin-top: 0; }
.tvm-prose h2 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.8rem); margin: 2.4em 0 .7em; padding-bottom: .35rem; position: relative; }
.tvm-prose h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--saffron) 0 70%, var(--paprika) 70%); }
.tvm-prose h3 { font-size: 1.3rem; margin: 1.9em 0 .55em; }
.tvm-prose h4 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.tvm-prose ul, .tvm-prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.3em; }
.tvm-prose li { margin-bottom: .4em; }
.tvm-prose ul > li::marker { color: var(--paprika); }
.tvm-prose ol { list-style: none; counter-reset: step; padding-inline-start: 0; }
.tvm-prose ol > li { counter-increment: step; position: relative; padding-inline-start: 2.6rem; }
.tvm-prose ol > li::before {
    content: counter(step); position: absolute; inset-inline-start: 0; top: .15em;
    display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%;
    background: var(--saffron); color: #2A1A14; font: 400 .98rem/1 var(--font-title);
}
.tvm-prose blockquote { margin: 1.6em 0; padding: 1rem 1.3rem; border-inline-start: 4px solid var(--saffron); background: var(--card); border-radius: 0 10px 10px 0; }
.tvm-prose strong { font-weight: 700; }
.tvm-prose img { border-radius: 12px; }
.tvm-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }

.tvm-table { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tvm-table table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.55; }
.tvm-table th, .tvm-table td { padding: .65rem .9rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.tvm-table th { background: var(--paper-2); font-weight: 700; }
.tvm-table tr:last-child td { border-bottom: 0; }

.tvm-ingredients {
    margin: 1.4em 0 1.8em; padding: 1.1rem 1.3rem .6rem;
    background: var(--ingredients-bg); border: 2px dashed rgba(156, 44, 19, .4); border-radius: 14px;
}
.tvm-prose .tvm-ingredients__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.22rem; }
.tvm-ingredients__title .tvm-icon { color: var(--link); }
.tvm-ingredients__count { margin: .1rem 0 .7rem; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.tvm-prose .tvm-ingredients__list { list-style: none; padding: 0; margin: 0 0 .6rem; }
.tvm-prose .tvm-ingredients__list li {
    position: relative; padding: .45rem 0; padding-inline-start: 1.9rem; margin: 0;
    border-bottom: 1px dotted rgba(156, 44, 19, .3);
}
.tvm-prose .tvm-ingredients__list li:last-child { border-bottom: 0; }
.tvm-prose .tvm-ingredients__list li::before {
    content: ""; position: absolute; inset-inline-start: .15rem; top: .85rem;
    width: 1rem; height: 1rem; border-radius: 4px; border: 2px solid var(--paprika); background: var(--card);
}

.tvm-allergens {
    position: relative; padding: .9rem 1.2rem; padding-inline-start: 3rem;
    background: var(--allergen-bg); border-radius: 12px; border-inline-start: 5px solid var(--paprika);
    font-size: 1rem; line-height: 1.7;
}
.tvm-allergens::before {
    content: "!"; position: absolute; inset-inline-start: .9rem; top: .95rem;
    display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
    background: var(--paprika); color: #fff; font: 400 .95rem/1 var(--font-title);
}
.tvm-fineprint { font-size: .95rem; color: var(--ink-2); padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tvm-readalso { padding: .9rem 1.1rem; background: var(--saffron-soft); border-radius: 12px; }

/* home text: the "what's in your kitchen" pantry list */
.tvm-prose dl { margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.tvm-pantry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; position: relative; }
.tvm-pantry::before { content: ""; position: absolute; inset-inline-start: 1.2rem; top: -1px; width: 44px; height: 5px; border-radius: 0 0 4px 4px; background: var(--saffron); }
.tvm-pantry dt { font-family: var(--font-title); font-size: 1.15rem; line-height: 1.35; margin-bottom: .4rem; }
.tvm-pantry dd { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.tvm-prose--home { max-width: none; }
.tvm-section--paper .tvm-wrap--text { width: min(100% - 2.5rem, 900px); }

.tvm-disclaimer {
    display: flex; gap: .9rem; margin-top: 2.6rem; padding: 1.2rem 1.3rem;
    background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.tvm-disclaimer .tvm-icon { color: var(--link); margin-top: .2rem; }
.tvm-disclaimer__title { font-family: var(--font-title); font-size: 1.15rem; margin-bottom: .3rem; }
.tvm-disclaimer p:last-child { margin: 0; color: var(--ink-2); font-size: .98rem; }

.tvm-authorbox {
    display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 1.4rem; padding: 1.4rem;
    background: var(--paper-2); border-radius: var(--radius);
}
.tvm-authorbox__label { margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.tvm-authorbox__name { font-size: 1.3rem; margin: 0 0 .35rem; }
.tvm-authorbox p:last-child { margin: 0; color: var(--ink-2); }

/* contact form plugin: keep its fields readable in the theme */
.tvm-prose input[type="text"], .tvm-prose input[type="tel"], .tvm-prose input[type="email"], .tvm-prose textarea {
    width: 100%; min-height: 46px; padding: .55rem .85rem; border-radius: 10px; border: 1.5px solid var(--line-strong);
    background: var(--card); color: var(--ink); font: inherit;
}
.tvm-prose button[type="submit"], .tvm-prose input[type="submit"] {
    min-height: 46px; padding: .5rem 1.4rem; border-radius: 999px; border: 0; background: var(--paprika); color: #fff; font: 700 1rem var(--font-body); cursor: pointer;
}

/* ---------- Footer ---------- */
.tvm-footer { background: #2B1710; color: #EFE0CB; margin-top: 0; }
.tvm-footer::before { content: ""; display: block; height: 14px; background: linear-gradient(var(--wood-1), var(--wood-2) 55%, var(--wood-3)); }
.tvm-footer__grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 2.4rem; padding-block: 3rem 2rem; }
.tvm-footer a { color: #F7D27A; }
.tvm-brand--footer { color: #EFE0CB; }
.tvm-brand--footer .tvm-brand__name { color: #F7C9B6; }
.tvm-brand--footer .tvm-brand__tag { color: #D8C4AC; }
.tvm-footer .tvm-mark__ink, .tvm-footer .tvm-mark__grains { fill: #E8D7C0; }
.tvm-footer .tvm-mark__salt { stroke: #E8D7C0; }
.tvm-footer__about p { margin-top: 1rem; color: #D8C4AC; font-size: .98rem; }
.tvm-footer__title { font-family: var(--font-hand); font-weight: 700; font-size: 1.9rem; color: #F7D27A; margin-bottom: .5rem; }
.tvm-footer__list { list-style: none; margin: 0; padding: 0; }
.tvm-footer__list a { display: inline-flex; align-items: center; min-height: 40px; color: #EFE0CB; text-decoration: none; }
.tvm-footer__list a:hover { color: #F7D27A; text-decoration: underline; }
.tvm-footer__list--cols { columns: 2; column-gap: 1.6rem; }
.tvm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgba(239, 224, 203, .18); font-size: .9rem; color: #D8C4AC; }
.tvm-footer__bottom p { margin: 0; }
.tvm-totop { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; text-decoration: none; font-weight: 700; }
.tvm-footer :focus-visible { outline-color: #F7D27A; }
@media (max-width: 899px) {
    .tvm-footer__grid { grid-template-columns: 1fr 1fr; }
    .tvm-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .tvm-footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .tvm-rack__link:hover, .tvm-card:hover { transform: none; }
}

/* ---------- Print: the recipe, nothing else ---------- */
@media print {
    :root { --paper: #fff; --paper-2: #fff; --card: #fff; --ink: #000; --ink-2: #333; --link: #000; --ingredients-bg: #fff; --allergen-bg: #fff; --saffron-soft: #fff; }
    body { font-size: 11.5pt; line-height: 1.5; background: #fff; }
    .tvm-header, .tvm-footer, .tvm-skip, .tvm-crumbs, .tvm-recipecard, .tvm-authorbox, .tvm-related, .tvm-label { display: none !important; }
    .tvm-article__layout { display: block; padding: 0; }
    .tvm-wrap, .tvm-wrap--mid { width: 100%; }
    .tvm-article__media img { max-height: 7cm; width: auto; box-shadow: none; border-radius: 6px; }
    .tvm-prose { font-size: 11.5pt; line-height: 1.5; }
    .tvm-prose h2 { break-after: avoid; margin-top: 1.4em; }
    .tvm-ingredients, .tvm-table, .tvm-allergens { break-inside: avoid; border-color: #888; }
    .tvm-prose a { color: #000; text-decoration: none; }
    .tvm-disclaimer { break-inside: avoid; border-color: #888; }
}
