/* ==========================================================================
   Marinelloni — hand-written stylesheet (no framework).
   01 · tokens, base, type, buttons, header, ticker + awning, menu, loader,
        modal shell and the shared "market objects" (arch, price tag, wax
        seal, recipe card, washi tape, stamp, kitchen note).
   Built into ../styles.css by concatenating src/0*.css (see README.md).
   ========================================================================== */

:root {
    /* Fresh white with deep forest colour blocks (v1.2). */
    --linen: #ffffff;          /* page */
    --linen-2: #f7f8f5;        /* alternating soft band */
    --paper: #ffffff;          /* cards */
    --oat: #e8ede8;            /* image placeholders, frames */
    --kraft: #e9d5b0;          /* deli tags (objects only) */
    --kraft-2: #d9bd92;
    --twine: #a0855c;

    --sage: #6f8f7a;
    --sage-deep: #2f4a3a;      /* forest block: sign, buttons, footer board */
    --sage-ink: #1f3328;
    --sage-soft: #e7efe9;

    --blush: #fde9e4;          /* tomato tint */
    --blush-2: #f2b4a8;
    --terra: #d2452f;          /* tomato red (decor, large type, fills) */
    --terra-deep: #b0351f;     /* tomato red for small text (6.2:1 on white) */

    --gold: #f2c94c;           /* lemon highlight, used sparingly */
    --gold-light: #f6d975;
    --gold-deep: #7d5f08;      /* lemon-family text on white (5.6:1) */

    --espresso: #1d2a22;       /* near-black green text */
    --board: #2f4a3a;
    --chalk: #f3f5ef;
    --chalk-dim: #c9d6cc;      /* 6:1 on the forest board */

    --text: #1d2a22;
    --soft: #3f4f45;
    --dim: #5b6a61;            /* 5.6:1 on white, 5.3:1 on #f7f8f5 */
    --line: rgba(29, 42, 34, .13);
    --line-strong: rgba(29, 42, 34, .26);

    --f-display: 'Gilda Display', 'Didot', 'Bodoni 72', Georgia, serif;
    --f-script: 'La Belle Aurore', 'Bradley Hand', 'Segoe Script', cursive;
    --f-body: 'Albert Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

    --wrap: 1240px;
    --radius: 22px;
    --ticker-h: 34px;
    --awning-h: 24px;
    --header-h: 78px;
    --top-h: calc(var(--ticker-h) + var(--awning-h) + var(--header-h));
    --shadow: 0 30px 60px -34px rgba(20, 35, 27, .42);
    --shadow-sm: 0 14px 30px -18px rgba(20, 35, 27, .4);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-back: cubic-bezier(.34, 1.4, .64, 1);

    --seal-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 2.5c3 0 4.6 2.6 7.4 3.4 2.8.8 5.6-.7 7.7 1.3 2.1 2 .8 4.9 1.7 7.6.9 2.7 3.7 4.3 3.7 7.2 0 3-2.7 4.5-3.5 7.3-.8 2.8.7 5.6-1.3 7.7-2 2.1-4.9.8-7.6 1.7-2.7.9-4.3 3.7-7.2 3.7-3 0-4.6-2.7-7.4-3.5-2.8-.8-5.6.6-7.7-1.4-2.1-2-.7-4.9-1.6-7.6C6 25.2 3.3 23.6 3.3 20.7c0-3 2.8-4.4 3.6-7.2.8-2.8-.6-5.6 1.4-7.7 2-2.1 4.9-.7 7.6-1.6C18.6 3.3 21.1 2.5 24 2.5z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.tm-body {
    margin: 0;
    background: var(--linen);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Paper grain — one static SVG tile, multiplied softly over the linen. */

body.tm-lock { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0; }

figure { margin: 0; }

::selection { background: var(--blush-2); color: var(--espresso); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.tm-skip {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: 3px;
    background: var(--espresso);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    transition: top .3s var(--ease);
}
.tm-skip:focus { top: 12px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.tm-main { position: relative; overflow-x: clip; }

.tm-wrap {
    width: calc(100% - 32px);
    max-width: var(--wrap);
    margin-inline: auto;
}
.tm-wrap--narrow { max-width: 960px; }
.tm-wrap--wide { max-width: 1600px; }

.tm-section { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.tm-section--tight { padding: 0 0 clamp(72px, 9vw, 110px); }

/* ---------- type helpers ---------- */

.tm-eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--terra-deep);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.tm-eyebrow .tm-ico { color: var(--sage-deep); }
.tm-eyebrow__sep { color: var(--terra); }

.tm-title {
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -.005em;
    color: var(--espresso);
}
.tm-title em,
.tm-hero__title em {
    font-style: normal;
    color: var(--sage-deep);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c40-6 90-7 140-4s110 3 156-2' fill='none' stroke='%23f2c94c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 92% / 100% .26em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.tm-lead { color: var(--soft); font-size: clamp(16px, 1.35vw, 19px); max-width: 620px; }

.tm-script {
    font-family: var(--f-script);
    font-weight: 400;
    line-height: 1.15;
    color: var(--terra-deep);
}

.tm-head { position: relative; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.tm-head .tm-lead { margin-top: 20px; }
.tm-head--center { margin-inline: auto; text-align: center; }
.tm-head--center .tm-lead { margin-inline: auto; }
.tm-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: end;
}
.tm-head--split .tm-lead { margin-top: 0; }

.tm-ico { flex: 0 0 auto; }

/* ---------- buttons ---------- */

.tm-btn {
    --bg: var(--sage-deep);
    --fg: #ffffff;
    --bg-h: var(--terra-deep);
    --fg-h: #ffffff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 26px 0 24px;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    /* squared, with one notched corner like a cut deli ticket */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 1.5px var(--edge, transparent);
    transition: background .35s var(--ease), color .35s var(--ease);
}
.tm-btn--lg { min-height: 56px; padding: 0 30px 0 28px; font-size: 15px; }
.tm-btn--full { width: 100%; justify-content: space-between; }
.tm-btn__text { display: block; }
.tm-btn__icon { display: inline-flex; transition: transform .45s var(--ease-back); }
.tm-btn:hover, .tm-btn:focus-visible { background: var(--bg-h); color: var(--fg-h); }
.tm-btn:hover .tm-btn__icon, .tm-btn:focus-visible .tm-btn__icon { transform: translateX(5px); }
.tm-btn:active { transform: translateY(1px); }

.tm-btn--ghost { --bg: transparent; --fg: var(--espresso); --edge: var(--espresso); --bg-h: var(--espresso); }
.tm-btn--linen { --bg: #ffffff; --fg: var(--sage-ink); --bg-h: var(--gold); --fg-h: var(--espresso); }
.tm-btn--terra { --bg: var(--terra-deep); --bg-h: var(--espresso); }
.tm-btn--ghost-light { --bg: transparent; --fg: #ffffff; --edge: rgba(255, 255, 255, .7); --bg-h: #ffffff; --fg-h: var(--espresso); }

.tm-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--terra-deep);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(176, 53, 31, .35);
    text-underline-offset: 4px;
}
.tm-link-btn .tm-ico { transition: transform .4s var(--ease); }
.tm-link-btn:hover .tm-ico { transform: translateX(4px); }

/* ---------- header: a painted shop sign ---------- */

.tm-sign { position: sticky; top: 0; z-index: 60; }
body.admin-bar .tm-sign { top: 32px; }

.tm-sign__board {
    position: relative;
    background-color: var(--sage-deep);
    /* faint painted-board planks */
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 26px);
    border-bottom: 4px solid var(--sage-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tm-sign__inner {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    width: calc(100% - 40px);
    max-width: 1360px;
    min-height: 104px;
    margin-inline: auto;
    padding: 14px 0;
    transition: min-height .45s var(--ease);
}
.tm-sign.is-scrolled .tm-sign__inner { min-height: 80px; padding: 8px 0; }

/* Logo plaque: a painted panel with a gilt edge and two brass pins. */
.tm-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--espresso); text-decoration: none; }
.tm-logo__seal { display: grid; place-items: center; }
.tm-logo__wax { fill: var(--terra); }
.tm-logo__ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.tm-logo__sprig { fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; }
.tm-logo__leaf { fill: var(--paper); }
.tm-logo__olive { fill: var(--gold-light); }
.tm-logo__text { display: flex; flex-direction: column; line-height: 1; }
.tm-logo__name { font-family: var(--f-display); font-size: 25px; letter-spacing: .01em; }
.tm-logo__line { margin-top: 7px; color: var(--dim); font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; }

.tm-logo--header, .tm-logo--footer {
    flex: 0 0 auto;
    padding: 12px 30px 12px 18px;
    border-radius: 8px;
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 9px 50%, var(--gold-deep) 2.4px, transparent 3px),
        radial-gradient(circle at calc(100% - 9px) 50%, var(--gold-deep) 2.4px, transparent 3px);
    box-shadow: 0 0 0 3px var(--sage-deep), 0 0 0 5px var(--gold), 0 14px 22px -12px rgba(0, 0, 0, .55);
    transform: rotate(-1deg);
    transition: transform .6s var(--ease-back);
}
.tm-logo--header .tm-logo__seal svg, .tm-logo--footer .tm-logo__seal svg { width: 50px; height: 50px; }
.tm-logo--header .tm-logo__name, .tm-logo--footer .tm-logo__name { font-size: 31px; }
.tm-logo--header:hover, .tm-logo--footer:hover { transform: rotate(0deg) scale(1.02); }
.tm-sign.is-scrolled .tm-logo--header { transform: rotate(-1deg) scale(.86); transform-origin: left center; }

/* Nav as painted lettering on the sign. */
.tm-nav { margin-left: auto; }
.tm-nav .header-menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.tm-nav .menu-item { margin: 0; }
.tm-nav .menu-item__link,
.tm-nav .header-menu a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: var(--paper);
    font-family: var(--f-display);
    font-size: 15.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
    transition: color .3s;
}
.tm-nav .header-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-light);
    transform: scaleX(0) rotate(-1deg);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.tm-nav .header-menu a:hover, .tm-nav .current-menu-item > a { color: var(--gold-light); }
.tm-nav .header-menu a:hover::after, .tm-nav .current-menu-item > a::after { transform: scaleX(1) rotate(-1deg); }

.tm-sign__actions { display: flex; align-items: center; gap: 16px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .22); }
.tm-sign__link { color: var(--paper); font-size: 14.5px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 5px; }
.tm-sign__link:hover { color: var(--gold-light); }

.tm-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 4px;
    background: transparent;
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.tm-lang:hover { background: rgba(255, 255, 255, .12); }

/* Awning hem hanging below the sign. */
.tm-sign__awning {
    display: block;
    height: 26px;
    background: repeating-linear-gradient(90deg, var(--terra) 0 30px, var(--paper) 30px 60px);
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 11px no-repeat, radial-gradient(circle at 15px 11px, #000 14.4px, transparent 15px) 0 0 / 30px 100% repeat-x;
    mask: linear-gradient(#000 0 0) 0 0 / 100% 11px no-repeat, radial-gradient(circle at 15px 11px, #000 14.4px, transparent 15px) 0 0 / 30px 100% repeat-x;
    filter: drop-shadow(0 4px 4px rgba(29, 42, 34, .18));
}

/* Hanging kraft tag — the call to action. */
.tm-hangtag { display: inline-block; color: var(--espresso); text-decoration: none; transform-origin: 50% 0; transition: transform .8s var(--ease-back); }
.tm-hangtag:hover, .tm-hangtag:focus-visible { transform: rotate(-6deg); }
.tm-hangtag__twine { position: relative; display: block; width: 2px; height: 34px; margin: 0 auto; background: var(--twine); }
.tm-hangtag__twine::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .4); }
.tm-hangtag__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 148px;
    margin-top: -2px;
    padding: 28px 22px 14px;
    text-align: center;
    filter: drop-shadow(0 12px 14px rgba(29, 42, 34, .3));
}
.tm-hangtag__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kraft);
    clip-path: polygon(20% 0, 80% 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}
.tm-hangtag__hole { position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border: 2.5px solid var(--gold); border-radius: 50%; background: var(--sage-deep); }
.tm-hangtag__kicker { color: var(--terra-deep); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.tm-hangtag__label { font-family: var(--f-display); font-size: 19px; line-height: 1.15; }
.tm-hangtag:hover .tm-hangtag__label { color: var(--terra-deep); }

.tm-sign__tag { position: absolute; top: calc(100% - 30px); right: max(26px, calc((100vw - 1360px) / 2 + 10px)); }

/* Mobile "Menu" tag. */
.tm-menutag {
    position: relative;
    isolation: isolate;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 30px;
    border: 0;
    background: none;
    color: var(--espresso);
    font-family: var(--f-display);
    font-size: 18px;
    cursor: pointer;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
    transform: rotate(-3deg);
}
.tm-menutag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--kraft); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.tm-menutag__hole { position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sage-deep); }

.tm-dots-row { display: flex; }

/* ---------- mobile drawer: an awning unrolling ---------- */

.tm-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
}
.tm-drawer__body {
    position: absolute;
    inset: 0 0 auto;
    max-height: 100%;
    overflow-y: auto;
    padding: 22px 22px 34px;
    background: var(--linen);
    transform: translateY(-102%);
    transition: transform .7s var(--ease);
}
.tm-drawer__body::after {
    content: "";
    display: block;
    height: 16px;
    margin: 30px -22px -34px;
    background: repeating-linear-gradient(90deg, var(--sage-deep) 0 28px, var(--paper) 28px 56px);
    -webkit-mask: radial-gradient(circle at 14px 0, #000 15.4px, transparent 16px) 0 0 / 28px 100% repeat-x;
    mask: radial-gradient(circle at 14px 0, #000 15.4px, transparent 16px) 0 0 / 28px 100% repeat-x;
}
.tm-drawer.is-open { visibility: visible; pointer-events: auto; }
.tm-drawer.is-open .tm-drawer__body { transform: none; }
.tm-drawer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(29, 42, 34, .45);
    opacity: 0;
    transition: opacity .5s;
}
.tm-drawer.is-open::before { opacity: 1; }

.tm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tm-drawer__close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
}
.tm-drawer__nav .header-menu { margin: 18px 0 0; padding: 0; list-style: none; }
.tm-drawer__nav .menu-item { border-bottom: 1px solid var(--line); }
.tm-drawer__nav .header-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: var(--espresso);
    font-family: var(--f-display);
    font-size: 30px;
    line-height: 1.1;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.tm-drawer__nav .header-menu a::after { content: "→"; color: var(--terra-deep); font-family: var(--f-body); font-size: 20px; }
.tm-drawer.is-open .tm-drawer__nav .header-menu a { opacity: 1; transform: none; }
.tm-drawer.is-open .menu-item:nth-child(1) a { transition-delay: .25s; }
.tm-drawer.is-open .menu-item:nth-child(2) a { transition-delay: .3s; }
.tm-drawer.is-open .menu-item:nth-child(3) a { transition-delay: .35s; }
.tm-drawer.is-open .menu-item:nth-child(4) a { transition-delay: .4s; }
.tm-drawer.is-open .menu-item:nth-child(5) a { transition-delay: .45s; }
.tm-drawer.is-open .menu-item:nth-child(6) a { transition-delay: .5s; }
.tm-drawer.is-open .menu-item:nth-child(7) a { transition-delay: .55s; }

.tm-drawer__produce { margin-top: 26px; }
.tm-drawer__produce .tm-script { margin-bottom: 10px; font-size: 24px; }
.tm-drawer__actions { display: grid; gap: 10px; margin-top: 26px; }

.tm-dots-row { display: flex; }
.tm-dots-row img {
    width: 46px;
    height: 46px;
    margin-left: -10px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 14px -8px rgba(29, 42, 34, .5);
}
.tm-dots-row img:first-child { margin-left: 0; }
.tm-dots-row--center { justify-content: center; }

/* ---------- modal shell (language modal + recipe card) ---------- */

.tm-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(29, 42, 34, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
}
.tm-modal.is-open { opacity: 1; visibility: visible; }
.tm-modal__scrim { position: absolute; inset: 0; }
.tm-modal__card {
    position: relative;
    width: min(460px, 100%);
    padding: 30px;
    border-radius: 26px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(24px) scale(.98);
    transition: transform .5s var(--ease);
}
.tm-modal.is-open .tm-modal__card { transform: none; }
.tm-modal__x {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
    color: var(--espresso);
    cursor: pointer;
    transition: transform .4s var(--ease), background .3s;
}
.tm-modal__x:hover { transform: rotate(90deg); background: var(--blush); }

.languages .image-close { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.languages .title { color: var(--terra-deep); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.languages h3 { margin: 6px 0 18px; font-family: var(--f-display); font-size: 26px; line-height: 1.15; }
.languages .ddl-select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--linen);
    color: var(--espresso);
    font: inherit;
}

/* ---------- shared market objects ---------- */

/* Arched frame: a tall arch with a thin inner hairline, like a shop window. */
.tm-arch {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: var(--oat);
}
.tm-arch img { width: 100%; height: 100%; object-fit: cover; }
.tm-arch::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 2px;
    pointer-events: none;
}

/* Deli price tag on twine. The tag shape is painted by ::before so the
   twine (a child) can hang outside it without being clipped. */
.tm-pricetag {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 40px 22px 18px;
    color: var(--espresso);
    transform-origin: 50% -60px;
    filter: drop-shadow(0 16px 18px rgba(20, 35, 27, .2));
}
.tm-pricetag::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kraft);
    clip-path: polygon(16% 0, 84% 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}
.tm-pricetag__hole {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: var(--linen);
    box-shadow: inset 0 1px 2px rgba(29, 42, 34, .25);
}
.tm-pricetag__string {
    position: absolute;
    bottom: calc(100% - 20px);
    left: 50%;
    width: 1.6px;
    height: 76px;
    background: var(--twine);
    transform-origin: bottom;
    transform: rotate(14deg);
}
.tm-pricetag__kicker { color: var(--terra-deep); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.tm-pricetag__name { font-family: var(--f-display); font-size: 21px; font-weight: 400; line-height: 1.15; }
.tm-pricetag__meta { color: var(--soft); font-size: 13px; }

@keyframes tm-swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(2.5deg); }
}

/* Wax seal (wavy edge from the logo path). */
.tm-seal {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    background: var(--terra);
    color: var(--paper);
    -webkit-mask: var(--seal-mask) center / contain no-repeat;
    mask: var(--seal-mask) center / contain no-repeat;
    box-shadow: inset -4px -5px 8px rgba(70, 25, 10, .35), inset 3px 3px 6px rgba(255, 220, 200, .35);
    transition: transform .6s var(--ease-back);
}
.tm-seal > span {
    display: grid;
    place-items: center;
    width: 64%;
    height: 64%;
    border: 1.2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    font-family: var(--f-display);
    font-size: 17px;
    line-height: 1;
}
.tm-seal--sm { width: 38px; height: 38px; }
.tm-seal--sm > span { font-size: 13px; }
.tm-seal--lg { width: 66px; height: 66px; }
.tm-seal--lg > span { font-size: 21px; }

/* Recipe index card with ruled lines. */
.tm-rcard {
    margin: 0;
    padding: 10px 10px 16px;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.tm-rcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.tm-rcard figcaption {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 12px 6px 0;
    background: repeating-linear-gradient(transparent 0 25px, rgba(111, 143, 122, .25) 25px 26px);
}
.tm-rcard .tm-seal { grid-row: span 2; }
.tm-rcard strong { font-family: var(--f-display); font-size: 17px; font-weight: 400; line-height: 1.2; }
.tm-rcard .tm-script { color: var(--sage-deep); font-size: 17px; }

/* Washi tape. */
.tm-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 92px;
    height: 24px;
    margin-left: -46px;
    background: rgba(230, 185, 163, .72);
    transform: rotate(-4deg);
    clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}

/* Kitchen note (taped paper). */
.tm-knote {
    position: relative;
    padding: 26px 22px 18px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transform: rotate(-2deg);
}
.tm-knote p { font-family: var(--f-display); font-size: 18px; line-height: 1.4; color: var(--espresso); }
.tm-knote .tm-script { display: block; margin-top: 8px; color: var(--terra-deep); font-size: 22px; text-align: right; }


/* Language modal as a deli card with a punched hole. */
.languages .tm-modal__card { border-radius: 4px; padding-top: 44px; }
.languages .tm-modal__card::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border: 3px solid var(--gold); border-radius: 50%; background: var(--linen); }
.languages .tm-modal__card::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
/* ==========================================================================
   02 · sections: hero, market strip, menu board, recipe box, recipe card
        modal, shopping list, how it works, household voices, pricing tags,
        FAQ, parcel CTA, footer, inner pages, auth, about, contact, profile,
        toasts, back-to-top, leaf burst.
   ========================================================================== */

.tm-list__grid > *, .tm-auth__wrap > *, .tm-contact__grid > *, .tm-story__grid > *,
.tm-faq__grid > *, .tm-cta__grid > *, .tm-board > *, .tm-profile-page > *, .tm-head--split > * { min-width: 0; }

/* ---------- hero: full-bleed photo + docked menu card ---------- */

.tm-hero { position: relative; height: clamp(580px, 88vh, 960px); overflow: hidden; background: var(--oat); }
.tm-hero--about { height: clamp(520px, 72vh, 820px); }
.tm-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-hero__dock { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); margin-inline: auto; }

.tm-menucard {
    position: relative;
    width: min(620px, 100%);
    padding: clamp(32px, 3.6vw, 48px) clamp(26px, 3.6vw, 50px) clamp(30px, 3vw, 40px);
    border-radius: 3px;
    background: var(--paper);
    box-shadow: 0 40px 70px -30px rgba(10, 25, 18, .55);
}
.tm-menucard::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-strong); pointer-events: none; }
.tm-menucard::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; }
.tm-menucard__eyebrow { color: var(--terra-deep); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.tm-menucard__title { margin-top: 14px; font-family: var(--f-display); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; color: var(--espresso); }
.tm-menucard__title em {
    font-style: normal;
    color: var(--sage-deep);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c40-6 90-7 140-4s110 3 156-2' fill='none' stroke='%23f2c94c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 92% / 100% .26em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.tm-menucard__rule { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--sage-deep); }
.tm-menucard__rule::before, .tm-menucard__rule::after { content: ""; width: 54px; height: 1px; background: var(--line-strong); }
.tm-menucard__rule::before { width: 0; }
.tm-menucard__lead { color: var(--soft); font-size: clamp(15.5px, 1.2vw, 17.5px); }
.tm-menucard__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tm-menucard__tag { position: absolute; top: -26px; right: -150px; width: 200px; z-index: 2; }
.tm-menucard__tag .tm-pricetag__string { height: 44px; transform: rotate(-24deg); }

/* ---------- about: story ---------- */

.tm-story { padding-bottom: clamp(40px, 5vw, 70px); }
.tm-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.tm-story__lead { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; color: var(--espresso); }
.tm-story__text p { color: var(--soft); }
.tm-story__sign { margin-top: 18px; font-size: 28px; }

/* ---------- weekly menu board ---------- */

.tm-week { padding-top: clamp(40px, 5vw, 70px); }

.tm-board {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
    padding: clamp(28px, 4.4vw, 60px);
    border-radius: 30px;
    background: var(--board);
    color: var(--chalk);
    box-shadow: 0 0 0 12px var(--oat), 0 0 0 13px var(--line-strong), var(--shadow);
    margin: 13px;
}
.tm-board::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(243, 245, 239, .16);
    border-radius: 20px;
    pointer-events: none;
}
.tm-board__heading { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.tm-board__heading .tm-script { color: var(--gold-light); font-size: 34px; }
.tm-board__rule { flex: 1; height: 1px; background: rgba(243, 245, 239, .22); }

.tm-board__days { margin: 0; padding: 0; list-style: none; counter-reset: day; }
.tm-board__day {
    position: relative;
    display: grid;
    grid-template-columns: 128px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: baseline;
    width: 100%;
    padding: 12px 10px 12px 18px;
    border: 0;
    border-bottom: 1px solid rgba(243, 245, 239, .1);
    border-radius: 12px;
    background: transparent;
    color: var(--chalk);
    text-align: left;
    cursor: pointer;
    transition: background .35s, transform .45s var(--ease);
}
.tm-board__day::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--gold-light);
    transform: scale(0);
    transition: transform .4s var(--ease-back);
}
.tm-board__day:hover { transform: translateX(6px); background: rgba(243, 245, 239, .04); }
.tm-board__day.is-active { background: rgba(243, 245, 239, .07); }
.tm-board__day.is-active::before { transform: scale(1); }
.tm-board__dayname { grid-row: span 2; color: var(--gold-light); font-family: var(--f-script); font-size: 24px; line-height: 1.2; }
.tm-board__dish { font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
.tm-board__aside { color: var(--chalk-dim); font-size: 19px; }

.tm-board__plate { position: relative; margin: 0; justify-self: center; width: min(380px, 100%); }
.tm-board__photo { aspect-ratio: 4 / 5; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); }
.tm-board__photo img { transition: opacity .35s ease, transform .9s var(--ease); }
.tm-board__photo img.is-swapping { opacity: 0; transform: scale(1.06); }
.tm-board__tag { position: absolute; left: -12%; bottom: -8%; width: 232px; }
.tm-board__tag .tm-pricetag__hole { background: var(--board); }
.tm-board__tag .tm-link-btn { margin-top: 8px; }

/* ---------- recipe box ---------- */

.tm-recipes { background: var(--linen-2); }

.tm-filters {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto clamp(30px, 4vw, 48px);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper);
    overflow-x: auto;
    scrollbar-width: none;
}
.tm-filters::-webkit-scrollbar { display: none; }
.tm-filters__ink {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 0;
    border-radius: 3px;
    background: var(--sage-deep);
    transition: left .5s var(--ease), width .5s var(--ease);
}
.tm-filter {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 10px 20px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--soft);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color .4s;
}
.tm-filter:hover { color: var(--espresso); }
.tm-filter.is-active { color: var(--paper); }

.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.tm-grid__empty { margin-top: 20px; color: var(--dim); text-align: center; }

.tm-recipe.is-hidden { display: none; }
.tm-recipe.is-shown { animation: tm-card-in .6s var(--ease) both; }
@keyframes tm-card-in { from { opacity: 0; transform: translateY(18px); } }

.tm-recipe__open {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--espresso);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(29, 42, 34, .04);
    transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.tm-recipe__open:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tm-recipe__photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.tm-recipe__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tm-recipe__open:hover .tm-recipe__photo img { transform: scale(1.05); }
/* Paper scallops biting into the bottom of the photo. */
.tm-recipe__photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 12px;
    background: radial-gradient(circle at 10px 12px, var(--paper) 9.6px, transparent 10px) 0 0 / 20px 12px repeat-x;
}
.tm-recipe .tm-seal { margin: -30px 16px 0 auto; z-index: 2; }
.tm-recipe__open:hover .tm-seal { transform: rotate(-14deg) scale(1.06); }
.tm-recipe__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px 20px;
    background: repeating-linear-gradient(transparent 0 27px, rgba(111, 143, 122, .13) 27px 28px);
    background-position: 0 6px;
}
.tm-recipe__course { color: var(--terra-deep); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tm-recipe__name { font-family: var(--f-display); font-size: 21px; line-height: 1.22; }
.tm-recipe__note { color: var(--sage-deep); font-size: 18px; }
.tm-recipe__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 10px; color: var(--dim); font-size: 13px; }
.tm-recipe__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- recipe card modal ---------- */

.tm-rmodal { padding: 20px; }
.tm-rmodal__card {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    width: min(1000px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(26px) scale(.98);
    transition: transform .55s var(--ease);
}
.tm-rmodal.is-open .tm-rmodal__card { transform: none; }
.tm-rmodal__card > .tm-modal__x { position: absolute; top: 16px; right: 16px; z-index: 3; }
.tm-rmodal__photo { position: relative; margin: 0; min-height: 100%; background: var(--oat); }
.tm-rmodal__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-rmodal__photo .tm-seal { position: absolute; right: -33px; top: 40px; z-index: 2; }
.tm-rmodal__body {
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
    background: repeating-linear-gradient(transparent 0 31px, rgba(111, 143, 122, .14) 31px 32px);
}
.tm-rmodal__title { margin-top: 6px; font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; padding-right: 40px; }
.tm-rmodal__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; color: var(--soft); font-size: 14px; }
.tm-rmodal__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tm-rmodal__note { margin-top: 10px; font-size: 24px; color: var(--sage-deep); }
.tm-rmodal__sub { margin: 24px 0 10px; color: var(--terra-deep); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tm-rmodal__items { margin: 0; padding: 0; list-style: none; }
.tm-rmodal__items li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); font-size: 15.5px; }
.tm-rmodal__items .q { color: var(--gold-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-chip { display: inline-block; padding: 3px 10px; border-radius: 3px; background: var(--sage-soft); color: var(--sage-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.tm-rmodal__method { color: var(--soft); }
.tm-rmodal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tm-rmodal__small { margin-top: 14px; color: var(--dim); font-size: 13px; }

/* ---------- shopping list ---------- */

.tm-list__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.tm-list__photo { position: relative; margin: 0; padding-top: 22px; }
.tm-list__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 4px 22px 22px; box-shadow: var(--shadow); }
.tm-list__awning {
    display: block;
    height: 52px;
    position: absolute;
    top: 0;
    left: -14px;
    right: -14px;
    z-index: 2;
    background: repeating-linear-gradient(90deg, var(--terra) 0 30px, var(--paper) 30px 60px);
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 30px no-repeat, radial-gradient(circle at 15px 30px, #000 14.4px, transparent 15px) 0 0 / 30px 100% repeat-x;
    mask: linear-gradient(#000 0 0) 0 0 / 100% 30px no-repeat, radial-gradient(circle at 15px 30px, #000 14.4px, transparent 15px) 0 0 / 30px 100% repeat-x;
    filter: drop-shadow(0 8px 6px rgba(29, 42, 34, .18));
    border-radius: 6px 6px 0 0;
}
.tm-list__photo figcaption {
    position: absolute;
    left: -18px;
    bottom: 34px;
    padding: 10px 22px;
    background: var(--paper);
    color: var(--terra-deep);
    font-size: 24px;
    box-shadow: var(--shadow-sm);
    transform: rotate(-4deg);
}

.tm-pad {
    position: relative;
    max-width: 560px;
    padding: 44px clamp(20px, 3vw, 36px) 26px;
    background: var(--paper);
    border-radius: 6px 6px 18px 18px;
    box-shadow: var(--shadow);
}
/* Perforated top edge of a tear-off pad. */
.tm-pad::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    height: 6px;
    background: radial-gradient(circle, var(--linen-2) 2.4px, transparent 3px) 0 0 / 14px 6px repeat-x;
}
.tm-pad__clip {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 86px;
    height: 34px;
    margin-left: -43px;
    border-radius: 8px 8px 14px 14px;
    background: var(--gold);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 10px -6px rgba(29, 42, 34, .5);
}
.tm-pad__clip::after { content: ""; position: absolute; left: 50%; top: 9px; width: 30px; height: 8px; margin-left: -15px; border-radius: 6px; background: var(--paper); opacity: .8; }
.tm-pad__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--blush-2); }
.tm-pad__head .tm-script { font-size: 32px; }
.tm-pad__hint { color: var(--dim); font-size: 13px; }
.tm-pad__items { margin: 0; padding: 0; list-style: none; }
.tm-pad__item {
    position: relative;
    display: grid;
    grid-template-columns: 26px 78px 1fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid rgba(111, 143, 122, .25);
    background: transparent;
    color: var(--espresso);
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s;
}
.tm-pad__item:hover { background: rgba(225, 230, 214, .45); }
.tm-pad__box {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--sage-deep);
    border-radius: 50%;
    color: transparent;
    transition: background .3s, color .3s, transform .4s var(--ease-back);
}
.tm-pad__qty { color: var(--gold-deep); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-pad__name { position: relative; justify-self: start; transition: color .4s; }
.tm-pad__name::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: 55%;
    height: 2px;
    border-radius: 2px;
    background: var(--terra);
    transform: scaleX(0) rotate(-1.5deg);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.tm-pad__cat { padding: 3px 10px; border-radius: 3px; background: var(--sage-soft); color: var(--sage-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tm-pad__item.is-done .tm-pad__box { background: var(--sage-deep); color: var(--paper); transform: scale(1.06); }
.tm-pad__item.is-done .tm-pad__name { color: var(--dim); }
.tm-pad__item.is-done .tm-pad__name::after { transform: scaleX(1) rotate(-1.5deg); }
.tm-pad__item.is-new { animation: tm-new 1.6s ease; }
@keyframes tm-new { 0% { background: var(--blush); } 100% { background: transparent; } }

.tm-pad__foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.tm-pad__twine { position: relative; flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(60deg, rgba(169, 138, 98, .25) 0 3px, rgba(169, 138, 98, .12) 3px 6px); overflow: hidden; }
.tm-pad__twine span { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(60deg, var(--sage-deep) 0 3px, var(--sage) 3px 6px); border-radius: 4px; transition: width .6s var(--ease); }
.tm-pad__count { color: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- how it works: tags on a garland ---------- */

.tm-how { background: var(--sage-deep); color: #ffffff; }
.tm-how .tm-title { color: #ffffff; }
.tm-how .tm-title em { color: var(--gold-light); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c40-6 90-7 140-4s110 3 156-2' fill='none' stroke='%23d2452f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tm-how .tm-eyebrow, .tm-how .tm-eyebrow .tm-ico { color: var(--gold-light); }
.tm-how .tm-garland__twine path { stroke: #cbb68f; }
.tm-how .tm-steptag__string, .tm-how .tm-steptag__string::before { background: #cbb68f; }
.tm-garland { position: relative; }
.tm-garland__twine { position: absolute; top: 0; left: 0; width: 100%; height: 70px; overflow: visible; }
.tm-garland__twine path { fill: none; stroke: var(--twine); stroke-width: 2; stroke-dasharray: 7 3; vector-effect: non-scaling-stroke; }
.tm-garland__tags { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.tm-steptag { --y: 32px; --s: 46px; padding-top: var(--y); }
.tm-steptag:nth-child(2) { --y: 52px; --s: 70px; }
.tm-steptag:nth-child(3) { --y: 52px; --s: 38px; }
.tm-steptag:nth-child(4) { --y: 32px; --s: 62px; }
.tm-steptag__string { display: block; width: 1.6px; height: var(--s); margin: 0 auto; background: var(--twine); }
.tm-steptag__string::before { content: ""; display: block; width: 8px; height: 8px; margin: -4px 0 0 -3.2px; border-radius: 50%; background: var(--twine); }
.tm-steptag__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
    padding: 46px 22px 26px;
    text-align: center;
    transform-origin: 50% calc(-1 * var(--s));
    transition: transform .8s var(--ease-back);
    filter: drop-shadow(0 18px 20px rgba(20, 35, 27, .14));
}
.tm-steptag__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--paper);
    clip-path: polygon(22% 0, 78% 0, 100% 26px, 100% 100%, 0 100%, 0 26px);
}
.tm-steptag:hover .tm-steptag__card { transform: rotate(2.5deg); }
.tm-steptag:nth-child(even):hover .tm-steptag__card { transform: rotate(-2.5deg); }
.tm-steptag__card .tm-pricetag__hole { top: 14px; background: var(--sage-deep); }
.tm-steptag__num { color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.tm-steptag__card img { width: 104px; height: 104px; border: 4px solid var(--linen); border-radius: 50%; object-fit: cover; }
.tm-steptag__title { font-family: var(--f-display); font-size: 23px; line-height: 1.15; }
.tm-steptag__card p { color: var(--soft); font-size: 15px; line-height: 1.6; }

/* Folded linen napkin band: the household side. */
.tm-napkin {
    position: relative;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 34px;
    align-items: center;
    margin-top: clamp(56px, 7vw, 90px);
    padding: clamp(28px, 4vw, 46px);
    border-radius: 6px;
    background-color: var(--paper);
    background-image: repeating-linear-gradient(0deg, rgba(111, 143, 122, .06) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(111, 143, 122, .06) 0 1px, transparent 1px 4px);
    box-shadow: var(--shadow-sm);
}
.tm-napkin::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(225deg, var(--sage-deep) 50%, #e3e9e4 50%);
    box-shadow: -6px 6px 10px -6px rgba(29, 42, 34, .25);
    border-bottom-left-radius: 6px;
}
.tm-napkin::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: repeating-linear-gradient(180deg, var(--terra) 0 10px, transparent 10px 16px); opacity: .5; }
.tm-napkin__intro .tm-script { font-size: 26px; }
.tm-napkin__title { margin-top: 6px; font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.tm-napkin__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.tm-napkin__list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.tm-napkin__ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); }
.tm-napkin__list strong { font-family: var(--f-display); font-size: 19px; font-weight: 400; }
.tm-napkin__list span:last-child { color: var(--soft); font-size: 14.5px; line-height: 1.5; }

/* ---------- pricing: deli tags on a brass rail ---------- */

.tm-pricing { background: var(--linen-2); }
.tm-rail { position: relative; max-width: 1120px; height: 12px; margin: 0 auto; }
.tm-rail span {
    position: absolute;
    inset: 0 10px;
    border-radius: 12px;
    background: var(--gold);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 8px 12px -8px rgba(29, 42, 34, .5);
}
.tm-rail::before, .tm-rail::after {
    content: "";
    position: absolute;
    top: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-deep);
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25);
}
.tm-rail::before { left: 0; }
.tm-rail::after { right: 0; }

.tm-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 38px); max-width: 1120px; margin: 0 auto; padding: 0 clamp(0px, 2vw, 30px); align-items: start; }
.tm-tags--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tm-tags--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.tm-tags--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tm-plan { position: relative; --s: 54px; }
.tm-plan.is-featured { --s: 30px; }
.tm-plan__string { display: block; width: 1.6px; height: var(--s); margin: 0 auto; background: var(--twine); }
.tm-plan__tag {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 50px clamp(22px, 2.4vw, 32px) 30px;
    transform-origin: 50% calc(-1 * var(--s));
    transition: transform .9s var(--ease-back);
    filter: drop-shadow(0 22px 24px rgba(20, 35, 27, .17));
}
.tm-plan__tag::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kraft);
    clip-path: polygon(20% 0, 80% 0, 100% 30px, 100% 100%, 0 100%, 0 30px);
}
.tm-plan.is-featured .tm-plan__tag::before { background: var(--paper); }
.tm-plan.is-featured .tm-plan__tag::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    border: 1px solid var(--sage);
    clip-path: polygon(20% 0, 80% 0, 100% 26px, 100% 100%, 0 100%, 0 26px);
}
.tm-plan:hover .tm-plan__tag { transform: rotate(1.6deg); }
.tm-plan:nth-child(even):hover .tm-plan__tag { transform: rotate(-1.6deg); }
.tm-plan .tm-pricetag__hole { top: 16px; width: 16px; height: 16px; margin-left: -8px; background: var(--linen-2); }

.tm-plan__seal { position: absolute; top: 34px; right: 18px; display: grid; justify-items: center; gap: 2px; }
.tm-plan__seal em { color: var(--terra-deep); font-family: var(--f-script); font-size: 17px; font-style: normal; transform: rotate(-6deg); }
.tm-plan__name { font-family: var(--f-display); font-size: 28px; line-height: 1.1; padding-right: 70px; }
.tm-plan__price { margin-top: 6px; font-family: var(--f-display); font-size: clamp(40px, 4vw, 54px); line-height: 1; color: var(--espresso); }
.tm-plan__interval { color: var(--soft); font-size: 14px; }
.tm-plan__trial { align-self: flex-start; margin-top: 6px; padding: 5px 12px; border-radius: 3px; background: var(--blush); color: var(--terra-deep); font-size: 13px; font-weight: 600; }
.tm-plan__perf { position: relative; display: block; height: 0; margin: 20px calc(-1 * clamp(22px, 2.4vw, 32px)); border-top: 2px dashed rgba(29, 42, 34, .22); }
.tm-plan__list { display: grid; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.tm-plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--soft); font-size: 15px; line-height: 1.5; }
.tm-plan__list .tm-ico { margin-top: 3px; color: var(--sage-deep); }
.tm-plan .tm-btn { margin-top: auto; }

.tm-pricing__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; color: var(--dim); font-size: 14px; text-align: center; }
.tm-pricing__note .tm-ico { color: var(--sage-deep); }

/* ---------- FAQ ---------- */

.tm-faq__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.tm-faq__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.tm-faq__photo { position: relative; margin: 36px 0 0; max-width: 380px; }
.tm-faq__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.tm-faq__fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border-top-right-radius: 22px;
    background: linear-gradient(225deg, var(--linen) 50%, var(--oat) 50%);
    box-shadow: -6px 6px 10px -6px rgba(29, 42, 34, .3);
}
.tm-faq__photo figcaption { position: absolute; left: -16px; bottom: 26px; padding: 8px 20px; background: var(--paper); font-size: 24px; box-shadow: var(--shadow-sm); transform: rotate(-4deg); }

.tm-qa { border-bottom: 1px solid var(--line-strong); }
.tm-qa:first-child { border-top: 1px solid var(--line-strong); }
.tm-qa summary { display: grid; grid-template-columns: 46px 1fr 36px; gap: 14px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; }
.tm-qa summary::-webkit-details-marker { display: none; }
.tm-qa__num { color: var(--gold-deep); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.tm-qa__q { font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; transition: color .3s; }
.tm-qa summary:hover .tm-qa__q { color: var(--sage-deep); }
.tm-qa__plus { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.tm-qa__plus::before, .tm-qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--espresso); transition: background .4s; }
.tm-qa__plus::after { transform: rotate(90deg); }
.tm-qa[open] .tm-qa__plus { transform: rotate(45deg); background: var(--sage-deep); border-color: var(--sage-deep); }
.tm-qa[open] .tm-qa__plus::before, .tm-qa[open] .tm-qa__plus::after { background: var(--paper); }
.tm-qa__a { padding: 0 50px 26px 60px; color: var(--soft); }
.tm-qa[open] .tm-qa__a { animation: tm-open .5s var(--ease); }
@keyframes tm-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- parcel CTA ---------- */

.tm-cta { padding-top: 0; }
.tm-cta__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 4vw, 54px); align-items: center; }
.tm-parcel {
    position: relative;
    padding: clamp(40px, 6vw, 80px) clamp(22px, 5vw, 70px);
    border-radius: 10px;
    background-color: var(--kraft-2);
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 9px);
    box-shadow: var(--shadow);
}
.tm-parcel__twine { position: absolute; z-index: 1; background: repeating-linear-gradient(45deg, #9a7a50 0 3px, #c9a979 3px 6px); }
.tm-parcel__twine--v { top: 0; bottom: 0; right: 18%; width: 5px; }
.tm-parcel__twine--h { left: 0; right: 0; top: 22%; height: 5px; }
.tm-parcel__bow { position: absolute; z-index: 4; top: calc(22% - 20px); right: calc(18% - 30px); width: 64px; height: 44px; }
.tm-parcel__bow::before, .tm-parcel__bow::after {
    content: "";
    position: absolute;
    top: 6px;
    width: 30px;
    height: 24px;
    border: 5px solid #a6845a;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.tm-parcel__bow::before { left: 0; transform: rotate(-24deg); }
.tm-parcel__bow::after { right: 0; transform: rotate(24deg); }
.tm-parcel__label {
    position: relative;
    z-index: 3;
    max-width: 580px;
    padding: clamp(26px, 3.4vw, 44px);
    background: var(--paper);
    box-shadow: 0 20px 34px -24px rgba(29, 42, 34, .55);
    transform: rotate(-1deg);
}
.tm-parcel__label::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.tm-parcel__label > .tm-script { font-size: 28px; margin-bottom: 6px; }
.tm-parcel .tm-lead { margin-top: 16px; }
.tm-parcel .tm-hero__actions { margin-top: 26px; }
.tm-cta__photo { position: relative; margin: 0; }
.tm-cta__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.tm-cta__tag { position: absolute; left: -26px; bottom: 34px; width: 210px; }

/* ---------- footer: chalkboard market board ---------- */

.tm-foot { padding: clamp(30px, 4vw, 50px) 0 clamp(26px, 3vw, 40px); background: var(--linen); }
.tm-chalk {
    position: relative;
    padding: clamp(30px, 4.4vw, 56px) clamp(22px, 4.4vw, 60px) 28px;
    border: 16px solid #9a7148;
    border-image: repeating-linear-gradient(90deg, #9a7148 0 7px, #8a6340 7px 10px, #a87d50 10px 17px, #94693f 17px 21px) 16;
    background-color: var(--board);
    background-image:
        radial-gradient(ellipse 40% 30% at 18% 22%, rgba(243, 245, 239, .045), transparent 70%),
        radial-gradient(ellipse 35% 40% at 82% 70%, rgba(243, 245, 239, .04), transparent 70%);
    color: var(--chalk);
    box-shadow: 0 30px 50px -30px rgba(10, 25, 18, .6);
}
.tm-chalk__head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding-bottom: 28px; border-bottom: 1px dashed rgba(243, 245, 239, .24); }
.tm-chalk__motto { max-width: 420px; padding-top: 6px; color: var(--chalk-dim); font-family: var(--f-script); font-size: 21px; line-height: 1.35; }
.tm-hangtag--chalk { margin-top: -74px; }
.tm-hangtag--chalk .tm-hangtag__twine { height: 46px; }
.tm-hangtag--chalk .tm-hangtag__hole { background: var(--board); }

.tm-chalk__grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); padding: 30px 0; }
.tm-chalk__title {
    display: inline-block;
    margin-bottom: 14px;
    padding-bottom: 4px;
    color: var(--gold-light);
    font-family: var(--f-script);
    font-size: 30px;
    line-height: 1.1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c50-3 120-4 196-1' fill='none' stroke='%23f3f5ef' stroke-opacity='.5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 6px;
}
.tm-foot .footer-menu-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.tm-foot .footer-menu-list li { margin: 0; }
.tm-foot .footer-menu-list a {
    display: flex;
    align-items: baseline;
    color: var(--chalk);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    transition: color .3s;
}
.tm-foot .footer-menu-list a::before { content: ""; order: 1; flex: 1; min-width: 18px; margin: 0 10px; border-bottom: 1.5px dotted rgba(243, 245, 239, .35); transform: translateY(-4px); }
.tm-foot .footer-menu-list a::after { content: "→"; order: 2; color: var(--gold-light); }
.tm-foot .footer-menu-list a:hover { color: var(--gold-light); }

.tm-chalk__rows { display: grid; gap: 8px; margin: 0; }
.tm-chalk__rows > div { display: flex; align-items: baseline; gap: 10px; }
.tm-chalk__rows dt { flex: 0 0 auto; color: var(--chalk-dim); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.tm-chalk__rows dt::after { content: ""; }
.tm-chalk__rows > div::before { content: ""; order: 1; flex: 1; min-width: 14px; border-bottom: 1.5px dotted rgba(243, 245, 239, .3); transform: translateY(-4px); }
.tm-chalk__rows dd { order: 2; margin: 0; max-width: 70%; color: var(--chalk); font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.tm-chalk__rows a { color: inherit; text-decoration: none; }
.tm-chalk__rows a:hover { color: var(--gold-light); }

.tm-chalk__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; border-top: 1px dashed rgba(243, 245, 239, .24); }
.tm-pay { display: flex; gap: 10px; }
.tm-pay svg { width: 52px; height: auto; }
.tm-chalk__copy { color: var(--chalk-dim); font-size: 13px; }

/* ---------- inner page hero ---------- */

.tm-page-hero { position: relative; padding: clamp(46px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.tm-page-hero__inner { display: flex; flex-direction: column; align-items: center; }
.tm-page-hero__script { margin-top: 22px; font-size: clamp(26px, 3vw, 36px); transform: rotate(-3deg); }
.tm-page-hero__title { margin-top: 4px; font-family: var(--f-display); font-size: clamp(42px, 6vw, 80px); line-height: 1.04; color: var(--espresso); }
.tm-page-hero__text { max-width: 620px; margin-top: 18px; color: var(--soft); font-size: clamp(16px, 1.3vw, 18px); }
.tm-page-hero__rule { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--sage-deep); }
.tm-page-hero__rule::before, .tm-page-hero__rule::after { content: ""; width: 70px; height: 1px; background: var(--line-strong); }

/* ---------- panels ---------- */

.tm-panel {
    position: relative;
    padding: clamp(24px, 3.4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.tm-panel__hole { top: 18px; }
.tm-panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.tm-panel__title .tm-ico { color: var(--sage-deep); }
.tm-panel__text { margin: -8px 0 20px; color: var(--soft); }
.tm-panel--sage { border-color: transparent; background: var(--sage-deep); color: var(--paper); }
.tm-panel__script { color: var(--gold-light); font-size: 32px; margin-bottom: 14px; }
.tm-panel__buttons { display: grid; gap: 10px; }

/* ---------- auth: photo banner + recipe card below ---------- */

.tm-auth { padding-bottom: clamp(70px, 8vw, 110px); }
.tm-auth__banner { position: relative; height: clamp(220px, 33vh, 380px); margin: 0; overflow: hidden; background: var(--oat); }
.tm-auth__banner img { width: 100%; height: 100%; object-fit: cover; }
.tm-auth__wrap { position: relative; display: grid; justify-items: center; margin-top: clamp(-120px, -9vw, -70px); }
.tm-auth__card {
    position: relative;
    width: min(620px, 100%);
    padding: clamp(46px, 5vw, 60px) clamp(22px, 4vw, 50px) clamp(28px, 3vw, 38px);
    border-radius: 4px;
    background-color: var(--paper);
    background-image: linear-gradient(var(--blush-2), var(--blush-2)), repeating-linear-gradient(transparent 0 31px, rgba(111, 143, 122, .11) 31px 32px);
    background-size: 100% 2px, 100% 100%;
    background-position: 0 30px, 0 30px;
    background-repeat: no-repeat, repeat;
    box-shadow: 0 34px 60px -32px rgba(29, 42, 34, .5);
}
.tm-auth__seal { position: absolute; top: -33px; left: 50%; margin-left: -33px; }
.tm-auth__card .tm-eyebrow { display: flex; justify-content: center; }
.tm-auth__title { font-family: var(--f-display); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; color: var(--espresso); text-align: center; }
.tm-auth__text { margin: 12px auto 26px; max-width: 460px; color: var(--soft); text-align: center; }
.tm-auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 22px; font-size: 15px; }
.tm-auth__links a { color: var(--terra-deep); font-weight: 600; text-decoration-color: rgba(176, 53, 31, .35); }
.tm-auth__safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.tm-auth__safe .tm-ico { color: var(--sage-deep); }
.tm-auth__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.tm-auth__tag { position: absolute; z-index: 2; top: -40px; right: max(0px, calc(50% - 560px)); width: 230px; }
.tm-auth__tag .tm-pricetag__string { height: 60px; transform: rotate(8deg); }
.tm-auth__greet { font-family: var(--f-display); font-size: 16.5px; line-height: 1.35; }
.tm-auth__sign { align-self: flex-end; font-size: 20px; }

/* ---------- contact ---------- */

.tm-contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.tm-contact__photo { position: relative; max-width: 380px; margin: 0 0 40px; }
.tm-contact__photo .tm-arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.tm-knote--static { position: absolute; right: -30px; bottom: -26px; width: 250px; }
.tm-contact__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tm-contact__list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.tm-contact__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); }
.tm-contact__list small { display: block; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tm-contact__list a { color: var(--espresso); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.tm-contact__list a:hover { color: var(--terra-deep); }

/* ---------- profile + dashboard ---------- */

.tm-profile-page { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.tm-profile-page__side { display: grid; gap: 26px; }
.tm-dashboard { padding: 24px 0 60px; }

/* ---------- back to top + the one signature move: tags swing into place ---------- */

.tm-totop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--sage-deep);
    color: var(--paper);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .4s, transform .5s var(--ease), background .3s;
}
.tm-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.tm-totop:hover { background: var(--espresso); }

.js [data-tm-swing]:not(.is-done) { opacity: 0; }
.js [data-tm-swing].is-swung { animation: tm-swing-in 1.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms); }
@keyframes tm-swing-in {
    0% { opacity: 0; transform: translateY(-14px) rotate(-10deg); }
    22% { opacity: 1; transform: translateY(0) rotate(7deg); }
    45% { transform: rotate(-4deg); }
    66% { transform: rotate(2deg); }
    84% { transform: rotate(-.8deg); }
    100% { opacity: 1; transform: rotate(0deg); }
}
.tm-pad__note:empty { display: none; }
.tm-pad__note { margin-top: 14px; padding: 8px 14px; border-radius: 3px; background: var(--sage-soft); color: var(--sage-ink); font-size: 14px; font-weight: 600; text-align: center; }
.tm-how .tm-steptag__card, .tm-how .tm-napkin { color: var(--espresso); }
/* ==========================================================================
   03 · CRM / CF7 forms, tables, policy prose, cookie, responsive, motion
   The CRM plugin and the parent theme render their own markup, so every
   field, button, notice and table is restyled here through .tm-form,
   .tm-table and .tm-prose wrappers.
   ========================================================================== */

/* ---------- forms ---------- */

.tm-form form { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: left; }
.tm-form p { margin: 0; }
.tm-form label { display: block; margin-bottom: 8px; color: var(--espresso); font-size: 14px; font-weight: 600; letter-spacing: .01em; }

.tm-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.tm-form select,
.tm-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--linen);
    color: var(--espresso);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.tm-form input:hover, .tm-form select:hover, .tm-form textarea:hover { border-color: rgba(29, 42, 34, .4); }
.tm-form input:focus, .tm-form select:focus, .tm-form textarea:focus {
    border-color: var(--sage-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(111, 143, 122, .25);
}
.tm-form input[disabled], .tm-form input[readonly] { opacity: .7; }
.tm-form textarea { min-height: 140px; resize: vertical; }
.tm-form input::placeholder, .tm-form textarea::placeholder { color: var(--dim); opacity: 1; }
.tm-form input[type="checkbox"], .tm-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--sage-deep); }

/* Browser autofill keeps the linen field. !important is needed: the field rule
   above (:not() chain) out-specifies this and its box-shadow:none would
   otherwise let Chrome's blue fill through. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--espresso) !important;
    -webkit-box-shadow: 0 0 0 1000px #f7f8f5 inset !important;
    box-shadow: 0 0 0 1000px #f7f8f5 inset !important;
    caret-color: var(--espresso);
    transition: background-color 600000s 0s, color 600000s 0s;
}
input:autofill, textarea:autofill, select:autofill { -webkit-text-fill-color: var(--espresso) !important; }

.tm-form input[type="submit"],
.tm-form button[type="submit"],
.tm-form button.button,
.tm-form button.btn,
.tm-form .crm-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 26px;
    border: 0;
    border-radius: 3px;
    background: var(--sage-deep);
    color: var(--paper);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 26px -16px rgba(58, 70, 51, .8);
    transition: background .35s, color .35s, transform .3s var(--ease-back);
}
.tm-form input[type="submit"]:hover,
.tm-form button[type="submit"]:hover,
.tm-form button.button:hover,
.tm-form button.btn:hover,
.tm-form .crm-btn-primary:hover { background: var(--espresso); color: var(--paper); transform: translateY(-2px); }
.tm-form input[type="submit"]:active, .tm-form button[type="submit"]:active { transform: scale(.98); }

.tm-form--danger button[type="submit"],
.tm-form--danger input[type="submit"] { background: var(--terra-deep); }

.tm-form a { color: var(--terra-deep); }
.tm-form a:hover { color: var(--espresso); }
.tm-form h1, .tm-form h2, .tm-form h3, .tm-form h4 { color: var(--espresso); font-family: var(--f-display); font-weight: 400; }

.tm-form .wpcf7-not-valid-tip, .tm-form .error, .tm-form .crm-error { color: var(--terra-deep); font-size: 14px; }
.tm-form .crm-error { padding: 12px 16px; border: 1px solid rgba(210, 69, 47, .45); border-radius: 14px; background: rgba(241, 217, 204, .55); font-weight: 500; }

.tm-form .wpcf7-response-output,
.tm-form .crm-message,
.tm-form .crm-auth-messages:not(:empty) {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--espresso);
}
.tm-form .crm-auth-messages:empty { display: none; }
.tm-form .crm-button-loading { display: none; }

/* --- Contact Form 7 (contact + unsubscribe).
   The parent's contact.css / unsubscribe.css force their own fields, #333
   labels and a blue submit through `.wpcf7 form.contact-form …`; match that. */
.tm-form .wpcf7 form.contact-form,
.tm-form .wpcf7 form.unsubscribe-form { max-width: none; margin: 0; font-family: inherit; }

.tm-form .wpcf7 form.contact-form label,
.tm-form .wpcf7 form.unsubscribe-form label { display: block; margin-bottom: 8px; color: var(--espresso) !important; font-size: 14px; font-weight: 600; }

.tm-form .wpcf7 form.contact-form input[type="text"],
.tm-form .wpcf7 form.contact-form input[type="email"],
.tm-form .wpcf7 form.contact-form input[type="tel"],
.tm-form .wpcf7 form.contact-form input[type="number"],
.tm-form .wpcf7 form.contact-form input[type="url"],
.tm-form .wpcf7 form.contact-form input[type="password"],
.tm-form .wpcf7 form.contact-form input[type="search"],
.tm-form .wpcf7 form.contact-form input[type="date"],
.tm-form .wpcf7 form.contact-form textarea,
.tm-form .wpcf7 form.contact-form select,
.tm-form .wpcf7 form.unsubscribe-form input[type="text"],
.tm-form .wpcf7 form.unsubscribe-form input[type="email"],
.tm-form .wpcf7 form.unsubscribe-form input[type="tel"],
.tm-form .wpcf7 form.unsubscribe-form textarea,
.tm-form .wpcf7 form.unsubscribe-form select {
    width: 100%;
    padding: 14px 16px;
    background: var(--linen) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 14px !important;
    color: var(--espresso) !important;
    font-family: inherit;
    font-size: 16px;
}
.tm-form .wpcf7 form.contact-form input::placeholder,
.tm-form .wpcf7 form.contact-form textarea::placeholder,
.tm-form .wpcf7 form.unsubscribe-form input::placeholder { color: var(--dim) !important; }
.tm-form .wpcf7 form.contact-form input:focus,
.tm-form .wpcf7 form.contact-form textarea:focus,
.tm-form .wpcf7 form.contact-form select:focus,
.tm-form .wpcf7 form.unsubscribe-form input:focus,
.tm-form .wpcf7 form.unsubscribe-form textarea:focus {
    border-color: var(--sage-deep) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(111, 143, 122, .25) !important;
    outline: none;
}
.tm-form .wpcf7 form.contact-form textarea,
.tm-form .wpcf7 form.unsubscribe-form textarea { min-height: 140px; }

.tm-form .wpcf7 form.contact-form input[type="submit"],
.tm-form .wpcf7 form.unsubscribe-form input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 26px;
    background: var(--sage-deep) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--paper) !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.tm-form .wpcf7 form.contact-form input[type="submit"]:hover,
.tm-form .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--espresso) !important; color: var(--paper) !important; }
.tm-form--danger .wpcf7 form.unsubscribe-form input[type="submit"],
.tm-form--danger .wpcf7 form.contact-form input[type="submit"] { background: var(--terra-deep) !important; }
.tm-form--danger .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--espresso) !important; }

.tm-form .wpcf7 form.contact-form .wpcf7-not-valid-tip,
.tm-form .wpcf7 form.unsubscribe-form .wpcf7-not-valid-tip { color: var(--terra-deep) !important; font-size: 13px; }
.tm-form .wpcf7 form.contact-form .wpcf7-response-output,
.tm-form .wpcf7 form.unsubscribe-form .wpcf7-response-output {
    margin: 4px 0 0 !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 14px !important;
    background: var(--linen) !important;
    color: var(--espresso) !important;
}
.tm-form .wpcf7 form.contact-form .wpcf7-mail-sent-ok,
.tm-form .wpcf7 form.unsubscribe-form .wpcf7-mail-sent-ok { background: var(--sage-soft) !important; color: var(--sage-ink) !important; }
.tm-form .wpcf7 form.contact-form .wpcf7-validation-errors,
.tm-form .wpcf7 form.unsubscribe-form .wpcf7-validation-errors { background: var(--blush) !important; color: var(--terra-deep) !important; }

.tm-form .captcha-cf7-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tm-form .captcha-cf7-wrap > p { flex: 0 0 100%; margin: 0; }
.tm-form .captcha-cf7-wrap > p:empty { display: none; }
.tm-form .captcha-cf7-wrap .main-cf7-captcha { flex: 1 1 160px; }
.tm-form .captcha-cf7-wrap .main-cf7-captcha .wpcf7-form-control-wrap { display: block; }
.tm-form .wpcf7 form.contact-form #input-captcha-cf7 { margin: 0 !important; }
.tm-form .captcha-image-container { flex: 0 0 auto; margin: 0; gap: 10px; }
.tm-form .captcha-image-container img#captcha-image { height: 52px; width: auto; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; }
.tm-form a#reload_captcha {
    width: 52px !important;
    height: 52px !important;
    background: var(--sage-soft) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 12px !important;
    color: var(--sage-ink) !important;
}
.tm-form a#reload_captcha:hover { background: var(--blush) !important; }
.tm-form a#reload_captcha img.emoji { width: 20px; height: 20px; }
.tm-form .wpcf7-spinner { margin: 0 auto; }
.page-unsubscribe .unsubscribe-form label { color: var(--espresso) !important; }

/* --- CRM plugin forms: login, forgot / change password, profile, subscription.
   The plugin ships a white 400px card; the theme supplies the card, so flatten it. */
.tm-form .crm-login-form,
.tm-form .crm-forgot-password-form,
.tm-form .crm-change-password-form,
.tm-form .crm-user-dashboard,
.tm-form .crm-user-profile-edit {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
/* The auth pages already print a big heading — drop the plugin's own title. */
.tm-form--auth .crm-login-title,
.tm-form--auth .crm-forgot-password-title,
.tm-form--auth .crm-change-password-title { display: none; }

.tm-form .crm-field-group label,
.tm-form .crm-form-group label { color: var(--espresso); font-size: 14px; font-weight: 600; }
.tm-form .crm-field-group,
.tm-form .crm-form-group { display: flex; flex-direction: column; width: 100%; margin-bottom: 0; }

.tm-form .crm-login-title,
.tm-form .crm-forgot-password-title,
.tm-form .crm-change-password-title { margin: 0; color: var(--espresso); font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.tm-form .crm-forgot-password-description,
.tm-form .crm-change-password-description { margin: -4px 0 0; color: var(--soft); font-size: 15px; line-height: 1.6; }
.tm-form .crm-field-hint { display: block; margin-top: 6px; color: var(--dim); font-size: 13px; }

.tm-form .login-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tm-form .login-actions .form-input-wrapper { margin: 0; }
.tm-form label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--soft); font-weight: 500; cursor: pointer; }
.tm-form label.inline input[type="checkbox"] { margin: 0; flex-shrink: 0; }

/* "I forgot my password" ships as a.button — keep it a link, not a second CTA. */
.tm-form a.button,
.tm-form a.btn,
.tm-form .crm-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--terra-deep);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(176, 53, 31, .35);
}
.tm-form a.button:hover, .tm-form a.btn:hover, .tm-form .crm-back-to-login:hover { color: var(--espresso); background: none; }
.tm-form .crm-forgot-password-footer { margin-top: 4px; text-align: center; }

.tm-form .crm-btn-secondary,
.tm-form .crm-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 10px 24px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.tm-form .crm-btn-secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--espresso); }
.tm-form .crm-btn-secondary:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.tm-form .crm-btn-danger { border: 0; background: var(--terra-deep); color: var(--paper); }
.tm-form .crm-btn-danger:hover { background: var(--espresso); color: var(--paper); }

.tm-form button:disabled,
.tm-form input[type="submit"]:disabled,
.tm-form .crm-login-button:disabled,
.tm-form .crm-reset-password-button:disabled,
.tm-form .crm-change-password-button:disabled { background: var(--oat); color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none; }

.tm-form .crm-form-actions,
.tm-form .crm-subscription-actions,
.tm-form .crm-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.tm-form .crm-form-actions > *, .tm-form .crm-subscription-actions > * { flex: 1 1 auto; }

.tm-form .crm-profile-field,
.tm-form .crm-subscription-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.tm-form .crm-profile-field:last-child, .tm-form .crm-subscription-field:last-child { border-bottom: 0; }
.tm-form .crm-profile-field label, .tm-form .crm-subscription-field label { margin: 0; color: var(--dim); font-size: 14px; font-weight: 500; }
.tm-form .crm-profile-field span, .tm-form .crm-subscription-field span { color: var(--espresso); font-size: 15px; font-weight: 600; text-align: right; word-break: break-word; }

.tm-form .crm-user-info-section,
.tm-form .crm-subscription-section,
.tm-form .crm-dashboard-header,
.tm-form .crm-info-item { margin-bottom: 8px; padding: 0; border: 0; background: transparent; }
.tm-form .crm-user-info-section h4,
.tm-form .crm-subscription-section h4,
.tm-form .crm-dashboard-header h3 { color: var(--espresso); }
.tm-form .crm-info-item label { color: var(--dim); }
.tm-form .crm-info-item span { color: var(--espresso); }
.tm-form .crm-access-badge { background: var(--sage-soft); color: var(--sage-ink); }

.tm-form .crm-subscription-item { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--linen); }
.tm-form .crm-subscription-item + .crm-subscription-item { margin-top: 16px; }
.tm-form .crm-subscription-name { margin: 0 0 8px; color: var(--espresso); font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.tm-form .crm-subscription-field span.crm-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 3px;
    background: var(--oat);
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}
.tm-form .crm-subscription-field span.crm-status-active { background: var(--sage-soft); color: var(--sage-ink); }
.tm-form .crm-subscription-field span.crm-status-cancelled,
.tm-form .crm-subscription-field span.crm-status-canceled,
.tm-form .crm-subscription-field span.crm-status-expired,
.tm-form .crm-subscription-field span.crm-status-inactive { background: var(--blush); color: var(--terra-deep); }
.tm-form .crm-subscription-field span.crm-status-pending,
.tm-form .crm-subscription-field span.crm-status-trial { background: #fdf3d3; color: var(--gold-deep); }

.tm-form .crm-login-required,
.tm-form .crm-no-access,
.tm-form .crm-logged-in-message,
.tm-form .crm-subscription-message,
.tm-form .crm-info { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--linen); color: var(--soft); text-align: center; }
.tm-form .crm-login-required p, .tm-form .crm-no-access p { margin: 0 0 12px; }
.tm-form .crm-auth-message { margin: 0; }
.tm-form .crm-auth-warning { color: var(--gold-deep); }
.tm-form .crm-auth-info { color: var(--sage-ink); }

/* ---------- orders / invoice tables ---------- */

.tm-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.tm-table table { width: 100%; margin: 0; font-size: 15px; text-align: left; border-collapse: collapse; }
.tm-table thead tr, .tm-table table tr:first-child th { background: var(--sage-deep); color: var(--paper); }
.tm-table th { padding: 14px 22px; font-weight: 600; white-space: nowrap; }
.tm-table td { padding: 16px 22px; color: var(--espresso); border-bottom: 1px solid var(--line); }
.tm-table tbody tr { transition: background .3s; }
.tm-table tbody tr:hover { background: var(--linen); }
.tm-table .profile-orders { color: var(--espresso); }
.tm-table .orders-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.tm-table .orders-header h2, .tm-table .orders-header h3 { margin: 0; color: var(--espresso); font-family: var(--f-display); font-size: 26px; font-weight: 400; }
.tm-table .orders-table-container { overflow-x: auto; }
.tm-table .orders-empty, .tm-table .crm-orders-empty { padding: 34px 22px; color: var(--soft); text-align: center; }
.tm-table .product-info { display: flex; flex-direction: column; gap: 2px; }
.tm-table .order-invoice { font-weight: 600; white-space: nowrap; }
.tm-table .order-date { white-space: nowrap; color: var(--dim); }
.tm-table .order-actions { white-space: nowrap; }
.tm-table a, .tm-table button { color: var(--terra-deep); font-weight: 600; background: transparent; border: 0; cursor: pointer; }
.tm-table a:hover, .tm-table button:hover { color: var(--espresso); text-decoration: underline; }
.tm-table .invoice-detail, .tm-table .invoice-container { padding: 24px; color: var(--espresso); }

/* ---------- policy prose (CRM HTML) ---------- */

.tm-prose, .tm-prose p, .tm-prose li, .tm-prose td, .tm-prose th { color: var(--soft); line-height: 1.75; }
.tm-prose h1, .tm-prose h2, .tm-prose h3, .tm-prose h4 { margin: 1.6em 0 .6em; color: var(--espresso); font-family: var(--f-display); font-weight: 400; line-height: 1.15; }
.tm-prose > :first-child, .tm-prose > div > :first-child { margin-top: 0; }
.tm-prose h1 { font-size: 36px; }
.tm-prose h2 { font-size: 30px; }
.tm-prose h3 { font-size: 23px; }
.tm-prose p { margin: 0 0 1em; }
.tm-prose ul, .tm-prose ol { margin: 0 0 1em 1.25em; padding: 0; list-style: revert; }
.tm-prose li::marker { color: var(--sage-deep); }
.tm-prose a { color: var(--terra-deep); text-decoration: underline; }
.tm-prose table { width: 100%; margin: 0 0 1em; border-collapse: collapse; }
.tm-prose td, .tm-prose th { padding: 8px 12px; border: 1px solid var(--line); }

/* Inline colours and <font> tags in the CRM HTML are normalised to the
   theme's ink; non-important inline styles lose to stylesheet !important. */
.tm-prose [style*="color"], .tm-prose [style*="COLOR"], .tm-prose font, .tm-prose span, .tm-prose section, .tm-prose article { color: inherit !important; }
.tm-prose [style*="background"], .tm-prose [style*="BACKGROUND"] { background: transparent !important; background-color: transparent !important; }
.tm-prose h1[style], .tm-prose h2[style], .tm-prose h3[style], .tm-prose h4[style], .tm-prose h5[style], .tm-prose h6[style],
.tm-prose h1 span, .tm-prose h2 span, .tm-prose h3 span, .tm-prose h4 span, .tm-prose h5 span, .tm-prose h6 span,
.tm-prose h1 font, .tm-prose h2 font, .tm-prose h3 font, .tm-prose h4 font, .tm-prose h5 font, .tm-prose h6 font { color: var(--espresso) !important; }
.tm-prose strong, .tm-prose b { color: var(--espresso); font-weight: 600; }
.tm-prose a, .tm-prose a[style], .tm-prose a span, .tm-prose a font { color: var(--terra-deep) !important; }
.tm-prose .crm-privacy-policy, .tm-prose .crm-cookie-policy, .tm-prose .crm-subscription-policy, .tm-prose .crm-terms-of-service { max-width: none; color: var(--soft); background: transparent; }

/* The CRM pricing table forces a white ground with !important INLINE styles;
   on this light theme it simply sits as a white card. Selectors >= (0,2,1)
   to outrank the prose rules above. */
.tm-prose div.dataTables_wrapper { margin: 0 0 1.5em; padding: 18px !important; overflow-x: auto; border: 1px solid var(--line-strong) !important; border-radius: 14px; font: inherit !important; }
.tm-prose div.dataTables_wrapper, .tm-prose div.dataTables_wrapper p, .tm-prose div.dataTables_wrapper li, .tm-prose div.dataTables_wrapper span, .tm-prose div.dataTables_wrapper div { color: var(--espresso) !important; line-height: 1.6; }
.tm-prose div.dataTables_wrapper .product_name { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tm-prose div.dataTables_wrapper table { width: 100% !important; min-width: 560px; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; }
.tm-prose div.dataTables_wrapper table th { padding: 11px 14px !important; border: 0 !important; background-color: var(--sage-deep) !important; color: var(--paper) !important; font-weight: 700 !important; text-align: left !important; vertical-align: middle !important; white-space: nowrap; width: auto !important; }
.tm-prose div.dataTables_wrapper table th:first-child { border-radius: 8px 0 0 0; }
.tm-prose div.dataTables_wrapper table th:last-child { border-radius: 0 8px 0 0; }
.tm-prose div.dataTables_wrapper table td { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--espresso) !important; vertical-align: middle !important; }
.tm-prose div.dataTables_wrapper table tbody tr, .tm-prose div.dataTables_wrapper table tbody tr td { background: transparent !important; }
.tm-prose div.dataTables_wrapper table a { color: var(--terra-deep) !important; }

/* ---------- cookie notice: a deli tag in the corner ---------- */

#cookie-modal.tm-cookie {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 72;
    width: min(540px, calc(100vw - 32px));
    padding: 22px 22px 20px 54px;
    filter: drop-shadow(0 24px 30px rgba(20, 35, 27, .28));
    animation: tm-cookie-in .7s var(--ease-back) both;
}
#cookie-modal.tm-cookie::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kraft);
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
    border-radius: 0 16px 16px 0;
}
#cookie-modal.hide-cookie { display: none; }
@keyframes tm-cookie-in { from { opacity: 0; transform: translateY(20px) rotate(-2deg); } }
.tm-cookie__hole { position: absolute; left: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 3px solid var(--gold); border-radius: 50%; background: var(--linen); }
#cookie-modal .content { display: grid; gap: 14px; }
#cookie-modal .cookie-title { margin: 0 0 4px; color: var(--espresso); font-family: var(--f-display); font-size: 22px; font-weight: 400; }
#cookie-modal p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.55; }
#cookie-modal a { color: var(--terra-deep); }
#cookie-modal .cookie-actions { display: flex; justify-content: flex-end; gap: 10px; }
.tm-cookie__btn {
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 3px;
    background: var(--sage-deep);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s, color .3s;
}
.tm-cookie__btn:hover { background: var(--espresso); }
.tm-cookie__btn--ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tm-cookie__btn--ghost:hover { background: var(--paper); color: var(--espresso); }

/* ---------- admin-only notice ---------- */

.admin-notice { width: 100%; max-width: 900px; margin: 0 auto 30px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); color: var(--espresso); font-size: 14px; }
.admin-notice a { color: var(--terra-deep); }

/* ---------- WordPress bits ---------- */

.tm-entry + .tm-entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.tm-prose .nav-links { display: flex; gap: 12px; margin-top: 30px; }
.tm-prose .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--espresso); text-decoration: none; }
.tm-prose .page-numbers.current { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
    .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tm-tags--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1140px) {
    .tm-nav, .tm-sign__tag { display: none; }
    .tm-menutag { display: inline-flex; }
    .tm-sign__actions { margin-left: auto; }
    .tm-chalk__grid { grid-template-columns: 1fr 1fr; }
    .tm-chalk__col--wide { grid-column: 1 / -1; }
    .tm-garland__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .tm-garland__twine { display: none; }
    .tm-steptag, .tm-steptag:nth-child(n) { --y: 0px; --s: 34px; }
    .tm-steptag__string::before { width: 12px; height: 12px; margin: 0 0 0 -5.2px; background: var(--gold); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .4); }
}

@media (max-width: 980px) {
    .tm-head--split { grid-template-columns: 1fr; gap: 18px; }
    .tm-hero { height: auto; overflow: visible; background: transparent; }
    .tm-hero__photo { position: relative; height: clamp(300px, 52vh, 480px); }
    .tm-hero__dock { position: relative; bottom: auto; margin-top: -110px; }
    .tm-menucard { margin-inline: auto; }
    .tm-menucard__tag { right: 6px; top: -128px; width: 180px; }
    .tm-story__grid { grid-template-columns: 1fr; }
    .tm-chalk__head { grid-template-columns: 1fr; }
    .tm-hangtag--chalk { margin-top: 0; justify-self: start; }
    .tm-hangtag--chalk .tm-hangtag__twine { height: 20px; }
    .tm-board { grid-template-columns: 1fr; }
    .tm-board__plate { width: min(340px, 86%); margin-bottom: 36px; }
    .tm-list__grid { grid-template-columns: 1fr; }
    .tm-list__photo { max-width: 420px; justify-self: center; width: 100%; }
    .tm-pad { margin-inline: auto; }
    .tm-napkin { grid-template-columns: 1fr; }
    .tm-tags, .tm-tags--2, .tm-tags--4 { grid-template-columns: 1fr; max-width: 440px; }
    .tm-rail { display: none; }
    .tm-plan, .tm-plan.is-featured { --s: 34px; }
    .tm-plan__string::before { content: ""; display: block; width: 14px; height: 14px; margin: -7px 0 0 -6.2px; border-radius: 50%; background: var(--gold); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .4); }
    .tm-faq__grid { grid-template-columns: 1fr; }
    .tm-faq__aside { position: static; }
    .tm-faq__photo { display: none; }
    .tm-cta__grid { grid-template-columns: 1fr; }
    .tm-cta__photo { max-width: 360px; justify-self: center; width: 100%; }
    .tm-profile-page { grid-template-columns: 1fr; }
    .tm-values__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .tm-rmodal__card { grid-template-columns: 1fr; }
    .tm-rmodal__photo { min-height: 0; aspect-ratio: 16 / 10; }
    .tm-rmodal__photo .tm-seal { right: 24px; top: auto; bottom: -33px; }
    .tm-contact__photo { margin-inline: auto; }
}

@media (max-width: 782px) {
    body.admin-bar .tm-sign { top: 46px; }
}

@media (max-width: 720px) {
    body.tm-body { font-size: 16px; }
    .tm-sign__inner { min-height: 78px; width: calc(100% - 24px); gap: 12px; }
    .tm-logo--header { padding: 8px 16px 8px 12px; }
    .tm-logo--header .tm-logo__seal svg, .tm-logo--footer .tm-logo__seal svg { width: 34px; height: 34px; }
    .tm-logo--header .tm-logo__name, .tm-logo--footer .tm-logo__name { font-size: 20px; }
    .tm-logo__line { font-size: 8px; letter-spacing: .26em; }
    .tm-sign__actions { border-left: 0; padding-left: 0; gap: 10px; }
    .tm-sign__link { display: none; }
    .tm-sign.is-scrolled .tm-logo--header { transform: rotate(-1deg) scale(.92); }
    .tm-menucard__actions .tm-btn { flex: 1 1 100%; justify-content: space-between; }
    .tm-menucard__tag { width: 160px; padding: 32px 16px 12px; }
    .tm-menucard__tag .tm-pricetag__name { font-size: 17px; }
    .tm-chalk__grid { grid-template-columns: 1fr; }
    .tm-chalk { border-width: 10px; border-image-slice: 10; }
    .tm-chalk__rows dd { max-width: 64%; }
    .tm-auth__tag { position: relative; top: auto; right: auto; order: 2; margin-top: 28px; }
    .tm-auth__tag .tm-pricetag__string { height: 30px; transform: none; }
    .tm-board { margin: 10px 4px; box-shadow: 0 0 0 8px var(--oat), 0 0 0 9px var(--line-strong), var(--shadow); padding: 26px 16px; }
    .tm-board__day { grid-template-columns: 1fr; padding: 10px 8px 10px 18px; }
    .tm-board__dayname { grid-row: auto; font-size: 20px; }
    .tm-board__tag { left: -4%; width: 200px; }
    .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tm-recipe__body { padding: 0 12px 14px; }
    .tm-recipe__name { font-size: 17px; }
    .tm-recipe__note { font-size: 15px; }
    .tm-recipe .tm-seal { width: 42px; height: 42px; margin: -24px 10px 0 auto; }
    .tm-recipe__meta { font-size: 12px; gap: 4px 10px; }
    .tm-filters { justify-content: flex-start; }
    .tm-pad__item { grid-template-columns: 24px 64px 1fr; row-gap: 2px; }
    .tm-pad__cat { grid-column: 3; justify-self: start; }
    .tm-pad__foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .tm-pad__twine { flex: none; }
    .tm-list__photo figcaption { left: -6px; }
    .tm-list__awning { left: -6px; right: -6px; }
    .tm-garland__tags { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    .tm-napkin__list { grid-template-columns: 1fr; }
    .tm-qa summary { grid-template-columns: 34px 1fr 32px; }
    .tm-qa__a { padding: 0 0 22px 46px; }
    .tm-parcel__label { transform: none; }
    .tm-parcel__bow { right: calc(10% - 30px); }
    .tm-parcel__twine--v { right: 10%; }
    .tm-cta__tag { left: -6px; }
    .tm-rmodal { padding: 10px; }
    .tm-rmodal__items li { grid-template-columns: 62px 1fr; }
    .tm-rmodal__items .tm-chip { grid-column: 2; justify-self: start; }
    #cookie-modal .cookie-actions { justify-content: stretch; }
    #cookie-modal .cookie-actions button { flex: 1; }
}

@media (max-width: 420px) {
    .tm-plan__name { padding-right: 64px; font-size: 24px; }
    .tm-plan__seal .tm-seal--lg { width: 52px; height: 52px; }
}

@media (max-width: 359px) {
    .tm-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion: keep every element visible and still.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .js [data-tm-swing], .js [data-tm-swing]:not(.is-done) { opacity: 1; animation: none !important; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* CF7 wraps its hidden inputs in a bordered <fieldset>; it showed as an empty
   box above the contact / unsubscribe fields. Hide it outright. */
html body .hidden-fields-container,
html body .wpcf7 form fieldset.hidden-fields-container,
html body .tm-form .wpcf7 form.contact-form fieldset.hidden-fields-container,
html body .tm-form .wpcf7 form.unsubscribe-form fieldset.hidden-fields-container {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* CF7 form fixes (contact + unsubscribe):
   - the parent's form containers add 20px padding and a 600px cap, which
     indented the fields away from the card's own heading;
   - the empty response box showed as a bordered pill under Submit;
   - the unsubscribe Submit sits in the same <label> as the card digits,
     so it touched the field above it. */
html body .tm-form .contact-form-container,
html body .tm-form .unsubscribe-form-container {
    max-width: none;
    margin: 0;
    padding: 0 !important;
    background: transparent;
    box-shadow: none;
}
html body .wpcf7 form .wpcf7-response-output,
html body .wpcf7-response-output { display: none !important; }
html body .tm-form .wpcf7 form.unsubscribe-form br { display: none; }
html body .tm-form .wpcf7 form.unsubscribe-form .wpcf7-form-control-wrap { display: block; }
html body .tm-form .wpcf7 form.unsubscribe-form input[type="submit"] { margin-top: 22px !important; }
