/* ==========================================================================
   Reilly Coding Education: site design system
   Ported from the reilly-inpatient-medical-coding design (sage and teal library look).
   Headings: Manrope. Body: Atkinson Hyperlegible Next, chosen for legibility (clear I/l/1, O/0).
   Text sizes are larger than the original design: nothing a reader needs is under 14px.

   Every page loads, in <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;600;700&family=Manrope:wght@500..800&display=swap">
     <link rel="stylesheet" href="/shared/site.css">
   and before </body>:
     <script src="/shared/site.js" defer></script>
   Header and footer: <div id="site-header" data-active="learn"></div> and <div id="site-footer"></div>.
   Icons: <svg class="i" aria-hidden="true"><use href="/shared/icons.svg#arrow-right"/></svg>
   ========================================================================== */

:root {
  --background: oklch(.995 .002 160);
  --foreground: oklch(.27 .035 175);
  --primary: oklch(.37 .065 176);
  --primary-hover: oklch(.32 .06 176);
  --primary-foreground: oklch(.995 .002 160);
  --secondary: oklch(.94 .025 155);
  --muted: oklch(.97 .007 150);
  --muted-foreground: oklch(.44 .018 170);
  --border: oklch(.9 .012 160);
  --card: oklch(1 0 0);
  --sage: oklch(.89 .04 145);
  --peach: oklch(.94 .041 58);
  --blue: oklch(.93 .025 231);
  --lavender: oklch(.93 .018 292);
  --destructive: oklch(.5 .17 25);
  --shadow: 0 8px 24px oklch(.3 .03 170 / .07);
  --overlay: oklch(.16 .01 170 / .7);

  --font-sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --header-h: 90px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--foreground); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--secondary); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
.i { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: -0.125em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--primary); color: var(--primary-foreground); transform: translateY(-160%); text-decoration: none; font-weight: 600; }
.skip-link:focus { transform: none; }
main:focus { outline: none; }

.container { max-width: 1200px; width: calc(100% - 96px); margin-inline: auto; }
.container-narrow { max-width: 760px; width: calc(100% - 96px); margin-inline: auto; }

/* ---------- Buttons (match the design's shadcn buttons) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 18px; border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn .i { width: 17px; height: 17px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px oklch(.3 .03 170 / .18); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: 0 1px 2px oklch(.3 .03 170 / .06); }
.btn-outline:hover { background: var(--secondary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--secondary); color: var(--primary); }
.btn-link { background: none; color: var(--primary); padding-inline: 0; min-height: 44px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding-inline: 32px; min-height: 50px; }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: 15px; }
.btn-icon { width: 46px; padding: 0; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
#site-header { min-height: var(--header-h); }
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: var(--header-h); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; min-height: 44px; text-decoration: none; color: var(--foreground); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-lg); display: grid; place-items: center; }
.brand-mark .i { width: 23px; height: 23px; stroke-width: 1.6; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 800; line-height: 1.25; }
.brand-subtitle { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted-foreground); text-transform: uppercase; }
.nav-links { display: none; align-items: center; gap: 22px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted-foreground); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn { display: inline-flex; }

.nav-dialog { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); background: var(--background); color: var(--foreground); box-shadow: 0 24px 48px oklch(.2 .02 170 / .2); }
.nav-dialog::backdrop { background: var(--overlay); }
.nav-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nav-dialog-head h2 { font-size: 20px; margin: 4px 0 2px; }
.nav-dialog-head p { margin: 0; color: var(--muted-foreground); font-size: 15px; }
.mobile-navigation { display: grid; gap: 4px; }
.mobile-navigation a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--foreground); text-decoration: none; font-size: 17px; font-weight: 500; border-radius: var(--radius-sm); }
.mobile-navigation a:hover { background: var(--muted); }
.mobile-navigation a[aria-current="page"] { background: var(--secondary); color: var(--primary); font-weight: 700; }
.mobile-navigation .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
.mobile-navigation .btn-primary, .mobile-navigation .btn-primary:hover { color: var(--primary-foreground); background: var(--primary); }

@media (min-width: 1140px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav-links { display: flex; justify-content: flex-end; }
  .mobile-menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 540px; background: var(--muted); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--muted) 0%, oklch(.97 .007 150 / .96) 30%, oklch(.97 .007 150 / .78) 46%, transparent 70%); }
.hero-content { position: relative; z-index: 1; padding-block: 64px 58px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--primary); text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.eyebrow .i { width: 17px; height: 17px; }
.hero h1, .page-title { font-size: 56px; line-height: 1.12; font-weight: 700; margin: 20px 0 18px; max-width: 640px; }
.hero h1 span, .page-title span { color: var(--primary); }
.hero-description { max-width: 470px; line-height: 1.75; font-size: 18px; color: var(--foreground); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 24px; color: var(--foreground); }
.hero-note .i { width: 17px; height: 17px; color: var(--primary); }

/* Collection pages (Learn It, Practice It, Teach It, Design It) */
.page-hero { min-height: 500px; }
.page-hero .hero-content { padding-block: 50px; }
.page-hero h1 { font-size: 72px; line-height: 1.05; margin-block: 16px 16px; }
.page-hero h2 { font-size: 30px; line-height: 1.35; font-weight: 600; margin: 0 0 16px; max-width: 520px; }

/* Plain page header (no photo) */
.page-head { background: var(--muted); border-bottom: 1px solid var(--border); padding-block: 56px 48px; }
.page-head .page-title { margin-bottom: 14px; max-width: 760px; }
.page-head .lead { font-size: 19px; line-height: 1.7; max-width: 680px; margin: 0; }

/* ---------- Benefit strip ---------- */
.benefits { border-bottom: 1px solid var(--border); }
.benefit-list { padding-block: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefit { display: flex; gap: 14px; align-items: center; justify-content: center; padding-inline: 16px; }
.benefit + .benefit { border-left: 1px solid var(--border); }
.benefit > .i { width: 26px; height: 26px; color: var(--primary); stroke-width: 1.5; }
.benefit strong { display: block; font-size: 16px; font-weight: 700; }
.benefit p { margin: 2px 0 0; font-size: 15px; color: var(--muted-foreground); line-height: 1.5; }

/* Intro strip under a page hero */
.intro-strip { border-bottom: 1px solid var(--border); }
.intro-strip-inner { display: flex; align-items: center; gap: 38px; padding-block: 24px; }
.intro-strip p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-muted { background: var(--muted); border-block: 1px solid var(--border); }
.section-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-top > div { min-width: 0; }
.section-top .eyebrow { margin-bottom: 12px; }
h2, .h2 { font-size: 32px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
.section-description { color: var(--muted-foreground); font-size: 16px; margin: 0; line-height: 1.7; max-width: 680px; }
.count-note { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 15px; white-space: nowrap; }
.coming-tag { text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--primary); border-bottom: 1px solid var(--primary); padding-bottom: 4px; white-space: nowrap; }

/* ---------- Tones ---------- */
.tone-sage { background: var(--sage); }
.tone-peach { background: var(--peach); }
.tone-blue { background: var(--blue); }
.tone-lavender { background: var(--lavender); }
.tone-primary { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-button { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 150px; padding: 24px; text-align: left; text-decoration: none; color: var(--foreground); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.category-button:hover { box-shadow: var(--shadow); border-color: oklch(.84 .02 165); }
.category-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--foreground); }
.category-icon .i { width: 22px; height: 22px; stroke-width: 1.7; }
.category-label { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.category-label .i { color: var(--muted-foreground); width: 18px; height: 18px; }
.category-detail { font-size: 15px; color: var(--muted-foreground); line-height: 1.5; margin-top: -6px; }

/* ---------- Search and filters ---------- */
.search-box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); padding: 0 16px; min-height: 52px; border-radius: var(--radius-md); width: 340px; max-width: 100%; }
.search-box .i { width: 18px; height: 18px; color: var(--muted-foreground); }
.search-box input { background: transparent; outline: none; width: 100%; border: none; font-size: 16px; color: var(--foreground); min-height: 48px; }
.search-box:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.chip { min-height: 42px; padding: 7px 14px; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--foreground); font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { background: var(--secondary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.chip .dot { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px oklch(.3 .03 170 / .2); }
.select { min-height: 46px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); padding: 8px 36px 8px 14px; font-size: 16px; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23224e4a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 44px; }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px oklch(.2 0 0 / .25); }
.toggle input:checked { background: var(--primary); }
.toggle input:checked::after { transform: translateX(18px); }

/* ---------- Resource cards (paper covers) ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--card); transition: transform .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-card[hidden] { display: none; }
.resource-cover { height: 180px; position: relative; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; padding-top: 20px; }
.resource-cover.has-img { padding: 0; align-items: stretch; }
.resource-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.paper { width: 150px; height: 158px; border-radius: 3px 3px 0 0; background: var(--card); color: var(--foreground); box-shadow: 0 5px 24px oklch(.3 .03 170 / .12); transform: rotate(-6deg) translateY(5px); padding: 20px 17px; border-left: 5px solid var(--primary); }
.paper.two { transform: rotate(5deg) translateY(8px); border-left: 0; border-top: 5px solid var(--primary); }
.paper.three { transform: rotate(-3deg) translateY(10px); background: var(--primary); color: var(--primary-foreground); border-left: 5px solid oklch(.6 .05 170); }
.paper-eyebrow { text-transform: uppercase; font-size: 7px; letter-spacing: 1px; opacity: .7; line-height: 1.4; }
.paper-title { font-family: var(--font-heading); font-size: 18px; line-height: 1.25; font-weight: 700; margin-top: 10px; }
.paper-line { height: 2px; background: currentColor; opacity: .12; margin-top: 8px; }
.cover-badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 13px; line-height: 1.2; border-radius: var(--radius-sm); background: var(--card); color: var(--foreground); padding: 6px 9px; font-weight: 700; letter-spacing: .02em; }
.resource-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.resource-type { color: var(--primary); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.resource-body h3 { font-size: 20px; line-height: 1.4; margin: 8px 0 8px; font-weight: 700; }
.resource-body h3 a { color: inherit; text-decoration: none; }
.resource-body h3 a:hover { color: var(--primary); }
.resource-body p { font-size: 16px; line-height: 1.7; color: var(--muted-foreground); margin: 0 0 18px; }
.resource-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.resource-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted-foreground); }
.resource-meta .i { width: 15px; height: 15px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted-foreground); font-size: 17px; }

/* ---------- About band ---------- */
.feature-img { margin: 0; }
.about-band.about-ann { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.ann-photo { position: relative; margin: 0; }
.ann-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.ann-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--card); border-radius: var(--radius-md); padding: 10px 14px; box-shadow: var(--shadow); }
.ann-photo figcaption strong { display: block; font-family: var(--font-heading); font-size: 17px; }
.ann-photo figcaption span { font-size: 15px; color: var(--muted-foreground); }
.feature-img img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 64px; }
.about-band h2 { font-size: 34px; line-height: 1.35; }
.about-copy { font-size: 18px; color: var(--muted-foreground); line-height: 1.85; }

/* ---------- Collection cards (learn-course-card in the design) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.course-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--card); }
.course-cover { min-height: 220px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--foreground); }
.cover-top, .cover-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cover-top .i { width: 28px; height: 28px; stroke-width: 1.4; }
.cover-title { font-family: var(--font-heading); font-size: 31px; font-weight: 700; line-height: 1.2; }
.cover-title span { display: block; font-family: var(--font-sans); font-size: 15px; font-weight: 400; margin-top: 8px; letter-spacing: 0; }
.cover-bottom { border-top: 1px solid color-mix(in oklab, var(--foreground) 18%, transparent); padding-top: 12px; }
.course-body { padding: 26px 28px 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 25px; font-weight: 700; margin: 8px 0 8px; line-height: 1.3; }
.course-body > p { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; margin: 0 0 18px; }
.course-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.course-footer > span { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted-foreground); }
.course-footer .price-tag, .price-tag { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--foreground); }
.price-tag small { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--muted-foreground); }

/* Feature checklists */
.features { list-style: none; padding: 14px 0 4px; margin: 0 0 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.55; }
.features .i { color: var(--primary); width: 17px; height: 17px; margin-top: 3px; }

/* Small cards (audiences, tools) */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tool-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--foreground); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool > .i { width: 28px; height: 28px; stroke-width: 1.4; color: var(--foreground); }
.tool h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 0; font-weight: 700; }
.tool p { font-size: 16px; color: var(--muted-foreground); margin: 0; line-height: 1.65; }
.tool .tool-meta { font-size: 15px; color: var(--foreground); font-weight: 600; margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-sm); line-height: 1.3; letter-spacing: .02em; color: var(--foreground); align-self: flex-start; box-shadow: inset 0 0 0 1px var(--border); }
.tag[class*="tone-"], .tag.soon, .tag.live, .tag.free { box-shadow: none; }
.tag.soon { background: var(--peach); }
.tag.live { background: var(--sage); }
.tag.free { background: var(--blue); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label, .field-label { display: grid; gap: 6px; font-size: 16px; font-weight: 600; }
.field { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); padding: 10px 14px; font-size: 16px; font-weight: 400; color: var(--foreground); }
textarea.field { min-height: 130px; resize: vertical; line-height: 1.6; }
select.field { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23224e4a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-note { font-size: 15px; color: var(--muted-foreground); margin: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400 !important; color: var(--muted-foreground); grid-template-columns: none !important; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .field { flex: 1 1 220px; width: auto; }
.form-msg { font-size: 16px; color: var(--primary); font-weight: 600; margin: 10px 0 0; min-height: 1.4em; }
.form-msg.err { color: var(--destructive); }
.rce-form-thanks { color: var(--primary); font-weight: 600; }
.rce-form-status { color: var(--destructive); }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 28px; }

/* ---------- Dialog ---------- */
.modal { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--background); color: var(--foreground); box-shadow: 0 24px 48px oklch(.2 .02 170 / .2); }
.modal::backdrop { background: var(--overlay); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal h2 { font-size: 24px; margin: 8px 40px 8px 0; }
.modal .modal-desc { color: var(--muted-foreground); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 6px; min-height: 56px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .i { width: 20px; height: 20px; color: var(--primary); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 6px 18px; margin: 0; color: var(--muted-foreground); font-size: 17px; max-width: 70ch; }

/* ---------- Quote ---------- */
.quote-band { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; max-width: 860px; margin-inline: auto; }
.quote-band > .i { width: 32px; height: 32px; color: var(--primary); margin-top: 6px; }
.quote-band blockquote { margin: 0; font-family: var(--font-heading); font-size: 23px; line-height: 1.55; font-weight: 500; }
.quote-band cite { display: block; margin-top: 12px; font-style: normal; font-size: 16px; color: var(--muted-foreground); font-weight: 600; }

/* ---------- Journal ---------- */
.post-card .resource-cover { height: 200px; background: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted-foreground); }
.post-meta .resource-type { font-size: 14px; }
.featured-post { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--card); }
.featured-post .resource-cover { height: auto; min-height: 320px; }
.featured-post .resource-body { padding: 36px; justify-content: center; }
.featured-post h3 { font-size: 28px; }

/* Article page */
.article-head { background: var(--muted); border-bottom: 1px solid var(--border); padding-block: 48px 40px; }
.article-head .page-title { font-size: 46px; max-width: 860px; margin: 16px 0 16px; }
.article-head .lead { font-size: 20px; line-height: 1.65; color: var(--muted-foreground); max-width: 760px; margin: 0 0 18px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--muted-foreground); }
.byline strong { color: var(--foreground); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; min-height: 44px; }
.article-hero-img { max-width: 1000px; width: calc(100% - 96px); margin: 40px auto 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.article-hero-img img { width: 100%; max-height: 520px; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.8; padding-block: 48px 24px; }
.prose > *, .callout > * { margin-top: 0; margin-bottom: 0; }
.prose > * + *, .prose .callout > * + *, .prose blockquote > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 30px; line-height: 1.3; margin-top: 1.8em; margin-bottom: 0; }
.prose h3 { font-size: 24px; line-height: 1.35; margin-top: 1.6em; margin-bottom: 0; }
.prose h4 { font-size: 20px; margin-top: 1.4em; margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 18px 24px; background: var(--secondary); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 19px; }
.prose blockquote p + p { margin-top: .7em; }
.prose img { border-radius: var(--radius-md); border: 1px solid var(--border); margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 15px; color: var(--muted-foreground); margin-top: 8px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--muted); font-weight: 700; }
.prose code { font-size: .92em; background: var(--muted); padding: 1px 5px; border-radius: 3px; }
.callout { padding: 20px 24px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); }
.callout.tone-sage { background: var(--secondary); border-color: transparent; }
.callout.tone-peach { background: color-mix(in oklab, var(--peach) 75%, white); border-color: transparent; }
.callout.tone-blue { background: color-mix(in oklab, var(--blue) 75%, white); border-color: transparent; }
.callout.tone-lavender { background: color-mix(in oklab, var(--lavender) 75%, white); border-color: transparent; }
.callout:has(> .step-card) { border: 0; padding: 0; background: none; display: grid; gap: 14px; }
.callout:has(> .step-card) > * { margin: 0 !important; }
.callout:has(> .step-card) > .callout:not(.step-card) { border: 0; padding: 0; background: none; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.callout > :first-child { margin-top: 0; }
.callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.callout-grid > .callout { margin: 0; }
.callout > * + * { margin-top: .8em; }
.callout h3, .callout h4 { margin-top: 0; }
.step-card { display: block; }
.step-num { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0; }
.series-badge { display: inline-block; font-size: 14px !important; font-weight: 700; letter-spacing: .04em; color: var(--primary); background: var(--secondary); padding: 6px 12px; border-radius: var(--radius-sm); line-height: 1.4; }
.prose .action-list { list-style: none; padding-left: 0; }
.prose .action-list li { position: relative; padding-left: 30px; }
.prose .action-list li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.article-end { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 28px; padding-bottom: 16px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-size: 15px; font-weight: 700; margin-right: 6px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--foreground); text-decoration: none; }
.post-nav-link:hover { box-shadow: var(--shadow); border-color: oklch(.84 .02 165); }
.post-nav-link span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.post-nav-link strong { font-family: var(--font-heading); font-size: 17px; line-height: 1.4; }
.post-nav-link.next { text-align: right; align-items: flex-end; }
.author-card { display: flex; gap: 18px; align-items: center; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.author-card p { margin: 2px 0 0; font-size: 15px; color: var(--muted-foreground); }

/* ---------- Newsletter / CTA band ---------- */
.cta-band { background: var(--secondary); border-block: 1px solid var(--border); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 52px; }
.cta-inner h2 { font-size: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 28px; }
.footer-tagline { font-size: 16px; color: var(--muted-foreground); margin: 14px 0 0; max-width: 320px; line-height: 1.6; }
.footer-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 6px 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted-foreground); text-decoration: none; font-size: 16px; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 22px 28px; font-size: 14px; color: var(--muted-foreground); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted-foreground); }

/* ---------- Utilities ---------- */
.muted { color: var(--muted-foreground); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex-center { display: flex; justify-content: center; }
.stack { display: grid; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .container, .container-narrow, .article-hero-img { width: calc(100% - 48px); }
  .hero::after { background: linear-gradient(90deg, var(--muted), oklch(.97 .007 150 / .92) 45%, oklch(.97 .007 150 / .3)); }
  .hero h1, .page-title { font-size: 48px; }
  .page-hero h1 { font-size: 62px; }
  .category-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .section-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-top .search-box { width: 100%; }
  .course-cover, .course-body { padding-inline: 22px; }
  .faq-grid, .cta-inner, .about-band { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-band.about-ann { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ann-photo { max-width: 420px; }
  .featured-post { grid-template-columns: minmax(0, 1fr); }
  .featured-post .resource-cover { min-height: 240px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --header-h: 76px; }
  body { font-size: 17px; }
  .container, .container-narrow, .article-hero-img { width: calc(100% - 32px); }
  .brand-name { font-size: 17px; }
  .brand-subtitle { font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-logo { width: 40px; height: 40px; }
  .header-portal { display: none; }
  .hero { min-height: 620px; }
  .hero-photo { object-position: 65% bottom; }
  .hero::after { background: linear-gradient(180deg, var(--muted) 0%, color-mix(in oklab, var(--muted) 96%, transparent) 62%, transparent 100%); }
  .hero-content { padding-block: 40px; }
  .hero h1, .page-title { font-size: 40px; }
  .page-hero { min-height: 600px; }
  .page-hero h1 { font-size: 54px; }
  .page-hero h2 { font-size: 24px; }
  .hero-description { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
  .benefit-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .benefit { justify-content: flex-start; padding-inline: 0; }
  .benefit + .benefit { border: none; }
  .intro-strip-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section { padding-block: 44px; }
  h2, .h2 { font-size: 27px; }
  .about-band h2 { font-size: 28px; }
  .category-grid { gap: 12px; }
  .category-button { padding: 18px; min-height: 0; }
  .category-label { font-size: 17px; }
  .resource-grid, .course-grid, .tool-grid, .tool-grid.cols-3, .tool-grid.cols-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-title { font-size: 27px; overflow-wrap: break-word; }
  .course-body h3 { font-size: 23px; }
  .article-head .page-title { font-size: 34px; }
  .article-head .lead { font-size: 18px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 26px; }
  .quote-band { grid-template-columns: minmax(0, 1fr); }
  .callout-grid, .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.next { text-align: left; align-items: flex-start; }
  .quote-band blockquote { font-size: 20px; }
  .featured-post .resource-body { padding: 24px; }
  .featured-post h3 { font-size: 23px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Heroes with a person or subject in the photo: the fade stops sooner so the subject stays clear */
@media (min-width: 1001px) {
  .hero-subject .hero-photo { left: auto; right: 0; width: 68%; }
  .hero-subject::after { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 32%, oklch(.97 .007 150 / .85) 38%, oklch(.97 .007 150 / .35) 46%, transparent 56%); }
  /* Tall (portrait) photos: a narrower photo area on the right */
  .hero-portrait .hero-photo { width: 46%; }
  .hero-portrait::after { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 53%, oklch(.97 .007 150 / .5) 57%, transparent 62%); }
}
@media (max-width: 1000px) { .hero-subject::after { background: linear-gradient(90deg, var(--muted), oklch(.97 .007 150 / .93) 50%, oklch(.97 .007 150 / .35)); } }
@media (max-width: 700px) {
  /* Phones: the photo sits under the text instead of behind it */
  .hero-subject { display: flex; flex-direction: column; min-height: 0; }
  .hero-subject .hero-photo { position: relative; order: 2; height: 300px; object-position: 70% 35% !important; }
  .hero-subject::after { display: none; }
  .hero-subject .hero-content { padding-bottom: 32px; }
}
