/*
Theme Name: Receptai
Theme URI: https://rojus.lt
Author: Developer
Description: Modernus receptų tema, įkvėpta tek.no žurnalinio dizaino. Veikia su Recipe System, ACF, Simple Ajax Star Rating ir Light Views Counter.
Version: 1.4.4
License: GNU General Public License v2 or later
Text Domain: receptai
*/

/* ============ TOKENS ============ */
:root {
    --accent: #d9381e;
    --ink: #111;
    --ink-soft: #333;
    --muted: #666;
    --line: #e8e8e8;
    --bg: #fff;
    --bg-soft: #f5f4f2;
    --radius: 6px;
    --wrap: 1080px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark {
    --accent: #ff5c43;
    --ink: #f3f3f3;
    --ink-soft: #d6d6d6;
    --muted: #999;
    --line: #2a2a2a;
    --bg: #111;
    --bg-soft: #1a1a1a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ HEADER ============ */
.site-header {
    position: relative;
    z-index: 200;
    background: var(--bg);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
}
.site-branding .site-title a { color: var(--ink); }
.site-branding .site-title a span { color: var(--accent); }
.site-branding .custom-logo { max-height: 40px; width: auto; }

/* inline text nav next to the logo */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--accent); }

/* right-side actions: search, theme, user, burger */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 24px; height: 24px; }

.theme-toggle .icon-moon,
body.dark .theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-moon { display: block; }

.user-link { color: var(--ink); }

.user-menu { position: relative; }
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    display: none;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}
.user-dropdown[hidden] { display: none; }
.user-menu.is-open .user-dropdown { display: flex; }
.user-menu.is-open .user-link { background: var(--bg-soft); }
.user-dropdown a {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.user-dropdown a:last-child { border-bottom: 0; }
.user-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }

.bookmarks-link { position: relative; color: var(--accent); }
.bookmarks-link:hover { color: var(--ink); }
.bookmarks-link svg { transition: fill 0.2s ease; }
.bookmarks-link.is-filled svg { fill: currentColor; }
.bookmark-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    display: none;
}
.bookmark-count.is-visible { display: block; }

/* bookmark buttons on cards and single */
.receptai-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.receptai-bookmark-btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}
.card-media .receptai-bookmark-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}
.receptai-bookmark-btn.is-bookmarked {
    background: var(--accent);
    color: #fff;
}
.receptai-bookmark-btn.is-bookmarked svg { fill: currentColor; }
.recipe-tools .receptai-bookmark-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
}
body.dark .recipe-tools .receptai-bookmark-btn { background: var(--bg); }
.recipe-tools .receptai-bookmark-btn.is-bookmarked {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Article save / preferred source button */
.article-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.article-save-btn__icon {
    display: inline-flex;
    flex: 0 0 auto;
}
.article-save-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.article-save-btn:hover {
    border-color: var(--accent);
    background: var(--bg-soft);
    color: var(--accent);
}

/* bookmarks page */
.receptai-bookmarks-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}

/* gray search pill */
.header-search {
    flex: 0 1 240px;
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 0 16px;
}
.header-search::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 8px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
    color: var(--muted);
}
.header-search input[type="search"] {
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: var(--ink);
}

.menu-toggle {
    display: inline-grid;
}

/* ============ LABEL CHIPS (colored, above headlines) ============ */
.chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    padding: 9px 12px 8px;
    border-radius: 4px;
    color: var(--ink);
    background: #eee;
}
.chip--c0 { background: #f6c6d9; }            /* pink   */
.chip--c1 { background: #cfc3ec; }            /* purple */
.chip--c2 { background: #bfe6d8; }            /* mint   */
.chip--c3 { background: #f9ddc3; }            /* peach  */
.chip--c4 { background: #c7e3f4; }            /* blue   */
.chip--c5 { background: #f3f0b8; }            /* yellow */

/* ============ HERO (title over image) ============ */
.hero { padding: 22px 0 24px; }
.hero-feature {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--bg-soft);
    color: #fff;
}
.hero-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
}

.hero-feature .hero-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}
.hero-feature .hero-title {
    margin: 10px 0 6px;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}
.hero-feature .hero-standfirst {
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
}
.hero-feature:hover .hero-title { text-decoration: underline; }

/* ============ CARDS ============ */
.card { display: flex; flex-direction: column; }
.card-media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--bg-soft);
    margin-bottom: 12px;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

.card-body .chip { margin-bottom: 8px; }
.card-title {
    margin: 0 0 5px;
    font-size: 21px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.card-title a:hover { text-decoration: underline; }
.card-title--large { font-size: 27px; }
.card-standfirst {
    margin: 0 0 8px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.5;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
    color: var(--muted);
}
.card-meta .stars { color: #f5a623; }

/* ============ GRID ROWS ============ */
.row { padding: 24px 0; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}
.grid-ingredients {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
}

/* ============ RECIPE CARD (regular) ============ */
.recipe-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.recipe-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
}
.recipe-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.recipe-card:hover .recipe-card__media img { transform: scale(1.04); }

.recipe-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.recipe-card__body .chip {
    align-self: flex-start;
    margin-bottom: 10px;
}
.recipe-card__title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.recipe-card__title a { color: inherit; text-decoration: none; }
.recipe-card__title a:hover { text-decoration: underline; }
.recipe-card__meta {
    margin-top: auto;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--muted);
}
.recipe-card__meta-item { display: inline-flex; align-items: center; gap: 5px; }
.recipe-card__meta .meta-icon { width: 15px; height: 15px; }
.recipe-card__rating .srr-stars-display .srr-star { font-size: 20px; line-height: 1; }
.recipe-card__votes { margin-left: 3px; }
.recipe-card__match {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f0e8;
    color: #2f523a;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}
.recipe-card__match-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #d0e4d3;
    z-index: 0;
    transition: width 0.3s ease;
}
.recipe-card__match::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #d0e4d3;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
}
.recipe-card__match-text {
    position: relative;
    z-index: 2;
}
.recipe-card--flip .recipe-card__rating { margin-top: auto; }

.recipe-card__save,
.recipe-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.recipe-card__save:hover,
.recipe-card__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.recipe-card__save svg { width: 16px; height: 16px; }
.recipe-card__save.is-bookmarked { background: var(--accent); border-color: var(--accent); color: #fff; }
.recipe-card__save.is-bookmarked svg { fill: currentColor; }

/* match badge for fridge results (green circular progress ring) */
.recipe-card__match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid var(--line);
}
.recipe-card__match-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.recipe-card__match-ring circle {
    fill: none;
    stroke-width: 3;
}
.recipe-card__match-ring-bg { stroke: var(--line); }
.recipe-card__match-ring-progress {
    stroke: #4caf50;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
}
.recipe-card__match-text {
    position: relative;
    z-index: 1;
}

/* fridge have/need ingredient lists */
.recipe-card__footer {
    margin-top: auto;
}
.recipe-card__ingredients {
    margin-bottom: 8px;
}
.recipe-card__ingredients-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.recipe-card__ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.recipe-card__ingredient-pill {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    background: var(--bg-soft);
    color: var(--ink);
}
.recipe-card__ingredient-pill--hidden {
    display: none;
}
.recipe-card__ingredient-pill--more {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.recipe-card__ingredient-pill--more:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.recipe-card__ingredients--have .recipe-card__ingredient-pill:not(.recipe-card__ingredient-pill--more) {
    background: #e8f0e8;
    color: #2f523a;
}
.recipe-card__ingredients--need .recipe-card__ingredient-pill:not(.recipe-card__ingredient-pill--more) {
    background: #fdeee8;
    color: #8c2e1f;
}

/* large recipe card variant */
.recipe-card--large .recipe-card__media { aspect-ratio: 16 / 10; }
.recipe-card--large .recipe-card__title { font-size: 24px; }

/* small recipe card variant */
.recipe-card--small .recipe-card__title { font-size: 16px; }

/* star display from plugin */
.srr-stars-display { display: inline-flex; gap: 1px; font-size: 14px; }
body:not(.dark) .srr-stars-display .srr-star,
body:not(.dark) .srr-stars-display .srr-star.half::before { color: #f5a623; }
body:not(.dark) .srr-stars-display .srr-star.empty { color: #555; }
body.dark .srr-stars-display .srr-star,
body.dark .srr-stars-display .srr-star.half::before { color: #f5a623; }
body.dark .srr-stars-display .srr-star.empty { color: #999; }

/* ============ FLIP RECIPE CARD ============ */
.recipe-card--flip {
    display: flex;
    flex-direction: column;
    perspective: 1100px;
    cursor: pointer;
}
.recipe-card--flip .recipe-card__inner {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.recipe-card--flip.is-flipped .recipe-card__inner { transform: rotateY(180deg); }
.recipe-card--flip .recipe-card__front,
.recipe-card--flip .recipe-card__back {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.recipe-card--flip .recipe-card__back {
    transform: rotateY(180deg);
    padding: 18px;
    justify-content: center;
}
.recipe-card--flip .recipe-card__back-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.recipe-card--flip .recipe-card__details {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    color: var(--ink-soft);
    font-size: 14px;
}
.recipe-card--flip .recipe-card__details li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.recipe-card--flip .recipe-card__details .meta-icon { width: 16px; height: 16px; color: var(--muted); }

.recipe-card--flip .recipe-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.recipe-card--flip .recipe-card__btn:hover { background: var(--ink); color: #fff; }

/* ============ EMBEDDED RECIPE CARD (inside articles) ============ */
.recipe-card--embed {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 16px;
    margin: 28px 0;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}
.recipe-card--embed__media {
    flex: 0 0 150px;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1 / 1;
}
.recipe-card--embed__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.recipe-card--embed:hover .recipe-card--embed__media img { transform: scale(1.03); }
.recipe-card--embed__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.recipe-card--embed__category {
    align-self: flex-start;
    margin-bottom: 8px;
    text-decoration: none;
}
.recipe-card--embed__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.recipe-card--embed__title a { text-decoration: none; }
.recipe-card--embed__title a:hover { text-decoration: underline; }
.recipe-card--embed__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--ink-soft);
}
.recipe-card--embed__detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.recipe-card--embed__detail svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--muted);
}
.recipe-card--embed__detail .srr-stars-display { font-size: 13px; }
.recipe-card--embed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.recipe-card--embed__btn,
.recipe-card--embed__save {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.recipe-card--embed__btn:hover,
.recipe-card--embed__save:hover { background: var(--ink); color: #fff; }
.recipe-card--embed__save.is-bookmarked { background: var(--accent); border-color: var(--accent); color: #fff; }
.recipe-card--embed__save svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
    .recipe-card--embed {
        flex-direction: column;
        gap: 14px;
    }
    .recipe-card--embed__media {
        flex: auto;
        max-width: none;
        width: 100%;
        aspect-ratio: 16 / 10;
    }
    .recipe-card--embed__title { font-size: 17px; }
}

/* ============ ARTICLE CARD ============ */
.article-card { display: flex; flex-direction: column; }
.article-card__media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    margin-bottom: 12px;
    position: relative;
}
.article-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__body .chip {
    align-self: flex-start;
    margin: 0 0 8px;
}
.article-card__title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.article-card__title a:hover { text-decoration: underline; }
.article-card__excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
.article-card__meta {
    font-size: 13px;
    color: var(--muted);
}

/* horizontal article layout */
.article-card--horizontal {
    flex-direction: row;
    gap: 18px;
}
.article-card--horizontal .article-card__media {
    flex: 0 0 38%;
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
}
.article-card--horizontal .article-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 600px) {
    .article-card--horizontal { flex-direction: column; }
    .article-card--horizontal .article-card__media { flex: auto; aspect-ratio: 16 / 10; }
}

/* mixed 2 + 3 article layout */
.articles-mix {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 20px;
}
.articles-mix .article-card--large { grid-column: span 3; }
.articles-mix .article-card--compact { grid-column: span 2; }
.articles-mix .article-card--large .article-card__title { font-size: 22px; }
.articles-mix .article-card--compact .article-card__title { font-size: 17px; }
@media (max-width: 900px) {
    .articles-mix { grid-template-columns: repeat(2, 1fr); }
    .articles-mix .article-card--large,
    .articles-mix .article-card--compact { grid-column: span 1; }
    .articles-mix .article-card--large .article-card__title,
    .articles-mix .article-card--compact .article-card__title { font-size: 18px; }
}
@media (max-width: 600px) {
    .articles-mix { grid-template-columns: 1fr; }
}

/* ============ ENTRY META / BYLINE / AUTHOR BOX ============ */
.recipe-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 18px 0;
    font-size: 14px;
    color: var(--ink-soft);
}
.byline-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.byline-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: none;
}
.byline-icon svg { width: 100%; height: 100%; }
.byline-label {
    font-weight: 600;
    color: var(--ink);
}
.byline-item a { font-weight: 600; }
.byline-item a:hover { text-decoration: underline; }

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 36px 0;
    padding: 18px;
    background: var(--bg-soft);
    border-radius: 8px;
}
.author-box img,
.author-box .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.author-box__info { display: flex; flex-direction: column; gap: 2px; }
.author-box__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}
.author-box__name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.author-box__name a:hover { text-decoration: underline; }
.author-box__bio {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .recipe-byline { gap: 12px 18px; }
    .author-box { padding: 14px; }
    .author-box img,
    .author-box .avatar { width: 44px; height: 44px; }
    .author-box__name { font-size: 16px; }
}

/* ============ INGREDIENT CARD ============ */
.ingredient-card {
    text-align: center;
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 14px 10px;
}
.ingredient-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ingredient-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ingredient-card:hover .ingredient-card__media { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.ingredient-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.ingredient-card:not(.ingredient-card--archive) .ingredient-card__title a:hover { color: var(--accent); }

/* archive ingredient card */
.ingredient-card--archive {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ingredient-card--archive:hover {
    background: var(--bg);
    border-color: #bbb;
    box-shadow: none;
}
.ingredient-card--archive .ingredient-card__media--archive:hover {
    transform: none;
    box-shadow: none;
}
.ingredient-card--archive .ingredient-card__media--archive {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius) var(--radius) 0 0;
    border: none;
    margin-bottom: 0;
    background: var(--bg-soft);
}
.ingredient-card--archive .ingredient-card__media--archive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ingredient-card--archive .ingredient-card__body--archive {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ingredient-card--archive .ingredient-card__body-main {
    flex: 1;
}
.ingredient-card--archive .ingredient-card__title--archive {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.ingredient-card--archive .ingredient-card__title--archive a { color: inherit; text-decoration: none; }
.ingredient-card--archive .ingredient-card__title--archive a:hover { color: var(--ink); text-decoration: none; }
.ingredient-card--archive .ingredient-card__price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: fit-content;
    margin: 0 0 16px auto;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--bg-soft);
    line-height: 1.2;
}
.ingredient-card--archive .ingredient-card__price-main {
    font-size: 16px;
    font-weight: 800;
    color: #c62828;
    letter-spacing: -0.01em;
}
.ingredient-card--archive .ingredient-card__price-unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.3;
}
.ingredient-card--archive .ingredient-card__recipes {
    margin: 0 0 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}
.ingredient-card--archive .ingredient-card__recipes--tag {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}
.ingredient-card--archive .ingredient-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ingredient-card--archive .ingredient-card__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Cards without a featured image */
.recipe-card__body:first-child,
.recipe-card--flip .recipe-card__front .recipe-card__body:first-child,
.ingredient-card--archive .ingredient-card__body--archive:first-child {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.article-card__body:first-child { flex: 1; }

/* ============ CONTENT IMAGE CAPTIONS ============ */
.wp-block-image figcaption,
.wp-caption-text,
figcaption.wp-caption-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}
.wp-block-image figcaption em,
.wp-block-image figcaption i,
.wp-caption-text em,
.wp-caption-text i {
    font-style: normal;
}

/* ingredient archive grid + alphabet filter */
.ingredient-archive-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 16px;
}
/* ingredient archive controls */
.ingredient-archive-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.archive-header__top--ingredients {
    gap: 16px 24px;
}
.archive-header__top--ingredients .ingredient-search {
    flex: 0 1 420px;
    max-width: 420px;
    margin-left: auto;
}
.ingredient-search {
    display: flex;
    gap: 8px;
    max-width: 420px;
}
.ingredient-search__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
}
.ingredient-search__input:focus {
    outline: none;
    border-color: var(--ink-soft);
}
.ingredient-search__btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ingredient-search__btn:hover { background: #000; border-color: #000; }

/* alphabet filter */
.ingredient-alphabet {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    user-select: none;
    -webkit-user-select: none;
    padding-bottom: 4px;
    cursor: grab;
}
.ingredient-alphabet:active,
.ingredient-alphabet.is-dragging {
    cursor: grabbing;
}
.ingredient-alphabet::-webkit-scrollbar { display: none; }
.ingredient-alphabet__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: var(--bg-soft);
    color: var(--ink);
    border: 1px solid var(--line);
    user-select: none;
    -webkit-user-select: none;
}
.ingredient-alphabet__letter:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.ingredient-alphabet__letter.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

@media (max-width: 1100px) {
    .ingredient-archive-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .ingredient-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
}
@media (max-width: 640px) {
    .archive-header__top--ingredients .ingredient-search {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }
    .ingredient-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
    .ingredient-card--archive .ingredient-card__body--archive { padding: 10px; }
    .ingredient-card--archive .ingredient-card__title--archive { font-size: 15px; margin-bottom: 4px; }
    .ingredient-card--archive .ingredient-card__recipes--tag { font-size: 12px; margin-bottom: 14px; }
    .ingredient-card--archive .ingredient-card__price-tag { padding: 4px 8px; margin-bottom: 12px; border-radius: 6px; }
    .ingredient-card--archive .ingredient-card__price-main { font-size: 14px; }
    .ingredient-card--archive .ingredient-card__price-unit { font-size: 10px; }
    .ingredient-card--archive .ingredient-card__btn { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 5px; }
    .ingredient-alphabet { gap: 6px; }
    .ingredient-alphabet__letter { min-width: 28px; height: 28px; padding: 0 6px; font-size: 12px; border-radius: 6px; }
}
@media (max-width: 400px) {
    .ingredient-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ INGREDIENTS CAROUSEL ============ */
.ingredients-carousel { display: block; }
.ingredients-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ingredients-carousel__header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.ingredients-carousel__arrows { display: flex; gap: 8px; }
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .ingredient-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
}
.carousel-track--ingredient-archive .ingredient-card--archive {
    flex: 0 0 calc((100% - 64px) / 5);
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .carousel-track--ingredient-archive .ingredient-card--archive {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}
.carousel-arrow {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f0c020;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,0.08);
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.carousel-arrow:hover { opacity: 0.85; }
.carousel-arrow[aria-disabled="true"],
.carousel-arrow:disabled {
    background: #e8e8e8;
    color: #555;
    border-color: rgba(0,0,0,0.06);
    opacity: 0.8;
    cursor: default;
    pointer-events: none;
}

/* ============ RECIPES CAROUSEL ============ */
.recipes-carousel { display: block; }
.recipes-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.recipes-carousel__header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.recipes-carousel__arrows { display: flex; gap: 8px; }
.recipes-carousel .carousel-track .recipe-card--flip {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* ============ FRIDGE / INGREDIENT FINDER ============ */
.fridge-search {
    padding: 48px 0 40px;
    margin: 24px 0;
    background: var(--bg-soft);
}
.fridge-search__intro {
    text-align: center;
    margin-bottom: 24px;
}
.fridge-search__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.fridge-search__subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
}
.fridge-search__page-heading {
    margin-bottom: 24px;
}
.fridge-search__page-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.fridge-search__page-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
}

/* Flat card — no visible box */
.fridge-search__card {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Single combined field with tags + input */
.fridge-search__field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.fridge-search__autocomplete {
    position: relative;
    flex: 1;
}
.fridge-search__selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fridge-search__selected:focus-within {
    border-color: var(--ink-soft);
}
.fridge-search__placeholder {
    font-size: 14px;
    color: var(--muted);
}
.fridge-search__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--bg-soft);
    color: var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.fridge-search__tag-remove {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.fridge-search__tag-remove:hover {
    background: var(--accent);
    color: var(--ink);
}
.fridge-search__input {
    flex: 1 1 100%;
    min-width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    outline: none;
}
.fridge-search__suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-height: 200px;
    overflow-y: auto;
}
.fridge-search__suggestions[hidden] { display: none; }
.fridge-search__suggestions li {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.fridge-search__suggestions li:hover,
.fridge-search__suggestions li.is-active {
    background: var(--bg-soft);
}
.fridge-search__add-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fridge-search__add-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* Popular suggestions as plain chips */
.fridge-search__suggested {
    margin-top: 18px;
}
.fridge-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.fridge-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}
.fridge-search__chip:hover {
    color: var(--accent);
}
.fridge-search__chip-icon {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.fridge-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
    padding: 14px 32px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.fridge-search__submit:hover {
    background: var(--accent);
    color: var(--ink);
    transform: translateY(-1px);
}

.fridge-search--compact {
    padding: 24px 0 0;
    margin: 0 0 32px;
    background: transparent;
}
.fridge-search--compact .fridge-search__card {
    margin: 0;
    max-width: none;
}

.fridge-results {
    padding: 0 0 48px;
}
.fridge-results__header {
    margin-bottom: 18px;
}
.fridge-results__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.fridge-results__subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--ink-soft);
}
.fridge-results__tags {
    font-weight: 700;
    color: var(--ink);
}
.fridge-results__back {
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
}
.fridge-results__back:hover { color: var(--accent); }
.fridge-results__empty {
    padding: 28px;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}
.fridge-results__empty p { margin: 0 0 14px; }

@media (min-width: 601px) {
    .fridge-search__add-btn { display: none; }
}

@media (max-width: 600px) {
    .fridge-search { padding: 32px 0; }
    .fridge-search__title { font-size: 22px; }
    .fridge-search__field { gap: 8px; }
    .fridge-search__selected {
        min-height: 48px;
        padding: 8px 12px;
    }
    .fridge-search__add-btn {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}

/* ============ SECTION HEAD ("Tester" style) ============ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 18px;
}
.section-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-head .more {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-head .more::after {
    content: "›";
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0c020;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
}
.section-head .more:hover { color: var(--accent); }

/* ============ SINGLE RECIPE ============ */
.recipe-page { padding: 36px 0 0; }
body.page main.recipe-page { padding-top: 0; }
.related-section { padding-top: 48px; }
.recipe-related { padding-top: 48px; }
.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.recipe-main { min-width: 0; }
.recipe-article { max-width: none; margin: 0; padding: 0; }

.recipe-kicker { margin-bottom: 14px; }
.recipe-article h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.recipe-intro {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 18px;
}
.recipe-intro > p { margin: 0 0 12px; }
.recipe-intro > p:last-child { margin-bottom: 0; }

.author-byline {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.author-byline a { font-weight: 600; color: var(--ink); }

.recipe-meta-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 16px;
    padding: 18px 0;
    margin-bottom: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.recipe-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recipe-meta-bar .meta-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.recipe-meta-bar .meta-icon svg {
    width: 20px;
    height: 20px;
}
.recipe-meta-bar .meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.recipe-meta-bar .meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.recipe-meta-bar .meta-item strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.recipe-meta-rating .meta-icon svg { fill: #f5b041; stroke: #f5b041; }
.recipe-meta-votes {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.recipe-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
}
.recipe-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ingredient-hero-img {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.ingredient-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 0 24px;
}
.ingredient-google-source__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ingredient-google-source__btn:hover {
    border-color: var(--accent);
    background: var(--bg-soft);
    color: var(--accent);
}
.ingredient-google-source__icon {
    display: inline-flex;
    flex: 0 0 auto;
}
.ingredient-google-source__icon svg {
    width: 18px;
    height: 18px;
}
.recipe-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 32px;
}
.recipe-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.recipe-tool-btn:hover { background: var(--bg-soft); border-color: var(--ink); }
.recipe-tool-btn .tool-icon,
.recipe-tool-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.recipe-tool-btn .tool-icon--active { display: none; }
.recipe-tool-btn.is-active .tool-icon--default { display: none; }
.recipe-tool-btn.is-active .tool-icon--active { display: inline-flex; }
.recipe-tool-btn .tool-text-mobile { display: none; }
.recipe-tool-btn.is-bookmarked,
.recipe-tool-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.recipe-tool-btn.is-bookmarked svg,
.recipe-tool-btn--primary svg { fill: currentColor; }
.recipe-tool-btn--primary:hover { background: #000; border-color: #000; }
.receptai-bookmark-btn.is-bookmarked:hover,
.recipe-tools .receptai-bookmark-btn.is-bookmarked:hover,
.recipe-card__save.is-bookmarked:hover,
.recipe-card--embed__save.is-bookmarked:hover,
.recipe-tool-btn.is-bookmarked:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.recipe-tool-btn.wake-lock-toggle.is-active {
    background: #2a9d3c;
    border-color: #2a9d3c;
    color: var(--ink);
}
.recipe-tool-btn.wake-lock-toggle.is-active svg { fill: currentColor; }

@media (max-width: 768px) {
    body.single-recipe .recipe-tools { display: none; }
    body.single-recipe main.recipe-page { padding-bottom: 0; }
    body.single-recipe .recipe-related {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
    }
}

.recipe-content { font-size: 17px; line-height: 1.65; }
.recipe-content h2 { font-size: 26px; margin: 38px 0 16px; letter-spacing: -0.01em; }
.recipe-content p { margin: 0 0 16px; }

/* Ingredients utils: copy + servings */
.recipe-print-ingredients .ingredients-utils {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}
.recipe-print-ingredients .ingredients-util-btn,
.recipe-print-ingredients .servings-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.recipe-print-ingredients .ingredients-util-btn:hover,
.recipe-print-ingredients .servings-control:hover {
    background: var(--bg-soft);
    border-color: var(--ink);
}
.recipe-print-ingredients .ingredients-util-icon,
.recipe-print-ingredients .ingredients-util-icon svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.recipe-print-ingredients .servings-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.recipe-print-ingredients .servings-label .servings-label-text {
    display: none;
}
.recipe-print-ingredients .recipe-meta-servings-number {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    font-size: 15px;
}
.recipe-print-ingredients .servings-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.recipe-print-ingredients .servings-buttons button {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease;
}
.recipe-print-ingredients .servings-buttons button:hover { background: var(--line); }

/* Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.recipe-sidebar__widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.recipe-sidebar__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}
.recipe-sidebar__placeholder {
    height: 250px;
    background: var(--bg-soft);
    border-radius: 12px;
}
.recipe-sidebar__placeholder--small {
    height: 60px;
    margin-bottom: 10px;
}
.recipe-sidebar__placeholder--small:last-child { margin-bottom: 0; }

/* Ingredients */
.recipe-content .recipe-print-ingredients { margin: 40px 0; }
.recipe-content .recipe-ingredients-grid .recipes-heading,
.recipe-content .recipe-equipment-section .recipes-heading {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}
.recipe-content .ingredients-header .recipes-heading {
    font-size: 26px;
    border-bottom: 0;
    padding-bottom: 0;
}
.recipe-content .ingredients-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.recipe-content .recipe-ingredients-grid + .recipe-ingredients-grid,
.recipe-content .recipe-equipment-section {
    margin-top: 38px;
}
.recipe-content .ingredients-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}
.recipe-content .ingredient-view-toggle {
    display: inline-flex;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    background: var(--bg);
}
.recipe-content .ingredient-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.recipe-content .ingredient-view-toggle button.active,
.recipe-content .ingredient-view-toggle button:hover {
    background: var(--ink);
    color: #fff;
}
.recipe-content .ingredient-view-toggle button .tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.recipe-content .ingredient-view-toggle button .tool-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.recipe-content .ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredients-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recipe-content .ingredient-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.recipe-content .ingredient-card:hover {
    border-color: #bbb;
    box-shadow: none;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    box-shadow: none;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #bbb;
}
.recipe-content .ingredient-image {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    position: relative;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-image {
    aspect-ratio: 1 / 1;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    flex: 0 0 52px;
}
.recipe-content .ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recipe-content .ingredient-content { padding: 12px 12px 10px; margin-bottom: 8px; }
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content { padding: 0; margin-bottom: 0; }
.recipe-content .ingredient-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.recipe-content .ingredient-amount {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.recipe-content .ingredient-from-price,
.recipe-content .ingredient-from-price--list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}
.recipe-content .ingredient-from-price::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.recipe-content .ingredient-price-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f0b8;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: default;
}
.recipe-content .ingredient-card:hover .ingredient-price-badge {
    transform: none;
}
.recipe-content .ingredient-price-badge::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
    flex: 0 0 12px;
}

/* Grid view: show badge on image, hide list price */
.recipe-content .recipe-ingredients-grid:not(.ingredients-list-view) .ingredient-from-price--list {
    display: none;
}

/* List view: hide image badge, show list price */
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-price-badge {
    display: none;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    gap: 2px 16px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content .ingredient-name,
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content .ingredient-amount {
    grid-column: 1;
    min-width: 0;
    text-align: left;
    justify-self: start;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content .ingredient-amount {
    margin-top: 0;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-from-price--list {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
    margin-top: 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f0b8;
    color: var(--ink);
    border: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
    cursor: default;
    box-shadow: none;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-card:hover .ingredient-from-price--list {
    transform: none;
}
.recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-from-price--list::before {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 640px) {
    .recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content {
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        align-items: center;
    }
    .recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content .ingredient-name,
    .recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-content .ingredient-amount {
        grid-column: 1;
        justify-self: start;
    }
    .recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-from-price--list {
        grid-column: 2;
        grid-row: 1 / 3;
        justify-self: end;
        align-self: center;
    }
}

/* Ingredient note tooltip */
.recipe-content .ingredient-note-wrapper { position: absolute; top: 10px; right: 10px; z-index: 2; }
.recipe-content .ingredient-note-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    color: var(--muted);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* Steps */
.recipe-content .recipe-print-steps { margin: 36px 0; }
.recipe-content .recipe-steps-timeline { counter-reset: step; }
.recipe-content .recipe-step {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.recipe-content .recipe-step:last-child { border-bottom: 0; }
.recipe-content .step-header { margin-bottom: 10px; }
.recipe-content .step-title {
    font-size: 18px;
    font-weight: 800;
}
.recipe-content .step-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.recipe-content .step-action svg {
    width: 16px;
    height: 16px;
}
.recipe-content .step-action:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.recipe-content .recipe-step.completed .step-action {
    background: #2a9d3c;
    border-color: #2a9d3c;
    color: var(--ink);
    transform: scale(1.05);
}
.recipe-content .step-text { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.recipe-content .step-image { margin-top: 14px; }
.recipe-content .step-image img {
    border-radius: var(--radius);
    max-width: 360px;
}

/* Nutrition */
.recipe-content .recipe-nutrition-advanced {
    margin: 36px 0;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-soft);
    box-shadow: none;
}
.recipe-content .nutrition-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}
.recipe-content .nutrition-title span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.recipe-content .recipe-nutrition-advanced .nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.recipe-content .recipe-nutrition-advanced .nutrition-item {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
}
.recipe-content .recipe-nutrition-advanced .nutrition-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
}
.recipe-content .recipe-nutrition-advanced .nutrition-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 4px;
}
.recipe-content .recipe-nutrition-advanced .nutrition-disclaimer {
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 14px;
}

/* Editor note */
.recipe-content .recipe-editor-note {
    margin: 36px 0;
    padding: 22px 24px;
    background: #fff9ed;
    border: 1px solid #f3d9a8;
    border-left: 4px solid #e9a23b;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.recipe-content .recipe-editor-note__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.recipe-content .recipe-editor-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #e9a23b;
}
.recipe-content .recipe-editor-note__icon svg {
    width: 100%;
    height: 100%;
}
.recipe-content .recipe-editor-note__body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.recipe-content .recipe-editor-note__body > :first-child { margin-top: 0; }
.recipe-content .recipe-editor-note__body > :last-child { margin-bottom: 0; }

/* Taxonomies */
.recipe-taxonomies,
.recipe-content .recipe-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
}
.recipe-taxonomies__label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.recipe-tax,
.recipe-content .recipe-tax {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.recipe-tax::before,
.recipe-content .recipe-tax::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2H2v10l10 10 10-10L12 2Z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2H2v10l10 10 10-10L12 2Z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.recipe-tax:hover,
.recipe-content .recipe-tax:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Rating form after recipe */
.recipe-rating-form {
    margin: 36px 0;
}
.recipe-rating-form .srr-rating-inner {
    background: var(--bg-soft);
    color: var(--ink);
    border: 0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: none;
}
.recipe-rating-form .srr-rating-inner::before { display: none; }
.recipe-rating-form .srr-rating-inner .recipes-heading {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px;
}
.recipe-rating-form .srr-stars {
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.recipe-rating-form .srr-stars .srr-star {
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: color 0.15s ease, transform 0.15s ease;
}
body:not(.dark) .recipe-rating-form .srr-stars .srr-star:hover,
body:not(.dark) .recipe-rating-form .srr-stars .srr-star.is-active,
body:not(.dark) .recipe-rating-form .srr-stars .srr-star.voted {
    color: #f5a623 !important;
}
.recipe-rating-form .srr-rating-info { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.recipe-rating-form .srr-rating-info strong { color: var(--ink); }
.recipe-rating-form .srr-rating-cta {
    display: inline-flex;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.recipe-rating-form .srr-rating-cta:hover { background: #000; transform: none; }

/* ============ INGREDIENT PAGE ============ */
.ingredient-page { padding: 24px 0 40px; }
.ingredient-header {
    margin-bottom: 24px;
}
.ingredient-header__title {
    margin: 0 0 14px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.ingredient-header__description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.ingredient-header__description p:last-child { margin-bottom: 0; }

.ingredient-section-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ingredient-content .ingredient-section-title {
    margin: 0 0 20px;
}

.ingredient-content .recipe-card__title {
    margin: 0 0 10px;
}

.ingredient-block.ingredient-nutrition {
    margin: 24px 0;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-soft);
    box-shadow: none;
}
.ingredient-block.ingredient-nutrition .nutrition-title {
    font-size: 22px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 18px;
}
.ingredient-block.ingredient-nutrition .nutrition-title span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.ingredient-block.ingredient-nutrition .nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ingredient-block.ingredient-nutrition .nutrition-item {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
}
.ingredient-block.ingredient-nutrition .nutrition-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
}
.ingredient-block.ingredient-nutrition .nutrition-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 4px;
}

/* ============ DISCOUNTS SLIDER ============ */
.ingredient-prices { margin-bottom: 28px; }

.discounts-slider__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0;
}

.ingredient-content .discounts-slider__header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ingredient-block--recipe { margin-bottom: 24px; }
.ingredient-block--article {
    width: 100%;
    margin-bottom: 24px;
}
.ingredient-article > section:last-child { margin-bottom: 0; }

/* ============ PRICE LIST ============ */
.price-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.price-row__shop {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 50px;
    max-width: 100px;
}

.price-row__logo {
    max-width: 90px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.price-row__shop-name {
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.price-row__main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0 8px;
    line-height: 1.3;
}

.price-row__name {
    display: inline;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    text-decoration: none;
}
.price-row__name:hover {
    text-decoration: underline;
}

.price-row__size {
    display: inline;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.price-row__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    min-width: 80px;
    text-align: right;
}

.price-row__original {
    font-size: 12px;
    color: #757575;
    text-decoration: line-through;
}

.price-row__final {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    color: #d9381e;
}

.price-row__action {
    flex: 0 0 auto;
}

.price-row__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f5b041;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.price-row__btn:hover {
    background: #e0a030;
}
.price-row__btn svg {
    width: 13px;
    height: 13px;
}
.price-row__btn-text--mobile {
    display: none;
}

@media (max-width: 700px) {
    .price-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "shop main action"
            "shop price price";
        gap: 6px 12px;
        padding: 12px 0;
        align-items: start;
    }
    .price-row__shop {
        grid-area: shop;
        align-self: start;
    }
    .price-row__main {
        grid-area: main;
        min-width: 0;
    }
    .price-row__price {
        grid-area: price;
        justify-content: flex-start;
        text-align: left;
    }
    .price-row__action {
        grid-area: action;
        align-self: start;
    }
    .price-row__btn-text--desktop {
        display: none;
    }
    .price-row__btn-text--mobile {
        display: inline;
    }
}

body.dark .price-list { border-top-color: #2a2a2a; }
body.dark .price-row { border-bottom-color: #2a2a2a; }
body.dark .price-row__shop-name { color: #999; }
body.dark .price-row__name { color: #e8e8e8; }
body.dark .price-row__size { color: #999; }
body.dark .price-row__original { color: #888; }
body.dark .price-row__btn { background: #f5b041; color: #111; }
body.dark .price-row__btn:hover { background: #e0a030; }

.ingredient-recipes__empty {
    padding: 24px;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.ingredient-posts { margin-bottom: 48px; }

.ingredient-faq { margin-bottom: 48px; }
.ingredient-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ingredient-faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
}
.ingredient-faq__item[open] .ingredient-faq__icon {
    transform: rotate(45deg);
}
.ingredient-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.ingredient-faq__question::-webkit-details-marker { display: none; }
.ingredient-faq__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.2s ease;
}
.ingredient-faq__answer {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.ingredient-faq__answer p:last-child { margin-bottom: 0; }

.ingredient-content {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 24px;
}
.ingredient-content > * {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.ingredient-content > .ingredient-block {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.ingredient-content > .ingredient-block.ingredient-nutrition,
.ingredient-content > .ingredient-block.ingredient-prices,
.ingredient-article > .ingredient-block.ingredient-nutrition,
.ingredient-article > .ingredient-block.ingredient-prices {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.ingredient-faq {
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}
.ingredient-content > *:first-child { margin-top: 0; }
.ingredient-content h2 { font-size: 26px; margin: 24px 0; letter-spacing: -0.01em; }
.ingredient-content h3 { font-size: 21px; margin: 24px 0; }
.ingredient-content p { margin: 0 0 16px; }
.ingredient-content ul,
.ingredient-content ol { margin: 0 0 16px; padding-left: 24px; }
.ingredient-content img { border-radius: var(--radius); }
.ingredient-content figure { margin: 24px 0; }

.ingredient-toc {
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.ingredient-toc__title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.ingredient-toc__list {
    margin: 0;
    padding: 0 0 0 22px;
    list-style: decimal;
}
.ingredient-toc__item {
    margin: 0 0 8px;
    padding: 0;
    color: var(--ink);
}
.ingredient-toc__item:last-child {
    margin-bottom: 0;
}
.ingredient-toc__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.2s ease;
}
.ingredient-toc__link:hover {
    text-decoration: underline;
}

.ingredient-block .recipe-card,
.ingredient-block .article-card { height: 100%; }

@media (max-width: 1100px) {
    .ingredient-header__title { font-size: 30px; }
    .ingredient-block.ingredient-nutrition .nutrition-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ingredient-header { margin-bottom: 24px; }
    .ingredient-header__title { font-size: 26px; }
    .ingredient-block.ingredient-nutrition { padding: 18px; }
    .ingredient-block.ingredient-nutrition .nutrition-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ingredient-block.ingredient-nutrition .nutrition-number { font-size: 20px; }
    .price-card__final { font-size: 18px; }
    .ingredient-faq__question { padding: 16px; font-size: 15px; }
    .ingredient-faq__answer { padding: 0 16px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
}

/* Comments */
.comments-area { margin-top: 40px; }
.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.comments-area .comments-title,
.comment-reply-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}
.comment-reply-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 22px;
}
.comment-reply-title #cancel-comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}
.comment-reply-title #cancel-comment-reply-link:hover { color: var(--ink); text-decoration: underline; }
#respond {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-soft);
    border: 0;
    border-radius: 12px;
}
#respond .comment-reply-title {
    margin-bottom: 18px;
    font-size: 22px;
}
#respond .comment-notes,
#respond .logged-in-as {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
}
#respond .comment-notes a,
#respond .logged-in-as a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
#respond .comment-notes a:hover,
#respond .logged-in-as a:hover { text-decoration: underline; }
.comment #respond {
    margin: 12px 0 0;
    margin-left: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}
.comment #respond .comment-reply-title { display: none; }
.comments-count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.comment-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.comment-list .comment { margin: 0; }

/* Default WordPress comment fallback */
.comment-body {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: transparent;
    border-radius: 0;
}
.comment-list > .comment:first-child > .comment-body {
    border-top: 0;
}
.comment-body .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 44px;
    background: var(--bg-soft);
}
.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 14px;
}
.comment-author .fn {
    font-weight: 800;
    color: var(--ink);
    font-style: normal;
    font-size: 16px;
}
.comment-author .says { display: none; }
.comment-metadata {
    font-size: 13px;
    color: var(--muted);
}
.comment-metadata a {
    color: var(--muted);
    text-decoration: none;
}
.comment-metadata a:hover { color: var(--ink); text-decoration: underline; }
.comment-content p { margin: 0 0 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-flex;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}
.comment-reply-link:hover { color: var(--ink); }

/* Custom comments plugin cards */
.my-comment { 
    list-style: none;
    padding: 0;
    border-bottom: 0;
}
.my-comment-card {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
}
.my-comment-avatar {
    flex: 0 0 36px;
}
.my-comment-avatar img,
.my-comment-avatar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
}
.my-comment-content { flex: 1; min-width: 0; }
.my-comment-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 1px;
}
.my-comment-author {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}
.my-comment-meta-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    line-height: 1.35;
}
.my-comment-meta-line > * {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.my-comment-reply-to {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.my-comment-date {
    font-size: 13px;
    line-height: 1.35;
}
.my-comment-reply-arrow {
    color: var(--muted);
    margin-right: 4px;
}
.my-comment-date a {
    color: var(--muted);
    text-decoration: none;
}
.my-comment-date a:hover { color: var(--ink); text-decoration: underline; }
.my-comment-text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-soft);
    word-wrap: break-word;
}
.my-comment-text p { margin: 0 0 8px; }
.my-comment-text p:last-child { margin-bottom: 0; }
.my-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap;
}
.my-reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.my-reply-btn:hover { background: var(--ink); color: #fff; }
.my-comment-reactions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.my-comment-reactions .reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.my-comment-reactions .reaction-btn:hover { color: var(--ink); background: var(--bg-soft); border-color: var(--ink); }
.my-comment-reactions .reaction-btn[data-type="like"].active { background: var(--bg); border-color: #2a9d3c; color: #2a9d3c; }
.my-comment-reactions .reaction-btn[data-type="love"].active { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.my-comment-reactions .reaction-btn i { display: none; }
.my-comment-reactions .reaction-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
}
.my-comment-reactions .reaction-btn[data-type="like"]::before {
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%2010v12%27/%3E%3Cpath%20d%3D%27M15%205.88%2014%2010h5.83a2%202%200%200%201%201.92%202.56l-2.33%208A2%202%200%200%201%2017.5%2022H4a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2.83L12%202.76a2%202%200%200%201%203-2.2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%2010v12%27/%3E%3Cpath%20d%3D%27M15%205.88%2014%2010h5.83a2%202%200%200%201%201.92%202.56l-2.33%208A2%202%200%200%201%2017.5%2022H4a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2.83L12%202.76a2%202%200%200%201%203-2.2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
}
.my-comment-reactions .reaction-btn[data-type="love"]::before {
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%2014V2%27/%3E%3Cpath%20d%3D%27M9%2018.12%2010%2014H4.17a2%202%200%200%201-1.92-2.56l2.33-8A2%202%200%200%201%206.5%202H20a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202h-2.83L12%2021.24a2%202%200%200%201-3%202.2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%2014V2%27/%3E%3Cpath%20d%3D%27M9%2018.12%2010%2014H4.17a2%202%200%200%201-1.92-2.56l2.33-8A2%202%200%200%201%206.5%202H20a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202h-2.83L12%2021.24a2%202%200%200%201-3%202.2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
}
.my-comment-reactions .reaction-btn .count { min-width: 12px; }

/* Nested replies */
.children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    border: 0;
}
.children .my-comment-card {
    border-bottom: 1px solid var(--line);
}
.children .my-comment:last-child > .my-comment-card {
    border-bottom: 1px solid var(--line);
}

/* Last top-level comment ends the list with a bottom border */
.comment-list > .my-comment:last-child > .my-comment-card {
    border-bottom: 1px solid var(--line);
}

/* Comment images gallery */
.ci-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.ci-gallery .ci-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    background: var(--bg-soft);
}

/* Comment form */
.comment-form {
    display: grid;
    gap: 14px;
}
.comment-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 14px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="submit"] {
    display: inline-flex;
    justify-self: start;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: #000; }

/* Custom comments plugin overrides */
.comments-area .my-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.my-comment-form .comment-notes {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.my-comment-form .comment-notes a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.my-comment-form .comment-notes a:hover { text-decoration: underline; }
.my-reply-notice {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.55;
    color: var(--ink);
}
.my-reply-notice button {
    margin-left: auto;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.my-comment-form-row {
    display: flex;
    gap: 16px;
}
.my-comment-form-input {
    flex: 1;
}
.my-comment-form-input textarea,
.my-comment-form textarea#comment {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.55;
    resize: vertical;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.my-comment-form-input textarea:focus,
.my-comment-form textarea#comment:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--line);
}
.my-comment-image-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.my-comment-image-upload .upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.my-comment-image-upload .upload-btn:hover {
    background: var(--ink);
    color: #fff;
}
.my-comment-image-upload .upload-btn i { display: none; }
.my-comment-image-upload .upload-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2Z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2Z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.my-comment-image-upload input[type="file"] {
    display: none;
}
.my-comment-image-upload .upload-info {
    font-size: 12px;
    color: var(--muted);
}
.my-comment-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.my-comment-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
}
.my-comment-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}
.my-comment-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}
.my-comment-preview-remove:hover { background: #000; }
.my-comment-preview-remove::before {
    content: '\2715';
    font-size: 13px;
    line-height: 1;
}
.my-comment-form .my-comment-image-upload {
    margin-top: 0;
}
.my-comment-form .fields-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.my-comment-form .comment-form-author,
.my-comment-form .comment-form-email,
.my-comment-form .comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.my-comment-form .comment-form-url {
    grid-column: 1 / -1;
}
.my-comment-form label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.my-comment-form .comment-form-author,
.my-comment-form .comment-form-email,
.my-comment-form .comment-form-url {
    width: 100%;
}
.my-comment-form input[type="text"],
.my-comment-form input[type="email"],
.my-comment-form input[type="url"] {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
    transition: box-shadow 0.2s ease;
}
.my-comment-form input[type="text"]:focus,
.my-comment-form input[type="email"]:focus,
.my-comment-form input[type="url"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--line);
}
.my-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.my-comment-form .comment-form-cookies-consent input {
    margin-top: 2px;
}
.my-comment-form .form-submit {
    margin: 0;
    padding: 0;
}
.my-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.my-comment-submit:hover { background: #000; }
.my-comment-submit::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Mobile single recipe */
@media (max-width: 991px) {
    .recipe-layout { grid-template-columns: 1fr; gap: 32px; }
    .recipe-sidebar { display: none; }
    .recipe-content .ingredients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .recipe-page { padding: 24px 0 0; }
    .recipe-article h1 { font-size: clamp(26px, 7vw, 34px); }
    .recipe-meta-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 12px;
        padding: 16px 0;
    }
    .recipe-meta-bar .meta-icon { width: 34px; height: 34px; flex-basis: 34px; }
    .recipe-meta-bar .meta-icon svg { width: 18px; height: 18px; }
    .recipe-meta-bar .meta-label { font-size: 10px; }
    .recipe-meta-bar .meta-item strong { font-size: 14px; }
    .recipe-tools { gap: 8px; }
    .recipe-tool-btn { padding: 10px 8px; font-size: 12px; }
    .recipe-tool-btn .tool-icon,
    .recipe-tool-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
    .recipe-content .ingredients-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .recipe-content .ingredient-name { font-size: 15px; }
    .recipe-content .ingredient-amount { font-size: 13px; }
    .recipe-content .ingredient-price-badge { font-size: 11px; }
    .recipe-content .ingredient-from-price,
    .recipe-content .ingredient-from-price--list { font-size: 12px; }
    .recipe-content .recipe-nutrition-advanced .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-content .ingredient-view-toggle button .tool-icon svg {
        width: 16px;
        height: 16px;
    }
    .my-comment-form-row { flex-direction: column; }
    .comments-header { margin-bottom: 18px; }
    .comments-area .comments-title { font-size: 22px; }
    .my-comment-card,
    .comment-body {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .my-comment-avatar,
    .my-comment-avatar img,
    .my-comment-avatar .avatar,
    .comment-body .avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .my-comment-actions {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .my-comment-reactions {
        gap: 6px;
        margin-left: auto;
    }
    .my-comment-reactions .reaction-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    .ci-gallery .ci-thumb { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
    .recipe-content .ingredients-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .recipe-content .ingredient-image { aspect-ratio: 1 / 1; }
    .recipe-content .ingredient-content { padding: 8px 8px 6px; }
    .recipe-content .ingredient-name { font-size: 14px; }
    .recipe-content .ingredient-amount { font-size: 12px; margin-top: 2px; }
    .recipe-content .ingredient-price-badge { right: 6px; bottom: 6px; padding: 4px 6px; font-size: 10px; }
    .recipe-content .ingredient-from-price,
    .recipe-content .ingredient-from-price--list { font-size: 11px; }
}

/* ============ ARCHIVE ============ */
.archive-head { padding: 36px 0 6px; }
.archive-head h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.02em; }
.archive-head .archive-description { color: var(--muted); max-width: 640px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 36px 0;
}
.pagination .page-numbers {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ FOOTER ============ */
.site-footer {
    margin-top: 64px;
    color: var(--muted);
    font-size: 15px;
}
.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 48px 0;
    border-top: 1px solid var(--line);
}
.footer-app-purpose {
    flex: 0 0 260px;
    max-width: 300px;
}
.footer-app-purpose h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.footer-app-purpose p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}
.footer-app-purpose__more {
    margin-top: 10px;
}
.footer-app-purpose__more a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
}
.footer-app-purpose__more a:hover {
    color: var(--accent);
}
.footer-nav {
    flex: 1 1 auto;
}
.footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, auto));
    gap: 10px 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li { display: block; }
.footer-menu a {
    display: inline-block;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-menu a:hover { color: var(--accent); }
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    margin-left: auto;
}
.footer-social__icons {
    display: flex;
    gap: 10px;
}
.footer-social__icons a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.footer-social__icons a:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-soft);
}
.footer-social__icons a svg {
    width: 18px;
    height: 18px;
}
.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.footer-contact-btn:hover {
    border-color: var(--ink);
    background: var(--bg-soft);
}
.footer-contact-btn::after {
    content: '›';
    font-size: 18px;
    line-height: 1;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom .footer-brand {
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.footer-bottom .footer-brand span { color: var(--accent); }

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 32px;
        padding: 36px 0;
    }
    .footer-app-purpose {
        flex: 0 0 auto;
        max-width: none;
    }
    .footer-social { align-items: flex-start; margin-left: 0; }
    .footer-menu { grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
}

@media (max-width: 480px) {
    .footer-menu { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.app-info-content {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.7;
}
.app-info-content h2 {
    margin: 32px 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}
.app-info-content p {
    margin: 0 0 16px;
}
.app-info-content ul {
    margin: 0 0 16px 20px;
    padding: 0;
}
.app-info-content li {
    margin-bottom: 6px;
}

/* ============ MEGA MENU PANEL ============ */
.mega-panel {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 200;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 18px 0 0;
    background: var(--bg);
}
.mega-panel[hidden] { display: none; }
.admin-bar .mega-panel {
    top: 100px;
    max-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
}
@media (max-width: 782px) {
    .admin-bar .mega-panel {
        top: 114px;
        max-height: calc(100vh - 114px);
        height: calc(100vh - 114px);
    }
}
.mega-panel-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: stretch;
    width: min(var(--wrap), calc(100% - 40px));
    max-width: var(--wrap);
    margin: 0 auto;
}
.mega-nav { padding-right: 24px; }

.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-burger { display: none; }
.menu-toggle.is-open .icon-close { display: block; }
.menu-toggle.is-open {
    background: var(--bg-soft);
    color: var(--accent);
}
.menu-toggle.is-open:hover {
    background: var(--bg-soft);
    color: var(--accent);
}

.mega-menu { list-style: none; margin: 0; padding: 0; }
.mega-menu > li {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.mega-menu > li > a {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--ink);
}
.mega-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 24px;
}
.mega-menu .sub-menu a {
    font-size: 14.5px;
    color: var(--ink-soft);
}
.mega-menu .sub-menu a:hover { color: var(--accent); }

.mega-sidebar {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.mega-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.mega-user-info__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex: none;
}
.mega-user-info__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mega-user-info__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-user-info__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mega-user-info__link {
    font-size: 13px;
    color: var(--muted);
}
.mega-user-info__link:hover { color: var(--accent); }
.mega-sidebar-menu ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.mega-sidebar-menu li { margin-bottom: 12px; }
.mega-sidebar-menu a { font-size: 14.5px; color: var(--ink-soft); }
.mega-sidebar-menu a:hover { color: var(--accent); }
.mega-sidebar-group { padding-top: 18px; border-top: 1px solid var(--line); }
.mega-sidebar-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}
.theme-toggle--text {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    width: 100%;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.theme-toggle--text:hover { border-color: var(--ink); }
.theme-toggle--text .theme-label-dark,
body.dark .theme-toggle--text .theme-label-light { display: none; }
body.dark .theme-toggle--text .theme-label-dark { display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-search { display: none; }
    .menu-toggle { display: inline-grid; }
    .mega-panel { padding: 0 0 100px; height: calc(100vh - 68px); }
    .mega-panel-grid { grid-template-columns: 1fr; }
    .mega-nav { padding-right: 0; }
    .mega-menu .sub-menu { grid-template-columns: 1fr 1fr; }
    .mega-sidebar {
        display: block;
        margin-top: 24px;
        padding: 24px;
        background: var(--bg-soft);
        border-radius: var(--radius);
        border-top: 0;
    }
    .mega-sidebar-menu > ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 24px;
        margin-bottom: 24px;
    }
    .mega-sidebar-menu li { margin-bottom: 0; }
    .mega-sidebar-group { padding-top: 0; border-top: 0; }
    .mega-user-info {
        margin-bottom: 24px;
        padding-bottom: 0;
        border-bottom: 0;
    }
    html.mega-open,
    html.mega-open body {
        overflow: hidden;
    }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-ingredients { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
    .mega-panel { height: calc(100vh - 68px); }
}
@media (max-width: 600px) {
    .wrap { padding: 0 12px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
    .articles-mix { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
    .articles-mix .article-card--large,
    .articles-mix .article-card--compact { grid-column: span 1; }
    .articles-mix .article-card--large .article-card__title,
    .articles-mix .article-card--compact .article-card__title { font-size: 15px; }
    .grid-ingredients { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
    .hero-feature { aspect-ratio: 4 / 3; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .recipe-card__body { padding: 12px; }
    .recipe-card__title { font-size: 15px; }
    .recipe-card__meta { font-size: 12px; gap: 8px; }
    .recipe-card__rating .srr-stars-display .srr-star { font-size: 18px; line-height: 1; }
    .recipe-card__save,
    .recipe-card__btn { min-height: 44px; padding: 11px 14px; font-size: 14px; line-height: 1.2; }
}

/* ============ ARCHIVE PAGES ============ */
.archive-header {
    margin: 18px 0 22px;
}
.archive-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.archive-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Author archive card */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 24px 0 24px;
    padding: 24px;
    background: var(--bg-soft);
    border-radius: 12px;
}
.author-card__avatar img,
.author-card__avatar .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}
.author-card__info { flex: 1; min-width: 0; }
.author-card__name {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.author-card__bio {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.author-card__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}
.author-card__count {
    font-size: 14px;
    color: var(--ink-soft);
}
.author-card__count strong {
    color: var(--ink);
    font-weight: 800;
}
.author-section { margin-bottom: 24px; }
.author-section:last-of-type { margin-bottom: 0; }

@media (max-width: 640px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .author-card__counts { justify-content: center; }
}

.archive-header__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.archive-header__top .recipe-filters {
    position: static;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.archive-empty {
    padding: 40px 0;
    color: var(--muted);
    text-align: center;
}
.archive-recipe .pagination {
    margin: 28px 0 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.archive-recipe .pagination a,
.archive-recipe .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.archive-recipe .pagination .current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ============ MOBILE FILTER PILL ============ */
.mobile-filter-bar {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 10000;
    gap: 8px;
    width: 400px;
    max-width: calc(100% - 32px);
    margin: 0;
    background: #111;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    overflow: visible;
}
.mobile-filter-pill {
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 3px;
    padding: 10px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    overflow: visible;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}
.mobile-filter-pill:hover,
.mobile-filter-pill.is-open {
    background: transparent;
    color: #fff;
}
.mobile-filter-pill:focus-visible {
    outline: 2px solid rgba(255,255,255,0.3);
    outline-offset: 2px;
}
.mobile-filter-pill svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: rgba(255,255,255,0.85);
}
.mobile-filter-pill__icon,
.mobile-filter-pill__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
}
.mobile-filter-pill__label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.mobile-filter-pill__badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.mobile-recipe-actions .mobile-filter-pill.receptai-bookmark-btn.is-bookmarked {
    background: transparent;
    color: rgba(255,255,255,0.7);
}
.mobile-recipe-actions .mobile-filter-pill.is-bookmarked .mobile-filter-pill__icon svg { color: var(--accent); }
.mobile-recipe-actions .mobile-filter-pill.wake-lock-toggle.is-active .mobile-filter-pill__icon svg { color: #2a9d3c; }

/* screen reader only label */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============ RECIPE FILTERS ============ */
.recipe-filters {
    position: relative;
    z-index: 70;
}

/* Desktop trigger */
.recipe-filters__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.recipe-filters__trigger:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-1px);
}
.recipe-filters__trigger svg {
    width: 16px;
    height: 16px;
}
.recipe-filters__trigger-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

/* Desktop dropdown panel */
.recipe-filters__form {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.recipe-filters.is-open .recipe-filters__form {
    display: block;
}

.recipe-filters__sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "kategorija filtravimas"
        "rusiavimas rusiavimas";
    gap: 24px;
    align-items: flex-start;
}
.recipe-filters__section[data-filter-group="kategorija"] { grid-area: kategorija; }
.recipe-filters__section[data-filter-group="filtravimas"] { grid-area: filtravimas; }
.recipe-filters__section[data-filter-group="rusiavimas"] { grid-area: rusiavimas; }

.recipe-filters__section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.recipe-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.recipe-filters__header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.recipe-filters__close {
    display: none;
}
.recipe-filters__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.recipe-filters__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Checkbox chips */
.recipe-filters__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.recipe-filters__checkboxes--primary {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.recipe-filters__chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.recipe-filters__chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.recipe-filters__chip span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #f2f2f2;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}
.recipe-filters__chip:hover span {
    background: #e8e8e8;
}
.recipe-filters__chip input:checked + span,
.recipe-filters__chip input:checked:hover + span {
    background: var(--ink);
    color: #fff;
}
.recipe-filters__group-panel .recipe-filters__chip input:checked + span,
.recipe-filters__group-panel .recipe-filters__chip input:checked:hover + span {
    background: var(--ink);
    color: #fff;
}
.recipe-filters__chip input:focus-visible + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Filter groups (accordion) */
.recipe-filters__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recipe-filters__group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.15s ease;
}
.recipe-filters__group-toggle:hover {
    color: var(--accent);
}
.recipe-filters__group-toggle[aria-expanded="true"] {
    color: var(--ink);
}
.recipe-filters__group-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.recipe-filters__group-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}
.recipe-filters__group-chevron {
    display: inline-flex;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.recipe-filters__group-toggle[aria-expanded="true"] .recipe-filters__group-chevron {
    transform: rotate(90deg);
}
.recipe-filters__group-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0 6px;
}
.recipe-filters__group-panel.is-open {
    display: flex;
}
.recipe-filters__group-panel .recipe-filters__checkboxes {
    gap: 6px;
}
.recipe-filters__group-panel .recipe-filters__chip span {
    padding: 5px 10px;
    font-size: 12px;
    background: #f2f2f2;
}
.recipe-filters__group-panel .recipe-filters__chip:hover span {
    background: #e8e8e8;
}

/* Sorting row */
.recipe-filters__row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recipe-filters__row--sort {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.recipe-filters__group--orderby {
    grid-column: auto;
}
.recipe-filters__group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.recipe-filters__group input,
.recipe-filters__group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
}
.recipe-filters__group input:focus,
.recipe-filters__group select:focus {
    outline: none;
    border-color: var(--ink);
}
.recipe-filters__group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

/* Actions */
.recipe-filters__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.recipe-filters__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease;
}
.recipe-filters__actions button:hover {
    background: var(--accent);
    color: var(--ink);
}
.recipe-filters__reset {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: underline;
}
.recipe-filters__reset:hover { color: var(--ink); }

/* Backdrop (used on mobile) */
.recipe-filters__backdrop {
    display: none;
}

/* ============ LOAD MORE ============ */
.load-more-wrap {
    margin-top: 44px;
    margin-bottom: 12px;
    text-align: center;
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 220px;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.load-more-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.load-more-wrap.is-loading .load-more-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* ============ MOBILE FILTER PANEL ============ */
@media (max-width: 768px) {
    .mobile-filter-bar { display: flex; }
    .mobile-filter-pill { position: relative; display: inline-flex; }
    .archive-recipe { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0)); }
    .load-more-wrap { margin-top: 36px; }
}

@media (max-width: 768px) {
    .recipe-filters__trigger { display: none; }
    .recipe-filters {
        position: fixed;
        inset: 0;
        margin: 0;
        z-index: 9990;
        pointer-events: none;
    }
    .recipe-filters.is-open {
        pointer-events: auto;
    }
    .recipe-filters__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }
    .recipe-filters.is-open .recipe-filters__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .recipe-filters__form {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: block;
        width: 100%;
        height: 100%;
        background: var(--bg);
        border-radius: 0;
        border: 0;
        box-shadow: none;
        overflow: hidden;
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        padding: 0;
        margin: 0;
    }
    .recipe-filters.is-open .recipe-filters__form {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .recipe-filters__sections {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 90px;
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 0;
        grid-template-columns: none;
        grid-template-areas: none;
    }
    .recipe-filters__section {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        z-index: 1;
        overflow-y: auto;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .recipe-filters__section.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }
    .recipe-filters__header {
        position: sticky;
        top: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 16px 18px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        z-index: 10;
    }
    .recipe-filters__header h2 {
        font-size: 18px;
        font-weight: 800;
    }
    .recipe-filters__close {
        display: inline-grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: var(--bg-soft);
        color: var(--ink);
        font-size: 22px;
        cursor: pointer;
    }
    .recipe-filters__body {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        padding: 20px 18px 32px;
    }
    .recipe-filters__checkboxes--primary {
        max-height: none;
    }
    .recipe-filters__group,
    .recipe-filters__group input,
    .recipe-filters__group select {
        width: 100%;
        min-width: auto;
    }
    .recipe-filters__group {
        gap: 8px;
    }
    .recipe-filters__group-panel {
        display: none;
    }
    .recipe-filters__group-panel.is-open {
        display: flex;
    }
    .recipe-filters__row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .recipe-filters__row--sort {
        display: flex;
        grid-template-columns: none;
    }
    .recipe-filters__actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid var(--line);
        background: var(--bg);
    }
    .recipe-filters__actions button {
        width: 100%;
    }

    html.filters-open,
    body.filters-open {
        overflow: hidden;
        touch-action: none;
    }

    body.filters-open .mobile-filter-bar {
        display: none;
    }

    /* Account for WordPress admin bar on mobile */
    .admin-bar .recipe-filters {
        top: 46px;
    }
    .admin-bar .recipe-filters__backdrop {
        top: 46px;
    }
    .admin-bar .recipe-filters__form {
        top: 46px;
        height: calc(100% - 46px);
        height: calc(100dvh - 46px);
    }
}


/* ============ DARK MODE OVERRIDES ============ */

/* Tokens that don't flip cleanly */
body.dark .chip { background: #333; }
body.dark .chip--c0 { background: #5c3a46; color: #f3f3f3; }
body.dark .chip--c1 { background: #4a4160; color: #f3f3f3; }
body.dark .chip--c2 { background: #3a5a50; color: #f3f3f3; }
body.dark .chip--c3 { background: #5c4a36; color: #f3f3f3; }
body.dark .chip--c4 { background: #3a4a5a; color: #f3f3f3; }
body.dark .chip--c5 { background: #5c5636; color: #f3f3f3; }

/* Ingredient archive circles */
body.dark .ingredient-card__media { background: #1a1a1a; }
body.dark .ingredient-card:hover .ingredient-card__media {
    box-shadow: 0 8px 20px rgba(255,255,255,0.05);
}

/* Bookmark pill on cards */
body.dark .receptai-bookmark-btn:not(.is-bookmarked):not(.recipe-tools .receptai-bookmark-btn) {
    background: rgba(30,30,30,0.92);
    color: #f3f3f3;
}
body.dark .receptai-bookmark-btn.is-bookmarked,
body.dark .recipe-tools .receptai-bookmark-btn.is-bookmarked,
body.dark .recipe-card__save.is-bookmarked,
body.dark .recipe-card--embed__save.is-bookmarked,
body.dark .recipe-tool-btn.is-bookmarked { color: var(--ink); }

/* Match badge / match bar */
body.dark .recipe-card__match {
    background: #1f3a28;
    color: #a8d5b5;
}
body.dark .recipe-card__match-bar { background: #2a4a35; }
body.dark .recipe-card__match::after { border-color: #2a4a35; }
body.dark .recipe-card__match-badge {
    background: #1a1a1a;
    color: #f3f3f3;
}
body.dark .recipe-card__match-ring-progress { stroke: #5cdb7e; }

/* Empty stars */
body.dark .srr-stars-display .srr-star.empty { color: #555; }

/* Ingredient pills on fridge cards */
body.dark .recipe-card__ingredients--have .recipe-card__ingredient-pill:not(.recipe-card__ingredient-pill--more) {
    background: #1f3a28;
    color: #a8d5b5;
}
body.dark .recipe-card__ingredients--need .recipe-card__ingredient-pill:not(.recipe-card__ingredient-pill--more) {
    background: #3a1a16;
    color: #e89a8a;
}
body.dark .recipe-card__ingredient-pill--more,
body.dark .recipe-card__ingredient-pill--more:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
body.dark .recipe-card__ingredient-pill--more:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
}

/* Shadows on cards/elevated surfaces */
body.dark .recipe-card,
body.dark .recipe-card--flip .recipe-card__front,
body.dark .recipe-card--flip .recipe-card__back,
body.dark .recipe-card--embed {
    box-shadow: 0 4px 16px rgba(255,255,255,0.04);
}
body.dark .recipe-content .ingredient-card:hover,
body.dark .price-card:hover {
    box-shadow: 0 6px 18px rgba(255,255,255,0.06);
}
body.dark .recipe-content .ingredient-card:hover,
body.dark .ingredient-card--archive:hover { box-shadow: none; }
/* Inverted buttons where white text becomes invisible on light bg in dark mode */
body.dark .recipe-card__save:hover,
body.dark .recipe-card__btn:hover,
body.dark .recipe-card--flip .recipe-card__btn:hover,
body.dark .recipe-card--embed__btn:hover,
body.dark .recipe-card--embed__save:hover,
body.dark .recipe-tax:hover,
body.dark .my-comment-image-upload .upload-btn:hover,
body.dark .my-reply-notice button,
body.dark .my-comment-preview-remove,
body.dark .recipe-rating-form .srr-rating-cta,
body.dark .ingredient-alphabet__letter:hover,
body.dark .recipe-filters__trigger,
body.dark .recipe-filters__actions button,
body.dark .load-more-btn,
body.dark .pagination .current,
body.dark .archive-recipe .pagination .current,
body.dark .recipe-content .ingredient-view-toggle button.active,
body.dark .recipe-content .ingredient-view-toggle button:hover,
body.dark .recipe-filters__chip input:checked + span,
body.dark .recipe-filters__chip input:checked:hover + span,
body.dark .recipe-filters__group-panel .recipe-filters__chip input:checked + span,
body.dark .recipe-filters__group-panel .recipe-filters__chip input:checked:hover + span,
body.dark .fridge-search__submit,
body.dark .fridge-search__add-btn,
body.dark .ingredient-search__btn,
body.dark .ingredient-card--archive .ingredient-card__btn:hover,
body.dark .comment-form input[type="submit"],
body.dark .my-comment-submit {
    color: var(--bg);
}

/* Hover states that go to pure black */
body.dark .comment-form input[type="submit"]:hover,
body.dark .my-comment-submit:hover,
body.dark .recipe-rating-form .srr-rating-cta:hover,
body.dark .recipe-tool-btn--primary:hover,
body.dark .my-comment-preview-remove:hover,
body.dark .recipe-filters__trigger:hover,
body.dark .ingredient-search__btn:hover {
    background: #e8e8e8;
    color: var(--bg);
    border-color: #e8e8e8;
}
body.dark .recipe-tax,
body.dark .recipe-content .recipe-tax {
    background: #fff;
    border-color: #fff;
    color: var(--bg);
}
body.dark .recipe-tax:hover,
body.dark .recipe-content .recipe-tax:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Yellow accent elements */
body.dark .carousel-arrow,
body.dark .section-head .more::after {
    background: #f0c020;
    color: #111;
}
body.dark .carousel-arrow[aria-disabled="true"],
body.dark .carousel-arrow:disabled {
    background: #333;
    color: #777;
    box-shadow: none;
}
body.dark .recipe-print-ingredients .ingredients-price-per-serving {
    background: #3a3220;
    color: #f5b041;
}
body.dark .recipe-print-ingredients .ingredients-price-value {
    color: #f5b041;
}

/* Green active states */
body.dark .recipe-tool-btn.wake-lock-toggle.is-active,
body.dark .recipe-content .recipe-step.completed .step-action {
    background: #1f3a28;
    border-color: #2a4a35;
    color: #a8d5b5;
}

/* Ingredient price badges */
body.dark .recipe-content .ingredient-price-badge,
body.dark .recipe-content .recipe-ingredients-grid.ingredients-list-view .ingredient-from-price--list {
    background: #1a1a1a;
    color: #f3f3f3;
}

/* Editor note */
body.dark .recipe-content .recipe-editor-note {
    background: #3a3220;
    border-color: #5c4a2a;
    border-left-color: #f5b041;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
body.dark .recipe-content .recipe-editor-note__icon { color: #f5b041; }

/* Rating form stars */
body.dark .recipe-rating-form .srr-stars .srr-star { color: #555; }
body.dark .recipe-rating-form .srr-stars .srr-star:hover,
body.dark .recipe-rating-form .srr-stars .srr-star.is-active,
body.dark .recipe-rating-form .srr-stars .srr-star.voted {
    color: #f5b041;
}

/* Price cards */
body.dark .price-card__validity { color: #5cdb7e; }
body.dark .price-card__validity.is-urgent { color: #f5b041; }
body.dark .price-card__btn--primary:hover {
    background: #e8e8e8;
    color: var(--bg);
    border-color: #e8e8e8;
}

/* Filter chips */
body.dark .recipe-filters__chip span,
body.dark .recipe-filters__group-panel .recipe-filters__chip span {
    background: #2a2a2a;
    color: #d6d6d6;
}
body.dark .recipe-filters__chip:hover span,
body.dark .recipe-filters__group-panel .recipe-filters__chip:hover span {
    background: #333;
    color: #fff;
}
body.dark .recipe-filters__chip input:checked + span,
body.dark .recipe-filters__chip input:checked:hover + span,
body.dark .recipe-filters__group-panel .recipe-filters__chip input:checked + span,
body.dark .recipe-filters__group-panel .recipe-filters__chip input:checked:hover + span {
    background: #f3f3f3;
    color: #111;
}
body.dark .recipe-filters__chip input:focus-visible + span,
body.dark .recipe-filters__group-panel .recipe-filters__chip input:focus-visible + span {
    outline-color: #666;
}
body.dark .recipe-filters__group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Mobile filter bar */
body.dark .mobile-filter-bar { background: #000; }

/* Comment reactions */
body.dark .my-comment-reactions .reaction-btn[data-type="like"].active {
    background: #1f3a28;
    border-color: #2a4a35;
    color: #a8d5b5;
}
body.dark .my-comment-reactions .reaction-btn[data-type="love"].active {
    background: #3a1a16;
    border-color: #5c2a22;
    color: #e89a8a;
}

/* Header bookmark counter */
body.dark .bookmark-count {
    background: var(--ink);
    color: var(--bg);
}

/* Subtle shadows that disappear on dark backgrounds */
body.dark .recipe-meta-bar .meta-icon {
    box-shadow: 0 1px 3px rgba(255,255,255,0.04);
}
body.dark .user-dropdown {
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}


/* Embedded recipe cards in dark mode */
body.dark .recipe-card--embed {
    border: 1px solid #3a3a3a;
}

/* Comment section in dark mode */
body.dark .comments-count-badge {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #d6d6d6;
}
body.dark .my-comment {
    border-bottom-color: #2a2a2a;
}
body.dark .my-comment-card,
body.dark .children .my-comment-card,
body.dark .comment-list > .my-comment:last-child > .my-comment-card,
body.dark .comment #respond {
    border-color: #2a2a2a;
}

/* Comment reactions in dark mode */
body.dark .my-comment-reactions .reaction-btn {
    background: #222;
    border-color: #4a4a4a;
    color: #d6d6d6;
}
body.dark .my-comment-reactions .reaction-btn:hover {
    background: #2a2a2a;
    border-color: #5a5a5a;
    color: #fff;
}

/* Footer dark mode */
body.dark .footer-social__icons a {
    border-color: #2a2a2a;
    color: #999;
}
body.dark .footer-social__icons a:hover {
    border-color: #f3f3f3;
    color: #f3f3f3;
    background: #1a1a1a;
}
body.dark .footer-contact-btn {
    border-color: #2a2a2a;
    color: #f3f3f3;
}
body.dark .footer-contact-btn:hover {
    border-color: #f3f3f3;
    background: #1a1a1a;
}

/* ============ RECIPE SUBMISSION FORM LAYOUT ============ */
.rus-recipe-form-page .acf-form > .acf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
    order: 99;
}

/* Field order: title → times/servings → taxonomies → ingredients → steps → description → advice → image */
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="_post_title"] {
    order: 1;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"] {
    order: 2;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] {
    order: 3;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field.rus-ingredients-compact {
    order: 4;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field.rus-steps-compact {
    order: 5;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="short_description"] {
    order: 6;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="advice_preparation"] {
    order: 7;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_featured_image_upload"] {
    order: 8;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"],
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] {
    flex: 1 1 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"] .acf-label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"] .acf-label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"] .acf-label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"] .acf-label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"] .acf-label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] .acf-label {
    margin-bottom: 6px;
}

.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"] .acf-label label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"] .acf-label label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"] .acf-label label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"] .acf-label label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"] .acf-label label,
.rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] .acf-label label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"] .acf-label label,
body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"] .acf-label label,
body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"] .acf-label label,
body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"] .acf-label label,
body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"] .acf-label label,
body.dark .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] .acf-label label {
    color: #aaa;
}

@media (max-width: 600px) {
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="prep_time"],
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="cook_time"],
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="servings"],
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_difficulty"],
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_cuisine"],
    .rus-recipe-form-page .acf-form > .acf-fields > .acf-field[data-name="rus_tax_diet"] {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

