/* ==========================================================================
   Scrubs & Scripture — Playbook Stylesheet
   Deliverable for Wanda Pizzolato, LPN · Covington, LA
   Prepared by BayouBuilt Digital · a service of D&G Fuzion LLC

   ----------------------------------------------------------------------------
   TABLE OF CONTENTS
   ----------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS     — palette, color roles
   2. RESET & BASE STYLES               — element-level defaults
   3. TYPOGRAPHY                        — headings, body copy, links
   4. LAYOUT CONTAINERS                 — main, section, part-divider
   5. NAVIGATION                        — top nav bar + menu
   6. COMPONENTS                        — cards, callouts, blocks
        6.1  Cover page
        6.2  Hero (half-title)
        6.3  Framing note
        6.4  Soft intro note
        6.5  Dividers / section breaks
        6.6  Section headers
        6.7  Callouts
        6.8  Tables
        6.9  Compare cards (do/don't)
        6.10 Checklist
        6.11 Link group
        6.12 Phase / timeline
        6.13 Companion block (D&G Fuzion)
        6.14 Reflection prompts
        6.15 Archetype cards
        6.16 Spectrum / scale
        6.17 Glossary
        6.18 Footer (closing block)
        6.19 Niche reality cards
        6.20 AI warning
        6.21 Alternative path cards
        6.22 Grant cards
        6.23 Gap-finder method cards
        6.24 Gap opportunity cards
        6.25 Key-insight standout
        6.26 Voice example / prompt box
        6.27 Cross-industry pattern cards
        6.28 Pricing tiers
        6.29 Site audit / BayouBuilt showcase
        6.30 Table of contents
        6.31 Floating save-PDF button
   7. UTILITIES                         — .page-break scroll anchor
   8. RESPONSIVE / MEDIA QUERIES        — breakpoints, sorted largest → smallest
   9. PRINT STYLES                      — PDF output rules
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ========================================================================== */
:root {
  color-scheme: light only;
  --ink: #1c1832;
  --ink-soft: #4a4363;
  --rose: #a64e5c;
  --rose-soft: #c77d88;
  --rose-wash: #fbeaed;
  --lilac: #8b7bb0;
  --lilac-soft: #b4a5d1;
  --lilac-wash: #f2ecf7;
  --lilac-deep: #6b5d8c;
  --cream: #ffffff;
  --cream-deep: #f7f4fb;
  --paper: #ffffff;
  --gold: #b8924a;
  --gold-wash: #fbf3df;
  --sage: #6b7f5c;
  --sage-wash: #eef3e8;
  --rule: #ddd4e8;
  --rule-soft: #ebe5f1;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background-color: #ffffff;
  color: #1c1832;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: #1c1832;
  background-color: #ffffff;
  background-image:
    radial-gradient(at 10% 0%, rgba(166,78,92,0.02) 0%, transparent 45%),
    radial-gradient(at 90% 0%, rgba(139,123,176,0.025) 0%, transparent 50%),
    radial-gradient(at 50% 100%, rgba(139,123,176,0.018) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover { color: var(--ink); }


/* ==========================================================================
   3. TYPOGRAPHY
   Note: body-copy type resets (p/h3/h4/ul/ol/li/strong/em) live after the
   section-head component since several rules reference section context.
   ========================================================================== */


/* ==========================================================================
   4. LAYOUT CONTAINERS & 5. NAVIGATION
   ========================================================================== */

/* ===== NAV ===== */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.topnav-inner {
  max-width: 820px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
/* Scoped to .topnav so the `brand` class doesn't collide with
   `.audit-group.brand`, which uses `brand` purely as a color-variant modifier. */
.topnav .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.topnav .brand em { font-style: italic; color: var(--rose); font-weight: 500; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 2px;
}
.nav-toggle:hover { background: var(--paper); color: var(--ink); }

/* Save-PDF button in the top nav — sage outline so it reads as a
   secondary action beside the primary Contents toggle. */
.nav-save-pdf {
  margin-left: auto;
  background: transparent;
  border: 1px solid #c5d0b8;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a6b3f;
  cursor: pointer;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
.nav-save-pdf:hover,
.nav-save-pdf:focus {
  background: #eef4e7;
  color: #3a5330;
  outline: none;
}
.nav-save-pdf .btn-label-short { display: none; }
.navmenu {
  display: none;
  position: absolute; top: 100%; right: 20px; left: 20px;
  max-width: 780px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: none;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(26,40,65,0.1);
}
.navmenu.open { display: block; }
.navmenu a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule-soft);
}
.navmenu a:last-child { border-bottom: none; }
.navmenu a:hover { color: var(--rose); }
.navmenu .group-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 12px 0 4px;
  padding-bottom: 4px;
}
.navmenu .group-label:first-child { margin-top: 0; }

/* ===== LAYOUT ===== */
main { max-width: 780px; margin: 0 auto; padding: 0 20px 80px; }
section { padding: 56px 0 16px; }
section + section { border-top: 1px solid var(--rule-soft); }
.part-divider {
  text-align: center;
  padding: 60px 20px;
  margin: 40px 0 0;
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.part-divider .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 14px;
}
.part-divider h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em;
}
.part-divider h2 em { font-style: italic; color: var(--lilac); }
.part-divider p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 17px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}

/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* ===== COVER PAGE ===== */
.cover {
  position: relative;
  margin: -40px -24px 0;
  padding: 72px 48px 64px;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lilac-wash);
  color: var(--ink);
  overflow: hidden;
  page-break-after: always;
  break-after: page;
}
/* thin top rule in sage → lilac → gold (matches BayouBuilt closing block) */
.cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--lilac) 50%, var(--gold) 100%);
  z-index: 3;
}
/* subtle inner frame in lilac-soft */
.cover::after {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(139,123,176,0.3);
  pointer-events: none;
}
.cover-top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 28px;
}
.cover-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 14px;
}
.cover-eyebrow-ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid rgba(139,123,176,0.25);
  border-radius: 2px;
}
.cover-eyebrow-ornament::before,
.cover-eyebrow-ornament::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--lilac-soft);
}
.cover-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cover-title-block {
  background: #ffffff;
  padding: 52px 40px 44px;
  margin: 0 auto 32px;
  max-width: 600px;
  border: 1px solid rgba(139,123,176,0.2);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(139,123,176,0.06), 0 20px 50px -30px rgba(107,93,140,0.2);
}
.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 11vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
}
.cover-title em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--lilac);
  font-weight: 400;
  font-size: 0.92em;
  vertical-align: baseline;
  margin: 0 0.04em;
  position: relative;
  display: inline-block;
  transform: translateY(-0.02em);
}
.cover-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}
.cover-ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 28px;
}
.cover-ornament-line::before,
.cover-ornament-line::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: rgba(139,123,176,0.35);
}
.cover-ornament-diamond {
  width: 7px;
  height: 7px;
  background: var(--lilac);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.cover-meta-card {
  display: inline-block;
  padding: 24px 36px;
  background: #ffffff;
  border: 1px solid rgba(139,123,176,0.2);
  border-left: 3px solid var(--sage);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(139,123,176,0.05), 0 12px 30px -18px rgba(107,93,140,0.18);
}
.cover-meta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.cover-meta-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.cover-meta-detail {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.cover-meta-detail a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px dotted rgba(107,127,92,0.45);
}
.cover-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 40px;
}
.cover-prep {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 8px;
}
.cover-prep strong {
  color: var(--sage);
  font-weight: 700;
}
.cover-date {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--lilac-deep);
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.cover-volume {
  position: absolute;
  top: 54px;
  left: 54px;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.cover-edition {
  position: absolute;
  top: 54px;
  right: 54px;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}

/* iPad range — match main's 20px padding exactly */
@media (max-width: 900px) and (min-width: 701px) {
  .cover { margin: -40px -20px 0; padding: 64px 44px 56px; }
}

@media (max-width: 700px) {
  .cover {
    margin: -40px -16px 0;
    padding: 56px 28px 48px;
  }
  .cover::after { inset: 18px; }
  .cover-volume, .cover-edition { top: 40px; }
  .cover-volume { left: 36px; }
  .cover-edition { right: 36px; }
  .cover-title-block { padding: 38px 26px 32px; }
  .cover-meta-card { padding: 20px 26px; }
  .cover-meta-name { font-size: 20px; }
  .cover-meta-detail { font-size: 12.5px; }
  .cover-ornament-line::before,
  .cover-ornament-line::after { flex: 0 0 40px; }
}

@media (max-width: 420px) {
  .cover {
    padding: 48px 20px 40px;
    margin: -40px -12px 0;
  }
  .cover::after { inset: 14px; }
  .cover-volume, .cover-edition {
    top: 70px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .cover-volume { left: 26px; }
  .cover-edition { right: 26px; }
  .cover-title-block { padding: 32px 20px 28px; margin-top: 18px; }
  .cover-meta-card { padding: 18px 22px; }
}

/* ===== HERO ===== */
.hero { padding: 48px 0 28px; text-align: center; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 500; line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: var(--rose); font-weight: 500; }
.hero .welcome {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--lilac-deep);
  margin: -6px auto 20px;
  letter-spacing: 0.01em;
}

/* ===== SOFT INTRO NOTE (replaces the stern "Please read first" callout) ===== */
.soft-note {
  max-width: 640px;
  margin: 10px auto 40px;
  padding: 24px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4fb 100%);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--lilac-soft);
  border-radius: 2px;
  position: relative;
}
.soft-note .soft-note-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--lilac-deep);
  margin-bottom: 10px;
}
.soft-note p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.soft-note p:last-child { margin-bottom: 0; }

/* ===== FRAMING NOTE — "Not a traditional consult" positioning ===== */
.framing-note {
  max-width: 680px;
  margin: 28px auto 36px;
  padding: 34px 38px 30px;
  background:
    radial-gradient(ellipse at top left, rgba(107,138,95,0.04) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  border: 1px solid #e2e7db;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 1px 0 rgba(107,138,95,0.05), 0 6px 20px -14px rgba(44,47,77,0.08);
}
.framing-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6b8a5f 0%, #a08e6a 50%, #a64e5c 100%);
  border-radius: 3px 3px 0 0;
}
.framing-note .framing-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #4a6b3f;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.framing-note .framing-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #6b8a5f;
  opacity: 0.55;
}
.framing-note h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.framing-note h3 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: #4a6b3f;
  font-weight: 500;
}
.framing-note p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.framing-note p:last-child { margin-bottom: 0; }
.framing-note .framing-sig {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(107,138,95,0.3);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}
.framing-note .framing-sig strong {
  color: #4a6b3f;
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 640px) {
  .framing-note { padding: 26px 22px 22px; margin: 22px auto 28px; }
  .framing-note h3 { font-size: 22px; }
  .framing-note p { font-size: 14px; }
}

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 36px auto 20px;
  color: var(--rose-soft);
  max-width: 280px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}
.divider-mark {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--lilac-soft);
  border-radius: 50%;
  opacity: 0.7;
}

/* ===== SECTION HEADERS ===== */
.section-head { margin-bottom: 32px; }
.section-head .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--rose);
  text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-head h2 em { font-style: italic; color: var(--rose); font-weight: 500; }
.section-head .lede {
  font-family: 'Fraunces', serif;
  font-size: 17.5px; font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 22px 0 10px;
}

p { margin-bottom: 14px; }
p + h3 { margin-top: 36px; }
ul, ol { margin: 10px 0 16px 22px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

/* ===== CALLOUTS ===== */
.callout {
  border-left: 3px solid var(--rose);
  background: var(--rose-wash);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 2px 2px 0;
}
.callout.caution { border-left-color: var(--gold); background: var(--gold-wash); }
.callout.good { border-left-color: var(--sage); background: var(--sage-wash); }
.callout .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  display: block; margin-bottom: 6px;
}
.callout.caution .label { color: #8a6a1f; }
.callout.good .label { color: #4a5e3f; }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: 15px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; }
table {
  width: 100%; border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 14px;
}
th {
  text-align: left;
  padding: 11px 14px;
  background: var(--cream-deep);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.55;
}
tr:last-child td { border-bottom: none; }
td strong { display: block; margin-bottom: 2px; }

/* ===== DO / DON'T ===== */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 16px 0 22px;
}
@media (max-width: 580px) { .compare { grid-template-columns: 1fr; } }
.compare-card {
  padding: 16px 18px;
  background: var(--paper);
  border-top: 3px solid;
  font-size: 14px; line-height: 1.55;
}
.compare-card.bad { border-top-color: var(--rose); background: #fdf4f5; }
.compare-card.good { border-top-color: var(--sage); background: #f1f5ec; }
.compare-card .tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 8px;
}
.compare-card.bad .tag { color: var(--rose); }
.compare-card.good .tag { color: #4a5e3f; }
.compare-card .quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 8px;
}
.compare-card .note {
  font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== CHECKLIST ===== */
.checklist { list-style: none; margin-left: 0; }
.checklist li {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  margin-bottom: 6px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px;
}
.checklist .box {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: 1.5px solid var(--rose);
  margin-top: 4px;
}

/* ===== LINK GROUP ===== */
.linkgroup {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin: 16px 0 22px;
}
.linkgroup h4 { margin-top: 0; }
.linkgroup ul { list-style: none; margin-left: 0; }
.linkgroup li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.linkgroup li:last-child { border-bottom: none; }
.linkgroup .desc {
  display: block; font-size: 12.5px;
  color: var(--ink-soft); margin-top: 2px;
  line-height: 1.45;
}

/* ===== SECTION BREAKS (ornamental + page break) ===== */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px auto;
  max-width: 340px;
  padding: 0 20px;
}
.section-break::before,
.section-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 50%, transparent 100%);
}
.section-break-mark {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--lilac-soft);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* Page-break class — historical hook, now mainly used for scroll anchor behavior on screen.
   Actual page breaks in PDF are controlled by @media print rules (parts + footer only). */
.page-break {
  scroll-margin-top: 80px;
}

/* ===== PHASE / TIMELINE ===== */
.phase {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.phase:last-child { border-bottom: none; }
.phase-num {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; font-weight: 500;
  font-style: italic;
  color: var(--rose);
  width: 60px; line-height: 1;
}
.phase-body h4 { margin-top: 2px; color: var(--ink); }
.phase-body p { margin-bottom: 4px; font-size: 14.5px; }
.phase-body .outcome {
  font-size: 12.5px; color: var(--ink-soft);
  font-style: italic; margin-top: 6px;
}

/* ===== COMPANION BLOCK (D&G Fuzion in-body callout) ===== */
.companion {
  margin: 44px 0;
  padding: 36px 32px 34px;
  background: linear-gradient(145deg, #eef2ea 0%, #e8ede3 40%, #dde5d4 100%);
  border: 1px solid #c5d0b8;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(107,138,95,0.08), 0 8px 24px -12px rgba(44,47,77,0.12);
}
.companion::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #6b8a5f 0%, #7a8f3f 50%, #2c5f5f 100%);
}
.companion .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4a6b3f;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.companion .eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #6b8a5f;
  opacity: 0.6;
}
.companion h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.companion h3 em { font-style: italic; color: #4a6b3f; font-weight: 500; }
.companion p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.companion p.invitation {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink);
  margin-top: 18px;
  margin-bottom: 18px;
}
.companion .companion-offer {
  margin: 20px 0 22px;
  padding: 20px 22px;
  background: #ffffff;
  border-left: 3px solid #6b8a5f;
  font-size: 14.5px;
  line-height: 1.65;
  box-shadow: 0 1px 0 rgba(44,47,77,0.03);
}
.companion .companion-offer ul {
  list-style: none;
  margin: 0;
}
.companion .companion-offer li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  color: var(--ink);
}
.companion .companion-offer li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #6b8a5f;
  font-weight: 700;
  font-size: 14px;
}
.companion .companion-offer li:last-child { margin-bottom: 0; }
.companion-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.companion-cta {
  display: inline-block;
  padding: 14px 30px;
  background: #4a6b3f;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  box-shadow: 0 2px 0 rgba(58,83,48,0.25);
}
.companion-cta:hover {
  background: #3a5330;
  color: #ffffff;
  box-shadow: 0 3px 0 rgba(58,83,48,0.35);
}
.companion .signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}
.companion .signature strong {
  font-style: normal;
  color: #4a6b3f;
  font-weight: 600;
}

/* ===== REFLECTION PROMPTS ===== */
.prompt-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  margin: 14px 0;
  border-left: 3px solid var(--rose);
}
.prompt-card .prompt-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.prompt-card .prompt-q {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 10px;
}
.prompt-card .prompt-why {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}
.prompt-card .prompt-lines {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
}
.prompt-card .line {
  border-bottom: 1px solid var(--rule-soft);
  height: 22px;
  margin-bottom: 2px;
}
.prompt-card .line:last-child { margin-bottom: 0; }

/* ===== ARCHETYPE CARDS ===== */
.archetypes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0 28px;
}
.archetype {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid;
}
.archetype.encourager { border-left-color: #c77d88; }
.archetype.teacher { border-left-color: #b8924a; }
.archetype.storyteller { border-left-color: #6b7f5c; }
.archetype.advocate { border-left-color: #4a5775; }
.archetype .at-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.archetype h3 { margin: 0; font-size: 22px; }
.archetype .at-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}
.archetype p { font-size: 14.5px; margin-bottom: 8px; }
.archetype .at-voice {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 10px 14px;
  background: var(--cream);
  border-left: 2px solid var(--rule);
  margin: 10px 0;
}
.archetype .at-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.archetype .at-meta strong { color: var(--ink); }

/* ===== SCALE / SPECTRUM ===== */
.spectrum {
  margin: 20px 0 24px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.spectrum h4 { margin-top: 0; color: var(--rose); }
.spectrum-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
  padding: 18px 0 8px;
}
.spectrum-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 24px;
  height: 1px;
  background: var(--rule);
}
.spectrum-bar .pole {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  background: var(--paper);
  padding: 0 6px;
  z-index: 1;
}
.spectrum-bar .pole.left { text-align: left; }
.spectrum-bar .pole.right { text-align: right; }
.spectrum-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  font-style: italic;
}

/* ===== GLOSSARY ===== */
.glossary { margin: 16px 0 24px; }
.glossary dt {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--rose);
  margin-top: 14px;
  margin-bottom: 2px;
}
.glossary dd {
  font-size: 14.5px;
  line-height: 1.6;
  margin-left: 0;
  color: var(--ink-soft);
}
.glossary dd strong { color: var(--ink); }

/* ===== FOOTER ===== */
footer {
  text-align: left;
  padding: 0;
  margin: 60px 0 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  break-before: page;
  page-break-before: always;
}
footer .closing-block {
  margin: 0 auto;
  max-width: 720px;
  padding: 44px 42px 38px;
  background: linear-gradient(145deg, #eef2ea 0%, #e8ede3 40%, #dde5d4 100%);
  border: 1px solid #c5d0b8;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(107,138,95,0.08), 0 8px 24px -12px rgba(44,47,77,0.12);
}
footer .closing-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6b8a5f 0%, #7a8f3f 50%, #2c5f5f 100%);
}
footer .closing-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4a6b3f;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
footer .closing-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #6b8a5f;
  opacity: 0.6;
}
footer .closing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-align: left;
}
footer .closing-title em {
  font-style: italic;
  color: #4a6b3f;
  font-weight: 500;
}
footer .closing-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-align: left;
}
footer .closing-offer {
  margin: 22px 0 24px;
  padding: 20px 24px;
  background: #ffffff;
  border-left: 3px solid #6b8a5f;
  box-shadow: 0 1px 0 rgba(44,47,77,0.03);
}
footer .closing-offer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer .closing-offer li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
footer .closing-offer li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #6b8a5f;
  font-weight: 700;
  font-size: 14px;
  top: 6px;
}
footer .closing-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
footer .closing-cta {
  display: inline-block;
  padding: 14px 30px;
  background: #4a6b3f;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  box-shadow: 0 2px 0 rgba(58,83,48,0.25);
}
footer .closing-cta:hover {
  background: #3a5330;
  color: #ffffff;
  box-shadow: 0 3px 0 rgba(58,83,48,0.35);
}
footer .closing-signature {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
footer .closing-signature strong {
  color: #4a6b3f;
  font-style: normal;
  font-weight: 600;
}
footer .closing-url {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(107,138,95,0.3);
  font-size: 13px;
  color: var(--ink-soft);
}
footer .closing-url a {
  color: #4a6b3f;
  font-weight: 600;
  text-decoration: underline;
}
footer .closing-legal {
  margin: 32px auto 0;
  max-width: 720px;
  padding: 0 20px;
  text-align: center;
}
footer .closing-legal .tiny {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
  opacity: 0.7;
}
@media (max-width: 640px) {
  footer .closing-block { padding: 30px 22px 26px; }
  footer .closing-title { font-size: 26px; }
  footer .closing-block p { font-size: 14.5px; }
  footer .closing-offer { padding: 16px 18px; }
  footer .closing-offer li { font-size: 14px; }
  footer .closing-cta { padding: 12px 22px; font-size: 10px; letter-spacing: 0.16em; }
}

/* ===== NICHE REALITY CARDS ===== */
.niche-reality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 24px;
}
@media (max-width: 560px) { .niche-reality { grid-template-columns: 1fr; } }
.niche-card {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid;
  font-size: 14px;
  line-height: 1.55;
}
.niche-card.hard { border-top-color: #b8924a; background: #fdf9ef; }
.niche-card.viable { border-top-color: var(--sage); background: #f1f5ec; }
.niche-card .tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.niche-card.hard .tag { color: #8a6a1f; }
.niche-card.viable .tag { color: #4a5e3f; }
.niche-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.niche-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 13.5px; }

/* ===== AI WARNING BLOCK ===== */
.ai-warning {
  margin: 24px 0;
  padding: 24px 26px;
  background: linear-gradient(180deg, #fdf9ef 0%, #ffffff 100%);
  border: 1px solid #e0d4a8;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  position: relative;
}
.ai-warning .ai-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a1f;
  margin-bottom: 12px;
}
.ai-warning .ai-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8924a' stroke-width='1.8' stroke-linecap='round'><path d='M12 9v4'/><circle cx='12' cy='17' r='0.5' fill='%23b8924a'/><path d='M12 3 L22 20 L2 20 Z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.ai-warning h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.ai-warning p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.ai-warning p strong { color: var(--ink); }
.ai-warning .ai-examples {
  margin: 14px 0 8px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px dashed #e0d4a8;
  font-size: 13.5px;
  line-height: 1.7;
}
.ai-warning .ai-examples .ex-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #8a6a1f; margin-bottom: 6px;
  display: block;
}
.ai-warning .ai-examples .ex-good { color: var(--sage); font-weight: 600; }
.ai-warning .ai-examples .ex-bad { color: var(--rose); font-weight: 600; }
.ai-warning .ai-rules {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}
.ai-warning .ai-rules li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px dashed #eee0c0;
}
.ai-warning .ai-rules li:last-child { border-bottom: none; }
.ai-warning .ai-rules li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== ALTERNATIVE PATH CARDS ===== */
.path-card {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--lilac);
  margin-bottom: 14px;
}
.path-card .path-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.path-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.path-card .path-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}
.path-card .why {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.6;
}
.path-card .examples-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  display: block;
  margin-bottom: 6px;
  margin-top: 4px;
}
.path-card .examples {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}
.path-card .examples a {
  color: var(--rose);
  font-weight: 500;
}
.path-card .monetization {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.path-card .monetization strong { color: var(--ink); }

/* ===== GRANT CARDS ===== */
.grant-card {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rose);
  margin-bottom: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(44,47,77,0.03);
}
.grant-card.realistic { border-left-color: #4a6b3f; }
.grant-card.stretch { border-left-color: var(--gold); }
.grant-card.skip { border-left-color: #9a7d85; opacity: 0.85; }
.grant-card .grant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.grant-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.grant-card .grant-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  /* Descriptive grant tags are full phrases, not short status chips —
     allow them to wrap on narrow viewports rather than extend past the card. */
}
.grant-card.realistic .grant-tag { background: #eef4e7; color: #3a5330; }
.grant-card.stretch .grant-tag { background: #faf3de; color: #7a6020; }
.grant-card.skip .grant-tag { background: #f4eef0; color: #6e4e57; }
.grant-card .grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px dashed var(--rule-soft);
  border-radius: 2px;
  font-size: 12.5px;
}
.grant-card .grant-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grant-card .grant-meta .meta-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.grant-card .grant-meta .meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.grant-card .grant-meta .meta-value.amount { color: #4a6b3f; }
.grant-card .grant-meta .meta-value.deadline { color: var(--rose); }
.grant-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 10px 0 0;
}
.grant-card .grant-fit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px;
  color: var(--ink);
}
.grant-card .grant-fit strong { color: var(--ink); }
.grant-card .grant-apply {
  margin-top: 10px;
  font-size: 13px;
}
.grant-card .grant-apply a {
  color: var(--rose);
  font-weight: 500;
}

/* Grant card mobile */
@media (max-width: 640px) {
  .grant-card { padding: 18px 18px; }
  .grant-card h4 { font-size: 18px; }
  .grant-card .grant-meta { gap: 10px 14px; padding: 10px 12px; }
  .grant-card .grant-meta .meta-value { font-size: 12.5px; }
  .grant-card p { font-size: 13.5px; }
}

/* ===== GAP FINDER METHOD CARDS ===== */
.method-card {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--sage);
}
.method-card .method-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.method-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.method-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.6; }
.method-card .how {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f1f5ec;
  border-left: 2px solid var(--sage);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}
.method-card .how strong { color: #3d5530; }
.method-card .search-example {
  display: inline-block;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px dashed #c8d4b8;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  color: #4a5e3f;
  margin: 2px 2px;
  white-space: nowrap;
}

/* ===== GAP OPPORTUNITY CARDS (Covington-specific) ===== */
.gap-card {
  padding: 24px 26px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf3df 100%);
  border: 1px solid #e0d4a8;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.gap-card .gap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.gap-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.gap-card .gap-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a1f;
}
.gap-card .gap-why {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 12px;
}
.gap-card .validate {
  margin: 12px 0;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #eee0c0;
  font-size: 13px;
  line-height: 1.65;
}
.gap-card .validate-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a6a1f;
  margin-bottom: 6px;
}
.gap-card .validate ol {
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 13px;
}
.gap-card .validate li { margin-bottom: 4px; color: var(--ink); }
.gap-card .gap-revenue {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #eee0c0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.gap-card .gap-revenue strong { color: var(--ink); }

/* ===== KEY-INSIGHT STANDOUT SECTION ===== */
.key-insight {
  position: relative;
  margin: 60px -20px 0;
  padding: 70px 32px 60px;
  background: linear-gradient(135deg, #1c1832 0%, #2d2547 50%, #3a2d4d 100%);
  color: #faf5ed;
  overflow: hidden;
  border-top: 4px solid var(--rose);
  border-bottom: 1px solid rgba(250,245,237,0.08);
}
.key-insight::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(199,125,136,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.key-insight::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(180,165,209,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.key-insight .key-eyebrow {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.key-insight .key-eyebrow::before,
.key-insight .key-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-soft), transparent);
}
.key-insight h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 auto 12px;
  max-width: 680px;
  position: relative;
  color: #faf5ed;
}
.key-insight h2 em {
  font-style: italic;
  color: var(--rose-soft);
  font-weight: 500;
}
.key-insight .key-underline {
  width: 60px;
  height: 2px;
  background: var(--rose);
  margin: 22px auto 28px;
  position: relative;
}
.key-insight .key-lede {
  position: relative;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  text-align: center;
  color: rgba(250,245,237,0.85);
  max-width: 560px;
  margin: 0 auto 40px;
}
.key-insight .key-body {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.key-insight .key-definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0 36px;
}
@media (max-width: 600px) {
  .key-insight .key-definition { grid-template-columns: 1fr; }
}
.key-def {
  padding: 24px 22px;
  background: rgba(250,245,237,0.05);
  border: 1px solid rgba(250,245,237,0.12);
  border-top: 2px solid;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.key-def.blog { border-top-color: var(--lilac-soft); }
.key-def.biz { border-top-color: var(--rose-soft); }
.key-def .label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.key-def.blog .label { color: var(--lilac-soft); }
.key-def.biz .label { color: var(--rose-soft); }
.key-def .headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: #faf5ed;
  margin-bottom: 10px;
}
.key-def .headline em { font-style: italic; }
.key-def p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(250,245,237,0.75);
  margin: 0;
}
.key-insight .key-punch {
  position: relative;
  text-align: center;
  padding: 28px 24px;
  margin: 24px auto 0;
  max-width: 540px;
  background: rgba(166,78,92,0.12);
  border-top: 1px solid var(--rose-soft);
  border-bottom: 1px solid var(--rose-soft);
}
.key-insight .key-punch p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: #faf5ed;
  margin: 0;
}
.key-insight .key-punch p strong {
  font-style: normal;
  color: var(--rose-soft);
  font-weight: 500;
}

/* ===== AI VOICE COACHING CARDS ===== */
.voice-example {
  margin: 20px 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid;
}
.voice-example.bland { border-left-color: #b8924a; background: #fdf9ef; }
.voice-example.yours { border-left-color: var(--sage); background: #f1f5ec; }
.voice-example .vx-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.voice-example.bland .vx-label { color: #8a6a1f; }
.voice-example.yours .vx-label { color: #4a5e3f; }
.voice-example p {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.prompt-box {
  margin: 16px 0;
  padding: 18px 20px;
  background: #1c1832;
  color: #faf5ed;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  position: relative;
}
.prompt-box .prompt-tag {
  position: absolute;
  top: -9px; left: 16px;
  background: var(--rose);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.prompt-box .placeholder {
  color: #c77d88;
  font-style: italic;
}

/* ===== CROSS-INDUSTRY PATTERN CARDS ===== */
.pattern-card {
  padding: 24px 26px;
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
}
.pattern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lilac) 0%, var(--rose-soft) 50%, var(--gold) 100%);
}
.pattern-card .pattern-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pattern-card .pattern-num {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  color: var(--lilac);
  line-height: 1;
  margin-top: 4px;
  min-width: 40px;
}
.pattern-card .pattern-title-block { flex: 1; min-width: 200px; }
.pattern-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.pattern-card .pattern-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.pattern-card .pattern-why {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pattern-card .pattern-why strong { color: var(--ink); }
.pattern-card .pattern-industries {
  padding: 14px 16px;
  background: var(--cream-deep);
  border-left: 2px solid var(--lilac);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.pattern-card .pattern-industries-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 6px;
}
.pattern-card .pattern-industries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pattern-card .pattern-industries li {
  padding: 4px 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}
.pattern-card .pattern-industries li strong { color: var(--rose); font-weight: 600; }
.pattern-card .pattern-earnings {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pattern-card .pattern-earnings strong { color: var(--ink); }

/* ===== CROSS-INDUSTRY INTRO ===== */
.pattern-intro {
  margin: 24px 0 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f2ecf7 60%, #fbeaed 100%);
  border: 1px solid var(--rule);
  position: relative;
}
.pattern-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lilac) 0%, var(--rose-soft) 100%);
}
.pattern-intro h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.pattern-intro p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.pattern-intro p + p { margin-top: 10px; }
.pattern-intro strong { color: var(--ink); }

/* ===== PRICING TIERS ===== */
.tiers { display: grid; gap: 14px; margin: 18px 0 24px; }
.tier {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rose);
}
.tier-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px; gap: 10px; flex-wrap: wrap;
}
.tier h3 { margin: 0; font-size: 22px; }
.tier .revenue {
  font-size: 12px; font-weight: 600;
  color: var(--sage); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tier p { font-size: 14.5px; margin-bottom: 6px; }
.tier .tax-note {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px; color: var(--ink-soft);
}
.tier .tax-note strong { color: var(--rose); }

/* ===== SITE AUDIT / BAYOUBUILT SHOWCASE ===== */
.site-audit {
  margin: 44px 0 32px;
  padding: 38px 34px 34px;
  background: linear-gradient(145deg, #eef2ea 0%, #e8ede3 40%, #dde5d4 100%);
  border: 1px solid #c5d0b8;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(107,138,95,0.08), 0 8px 24px -12px rgba(44,47,77,0.12);
}
.site-audit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6b8a5f 0%, #7a8f3f 50%, #2c5f5f 100%);
}
.site-audit .audit-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4a6b3f;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-audit .audit-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #6b8a5f;
  opacity: 0.6;
}
.site-audit h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.site-audit h3 em { color: #4a6b3f; font-style: italic; }
.site-audit .audit-intro {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.audit-findings {
  margin: 20px 0;
}
.audit-group {
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: 20px 22px 16px;
  box-shadow: 0 1px 0 rgba(44,47,77,0.03);
}
.audit-group:last-child { margin-bottom: 0; }
.audit-group-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.audit-group.critical .audit-group-label { color: #7a8f3f; }
.audit-group.brand .audit-group-label { color: #6b8a5f; }
.audit-group.essential .audit-group-label { color: #8a6a1f; }
.audit-group.structure .audit-group-label { color: #2c5f5f; }
.audit-group ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.audit-group li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--rule-soft);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-width: 0;
}
.audit-group li:last-child { border-bottom: none; }
.audit-group li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 700;
}
.audit-group.critical li::before { color: #7a8f3f; }
.audit-group.brand li::before { color: #6b8a5f; }
.audit-group.essential li::before { color: #8a6a1f; }
.audit-group.structure li::before { color: #2c5f5f; }
.audit-group li strong {
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
}

.audit-pitch {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(107,138,95,0.3);
}
.audit-pitch .pitch-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4a6b3f;
  margin-bottom: 10px;
}
.audit-pitch h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.audit-pitch h4 em { color: #4a6b3f; font-style: italic; }
.audit-pitch p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.audit-pitch .services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
}
@media (max-width: 560px) {
  .audit-pitch .services-grid { grid-template-columns: 1fr; }
}
.service-chip {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid #6b8a5f;
  font-size: 13px;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.service-chip strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.audit-pitch .cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.audit-pitch .audit-cta {
  display: inline-block;
  padding: 14px 30px;
  background: #4a6b3f;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  box-shadow: 0 2px 0 rgba(58,83,48,0.25);
}
.audit-pitch .audit-cta:hover {
  background: #3a5330;
  box-shadow: 0 3px 0 rgba(58,83,48,0.35);
}
.audit-pitch .signature {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.audit-pitch .signature strong {
  color: #4a6b3f;
  font-style: normal;
  font-weight: 600;
}

/* ===== TABLE OF CONTENTS / WHAT'S INSIDE ===== */
.toc-block {
  margin: 32px auto 48px;
  max-width: 660px;
  padding: 36px 34px 34px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(44,47,77,0.04), 0 6px 20px -12px rgba(44,47,77,0.1);
  position: relative;
}
.toc-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose) 0%, var(--lilac) 50%, #2c5f5f 100%);
  border-radius: 3px 3px 0 0;
}
.toc-block .toc-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
  text-align: center;
}
.toc-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.toc-block h2 em { font-style: italic; color: var(--rose); }
.toc-block .toc-note {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.toc-part {
  margin-bottom: 26px;
}
.toc-part:last-child { margin-bottom: 0; }
.toc-part-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.toc-part-label .roman {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
}
.toc-part-label .part-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.toc-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.4;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  font-size: 15px;
  transition: color 0.15s;
}
.toc-list a:hover { color: var(--rose); }
.toc-list .toc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  min-width: 28px;
  letter-spacing: 0.05em;
}
.toc-list .toc-desc {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 400;
  line-height: 1.4;
}
.toc-list .toc-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  margin-left: auto;
  align-self: center;
}
.toc-list .toc-tag.key { background: #1c1832; color: #faf5ed; }
.toc-list .toc-tag.new { background: #f1f5ec; color: #4a5e3f; border: 1px solid #c8d4b8; }
.toc-list .toc-tag.ref { background: #fdf9ef; color: #8a6a1f; border: 1px solid #e0d4a8; }

/* Mobile TOC */
@media (max-width: 640px) {
  .toc-block { padding: 26px 22px 24px; margin: 24px auto 36px; }
  .toc-block h2 { font-size: 26px; }
  .toc-block .toc-note { font-size: 14px; }
  .toc-part-label { gap: 10px; }
  .toc-part-label .part-name { font-size: 18px; }
  .toc-list li { padding: 10px 0; gap: 10px; flex-wrap: wrap; }
  .toc-list a { font-size: 14.5px; }
  .toc-list .toc-desc { font-size: 12px; }
  .toc-list .toc-tag { font-size: 8.5px; padding: 2px 6px; }
}

/* ==========================================================================
   8. RESPONSIVE / MEDIA QUERIES
   (Component-specific tweaks for single breakpoints stay co-located inside
    their component sections above. The big mobile/tablet cascades live here,
    ordered largest → smallest so specificity cascades correctly.)
   ========================================================================== */

/* ===== MOBILE (phone screens) ===== */
@media (max-width: 640px) {
  /* Base */
  body { font-size: 15.5px; }

  /* Layout — tighter margins on phones */
  main { padding: 0 16px 60px; }
  section { padding: 40px 0 12px; }

  /* Top nav */
  .topnav-inner { padding: 10px 16px; gap: 10px; }
  .topnav .brand { font-size: 17px; }
  .nav-toggle { padding: 6px 12px; font-size: 10px; }
  .nav-save-pdf {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .nav-save-pdf .btn-label-full { display: none; }
  .nav-save-pdf .btn-label-short { display: inline; }

  /* Hero — tighter spacing and scaled-down type */
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); margin-bottom: 10px; }
  .hero .welcome { font-size: 14px; margin-bottom: 16px; }

  /* Soft-note disclaimer */
  .soft-note { padding: 20px 22px; margin: 8px auto 28px; }
  .soft-note p { font-size: 14px; }

  /* Part dividers */
  .part-divider { padding: 44px 18px; }
  .part-divider h2 { font-size: clamp(28px, 8vw, 36px); }
  .part-divider p { font-size: 15px; }

  /* Section heads */
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 32px); }
  .section-head .lede { font-size: 16px; }
  .section-head .num { font-size: 12px; }

  h3 { font-size: 21px; margin: 24px 0 8px; }
  h4 { font-size: 11px; }

  p { font-size: 15.5px; }
  ul, ol { margin-left: 18px; }

  /* Key-insight section (§2 dramatic) — scale down for mobile */
  .key-insight {
    margin: 40px -16px 0;
    padding: 48px 22px 42px;
  }
  .key-insight h2 { font-size: clamp(36px, 11vw, 48px); }
  .key-insight .key-lede { font-size: 16px; }
  .key-insight .key-definition {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 28px;
  }
  .key-def { padding: 20px 18px; }
  .key-def .headline { font-size: 24px; }
  .key-insight .key-punch { padding: 22px 18px; }
  .key-insight .key-punch p { font-size: 18px; }
  .key-insight .key-eyebrow { font-size: 9px; letter-spacing: 0.25em; }

  /* Tables — horizontal scroll on mobile */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 14px -16px 20px;
    padding: 0 16px;
    position: relative;
    max-width: 100vw;
    box-sizing: border-box;
    /* Visual cue that table scrolls — right-edge fade */
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(44,47,77,0.08), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(44,47,77,0.08), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .table-wrap::after {
    content: '→ swipe';
    position: absolute;
    top: 2px;
    right: 16px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose);
    opacity: 0.7;
    pointer-events: none;
  }
  table { font-size: 13px; min-width: 480px; }
  th { padding: 9px 10px; font-size: 10px; }
  td { padding: 9px 10px; }

  /* Callouts */
  .callout { padding: 16px 18px; margin: 18px 0; }
  .callout p { font-size: 14.5px; }
  .callout .label { font-size: 9.5px; }

  /* Compare cards (prescriptive vs educational) */
  .compare { grid-template-columns: 1fr; gap: 10px; }
  .compare-card { padding: 14px 16px; }

  /* Niche reality cards */
  .niche-reality { grid-template-columns: 1fr; gap: 12px; }
  .niche-card { padding: 16px 18px; }

  /* Path / gap / method cards */
  .path-card, .gap-card, .method-card {
    padding: 18px 18px;
  }
  .path-card h4, .gap-card h4, .method-card h4 { font-size: 19px; }
  .gap-card .validate ol, .method-card .how { font-size: 13px; }
  .path-card .examples { font-size: 13px; }

  /* Reflection prompt cards */
  .prompt-card { padding: 18px 20px; }
  .prompt-card .prompt-q { font-size: 16px; }
  .prompt-card .prompt-why { font-size: 13px; }

  /* Archetype cards */
  .archetype { padding: 18px 20px; }
  .archetype h3 { font-size: 19px; }
  .archetype .at-voice { font-size: 13.5px; padding: 10px 12px; }
  .archetype .at-meta { font-size: 12.5px; }

  /* AI warning */
  .ai-warning { padding: 20px 20px; margin: 18px 0; }
  .ai-warning h4 { font-size: 19px; }
  .ai-warning p { font-size: 14px; }
  .ai-warning .ai-examples { padding: 12px 14px; font-size: 13px; }

  /* Voice example boxes */
  .voice-example { padding: 16px 18px; }
  .voice-example p { font-size: 14px; }

  /* Prompt boxes — reduce padding, allow natural wrapping */
  .prompt-box {
    padding: 16px 16px;
    font-size: 12.5px;
    line-height: 1.65;
  }
  .prompt-box .prompt-tag {
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.14em;
  }

  /* Link groups */
  .linkgroup { padding: 16px 18px; }
  .linkgroup li { font-size: 14px; padding: 10px 0; }
  .linkgroup .desc { font-size: 12px; }

  /* Touch targets — links need to be big enough to tap cleanly */
  a { padding: 2px 0; display: inline-block; }
  .linkgroup a, .navmenu a { display: inline; }

  /* Checklists */
  .checklist li { padding: 10px 12px; font-size: 14px; }

  /* Companion (D&G Fuzion) blocks */
  .companion { padding: 26px 22px; margin: 32px 0; }
  .companion h3 { font-size: 24px; }
  .companion p { font-size: 14px; }
  .companion .companion-offer { padding: 14px 16px; font-size: 13.5px; }
  .companion-cta {
    padding: 12px 22px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .companion-cta-row { gap: 10px; }
  .companion .signature { font-size: 12.5px; }

  /* Tiers (monetization paths) */
  .tier { padding: 18px 20px; }
  .tier h3 { font-size: 20px; }
  .tier p { font-size: 14px; }

  /* Site audit */
  .site-audit { padding: 28px 22px; margin: 32px 0 28px; }
  .site-audit h3 { font-size: 24px; }
  .site-audit .audit-intro { font-size: 15px; }
  .audit-group { padding: 16px 18px; }
  .audit-group h4 { font-size: 15px; }
  .audit-group li { font-size: 13px; padding: 8px 0 8px 20px; }
  .audit-pitch h4 { font-size: 20px; }
  .audit-pitch p { font-size: 14px; }
  .audit-pitch .services-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-chip { padding: 11px 13px; font-size: 12.5px; }
  .service-chip strong { font-size: 15px; }
  .audit-pitch .audit-cta { padding: 11px 20px; font-size: 10px; letter-spacing: 0.14em; }

  /* Phase (week-by-week) */
  .phase { gap: 14px; padding: 14px 0; }
  .phase-num { font-size: 28px; width: 44px; }
  .phase-body h4 { font-size: 11px; }
  .phase-body p { font-size: 14px; }

  /* Spectrum / scale bar */
  .spectrum { padding: 18px 20px; }

  /* Glossary */
  .glossary dt { font-size: 17px; }
  .glossary dd { font-size: 14px; }

  /* Search examples (code chips) */
  .search-example {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  /* Part divider */
  .part-divider .eyebrow { font-size: 10px; letter-spacing: 0.24em; }

  /* Footer */
  footer { padding: 0; margin-top: 40px; }
}

/* Extra-small phones (iPhone SE, small Androids) */
@media (max-width: 380px) {
  main { padding: 0 12px 60px; }
  .hero h1 { font-size: clamp(32px, 11vw, 42px); }
  .key-insight { padding: 40px 18px 36px; margin: 32px -12px 0; }
  .key-insight h2 { font-size: clamp(30px, 10vw, 40px); }
  .section-head h2 { font-size: clamp(22px, 7vw, 28px); }
  h3 { font-size: 19px; }
  /* Tighter tables for small Androids + legacy iPhones */
  .table-wrap { margin: 14px -12px 20px; padding: 0 12px; }
  table { min-width: 340px; font-size: 12.5px; }
  th { font-size: 9.5px; padding: 8px 8px; }
  td { padding: 8px 8px; }
  /* Floating back-to-top button — collapse to icon */
  .back-to-top {
    padding: 10px 12px;
    font-size: 0;
  }
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
  .back-to-top .btn-label-short,
  .back-to-top .btn-label-full { display: none; }
}

/* Legacy narrow screens (iPhone 5/SE 1st gen, 320px) — must come AFTER 640px block to override table min-width */
@media (max-width: 340px) {
  .cover {
    padding: 40px 16px 32px;
    margin: -40px -12px 0;
  }
  .cover-title-block { padding: 24px 16px 20px; margin-top: 20px; }
  .cover-meta-card { padding: 14px 18px; }
  .cover-meta-name { font-size: 18px; }
  /* Tighten tables further for tiny screens */
  .table-wrap { margin: 14px -12px 20px !important; padding: 0 12px !important; }
  table { min-width: 280px !important; font-size: 11.5px !important; }
  th, td { padding: 7px 8px !important; font-size: 11px; }
  th { font-size: 9.5px !important; }
}

/* ===== FLOATING BACK-TO-TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: #4a6b3f;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58,83,48,0.35), 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  /* Hidden until the reader has scrolled past the first viewport;
     script.js toggles `.is-visible` on scroll. */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus {
  background: #3a5330;
  box-shadow: 0 6px 18px rgba(58,83,48,0.45), 0 3px 6px rgba(0,0,0,0.12);
  transform: translateY(-1px);
  outline: none;
}
.back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(58,83,48,0.35);
}
.back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top .btn-label-short { display: none; }
@media (max-width: 520px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 11px 15px 11px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .back-to-top .btn-label-full { display: none; }
  .back-to-top .btn-label-short { display: inline; }
}

/* ==========================================================================
   9. PRINT STYLES
   ========================================================================== */
@media print {
  /* Cover page — full-bleed lilac wash, first page only */
  .cover {
    min-height: 9.6in;
    height: 9.6in;
    margin: 0 !important;
    padding: 0.6in 0.6in 0.5in !important;
    background: var(--lilac-wash) !important;
    color: var(--ink) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
  }
  .cover-title-block, .cover-meta-card, .cover-eyebrow-ornament {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cover-volume, .cover-edition { top: 0.55in !important; }
  .cover-volume { left: 0.6in !important; }
  .cover-edition { right: 0.6in !important; }

  /* Hide interactive UI from PDF */
  .topnav, .nav-toggle, .nav-save-pdf, .navmenu, .back-to-top { display: none !important; }

  /* Clean page for PDF */
  html, body {
    background: white !important;
    color: #1c1832 !important;
  }
  body {
    font-size: 11pt;
    line-height: 1.5;
    background-image: none !important;
  }

  /* Links in body ink, not rose, for print readability */
  a { color: var(--ink); text-decoration: underline; }

  /* Keep cards and atomic blocks from breaking mid-element.
     NOTE: section is NOT in this list — sections can span pages; only their
     contained cards must be atomic. */
  .part-divider, .callout, .gap-card, .path-card, .method-card,
  .companion, .site-audit, .voice-example, .prompt-box, .prompt-card, .toc-block,
  .compare-card, .archetype, .niche-card, .tier, .phase,
  .grant-card, .pattern-card, .framing-note, .soft-note,
  .closing-block, .key-insight, .linkgroup, .audit-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Force page breaks ONLY on major boundaries, not every section.
     This lets content flow naturally and reduces page-count bloat. */
  .part-divider, footer,
  #top-cover, .cover {
    break-before: page;
    page-break-before: always;
  }

  /* Keep section-head together with its first paragraph to avoid orphaned titles */
  .section-head {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Keep headings with their next content */
  h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Avoid splitting paragraphs awkwardly */
  p, li { orphans: 3; widows: 3; }

  /* Soften heavy backgrounds in print — use ink/cream only */
  .key-insight {
    background: #f5f2ec !important;
    color: var(--ink) !important;
    padding: 30px 24px !important;
    border: 1px solid var(--rule);
  }
  .key-insight h2,
  .key-insight .key-lede,
  .key-insight .key-def .headline,
  .key-insight .key-def p,
  .key-insight .key-punch p {
    color: var(--ink) !important;
  }
  .key-def { background: #ffffff !important; }

  /* Companion & audit blocks — lighter in print */
  .companion, .site-audit {
    background: #f7f5f0 !important;
    box-shadow: none !important;
  }
  .audit-group { background: #ffffff !important; box-shadow: none !important; }
  .prompt-box { background: #1c1832 !important; color: #faf5ed !important; }

  /* Page margins (most browsers honor this) */
  @page {
    margin: 0.6in 0.5in;
  }

  /* Hide tool-tip stuff & fixed positioning that breaks in PDF */
  .section-break { margin: 20px 0; }

  /* Make tables readable at print size */
  table { font-size: 10pt; }
}
