/* Tina's Cookbook — design system
   Cream paper, sage green, warm terracotta accents. Serif for reading, sans for UI. */

:root {
    --bg: #f6f3ec;
    --bg-deep: #efeae0;
    --card: #fffdf8;
    --card-tint: #f7f8f2;
    --text: #2b352c;
    --text-soft: #4b574c;
    --muted: #76816f;
    --faint: #b4bcae;
    --accent: #4a7c59;
    --accent-ink: #36614a;
    --accent-light: #5d9a6e;
    --accent-soft: #e4efe5;
    --accent-wash: #eef4ec;
    --terracotta: #c4694a;
    --terracotta-soft: #f8e6de;
    --gold: #c9a24a;
    --danger: #b94a3b;
    --danger-soft: #f9e3df;
    --border: #e0e3d8;
    --border-strong: #cbd1c3;
    --rule: #ece9e1;
    --shadow-sm: 0 1px 2px rgba(43, 53, 44, 0.05), 0 1px 6px rgba(43, 53, 44, 0.04);
    --shadow-md: 0 4px 14px rgba(43, 53, 44, 0.07), 0 1px 3px rgba(43, 53, 44, 0.05);
    --shadow-lg: 0 14px 40px rgba(43, 53, 44, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --content-width: 940px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--serif);
    font-size: 1rem;
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 500px at 50% -200px, rgba(74, 124, 89, 0.12), transparent 70%),
        radial-gradient(900px 500px at 100% 100%, rgba(196, 105, 74, 0.08), transparent 70%),
        radial-gradient(700px 400px at 0% 60%, rgba(201, 162, 74, 0.07), transparent 70%);
    background-attachment: fixed;
    position: relative;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid rgba(74, 124, 89, 0.35); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* ---------- Header ---------- */
header.site-header {
    background: var(--card);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M0 14h28M14 0v28' stroke='%234a7c59' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #fbf7ec 0%, #fffdf8 50%, #eef4ec 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 0 1rem;
    position: relative;
    overflow: hidden;
}
header.site-header .sprig {
    position: absolute; top: 50%; width: 150px; height: 110px;
    color: var(--accent); opacity: 0.16; pointer-events: none;
    transform: translateY(-50%);
}
header.site-header .sprig-left { left: 1.5%; }
header.site-header .sprig-right { right: 1.5%; transform: translateY(-50%) scaleX(-1); }
header.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
    background: repeating-linear-gradient(90deg,
        var(--accent) 0 28px, var(--gold) 28px 40px, var(--terracotta) 40px 52px, var(--accent-light) 52px 80px);
    opacity: 0.8;
}
.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(84px, 1fr) minmax(0, auto) minmax(84px, 1fr);
    align-items: center;
    gap: 0.75rem;
}
.header-pets { display: flex; gap: 0.4rem; justify-content: center; align-items: flex-end; }
.header-pets img {
    display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 50%;
    border: 3px solid #fff;
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
    box-shadow: 0 4px 12px rgba(43, 53, 44, 0.16);
    transition: transform 0.25s ease;
}
.header-pets img.pet-dog { width: 80px; height: 80px; }
.header-pets img.pet-flip { transform: scaleX(-1); }
.header-pets img:hover { transform: rotate(-4deg) scale(1.04); }
.header-pets img.pet-flip:hover { transform: scaleX(-1) rotate(-4deg) scale(1.04); }
.pet { position: relative; display: inline-block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet.barking img { animation: pet-bark 0.9s ease; }
.pet.barking img.pet-flip { animation: pet-bark-flip 0.9s ease; }
.pet-bubble {
    position: absolute; left: 50%; top: -0.6rem;
    transform: translate(-50%, 6px) scale(0.6);
    background: #fff; color: var(--terracotta);
    font-family: var(--display); font-style: italic; font-weight: 600; font-size: 0.95rem;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.15s, transform 0.2s cubic-bezier(.3,1.6,.5,1);
}
.pet-bubble::after {
    content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px;
    background: #fff; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}
.pet.barking .pet-bubble, .pet.talking .pet-bubble { opacity: 1; transform: translate(-50%, -14px) scale(1); }

/* Rating reactions (see petReact in pets.js) */
.pet { isolation: isolate; transition: transform 0.25s ease; }
.pet-tail {
    position: absolute; z-index: -1; width: 44px; height: 44px; bottom: 8px; left: -34px;
    opacity: 0; transform: scale(0.3); transform-origin: 100% 100%;
    transition: opacity 0.2s, transform 0.25s cubic-bezier(.3,1.6,.5,1); pointer-events: none;
}
.pet-tail svg { width: 100%; height: 100%; display: block; overflow: visible; transform: scaleX(-1); }
.pet-tail path { fill: #fff; stroke: #b9c0ad; stroke-width: 2; stroke-linejoin: round; }
.pet-right .pet-tail { left: auto; right: -34px; transform-origin: 0 100%; }
.pet-right .pet-tail svg { transform: none; }
.pet.wagging .pet-tail { opacity: 1; animation: tail-wag 0.16s ease-in-out infinite alternate; }
.pet-right.wagging .pet-tail { animation-name: tail-wag-right; }
@keyframes tail-wag { from { transform: rotate(22deg); } to { transform: rotate(-18deg); } }
@keyframes tail-wag-right { from { transform: rotate(-22deg); } to { transform: rotate(18deg); } }
.pet.wagging { animation: pet-happy 0.42s ease-in-out infinite; }
@keyframes pet-happy {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-9px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0); }
    75% { transform: translateY(-9px) rotate(5deg); }
}
.pet.spin { transform: perspective(300px) rotateY(90deg); }
.pet.squat { transform: translateY(5px) scale(1.04, 0.9); transform-origin: 50% 100%; }
.pet-poop {
    position: fixed; z-index: 60; width: 34px; height: 34px; padding: 0; border: 0; background: none;
    font-size: 28px; line-height: 34px; text-align: center; cursor: pointer;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
    transition: opacity 0.35s, transform 0.35s;
}
.pet-poop.landed::after {
    content: "~"; position: absolute; left: 50%; top: -14px; font: 600 16px var(--sans); color: #9a8f6a;
    transform: translateX(-50%) rotate(90deg); animation: stink 1.6s ease-in-out infinite; pointer-events: none;
}
@keyframes stink {
    0%, 100% { opacity: 0; translate: 0 4px; }
    50% { opacity: 0.8; translate: 0 -4px; }
}
.pet-poop.scooped { opacity: 0; transform: translateY(-30px) scale(0.4) !important; }
@keyframes pet-bark {
    0% { transform: none; }
    15% { transform: rotate(-9deg) scale(1.08); }
    30% { transform: rotate(7deg) scale(1.05); }
    45% { transform: rotate(-6deg) scale(1.08); }
    60% { transform: rotate(4deg) scale(1.03); }
    100% { transform: none; }
}
@keyframes pet-bark-flip {
    0% { transform: scaleX(-1); }
    15% { transform: scaleX(-1) rotate(-9deg) scale(1.08); }
    30% { transform: scaleX(-1) rotate(7deg) scale(1.05); }
    45% { transform: scaleX(-1) rotate(-6deg) scale(1.08); }
    60% { transform: scaleX(-1) rotate(4deg) scale(1.03); }
    100% { transform: scaleX(-1); }
}
.header-center { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center; }
.site-title { font-family: var(--display); font-size: 2.15rem; font-weight: 600; letter-spacing: -0.015em; position: relative; }
.site-title a { color: var(--text); display: inline-flex; align-items: center; gap: 0.5rem; }
.site-title .leaf { color: var(--terracotta); font-size: 1.1rem; }
.site-title span.accent { color: var(--accent); font-style: italic; font-weight: 400; }
.site-tag {
    font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted); display: flex; align-items: center; gap: 0.6rem; margin-top: -0.1rem;
}
.site-tag::before, .site-tag::after { content: ""; width: 34px; height: 1px; background: var(--border-strong); }

nav.site-nav { display: flex; gap: 0.2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
nav.site-nav a, .nav-user {
    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
nav.site-nav a:hover { background: var(--accent-wash); color: var(--accent-ink); }
nav.site-nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
nav.site-nav a.nav-new { color: var(--accent-ink); font-weight: 600; }
.nav-user { color: var(--muted); font-weight: 400; }
.nav-sep { width: 1px; height: 1rem; background: var(--border-strong); margin: 0 0.25rem; }
.search-form { position: relative; display: inline-flex; align-items: center; }
.search-form svg { position: absolute; left: 0.7rem; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.search-box {
    font-family: var(--sans);
    font-size: 0.84rem;
    padding: 0.4rem 0.8rem 0.4rem 2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 210px;
    outline: none;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, width 0.2s;
}
.search-box::placeholder { color: var(--faint); }
.search-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15); width: 250px; }
.tenant-pill {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--accent-ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: var(--accent-wash);
}
.week-badge {
    display: inline-block;
    min-width: 1.35em;
    padding: 0 0.4em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.45em;
    text-align: center;
}

/* ---------- Layout ---------- */
main { max-width: var(--content-width); width: 100%; margin: 0 auto; padding: 2rem 1.5rem 3rem; flex: 1; }
footer.site-footer {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 1rem 2rem;
}
footer.site-footer .leaf { color: var(--accent); }
footer.site-footer .paw { width: 14px; height: 14px; color: var(--terracotta); vertical-align: -2px; margin: 0 0.2rem; }

.flash {
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    animation: flash-in 0.3s ease;
}
.flash::before {
    content: "";
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
}
.flash-success { background: #e3f1e5; color: #1f4d2b; border: 1px solid #c6e2cb; }
.flash-success::before { background: #3f8a52; }
.flash-error { background: #f9e3df; color: #6e2a20; border: 1px solid #f0c9c1; }
.flash-error::before { background: #c2503f; }
.flash-warning { background: #fbf0d6; color: #6b4e0d; border: 1px solid #f0dfb0; }
.flash-warning::before { background: #d9a93a; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 0; }
.card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.card-head h2 { font-size: 1.55rem; font-weight: 600; }
.card-lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; max-width: 60ch; }
.card-lede a { font-weight: 600; }
.meta { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.callout {
    background: var(--card-tint);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}
.callout a { font-weight: 600; }
.callout.warm { border-left-color: var(--terracotta); }
.note-text { white-space: pre-line; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(74, 124, 89, 0.3); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 4px 12px rgba(74, 124, 89, 0.35); }
.btn-secondary { background: #fff; color: var(--text-soft); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.btn-danger { background: #fff; color: var(--danger); border-color: #ecc8c1; }
.btn-danger:hover { background: var(--danger-soft); color: #8e3327; }
.btn-ghost { background: transparent; color: var(--accent-ink); }
.btn-ghost:hover { background: var(--accent-wash); }
.btn-sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* ---------- Pills ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.pill.warm { background: var(--terracotta-soft); color: #8a4631; }
.pill.soft { background: var(--bg-deep); color: var(--muted); font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { color: var(--faint); }
.breadcrumb .current { color: var(--text-soft); }

/* ---------- Category hues ---------- */
.cat-appetizers { --cat: #c4694a; --cat-soft: #f8e4da; }
.cat-soups      { --cat: #c9962e; --cat-soft: #faeccb; }
.cat-veggies    { --cat: #5a9a4a; --cat-soft: #e1f0d9; }
.cat-mains      { --cat: #3f6f4f; --cat-soft: #dcebe0; }
.cat-breads     { --cat: #a9782f; --cat-soft: #f3e6cc; }
.cat-desserts   { --cat: #c05a7a; --cat-soft: #f8dfe8; }
.cat-cookies    { --cat: #8a5a3c; --cat-soft: #efe0d3; }
.cat-misc       { --cat: #5c7a8c; --cat-soft: #dfe9ef; }

/* ---------- Home ---------- */
.hero { text-align: center; margin-bottom: 2.25rem; }
.hero .kicker {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: 0.6rem;
}
.hero h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.35rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--gold); margin: 0.5rem 0 0.9rem; }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 16px; height: 16px; }
.hero h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .meta { font-size: 0.92rem; margin-bottom: 1.4rem; }
.hero .meta strong { color: var(--text); font-weight: 600; }
.action-row { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.action-row .btn { padding: 0.65rem 1.3rem; }
.action-row .btn svg { width: 16px; height: 16px; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 5px;
    background: var(--cat, var(--accent));
    opacity: 0.85; transition: width 0.2s;
}
.cat-card::after {
    content: "";
    position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: var(--cat-soft, var(--accent-soft)); opacity: 0.55; transition: transform 0.25s;
}
.cat-card:hover { border-color: var(--cat, var(--accent-light)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card:hover::before { width: 7px; }
.cat-card:hover::after { transform: scale(1.35); }
.cat-card a { color: var(--text); display: flex; align-items: center; gap: 0.9rem; padding: 1.2rem 1.2rem 1.2rem 1.4rem; position: relative; z-index: 1; }
.cat-card .cat-text { flex: 1; min-width: 0; }
.cat-icon {
    flex: 0 0 50px; width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--cat-soft, var(--accent-wash));
    color: var(--cat, var(--accent));
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card:hover .cat-icon { background: var(--cat, var(--accent)); color: #fff; transform: rotate(-6deg); }
.cat-card h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.cat-card .count { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.cat-card .count b { color: var(--cat, var(--accent)); font-weight: 700; }
.cat-card .arrow { flex-shrink: 0; color: var(--faint); transition: color 0.2s, transform 0.2s; }
.cat-card:hover .arrow { color: var(--accent); transform: translateX(3px); }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .glyph { font-size: 2.4rem; margin-bottom: 0.5rem; }
.empty-state p { max-width: 42ch; margin: 0 auto; }

/* ---------- Recipe lists ---------- */
.recipe-list { list-style: none; }
.recipe-list li { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--rule); transition: background 0.15s; border-radius: 6px; }
.recipe-list li:last-child { border-bottom: none; }
.recipe-list li:hover { background: var(--card-tint); }
.recipe-list a.recipe-link { font-size: 1.08rem; color: var(--text); }
.recipe-list a.recipe-link:hover { color: var(--accent-ink); }
.recipe-list .sub { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-left: 0.5rem; }
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cat, var(--accent)); margin-right: 0.55rem; vertical-align: 1px; }
.list-num { font-family: var(--display); font-style: italic; color: var(--faint); width: 2rem; display: inline-block; font-size: 0.95rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.list-row > span:first-child { min-width: 0; }
.quick-add { margin: 0; flex-shrink: 0; }
.quick-add button {
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.quick-add button:hover { border-color: var(--accent); background: var(--accent-wash); }
.quick-add .on-plan { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.search-bar .search-box { width: 100%; border-radius: 999px; font-size: 1rem; padding: 0.7rem 1.1rem 0.7rem 2.4rem; }
.search-bar .search-box:focus { width: 100%; }
.search-bar .search-form { flex: 1; }
.search-bar .search-form svg { left: 1rem; width: 16px; height: 16px; }
.search-foot { text-align: center; font-size: 0.92rem; padding-top: 1rem; border-top: 1px solid var(--rule); margin-top: 1rem; }
.search-foot a { font-weight: 600; }

/* ---------- Recipe page ---------- */
.recipe-card { position: relative; overflow: hidden; border-top: 6px solid var(--cat, var(--accent)); }
.recipe-card::before {
    content: "";
    position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%;
    background: var(--cat-soft, var(--accent-soft)); opacity: 0.45; pointer-events: none;
}
.recipe-head { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); position: relative; }
.recipe-head .kicker {
    font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cat, var(--accent)); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem;
}
.recipe-head .kicker::before { content: ""; width: 22px; height: 2px; background: var(--cat, var(--accent)); }
.recipe-head h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.6rem; }
.pill.cat { background: var(--cat-soft, var(--accent-soft)); color: var(--cat, var(--accent-ink)); }
.pill.cat:hover { background: var(--cat, var(--accent)); color: #fff; }
.recipe-head .pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.recipe-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.recipe-actions form { display: inline; }
/* Star ratings */
.rate { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.7rem 0 0.9rem; }
.rate-stars { display: inline-flex; }
.rate-stars button {
    background: none; border: 0; padding: 0 0.08rem; cursor: pointer;
    font-size: 1.7rem; line-height: 1; color: var(--border-strong);
    transition: color 0.12s, transform 0.12s;
}
.rate-stars button.on { color: var(--gold); }
/* Hover preview only with a real mouse; on phones :hover sticks after a tap
   and would keep every star lit. */
@media (hover: hover) {
    .rate-stars:hover button { color: var(--gold); }
    .rate-stars button:hover ~ button { color: var(--border-strong); }
    .rate-stars button:hover { transform: scale(1.15); }
}
.rate-stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rate-label { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.05em; margin-left: 0.45rem; white-space: nowrap; }
.stars .off { color: var(--border-strong); }
.eyebrow .stars { margin-left: 0; font-size: 1rem; }
.fav-group + .fav-group { margin-top: 1.4rem; }
.week-add { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.week-add select, .week-actions select {
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 0.4rem 1.9rem 0.4rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2376816f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: var(--text);
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
}
.week-add select:focus, .week-actions select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(74,124,89,0.15); }
.week-on-plan {
    font-family: var(--sans);
    font-size: 0.84rem;
    color: var(--accent-ink);
    margin-top: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.week-on-plan a { font-weight: 600; }
.week-on-plan form { display: inline-flex; align-items: center; gap: 0.1rem; background: var(--accent-soft); border-radius: 999px; padding: 0.1rem 0.25rem 0.1rem 0.7rem; }
.week-remove {
    border: none; background: none; color: #b0584c;
    font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0.35rem; border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.week-remove:hover { color: #fff; background: var(--danger); }

.recipe-part { margin-bottom: 2rem; }
.recipe-part:last-of-type { margin-bottom: 0; }
.recipe-part h3.part-title {
    font-family: var(--display); font-size: 1.4rem; color: var(--text);
    margin-bottom: 1rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--cat-soft, var(--accent-soft));
    display: flex; align-items: center; gap: 0.6rem;
}
.recipe-part h3.part-title::before { content: "\273F"; color: var(--cat, var(--accent)); font-size: 0.9rem; }
.recipe-body { display: grid; grid-template-columns: minmax(230px, 5fr) 8fr; gap: 2rem; align-items: start; }
.recipe-body.single { grid-template-columns: 1fr; }
.ingredients-panel {
    background: #fffdf5;
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, #e9e2cf 31px 32px);
    background-position: 0 2.55rem;
    border: 1px solid #e6dfc9;
    border-radius: 6px;
    padding: 1.1rem 1.3rem 1.2rem 1.3rem;
    position: sticky; top: 1rem;
    box-shadow: 0 1px 0 #fff inset, var(--shadow-sm);
}
.ingredients-panel::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 2.1rem; width: 1px; background: rgba(196, 105, 74, 0.35);
}
.ingredients-panel .eyebrow { color: var(--cat, var(--accent)); margin-bottom: 0.35rem; padding-left: 1.4rem; }
.ingredients-list { list-style: none; }
.ingredients-list li {
    padding: 0 0 0 1.4rem;
    font-size: 0.98rem;
    position: relative;
    line-height: 32px;
}
.ingredients-list li::before {
    content: "";
    position: absolute; left: 0.1rem; top: 12px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cat, var(--accent));
}
.directions {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-soft);
    white-space: pre-line;
}
.steps { list-style: none; counter-reset: step; }
.steps li {
    counter-increment: step;
    position: relative; padding: 0.15rem 0 1rem 3.1rem;
    font-size: 1.02rem; line-height: 1.75; color: var(--text-soft);
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--cat-soft, var(--accent-soft)); color: var(--cat, var(--accent-ink));
    font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
}
.steps li.subhead { padding-left: 0; font-family: var(--display); font-size: 1.05rem; color: var(--cat, var(--accent-ink)); counter-increment: none; padding-bottom: 0.4rem; }
.steps li.subhead::before { display: none; }
.notes-box {
    background: #fbf7ea;
    border: 1px solid #efe3bd;
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.92rem;
    color: #4a4330;
}
.notes-box .eyebrow { color: #9a7b22; margin-bottom: 0.3rem; }
.photo-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.photo-grid a {
    display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 1;
    background: #fff; border: 6px solid #fff; border-bottom-width: 22px; box-shadow: var(--shadow-md);
    transition: transform 0.25s, box-shadow 0.25s;
}
.photo-grid a:nth-child(odd) { transform: rotate(-1.5deg); }
.photo-grid a:nth-child(even) { transform: rotate(1.2deg); }
.photo-grid a:hover { transform: rotate(0) scale(1.04); box-shadow: var(--shadow-lg); z-index: 1; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label, .form-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-soft);
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea,
.input {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.98rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .input:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,124,89,0.15);
}
.form-group textarea { resize: vertical; min-height: 5rem; line-height: 1.6; }
.form-group select {
    appearance: none; -webkit-appearance: none;
    padding-right: 2.2rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2376816f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
}
.form-hint { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.form-error { font-family: var(--sans); color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.form-group input[type="file"] { font-family: var(--sans); font-size: 0.85rem; color: var(--text-soft); }
.form-group input[type="file"]::file-selector-button {
    font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
    padding: 0.4rem 0.9rem; margin-right: 0.75rem;
    border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--accent-ink); cursor: pointer;
}

.part-block {
    background: var(--card-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}
.part-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.part-block h4 {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-ink);
}
.ingredient-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.45rem; }
.ingredient-row input { flex: 1; }
.ingredient-row .handle { color: var(--faint); font-family: var(--sans); font-size: 0.78rem; width: 1.4rem; text-align: right; flex-shrink: 0; }
.remove-ing-btn {
    background: none; border: 1px solid transparent; color: var(--faint); cursor: pointer;
    font-size: 1.15rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.remove-ing-btn:hover { background: var(--danger-soft); color: var(--danger); }
.add-ing-btn {
    background: #fff; border: 1px dashed var(--border-strong); color: var(--accent-ink); cursor: pointer;
    font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
    padding: 0.45rem 0.9rem; border-radius: 999px; margin-top: 0.3rem;
    transition: border-color 0.15s, background 0.15s;
}
.add-ing-btn:hover { border-color: var(--accent); background: var(--accent-wash); }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.6rem; margin-bottom: 0.85rem; }
.photo-pick label {
    position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1;
    background: var(--bg-deep); border: 1px solid var(--border); cursor: pointer; margin: 0;
}
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick span {
    position: absolute; bottom: 5px; left: 5px; right: 5px;
    background: rgba(255,255,255,0.92); padding: 3px 6px; border-radius: 6px;
    font-size: 0.72rem; font-family: var(--sans); font-weight: 600; color: var(--danger);
    display: flex; align-items: center; gap: 0.3rem;
}

/* Upload zone (photo import) */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 2.4rem 1.25rem;
    text-align: center;
    background: var(--card-tint);
    cursor: pointer;
    display: block;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-wash); }
.upload-zone.dragover { transform: scale(1.01); }
.upload-zone input[type=file] { display: none; }
.upload-zone .glyph {
    width: 56px; height: 56px; margin: 0 auto 0.75rem; border-radius: 50%;
    background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.upload-zone .glyph svg { width: 26px; height: 26px; }
.upload-zone .big { font-family: var(--sans); font-weight: 600; margin-bottom: 0.2rem; }
.upload-zone .small { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-deep); aspect-ratio: 1; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .remove-thumb {
    position: absolute; top: 6px; right: 6px;
    background: rgba(43,53,44,0.7); color: white;
    border: none; border-radius: 50%;
    width: 26px; height: 26px; font-size: 1rem;
    cursor: pointer; line-height: 1;
}
.thumb .remove-thumb:hover { background: var(--danger); }

/* Find online */
.find-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.find-form .input { flex: 1 1 240px; width: auto; }
.find-form select.input { flex: 0 1 220px; width: auto; appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2376816f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.9rem center; }
.web-result {
    display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start;
    padding: 1rem 0.5rem; border-bottom: 1px solid var(--rule); border-radius: 8px;
    transition: background 0.15s;
}
.web-result:hover { background: var(--card-tint); }
.web-result:last-child { border-bottom: none; }
.web-result .info { min-width: 0; }
.web-result .title { font-size: 1.08rem; color: var(--text); }
.web-result .title:hover { color: var(--accent-ink); }
.web-result .site { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-top: 0.2rem; }
.web-result .snippet { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
.web-result form { margin: 0; flex-shrink: 0; }
.web-result .have { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; background: var(--accent-soft); padding: 0.35rem 0.8rem; border-radius: 999px; }

.site-list { list-style: none; columns: 2 220px; column-gap: 1.5rem; margin: 0.75rem 0 1rem; }
.site-list li { padding: 0.25rem 0; break-inside: avoid; font-size: 0.95rem; }
.site-list li::before { content: "\2713"; color: var(--accent); font-family: var(--sans); font-size: 0.8rem; margin-right: 0.5rem; }
.site-list a { color: var(--text); }
.site-list a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-list .url { display: none; }

/* ---------- Spinner overlay ---------- */
.spinner-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(246, 243, 236, 0.88);
    backdrop-filter: blur(3px);
    z-index: 999;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 0.9rem;
    text-align: center;
}
.spinner-overlay.active { display: flex; }
.spinner-overlay .big { font-family: var(--sans); font-weight: 600; color: var(--accent-ink); }
.spinner-overlay .small { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.spinner {
    width: 52px; height: 52px;
    border: 4px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- This Week ---------- */
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.week-day {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 4px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.9rem 1rem 1rem;
    min-height: 6.5rem;
    box-shadow: var(--shadow-sm);
}
.week-day:nth-child(1) { border-top-color: #c4694a; }
.week-day:nth-child(2) { border-top-color: #c9962e; }
.week-day:nth-child(3) { border-top-color: #5a9a4a; }
.week-day:nth-child(4) { border-top-color: #3f6f4f; }
.week-day:nth-child(5) { border-top-color: #c05a7a; }
.week-day:nth-child(6) { border-top-color: #8a5a3c; }
.week-day:nth-child(7) { border-top-color: #5c7a8c; }
.week-day.is-today { background: var(--accent-wash); box-shadow: 0 0 0 2px var(--accent-light), var(--shadow-md); }
.week-day.is-anytime { grid-column: 1 / -1; background: #fbf7ea; border-color: #efe3bd; border-top-color: var(--gold); }
.week-day-name .sun { width: 15px; height: 15px; color: var(--gold); }
.week-day-name {
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.week-day.is-today .week-day-name { color: var(--accent-ink); }
.week-day-name .today-tag { font-size: 0.62rem; background: var(--accent); color: #fff; padding: 0.05rem 0.45rem; border-radius: 999px; letter-spacing: 0.06em; }
.week-empty { color: var(--faint); font-family: var(--sans); font-size: 0.85rem; font-style: italic; }
.week-items { list-style: none; }
.week-items li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-top: 1px dotted var(--border-strong); }
.week-items li:first-child { border-top: none; }
.week-title { color: var(--text); font-size: 1rem; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; }
.week-title:hover { color: var(--accent-ink); }
.week-actions { display: flex; align-items: center; gap: 0.2rem; flex-shrink: 0; }
.week-actions form { margin: 0; display: flex; }
.week-actions select { font-size: 0.76rem; padding: 0.25rem 1.6rem 0.25rem 0.6rem; background-position: right 0.55rem center; }

/* ---------- Shopping ---------- */
.shop-group { margin-bottom: 1.6rem; }
.shop-group h3 { font-family: var(--display); font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; padding-left: 0.9rem; border-left: 4px solid var(--cat, var(--accent)); }
.shop-group h3 .times { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.shop-list { list-style: none; }
.shop-list li { padding: 0.15rem 0; }
.shop-list label {
    display: flex; gap: 0.75rem; align-items: center; cursor: pointer;
    padding: 0.35rem 0.5rem; border-radius: 8px; transition: background 0.15s;
}
.shop-list label:hover { background: var(--card-tint); }
.shop-list input {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; flex-shrink: 0;
    border: 2px solid var(--border-strong); border-radius: 6px; background: #fff;
    display: inline-grid; place-content: center; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.shop-list input::before {
    content: ""; width: 10px; height: 10px;
    transform: scale(0); transition: transform 0.12s;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.shop-list input:checked { background: var(--cat, var(--accent)); border-color: var(--cat, var(--accent)); }
.shop-list input:checked::before { transform: scale(1); }
.shop-list input:checked + span { text-decoration: line-through; color: var(--faint); }
.shop-list span { transition: color 0.15s; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 480px; margin: 1rem auto 0; }
.auth-wrap.wide { max-width: 580px; }
.auth-card { padding: 2.25rem 2.25rem 2rem; }
.auth-hero { text-align: center; margin-bottom: 1.5rem; }
.auth-hero img {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    border: 4px solid #fff; box-shadow: var(--shadow-md); margin-bottom: 0.75rem;
}
.auth-hero h2 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.auth-hero p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 0.5rem; }
.stat-tile {
    background: var(--card-tint); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.stat-tile .label { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; }
.stat-tile .value { font-family: var(--display); font-size: 2rem; color: var(--accent-ink); line-height: 1; }
.user-row { display: flex; align-items: center; gap: 0.7rem; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent-soft); color: var(--accent-ink);
    font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase;
}

/* ---------- Print ---------- */
@media print {
    body { background: #fff; color: #000; }
    header, footer, .no-print, .flash, .breadcrumb, .recipe-actions, .week-add, .week-on-plan, .rate, .pet-poop { display: none !important; }
    main { padding: 0; max-width: none; }
    .card { border: none; box-shadow: none; padding: 0; }
    .recipe-body { grid-template-columns: 1fr; gap: 1rem; }
    .ingredients-panel { position: relative; border: none; background: none; padding: 0; box-shadow: none; }
    .ingredients-panel::before { display: none; }
    .site-list { columns: 2; }
    .site-list a { color: #000; }
    .site-list .url { display: inline; color: #555; font-size: 0.8rem; }
    .print-title { font-size: 1.4rem !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    header.site-header .sprig { opacity: 0.1; width: 110px; }
}
@media (max-width: 900px) {
    header.site-header .sprig { display: none; }
}
@media (max-width: 760px) {
    .recipe-body { grid-template-columns: 1fr; gap: 1.25rem; }
    .ingredients-panel { position: relative; top: auto; }
}
@media (max-width: 600px) {
    main { padding: 1.25rem 1rem 2.5rem; }
    .card { padding: 1.25rem; border-radius: 10px; }
    .header-inner {
        padding: 0 1rem; gap: 0.5rem 0.6rem;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "petl title petr" "nav nav nav";
    }
    .header-center { display: contents; }
    .header-pets:first-child { grid-area: petl; }
    .header-pets:last-child { grid-area: petr; }
    .site-title { grid-area: title; font-size: 1.45rem; }
    nav.site-nav { grid-area: nav; gap: 0.15rem; }
    header.site-header .sprig { display: none; }
    .site-tag { display: none; }
    .header-pets img { width: 46px; height: 46px; border-width: 2px; outline-width: 1px; }
    .header-pets img.pet-dog { width: 52px; height: 52px; }
    .header-pets img:hover, .header-pets img.pet-flip:hover { transform: none; }
    .header-pets img.pet-flip:hover { transform: scaleX(-1); }
    .nav-sep { display: none; }
    nav.site-nav a, .nav-user { font-size: 0.8rem; padding: 0.3rem 0.55rem; }
    .search-box, .search-box:focus { width: 100%; }
    .search-form { width: 100%; margin-top: 0.3rem; }
    .cat-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 1.85rem; }
    .recipe-head h1 { font-size: 1.85rem; }
    .recipe-card::before { display: none; }
    .web-result { flex-direction: column; gap: 0.6rem; }
    .week-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
