/* ==========================================================================
   Cheap Meal Ideas — Warm Artisan Kitchen Editorial Theme
   ========================================================================== */

:root {
    --bg: #faf7f2;
    --bg-alt: #f3ede3;
    --surface: #ffffff;
    --border: #e6ddd0;
    --border-strong: #d4c6b3;

    --ink-1: #1f1b16;
    --ink-2: #574e44;
    --ink-3: #8a7f72;

    --terracotta: #c84b31;
    --terracotta-dark: #a63a24;
    --terracotta-soft: #fdf1ee;
    --basil: #2d6a4f;
    --basil-soft: #ebf5ef;
    --honey: #d97706;
    --honey-soft: #fef6e4;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(31, 27, 22, 0.05);
    --shadow-md: 0 12px 32px rgba(31, 27, 22, 0.08);
    --shadow-lg: 0 22px 54px rgba(31, 27, 22, 0.12);

    --font-display: 'Fraunces', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink-1);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-1);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

a { color: var(--terracotta); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--terracotta-dark); }

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { flex: 1; }

/* Blazor focuses page headings after navigation for screen-reader announcements. */
.site-main h1[tabindex="-1"]:focus { outline: none; }

#recipe-ingredients,
#watch-video {
    scroll-margin-block-start: 90px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-1);
    text-decoration: none;
    flex-shrink: 0;
}
.brand:hover { color: var(--ink-1); }
.brand-logo {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(200, 75, 49, 0.22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink-1);
}
.brand-tagline {
    font-size: 0.74rem;
    color: var(--ink-3);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a {
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.15s ease;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink-1); }
.main-nav a.active { background: var(--terracotta-soft); color: var(--terracotta); }
.main-nav a.nav-admin-pill { background: var(--basil-soft); color: var(--basil); }

.header-search {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px 6px 4px 15px;
    width: 260px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.header-search:focus-within {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.14);
}
.header-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.86rem;
    font-family: var(--font-sans);
    color: var(--ink-1);
    min-width: 0;
}
.header-search button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--terracotta);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.header-search button:hover { background: var(--terracotta-dark); }

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.16s ease;
}
.btn-primary {
    background: var(--terracotta);
    color: #fff;
    box-shadow: 0 6px 20px rgba(200, 75, 49, 0.28);
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
    background: var(--surface);
    color: var(--ink-1);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-basil {
    background: var(--basil);
    color: #fff;
}
.btn-basil:hover { background: #22543d; color: #fff; }
.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.pill-terracotta { background: var(--terracotta-soft); color: var(--terracotta); }
.pill-basil { background: var(--basil-soft); color: var(--basil); }
.pill-honey { background: var(--honey-soft); color: #b45309; }
.pill-neutral { background: var(--bg-alt); color: var(--ink-2); }

/* ==========================================================================
   Homepage Editorial Hero
   ========================================================================== */
.hero-section {
    padding: 36px 0 28px;
}
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #231914;
    min-height: 350px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}
.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.82;
}
.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(24, 16, 11, 0.90) 0%, rgba(24, 16, 11, 0.72) 48%, rgba(24, 16, 11, 0.18) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 44px 48px;
    max-width: 720px;
    color: #fff;
}
.hero-content h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    margin: 12px 0 14px;
}
.hero-content p {
    color: rgba(255, 250, 244, 0.88);
    font-size: 1.06rem;
    margin: 0 0 24px;
    max-width: 580px;
}
.hero-search-bar {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 999px;
    max-width: 560px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.hero-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 0.96rem;
    font-family: var(--font-sans);
    color: var(--ink-1);
    border-radius: 999px;
    min-width: 0;
}

.hero-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    backdrop-filter: blur(8px);
}
.hero-chip:hover, .hero-chip.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

/* Category Strip */
.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 8px 0 24px;
}
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}
.cat-pill:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-1px); }
.cat-pill.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}
.cat-pill .count {
    font-size: 0.74rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}
.cat-pill.active .count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ==========================================================================
   Recipe Card Grid
   ========================================================================== */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.results-bar h2 { margin: 0; font-size: 1.65rem; }

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.recipe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--ink-1);
}
.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    color: var(--ink-1);
}

.recipe-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}
.recipe-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.recipe-card:hover .recipe-card-img-wrap img { transform: scale(1.05); }

.recipe-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(24, 20, 17, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
}
.recipe-time-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-1);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.recipe-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.recipe-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.recipe-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2px 0 0;
    color: var(--ink-1);
}
.recipe-card-desc {
    font-size: 0.88rem;
    color: var(--ink-2);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.recipe-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--bg-alt);
    font-size: 0.8rem;
    color: var(--ink-3);
    font-weight: 600;
}
.meta-star { color: var(--honey); }

/* ==========================================================================
   Recipe Detail Page
   ========================================================================== */
.recipe-detail-wrap {
    padding: 28px 0 64px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--ink-3);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--terracotta); }

.recipe-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}
.recipe-hero-photo {
    position: relative;
    background: var(--bg-alt);
    min-height: 360px;
    border: none;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    display: block;
    width: 100%;
}
.recipe-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.recipe-hero-photo:hover img { transform: scale(1.03); }
.photo-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(24, 20, 17, 0.78);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    opacity: 0.9;
    transition: opacity 0.16s ease, background 0.16s ease;
}
.recipe-hero-photo:hover .photo-zoom-hint {
    opacity: 1;
    background: var(--terracotta);
}
.hero-jump-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.recipe-hero-info {
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.recipe-hero-info h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    margin: 0;
}
.recipe-hero-desc {
    color: var(--ink-2);
    font-size: 1rem;
    margin: 0;
}

.recipe-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.fact-box {
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.fact-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink-1);
}
.fact-lbl {
    font-size: 0.74rem;
    color: var(--ink-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recipe-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.recipe-body-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.panel-card h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

/* Servings Scaler */
.scaler-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.scaler-btns {
    display: inline-flex;
    gap: 4px;
}
.scaler-btn {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
}
.scaler-btn.active, .scaler-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

.ing-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ing-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    transition: background 0.15s ease;
}
.ing-item:hover { background: var(--bg-alt); }
.ing-item.checked { opacity: 0.55; text-decoration: line-through; }
.ing-item input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--basil);
    width: 17px; height: 17px;
    flex-shrink: 0;
}
.ing-qty {
    font-weight: 700;
    color: var(--terracotta);
    margin-right: 4px;
}
.ing-note {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-3);
    margin-top: 2px;
}

/* Instructions Cook Mode */
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.step-card {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.16s ease;
}
.step-card:hover { border-color: var(--border-strong); background: #fff; }
.step-card.done {
    background: var(--basil-soft);
    border-color: rgba(45, 106, 79, 0.35);
    opacity: 0.72;
}
.step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--terracotta);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-card.done .step-num { background: var(--basil); }

/* Video Container */
.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Pantry / Ingredients Grid */
.pantry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
.pantry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink-1);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}
.pantry-card:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }

/* ==========================================================================
   Admin Kitchen & QuickGrid (.NET 11 built-in)
   ========================================================================== */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 20px;
}
.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.admin-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.88rem;
}
.admin-tabs a.active, .admin-tabs a:hover {
    background: var(--basil);
    border-color: var(--basil);
    color: #fff;
}

.quickgrid-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.quickgrid-card table.quickgrid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.quickgrid-card table.quickgrid th {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border);
    color: var(--ink-2);
    font-weight: 700;
    background: var(--bg);
}
.quickgrid-card table.quickgrid td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--bg-alt);
    vertical-align: middle;
}
.quickgrid-card table.quickgrid tr:hover td { background: var(--terracotta-soft); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.span-2 { grid-column: span 2; }
.form-field label { font-size: 0.84rem; font-weight: 700; color: var(--ink-2); }
.form-input, .form-textarea, .form-select {
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    background: #fff;
    color: var(--ink-1);
    outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.14);
}

.alert-banner {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.9rem;
}
.alert-success { background: var(--basil-soft); color: var(--basil); border: 1px solid rgba(45, 106, 79, 0.3); }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: 48px;
    background: #1f1b16;
    color: #e7dfd5;
    padding: 52px 0 28px;
}
.site-footer .brand-title { color: #fff; }
.site-footer .brand-tagline { color: #a89f94; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-blurb {
    color: #b8aea2;
    font-size: 0.88rem;
    margin-top: 14px;
    max-width: 340px;
}
.footer-social {
    margin-top: 1rem;
}
.footer-social-label {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-social-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #807265;
    border-radius: 999px;
    color: #fff5ed;
    font-size: 0.875rem;
    text-decoration: none;
}
.footer-social-links a:hover {
    border-color: #f4a28c;
    background: #3a2e25;
    color: #fff;
}
.footer-social-links a:focus-visible {
    outline: 2px solid #f4a28c;
    outline-offset: 3px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a89f94;
    margin: 0 0 6px;
}
.footer-col a { color: #e7dfd5; font-size: 0.9rem; }
.footer-col a:hover { color: #f4a28c; }
.link-btn {
    background: none; border: none; padding: 0;
    color: #f4a28c; font: inherit; font-size: 0.88rem;
    cursor: pointer; text-align: left;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    font-size: 0.82rem;
    color: #968c81;
}

/* ==========================================================================
   Mobile Menu Drawer, Watch & Cook Showcase, Sort & Filter Chips,
   Theater Video Player, Kitchen Timer, Lightbox & Admin Media Previews
   ========================================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-1);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.mobile-menu-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }

.mobile-nav-drawer {
    display: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-inner { padding: 16px 24px 22px; }
.mobile-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.mobile-search-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
}
.mobile-search-form input:focus { border-color: var(--terracotta); }
.mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink-1);
    font-weight: 600;
    font-size: 0.9rem;
}
.mobile-nav-links a:hover { background: var(--terracotta-soft); color: var(--terracotta); }
.mobile-nav-links a.mobile-admin-link { background: var(--basil-soft); color: var(--basil); }

/* Watch & Cook Video Showcase Strip */
.video-showcase-section {
    padding: 8px 24px 28px;
}
.showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.showcase-header h2 { margin: 0; font-size: 1.55rem; }
.showcase-header p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.92rem; }

.video-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 275px);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.video-showcase-card {
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: var(--ink-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--terracotta);
    color: var(--ink-1);
}
.video-showcase-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1f1b16;
}
.video-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.video-showcase-card:hover .video-showcase-thumb img { transform: scale(1.06); }
.video-showcase-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 15, 11, 0.55), rgba(20, 15, 11, 0.12));
}
.video-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(200, 75, 49, 0.94);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
    transition: transform 0.18s ease, background 0.18s ease;
}
.video-showcase-card:hover .video-play-circle,
.video-facade:hover .video-play-circle {
    transform: translate(-50%, -50%) scale(1.09);
    background: var(--terracotta-dark);
}
.video-play-circle-lg {
    position: static;
    transform: none;
    width: 74px;
    height: 74px;
    padding-left: 5px;
}
.video-facade:hover .video-play-circle-lg {
    transform: scale(1.08);
}
.video-showcase-time {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-1);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}
.video-showcase-meta {
    padding: 13px 15px 15px;
}
.video-showcase-meta h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-showcase-meta span {
    font-size: 0.78rem;
    color: var(--ink-3);
    font-weight: 600;
}

/* Active Filters & Sort Controls */
.active-filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 18px;
}
.active-filters-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-3);
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--terracotta-soft);
    color: var(--terracotta);
    font-size: 0.8rem;
    font-weight: 700;
}
.filter-tag:hover { background: var(--terracotta); color: #fff; }
.filter-tag-clear {
    background: var(--bg-alt);
    color: var(--ink-2);
}
.filter-tag-clear:hover { background: var(--ink-1); color: #fff; }

.sort-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sort-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-3);
    margin-right: 2px;
}
.sort-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.sort-pill:hover { border-color: var(--terracotta); color: var(--terracotta); }
.sort-pill.active {
    background: var(--ink-1);
    border-color: var(--ink-1);
    color: #fff;
}

/* Theater Click-to-Play Video Card on Recipe Detail */
.video-theater-card {
    background: linear-gradient(155deg, #241d17 0%, #191410 100%);
    color: #f7f1e8;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
}
.video-theater-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.video-theater-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}
.video-theater-header p {
    margin: 4px 0 0;
    color: rgba(255, 248, 240, 0.74);
    font-size: 0.9rem;
}
.video-yt-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.video-yt-link:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}
.video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    display: block;
}
.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.video-facade:hover img { transform: scale(1.04); }
.video-facade-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 15, 11, 0.25), rgba(20, 15, 11, 0.68));
}
.video-facade-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}
.video-facade-caption {
    background: rgba(20, 15, 11, 0.76);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* Cooking UX: Toast, Kitchen Timer, Progress Bar, Step Timers */
.ux-toast {
    background: var(--basil-soft);
    color: var(--basil);
    border: 1px solid rgba(45, 106, 79, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.timer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 2px solid var(--terracotta);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-md);
}
.timer-bar.timer-done {
    background: var(--honey-soft);
    border-color: var(--honey);
}
.timer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.timer-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.timer-clock {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink-1);
    font-variant-numeric: tabular-nums;
}
.timer-step-label {
    font-size: 0.84rem;
    color: var(--ink-2);
    font-weight: 600;
}
.timer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.timer-presets {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.timer-preset-btn {
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--ink-1);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.timer-preset-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.timer-custom-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.timer-custom-input {
    width: 54px;
    padding: 4px 6px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-align: center;
}
.timer-action-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.timer-close-btn {
    border: none;
    background: transparent;
    color: var(--ink-3);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
}
.timer-close-btn:hover { color: var(--ink-1); }

.cook-progress-track {
    height: 7px;
    border-radius: 999px;
    background: var(--bg-alt);
    overflow: hidden;
    margin-bottom: 14px;
}
.cook-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta), var(--basil));
    border-radius: 999px;
    transition: width 0.25s ease;
}
.text-reset-btn {
    border: none;
    background: transparent;
    color: var(--terracotta);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
}
.text-reset-btn:hover { text-decoration: underline; }

.step-timer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: var(--honey-soft);
    color: #9a5205;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.step-timer-chip:hover {
    background: var(--honey);
    color: #fff;
    border-color: var(--honey);
}

/* Fullscreen Photo Lightbox */
.cmi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(18, 14, 11, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cmi-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.cmi-lightbox-close:hover { background: var(--terracotta); border-color: var(--terracotta); }
.cmi-lightbox-figure {
    margin: 0;
    max-width: min(980px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cmi-lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.cmi-lightbox-figure figcaption {
    color: #f3ede3;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Admin Media Previews */
.admin-media-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 6px;
}
.admin-photo-preview {
    width: 128px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.admin-thumb-preview {
    width: 128px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.admin-media-note {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
}
.admin-media-warn {
    background: var(--honey-soft);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   Responsive & Print Recipe Card
   ========================================================================== */
@media (max-width: 1024px) {
    .header-search, .main-nav { display: none; }
    .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 960px) {
    .recipe-hero-card { grid-template-columns: 1fr; }
    .recipe-body-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.span-2 { grid-column: span 1; }
}

@media (max-width: 640px) {
    .hero-content { padding: 28px 20px; }
    .hero-search-bar { flex-direction: column; border-radius: 16px; }
    .recipe-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .mobile-nav-links { grid-template-columns: 1fr; }
    .video-theater-card { padding: 18px; }
    .brand-tagline { display: none; }
}

@media print {
    .site-header, .site-footer, .recipe-actions-row, .hero-jump-row, .photo-zoom-hint, .video-theater-card, .video-wrap, .scaler-btns, .breadcrumb, .timer-bar, .ux-toast, .step-timer-chip, .cook-progress-track, .text-reset-btn, .wcim-shell {
        display: none !important;
    }
    body { background: #fff; }
    .recipe-hero-card, .panel-card { box-shadow: none; border-color: #ccc; }
}

/* ==========================================================================
   "What Can I Make?" Kitchen Helper Preview (Mobile-First)
   ========================================================================== */
.wcim-shell {
    margin-top: 14px;
    max-width: 680px;
}
.wcim-launcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 251, 245, 0.96);
    color: var(--ink-1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.wcim-launcher-copy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 220px;
}
.wcim-spark {
    font-size: 1.25rem;
    line-height: 1.2;
}
.wcim-launcher-copy strong {
    display: block;
    font-size: 0.96rem;
    color: var(--ink-1);
}
.wcim-launcher-copy span {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-2);
    line-height: 1.35;
}
.wcim-open-btn {
    white-space: nowrap;
}
.wcim-panel {
    background: #fffcf7;
    color: var(--ink-1);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
    text-align: left;
}
.wcim-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.wcim-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--basil);
    background: var(--basil-soft);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.wcim-title {
    margin: 0;
    font-size: 1.28rem;
    color: var(--ink-1);
}
.wcim-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink-2);
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.wcim-close:hover { background: var(--terracotta-soft); color: var(--terracotta); }
.wcim-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wcim-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border-strong);
    background: #fff;
    color: var(--ink-1);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 62px;
}
.wcim-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.14);
}
.wcim-avoid > summary span { font-weight: 400; }
.wcim-avoid-input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-1);
    font: inherit;
    font-size: 0.94rem;
}
.wcim-avoid p, .wcim-results .wcim-avoid-applied {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 0.84rem;
}
.wcim-controls-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.wcim-select {
    flex: 1 1 130px;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--ink-1);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
}
.wcim-submit-btn {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 10px;
}
.wcim-examples {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.wcim-examples-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-3);
}
.wcim-example-chip {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink-2);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.wcim-example-chip:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: var(--terracotta-soft);
}
.wcim-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 4px 6px;
    font-size: 0.9rem;
    color: var(--ink-2);
    font-weight: 600;
}
.wcim-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--border-strong);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: wcim-spin 0.75s linear infinite;
}
@keyframes wcim-spin { to { transform: rotate(360deg); } }

.wcim-results {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.wcim-results-head strong {
    display: block;
    font-size: 1rem;
    color: var(--ink-1);
    margin-bottom: 3px;
}
.wcim-results-head p {
    margin: 0 0 12px !important;
    font-size: 0.88rem !important;
    color: var(--ink-2) !important;
    line-height: 1.45 !important;
}
.wcim-results-head.wcim-no-match {
    background: var(--honey-soft);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.wcim-results-head.wcim-no-match p { margin-bottom: 0 !important; }
.wcim-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wcim-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.wcim-card-closest {
    border-style: dashed;
    border-color: rgba(217, 119, 6, 0.55);
}
.wcim-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.wcim-thumb {
    width: 78px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-alt);
}
.wcim-card-head {
    min-width: 0;
    flex: 1;
}
.wcim-closest-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--honey-soft);
    color: #92400e;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.wcim-card-head h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
    line-height: 1.25;
    color: var(--ink-1);
}
.wcim-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wcim-fact-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.3;
}
.wcim-why {
    margin: 10px 0 8px !important;
    font-size: 0.88rem !important;
    color: var(--ink-1) !important;
    line-height: 1.45 !important;
}
.wcim-missing {
    margin: 8px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wcim-missing-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wcim-missing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.wcim-ing-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--terracotta-soft);
    color: var(--terracotta);
    font-size: 0.78rem;
    font-weight: 600;
}
.wcim-all-set {
    margin: 8px 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--basil);
}
.wcim-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wcim-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.wcim-meta-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--ink-3);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 640px) {
    .wcim-panel { padding: 14px; }
    .wcim-launcher { padding: 12px 14px; }
    .wcim-open-btn { width: 100%; justify-content: center; }
    .wcim-submit-btn { width: 100%; justify-content: center; }
    .wcim-actions .btn { flex: 1 1 auto; justify-content: center; }
    .wcim-thumb { width: 64px; height: 54px; }
}


/* =========================================================================
   Drinks Sub-Filter & Avoid Ingredients Controls (Static SSR)
   ========================================================================= */
.drinks-subfilter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -8px 0 18px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.subfilter-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-2);
    margin-right: 4px;
}
.subfilter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--bg-soft, #f6f1e8);
    border: 1px solid var(--border);
    color: var(--ink-1);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.subfilter-pill:hover {
    border-color: var(--accent, #c84b31);
    color: var(--accent, #c84b31);
}
.subfilter-pill .count {
    font-size: 0.78rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}
.subfilter-pill.active {
    background: var(--accent, #c84b31);
    border-color: var(--accent, #c84b31);
    color: #fff;
}
.subfilter-pill.active .count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.subfilter-pill-basil.active {
    background: var(--basil, #2d6a4f);
    border-color: var(--basil, #2d6a4f);
    color: #fff;
}

.avoid-filter {
    margin: 0 0 16px;
    max-width: 38rem;
}
.avoid-filter > summary, .wcim-avoid > summary {
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 2px;
    color: var(--ink-2);
    font-size: 0.86rem;
    font-weight: 650;
}
.avoid-filter > summary:hover, .wcim-avoid > summary:hover { color: var(--basil); }
.avoid-filter[open] {
    padding: 0 16px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.avoid-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.avoid-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 260px;
    min-width: 0;
}
.avoid-input-group input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-1);
    font-size: 0.94rem;
    font-family: inherit;
}
.avoid-input-group button {
    min-height: 44px;
    padding: 10px 18px;
}
.avoid-input-group input[type="text"]:focus-visible {
    outline: 3px solid var(--accent, #c84b31);
    outline-offset: 2px;
}
.avoid-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.avoid-chips-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-2);
}
.avoid-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fdf0ec;
    border: 1px solid #d99b8a;
    color: #7d2312;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.avoid-chip:hover {
    background: #f9dfd7;
}
.avoid-clear-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-1);
    text-decoration: underline;
    padding: 8px 10px;
}
.avoid-note {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--ink-2);
    line-height: 1.45;
}

@media (max-width: 600px) {
    .drinks-subfilter {
        padding: 12px;
    }
    .avoid-filter[open] { padding: 0 12px 12px; }
    .avoid-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .avoid-input-group {
        flex: 1 1 auto;
        width: 100%;
    }
    .subfilter-pill {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}
