/*
Theme Name: Štrukani Pelin — Editorial Kitchen
Theme URI: https://www.strukanipelin.com
Author: Kristijan Marenić
Author URI: https://www.strukanipelin.com
Description: Uređena, responzivna WordPress tema za kulinarski magazin Štrukani Pelin. Tamni urednički izgled, fotografije u prvom planu, recepti s Cook Modeom i prepoznatljivi citati u vitičastim zagradama.
Version: 3.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strukani-pelin
*/

:root {
    color-scheme: dark;
    --sp-bg: #11130f;
    --sp-bg-soft: #151812;
    --sp-panel: #1b1f19;
    --sp-panel-raised: #22271f;
    --sp-panel-hover: #292f26;
    --sp-line: #343a30;
    --sp-line-soft: rgba(222, 224, 208, .12);
    --sp-text: #f2eee5;
    --sp-text-soft: #d0cbbf;
    --sp-muted: #9c9e90;
    --sp-muted-dark: #777d70;
    --sp-herb: #c4ce87;
    --sp-herb-deep: #8f9e56;
    --sp-lilac: #c8a4dc;
    --sp-lilac-deep: #80668f;
    --sp-terracotta: #d98c70;
    --sp-cream: #f1eadc;
    --sp-ink: #191b16;
    --sp-font-display: "DM Serif Display", Georgia, serif;
    --sp-font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sp-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --sp-radius: 3px;
    --sp-radius-lg: 7px;
    --sp-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    --sp-content: 1480px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    background: var(--sp-bg);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: var(--sp-font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body, button, input, select, textarea { font-family: var(--sp-font-body); }
button, input, select, textarea { font-size: inherit; }
button { color: inherit; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }

::selection { color: var(--sp-ink); background: var(--sp-herb); }

/* Links and accessible focus */
a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
a:hover { color: var(--sp-herb); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--sp-herb);
    outline-offset: 4px;
}

.sp-container { width: min(var(--sp-content), calc(100% - 64px)); margin-inline: auto; }
.screen-reader-text,
.screen-reader-text span,
.ui-helper-hidden-accessible {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.sp-skip-link {
    position: fixed;
    z-index: 3000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--sp-ink);
    background: var(--sp-herb);
    transform: translateY(-160%);
}
.sp-skip-link:focus { transform: translateY(0); }

/* Reading progress */
.sp-reading-progress {
    position: fixed;
    z-index: 1200;
    inset: 0 0 auto;
    height: 2px;
    background: transparent;
    pointer-events: none;
}
.sp-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--sp-herb);
    box-shadow: 0 0 12px rgba(196, 206, 135, .45);
}

/* Header */
.sp-header {
    position: sticky;
    z-index: 1100;
    top: 0;
    background: rgba(17, 19, 15, .94);
    border-bottom: 1px solid var(--sp-line-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body.admin-bar .sp-header { top: 32px; }
.sp-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.sp-brand { min-width: 200px; display: flex; flex-direction: column; align-items: flex-start; }
.sp-logo {
    display: inline-block;
    color: var(--sp-text);
    font-family: var(--sp-font-display);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.sp-logo em { color: var(--sp-herb); font-style: italic; }
.sp-logo:hover { color: var(--sp-text); }
.sp-tagline {
    margin-top: 7px;
    color: var(--sp-muted);
    font-family: var(--sp-font-mono);
    font-size: .62rem;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}
.sp-custom-logo img { width: auto; max-width: 260px; max-height: 58px; }
.sp-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.sp-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.sp-menu li { position: relative; }
.sp-menu a {
    display: inline-block;
    padding: 10px 0;
    color: var(--sp-text-soft);
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.sp-menu a:hover,
.sp-menu .current-menu-item > a,
.sp-menu .current-menu-ancestor > a { color: var(--sp-herb); }
.sp-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 10px 18px;
    list-style: none;
    background: var(--sp-panel);
    border: 1px solid var(--sp-line);
    box-shadow: var(--sp-shadow);
}
.sp-menu li:hover > .sub-menu,
.sp-menu li:focus-within > .sub-menu { display: block; }
.sp-menu .sub-menu a { display: block; padding: 9px 0; text-transform: none; letter-spacing: 0; }
.sp-btn-coffee {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    color: var(--sp-ink) !important;
    background: var(--sp-herb);
    border: 1px solid var(--sp-herb);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sp-btn-coffee:hover { color: var(--sp-ink) !important; background: #d8dfaa; border-color: #d8dfaa; transform: translateY(-1px); }
.sp-btn-coffee span { font-size: 1rem; }
.sp-mobile-toggle { display: none; }

/* Small editorial labels and metadata */
.sp-eyebrow {
    display: inline-block;
    color: var(--sp-herb);
    font-family: var(--sp-font-mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}
.sp-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--sp-muted);
    font-family: var(--sp-font-mono);
    font-size: .69rem;
    letter-spacing: .015em;
    line-height: 1.6;
}
.sp-meta-dot { color: var(--sp-muted-dark); }
.sp-category-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--sp-herb) !important;
    font-family: var(--sp-font-mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.4;
    text-transform: uppercase;
}
.sp-category-label:hover { color: var(--sp-text) !important; }
.sp-category-label--recipe { color: var(--sp-terracotta) !important; }

/* Homepage hero and two-column editorial layout */
.sp-front-page { padding-top: 34px; }
.sp-front-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 42px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--sp-line-soft);
}
.sp-featured-column { min-width: 0; }
.sp-section-kicker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}
.sp-kicker-line { flex: 1; height: 1px; background: var(--sp-line); }
.sp-kicker-note { color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .63rem; letter-spacing: .07em; text-transform: uppercase; }
.sp-feature-story { min-width: 0; }
.sp-feature-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sp-panel);
    border: 1px solid var(--sp-line);
    aspect-ratio: 16 / 9;
}
.sp-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
    filter: saturate(.88) contrast(1.02);
}
.sp-feature-image:hover img { transform: scale(1.025); filter: saturate(1.04) contrast(1.02); }
.sp-feature-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(7, 9, 6, .64), transparent);
    pointer-events: none;
}
.sp-feature-image-caption {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-family: var(--sp-font-mono);
    font-size: .64rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.sp-feature-content { max-width: 900px; padding: 25px 2px 0; }
.sp-feature-title {
    max-width: 930px;
    margin: 12px 0 13px;
    color: var(--sp-text);
    font-family: var(--sp-font-display);
    font-size: clamp(2.5rem, 4.6vw, 4.65rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
}
.sp-feature-title a:hover { color: var(--sp-herb); }
.sp-feature-excerpt {
    max-width: 760px;
    margin: 0;
    color: var(--sp-text-soft);
    font-size: 1.03rem;
    line-height: 1.75;
}
.sp-feature-quote {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 740px;
    margin: 25px 0 20px;
    padding: 0;
    color: var(--sp-lilac);
    font-family: var(--sp-font-display);
    font-size: 1.26rem;
    line-height: 1.42;
}
.sp-feature-quote span { color: var(--sp-lilac-deep); font-size: 2.5rem; line-height: .8; }
.sp-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 10px 0 7px;
    color: var(--sp-herb) !important;
    border-bottom: 1px solid var(--sp-herb-deep);
    font-family: var(--sp-font-mono);
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sp-feature-link span { transition: transform .2s ease; }
.sp-feature-link:hover span { transform: translateX(5px); }
.sp-empty-hero { padding: 100px 0; border-bottom: 1px solid var(--sp-line); }
.sp-empty-hero h1 { margin: 12px 0; font-family: var(--sp-font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 400; }
.sp-empty-hero p { color: var(--sp-text-soft); }

/* Sidebar stream */
.sp-sidebar-col { display: flex; flex-direction: column; gap: 31px; min-width: 0; padding-top: 4px; }
.sp-stream-box { background: var(--sp-bg-soft); border: 1px solid var(--sp-line); }
.sp-stream-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 19px 16px;
    border-bottom: 1px solid var(--sp-line);
}
.sp-stream-heading h2 { margin: 5px 0 0; font-family: var(--sp-font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.sp-stream-index { color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .62rem; letter-spacing: .08em; }
.sp-stream-list { margin: 0; padding: 0; list-style: none; counter-reset: stream; }
.sp-stream-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--sp-line-soft);
    counter-increment: stream;
}
.sp-stream-item:last-child { border-bottom: 0; }
.sp-stream-thumb { display: block; width: 82px; height: 72px; overflow: hidden; background: var(--sp-panel); }
.sp-stream-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sp-stream-thumb:hover img { transform: scale(1.06); }
.sp-stream-copy { min-width: 0; }
.sp-stream-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .58rem; line-height: 1.5; text-transform: uppercase; }
.sp-stream-meta span:first-child { color: var(--sp-herb); }
.sp-stream-copy h3 { margin: 0; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.08rem; font-weight: 400; line-height: 1.2; text-wrap: pretty; }
.sp-stream-copy h3 a:hover { color: var(--sp-herb); }
.sp-empty-note { color: var(--sp-muted); font-size: .9rem; }
.sp-stream-box .sp-empty-note { padding: 18px; margin: 0; }

/* Support receipt card */
.sp-receipt-card {
    position: relative;
    overflow: visible;
    padding: 25px 24px 22px;
    color: var(--sp-ink);
    background: var(--sp-cream);
    box-shadow: 8px 12px 30px rgba(0, 0, 0, .2);
    transform: rotate(.35deg);
}
.sp-receipt-card::before,
.sp-receipt-card::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 8px;
    content: "";
    background-size: 16px 8px;
    background-repeat: repeat-x;
}
.sp-receipt-card::before { top: -7px; background-image: linear-gradient(135deg, transparent 50%, var(--sp-cream) 50%), linear-gradient(225deg, transparent 50%, var(--sp-cream) 50%); }
.sp-receipt-card::after { bottom: -7px; background-image: linear-gradient(45deg, transparent 50%, var(--sp-cream) 50%), linear-gradient(315deg, transparent 50%, var(--sp-cream) 50%); }
.sp-receipt-card .sp-eyebrow { color: #626b45; }
.sp-receipt-card h2 { margin: 9px 0 12px; color: #1d2118; font-family: var(--sp-font-display); font-size: 2.25rem; font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.sp-receipt-card h2 em { color: #606f3b; font-style: italic; }
.sp-receipt-card p { margin: 0 0 18px; color: #424638; font-size: .88rem; line-height: 1.6; }
.sp-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--sp-cream) !important;
    background: #292f22;
    font-family: var(--sp-font-mono);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.sp-receipt-btn:hover { color: #fff !important; background: #4f5d34; transform: translateY(-1px); }
.sp-receipt-footnote { display: block; margin-top: 15px; color: #777c69; font-family: var(--sp-font-mono); font-size: .58rem; }

/* Topic strip */
.sp-topic-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 25px 0 28px;
    border-bottom: 1px solid var(--sp-line-soft);
}
.sp-topic-label { margin-right: 7px; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .63rem; letter-spacing: .09em; text-transform: uppercase; }
.sp-topic-strip a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    color: var(--sp-text-soft);
    border: 1px solid var(--sp-line);
    border-radius: 2px;
    font-size: .75rem;
    font-weight: 600;
}
.sp-topic-strip a span { color: var(--sp-herb); font-size: .8rem; }
.sp-topic-strip a:hover { color: var(--sp-ink); background: var(--sp-herb); border-color: var(--sp-herb); }
.sp-topic-strip a:hover span { color: var(--sp-ink); }

/* Cards and article grids */
.sp-latest-section { padding: 46px 0 76px; }
.sp-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}
.sp-section-heading h2 { margin: 5px 0 0; color: var(--sp-text); font-family: var(--sp-font-display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.sp-section-aside { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sp-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--sp-panel);
    border: 1px solid var(--sp-line-soft);
    transition: border-color .2s ease, background-color .2s ease, transform .25s ease;
}
.sp-card:hover { background: var(--sp-panel-raised); border-color: var(--sp-line); transform: translateY(-3px); }
.sp-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sp-bg-soft); }
.sp-card-media > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.sp-card:hover .sp-card-media > img { transform: scale(1.04); filter: saturate(1.03); }
.sp-card-media::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(0deg, rgba(8, 10, 7, .36), transparent); pointer-events: none; }
.sp-card-media-arrow { position: absolute; z-index: 1; right: 13px; bottom: 11px; color: #fff; font-size: 1rem; }
.sp-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 90px; place-items: center; background: radial-gradient(circle at 75% 25%, rgba(196, 206, 135, .14), transparent 35%), linear-gradient(135deg, #252b21, #151812); }
.sp-image-placeholder span { color: rgba(196, 206, 135, .65); font-family: var(--sp-font-display); font-size: 2.2rem; font-style: italic; }
.sp-image-placeholder--large { position: absolute; inset: 0; }
.sp-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 19px 16px; }
.sp-card-title { margin: 10px 0 9px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.12; letter-spacing: -.012em; text-wrap: pretty; }
.sp-card-title a:hover { color: var(--sp-herb); }
.sp-card-excerpt { margin: 0 0 18px; color: var(--sp-muted); font-size: .86rem; line-height: 1.65; }
.sp-card-footer { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--sp-line-soft); color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .59rem; }
.sp-read-more { color: var(--sp-herb); font-weight: 600; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.sp-read-more:hover { color: var(--sp-text); }
.sp-read-more span { margin-left: 3px; }

/* Archive / search pages */
.sp-archive-page { padding-top: 58px; padding-bottom: 80px; }
.sp-archive-header { max-width: 890px; padding-bottom: 31px; }
.sp-archive-header h1 { margin: 8px 0 12px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: clamp(2.9rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.sp-archive-header h1 span { color: var(--sp-herb); }
.sp-archive-description { max-width: 760px; color: var(--sp-muted); font-size: .98rem; line-height: 1.7; }
.sp-archive-description p { margin: 0; }
.sp-pagination { padding-top: 35px; }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.sp-pagination a,
.sp-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--sp-text-soft);
    border: 1px solid var(--sp-line);
    font-family: var(--sp-font-mono);
    font-size: .72rem;
}
.sp-pagination a:hover,
.sp-pagination .current { color: var(--sp-ink); background: var(--sp-herb); border-color: var(--sp-herb); }
.sp-no-results { padding: 42px 0; color: var(--sp-muted); }
.sp-no-results h2 { color: var(--sp-text); font-family: var(--sp-font-display); font-size: 2rem; font-weight: 400; }
.sp-search-again { max-width: 520px; margin-top: 23px; }

/* Search form */
.sp-search-form { display: flex; width: 100%; max-width: 480px; margin-top: 18px; border: 1px solid var(--sp-line); background: var(--sp-panel); }
.sp-search-input { width: 100%; min-width: 0; padding: 12px 15px; color: var(--sp-text); background: transparent; border: 0; outline: 0; }
.sp-search-input::placeholder { color: var(--sp-muted-dark); }
.sp-search-submit { width: 48px; flex: 0 0 48px; color: var(--sp-ink); background: var(--sp-herb); border: 0; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.sp-search-submit:hover { background: #d8dfaa; }

/* Single article layout */
.sp-single-page { padding-top: 37px; padding-bottom: 80px; }
.sp-single-layout { display: grid; grid-template-columns: minmax(0, 860px) 340px; justify-content: space-between; align-items: start; gap: 56px; }
.sp-single-main { min-width: 0; }
.sp-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .63rem; line-height: 1.5; }
.sp-breadcrumbs a { color: var(--sp-muted); }
.sp-breadcrumbs a:hover { color: var(--sp-herb); }
.sp-article-header { margin-bottom: 25px; }
.sp-article-title { margin: 11px 0 15px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: clamp(2.7rem, 5vw, 4.55rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.sp-article-deck { max-width: 780px; margin: 0; color: var(--sp-text-soft); font-size: 1.13rem; line-height: 1.7; }
.sp-article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 18px; margin-top: 23px; color: var(--sp-text-soft); font-size: .82rem; }
.sp-byline-name { display: block; }
.sp-article-byline strong { display: block; color: var(--sp-text); font-size: .8rem; }
.sp-article-byline small { display: block; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .59rem; text-transform: uppercase; }
.sp-updated-date { margin-left: auto; color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .61rem; }
.sp-article-feature-image { margin: 28px 0 29px; background: var(--sp-panel); }
.sp-article-feature-image img { width: 100%; max-height: 680px; object-fit: cover; }
.sp-article-feature-image figcaption { padding-top: 8px; color: var(--sp-muted-dark); font-size: .7rem; }

/* Reading tools / Cook Mode */
.sp-kitchen-box {
    margin: 28px 0 34px;
    padding: 21px 23px;
    background: var(--sp-panel);
    border: 1px solid var(--sp-herb-deep);
    box-shadow: inset 3px 0 0 var(--sp-herb-deep);
}
.sp-kitchen-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-kitchen-title { margin: 3px 0 0; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.sp-cook-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0 5px 9px; color: var(--sp-text-soft); background: none; border: 0; cursor: pointer; font-family: var(--sp-font-mono); font-size: .69rem; font-weight: 600; text-transform: uppercase; }
.sp-switch { position: relative; width: 43px; height: 24px; flex: 0 0 43px; background: #343b2f; border: 1px solid #596349; border-radius: 99px; transition: background .2s ease; }
.sp-switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; content: ""; background: var(--sp-text); border-radius: 50%; transition: transform .2s ease; }
.sp-cook-toggle[aria-pressed="true"] .sp-switch { background: var(--sp-herb-deep); border-color: var(--sp-herb); }
.sp-cook-toggle[aria-pressed="true"] .sp-switch::after { transform: translateX(19px); background: #fff; }
.sp-cook-status-row { margin: 12px 0 0; color: var(--sp-muted); font-size: .78rem; line-height: 1.5; }
.sp-quick-ingredients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 20px; margin: 17px 0 0; padding: 15px 0 0; border-top: 1px solid var(--sp-line); list-style: none; }
.sp-quick-ingredients li { position: relative; padding-left: 16px; color: var(--sp-text-soft); font-size: .82rem; }
.sp-quick-ingredients li::before { position: absolute; left: 0; color: var(--sp-herb); content: "＋"; }
.sp-kitchen-footer { display: flex; flex-wrap: wrap; gap: 9px 19px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--sp-line); }
.sp-text-button { padding: 0; color: var(--sp-herb); background: transparent; border: 0; cursor: pointer; font-family: var(--sp-font-mono); font-size: .67rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.sp-text-button:hover { color: var(--sp-text); }
.sp-text-button span { margin-left: 4px; }

/* Article content / WordPress blocks */
.sp-entry-content {
    color: var(--sp-text-soft);
    font-size: 1.055rem;
    line-height: 1.88;
    overflow-wrap: break-word;
}
.sp-entry-content > * { max-width: 100%; }
.sp-entry-content > * + * { margin-top: 1.35em; }
.sp-entry-content p { margin: 0 0 1.45em; }
.sp-entry-content h2,
.sp-entry-content h3,
.sp-entry-content h4 {
    color: var(--sp-text);
    font-family: var(--sp-font-display);
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: -.012em;
    text-wrap: balance;
}
.sp-entry-content h2 { margin: 2.05em 0 .75em; padding-bottom: 10px; border-bottom: 1px solid var(--sp-line); font-size: clamp(1.9rem, 3vw, 2.45rem); }
.sp-entry-content h3 { margin: 1.7em 0 .65em; color: var(--sp-herb); font-size: 1.65rem; }
.sp-entry-content h4 { margin: 1.5em 0 .6em; color: var(--sp-lilac); font-size: 1.3rem; }
.sp-entry-content a { color: var(--sp-herb); border-bottom: 1px solid rgba(196, 206, 135, .45); }
.sp-entry-content a:hover { color: var(--sp-text); border-color: var(--sp-text); }
.sp-entry-content strong { color: var(--sp-text); font-weight: 700; }
.sp-entry-content em { color: #e3d8c9; }
.sp-entry-content ul,
.sp-entry-content ol { margin: 0 0 1.5em 1.35em; padding-left: .5em; }
.sp-entry-content li { margin-bottom: .45em; padding-left: .2em; }
.sp-entry-content li::marker { color: var(--sp-herb); }
.sp-entry-content hr { height: 1px; margin: 2.7em 0; background: var(--sp-line); border: 0; }
.sp-entry-content blockquote,
.sp-brace-quote {
    position: relative;
    margin: 2em 0;
    padding: 16px 38px;
    color: var(--sp-lilac);
    background: transparent;
    border: 0;
    font-family: var(--sp-font-display);
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.42;
}
.sp-entry-content blockquote::before,
.sp-entry-content blockquote::after,
.sp-brace-quote::before,
.sp-brace-quote::after {
    position: absolute;
    color: var(--sp-lilac-deep);
    font-family: var(--sp-font-display);
    font-size: 3.8rem;
    font-style: normal;
    line-height: 1;
}
.sp-entry-content blockquote::before,
.sp-brace-quote::before { top: 5px; left: 0; content: "{"; }
.sp-entry-content blockquote::after,
.sp-brace-quote::after { right: 0; bottom: -7px; content: "}"; }
.sp-entry-content blockquote p:last-child { margin-bottom: 0; }
.sp-entry-content .wp-block-pullquote { padding: 1.4em 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-entry-content .wp-block-pullquote blockquote { margin: 0; }
.sp-entry-content figure { margin: 2em 0; }
.sp-entry-content figure img { height: auto; }
.sp-entry-content figcaption { margin-top: 9px; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .66rem; line-height: 1.5; }
.sp-entry-content .wp-block-image img,
.sp-entry-content .wp-block-gallery img { border: 1px solid var(--sp-line-soft); }
.sp-entry-content .alignwide { width: 100%; max-width: 1100px; margin-right: auto; margin-left: auto; }
.sp-entry-content .alignfull { width: 100%; max-width: 100%; }
.sp-entry-content .wp-block-table { overflow-x: auto; }
.sp-entry-content table { width: 100%; border-collapse: collapse; color: var(--sp-text-soft); font-size: .88rem; }
.sp-entry-content th,
.sp-entry-content td { padding: 11px 13px; border: 1px solid var(--sp-line); text-align: left; }
.sp-entry-content th { color: var(--sp-text); background: var(--sp-panel); }
.sp-entry-content code,
.sp-entry-content pre { font-family: var(--sp-font-mono); }
.sp-entry-content code { padding: .15em .35em; color: var(--sp-herb); background: var(--sp-panel); }
.sp-entry-content pre { overflow-x: auto; padding: 18px; color: var(--sp-text-soft); background: var(--sp-panel); border: 1px solid var(--sp-line); font-size: .82rem; }
.sp-entry-content pre code { padding: 0; background: transparent; }
.sp-entry-content .wp-block-button__link { color: var(--sp-ink); background: var(--sp-herb); border: 0; border-radius: 2px; }
.sp-entry-content .wp-block-button__link:hover { color: var(--sp-ink); background: #d8dfaa; }
.sp-entry-content .wp-block-separator { border-color: var(--sp-line); }
.sp-entry-content .wp-block-embed { margin: 2em 0; }
.sp-entry-content iframe { max-width: 100%; }
.sp-entry-content .wp-block-columns { gap: 24px; }
.sp-entry-content .wp-block-details { padding: 13px 16px; background: var(--sp-panel); border: 1px solid var(--sp-line); }
.sp-entry-content summary { color: var(--sp-herb); cursor: pointer; }

/* WP Recipe Maker: blend with the theme, keep plugin controls usable. */
.wprm-recipe-container,
.wprm-recipe {
    margin: 2.5em 0 !important;
    padding: clamp(18px, 3vw, 30px) !important;
    color: var(--sp-text-soft) !important;
    background: var(--sp-panel) !important;
    border: 1px solid var(--sp-line) !important;
    border-radius: 2px !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .16) !important;
    font-family: var(--sp-font-body) !important;
}
.wprm-recipe-container a,
.wprm-recipe a { color: var(--sp-herb) !important; }
.wprm-recipe-container .wprm-recipe-name,
.wprm-recipe .wprm-recipe-name { color: var(--sp-text) !important; font-family: var(--sp-font-display) !important; font-size: clamp(1.8rem, 3vw, 2.5rem) !important; font-weight: 400 !important; line-height: 1.1 !important; }
.wprm-recipe-container .wprm-recipe-summary,
.wprm-recipe-container .wprm-recipe-instructions,
.wprm-recipe-container .wprm-recipe-ingredients,
.wprm-recipe-container .wprm-recipe-notes,
.wprm-recipe-container .wprm-recipe-equipment,
.wprm-recipe-container .wprm-recipe-details,
.wprm-recipe .wprm-recipe-summary,
.wprm-recipe .wprm-recipe-instructions,
.wprm-recipe .wprm-recipe-ingredients { color: var(--sp-text-soft) !important; }
.wprm-recipe-container .wprm-recipe-header,
.wprm-recipe-container .wprm-recipe-ingredients-container,
.wprm-recipe-container .wprm-recipe-instructions-container { border-color: var(--sp-line) !important; }
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-name,
body.sp-recipe-light-mode .wprm-recipe .wprm-recipe-name { color: #24271f !important; }
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-summary,
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-instructions,
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-ingredients,
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-notes,
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-equipment,
body.sp-recipe-light-mode .wprm-recipe-container .wprm-recipe-details { color: #363a30 !important; }
body.sp-recipe-light-mode .wprm-recipe-container a { color: #546238 !important; }
.wprm-recipe-container button,
.wprm-recipe-container .wprm-recipe-print,
.wprm-recipe-container .wprm-recipe-add-to-collection { border-radius: 2px !important; }
body.sp-recipe-light-mode .wprm-recipe-container,
body.sp-recipe-light-mode .wprm-recipe {
    color-scheme: light !important;
    color: #363a30 !important;
    background: #fff !important;
    border-color: var(--sp-herb-deep) !important;
    box-shadow: 0 0 0 3px rgba(196, 206, 135, .13) !important;
}

/* Share / author / related / comments */
.sp-article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 17px; margin: 38px 0; padding: 15px 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-article-share > span:first-child { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }
.sp-article-share a,
.sp-article-share button { padding: 0; color: var(--sp-herb); background: transparent; border: 0; cursor: pointer; font-family: var(--sp-font-mono); font-size: .64rem; }
.sp-article-share a:hover,
.sp-article-share button:hover { color: var(--sp-text); }
.sp-copy-status { color: var(--sp-muted); font-size: .7rem; }
.sp-author-card { display: block; width: 100%; min-width: 0; margin: 38px 0; padding: 26px; background: var(--sp-panel); border: 1px solid var(--sp-line); }
.sp-author-copy { width: 100%; max-width: 78ch; min-width: 0; }
.sp-author-copy h2 { margin: 3px 0 9px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.7rem; font-weight: 400; line-height: 1.2; }
.sp-author-copy p { width: 100%; max-width: 72ch; margin: 0; color: var(--sp-muted); font-size: .92rem; line-height: 1.75; word-break: normal; overflow-wrap: break-word; hyphens: auto; }
.sp-related-section { margin: 55px 0; padding-top: 30px; border-top: 1px solid var(--sp-line); }
.sp-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.sp-related-grid .sp-card-body { padding: 13px; }
.sp-related-grid .sp-card-title { font-size: 1.12rem; }
.sp-related-grid .sp-card-excerpt { display: none; }
.sp-related-grid .sp-card-footer { font-size: .55rem; }
.sp-comments-section { margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--sp-line); }
.sp-comments-title,
.comments-title { color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.8rem; font-weight: 400; }
.sp-comment-list { margin: 0; padding: 0; list-style: none; }
.sp-comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--sp-line); }
.sp-comment-list .comment-author { color: var(--sp-text); font-weight: 700; }
.sp-comment-list .comment-meta { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .63rem; }
.sp-comment-list .comment-content { color: var(--sp-text-soft); font-size: .9rem; }
.sp-comment-list .reply a { color: var(--sp-herb); font-family: var(--sp-font-mono); font-size: .65rem; text-transform: uppercase; }
.sp-comment-form-wrap { margin-top: 30px; }
.sp-comment-form label { display: block; margin-bottom: 6px; color: var(--sp-text-soft); font-size: .8rem; }
.sp-comment-form input:not([type="checkbox"]),
.sp-comment-form textarea { width: 100%; padding: 11px 13px; color: var(--sp-text); background: var(--sp-panel); border: 1px solid var(--sp-line); }
.sp-comment-form textarea { min-height: 140px; resize: vertical; }
.sp-comment-form .form-submit input { padding: 12px 18px; color: var(--sp-ink); background: var(--sp-herb); border: 0; cursor: pointer; font-weight: 700; }
.sp-page-links { display: flex; gap: 8px; font-family: var(--sp-font-mono); font-size: .7rem; }

/* Series shortcode */
.sp-series-card { display: flex; flex-direction: column; gap: 4px; margin: 2em 0; padding: 20px 22px; color: var(--sp-text); background: var(--sp-panel); border-left: 3px solid var(--sp-lilac-deep); }
.sp-series-kicker { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.sp-series-card strong { color: var(--sp-lilac); font-family: var(--sp-font-display); font-size: 1.35rem; font-weight: 400; }
.sp-series-part { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .7rem; }

/* 404 */
.sp-404-page { min-height: 65vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 70px; padding-bottom: 90px; }
.sp-404-mark { color: rgba(196, 206, 135, .13); font-family: var(--sp-font-display); font-size: clamp(7rem, 20vw, 15rem); line-height: .8; letter-spacing: -.07em; }
.sp-404-page h1 { margin: 25px 0 8px; font-family: var(--sp-font-display); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.05; }
.sp-404-page > p { max-width: 560px; color: var(--sp-muted); }
.sp-404-page .sp-feature-link { margin-top: 20px; }

/* Footer */
.sp-footer { padding: 54px 0 20px; background: #0c0e0b; border-top: 1px solid var(--sp-line-soft); }
.sp-footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: clamp(38px, 7vw, 110px); padding-bottom: 42px; }
.sp-footer-brand .sp-logo { font-size: 2.15rem; }
.sp-footer-brand p { max-width: 420px; margin: 17px 0; color: var(--sp-muted); font-size: .88rem; line-height: 1.65; }
.sp-footer-support { color: var(--sp-herb); font-family: var(--sp-font-mono); font-size: .67rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sp-footer-support:hover { color: var(--sp-text); }
.sp-footer-heading { margin: 4px 0 16px; color: var(--sp-text); font-family: var(--sp-font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sp-footer-links { margin: 0; padding: 0; list-style: none; }
.sp-footer-links li { margin: 0 0 12px; }
.sp-footer-links > li > a { color: var(--sp-text); font-size: .87rem; font-weight: 600; }
.sp-footer-links a { color: var(--sp-muted); font-size: .82rem; }
.sp-footer-links a:hover { color: var(--sp-herb); }
.sp-footer-links .sub-menu { margin: 10px 0 16px 2px; padding: 0 0 0 17px; list-style: none; border-left: 1px solid var(--sp-line); }
.sp-footer-links .sub-menu li { margin: 0 0 9px; }
.sp-footer-links .sub-menu a { color: var(--sp-muted); font-size: .78rem; }
.sp-footer-parent-label { display: inline-block; color: var(--sp-text); font-size: .87rem; font-weight: 600; }
.sp-footer-information { min-width: 0; }
.sp-footer-information .menu { list-style: none; margin: 0; padding: 0; }
.sp-footer-information .menu > li { margin-bottom: 14px; }
.sp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--sp-line-soft); color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .6rem; letter-spacing: .04em; }
.sp-back-to-top { color: var(--sp-herb); white-space: nowrap; }

/* Responsive */
@media (max-width: 1160px) {
    .sp-front-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; }
    .sp-single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
    .sp-nav { gap: 18px; }
    .sp-brand { min-width: 170px; }
    .sp-logo { font-size: 1.7rem; }
    .sp-nav { gap: 12px; }
    .sp-menu { gap: 10px; }
    .sp-menu a { font-size: .64rem; }
    .sp-cards-grid { gap: 18px; }
}

@media (max-width: 960px) {
    .sp-container { width: min(var(--sp-content), calc(100% - 44px)); }
    .sp-front-layout,
    .sp-single-layout { grid-template-columns: minmax(0, 1fr); }
    .sp-sidebar-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); align-items: start; gap: 22px; }
    .sp-single-layout .sp-sidebar-col { margin-top: 35px; }
    .sp-receipt-card { margin-top: 8px; }
    .sp-menu { gap: 14px; }
    .sp-btn-coffee { padding: 10px 13px; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 82px; }
    .sp-container { width: min(var(--sp-content), calc(100% - 34px)); }
    body.admin-bar .sp-header { top: 46px; }
    .sp-header-inner { min-height: 72px; flex-wrap: wrap; gap: 0; padding-block: 11px; }
    .sp-brand { min-width: 0; }
    .sp-logo { font-size: 1.68rem; }
    .sp-tagline { margin-top: 5px; font-size: .55rem; }
    .sp-custom-logo img { max-width: 205px; max-height: 48px; }
    .sp-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 8px 0 8px 12px;
        color: var(--sp-text);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: var(--sp-font-mono);
        font-size: .64rem;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .sp-menu-lines { display: flex; width: 20px; flex-direction: column; gap: 5px; }
    .sp-menu-lines i { display: block; width: 20px; height: 1px; background: var(--sp-herb); transition: transform .2s ease; }
    .sp-mobile-toggle[aria-expanded="true"] .sp-menu-lines i:first-child { transform: translateY(3px) rotate(45deg); }
    .sp-mobile-toggle[aria-expanded="true"] .sp-menu-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
    .sp-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 15px; padding: 17px 0 6px; border-top: 1px solid var(--sp-line-soft); }
    .sp-nav.is-open { display: flex; }
    .sp-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .sp-menu li { border-bottom: 1px solid var(--sp-line-soft); }
    .sp-menu a { display: block; padding: 12px 0; font-size: .78rem; }
    .sp-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 7px 14px; background: transparent; border: 0; box-shadow: none; }
    .sp-menu .sub-menu a { padding: 7px 0; }
    .sp-btn-coffee { align-self: flex-start; }
    .sp-front-page { padding-top: 23px; }
    .sp-front-layout { gap: 28px; padding-bottom: 30px; }
    .sp-section-kicker { margin-bottom: 13px; }
    .sp-kicker-note { display: none; }
    .sp-feature-title { margin-top: 10px; font-size: clamp(2.35rem, 9vw, 3.5rem); }
    .sp-feature-excerpt { font-size: .96rem; }
    .sp-feature-quote { font-size: 1.13rem; }
    .sp-sidebar-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .sp-topic-strip { padding-block: 20px; gap: 7px; }
    .sp-topic-label { flex-basis: 100%; margin-bottom: 2px; }
    .sp-topic-strip a { font-size: .69rem; padding: 6px 8px; }
    .sp-latest-section { padding: 36px 0 55px; }
    .sp-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
    .sp-section-heading h2 { font-size: 2.15rem; }
    .sp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .sp-card-body { padding: 13px 13px 12px; }
    .sp-card-title { font-size: 1.27rem; }
    .sp-card-excerpt { font-size: .78rem; line-height: 1.55; }
    .sp-card-footer { align-items: flex-start; flex-direction: column; gap: 6px; font-size: .55rem; }
    .sp-meta-line { gap: 6px; font-size: .59rem; }
    .sp-category-label { font-size: .59rem; }
    .sp-archive-page { padding-top: 40px; padding-bottom: 55px; }
    .sp-archive-header h1 { font-size: clamp(2.5rem, 9vw, 3.8rem); }
    .sp-single-page { padding-top: 24px; padding-bottom: 55px; }
    .sp-breadcrumbs { margin-bottom: 19px; font-size: .58rem; }
    .sp-article-title { font-size: clamp(2.4rem, 9vw, 3.65rem); }
    .sp-article-deck { font-size: 1rem; }
    .sp-article-feature-image { margin-block: 23px; }
    .sp-entry-content { font-size: 1rem; line-height: 1.82; }
    .sp-entry-content .alignwide { width: 100%; max-width: 100%; }
    .sp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-footer { padding-top: 40px; }
    .sp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
    .sp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .sp-container { width: calc(100% - 28px); }
    .sp-feature-image { aspect-ratio: 4 / 3; }
    .sp-feature-title { font-size: 2.35rem; }
    .sp-stream-item { grid-template-columns: 72px minmax(0, 1fr); gap: 11px; padding: 13px; }
    .sp-stream-thumb { width: 72px; height: 66px; }
    .sp-stream-copy h3 { font-size: 1rem; }
    .sp-cards-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-card-media { aspect-ratio: 16 / 9; }
    .sp-card-body { padding: 16px; }
    .sp-card-title { font-size: 1.45rem; }
    .sp-card-footer { align-items: center; flex-direction: row; }
    .sp-article-byline { flex-wrap: wrap; }
    .sp-updated-date { width: 100%; margin-left: 0; }
    .sp-kitchen-box { padding: 17px 15px; }
    .sp-kitchen-header { align-items: flex-start; }
    .sp-cook-toggle { gap: 7px; font-size: .62rem; }
    .sp-quick-ingredients { grid-template-columns: 1fr; }
    .sp-entry-content blockquote,
    .sp-brace-quote { padding-inline: 28px; font-size: 1.2rem; }
    .sp-related-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-author-card { padding: 18px; }
    .sp-author-copy h2 { font-size: 1.42rem; }
    .sp-author-copy p { font-size: .82rem; }
    .sp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .sp-footer-brand { grid-column: auto; }
    .sp-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .sp-404-page { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* v3.1 — full-width category navigation and stable editorial layout */
.sp-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle" "nav nav";
    align-items: center;
    column-gap: 18px;
    row-gap: 13px;
    min-height: 0;
    padding-block: 15px 12px;
}
.sp-brand { grid-area: brand; min-width: 0; }
.sp-mobile-toggle { grid-area: toggle; }
.sp-nav {
    grid-area: nav;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 10px;
    border-top: 1px solid var(--sp-line-soft);
}
.sp-menu.sp-category-menu {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: clamp(12px, 1.45vw, 23px);
    row-gap: 1px;
}
.sp-menu.sp-category-menu > li { flex: 0 0 auto; }
.sp-menu.sp-category-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 4px 0;
    font-size: .68rem;
    letter-spacing: .045em;
    white-space: nowrap;
}
.sp-menu.sp-category-menu > .current-category > a { color: var(--sp-herb); }
.sp-nav .sp-btn-coffee { flex: 0 0 auto; white-space: nowrap; }
.sp-footer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }

@media (max-width: 960px) {
    .sp-menu.sp-category-menu { column-gap: 16px; }
    .sp-menu.sp-category-menu > li > a { font-size: .65rem; }
}

@media (max-width: 760px) {
    .sp-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand toggle" "nav nav";
        row-gap: 11px;
        padding-block: 11px;
    }
    .sp-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        margin: 0;
        padding: 13px 0 4px;
        border-top: 1px solid var(--sp-line-soft);
    }
    .sp-nav.is-open { display: flex; }
    .sp-menu.sp-category-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .sp-menu.sp-category-menu > li { border-bottom: 1px solid var(--sp-line-soft); }
    .sp-menu.sp-category-menu > li > a {
        display: block;
        min-height: 0;
        padding: 10px 0;
        font-size: .78rem;
        white-space: normal;
    }
    .sp-nav .sp-btn-coffee { align-self: flex-start; }
    .sp-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 22px; }
    .sp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .sp-author-card { padding: 17px; }
    .sp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .sp-footer-brand { grid-column: auto; }
}


/* v3.2 — editorial article sidebar, automatic table of contents and full archive */
.sp-single-layout { grid-template-columns: minmax(0, 1fr) minmax(285px, 340px); gap: clamp(30px, 4vw, 58px); }
.sp-article-sidebar {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 5px 12px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--sp-line) transparent;
}
.sp-article-sidebar::-webkit-scrollbar { width: 5px; }
.sp-article-sidebar::-webkit-scrollbar-thumb { background: var(--sp-line); border-radius: 10px; }
.sp-sidebar-module { min-width: 0; background: var(--sp-bg-soft); border: 1px solid var(--sp-line); }
.sp-sidebar-module > summary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px 15px;
    cursor: pointer;
    list-style: none;
}
.sp-sidebar-module > summary::-webkit-details-marker { display: none; }
.sp-sidebar-module > summary::marker { content: ""; }
.sp-sidebar-module > summary::after {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--sp-herb);
    content: "+";
    font-family: var(--sp-font-mono);
    font-size: 1rem;
    transform: translateY(-50%);
}
.sp-sidebar-module[open] > summary::after { content: "−"; }
.sp-sidebar-kicker { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .57rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sp-sidebar-module-title { max-width: calc(100% - 18px); color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.42rem; font-weight: 400; line-height: 1.12; }
.sp-sidebar-module-content { padding: 0 17px 17px; border-top: 1px solid var(--sp-line-soft); }
.sp-article-toc { padding-top: 12px; }
.sp-toc-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.sp-toc-list li { margin: 0; padding: 0; counter-increment: toc; }
.sp-toc-list a { display: block; padding: 6px 0; color: var(--sp-text-soft); font-size: .78rem; line-height: 1.4; }
.sp-toc-list a::before { display: inline-block; width: 22px; color: var(--sp-herb-deep); content: counter(toc, decimal-leading-zero); font-family: var(--sp-font-mono); font-size: .61rem; }
.sp-toc-list a:hover { color: var(--sp-herb); }
.sp-toc-list .sp-toc-subitem { padding-left: 14px; border-left: 1px solid var(--sp-line); margin-left: 7px; }
.sp-toc-list .sp-toc-subitem a { color: var(--sp-muted); font-size: .73rem; }
.sp-toc-empty { margin: 10px 0 0; color: var(--sp-muted); font-size: .75rem; line-height: 1.5; }
.sp-article-toc.is-empty .sp-toc-empty { display: block; }
.sp-toc-target { scroll-margin-top: 120px; }
.sp-sidebar-story-list { margin: 0; padding: 13px 0 0; list-style: none; }
.sp-sidebar-story { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sp-line-soft); }
.sp-sidebar-story:first-child { padding-top: 0; }
.sp-sidebar-story:last-child { padding-bottom: 0; border-bottom: 0; }
.sp-sidebar-story-thumb { display: block; width: 72px; height: 62px; overflow: hidden; background: var(--sp-panel); }
.sp-sidebar-story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sp-sidebar-story-thumb:hover img { transform: scale(1.05); }
.sp-sidebar-story-copy { min-width: 0; }
.sp-sidebar-story-copy time { display: block; margin-bottom: 4px; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .56rem; letter-spacing: .04em; }
.sp-sidebar-story-copy h3 { margin: 0; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.02rem; font-weight: 400; line-height: 1.2; text-wrap: pretty; }
.sp-sidebar-story-copy h3 a:hover { color: var(--sp-herb); }
.sp-sidebar-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; color: var(--sp-herb); border-top: 1px solid var(--sp-line-soft); font-family: var(--sp-font-mono); font-size: .61rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.sp-sidebar-more:hover { color: var(--sp-text); }
.sp-sidebar-empty { margin: 14px 0 0; color: var(--sp-muted); font-size: .8rem; }
.sp-archive-mini-search { display: flex; min-width: 0; margin: 13px 0 15px; border: 1px solid var(--sp-line); background: var(--sp-panel); }
.sp-archive-mini-search input { width: 100%; min-width: 0; padding: 10px 11px; color: var(--sp-text); background: transparent; border: 0; outline: 0; font-size: .76rem; }
.sp-archive-mini-search input::placeholder { color: var(--sp-muted-dark); }
.sp-archive-mini-search button { width: 40px; flex: 0 0 40px; color: var(--sp-ink); background: var(--sp-herb); border: 0; cursor: pointer; font-size: 1.2rem; }
.sp-sidebar-subheading { display: block; margin: 12px 0 6px; color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sp-archive-years { margin: 0; padding: 0; list-style: none; }
.sp-archive-years li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--sp-line-soft); color: var(--sp-muted); font-size: .76rem; }
.sp-archive-years li:last-child { border-bottom: 0; }
.sp-archive-years a { color: var(--sp-text-soft); }
.sp-archive-years a:hover { color: var(--sp-herb); }
.sp-archive-years a + span { margin-left: 5px; color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .62rem; }
.sp-article-support-card { margin: 4px 1px 0; transform: rotate(.2deg); }
.sp-article-support-card h2 { font-size: 1.95rem; }
.sp-article-support-card p { font-size: .82rem; }
.sp-article-support-card .sp-receipt-btn { font-size: .59rem; }

/* Dedicated archive page */
.sp-library-archive { padding-top: 54px; padding-bottom: 90px; }
.sp-library-header { max-width: 850px; padding-bottom: 29px; border-bottom: 1px solid var(--sp-line); }
.sp-library-header h1 { margin: 10px 0 13px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.sp-library-header h1 em { color: var(--sp-herb); font-weight: 400; }
.sp-library-header p { max-width: 680px; margin: 0; color: var(--sp-text-soft); font-size: 1.02rem; line-height: 1.7; }
.sp-library-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--sp-line-soft); }
.sp-library-filter { display: flex; min-width: min(420px, 100%); gap: 8px; }
.sp-library-filter select { width: 100%; min-width: 0; padding: 11px 13px; color: var(--sp-text); background: var(--sp-panel); border: 1px solid var(--sp-line); }
.sp-library-filter button { padding: 10px 15px; color: var(--sp-ink); background: var(--sp-herb); border: 0; cursor: pointer; font-family: var(--sp-font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.sp-library-tools .sp-search-form { width: min(420px, 100%); max-width: none; margin: 0; }
.sp-library-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 45px; align-items: start; padding-top: 35px; }
.sp-library-results { min-width: 0; }
.sp-library-results .sp-section-heading { align-items: end; }
.sp-library-results .sp-section-heading h2 { margin: 4px 0 0; font-family: var(--sp-font-display); font-size: 2rem; font-weight: 400; }
.sp-library-count { color: var(--sp-muted); font-family: var(--sp-font-mono); font-size: .65rem; }
.sp-library-results .sp-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-library-panel { margin-bottom: 18px; padding: 19px; background: var(--sp-bg-soft); border: 1px solid var(--sp-line); }
.sp-library-panel h2 { margin: 5px 0 13px; color: var(--sp-text); font-family: var(--sp-font-display); font-size: 1.65rem; font-weight: 400; }
.sp-library-panel h3 { margin: 20px 0 8px; }
.sp-library-category-list { margin: 0; padding: 0; list-style: none; }
.sp-library-category-list li { border-bottom: 1px solid var(--sp-line-soft); }
.sp-library-category-list li:last-child { border-bottom: 0; }
.sp-library-category-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--sp-text-soft); font-size: .78rem; }
.sp-library-category-list a:hover { color: var(--sp-herb); }
.sp-library-category-list span { color: var(--sp-muted-dark); font-family: var(--sp-font-mono); font-size: .62rem; }
.sp-archive-years--large li { padding-block: 8px; }

@media (max-width: 1160px) {
    .sp-single-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, 300px); gap: 30px; }
}
@media (max-width: 960px) {
    .sp-single-layout { grid-template-columns: minmax(0, 1fr); }
    .sp-article-sidebar { position: static; display: flex; max-height: none; overflow: visible; margin-top: 40px; padding: 0; }
    .sp-sidebar-module > summary { padding-block: 14px; }
    .sp-sidebar-module-content { padding-bottom: 15px; }
    .sp-article-support-card { max-width: 520px; }
    .sp-library-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 25px; }
    .sp-library-results .sp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sp-library-archive { padding-top: 32px; padding-bottom: 55px; }
    .sp-library-tools { align-items: stretch; flex-direction: column; gap: 13px; }
    .sp-library-filter { min-width: 0; }
    .sp-library-tools .sp-search-form { width: 100%; }
    .sp-library-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 27px; }
    .sp-library-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sp-library-panel { margin: 0; padding: 15px; }
}
@media (max-width: 480px) {
    .sp-library-header h1 { font-size: 2.8rem; }
    .sp-library-filter { flex-direction: column; }
    .sp-library-filter button { min-height: 42px; }
    .sp-library-results .sp-cards-grid { grid-template-columns: minmax(0, 1fr); }
    .sp-library-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the sticky article sidebar below the taller two-row header. */
.sp-article-sidebar { top: 160px; max-height: calc(100vh - 180px); }
body.admin-bar .sp-article-sidebar { top: 194px; max-height: calc(100vh - 214px); }
