/* ==========================================================================
   Vidhyaranya — main stylesheet
   Learn. Grow. Live Sustainably.
   --------------------------------------------------------------------------
   1. Tokens          6. Cards & grids        11. Article layout
   2. Base            7. Home sections        12. Forms
   3. Layout utils    8. Monetisation blocks  13. Footer
   4. Buttons         9. Page hero/breadcrumb 14. Widgets (cookie, toast, top)
   5. Header & nav   10. Prose / content      15. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --forest: #235C3D;
  --forest-deep: #173F2A;
  --forest-ink: #12301F;
  --leaf: #6B9B67;
  --leaf-dark: #3F6F45;      /* text-safe leaf (AA on white & cream) */
  --leaf-soft: #DCE8D6;
  --cream: #E7E9D3;
  --cream-soft: #F4F5EA;
  --paper: #FBFBF6;
  --earth: #C7A875;
  --earth-dark: #8A6A35;     /* text-safe earth */
  --white: #FFFFFF;
  --ink: #1F2A22;
  --muted: #4E5B52;
  --line: #D9DCC8;
  --danger: #A23B2A;
  --success: #24663F;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 48, 31, .06), 0 2px 8px rgba(18, 48, 31, .05);
  --shadow: 0 10px 30px -12px rgba(18, 48, 31, .22);
  --shadow-lg: 0 24px 60px -24px rgba(18, 48, 31, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--forest-ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf-dark); }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--earth); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--leaf-soft); color: var(--forest-ink); }
.visually-hidden {
  position: absolute !important; 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: -60px; z-index: 1000;
  background: var(--forest); color: var(--white); padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* 3. Layout utilities ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: var(--section) 0; }
.section--cream { background: var(--cream-soft); }
.section--tint { background: linear-gradient(180deg, var(--paper), var(--cream-soft)); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--forest .section-head p { color: var(--cream); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--leaf-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--earth); border-radius: 2px; }
.section--forest .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--earth); }
.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* 4. Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--white); --btn-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--forest-deep); border-color: var(--forest-deep); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: var(--forest); }
.btn--outline:hover { --btn-fg: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--forest-ink); --btn-bd: var(--white); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); --btn-fg: var(--forest-ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); --btn-fg: var(--forest-ink); }
.btn--earth { --btn-bg: var(--earth); --btn-fg: var(--forest-ink); --btn-bd: var(--earth); }
.btn--earth:hover { background: #d8bd8d; border-color: #d8bd8d; --btn-fg: var(--forest-ink); }
.btn[aria-disabled="true"] { opacity: .75; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--forest);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 246, .9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(18, 48, 31, .35); border-color: var(--line); background: rgba(251, 251, 246, .97); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-ink); flex: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: .14em; }
.brand-tag { font-size: .72rem; color: var(--leaf-dark); letter-spacing: .06em; margin-top: 3px; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 11px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .94rem; position: relative;
}
.nav-list a:hover { color: var(--forest); background: var(--cream-soft); }
.nav-list a[aria-current="page"] { color: var(--forest); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px;
  background: var(--earth); border-radius: 2px;
}
.header-ctas { display: flex; gap: 10px; flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--forest-ink); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-ctas { display: none; }

/* 6. Cards & grids --------------------------------------------------------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(217, 220, 200, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card-media--wide { aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole-card click target */
.card--linked { position: relative; }
.card--linked .card-body .link-arrow, .card--linked .tag { position: relative; z-index: 1; }
.card-body p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-body .link-arrow { margin-top: auto; padding-top: 8px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--leaf-soft);
  color: var(--forest); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.tag--earth { background: #F1E6D0; color: var(--earth-dark); }

/* Focus cards: 5-up editorial mosaic */
.focus-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.focus-grid > :nth-child(-n+2) { grid-column: span 3; }
.focus-grid > :nth-child(n+3) { grid-column: span 2; }
.focus-grid > :nth-child(-n+2) .card-media { aspect-ratio: 16 / 9; }
.focus-card .card-body h3 { font-size: 1.35rem; }

/* Feature tiles (Why Vidhyaranya) */
.feature {
  padding: 30px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; height: 100%;
}
.feature:hover { transform: translateY(-4px); border-color: var(--leaf); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--forest); margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; }
.feature a { font-weight: 700; }

/* 7. Home sections --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(92vh, 860px); display: flex; align-items: center;
  padding: clamp(96px, 14vw, 160px) 0 clamp(120px, 14vw, 180px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(23, 63, 42, .55), transparent 60%),
    linear-gradient(100deg, rgba(18, 48, 31, .9) 0%, rgba(23, 63, 42, .72) 45%, rgba(23, 63, 42, .25) 100%);
}
.hero-content { max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.08; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--cream); font-weight: 600; }
.hero p.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: rgba(255, 255, 255, .92); max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 0; list-style: none; }
.hero-topics li {
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(231, 233, 211, .45);
  font-size: .85rem; color: var(--cream); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; color: var(--paper); }
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }

.welcome { position: relative; }
.welcome-media { position: relative; }
.welcome-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.welcome-badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--forest); color: var(--cream);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); max-width: 240px;
  font-family: var(--font-head); font-size: 1.1rem; line-height: 1.35;
}
.welcome-badge span { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--earth); margin-bottom: 6px; }
.pillars { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { border-top: 2px solid var(--earth); padding-top: 12px; }
.pillars strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--forest-ink); }
.pillars span { font-size: .92rem; color: var(--muted); }

/* Promo band (Divine Greens) */
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(199, 168, 117, .35), transparent 45%),
              linear-gradient(135deg, var(--forest-deep), var(--forest) 60%, #2f7150);
  color: var(--cream); padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.promo h2 { color: var(--white); }
.promo p { font-size: 1.1rem; max-width: 560px; }
.promo-art { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; }
.promo-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(231, 233, 211, .4); animation: spin 60s linear infinite; }
.promo-art .ring:nth-child(2) { inset: 14%; border-style: solid; border-color: rgba(199, 168, 117, .45); animation-duration: 90s; animation-direction: reverse; }
.promo-art img { position: absolute; inset: 26%; width: 48%; height: 48%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
.promo-note { font-size: .82rem; opacity: .8; margin-top: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Newsletter */
.newsletter {
  border-radius: var(--radius-lg); background: var(--cream); padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 155, 103, .35), transparent 70%);
}
.newsletter h2 { margin-bottom: .3em; }
.newsletter-form { position: relative; z-index: 1; }
.inline-field { display: flex; gap: 10px; background: var(--white); padding: 6px; border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.inline-field input { flex: 1; border: 0; background: transparent; padding: 10px 16px; font: inherit; min-width: 0; border-radius: 999px; }
.inline-field input:focus { outline: none; }
.inline-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(35, 92, 61, .18); }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* 8. Monetisation blocks --------------------------------------------------- */
.product-card .card-media { aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--cream), var(--leaf-soft)); display: grid; place-items: center; padding: 22px; }
.product-card .card-media img { width: auto; height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 18px 30px -16px rgba(18,48,31,.55); }
.product-card:hover .card-media img { transform: translateY(-4px) rotate(-1.5deg) scale(1.03); }
.price { font-family: var(--font-head); font-size: 1.7rem; color: var(--forest); font-weight: 700; line-height: 1; }
.price small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.product-details { font-size: .95rem; color: var(--muted); }
.product-details summary {
  cursor: pointer; font-weight: 700; color: var(--forest); list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary::after { content: "+"; font-size: 1.1rem; transition: transform .25s; }
.product-details[open] summary::after { transform: rotate(45deg); }
.product-details ul { margin: 10px 0 0; padding-left: 1.1em; }

.workshop {
  display: grid; grid-template-columns: 1fr 1.15fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.workshop-media { position: relative; min-height: 320px; background: var(--cream); }
.workshop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workshop-media .tag { position: absolute; top: 20px; left: 20px; background: var(--white); }
.workshop-body { padding: clamp(28px, 4vw, 52px); }
.workshop-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.outcomes { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.outcomes li { display: flex; gap: 12px; align-items: flex-start; }
.outcomes svg { flex: none; width: 22px; height: 22px; color: var(--leaf-dark); margin-top: 3px; }
.workshop-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.affiliate-card .card-media { aspect-ratio: 16 / 10; }
.affiliate-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.disclosure-bar {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm);
  background: #F6EFE0; border: 1px solid #E6D6B4; color: #5A4520; font-size: .95rem; margin-bottom: 32px;
}
.disclosure-bar svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.disclosure-bar a { color: #5A4520; font-weight: 700; }

/* Ad slots — collapse while empty (only comments inside). Never shows fake ads. */
.ad-slot { margin: 40px 0; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }
.ad-slot--sidebar { margin: 24px 0 0; }

/* 9. Page hero & breadcrumbs ------------------------------------------------ */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.page-hero .hero-bg img { object-position: center 75%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18, 48, 31, .92), rgba(23, 63, 42, .7) 55%, rgba(23, 63, 42, .35));
}
.page-hero h1 { color: var(--white); max-width: 840px; }
.page-hero p { max-width: 680px; font-size: 1.15rem; color: rgba(255,255,255,.9); margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); }
.breadcrumb li + li::before { content: "/"; opacity: .6; }
.breadcrumb a { color: var(--cream); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* 10. Prose / content ------------------------------------------------------- */
.prose { font-size: 1.09rem; line-height: 1.8; max-width: 72ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h3 { margin-top: 1.6em; }
.prose p.lead { font-size: 1.25rem; color: var(--forest-ink); line-height: 1.65; font-family: var(--font-head); font-weight: 400; }
.prose li { margin-bottom: .45em; }
.prose a { font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--earth);
  font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--forest-ink);
}
.tip, .note, .dg-callout {
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.6em 0; font-size: 1rem;
}
.tip { background: var(--leaf-soft); border-left: 4px solid var(--forest); }
.note { background: #F6EFE0; border-left: 4px solid var(--earth); }
.tip strong, .note strong { color: var(--forest-ink); }
.tip p:last-child, .note p:last-child { margin-bottom: 0; }
.dg-callout {
  display: flex; gap: 16px; align-items: center; background: var(--white);
  border: 1px dashed var(--leaf); padding: 18px 22px;
}
.dg-callout::before {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest) url("../images/favicon.svg") center / 34px no-repeat;
}
.dg-callout p { margin: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream); color: var(--forest); font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--cream-soft); font-weight: 700; color: var(--forest-ink); }
.table tr:last-child td { border-bottom: 0; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item h3 { margin: 0; font-size: 1.12rem; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-family: var(--font-head); font-weight: 700; color: var(--forest-ink); font-size: inherit;
}
.accordion-trigger:hover { color: var(--forest); }
.accordion-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); position: relative; transition: background .25s; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--forest); transition: transform .3s var(--ease);
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { background: var(--leaf-soft); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0); }
.accordion-panel { padding: 0 4px 22px; color: var(--muted); }
.accordion-panel p:last-child { margin-bottom: 0; }

/* 11. Article layout -------------------------------------------------------- */
.article-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 20px; font-size: .92rem; color: var(--cream); }
.article-meta .tag { background: var(--earth); color: var(--forest-ink); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; flex: none; }
.article-cover { margin: calc(-1 * clamp(28px, 4vw, 48px)) auto 0; position: relative; z-index: 2; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0 var(--section); align-items: start; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.sidebar-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sidebar-box h2 { font-size: 1.1rem; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.4;
  border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; transition: color .2s, border-color .2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--earth-dark); font-size: .8rem; padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--forest); border-left-color: var(--forest); }
.toc-mobile { display: none; margin-bottom: 32px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; color: var(--forest-ink); font-family: var(--font-head); font-size: 1.1rem; }
.toc-mobile[open] summary { margin-bottom: 8px; }
.sidebar-cta { background: var(--forest); color: var(--cream); border: 0; }
.sidebar-cta h2 { color: var(--white); }
.sidebar-cta p { font-size: .95rem; }
.article-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; color: var(--forest-ink); }
.share a, .share button {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--white); color: var(--forest); cursor: pointer; transition: background .2s, color .2s;
}
.share a:hover, .share button:hover { background: var(--forest); color: var(--white); }
.share svg { width: 18px; height: 18px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--cream-soft); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-box p { margin: 0; font-size: .97rem; color: var(--muted); }
.author-box strong { color: var(--forest-ink); display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 1.1rem; }

/* Blog toolbar */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; padding: 13px 18px 13px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit;
}
.search-field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(35, 92, 61, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); transition: all .2s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.results-count { font-size: .9rem; color: var(--muted); margin: -16px 0 24px; min-height: 1.4em; }
[hidden] { display: none !important; }

/* Resource list rows */
.resource-list { display: grid; gap: 16px; }
.resource-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
}
.resource-row .feature-icon { margin: 0; }
.resource-row h3 { font-size: 1.15rem; margin: 0 0 4px; }
.resource-row p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Stat-free value strip */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.value-strip > div { background: var(--white); padding: 26px 24px; }
.value-strip strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--forest-ink); margin-bottom: 6px; }
.value-strip span { color: var(--muted); font-size: .95rem; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.legal .prose h2 { font-size: 1.5rem; }
.legal-updated { font-size: .92rem; color: var(--muted); }
.config-note {
  background: #FFF8E8; border: 1px solid #EAD7A7; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; color: #5A4520;
}

/* 12. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--forest-ink); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid #C9CDB5; background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(35, 92, 61, .18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--forest); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 18px; font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E3F0E3; color: var(--success); border: 1px solid #BFDCC0; }
.form-status.is-error { background: #F8E6E2; color: var(--danger); border: 1px solid #ECC6BE; }
.form-status.is-info { background: #FFF8E8; color: #5A4520; border: 1px solid #EAD7A7; }
.newsletter-form .form-status { margin-top: 12px; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-aside .feature { padding: 24px; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer { background: var(--forest-ink); color: rgba(231, 233, 211, .82); padding-top: clamp(56px, 8vw, 96px); font-size: .97rem; }
.site-footer a { color: rgba(231, 233, 211, .82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-tag { color: var(--earth); }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-col h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(231, 233, 211, .25); transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--forest); border-color: var(--forest); }
.socials svg { width: 18px; height: 18px; }
.footer-dg {
  margin-top: 48px; padding: 22px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05);
  display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(231, 233, 211, .12);
}
.footer-dg p { margin: 0; }
.footer-dg strong { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; }
.footer-bottom {
  margin-top: 40px; padding: 24px 0 32px; border-top: 1px solid rgba(231, 233, 211, .14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-footer .ad-slot { margin: 0 0 32px; }
.btn-linklike { background: none; border: 0; padding: 0; font: inherit; color: rgba(231, 233, 211, .82); cursor: pointer; text-decoration: none; }
.btn-linklike:hover { color: var(--white); text-decoration: underline; }

/* 14. Widgets -------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: var(--forest); color: var(--white); border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--forest-deep); }
.back-to-top svg { width: 22px; height: 22px; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 22px 24px; display: grid; gap: 14px;
}
.cookie-banner h2 { font-size: 1.15rem; margin: 0; }
.cookie-banner p { margin: 0; font-size: .95rem; color: var(--muted); }
.cookie-options { display: grid; gap: 8px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px);
  background: var(--forest-ink); color: var(--cream); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg);
  max-width: min(560px, calc(100vw - 32px)); font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* 15. Motion & responsive -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media (max-width: 1240px) {
  .header-ctas { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); margin: 0;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-family: var(--font-head); }
  .nav-list a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; margin: -4px 0 0; }
  .mobile-ctas { display: grid; gap: 12px; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-sidebar .toc-box { display: none; }
  .toc-mobile { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
}
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .promo, .newsletter, .workshop { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-grid > * { grid-column: span 1 !important; }
  .focus-grid > :last-child { grid-column: 1 / -1 !important; }
  .focus-grid > :nth-child(-n+2) .card-media { aspect-ratio: 4 / 3; }
  .promo-art { width: 220px; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .welcome-badge { right: 12px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.12rem; }
  .grid--2, .grid--3, .grid--4, .focus-grid { grid-template-columns: 1fr; }
  .focus-grid > :last-child { grid-column: auto !important; }
  .form-row { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .hero-actions .btn, .newsletter .btn { width: 100%; }
  .inline-field { flex-direction: column; border-radius: var(--radius); }
  .inline-field input { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-strip { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 1fr; text-align: left; }
  .cookie-actions .btn { flex: 1; }
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .back-to-top, .cookie-banner, .ad-slot, .newsletter, .share { display: none !important; }
  .page-hero { color: #000; padding: 0; } .page-hero::before, .hero-bg { display: none; }
  .page-hero h1 { color: #000; }
}
