/* The Parent Money File: site design
   Brand: Evergreen #1F3D32, Brass #C9A96B, Paper #F7F4EC, Sage #A7B89F, Navy #243850
   Fonts: Playfair Display (headings), Jost (everything else) */

@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --evergreen: #1F3D32;
  --evergreen-deep: #173027;
  --evergreen-soft: #2E5546;
  --brass: #C9A96B;
  --brass-deep: #7E5F27;
  --brass-soft: #F1E6CE;
  --paper: #F7F4EC;
  --paper-2: #EFE9DB;
  --card: #FFFDF8;
  --sage: #A7B89F;
  --sage-soft: #E4EBDF;
  --navy: #243850;
  --navy-soft: #E5EAF1;
  --clay: #A4502F;
  --clay-soft: #F8E8DF;
  --ink: #0F1F18;
  --text: #26312C;
  --muted: #56615B;
  --line: #DCD4C2;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(31, 61, 50, .06), 0 8px 24px rgba(31, 61, 50, .07);
  --wrap: 1180px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.7;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--evergreen); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--evergreen-soft); text-decoration-color: var(--evergreen); }
:focus-visible { outline: 3px solid var(--brass-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--evergreen); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; }
.icon-xs { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--evergreen);
  background: var(--evergreen); color: var(--paper); font: 500 1.05rem/1 var(--sans);
  padding: .95rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--evergreen-soft); border-color: var(--evergreen-soft); color: var(--paper); transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--evergreen); }
.btn-quiet:hover { background: var(--sage-soft); color: var(--evergreen); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--evergreen); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.text-link { font-weight: 500; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand img { display: block; width: 190px; height: auto; }
.main-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.main-nav a:hover { background: var(--sage-soft); }
.main-nav a[aria-current="page"] { background: var(--evergreen); color: var(--paper); }
.header-tools { display: flex; gap: .4rem; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--evergreen); cursor: pointer; }
.icon-btn:hover { border-color: var(--evergreen); }
.menu-toggle { display: none; }

.preview-bar, .draft-bar { background: var(--brass-soft); color: var(--brass-deep); text-align: center; font-weight: 500; font-size: .95rem; padding: .5rem 1rem; border-bottom: 1px solid var(--brass); }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.08; margin-bottom: .45em; }
/* Home hero label: sized so it runs as wide as the first line of the heading, to make "for Canadians" stand out */
.hero .eyebrow { font-size: clamp(1.1rem, 1.82vw, 1.35rem); letter-spacing: .12em; }
.underline { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c60-6 140-8 294-3' fill='none' stroke='%23C9A96B' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .32em; padding-bottom: .12em; }
.lede { font-size: 1.28rem; line-height: 1.6; color: var(--text); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(31,61,50,.12)); transform: rotate(-2deg); }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--paper-2); }
.section-h { margin-bottom: .3em; }
.section-lede { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin-bottom: 2rem; }
.more { margin-top: 1.6rem; font-weight: 500; }

/* Stage cards (home) */
.stage-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; counter-reset: none; }
.stage-card a {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 6px var(--radius) var(--radius) var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
  margin-top: 14px;
}
.stage-card a::before { /* folder tab */
  content: ""; position: absolute; top: -14px; left: -1.5px; width: 92px; height: 16px;
  background: var(--card); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
}
.stage-card:nth-child(3n+1) a::before { background: var(--sage-soft); }
.stage-card:nth-child(3n+2) a::before { background: var(--brass-soft); }
.stage-card a:hover { transform: translateY(-3px); border-color: var(--evergreen); }
.stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.stage-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--evergreen); color: var(--paper); font-weight: 600; font-size: 1rem; flex: none; }
.stage-num.big { width: 44px; height: 44px; font-size: 1.2rem; }
.stage-icon { width: 34px; height: 34px; color: var(--brass-deep); }
.stage-name { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.stage-short { color: var(--brass-deep); font-weight: 500; font-size: .98rem; margin: .2rem 0 .7rem; }
.stage-here { font-size: 1rem; color: var(--muted); line-height: 1.55; flex: 1; }
.stage-go { margin-top: 1rem; font-weight: 500; color: var(--evergreen); }

/* Trust */
.trust-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-grid li { border-top: 3px solid var(--brass); padding-top: 1.1rem; }
.trust-icon { width: 34px; height: 34px; color: var(--evergreen); margin-bottom: .5rem; }
.trust-grid h3 { font-size: 1.25rem; margin-bottom: .35em; }
.trust-grid p { font-size: 1.02rem; color: var(--muted); margin: 0; }

/* Guide cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.guide-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.guide-card[hidden] { display: none; }
.guide-card h3 { font-size: 1.3rem; margin-bottom: .45em; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.guide-card p { font-size: 1.02rem; margin-bottom: .8em; }
.card-stage { display: flex; align-items: center; gap: .5rem; font-size: .9rem !important; font-weight: 500; color: var(--brass-deep); }
.card-stage .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-soft); color: var(--evergreen); font-size: .8rem; font-weight: 600; }
.card-meta { margin-top: auto; margin-bottom: 0 !important; color: var(--muted); font-size: .92rem !important; }
.badge-draft { display: inline-block; margin-left: .5rem; vertical-align: 3px; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--brass-soft); color: var(--brass-deep); padding: .3rem .5rem; border-radius: 6px; }

/* Signup */
.signup { margin: 56px 0 72px; }
.signup-inner {
  background: var(--evergreen); color: var(--paper); border-radius: var(--radius-lg); padding: 40px 44px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; position: relative; overflow: hidden;
}
.signup-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(201,169,107,.18); }
.signup h2 { color: var(--paper); margin-bottom: .3em; }
.signup p { color: #E9E4D6; margin: 0; }
.signup-bare { margin-top: 28px; }
.signup-bare .signup-inner { grid-template-columns: 1fr; }
.signup-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; position: relative; z-index: 1; }
.signup-form input { font: 400 1.05rem var(--sans); padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid transparent; background: var(--card); color: var(--ink); min-width: 0; }
.signup-form .btn { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.signup-form .btn:hover { background: #D8BD86; border-color: #D8BD86; }
.signup-form .form-note, .signup-form .form-status { grid-column: 1 / -1; font-size: .92rem; }
.signup-form a { color: var(--paper); }
.form-status:empty { display: none; }

/* Page heads */
.page-head { padding: 34px 0 30px; }
.page-head h1 { margin-bottom: .35em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.4rem; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--brass-deep); }
.crumbs a { color: var(--muted); }

/* Journey tabs: the folder tabs */
.journey-tabs { margin: 0 0 1.8rem; }
.journey-where { font-size: 1rem; color: var(--muted); margin-bottom: .5rem; }
.journey-tabs ol { list-style: none; display: flex; gap: 6px; padding: 0 0 0; margin: 0; border-bottom: 3px solid var(--evergreen); overflow-x: auto; scrollbar-width: thin; }
.journey-tabs li { flex: 1 1 0; min-width: 118px; }
.journey-tabs a {
  display: flex; align-items: center; gap: .5rem; height: 100%; text-decoration: none; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
  padding: .55rem .7rem .5rem; font-size: .92rem; line-height: 1.25; font-weight: 500;
}
.journey-tabs a:hover { background: var(--sage-soft); }
.journey-tabs .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); font-size: .82rem; font-weight: 600; flex: none; }
.journey-tabs li.before a { background: var(--sage-soft); }
.journey-tabs li.before .n { background: var(--sage); color: var(--evergreen); }
.journey-tabs li.current a { background: var(--evergreen); border-color: var(--evergreen); color: var(--paper); }
.journey-tabs li.current .n { background: var(--brass); color: var(--ink); }
.journey-tabs.compact li { min-width: 44px; }
.journey-tabs.compact li:not(.current) .t { display: none; }
.journey-tabs.compact li.current { flex: 3 1 auto; }
.journey-tabs.compact li:not(.current) a { justify-content: center; }

/* Stage page */
.stage-head .narrow-left { max-width: 780px; }
.stage-here.big { font-size: 1.15rem; color: var(--text); background: var(--card); border-left: 4px solid var(--brass); padding: .9rem 1.2rem; border-radius: 0 12px 12px 0; }
.stage-layout .prose { max-width: 720px; }
.empty-note { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted); }
.stage-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }
.stage-nav-link { display: flex; align-items: center; gap: .8rem; text-decoration: none; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.stage-nav-link small { display: block; font: 500 .85rem var(--sans); color: var(--muted); }
.stage-nav-link:hover { border-color: var(--evergreen); }
.stage-nav-link.next { text-align: right; margin-left: auto; }

/* Journey overview */
.journey-list { padding-bottom: 10px; }
.journey-stage { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow); position: relative; }
.journey-stage + .journey-stage::before { content: ""; position: absolute; left: 49px; top: -21px; height: 20px; border-left: 3px dotted var(--brass); }
.journey-stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: .6rem; }
.journey-stage-head h2 { margin: 0; font-size: 1.6rem; }
.journey-stage-head h2 a { color: var(--ink); text-decoration: none; }
.journey-stage-head .stage-short { margin: 0; }
.journey-stage .stage-here { font-size: 1.05rem; }
.plain-list { padding-left: 1.2rem; }

/* All guides */
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.chip { font: 500 .95rem var(--sans); padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--evergreen); }
.chip.is-on { background: var(--evergreen); border-color: var(--evergreen); color: var(--paper); }
.index-stage { margin: 18px 0 44px; }
.index-stage-h { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; font-size: 1.7rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; }
.index-stage-h a { color: var(--ink); text-decoration: none; }
.index-stage-h small { font: 500 1rem var(--sans); color: var(--brass-deep); }
.index-stage[hidden] { display: none; }

/* Guide page */
.guide-head { padding: 30px 0 10px; }
.guide-title { max-width: 820px; }
.guide-title h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.guide-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .98rem; color: var(--muted); margin: 1.2rem 0 .5rem; }
.guide-meta span { display: inline-block; white-space: nowrap; }
.byline { font-size: .98rem; color: var(--muted); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 30px; }
.guide-body { max-width: 740px; }
.guide-side { position: relative; }
.toc { position: sticky; top: 100px; font-size: .98rem; }
.toc-h { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--brass-deep); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--evergreen); }
.toc li a.active { color: var(--evergreen); border-left-color: var(--evergreen); font-weight: 500; }

/* Article text */
.prose h2 { margin-top: 2em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass-deep); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.3em; border-left: 4px solid var(--sage); font-size: 1.15rem; color: var(--ink); }
.prose hr { border: 0; border-top: 2px dotted var(--brass); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); display: block; }
.prose figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.ext { font-size: .8em; margin-left: .15em; text-decoration: none; display: inline-block; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--evergreen); border-radius: 6px; margin-top: .25em; background: var(--card); }
.checklist .box.done { background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231F3D32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--sage-soft); color: var(--ink); font-weight: 600; }
tbody th { font-weight: 500; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Callout boxes */
.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem 1rem; margin: 1.8em 0; border: 1.5px solid; font-size: 1.07rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem !important; }
.callout ul, .callout ol { margin-bottom: .6em; }
.callout-key-points { background: var(--sage-soft); border-color: var(--sage); }
.callout-key-points .callout-title { color: var(--evergreen); }
.callout-tip { background: var(--brass-soft); border-color: var(--brass); }
.callout-tip .callout-title { color: var(--brass-deep); }
.callout-caution { background: var(--clay-soft); border-color: #E2B4A0; }
.callout-caution .callout-title { color: var(--clay); }
.callout-professional { background: var(--navy-soft); border-color: #B9C4D6; }
.callout-professional .callout-title { color: var(--navy); }
.callout-checklist { background: var(--card); border-color: var(--evergreen); border-width: 2px; }
.callout-checklist .callout-title { color: var(--evergreen); }
.callout-example { background: var(--card); border-color: var(--line); border-style: dashed; }
.callout-example .callout-title { color: var(--muted); }
.callout-source { background: var(--card); border-color: var(--line); border-left: 5px solid var(--navy); border-radius: 6px var(--radius) var(--radius) 6px; }
.callout-source .callout-title { color: var(--navy); }

/* Numbered citations */
sup.cite { font-size: .68em; line-height: 0; vertical-align: super; margin-left: .1em; white-space: nowrap; }
sup.cite a { text-decoration: none; color: var(--brass-deep); font-weight: 600; padding: 0 .1em; border-radius: 3px; }
sup.cite a:hover, sup.cite a:focus-visible { background: var(--brass-soft); color: var(--evergreen); }
.cite-sep { color: var(--muted); }
.sources li { scroll-margin-top: 110px; border-radius: 6px; transition: background .3s; }
.sources li:target { background: var(--brass-soft); outline: 6px solid var(--brass-soft); }

/* End of guide */
.sources { margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--line); }
.sources h2 { font-size: 1.5rem; }
.sources ol { font-size: 1rem; padding-left: 2rem; }
.sources li { margin-bottom: .4rem; }
.updates { margin-top: 2rem; }
.updates h2 { font-size: 1.3rem; }
.updates ul { font-size: .98rem; padding-left: 1.2rem; color: var(--muted); }
.notice-box { background: var(--paper-2); border-radius: var(--radius); padding: 1rem 1.3rem; font-size: .98rem; margin: 2rem 0; }
.notice-box p { margin: 0; }
.next-step { display: grid; gap: .7rem; margin: 2rem 0 1rem; }
.next-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; text-decoration: none; background: var(--evergreen); color: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.next-card small { grid-column: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--brass); }
.next-card span { grid-column: 1; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.next-card .icon { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; }
.next-card:hover { background: var(--evergreen-soft); color: var(--paper); }
.prev-link { font-size: 1rem; }

/* Start here and 404 lists */
.start-stages { display: grid; gap: 12px; margin: 1.5rem 0 1rem; }
.start-stage { display: flex; align-items: center; gap: 1rem; text-decoration: none; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text); }
.start-stage:hover { border-color: var(--evergreen); }
.start-stage > span:nth-child(2) { flex: 1; }
.start-stage strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.start-stage small { display: block; font-size: 1rem; color: var(--muted); line-height: 1.5; }

/* Forms */
.contact-form { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 1rem 0 4rem; }
.form-row label { display: block; font-weight: 500; margin-bottom: .3rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; font: 400 1.05rem var(--sans); padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--evergreen); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.form-note { font-size: .95rem; color: var(--muted); }
.form-status { font-weight: 500; margin-top: .8rem; }

/* Search */
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: 80vh; border: 0; border-radius: var(--radius-lg); padding: 0; background: var(--paper); box-shadow: 0 30px 80px rgba(15,31,24,.35); margin-top: 10vh; }
.search-dialog::backdrop { background: rgba(15,31,24,.45); }
.search-form { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--evergreen); }
.search-form input { flex: 1; border: 0; background: transparent; font: 400 1.2rem var(--sans); color: var(--ink); padding: .4rem 0; min-width: 0; }
.search-form input:focus { outline: none; }
.search-close { font: 500 .95rem var(--sans); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; color: var(--ink); }
.search-results { padding: .6rem; overflow-y: auto; max-height: calc(80vh - 80px); }
.search-results a { display: block; padding: .8rem 1rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a:focus { background: var(--card); }
.search-results strong { display: block; font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.15rem; }
.search-results small { color: var(--brass-deep); font-weight: 500; }
.search-results p { margin: .2rem 0 0; font-size: .98rem; color: var(--muted); }
.search-empty { padding: 1rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--evergreen-deep); color: #E3DDCF; padding: 56px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 220px; }
.footer-tagline { margin-top: .8rem; color: #CFC8B8; font-size: 1rem; }
.footer-h { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--brass); margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; font-size: 1rem; }
.site-footer a { color: #F1ECE0; text-decoration-color: rgba(201,169,107,.6); }
.site-footer a:hover { color: #fff; }
.footer-notice { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 22px; font-size: .92rem; color: #BFB8A8; }
.footer-notice p { max-width: 62em; }

/* Tablet */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
  .signup-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 66px; }
  .brand img { width: 158px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 18px 1rem; box-shadow: 0 12px 20px rgba(31,61,50,.08); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .8rem 1rem; font-size: 1.1rem; }
  .hero { padding: 36px 0 20px; }
  .hero-art { display: none; }
  .lede { font-size: 1.15rem; }
  .section { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .signup-inner { padding: 28px 22px; border-radius: var(--radius); }
  .signup-form { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .journey-stage { padding: 20px; }
  .journey-stage + .journey-stage::before { left: 41px; }
  .journey-tabs .t { display: none; }
  .journey-tabs li, .journey-tabs.compact li, .journey-tabs.compact li.current { min-width: 0; flex: 1 1 0; }
  .journey-tabs a { justify-content: center; padding-left: .2rem; padding-right: .2rem; }
  .crumbs li[aria-current] { display: none; }
  .crumbs li:nth-last-child(2)::after { content: ""; }
  .stage-nav { flex-direction: column; }
  .stage-nav-link.next { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .next-card span { font-size: 1.2rem; }
}

/* Printing a guide (people take these to the bank) */
.guide-layout > * { min-width: 0; }

/* Free download box (in guides, from {{download:id}}) */
.download-box { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 2em 0; padding: 1.3rem 1.4rem; background: var(--card); border: 1.5px solid var(--line); border-left: 6px solid var(--brass); border-radius: var(--radius); font-size: 1.02rem; }
.download-box { scroll-margin-top: 110px; }
.download-box p { margin: 0; }
.download-box > *, .download-form > * { min-width: 0; }
.download-form input { width: 100%; box-sizing: border-box; }
.download-eyebrow { font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); }
.download-name { font-family: var(--serif, Georgia, serif); font-size: 1.35rem; color: var(--evergreen); margin-top: .15rem !important; }
.download-format { font-size: .92rem; color: var(--evergreen-soft); margin-bottom: .4rem !important; }
.download-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.download-form input { font: 400 1.02rem var(--sans); padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.download-form .form-note, .download-form .form-status { grid-column: 1 / -1; font-size: .88rem; color: var(--evergreen-soft); }
.download-form .form-status { color: var(--evergreen); font-weight: 500; }
@media (max-width: 560px) { .download-form { grid-template-columns: 1fr; } }

@media print {
  .download-box { display: none !important; }
  .site-header, .site-footer, .signup, .guide-side, .journey-tabs, .next-step, .crumbs, .preview-bar, .draft-bar, .section-tint, .search-dialog, .print-btn { display: none !important; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .guide-layout { display: block; padding: 0; }
  .guide-body { max-width: none; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .callout { break-inside: avoid; }
  .prose sup.cite a::after { content: none; }
  .table-wrap { overflow: visible; }
  .prose table { width: 100%; min-width: 0 !important; table-layout: fixed; font-size: 9.5pt; }
  .prose th, .prose td { overflow-wrap: anywhere; }
  .prose tr { break-inside: avoid; }
  .print-box, .table-hint { display: none !important; }
  body.printing-box :not(.print-path):not(.print-target):not(.print-target *) { display: none !important; }
  body.printing-box .print-path { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  body.printing-box .print-target { margin: 0; }
}
.callout-title .print-box { margin-left: 1em; font-size: 0.9em; font-weight: 600; text-transform: none; letter-spacing: 0; }
.table-hint { display: none; font-size: 0.85em; color: var(--muted, #666); margin: -1.1em 0 1.6em; }
@media (max-width: 760px) { .table-hint { display: block; } .table-wrap.wide table { min-width: 720px; } }
