/* Maple Roots Project — site mockup styles */
:root {
  --paper: #F4F0E8;
  --paper-2: #EBE5D9;
  --card: #FFFEFB;
  --ink: #1F2A23;
  --muted: #5F665D;
  --line: #DCD6CA;
  --maple: #B8352A;
  --maple-dark: #922A21;
  --maple-soft: #F3E0D8;
  --amber: #C98A2B;
  --amber-soft: #F2EADA;
  --orange: #C4622D;
  --forest: #5C6A4E;
  --forest-soft: #E7E9DD;
  --sage: #E4E6DB;
  --sky-soft: #E4E6DB;
  --teal: #1F3327;
  --soil: #162218;
  --soil-2: #1F3327;
  --glow: #E9C98F;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 34, 24, .05), 0 6px 20px rgba(22, 34, 24, .07);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--maple-dark); text-underline-offset: 3px; }
a:hover { color: var(--maple); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maple); margin-bottom: .6rem; display: block; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* Mockup banner */
.mock-banner { background: var(--soil); color: #F3E6D6; font-size: .85rem; text-align: center; padding: 6px 16px; }
.mock-banner strong { color: var(--glow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--maple-soft); color: var(--maple-dark); }
.lang { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 10px; color: var(--ink); margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maple); color: #fff; }
.btn-primary:hover { background: var(--maple-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--maple); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(58, 42, 32, .18)); }
.roots-line { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.15rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--forest); font-weight: 700; }

/* Sections */
section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.band { background: var(--paper-2); }
.band-dark { background: var(--soil); color: #F3E6D6; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: #CDB9A5; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--amber); color: inherit; }

.module-card { position: relative; display: flex; flex-direction: column; gap: 6px; }
.module-num { width: 44px; height: 44px; border-radius: 50%; background: var(--maple-soft); color: var(--maple-dark); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 8px; }
.module-card .meta { font-size: .88rem; color: var(--muted); margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; }
.module-card .meta b { color: var(--maple-dark); }

.path-card { border-top: 5px solid var(--amber); }
.path-card:nth-child(2) { border-top-color: var(--maple); }
.path-card:nth-child(3) { border-top-color: var(--forest); }
.path-card ul { padding-left: 1.1em; margin: .6em 0 0; }
.path-card li { margin-bottom: .25em; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--glow); line-height: 1.1; }
.stat span { font-size: .95rem; color: #E8D8C6; }

/* Why box */
.why { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; background: var(--forest-soft); border-radius: var(--radius); padding: 32px; border: 1px solid #CFDCCF; }
.why svg { width: 110px; height: 110px; }

/* Checklist entry teaser */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--forest); margin-top: 3px; }
.tick.done { background: var(--forest); position: relative; }
.tick.done::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Page header */
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); position: relative; overflow: hidden; }
.page-head .leaf-bg { position: absolute; right: -40px; top: -30px; width: 260px; opacity: .07; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Module page */
.module-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0 64px; }
.side-nav { position: sticky; top: 96px; align-self: start; }
.side-nav h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.side-nav ol { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: m; }
.side-nav li a { display: flex; gap: 10px; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; font-size: .95rem; line-height: 1.3; }
.side-nav li a:hover { background: var(--paper-2); }
.side-nav li a[aria-current="page"] { background: var(--maple-soft); color: var(--maple-dark); font-weight: 700; }
.side-nav li a span { font-family: var(--serif); font-weight: 700; color: var(--maple); min-width: 1.1em; }
.on-page a { display: block; font-size: .92rem; color: var(--muted); text-decoration: none; padding: 4px 10px; border-left: 2px solid var(--line); }
.on-page a:hover { color: var(--maple-dark); border-left-color: var(--maple); }

.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; scroll-margin-top: 96px; }
.article > h2:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .45em; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--maple); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.summary p { margin: 0; font-size: 1.12rem; }
.callout { border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; }
.callout h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.newcomer { background: var(--amber-soft); border: 1px solid #EFD3A1; }
.callout.newcomer h4 { color: #8A5A10; }
.callout.warn { background: var(--maple-soft); border: 1px solid #EBC2B6; }
.callout.warn h4 { color: var(--maple-dark); }
.callout.good { background: var(--forest-soft); border: 1px solid #CFDCCF; }
.callout.good h4 { color: var(--forest); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; }
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.figure b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--maple-dark); line-height: 1.15; }
.figure span { font-size: .9rem; color: var(--muted); }
.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px !important; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.link-list { list-style: none; padding: 0 !important; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.link-list a { font-weight: 600; }
.link-list a::after { content: " ↗"; font-size: .85em; }
.link-list small { display: block; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); max-width: 48%; }
.pager a:hover { border-color: var(--amber); }
.pager small { display: block; color: var(--muted); font-size: .82rem; }
.pager .next { margin-left: auto; text-align: right; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); font-size: .96rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--paper-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Calculator */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; box-shadow: var(--shadow); }
.calc h3 { margin-bottom: .2em; }
.calc label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 4px; }
.calc input[type=range] { width: 100%; accent-color: var(--maple); }
.calc .val { font-family: var(--serif); font-weight: 700; color: var(--maple-dark); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.calc-out div { background: var(--paper); border-radius: var(--radius-sm); padding: 14px; }
.calc-out b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--forest); }
.calc-out span { font-size: .85rem; color: var(--muted); }
.bar-track { height: 16px; background: var(--paper-2); border-radius: 999px; overflow: hidden; display: flex; margin-top: 16px; }
.bar-track i { display: block; height: 100%; }
.bar-legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.bar-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }

/* Checklist page */
.progress-wrap { position: sticky; top: 72px; z-index: 10; background: var(--paper); padding: 16px 0; border-bottom: 1px solid var(--line); }
.progress { display: flex; align-items: center; gap: 16px; }
.progress-bar { flex: 1; height: 12px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--maple)); transition: width .3s ease; }
.progress b { font-family: var(--serif); min-width: 7ch; text-align: right; }
.phase { margin: 36px 0; }
.phase-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.phase-head .when { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--forest); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.check { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: background .15s ease; }
.check:hover { border-color: var(--amber); }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--forest); cursor: pointer; }
.check strong { display: block; }
.check .why-it { color: var(--muted); font-size: .95rem; }
.check .go { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.check.is-done { background: var(--forest-soft); }
.check.is-done strong { text-decoration: line-through; text-decoration-color: rgba(47, 74, 58, .5); }

/* Help & resources */
.help-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--forest-soft); color: var(--forest); margin-bottom: 10px; }
.help-card .tag.free { background: var(--amber-soft); color: #8A5A10; }
.help-card a.more { font-weight: 700; display: inline-block; margin-top: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.res-group[hidden] { display: none; }
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.note { font-size: .88rem; color: var(--muted); }

/* Glossary */
.search { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); margin-bottom: 24px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); font-size: .9rem; }
.letters a:hover { border-color: var(--maple); color: var(--maple); }
.term { padding: 18px 0; border-bottom: 1px solid var(--line); }
.term dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.term dt small { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.term dd { margin: 4px 0 0; color: var(--ink); }
.term dd a { font-size: .9rem; }

/* Footer */
.site-footer { background: var(--soil); color: #D9C7B4; padding: 48px 0 28px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #F3E6D6; text-decoration: none; }
.site-footer a:hover { color: var(--glow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand b { font-family: var(--serif); color: #fff; font-size: 1.15rem; }
.tagline { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--glow); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .95rem; transition: transform .3s ease; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .lang { margin: 8px 0 0; }
  .hero-grid, .teaser, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .module-layout { grid-template-columns: 1fr; gap: 24px; }
  .side-nav { position: static; }
  .side-nav ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .side-nav li a { white-space: nowrap; border: 1px solid var(--line); background: var(--card); }
  .on-page { display: none; }
  .why { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .check { grid-template-columns: 28px 1fr; }
  .check .go { grid-column: 2; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
}
@media print {
  .site-header, .site-footer, .mock-banner, .progress-wrap, .side-nav { display: none; }
}

/* ---- Guide-matched additions ---- */
.hero.dark { background: var(--teal); color: #EAF1F2; padding: 64px 0 0; position: relative; }
.hero.dark h1 { color: #fff; }
.hero.dark h1 em { color: var(--glow); font-style: normal; }
.hero.dark .eyebrow { color: var(--glow); }
.hero.dark .lede { color: #C9D9DC; }
.hero.dark .trust { color: #C9D9DC; }
.hero.dark .trust span::before { color: var(--glow); }
.hero.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero.dark .btn-ghost:hover { background: #fff; color: var(--teal); }
.hero.dark .roots-line { color: #C9D9DC; }
.hero-art svg { filter: none; }
.brand-word { font-weight: 700; letter-spacing: -.01em; }
.brand-name small { letter-spacing: .32em; color: var(--amber); }
.callout.why-matters { background: var(--sky-soft); border: 0; border-left: 5px solid var(--teal); }
.callout.why-matters h4 { color: var(--teal); }
.callout.next { background: var(--teal); color: #EAF1F2; border: 0; }
.callout.next h4 { color: var(--glow); }
.callout.next ul { margin: 0; }
.callout.example { background: var(--amber-soft); border: 1px solid #EED8B0; }
.callout.example h4 { color: #8A5A10; }
.page-head.mod { color: #fff; border-bottom: 0; background: var(--c, var(--maple)); }
.page-head.mod .crumbs, .page-head.mod .crumbs a { color: rgba(255,255,255,.85); }
.page-head.mod .lede { color: rgba(255,255,255,.9); }
.page-head.mod .eyebrow { color: rgba(255,255,255,.85); }
.page-head.mod .leaf-bg { opacity: .14; }
.page-head.mod .leaf-bg path { fill: #fff; }
.module-num { background: var(--c, var(--maple-soft)); color: #fff; }
.table th { background: var(--teal); color: #fff; }
.compare th:first-child, .compare td:first-child { font-weight: 600; background: var(--paper-2); color: var(--ink); }
.order { list-style: none; padding: 0 !important; }
.order li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px !important; }
.order li b.n { width: 40px; height: 40px; border-radius: 50%; background: var(--glow); color: var(--teal); display: grid; place-items: center; font-size: 1.1rem; }
.order li span { color: var(--muted); }
.module-layout > *, .article, .grid > *, .teaser > * { min-width: 0; }
/* Newcomer tips are green, as in the guide */
.callout.newcomer { background: var(--forest-soft); border: 1px solid #C9E0D3; }
.callout.newcomer h4 { color: var(--forest); }
@media (max-width:560px){ .table{min-width:520px} .compare{min-width:600px} .table-scroll{margin:0 -16px;padding:0 16px} }


/* ================= V3 design theme ================= */
body { font-size: 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h4, .eyebrow, .btn, .nav a, .brand-name small { font-family: var(--sans); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.article h2 { position: relative; padding-bottom: 10px; }
.article h2::after, .section-head h2::after, .phase-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--amber); border-radius: 2px; }
.section-head h2, .phase-head h2 { position: relative; padding-bottom: 10px; }
.eyebrow { letter-spacing: .2em; }
.mock-banner { background: var(--soil); }
.site-header { background: rgba(244, 240, 232, .95); }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.brand-word { font-weight: 400; }
.brand-name small { letter-spacing: .34em; color: var(--muted); font-weight: 600; }
.nav a { font-weight: 600; }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.btn-primary { background: var(--maple); }
.btn-primary:hover { background: var(--maple-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* Hero with the cover painting */
.hero.painted { background: #E2DCCE; padding: 0; position: relative; overflow: hidden; }
.hero.painted .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 0; align-items: stretch; min-height: 640px; }
.hero.painted .hero-copy { padding: 72px 40px 64px 0; display: flex; flex-direction: column; justify-content: center; }
.hero.painted h1 { color: var(--teal); font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero.painted h1 em { font-style: italic; color: var(--maple); }
.hero.painted .lede { color: #4E574D; }
.hero.painted .roots-quote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--teal); border-top: 1px solid #B9B2A2; border-bottom: 1px solid #B9B2A2; padding: 14px 0; margin: 28px 0 0; max-width: 30ch; }
.hero-painting { position: relative; min-height: 420px; background: url(hero-trees.jpg) center 60% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero.painted .trust { color: #4E574D; }
.hero.painted .trust span::before { color: var(--maple); }
.roots-band { height: 220px; background: url(roots-band.jpg) center / cover no-repeat; position: relative; }
.roots-band p { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #E9E2D2; font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 0; padding: 0 16px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Cards and bands */
.card { box-shadow: none; }
a.card:hover { border-color: var(--maple); }
.module-num { border-radius: 8px; font-family: var(--serif); font-weight: 400; }
.band { background: var(--paper-2); }
.band-dark { background: var(--teal); }
.stat { background: rgba(255,255,255,.05); }
.stat b { font-weight: 400; color: var(--glow); }
.path-card { border-top-color: var(--teal); }
.path-card:nth-child(2) { border-top-color: var(--maple); }
.path-card:nth-child(3) { border-top-color: var(--orange); }
.why { background: var(--amber-soft); border: 0; border-left: 5px solid var(--maple); border-radius: var(--radius-sm); }
.tick { border-color: var(--teal); border-radius: 50%; }
.tick.done { background: var(--teal); }

/* Page headers: rounded colour cards like the guide's module headers */
.page-head { background: var(--paper); border-bottom: 0; padding: 28px 0 8px; }
.page-head .head-card { background: var(--c, var(--teal)); color: #fff; border-radius: var(--radius); padding: 36px 40px; position: relative; overflow: hidden; }
.page-head .head-card h1 { color: #fff; margin-bottom: .2em; }
.page-head .head-card .lede { color: rgba(255,255,255,.85); margin: 0; }
.page-head .head-card .eyebrow { color: rgba(255,255,255,.8); }
.page-head .leaf-bg { right: 24px; top: 50%; transform: translateY(-50%); width: 170px; opacity: .13; }
.page-head .leaf-bg path { fill: #fff; }
.crumbs { margin: 0 0 12px 4px; }
.page-head.mod { background: var(--paper); }
.module-layout { padding-top: 32px; }

/* Callouts, matching the guide */
.callout { border: 0 !important; border-left: 5px solid var(--bar) !important; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout h4 { letter-spacing: .12em; font-size: .78rem; }
.callout.why-matters { background: var(--sage); --bar: var(--teal); }
.callout.why-matters h4 { color: var(--teal); }
.callout.newcomer { background: var(--forest-soft); --bar: var(--forest); }
.callout.newcomer h4 { color: var(--forest); }
.callout.warn { background: var(--maple-soft); --bar: var(--maple); }
.callout.warn h4 { color: var(--maple); }
.callout.example { background: var(--amber-soft); --bar: var(--amber); }
.callout.example h4 { color: #8A5A10; }
.callout.next { background: var(--amber-soft); color: var(--ink); --bar: var(--orange); }
.callout.next h4 { color: var(--orange); }
.callout.final { background: var(--sage); --bar: var(--teal); }
.summary { border-left-color: var(--maple); }
.figure b { font-weight: 400; color: var(--teal); }
.table { border: 0; background: transparent; }
.table th { background: var(--thc, var(--teal)); color: #fff; font-weight: 600; }
.table td { background: transparent; }
.compare th:first-child, .compare td:first-child { background: transparent; }
.steps li::before { background: var(--teal); border-radius: 6px; }
.order li b.n { border-radius: 6px; color: #fff; background: var(--oc, var(--teal)); font-weight: 700; }
.order li:nth-child(2) b.n { --oc: var(--forest); }
.order li:nth-child(3) b.n { --oc: var(--orange); }
.order li:nth-child(4) b.n { --oc: var(--maple); }
.link-list a { color: var(--teal); }
.side-nav li a[aria-current="page"] { background: var(--teal); color: #fff; }
.side-nav li a[aria-current="page"] span { color: var(--glow); }
.side-nav li a span { font-weight: 400; }
.calc-out b { font-weight: 400; color: var(--teal); }
.calc input[type=range] { accent-color: var(--maple); }

/* Checklist */
.progress-bar i { background: linear-gradient(90deg, var(--forest), var(--teal)); }
.phase-head h2 { color: var(--pc, var(--teal)); }
.phase-head h2::after { background: var(--pc, var(--teal)); }
.phase-head .when { background: var(--pc, var(--teal)); }
.check { background: var(--card); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--pc, var(--teal)); background: #fff; display: grid; place-items: center; }
.check input:checked { background: var(--pc, var(--teal)); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.check.is-done { background: var(--sage); }
.check .go { color: var(--pc, var(--teal)); }

/* Help & glossary */
.help-card .tag { background: var(--sage); color: var(--teal); }
.help-card .tag.free { background: var(--amber-soft); color: var(--orange); }
.tabs button[aria-selected="true"] { background: var(--teal); border-color: var(--teal); }
.term dt { font-weight: 400; }
.letters a:hover { border-color: var(--maple); color: var(--maple); }

/* Footer */
.site-footer { background: var(--soil); margin-top: 0; }
.footer-brand b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.tagline { color: var(--glow); font-weight: 400; }

@media (max-width: 880px) {
  .hero.painted .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero.painted .hero-copy { padding: 44px 0 8px; }
  .hero-painting { order: -1; min-height: 360px; margin: 0 -24px; background-position: center 18%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .page-head .head-card { padding: 28px 24px; }
  .page-head .leaf-bg { width: 110px; right: 8px; }
}
@media (max-width: 560px) {
  .hero-painting { margin: 0 -16px; min-height: 300px; }
  .roots-band { height: 160px; }
}
@media (max-width: 880px) {
  .hero.painted .hero-grid { padding: 0 24px !important; }
  .hero-painting { background-position: center 55%; }
}
@media (max-width: 560px) { .hero.painted .hero-grid { padding: 0 16px !important; } }
.page-head.mod .crumbs, .page-head.mod .crumbs a { color: var(--muted); }
.table.fit { min-width: 0 !important; }
