/*
Theme Name: RecipeWord Pro
Theme URI: https://recipegap.com
Author: Zakaria
Author URI: https://recipegap.com
Description: Premium recipe blog theme with 6 professional layouts. Optimized for Ezoic, Pinterest, SEO, LLM visibility & speed.
Version: 5.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recipeword-pro
Tags: recipe, food, blog, ezoic, pinterest, seo, fast, responsive
*/

/* ==========================================================================
   1. CSS VARIABLES (Light + Dark Mode)
   ========================================================================== */

:root {
  --rw-primary: #E63946;
  --rw-primary-hover: #C62E3A;
  --rw-primary-light: #FDECED;
  --rw-secondary: #1D3557;
  --rw-accent: #F4A261;
  --rw-accent-hover: #E08D4A;
  --rw-hero-text: #FFFFFF;
  --rw-infobox-color: var(--rw-secondary);
  --rw-highlight-color: var(--rw-accent);
  --rw-bg: #FAFAFA;
  --rw-bg-card: #FFFFFF;
  --rw-bg-alt: #F0F0F0;
  --rw-text: #2D2D2D;
  --rw-text-light: #6B7280;
  --rw-text-lighter: #9CA3AF;
  --rw-border: #E5E7EB;
  --rw-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --rw-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --rw-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --rw-shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --rw-radius-sm: 8px;
  --rw-radius-md: 12px;
  --rw-radius-lg: 16px;
  --rw-radius-xl: 24px;
  --rw-radius-full: 9999px;
  --rw-gap: 24px;
  --rw-gap-sm: 16px;
  --rw-gap-lg: 40px;
  --rw-container: 1200px;
  --rw-content: 800px;
  --rw-sidebar: 340px;
  --rw-trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --rw-trans-fast: 0.15s ease;
  --rw-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --rw-font-size: 17px;
  --rw-line-height: 1.7;
  --rw-header-h: 70px;
}

[data-theme="dark"] {
  --rw-bg: #121220;
  --rw-bg-card: #1A1A2E;
  --rw-bg-alt: #222238;
  --rw-text: #F0F0F0;
  --rw-text-light: #A0A0B8;
  --rw-text-lighter: #6E6E8A;
  --rw-border: #2A2A40;
  --rw-primary-light: #2A1A1C;
  --rw-shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --rw-shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --rw-shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --rw-shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--rw-font);
  font-size: var(--rw-font-size);
  line-height: var(--rw-line-height);
  color: var(--rw-text);
  background: var(--rw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--rw-primary); text-decoration: none; transition: color var(--rw-trans-fast); }
a:hover { color: var(--rw-primary-hover); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--rw-text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: 1.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.2rem; }
p { margin-bottom: 1.2em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

.rw-container { width: 100%; max-width: var(--rw-container); margin: 0 auto; padding: 0 var(--rw-gap); }
.rw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.rw-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--rw-bg-card);
  border-bottom: 1px solid var(--rw-border);
  height: var(--rw-header-h);
  transition: box-shadow var(--rw-trans), background var(--rw-trans);
}

.rw-header.scrolled { box-shadow: var(--rw-shadow-md); }

.rw-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--rw-container); margin: 0 auto; padding: 0 var(--rw-gap);
}

.rw-logo img { max-height: 45px; width: auto; }
.rw-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--rw-text); letter-spacing: -0.02em; }

.rw-nav { display: flex; align-items: center; gap: 8px; }

.rw-nav a {
  color: var(--rw-text); font-size: 0.95rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--rw-radius-full);
  transition: all var(--rw-trans); position: relative;
}

.rw-nav a:hover, .rw-nav a.active { color: var(--rw-primary); background: var(--rw-primary-light); }

.rw-dropdown { position: relative; }

.rw-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--rw-bg-card); border: 1px solid var(--rw-border);
  border-radius: var(--rw-radius-md); box-shadow: var(--rw-shadow-lg);
  min-width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transition: all var(--rw-trans); z-index: 100;
}

.rw-dropdown:hover .rw-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.rw-dropdown-menu a { display: block; padding: 10px 16px; border-radius: var(--rw-radius-sm); font-weight: 500; }
.rw-dropdown-menu a:hover { background: var(--rw-primary-light); }

.rw-header-actions { display: flex; align-items: center; gap: 12px; }

.rw-search-toggle, .rw-darkmode-toggle {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--rw-radius-full); color: var(--rw-text); transition: all var(--rw-trans);
}

.rw-search-toggle:hover, .rw-darkmode-toggle:hover { background: var(--rw-bg-alt); color: var(--rw-primary); }

.rw-search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 120px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: all var(--rw-trans);
}

.rw-search-overlay.active { opacity: 1; visibility: visible; }

.rw-search-box {
  width: 90%; max-width: 600px; background: var(--rw-bg-card);
  border-radius: var(--rw-radius-lg); padding: 8px;
  box-shadow: var(--rw-shadow-lg); transform: translateY(-20px); transition: transform var(--rw-trans);
}

.rw-search-overlay.active .rw-search-box { transform: translateY(0); }

.rw-search-box input {
  width: 100%; border: none; outline: none; padding: 16px 20px;
  font-size: 1.1rem; font-family: var(--rw-font); background: transparent;
  color: var(--rw-text); border-radius: var(--rw-radius-md);
}

.rw-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}

.rw-menu-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--rw-text); border-radius: 2px; transition: all var(--rw-trans);
}

.rw-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.rw-menu-toggle.active span:nth-child(2) { opacity: 0; }
.rw-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   5. HERO / FEATURED SECTION — Customizable text color
   ========================================================================== */

.rw-hero {
  position: relative; border-radius: var(--rw-radius-xl); overflow: hidden;
  margin: var(--rw-gap-lg) auto; max-width: var(--rw-container); height: 420px;
}

.rw-hero img { width: 100%; height: 100%; object-fit: cover; }

.rw-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--rw-gap-lg);
}

.rw-hero-cat {
  display: inline-block; background: var(--rw-primary); color: #fff;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 6px 14px; border-radius: var(--rw-radius-full);
  margin-bottom: 12px; width: fit-content;
}

.rw-hero h1 { color: var(--rw-hero-text); font-size: clamp(1.6rem, 4vw, 2.4rem); max-width: 650px; margin-bottom: 8px; }
.rw-hero h1 a { color: var(--rw-hero-text); }

.rw-hero-meta {
  color: var(--rw-hero-text); opacity: 0.85; font-size: 0.88rem;
  display: flex; align-items: center; gap: 16px;
}

/* ==========================================================================
   6. HOMEPAGE SECTIONS — Base styles
   ========================================================================== */

.rw-section { padding: var(--rw-gap-lg) 0; }

.rw-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--rw-gap); gap: 16px;
}

.rw-section-title {
  font-size: 1.5rem; font-weight: 800; position: relative;
  margin: 0; flex-shrink: 1; min-width: 0;
}

.rw-view-all {
  font-size: 0.9rem; font-weight: 600; color: var(--rw-primary);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}

.rw-view-all:hover { gap: 8px; }

.rw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rw-gap); }
.rw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rw-gap); }
.rw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rw-gap); }

/* ==========================================================================
   6A. SECTION HEADERS — Per-Layout Unique Professional Decorations
   ========================================================================== */

/* ── CLASSIC: Thick accent bar left + subtle bg strip ── */
.rw-layout-classic .rw-section-title {
  padding: 12px 0 12px 20px;
  border-left: 5px solid var(--rw-primary);
  background: linear-gradient(90deg, var(--rw-primary-light), transparent);
  border-radius: 0 var(--rw-radius-sm) var(--rw-radius-sm) 0;
}

/* ── MAGAZINE: Bold bottom double-line (primary + accent) ── */
.rw-layout-magazine .rw-section-title {
  padding-bottom: 16px;
}

.rw-layout-magazine .rw-section-title::before {
  content: ''; position: absolute; bottom: 6px; left: 0;
  width: 80px; height: 3px;
  background: var(--rw-primary); border-radius: 2px;
}

.rw-layout-magazine .rw-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--rw-accent); border-radius: 2px;
}

/* ── MINIMAL: Centered + decorative diamond divider ── */
.rw-layout-minimal .rw-section-header {
  justify-content: center; text-align: center;
  flex-direction: column; align-items: center;
}

.rw-layout-minimal .rw-section-title {
  display: flex; align-items: center; gap: 16px;
}

.rw-layout-minimal .rw-section-title::before,
.rw-layout-minimal .rw-section-title::after {
  content: ''; width: 50px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rw-accent));
  flex-shrink: 0;
}

.rw-layout-minimal .rw-section-title::after {
  background: linear-gradient(90deg, var(--rw-accent), transparent);
}

/* ── GRID MOSAIC: Bold uppercase + full gradient bar + top accent line ── */
.rw-layout-grid_mosaic .rw-section-title {
  font-size: 0.9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 16px 0 14px; color: var(--rw-text);
}

.rw-layout-grid_mosaic .rw-section-title::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--rw-accent); border-radius: 2px;
}

.rw-layout-grid_mosaic .rw-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--rw-primary) 0%, var(--rw-accent) 40%, transparent 100%);
}

/* ── SPOTLIGHT: Bold uppercase + thick double underlines ── */
.rw-layout-spotlight .rw-section-title {
  font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 18px;
}

.rw-layout-spotlight .rw-section-title::before {
  content: ''; position: absolute; bottom: 7px; left: 0;
  width: 70px; height: 4px;
  background: var(--rw-primary); border-radius: 2px;
}

.rw-layout-spotlight .rw-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 45px; height: 4px;
  background: var(--rw-accent); border-radius: 2px;
}

/* ── CARD STACK: Pill badge + accent dot prefix ── */
.rw-layout-card_stack .rw-section-title {
  font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--rw-primary-light); color: var(--rw-primary);
  padding: 10px 24px 10px 36px; border-radius: var(--rw-radius-full);
  display: inline-flex; align-items: center;
  border: 1px solid var(--rw-primary);
}

.rw-layout-card_stack .rw-section-title::before {
  content: ''; position: absolute; left: 16px;
  width: 8px; height: 8px;
  background: var(--rw-primary); border-radius: var(--rw-radius-full);
}

.rw-layout-card_stack .rw-section-title::after { display: none; }

/* ==========================================================================
   6B. EDITOR'S PICKS (1 large + 3 small grid)
   ========================================================================== */

.rw-picks-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--rw-gap);
}

.rw-pick-large {
  grid-row: 1 / 4; position: relative;
  border-radius: var(--rw-radius-lg); overflow: hidden; min-height: 420px;
}

.rw-pick-large img {
  width: 100%; height: 100%; object-fit: cover; transition: transform var(--rw-trans);
}

.rw-pick-large:hover img { transform: scale(1.03); }

.rw-pick-large .rw-pick-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}

.rw-pick-large .rw-pick-overlay h3 { color: #fff; font-size: 1.4rem; margin: 8px 0 4px; line-height: 1.3; }
.rw-pick-large .rw-pick-meta { color: rgba(255,255,255,0.7); font-size: 0.82rem; display: flex; gap: 12px; }

.rw-picks-small { display: flex; flex-direction: column; gap: var(--rw-gap); }

.rw-pick-sm {
  display: flex; gap: 16px;
  background: var(--rw-bg-card); border-radius: var(--rw-radius-md);
  overflow: hidden; box-shadow: var(--rw-shadow-sm); transition: all var(--rw-trans);
}

.rw-pick-sm:hover { box-shadow: var(--rw-shadow-md); transform: translateX(4px); }
.rw-pick-sm img { width: 130px; height: 130px; object-fit: cover; flex-shrink: 0; }

.rw-pick-sm-body {
  padding: 16px 16px 16px 0; display: flex;
  flex-direction: column; justify-content: center;
}

.rw-pick-sm-body h4 {
  font-size: 0.95rem; font-weight: 700; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--rw-text);
}

.rw-pick-sm-body span { font-size: 0.78rem; color: var(--rw-text-lighter); }

/* ==========================================================================
   6C. SEASONAL SECTION (horizontal scroll — CSS only)
   ========================================================================== */

.rw-scroll-row {
  display: flex; gap: var(--rw-gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; scrollbar-width: none;
}

.rw-scroll-row::-webkit-scrollbar { display: none; }

.rw-scroll-row::after {
  content: ''; width: var(--rw-gap); flex: 0 0 var(--rw-gap);
}

.rw-scroll-row .rw-card {
  min-width: 260px; max-width: 280px;
  flex-shrink: 0; scroll-snap-align: start;
}

/* ==========================================================================
   6D. QUICK & EASY ROW (compact)
   ========================================================================== */

.rw-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rw-gap); }

.rw-quick-card {
  display: flex; gap: 14px;
  background: var(--rw-bg-card); border-radius: var(--rw-radius-md);
  padding: 14px; box-shadow: var(--rw-shadow-sm);
  transition: all var(--rw-trans); align-items: center;
}

.rw-quick-card:hover { box-shadow: var(--rw-shadow-md); transform: translateY(-2px); }

.rw-quick-card img {
  width: 80px; height: 80px; border-radius: var(--rw-radius-sm);
  object-fit: cover; flex-shrink: 0;
}

.rw-quick-card-body h4 {
  font-size: 0.9rem; font-weight: 700; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--rw-text);
}

.rw-quick-card-body span { font-size: 0.75rem; color: var(--rw-text-lighter); font-weight: 500; }

/* ==========================================================================
   7. RECIPE CARD (Global)
   ========================================================================== */

.rw-card {
  background: var(--rw-bg-card); border-radius: var(--rw-radius-lg);
  overflow: hidden; box-shadow: var(--rw-shadow-sm);
  transition: all var(--rw-trans); position: relative;
}

.rw-card:hover { box-shadow: var(--rw-shadow-hover); transform: translateY(-4px); }

.rw-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }

.rw-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform var(--rw-trans);
}

.rw-card:hover .rw-card-img img { transform: scale(1.05); }

.rw-card-quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 30px 16px 12px; display: flex; gap: 16px;
  opacity: 0; transform: translateY(8px); transition: all var(--rw-trans);
}

.rw-card:hover .rw-card-quick { opacity: 1; transform: translateY(0); }

.rw-card-quick span {
  color: #fff; font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

.rw-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--rw-primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 5px 12px; border-radius: var(--rw-radius-full); z-index: 2;
}

.rw-card-body { padding: 16px; }

.rw-card-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rw-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--rw-text-light); }

/* ==========================================================================
   8. SINGLE POST LAYOUT
   ========================================================================== */

.rw-post-layout {
  display: grid; grid-template-columns: 1fr var(--rw-sidebar);
  gap: var(--rw-gap-lg); max-width: var(--rw-container);
  margin: 0 auto; padding: var(--rw-gap-lg) var(--rw-gap);
}

.rw-post-content { min-width: 0; }

.rw-breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--rw-text-light);
  margin-bottom: var(--rw-gap); flex-wrap: wrap;
}

.rw-breadcrumbs a { color: var(--rw-text-light); }
.rw-breadcrumbs a:hover { color: var(--rw-primary); }
.rw-breadcrumbs span.sep { color: var(--rw-text-lighter); }

.rw-post-header { margin-bottom: var(--rw-gap); }
.rw-post-header h1 { margin-bottom: 16px; }

.rw-post-meta {
  display: flex; align-items: center; gap: 20px;
  color: var(--rw-text-light); font-size: 0.9rem; flex-wrap: wrap;
}

.rw-post-meta .rw-author { display: flex; align-items: center; gap: 10px; }
.rw-author-img { width: 36px; height: 36px; border-radius: var(--rw-radius-full); object-fit: cover; }

.rw-post-featured { border-radius: var(--rw-radius-lg); overflow: hidden; margin-bottom: var(--rw-gap); }
.rw-post-featured img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

/* ==========================================================================
   8A. TABLE OF CONTENTS
   ========================================================================== */

.rw-toc {
  background: var(--rw-bg-card);
  border: 1px solid var(--rw-infobox-color);
  border-radius: var(--rw-radius-md);
  overflow: hidden; margin-bottom: 48px; padding: 0;
}

.rw-toc-title {
  background: var(--rw-infobox-color); color: #fff;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 14px 24px; margin-bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}

.rw-toc-arrow { font-size: 0.75rem; color: #fff; transition: transform 0.25s ease; }
.rw-toc.collapsed .rw-toc-arrow { transform: rotate(-90deg); }

.rw-toc-list { list-style: none; padding: 16px 24px; margin: 0; display: none; }
.rw-toc-list.rw-toc-open { display: block; }

.rw-toc-list li { padding: 0; border-bottom: 1px solid var(--rw-border); }
.rw-toc-list li:last-child { border-bottom: none; }

.rw-post-body .rw-toc .rw-toc-list li,
.rw-post-content .rw-toc .rw-toc-list li {
  padding-left: 0 !important; position: static !important;
}

.rw-post-body .rw-toc .rw-toc-list li::before,
.rw-post-content .rw-toc .rw-toc-list li::before { display: none !important; }

.rw-post-body .rw-toc .rw-toc-list a,
.rw-post-body .rw-toc .rw-toc-list a:visited,
.rw-post-body .rw-toc .rw-toc-list a:link,
.rw-post-content .rw-toc .rw-toc-list a,
.rw-toc .rw-toc-list a {
  color: var(--rw-text) !important;
  text-decoration: none !important;
  text-underline-offset: unset !important;
  text-decoration-thickness: unset !important;
  text-decoration-color: unset !important;
  border-bottom: none !important;
  background: none !important;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-size: 0.93rem; font-weight: 500;
  line-height: 1.5; transition: color 0.2s ease;
}

.rw-toc .rw-toc-list a::before {
  content: ''; width: 7px; height: 7px;
  background: var(--rw-accent); border-radius: var(--rw-radius-full);
  flex-shrink: 0; transition: background 0.2s ease;
}

.rw-post-body .rw-toc .rw-toc-list a:hover,
.rw-post-content .rw-toc .rw-toc-list a:hover,
.rw-toc .rw-toc-list a:hover {
  color: var(--rw-primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: var(--rw-primary) !important;
  border-bottom: none !important;
}

.rw-toc .rw-toc-list a:hover::before { background: var(--rw-primary); }

[data-theme="dark"] .rw-toc { background: var(--rw-bg-card); border-color: var(--rw-infobox-color); }
[data-theme="dark"] .rw-toc-title { background: var(--rw-infobox-color); }
[data-theme="dark"] .rw-toc .rw-toc-list a { color: var(--rw-text-light) !important; }
[data-theme="dark"] .rw-toc .rw-toc-list a:hover { color: var(--rw-primary) !important; }

/* ==========================================================================
   8B. POST BODY — STYLED CONTENT
   ========================================================================== */

.rw-post-body { font-size: var(--rw-font-size); line-height: var(--rw-line-height); color: var(--rw-text); }
.rw-post-body p { margin-bottom: 1.4em; letter-spacing: -0.005em; }
.rw-post-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-top: 1rem; color: var(--rw-text); }
.rw-post-body h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--rw-text); }
.rw-post-body h4 { margin-top: 1.4rem; margin-bottom: 0.5rem; color: var(--rw-text); }
.rw-post-body h5, .rw-post-body h6 { margin-top: 1.2rem; margin-bottom: 0.4rem; color: var(--rw-text); }

/* STYLE A: Classic */
.rw-style-a .rw-post-body h2:not(.rw-why-works h2) {
  margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 10px;
  border-bottom: 3px solid var(--rw-accent); width: fit-content; max-width: 100%;
}

.rw-style-a .rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li::before {
  content: '\2713'; width: auto; height: auto; background: none;
  color: var(--rw-accent); font-weight: 800; font-size: 0.9em; top: 7px; left: 4px;
}

/* STYLE B: Editorial */
.rw-style-b .rw-post-body h2:not(.rw-why-works h2) {
  margin-top: 2.5rem; margin-bottom: 1rem; padding-top: 16px;
  border-top: 2px solid var(--rw-border);
}

.rw-style-b .rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li::before {
  content: ''; width: 7px; height: 7px; background: none;
  border: 2px solid var(--rw-accent); border-radius: var(--rw-radius-full); top: 13px; left: 6px;
}

.rw-style-b .rw-post-body blockquote {
  border-left: none; border: 1px solid var(--rw-border);
  background: var(--rw-bg-alt); border-radius: var(--rw-radius-md);
  position: relative; padding-left: 50px;
}

.rw-style-b .rw-post-body blockquote::before {
  content: '\201C'; position: absolute; left: 16px; top: 8px;
  font-size: 3rem; color: var(--rw-accent); font-family: Georgia, serif; line-height: 1;
}

/* STYLE C: Modern */
.rw-style-c .rw-post-body h2:not(.rw-why-works h2) {
  margin-top: 2.5rem; margin-bottom: 1rem; padding-left: 20px; position: relative;
}

.rw-style-c .rw-post-body h2:not(.rw-why-works h2)::before {
  content: ''; position: absolute; left: 0; top: calc(1rem + 0.55em);
  width: 8px; height: 8px; background: var(--rw-primary); border-radius: var(--rw-radius-full);
}

.rw-style-c .rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li::before {
  content: '\2014'; width: auto; height: auto; background: none;
  color: var(--rw-text-lighter); font-weight: 400; font-size: 0.85em; top: 7px; left: 4px;
}

/* Post Body — Images */
.rw-post-body img:not(.wprm-recipe-container img) {
  border-radius: var(--rw-radius-md); margin: 1.8rem 0; box-shadow: var(--rw-shadow-sm);
}

/* Post Body — Links */
.rw-post-body a:not(.wprm-recipe-container a):not(.rw-toc a):not(.rw-toc-list a) {
  color: var(--rw-link, var(--rw-primary)); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: var(--rw-link, var(--rw-primary));
}

.rw-post-body a:not(.wprm-recipe-container a):not(.rw-toc a):not(.rw-toc-list a):hover {
  text-decoration-thickness: 2px; opacity: 0.85;
}

/* Post Body — Blockquotes */
.rw-post-body blockquote {
  border-left: 4px solid var(--rw-accent); padding: 20px 24px;
  margin: 2rem 0; background: var(--rw-primary-light);
  border-radius: 0 var(--rw-radius-md) var(--rw-radius-md) 0;
  font-style: italic; font-size: 1.05em; color: var(--rw-text);
}

/* Post Body — UL */
.rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) { list-style: none; padding-left: 0; }

.rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li {
  padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--rw-border);
}

.rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li:last-child { border-bottom: none; }

.rw-post-body ul:not(.rw-toc-list):not(.wprm-recipe-container ul) li::before {
  content: ''; position: absolute; left: 6px; top: 14px;
  width: 8px; height: 8px; background: var(--rw-accent); border-radius: var(--rw-radius-full);
}

/* Post Body — OL */
.rw-post-body ol:not(.wprm-recipe-container ol) { padding-left: 0; counter-reset: rw-ol; list-style: none; }

.rw-post-body ol:not(.wprm-recipe-container ol) li {
  padding: 8px 0 8px 40px; position: relative;
  counter-increment: rw-ol; border-bottom: 1px solid var(--rw-border);
}

.rw-post-body ol:not(.wprm-recipe-container ol) li:last-child { border-bottom: none; }

.rw-post-body ol:not(.wprm-recipe-container ol) li::before {
  content: counter(rw-ol); position: absolute; left: 0; top: 6px;
  width: 28px; height: 28px; background: var(--rw-accent); color: #fff;
  font-size: 0.8rem; font-weight: 700; border-radius: var(--rw-radius-full);
  display: flex; align-items: center; justify-content: center;
}

.rw-post-body strong { color: var(--rw-text); font-weight: 700; }

/* WPRM Reset */
.rw-post-body .wprm-recipe-container h2,
.rw-post-body .wprm-recipe-container h3,
.rw-post-body .wprm-recipe-container h4 {
  border: none; padding: 0; background: none; width: auto; margin-top: 0;
}

.rw-post-body .wprm-recipe-container ul,
.rw-post-body .wprm-recipe-container ol { list-style: revert; padding-left: revert; }

.rw-post-body .wprm-recipe-container ul li,
.rw-post-body .wprm-recipe-container ol li { padding: revert; border-bottom: none; counter-increment: none; }

.rw-post-body .wprm-recipe-container ul li::before,
.rw-post-body .wprm-recipe-container ol li::before { display: none; }

.rw-post-body .wprm-recipe-container img { border-radius: 0; margin: 0; box-shadow: none; }

.rw-post-body .rw-toc { margin-bottom: 48px; }
.rw-post-body .rw-toc-list li { padding-left: 0 !important; border-bottom: 1px solid var(--rw-border); }
.rw-post-body .rw-toc-list li::before { display: none !important; }

/* ==========================================================================
   8C. "WHY THIS WORKS"
   ========================================================================== */

.rw-why-works {
  border: 2px solid var(--rw-highlight-color); border-radius: var(--rw-radius-md);
  padding: 32px 28px 24px; margin: 2.5rem 0; position: relative; background: var(--rw-bg-card);
}

.rw-why-works-title {
  position: absolute; top: -13px; left: 24px; background: var(--rw-bg-card);
  padding: 0 12px; font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rw-highlight-color); line-height: 26px;
  display: flex; align-items: center; gap: 6px;
}

.rw-why-works-title::before { content: '\1F4A1'; font-size: 1rem; }

.rw-why-works h2 {
  margin-top: 0 !important; margin-bottom: 16px !important;
  padding: 0 !important; border: none !important; background: none !important;
  font-size: 1.2rem !important; color: var(--rw-text) !important; width: auto !important; border-top: none !important;
}

.rw-why-works:has(.rw-why-works-title) h2 { display: none; }
.rw-why-works p { margin-bottom: 0.8em; font-size: 0.95rem; }
.rw-why-works ul { margin-bottom: 0; }
.rw-why-works ul li { border-bottom-color: rgba(0,0,0,0.06); font-size: 0.95rem; }

.rw-why-works ul li::before {
  content: '' !important; width: 6px !important; height: 6px !important;
  background: var(--rw-highlight-color) !important; border-radius: var(--rw-radius-full) !important;
  top: 14px !important; left: 6px !important; border: none !important;
  color: unset !important; font-size: unset !important; font-weight: unset !important;
}

[data-theme="dark"] .rw-why-works { background: var(--rw-bg-card); border-color: var(--rw-highlight-color); }
[data-theme="dark"] .rw-why-works-title { background: var(--rw-bg-card); }

/* ==========================================================================
   8D. "PRO TIPS"
   ========================================================================== */

.rw-pro-tips {
  border: 1px solid var(--rw-infobox-color); border-radius: var(--rw-radius-md);
  overflow: hidden; margin: 2.5rem 0; background: var(--rw-bg-card);
}

.rw-pro-tips-header {
  background: var(--rw-infobox-color); color: #fff; padding: 14px 24px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px;
}

.rw-pro-tips-header::before { content: '\2B50'; font-size: 1rem; }

.rw-pro-tips-body { padding: 24px 28px 20px; }
.rw-pro-tips-body p { margin-bottom: 0.8em; font-size: 0.95rem; }
.rw-pro-tips-body ul { margin-bottom: 0; }
.rw-pro-tips-body ul li { border-bottom-color: rgba(0,0,0,0.06); font-size: 0.95rem; }

.rw-pro-tips-body ul li::before {
  content: '' !important; width: 6px !important; height: 6px !important;
  background: var(--rw-infobox-color) !important; border-radius: var(--rw-radius-full) !important;
  top: 14px !important; left: 6px !important; border: none !important;
  color: unset !important; font-size: unset !important; font-weight: unset !important;
}

.rw-pro-tips-body h2 { display: none; }

[data-theme="dark"] .rw-pro-tips { background: var(--rw-bg-card); border-color: var(--rw-infobox-color); }
[data-theme="dark"] .rw-pro-tips-header { background: var(--rw-infobox-color); }

/* ==========================================================================
   9. JUMP TO RECIPE + PRINT + AD ZONES + AUTHOR
   ========================================================================== */

.rw-recipe-buttons { display: flex; gap: 12px; margin-bottom: var(--rw-gap); flex-wrap: wrap; }
.rw-btn-jump { background: var(--rw-primary); color: #fff; }
.rw-btn-jump:hover { background: var(--rw-primary-hover); color: #fff; }

.rw-btn-print {
  background: var(--rw-secondary); color: #fff; border: none;
  font-family: var(--rw-font); cursor: pointer;
}

.rw-btn-print:hover { background: var(--rw-primary); color: #fff; }
.rw-ad-zone { margin: 24px 0; min-height: 50px; text-align: center; }

.rw-author-box {
  display: flex; gap: 20px; align-items: center;
  background: var(--rw-bg-alt); border-radius: var(--rw-radius-lg);
  padding: 24px; margin-top: var(--rw-gap-lg);
}

.rw-author-box img { width: 80px; height: 80px; border-radius: var(--rw-radius-full); object-fit: cover; flex-shrink: 0; }
.rw-author-box strong { font-size: 1.05rem; display: block; }
.rw-author-box p { color: var(--rw-text-light); font-size: 0.9rem; margin-top: 6px; margin-bottom: 0; }

/* ==========================================================================
   10. SIDEBAR
   ========================================================================== */

.rw-sidebar { position: sticky; top: calc(var(--rw-header-h) + 24px); align-self: start; }

.rw-widget {
  background: var(--rw-bg-card); border-radius: var(--rw-radius-lg);
  padding: 24px; margin-bottom: var(--rw-gap); box-shadow: var(--rw-shadow-sm);
}

.rw-widget-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--rw-primary);
}

.rw-author-sidebar { text-align: center; padding: 28px 24px 32px; }

.rw-author-sidebar-img {
  width: 100%; max-width: 200px; margin: 0 auto 20px;
  overflow: hidden; border-radius: var(--rw-radius-lg);
}

.rw-author-sidebar-img img {
  width: 100%; height: auto; aspect-ratio: 1/1;
  object-fit: cover; border-radius: var(--rw-radius-lg);
}

.rw-author-sidebar-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.rw-author-sidebar-bio { font-size: 0.9rem; color: var(--rw-text-light); line-height: 1.6; margin-bottom: 20px; }

.rw-author-sidebar-btn {
  display: inline-block; background: var(--rw-primary); color: #fff;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 12px 32px; border-radius: var(--rw-radius-sm);
  transition: all var(--rw-trans);
}

.rw-author-sidebar-btn:hover {
  background: var(--rw-primary-hover); color: #fff;
  transform: translateY(-2px); box-shadow: var(--rw-shadow-md);
}

.rw-rec-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rw-border); }
.rw-rec-post:last-child { border-bottom: none; }

.rw-rec-post img { width: 70px; height: 70px; border-radius: var(--rw-radius-sm); object-fit: cover; flex-shrink: 0; }

.rw-rec-post-title {
  font-size: 0.88rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rw-rec-post-title a { color: var(--rw-text); }
.rw-rec-post-title a:hover { color: var(--rw-primary); }
.rw-ad-sticky { min-height: 250px; text-align: center; }

/* ==========================================================================
   11. NEWSLETTER
   ========================================================================== */

.rw-newsletter {
  background: linear-gradient(135deg, var(--rw-primary), var(--rw-accent));
  border-radius: var(--rw-radius-xl); padding: 40px;
  text-align: center; color: #fff; margin: var(--rw-gap-lg) 0;
}

.rw-newsletter h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; margin-top: 0; }
.rw-newsletter p { opacity: 0.9; font-size: 0.95rem; margin-bottom: 20px; }

.rw-newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }

.rw-newsletter-form input {
  flex: 1; padding: 14px 20px; border: none; border-radius: var(--rw-radius-full);
  font-family: var(--rw-font); font-size: 0.95rem; outline: none;
}

.rw-newsletter-form button {
  background: var(--rw-secondary); color: #fff; border: none;
  padding: 14px 28px; font-family: var(--rw-font); font-size: 0.95rem;
  font-weight: 700; border-radius: var(--rw-radius-full);
  cursor: pointer; transition: all var(--rw-trans); white-space: nowrap;
}

.rw-newsletter-form button:hover { transform: translateY(-2px); box-shadow: var(--rw-shadow-md); }

/* ==========================================================================
   12. RELATED POSTS
   ========================================================================== */

.rw-related { margin-top: var(--rw-gap-lg); padding-top: var(--rw-gap-lg); border-top: 1px solid var(--rw-border); }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.rw-footer {
  background: var(--rw-secondary); color: rgba(255,255,255,0.8);
  padding: 60px 0 24px; margin-top: var(--rw-gap-lg);
}

.rw-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--rw-gap-lg); margin-bottom: 40px;
}

.rw-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; margin-top: 0; }
.rw-footer p { font-size: 0.9rem; line-height: 1.6; }

.rw-footer-links { list-style: none; padding: 0; margin: 0; }
.rw-footer-links li { margin-bottom: 10px; }
.rw-footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--rw-trans-fast); }
.rw-footer-links a:hover { color: #fff; }

.rw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
}

/* ==========================================================================
   14. BACK TO TOP
   ========================================================================== */

.rw-backtop {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--rw-primary); color: #fff; border: none;
  border-radius: var(--rw-radius-full); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--rw-shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all var(--rw-trans); z-index: 900;
}

.rw-backtop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.rw-backtop:hover { transform: translateY(-4px); box-shadow: var(--rw-shadow-lg); }

/* ==========================================================================
   15. ARCHIVE / CATEGORY PAGE
   ========================================================================== */

.rw-archive-header { text-align: center; padding: var(--rw-gap-lg) 0; margin-bottom: var(--rw-gap); }
.rw-archive-header h1 { margin-bottom: 8px; }
.rw-archive-header p { color: var(--rw-text-light); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.rw-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--rw-gap-lg); }

.rw-pagination a, .rw-pagination span {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--rw-radius-full); font-weight: 600; font-size: 0.9rem; transition: all var(--rw-trans);
}

.rw-pagination a { color: var(--rw-text); background: var(--rw-bg-card); box-shadow: var(--rw-shadow-sm); }
.rw-pagination a:hover { background: var(--rw-primary-light); color: var(--rw-primary); }
.rw-pagination span.current { background: var(--rw-primary); color: #fff; }

/* ==========================================================================
   16. 404 PAGE
   ========================================================================== */

.rw-404 { text-align: center; padding: 80px var(--rw-gap); }

.rw-404 h1 {
  font-size: clamp(4rem, 10vw, 8rem); color: var(--rw-primary); font-weight: 800; line-height: 1;
}

.rw-404 p { font-size: 1.1rem; color: var(--rw-text-light); margin: 16px 0 32px; }

.rw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rw-primary); color: #fff;
  padding: 14px 32px; border-radius: var(--rw-radius-full);
  font-weight: 700; font-size: 0.95rem; transition: all var(--rw-trans);
}

.rw-btn:hover {
  background: var(--rw-primary-hover); color: #fff;
  transform: translateY(-2px); box-shadow: var(--rw-shadow-md);
}

/* ==========================================================================
   17. SKELETON LOADING
   ========================================================================== */

.rw-skeleton {
  background: linear-gradient(90deg, var(--rw-bg-alt) 25%, var(--rw-border) 50%, var(--rw-bg-alt) 75%);
  background-size: 200% 100%; animation: rw-shimmer 1.5s infinite; border-radius: var(--rw-radius-sm);
}

@keyframes rw-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   18. PRINT STYLES
   ========================================================================== */

@media print {
  .rw-header, .rw-footer, .rw-sidebar, .rw-backtop, .rw-ad-zone,
  .rw-newsletter, .rw-related, .rw-toc, .rw-breadcrumbs, .rw-post-meta {
    display: none !important;
  }
  body { font-size: 12pt; color: #000; background: #fff; }
  .rw-post-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   19. PINTEREST HIDDEN IMAGE
   ========================================================================== */

.rw-pin-hidden {
  position: absolute; top: -9999px; left: -9999px;
  width: 0; height: 0; overflow: hidden; visibility: hidden;
}

/* ==========================================================================
   20. CATEGORY CARDS
   ========================================================================== */

.rw-cat-card {
  display: block; position: relative;
  border-radius: var(--rw-radius-lg); overflow: hidden;
  height: 180px; background: var(--rw-bg-alt);
}

.rw-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--rw-trans); }
.rw-cat-card:hover img { transform: scale(1.05); }

.rw-cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}

.rw-cat-card-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.rw-cat-card-count { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* ==========================================================================
   21. COMMENTS
   ========================================================================== */

.rw-comments { margin-top: var(--rw-gap-lg); padding-top: var(--rw-gap); border-top: 1px solid var(--rw-border); }
.rw-comment { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rw-border); }

.rw-comment-avatar { width: 44px; height: 44px; border-radius: var(--rw-radius-full); object-fit: cover; flex-shrink: 0; }
.rw-comment-author { font-weight: 700; font-size: 0.95rem; }
.rw-comment-date { font-size: 0.8rem; color: var(--rw-text-lighter); margin-left: 8px; }
.rw-comment-text { font-size: 0.93rem; margin-top: 6px; line-height: 1.6; }

.rw-comment-form textarea {
  width: 100%; min-height: 120px; padding: 16px;
  border: 1px solid var(--rw-border); border-radius: var(--rw-radius-md);
  font-family: var(--rw-font); font-size: 0.95rem; resize: vertical;
  outline: none; background: var(--rw-bg); color: var(--rw-text);
  transition: border-color var(--rw-trans-fast);
}

.rw-comment-form textarea:focus { border-color: var(--rw-primary); }

/* ==========================================================================
   22. ACCESSIBILITY
   ========================================================================== */

:focus-visible { outline: 2px solid var(--rw-primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ██  LAYOUT-SPECIFIC STYLES
   ══════════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   L2. MAGAZINE LAYOUT — Hero + Sidebar top fold
   ========================================================================== */

.rw-mag-top {
  display: grid; grid-template-columns: 1fr 340px;
  gap: var(--rw-gap-lg); margin-bottom: var(--rw-gap);
}

.rw-mag-hero { min-width: 0; }
.rw-mag-hero .rw-hero { margin: 0; height: 100%; min-height: 400px; }

.rw-mag-sidebar-picks { min-width: 0; }

.rw-mag-latest h3 {
  font-size: 1.1rem; font-weight: 800; margin: 0 0 16px;
  padding-bottom: 12px; position: relative;
}

.rw-mag-latest h3::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--rw-primary), var(--rw-accent));
  border-radius: 2px;
}

.rw-mag-post {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--rw-border); transition: all var(--rw-trans-fast);
}

.rw-mag-post:last-child { border-bottom: none; }
.rw-mag-post:hover { transform: translateX(4px); }

.rw-mag-post img {
  width: 70px; height: 70px; border-radius: var(--rw-radius-sm);
  object-fit: cover; flex-shrink: 0;
}

.rw-mag-post-body h4 {
  font-size: 0.88rem; font-weight: 700; margin: 0 0 4px;
  color: var(--rw-text); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}

.rw-mag-post:hover h4 { color: var(--rw-primary); }
.rw-mag-post-body span { font-size: 0.75rem; color: var(--rw-text-lighter); }

/* ==========================================================================
   L3. MINIMAL LAYOUT — Clean hero, centered
   ========================================================================== */

.rw-minimal-hero { margin: var(--rw-gap-lg) 0; text-align: center; }

.rw-minimal-hero-img {
  display: block; border-radius: var(--rw-radius-xl);
  overflow: hidden; margin-bottom: var(--rw-gap);
}

.rw-minimal-hero-img img {
  width: 100%; height: auto; aspect-ratio: 2/1;
  object-fit: cover; transition: transform var(--rw-trans);
}

.rw-minimal-hero-img:hover img { transform: scale(1.02); }

.rw-minimal-hero-body { max-width: 680px; margin: 0 auto; }
.rw-minimal-hero-body .rw-hero-cat { margin-bottom: 16px; }
.rw-minimal-hero-body h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.rw-minimal-hero-body h1 a { color: var(--rw-text); }
.rw-minimal-hero-body h1 a:hover { color: var(--rw-primary); }

.rw-minimal-hero-excerpt {
  color: var(--rw-text-light); font-size: 1.05rem;
  line-height: 1.6; margin-bottom: 12px;
}

.rw-minimal-hero-body .rw-hero-meta { color: var(--rw-text-lighter); justify-content: center; }

/* Minimal grid + card overrides */
.rw-layout-minimal .rw-grid-4 { grid-template-columns: repeat(3, 1fr); gap: var(--rw-gap-lg); }
.rw-layout-minimal .rw-card { box-shadow: none; border: 1px solid var(--rw-border); }
.rw-layout-minimal .rw-card:hover { box-shadow: var(--rw-shadow-md); border-color: transparent; }

/* ==========================================================================
   L4. GRID MOSAIC — Staggered image grid, no hero
   ========================================================================== */

.rw-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: var(--rw-gap-sm);
  margin: var(--rw-gap) 0 var(--rw-gap-lg);
}

.rw-mosaic-item {
  position: relative; border-radius: var(--rw-radius-lg);
  overflow: hidden; display: block;
}

.rw-mosaic-large {
  grid-column: span 2; grid-row: span 2;
}

.rw-mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--rw-trans);
}

.rw-mosaic-item:hover img { transform: scale(1.04); }

.rw-mosaic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}

.rw-mosaic-overlay h3 {
  color: #fff; font-size: 1rem; margin: 6px 0 4px; line-height: 1.3;
}

.rw-mosaic-large .rw-mosaic-overlay h3 { font-size: 1.5rem; }

.rw-mosaic-meta {
  color: rgba(255,255,255,0.7); font-size: 0.78rem;
  display: flex; gap: 10px;
}

/* Mosaic layout — card overrides for sections below */
.rw-layout-grid_mosaic .rw-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.rw-layout-grid_mosaic .rw-card {
  border-radius: var(--rw-radius-md);
}

/* ==========================================================================
   L5. SPOTLIGHT — Full-viewport hero
   ========================================================================== */

.rw-spotlight-hero {
  position: relative;
  height: 85vh; min-height: 500px; max-height: 800px;
  border-radius: var(--rw-radius-xl);
  overflow: hidden;
  margin: var(--rw-gap) 0;
}

.rw-spotlight-hero img {
  width: 100%; height: 100%; object-fit: cover;
}

.rw-spotlight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  text-align: center; padding: var(--rw-gap-lg) var(--rw-gap);
}

.rw-spotlight-overlay h1 {
  color: var(--rw-hero-text); font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 750px; margin-bottom: 12px;
}

.rw-spotlight-overlay h1 a { color: var(--rw-hero-text); }

.rw-spotlight-excerpt {
  color: var(--rw-hero-text); opacity: 0.85;
  font-size: 1.1rem; max-width: 600px; margin-bottom: 16px;
}

.rw-spotlight-overlay .rw-hero-meta {
  justify-content: center; margin-bottom: 24px;
}

.rw-spotlight-scroll-hint {
  color: var(--rw-hero-text); opacity: 0.6;
  animation: rw-bounce 2s infinite;
}

@keyframes rw-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Spotlight — alternating section feel */
.rw-layout-spotlight .rw-section:nth-child(even) {
  background: var(--rw-bg-alt);
  margin-left: calc(-1 * var(--rw-gap));
  margin-right: calc(-1 * var(--rw-gap));
  padding-left: var(--rw-gap);
  padding-right: var(--rw-gap);
  border-radius: var(--rw-radius-lg);
}

/* ==========================================================================
   L6. CARD STACK — Welcome banner + horizontal scroll rows
   ========================================================================== */

.rw-cardstack-welcome {
  text-align: center;
  padding: var(--rw-gap-lg) 0;
  margin-bottom: var(--rw-gap);
}

.rw-cardstack-site {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--rw-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.rw-cardstack-tagline {
  font-size: 1.1rem;
  color: var(--rw-text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Card Stack — force all grids into horizontal scroll rows */
.rw-layout-card_stack .rw-grid-4,
.rw-layout-card_stack .rw-grid-3,
.rw-layout-card_stack .rw-grid-2,
.rw-layout-card_stack .rw-picks-grid,
.rw-layout-card_stack .rw-quick-grid {
  display: flex;
  gap: var(--rw-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.rw-layout-card_stack .rw-grid-4::-webkit-scrollbar,
.rw-layout-card_stack .rw-grid-3::-webkit-scrollbar,
.rw-layout-card_stack .rw-grid-2::-webkit-scrollbar,
.rw-layout-card_stack .rw-picks-grid::-webkit-scrollbar,
.rw-layout-card_stack .rw-quick-grid::-webkit-scrollbar { display: none; }

.rw-layout-card_stack .rw-grid-4::after,
.rw-layout-card_stack .rw-grid-3::after,
.rw-layout-card_stack .rw-grid-2::after,
.rw-layout-card_stack .rw-picks-grid::after,
.rw-layout-card_stack .rw-quick-grid::after {
  content: ''; width: var(--rw-gap); flex: 0 0 var(--rw-gap);
}

.rw-layout-card_stack .rw-grid-4 .rw-card,
.rw-layout-card_stack .rw-grid-3 .rw-cat-card,
.rw-layout-card_stack .rw-grid-2 .rw-card,
.rw-layout-card_stack .rw-quick-grid .rw-quick-card {
  min-width: 280px; max-width: 300px;
  flex-shrink: 0; scroll-snap-align: start;
}

.rw-layout-card_stack .rw-cat-card { height: 200px; }

/* Card Stack — section spacing */
.rw-layout-card_stack .rw-section { padding: var(--rw-gap) 0; }

.rw-layout-card_stack .rw-section-header {
  margin-bottom: 16px;
}

/* ==========================================================================
   RESPONSIVE — All layouts
   ========================================================================== */

@media (max-width: 1024px) {
  .rw-post-layout { grid-template-columns: 1fr; }
  .rw-sidebar { position: static; }
  .rw-footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
  .rw-footer-about { grid-column: 1 / -1; }
  .rw-footer-social { justify-content: center !important; }
  .rw-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rw-hero { height: 340px; }

  /* Picks */
  .rw-picks-grid { grid-template-columns: 1fr; }
  .rw-pick-large { grid-row: auto; min-height: 300px; }
  .rw-picks-small { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .rw-picks-small::-webkit-scrollbar { display: none; }
  .rw-picks-small::after { content: ''; width: var(--rw-gap); flex: 0 0 var(--rw-gap); }
  .rw-pick-sm { min-width: 280px; flex-shrink: 0; }

  .rw-quick-grid { grid-template-columns: repeat(2, 1fr); }

  /* Magazine */
  .rw-mag-top { grid-template-columns: 1fr; }
  .rw-mag-hero .rw-hero { min-height: 300px; }

  /* Minimal */
  .rw-layout-minimal .rw-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Mosaic */
  .rw-mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .rw-mosaic-large { grid-column: span 2; grid-row: span 2; }

  .rw-layout-grid_mosaic .rw-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Spotlight */
  .rw-spotlight-hero { height: 70vh; min-height: 400px; }
}

@media (max-width: 768px) {
  :root { --rw-gap: 16px; --rw-gap-lg: 28px; }

  .rw-menu-toggle { display: flex; }

  .rw-nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--rw-bg-card); flex-direction: column; align-items: flex-start;
    padding: 80px 24px 24px; box-shadow: var(--rw-shadow-lg);
    transition: right var(--rw-trans); z-index: 999; overflow-y: auto;
  }

  .rw-nav.active { right: 0; }
  .rw-nav a { width: 100%; padding: 12px 16px; font-size: 1rem; }

  .rw-dropdown-menu {
    position: static; transform: none; box-shadow: none; border: none;
    background: var(--rw-bg-alt); border-radius: var(--rw-radius-sm);
    opacity: 1; visibility: visible; margin-top: 4px; margin-bottom: 4px;
  }

  .rw-grid-2, .rw-grid-3, .rw-grid-4 { grid-template-columns: 1fr; }

  .rw-hero { height: 280px; border-radius: var(--rw-radius-md); }
  .rw-hero-overlay { padding: var(--rw-gap); }

  .rw-section-header { flex-wrap: nowrap; align-items: center; }
  .rw-section-title { font-size: 1.2rem; flex: 1; min-width: 0; }
  .rw-view-all { font-size: 0.82rem; flex-shrink: 0; }

  .rw-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .rw-footer-social { justify-content: center !important; }
  .rw-footer-about { display: flex; flex-direction: column; align-items: center; }
  .rw-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .rw-newsletter { padding: 28px 20px; }
  .rw-newsletter-form { flex-direction: column; }

  .rw-pick-large { min-height: 240px; }
  .rw-pick-large .rw-pick-overlay h3 { font-size: 1.15rem; }
  .rw-picks-small { flex-direction: column; overflow-x: visible; }
  .rw-pick-sm { min-width: 0; }

  .rw-quick-grid { grid-template-columns: 1fr; }

  .rw-why-works { padding: 28px 20px 20px; }
  .rw-why-works-title { left: 16px; font-size: 0.75rem; }

  .rw-toc-list { padding: 14px 20px; }
  .rw-toc-title { padding: 12px 20px; font-size: 0.78rem; }

  .rw-pro-tips-header { font-size: 0.78rem; padding: 12px 20px; }
  .rw-pro-tips-body { padding: 20px 20px 16px; }

  /* Magazine mobile */
  .rw-mag-post img { width: 60px; height: 60px; }

  /* Minimal mobile */
  .rw-layout-minimal .rw-grid-4 { grid-template-columns: 1fr; }
  .rw-minimal-hero-img img { aspect-ratio: 3/2; }

  /* Mosaic mobile */
  .rw-mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .rw-mosaic-large { grid-column: span 1; grid-row: span 2; }

  .rw-layout-grid_mosaic .rw-grid-4 { grid-template-columns: 1fr; }

  /* Spotlight mobile */
  .rw-spotlight-hero { height: 60vh; min-height: 350px; border-radius: var(--rw-radius-md); }
  .rw-spotlight-overlay h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .rw-spotlight-excerpt { font-size: 0.95rem; }

  /* Card Stack — keep scroll on mobile */
  .rw-layout-card_stack .rw-grid-4 .rw-card,
  .rw-layout-card_stack .rw-grid-3 .rw-cat-card,
  .rw-layout-card_stack .rw-grid-2 .rw-card,
  .rw-layout-card_stack .rw-quick-grid .rw-quick-card {
    min-width: 240px; max-width: 260px;
  }

  .rw-cardstack-welcome { padding: var(--rw-gap) 0; }
}

@media (max-width: 480px) {
  .rw-hero { height: 220px; }
  .rw-hero h1 { font-size: 1.3rem; }
  .rw-card-body { padding: 12px; }
  .rw-card-title { font-size: 0.95rem; }

  .rw-mosaic-grid { grid-auto-rows: 180px; }
  .rw-spotlight-hero { height: 55vh; min-height: 300px; }
}