/* ==========================================================================
   Food Daily 1.0.0 — magazine / newspaper theme (Newspaper + Jannah soul)
   Archivo bold-sans headlines + Inter body. Teal brand on a light fresh
   background. Mobile-first. One CSS file, no frameworks, no jQuery.
   ========================================================================== */

/* Brand palette. Duplicated from style.css (the theme header record) so
   this file is self-contained: WordPress only enqueues main.css, and the
   static preview loads main.css alone. Change colours here (and in
   style.css to match) or via Customizer. */
:root {
  --color-primary: #0f766e;
  --color-primary-dark: #0b5a53;
  --color-accent: #f59e0b;
  --color-ink: #122019;
  --color-muted: #55645e;
  --color-bg: #f6fbf9;
  --color-surface: #ffffff;
  --color-border: #dce9e4;
  --color-footer: #0c2b28;
  --color-trending: #c2410c;
  --radius: 10px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* v1.0.1 safety net: no small overflow may ever scroll the page
   sideways. A live 320px check found ~20px of sideways scroll whose
   source could NOT be reproduced from the live markup (real titles,
   real logo, real Complianz banner shown, real Archivo — all measured
   scrollWidth == innerWidth; the tightest theme element was the
   section-head row, fixed above). `clip` — not `hidden` — so the
   sticky header keeps working: clip creates no scroll container. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
figure { margin: 0 0 1.5em; }
figcaption { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.4em; }
blockquote {
  margin: 1.5em 0; padding: 0.5em 0 0.5em 1em;
  border-left: 4px solid var(--color-accent);
  font-size: 1.1rem; font-weight: 600;
}
code { background: #eef4f1; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
pre { background: #eef4f1; padding: 1em; overflow-x: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 0.95rem; }
th, td { border: 1px solid var(--color-border); padding: 0.5em 0.75em; text-align: left; }
th { background: #eef4f1; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2em 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.content-narrow { max-width: 760px; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--color-primary); color: #fff; padding: 8px 14px;
  border-radius: 0 0 8px 8px; font-weight: 700; transition: top 0.15s;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.button, button[type="submit"], input[type="submit"] {
  display: inline-block; cursor: pointer; border: 0; border-radius: 6px;
  background: var(--color-primary); color: #fff; font-weight: 700;
  font-size: 0.95rem; padding: 10px 18px; line-height: 1.2; font-family: inherit;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--color-primary-dark); text-decoration: none; color: #fff;
}
.button-primary { background: var(--color-primary); }
.button:not(.button-primary) { background: #e6efec; color: var(--color-ink); }
.button:not(.button-primary):hover { background: #d3e3dd; color: var(--color-ink); }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--color-footer); color: #cfe6e0; font-size: 0.8rem; }
.utility-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 6px 16px;
  display: flex; justify-content: space-between; gap: 12px; min-width: 0;
}
.utility-date { font-weight: 600; color: #fff; white-space: nowrap; }
.utility-note {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
@media (max-width: 640px) { .utility-note { display: none; } }

/* ---------- Trending bar ---------- */
.trending-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trending-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.trending-label {
  flex: 0 0 auto; background: var(--color-trending); color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.trending-list {
  list-style: none; margin: 0; padding: 0; min-width: 0;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trending-list::-webkit-scrollbar { display: none; }
.trending-list li { flex: 0 0 auto; white-space: nowrap; }
.trending-list li + li::before {
  content: "•"; color: var(--color-accent); margin: 0 10px; font-weight: 700;
}
.trending-list a { color: var(--color-ink); font-size: 0.88rem; font-weight: 600; }
.trending-list a:hover { color: var(--color-primary); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 2px 10px rgba(12, 43, 40, 0.08);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
  /* v1.0.1: the header may wrap to two lines when crowded. The brand
     must never be squeezed — the nav/actions give way first. */
  flex-wrap: wrap;
  min-height: 60px; min-width: 0;
}
/* v1.0.1: brand never shrinks, so the full site title is always
   visible — the old flex:0 1 auto + min-width:0 let the menu crowd
   it out and the ellipsis cut "Food Recipe Daily" (live: 179px of
   text squeezed into a 170px box at 320px). */
.site-brand { margin: 0; flex: 0 0 auto; display: flex; align-items: baseline; gap: 10px; }
.site-brand a {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.02em; color: var(--color-primary); line-height: 1;
  /* v1.0.1: NO overflow:hidden / text-overflow:ellipsis here — the
     site title is never truncated. It stays on one line; the brand
     cannot shrink, so it cannot be cut off. */
  white-space: nowrap;
}
.site-brand a:hover { text-decoration: none; color: var(--color-primary-dark); }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.brand-tagline {
  font-size: 0.8rem; color: var(--color-muted);
  /* v1.0.1: tagline wraps to two lines instead of truncating with an
     ellipsis. */
  line-height: 1.35; max-width: 13rem;
}
@media (max-width: 720px) { .brand-tagline { display: none; } }

.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px; justify-content: center; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
  display: block; padding: 8px 10px; color: var(--color-ink);
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-menu a:hover { color: var(--color-primary); text-decoration: none; border-bottom-color: var(--color-accent); }
.nav-menu .current-menu-item a, .nav-menu .current_page_item a { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-search form { display: flex; gap: 0; }
.header-search form label { display: flex; min-width: 0; }
.header-search input[type="search"] {
  width: 150px; padding: 8px 10px; font-size: 0.9rem; font-family: inherit;
  border: 1px solid var(--color-border); border-right: 0; border-radius: 6px 0 0 6px;
  background: var(--color-bg); color: var(--color-ink); min-width: 0;
}
.header-search button {
  border-radius: 0 6px 6px 0; padding: 8px 12px; font-size: 0.9rem;
}
.icon-button {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 6px;
  background: transparent; color: var(--color-primary); border: 1px solid var(--color-border);
}
.icon-button svg { width: 20px; height: 20px; }
.icon-button:hover { background: #e6efec; }
.menu-toggle { display: none; align-items: center; gap: 6px; padding: 8px 12px; }
.menu-toggle .menu-label { font-size: 0.9rem; }

.header-search-panel {
  display: none; border-top: 1px solid var(--color-border);
  padding: 12px 16px; background: var(--color-surface);
}
.header-search-panel.open { display: block; }
.header-search-panel form { display: flex; gap: 8px; max-width: 1200px; margin: 0 auto; }
.header-search-panel form label { flex: 1 1 auto; min-width: 0; display: flex; }
.header-search-panel input[type="search"] {
  width: 100%; flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg);
}
.header-search-panel button { flex: 0 0 auto; }

@media (max-width: 1023px) {
  .primary-nav .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-surface); border-bottom: 3px solid var(--color-primary);
    flex-direction: column; padding: 8px 16px 12px; overflow: visible;
    box-shadow: 0 12px 20px rgba(12, 43, 40, 0.12);
  }
  .primary-nav .nav-menu.open { display: flex; }
  .primary-nav .nav-menu a { padding: 10px 4px; border-bottom: 1px solid var(--color-border); }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .header-search { display: none; }
  .icon-button.search-toggle { display: inline-flex; }
  .site-brand a { font-size: 1.3rem; }
  .menu-toggle .menu-label { display: none; }
  .menu-toggle { padding: 8px 10px; }
}

/* ---------- Masthead (homepage H1) ---------- */
.masthead {
  text-align: center; padding: 34px 8px 26px;
  border-bottom: 4px double var(--color-ink);
  margin-bottom: 26px;
}
.masthead h1 {
  font-size: 2.5rem; margin: 0 0 8px; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.masthead-sub { max-width: 640px; margin: 0 auto 18px; color: var(--color-muted); font-size: 1.05rem; }
.masthead-search { max-width: 560px; margin: 0 auto; }
.masthead-search form, .hero-search form { display: flex; gap: 8px; }
.masthead-search form label, .hero-search form label { flex: 1 1 auto; min-width: 0; display: flex; }
.masthead-search input[type="search"], .hero-search input[type="search"] {
  width: 100%; min-width: 0; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--color-primary); border-radius: 6px; background: var(--color-surface);
}
@media (max-width: 640px) {
  .masthead h1 { font-size: 1.7rem; }
  .masthead { padding: 24px 4px 20px; }
}

/* ---------- Hero grid: 1 large + 2 small ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.9fr 1fr; gap: 16px; margin-bottom: 34px;
}
.hero-lead {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-primary); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.hero-lead-media { display: block; overflow: hidden; }
.hero-lead-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.hero-lead:hover .hero-lead-media img { transform: scale(1.04); }
.hero-lead-body { padding: 18px 20px 20px; }
.hero-lead-body h2 { font-size: 1.65rem; margin: 10px 0 8px; }
.hero-lead-body h2 a { color: var(--color-ink); }
.hero-lead-body h2 a:hover { color: var(--color-primary); }
.hero-lead-excerpt { color: var(--color-muted); margin-bottom: 10px; }
.hero-lead-meta { font-size: 0.85rem; color: var(--color-muted); margin: 0; }
.hero-small-col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.hero-small {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; min-width: 0;
}
.hero-small-media { flex: 0 0 42%; overflow: hidden; }
.hero-small-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.hero-small:hover .hero-small-media img { transform: scale(1.05); }
.hero-small-body { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-small-body h3 { font-size: 1.08rem; margin: 8px 0 6px; }
.hero-small-body h3 a { color: var(--color-ink); }
.hero-small-body h3 a:hover { color: var(--color-primary); }
.hero-small-meta { font-size: 0.82rem; color: var(--color-muted); margin: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-small-col { grid-template-rows: none; }
  .hero-lead-body h2 { font-size: 1.35rem; }
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 3px solid var(--color-ink); padding-bottom: 8px; margin-bottom: 18px;
  /* v1.0.1: let the row wrap on narrow screens. The old nowrap row
     overflowed its own box in real Archivo metrics — "Breakfast" +
     "View all Breakfast" needed 295px in a 288px row (7px over), and
     "Latest Recipes" + "Browse all recipes" sat at exactly 0 slack —
     one wider category name away from pushing the page sideways. */
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.35rem; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; min-width: 0; }
.section-head h2 a { color: var(--color-ink); }
.section-head h2 a:hover { color: var(--color-primary); }
.section-more { font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.section-sub { color: var(--color-muted); margin: -8px 0 18px; }
.section-title { font-size: 1.35rem; text-transform: uppercase; margin: 0 0 18px; border-bottom: 3px solid var(--color-ink); padding-bottom: 8px; }

/* ---------- Category blocks ---------- */
.cat-block { margin-bottom: 34px; }

/* ---------- Recipe cards (dense newspaper cards) ---------- */
.recipe-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.recipe-grid-dense { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .recipe-grid-dense { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .recipe-grid-dense { grid-template-columns: 1fr; } }
.recipe-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.recipe-card:hover { box-shadow: 0 8px 22px rgba(12, 43, 40, 0.12); transform: translateY(-2px); }
.recipe-card-media { position: relative; overflow: hidden; }
.recipe-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.35s ease; }
.recipe-card:hover .recipe-card-media img { transform: scale(1.05); }
.card-cat-pill {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--color-primary); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px;
}
.card-cat-pill:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.hero-lead-body .card-cat-pill, .hero-small-body .card-cat-pill { position: static; display: inline-block; }
.recipe-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.recipe-card-body h2, .recipe-card-body h3 { font-size: 1.12rem; margin: 0 0 6px; }
.recipe-card-body h2 a, .recipe-card-body h3 a { color: var(--color-ink); }
.recipe-card-body h2 a:hover, .recipe-card-body h3 a:hover { color: var(--color-primary); }
.card-stars { color: var(--color-accent); font-size: 0.95rem; margin: 0 0 6px; letter-spacing: 1px; }
.card-stars .stars-empty { color: #cbd5d1; }
.card-stars .rating-note { color: var(--color-muted); font-size: 0.82rem; letter-spacing: 0; }
.card-excerpt {
  color: var(--color-muted); font-size: 0.92rem; margin: 0 0 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 0.83rem; color: var(--color-muted); margin: 0; }
.card-meta span { white-space: nowrap; }

/* ---------- In-feed reserved ad slot ---------- */
.in-feed-ad { margin: 0 0 34px; }
.ad-slot-reserved {
  border: 2px dashed #9db8b1; background: #eef4f1; border-radius: 8px;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: 0.82rem; font-weight: 600;
  text-align: center; padding: 12px;
}
.single-sidebar .ad-slot-reserved { min-height: 250px; max-width: 300px; margin: 0 auto 24px; }
.in-feed-ad .ad-slot-reserved { max-width: 728px; margin: 0 auto; }

/* ---------- Latest block / home author ---------- */
.latest-block { margin-bottom: 34px; }
.home-author {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-accent); border-radius: var(--radius);
  padding: 22px; margin-bottom: 34px;
}
.home-author img { border-radius: 50%; flex: 0 0 auto; }
.home-author h2 { font-size: 1.2rem; margin-bottom: 6px; }
.home-author p { margin-bottom: 6px; }
@media (max-width: 640px) { .home-author { flex-direction: column; } }

/* ---------- Archive headers ---------- */
.archive-header, .archive-hero {
  padding: 26px 0 18px; margin-bottom: 22px; border-bottom: 3px solid var(--color-ink);
}
.archive-header h1, .archive-hero h1 { font-size: 2rem; text-transform: uppercase; margin-bottom: 6px; }
.archive-header p, .archive-hero p { color: var(--color-muted); margin-bottom: 4px; }
@media (max-width: 640px) { .archive-header h1, .archive-hero h1 { font-size: 1.5rem; } }

/* ---------- Single post ---------- */
.single-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px;
  align-items: start; padding-top: 22px;
}
@media (max-width: 1023px) { .single-layout { grid-template-columns: 1fr; } }
.breadcrumbs { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: inline; }
.breadcrumbs .sep { color: #9db8b1; }
.breadcrumbs a { color: var(--color-primary); }
.entry-header { margin-bottom: 18px; }
.entry-kicker { margin: 0 0 8px; }
.entry-kicker a {
  background: var(--color-primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.entry-kicker a:hover { background: var(--color-primary-dark); text-decoration: none; }
.entry-title { font-size: 2.1rem; margin-bottom: 10px; }
@media (max-width: 640px) { .entry-title { font-size: 1.55rem; } }
.entry-meta { font-size: 0.88rem; color: var(--color-muted); margin: 0 0 6px; }
.entry-meta a { color: var(--color-primary); font-weight: 600; }
.byline { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.byline img { border-radius: 50%; flex: 0 0 auto; }
.byline-text { font-size: 0.9rem; line-height: 1.4; }
.byline-text span { color: var(--color-muted); font-size: 0.85rem; }
.entry-hero { margin-bottom: 20px; }
.entry-hero img { width: 100%; border-radius: var(--radius); }
.entry-content { font-size: 1.05rem; }
.entry-content > p:first-of-type::first-letter {
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 3.1em;
  float: left; line-height: 0.85; padding: 4px 8px 0 0; color: var(--color-primary);
}
.entry-content h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; scroll-margin-top: 80px; }
.entry-content h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; scroll-margin-top: 80px; }
.entry-content img { border-radius: 8px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: 100%; }
.recipe-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.toc {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary); border-radius: 8px;
  padding: 16px 20px; margin-bottom: 24px;
}
.toc h2 { font-size: 1.05rem; text-transform: uppercase; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 4px; }
.post-tags { margin: 24px 0; font-size: 0.9rem; }
.post-tags a {
  display: inline-block; background: #e6efec; color: var(--color-ink);
  padding: 4px 10px; border-radius: 20px; margin: 0 4px 6px 0; font-size: 0.85rem;
}
.post-tags a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.author-box {
  display: flex; gap: 18px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-top: 5px solid var(--color-accent);
  border-radius: var(--radius); padding: 20px; margin: 28px 0;
}
.author-box-avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); margin-bottom: 4px; }
.author-box-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.author-box-name a { color: var(--color-ink); }
.author-box-bio { color: var(--color-muted); margin-bottom: 8px; }
.author-box-link { margin: 0; font-size: 0.9rem; font-weight: 700; }
@media (max-width: 640px) { .author-box { flex-direction: column; } }
.post-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--color-border); padding-top: 18px; margin: 28px 0;
  font-weight: 600; font-size: 0.95rem;
}
.post-nav span { max-width: 48%; }
@media (max-width: 640px) { .post-nav span { max-width: 100%; } }

/* ---------- Sidebar ---------- */
.single-sidebar { position: sticky; top: 84px; min-width: 0; }
@media (max-width: 1023px) { .single-sidebar { position: static; } }
.sidebar-box {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary); border-radius: var(--radius);
  padding: 18px; margin-bottom: 24px;
}
.sidebar-box h3 { font-size: 1.02rem; text-transform: uppercase; margin-bottom: 12px; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li + li { border-top: 1px solid var(--color-border); margin-top: 10px; padding-top: 10px; }
.sidebar-box li a { display: flex; gap: 12px; align-items: center; color: var(--color-ink); }
.sidebar-box li a:hover { color: var(--color-primary); }
.sidebar-box li img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.sidebar-box li strong { font-size: 0.9rem; line-height: 1.35; font-weight: 700; }
.newsletter-box { border-top-color: var(--color-accent); }
.newsletter-box p { font-size: 0.92rem; color: var(--color-muted); }
.newsletter-box form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-box input[type="email"] {
  width: 100%; padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg); min-width: 0;
}
.newsletter-box .button { width: 100%; }
.newsletter-note { font-size: 0.82rem !important; margin: 10px 0 0; }

/* ---------- Related recipes ---------- */
.related-recipes { margin: 34px 0; }
.related-recipes > h2 { font-size: 1.35rem; text-transform: uppercase; border-bottom: 3px solid var(--color-ink); padding-bottom: 8px; margin-bottom: 18px; }

/* ---------- Comments ---------- */
.comments-area { max-width: 760px; margin: 0 0 34px; }
.comments-area h2 { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 0.82rem; color: var(--color-muted); margin: 4px 0 8px; }
.comment-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); min-width: 0;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form p { margin-bottom: 14px; }

/* ---------- 404 / not found ---------- */
.not-found { padding: 34px 0; }
.not-found h1, .not-found h2 { font-size: 1.8rem; }
.not-found .masthead-search { margin: 0 0 16px; max-width: 560px; }

/* ---------- Pagination ---------- */
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.nav-links a, .nav-links span {
  padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px;
  background: var(--color-surface); font-weight: 700; font-size: 0.92rem; color: var(--color-ink);
}
.nav-links a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); text-decoration: none; }
.nav-links .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- FAQ / details ---------- */
.rank-math-faq-item, .entry-content details {
  border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-surface); padding: 14px 16px; margin-bottom: 12px;
}
.rank-math-faq-item h3, .entry-content summary { font-size: 1.05rem; margin: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: #cfe6e0; margin-top: 20px; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 16px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.4rem; margin: 0 0 6px; }
.footer-brand-name a { color: #fff; }
.footer-brand-name a:hover { color: var(--color-accent); text-decoration: none; }
.footer-tagline { color: var(--color-accent); font-weight: 700; font-size: 0.92rem; }
.site-footer h2 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer p { font-size: 0.92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cfe6e0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 16px 0 20px; font-size: 0.85rem; text-align: center; }
.footer-bottom p { margin: 0; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--color-surface); border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 18px rgba(12, 43, 40, 0.18);
  padding: 14px 16px; display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
/* The banner is hidden via the `hidden` attribute after Accept/Decline
   (see assets/js/main.js). Author `display:flex` above would override
   the UA [hidden] rule, so this rule is required — without it the
   banner stays visible forever even after a choice is saved. */
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 640px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- WPRM recipe card polish ---------- */
.wprm-recipe-container { scroll-margin-top: 80px; }
.wprm-recipe-container { margin: 28px 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .single-sidebar, .trending-bar, .utility-bar,
  .cookie-banner, .recipe-jump, .post-nav, .comments-area, .related-recipes { display: none !important; }
  body { background: #fff; }
  .single-layout { display: block; }
  .entry-content { font-size: 12pt; }
}
