/* ═══════════════════════════════════════════════════════════
   SITE.CSS — CrispAndSavory
   All values injected from site_crispandsavory.json by Script 1
   ═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --primary:       #5B4B8A;
  --primary-dark:  #3A2D5F;
  --primary-light: #F5F1FF;
  --secondary:     #FBF8FF;
  --accent:        #FF8A5B;
  --text:          #1c1c1e;
  --text-light:    #3d3d3d;
  --text-muted:    #888888;
  --bg:            #fefefe;
  --bg-section:    #F3EEFA;
  --border:        #DED4F0;
  --white:         #ffffff;
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Nunito', system-ui, sans-serif;
  --radius:        6px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 3px 14px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 36px rgba(0,0,0,0.13);
  --max-width:     1200px;
  --transition:    all 0.22s ease;
  --header-h:      80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea { font-family: var(--font-body); }

/* ── READING PROGRESS BAR ── */
#reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.1s linear;
}

/* ── TOP BAR ── */
.site-top-bar {
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
}
.site-top-bar a { color: white; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); }
.site-top-bar a:hover { border-bottom-color: white; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.header-social { display: flex; gap: 10px; align-items: center; }
.header-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.header-social a:hover { background: var(--primary-dark); transform: translateY(-2px); }
.header-social svg { width: 15px; height: 15px; fill: white; }

.site-logo {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 700;
  color: var(--text); letter-spacing: -0.5px;
  text-align: center; display: block;
}
.site-logo span { color: var(--primary); }
.site-tagline {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  display: block; margin-top: 2px;
}
.logo-img { height: 44px; width: auto; }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-search-btn {
  background: none; border: none;
  color: var(--text-light); padding: 6px;
  transition: var(--transition);
}
.header-search-btn:hover { color: var(--primary); }
.header-search-btn svg { width: 20px; height: 20px; }

/* Search overlay */
.search-overlay {
  display: none; position: fixed;
  inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  width: 90%; max-width: 560px;
  box-shadow: var(--shadow-lg);
}
.search-form {
  display: flex; gap: 0;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-form input {
  flex: 1; padding: 12px 16px;
  border: none; outline: none;
  font-size: 15px; background: var(--bg);
}
.search-form button {
  padding: 12px 20px;
  background: var(--primary); border: none;
  color: white; font-weight: 700;
}
.search-close {
  display: block; margin-top: 12px;
  text-align: right; font-size: 12px;
  color: var(--text-muted); cursor: pointer;
}

/* ── NAV ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  justify-content: center;
}
.nav-menu,
#site-nav-menu {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 14px 18px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition);
}
.nav-item > a:hover,
.nav-item > a.active { color: var(--primary); }
.nav-item.has-dropdown > a::after {
  content: ' ▾'; font-size: 10px;
}

/* Dropdown */
.dropdown {
  display: none; position: absolute;
  top: 100%; left: 0; z-index: 50;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
}
.nav-item.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--primary); background: var(--bg-section); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none;
  padding: 8px; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto; padding: 12px 24px;
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-light); }

/* ── MAIN LAYOUT ── */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* 70/30 grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.content-area { min-width: 0; }

/* ── AD ZONES ── */
.ad-zone {
  background: var(--bg-section);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-zone-header { margin-bottom: 24px; min-height: 90px; }
.ad-zone-content { margin: 32px 0; min-height: 250px; }
.ad-zone-sidebar { margin-bottom: 24px; min-height: 250px; }
/* Hide ad zones when ads are disabled */
.ads-disabled .ad-zone { display: none; }

/* ── HOME PAGE HERO ── */
.hero-section {
  margin-bottom: 52px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.hero-card { position: relative; overflow: hidden; border-radius: 12px; }
.hero-card-main {
  grid-row: 1 / 3;
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-card-main img { height: 460px; }
.hero-card-sm img { height: 220px; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}
.hero-card-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px; display: block;
}
.hero-card-title {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 700;
  line-height: 1.3; color: white;
}
.hero-card-main .hero-card-title { font-size: 26px; }

/* ── SECTION HEADERS ── */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--text);
}
.section-link {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--primary);
  transition: var(--transition);
}
.section-link:hover { color: var(--primary-dark); }

/* ── RECIPE CARDS GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.recipe-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.recipe-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
.recipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.recipe-card:hover .recipe-card-img img { transform: scale(1.06); }
.recipe-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.recipe-card-body { padding: 16px; }
.recipe-card-title {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  color: var(--text); line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  font-size: 11px; color: var(--text-muted);
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 12px;
}
.recipe-card-link {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.recipe-card-link:hover { color: var(--primary-dark); gap: 8px; }

/* Skeleton loader */
.skeleton { background: var(--bg-section); border-radius: 12px; overflow: hidden; }
.skel-img { height: 200px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200%; animation: shimmer 1.4s infinite; }
.skel-text { height: 14px; margin: 14px 14px 8px; border-radius: 4px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%); background-size: 200%; animation: shimmer 1.4s infinite; }
.skel-text.short { width: 55%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── NEWSLETTER BANNER ── */
.newsletter-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin: 48px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter-banner::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.newsletter-banner h2 {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 700;
  margin-bottom: 10px; color: white;
}
.newsletter-banner p {
  font-size: 15px; color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.nl-form {
  display: flex; justify-content: center;
  gap: 0; max-width: 440px; margin: 0 auto;
}
.nl-form input {
  flex: 1; padding: 13px 18px;
  border: none; font-size: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.nl-form button {
  padding: 13px 24px;
  background: var(--accent); border: none;
  color: white; font-weight: 700;
  font-size: 13px; letter-spacing: 0.5px;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--transition);
}
.nl-form button:hover { filter: brightness(1.1); }

/* ── CATEGORY SECTION ── */
.category-section { margin-bottom: 52px; }
.category-section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.category-section-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.category-section-title::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.category-discover-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary);
  transition: var(--transition);
}
.category-discover-btn:hover {
  background: var(--primary); color: white;
}

/* ── SIDEBAR ── */
.sidebar { position: static; }
/* Sidebar ad zone appears below sidebar content */
.sidebar-ad-below {
  margin-top: 24px;
  min-height: 250px;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 8px;
}

/* Author widget */
.author-widget { text-align: center; }
.author-widget-avatar {
  width: 84px; height: 84px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 12px; display: block;
  box-shadow: var(--shadow-sm);
}
.author-widget-name {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.author-widget-bio {
  font-size: 13px; color: var(--text-light);
  line-height: 1.6; margin-bottom: 14px;
}
.author-widget-social {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.author-widget-social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.author-widget-social a:hover { background: var(--primary); }
.author-widget-social a:hover svg { fill: white; }
.author-widget-social svg { width: 14px; height: 14px; fill: var(--text-muted); }
.btn-about {
  display: inline-block; padding: 8px 20px;
  background: var(--primary); color: white;
  border-radius: 30px; font-size: 11px;
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-about:hover { background: var(--primary-dark); }

/* Search widget */
.sidebar-search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-search input {
  flex: 1; padding: 9px 12px;
  border: none; font-size: 13px;
  outline: none; background: var(--bg);
}
.sidebar-search input:focus { background: white; }
.sidebar-search button {
  padding: 9px 12px;
  background: var(--primary); border: none;
}
.sidebar-search button svg { width: 15px; height: 15px; stroke: white; fill: none; }

/* Categories widget */
.sidebar-cat-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-cat-item { border-bottom: 1px dotted var(--border); }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; font-size: 14px;
  color: var(--text-light); transition: var(--transition);
}
.sidebar-cat-item a:hover { color: var(--primary); padding-left: 6px; }
.sidebar-cat-item a::after { content: '→'; font-size: 12px; color: var(--border); }
.sidebar-cat-item a:hover::after { color: var(--primary); }

/* Latest recipes widget */
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post { display: flex; gap: 12px; align-items: flex-start; }
.sidebar-post img {
  width: 64px; height: 64px;
  border-radius: 8px; object-fit: cover;
  flex-shrink: 0;
}
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: var(--transition);
}
.sidebar-post-title:hover { color: var(--primary); }
.sidebar-post-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Newsletter widget */
.sidebar-nl-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nl-form input {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; outline: none;
}
.sidebar-nl-form input:focus { border-color: var(--primary); }
.sidebar-nl-form button {
  padding: 9px; background: var(--primary);
  color: white; border: none;
  border-radius: var(--radius); font-size: 12px;
  font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; transition: var(--transition);
}
.sidebar-nl-form button:hover { background: var(--primary-dark); }

/* ── PAGE HERO (category/about etc) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  padding: 60px 24px;
  text-align: center;
  margin-bottom: 40px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 38px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.page-hero p { font-size: 15px; color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ── FOOTER ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.8); margin-top: 80px; }
.footer-top {
  max-width: var(--max-width); margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { }
.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: white; margin-bottom: 12px;
}
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 15px; height: 15px; fill: white; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 700;
  color: white; margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: white; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max-width); margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: white; }

/* ── NEWSLETTER POPUP ── */
.newsletter-popup {
  display: none; position: fixed;
  inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center;
}
.newsletter-popup.open { display: flex; }
.popup-box {
  background: white; border-radius: 16px;
  padding: 40px; max-width: 420px; width: 90%;
  text-align: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.popup-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 20px; color: var(--text-muted);
}
.popup-box h3 {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  margin-bottom: 10px;
}
.popup-box p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form input {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; outline: none;
}
.popup-form button {
  padding: 12px; background: var(--primary);
  color: white; border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; transition: var(--transition);
}
.popup-form button:hover { background: var(--primary-dark); }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 99;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
#back-to-top svg { width: 18px; height: 18px; stroke: white; fill: none; }

/* ── PAGINATION ── */
.pagination {
  display: flex; gap: 8px;
  justify-content: center; margin-top: 40px;
}
.pagination a, .pagination span {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-light); transition: var(--transition);
}
.pagination a:hover, .pagination .active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-card-main { grid-row: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-sm { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-inner { justify-content: space-between; }
  .nav-menu, #site-nav-menu { display: none; flex-direction: column; width: 100%; }
  .nav-menu.open, #site-nav-menu.open { display: flex; padding: 8px 0; }
  .nav-toggle { display: flex; }
  .nl-form { flex-direction: column; }
  .nl-form input, .nl-form button { border-radius: var(--radius); }
  .newsletter-banner { padding: 32px 24px; }
  .newsletter-banner h2 { font-size: 22px; }
  /* Header on mobile */
  .site-logo { font-size: 22px; }
  .site-tagline { display: none; }
  .header-social a { width: 28px; height: 28px; }
  .header-social svg { width: 12px; height: 12px; }
}

@media (max-width: 600px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .site-main { padding: 24px 16px 48px; }
  .page-hero h1 { font-size: 28px; }
  .hero-section { margin-bottom: 32px; }
}

/* ── PRINT — only recipe card ── */
@media print {
  body * { visibility: hidden !important; }
  .recipe-card-block,
  .recipe-card-block * { visibility: visible !important; }
  .recipe-card-block {
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
  }
  .rcb-actions, .rcb-rating { display: none !important; }
  #reading-progress, .site-top-bar, .site-header,
  .site-nav, .breadcrumb, .post-header,
  .post-actions, .affiliate-disclosure,
  .post-hero-img, .post-body, #table-of-contents,
  #related-recipes, .share-section, .post-nav,
  .comments-section, .sidebar, .site-footer,
  #newsletter-popup, #back-to-top,
  .ad-zone { display: none !important; }
}
