/* =====================================================================
   eQuity Money, "notebook" look (the default): a Victorian handwritten
   account book. Built on money.css (the Ledger look: ruled paper, red
   double margin, ledger tables) and scoped to
   html[data-money-style="notebook"], so "ledger" and "aligned" are
   unchanged. Markup changes: assets/js/money-notebook.js.
   Fonts: self-hosted in ../fonts/ (SIL Open Font License). Pinyon Script
   is for display accents only, never under 22px, never the only carrier
   of information. No external requests.
   Undo: ../../redesign/REVERT-warm.md.
   ===================================================================== */

/* ---------- Fonts (own family names, so the Ledger look is untouched) ---------- */
@font-face { font-family: "Notebook Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/pinyon-script-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Notebook Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Notebook Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Notebook Display"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Notebook Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Notebook Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Notebook Text"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/source-sans-3-italic-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Palette (contrast on --nb-paper: ink 13.6:1, muted 6.5:1, red 5.1:1, deep red 7.3:1, green 11.6:1) ---------- */
html[data-money-style="notebook"] {
  --nb-paper: #F4EEE1;          /* notebook cream */
  --nb-shade: #EAE1CF;          /* aged edge, tucked-in cards */
  --nb-shade-deep: #D9CCB2;     /* photo corners */
  --nb-ink: #2B2723;            /* iron-gall ink */
  --nb-muted: #62584C;          /* faded brown ink */
  --nb-rule: #A9BACB;           /* faded blue ruling (decorative) */
  --nb-red: #A8433A;            /* margin red: margin line, ribbon, red-ink notes, "Cons" */
  --nb-red-deep: #8C2F28;       /* Quick exit, shortfall notes */
  --nb-green: #20382F;          /* links, buttons, current nav */
  --nb-brass: #A68B5A;          /* tiny ornaments */
  --nb-sage: #C9D3BC;           /* washes */
  --nb-rose: #E7C3BD;
  --nb-line: rgb(43 39 35 / 28%);
  /* the Ledger tokens, mapped */
  --ledger-paper: var(--nb-paper); --ledger-paper-deep: var(--nb-shade); --ledger-rule: var(--nb-rule);
  --ledger-margin: var(--nb-red); --ink: var(--nb-ink); --ink-muted: var(--nb-muted);
  --ledger-green: var(--nb-green); --ledger-green-subtle: #DCE3D4; --gold: var(--nb-brass);
  --focus: var(--nb-green); --alert: var(--nb-red-deep);
  --font-display: "Notebook Display", "Cormorant Garamond", Georgia, serif;
  --font-text: "Notebook Text", "Source Sans 3", Arial, sans-serif;
  --font-script: "Notebook Script", "Pinyon Script", cursive;
  --page: 82rem;
  /* the entry header grid: text column and a right margin for marginalia (Moments resize it to their canvas) */
  --nb-text: 42rem; --nb-margin: 17rem; --nb-gap: 3rem;
}
html[data-money-style="notebook"] body { background: var(--nb-paper); color: var(--nb-ink); }

/* Two-tone focus ring: a paper halo inside an ink-green ring, visible on every surface */
html[data-money-style="notebook"] :focus-visible { outline: 3px solid var(--nb-green); outline-offset: 2px; box-shadow: 0 0 0 2px var(--nb-paper); }
html[data-money-style="notebook"] .btn--primary:focus-visible { box-shadow: 0 0 0 2px var(--nb-paper); }

/* Script: display accents only (≥ 22px) */
html[data-money-style="notebook"] .nb-script { font-family: var(--font-script); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; font-variant: normal; }
html[data-money-style="notebook"] h1, html[data-money-style="notebook"] h2, html[data-money-style="notebook"] h3 { font-style: italic; }
html[data-money-style="notebook"] .nb-e { text-transform: none; }

/* ---------- Quick exit: the shared component's behaviour and place, in deep red ink ---------- */
html[data-money-style="notebook"] .nb-quick-exit {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 90;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-5) 0 var(--space-4);
  background: var(--nb-red-deep); color: #FFF8EE;                     /* 7.6:1 */
  border: 2px solid var(--nb-red-deep); border-radius: 3px;
  box-shadow: 0 3px 10px rgb(43 39 35 / 26%);
  font: 700 var(--text-sm)/1 var(--font-text); letter-spacing: .02em; text-decoration: none;
}
html[data-money-style="notebook"] .nb-quick-exit:hover { background: #6E241F; border-color: #6E241F; color: #FFF8EE; }
html[data-money-style="notebook"] .nb-quick-exit:focus-visible { outline: 3px solid var(--nb-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #FFF8EE, 0 3px 10px rgb(43 39 35 / 26%); }
html[data-money-style="notebook"] .nb-quick-exit svg { width: 1.125rem; height: 1.125rem; flex: none; }
html[data-money-style="notebook"] .has-quick-exit .nb-footer { padding-bottom: calc(var(--space-16) + var(--space-4)); }
@media print { html[data-money-style="notebook"] .nb-quick-exit { display: none !important; } }

/* ---------- Header: notebook paper, red double rule ---------- */
html[data-money-style="notebook"] .nb-header { background: var(--nb-paper); border-bottom: 0; box-shadow: none; position: relative; padding-bottom: 8px; }
/* The header's double rule: a 2px main line over a 1px line, 5px apart. It sits above the ribbon
   (z-index 3), so the ribbon reads as tucked under the rule, bound in at the book's edge. */
html[data-money-style="notebook"] .nb-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, var(--nb-ribbon) 0 2px, transparent 2px 7px, var(--nb-ribbon) 7px 8px);
}
html[data-money-style="notebook"] .nb-header__inner { display: flex; align-items: center; gap: var(--space-2) var(--space-6); min-height: 5.75rem; padding-block: var(--space-2); }
html[data-money-style="notebook"] .nb-brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--nb-ink); text-decoration: none; }
html[data-money-style="notebook"] .nb-brand__logo { display: block; height: 3.25rem; width: auto; }
html[data-money-style="notebook"] .nb-brand__money { font: 400 2.6rem/1 var(--font-script); color: var(--nb-ink); margin-top: .35rem; }
html[data-money-style="notebook"] .nb-nav { margin-left: auto; }
html[data-money-style="notebook"] .nb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
html[data-money-style="notebook"] .nb-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--nb-ink); text-decoration: none; border-bottom: 2px solid transparent;
  font: 600 var(--text-sm)/1.2 var(--font-text); letter-spacing: .1em; font-variant: all-small-caps; font-size: 1.0625rem;
}
html[data-money-style="notebook"] .nb-nav a:hover { border-bottom-color: var(--nb-rule); }
html[data-money-style="notebook"] .nb-nav a[aria-current="page"] { color: var(--nb-green); font-weight: 700; border-bottom-color: var(--nb-green); }
html[data-money-style="notebook"] .nb-nav .nav-home span[aria-hidden] { margin-right: .3em; }
html[data-money-style="notebook"] .nb-header__actions { display: flex; align-items: center; gap: var(--space-2); }
html[data-money-style="notebook"] .nb-search,
html[data-money-style="notebook"] .nb-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 var(--space-3);
  background: var(--nb-paper); color: var(--nb-ink); cursor: pointer;
  border: 1px solid var(--nb-muted); border-radius: 3px;                /* 6.5:1 */
  font: 600 1.0625rem/1 var(--font-text); letter-spacing: .1em; font-variant: all-small-caps;
}
html[data-money-style="notebook"] .nb-search:hover,
html[data-money-style="notebook"] .nb-nav-toggle:hover { background: var(--nb-shade); }
html[data-money-style="notebook"] .nb-search svg, html[data-money-style="notebook"] .nb-nav-toggle svg { width: 1.125rem; height: 1.125rem; }
html[data-money-style="notebook"] .nb-search .search-label { display: inline; margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
html[data-money-style="notebook"] .nb-nav-toggle { display: none; }
@media (max-width: 63.999rem) {
  html[data-money-style="notebook"] .nb-header__inner { flex-wrap: nowrap; }
  html[data-money-style="notebook"] .nb-header__actions { margin-left: auto; }
  html[data-money-style="notebook"] .nb-nav-toggle { display: inline-flex; }
  html[data-money-style="notebook"] .nb-nav { display: none; }
  html[data-money-style="notebook"] .nb-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 80; margin-top: 0;
    background: var(--nb-shade); border-bottom: 1px solid var(--nb-line); box-shadow: 0 8px 16px rgb(43 39 35 / 16%);
    padding: var(--space-2) var(--gutter) var(--space-4);
  }
  html[data-money-style="notebook"] .nb-nav__list { flex-direction: column; }
  html[data-money-style="notebook"] .nb-nav__list li + li { border-top: 1px dotted var(--nb-muted); }
  html[data-money-style="notebook"] .nb-nav a { display: flex; font-size: 1.125rem; }
  html[data-money-style="notebook"] .nb-nav-toggle[aria-expanded="true"] { background: var(--nb-shade); }
}
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] .nb-header__inner { min-height: 4.25rem; gap: var(--space-2); }
  html[data-money-style="notebook"] .nb-brand__logo { height: 2.5rem; }
  html[data-money-style="notebook"] .nb-brand__money { font-size: 2rem; }
  html[data-money-style="notebook"] .nb-search .search-label { display: none; }
}

/* ---------- Footer: tucked-card paper, a sprig, "Kept by eQuity · Grinnell" ---------- */
html[data-money-style="notebook"] .nb-footer { margin-top: var(--space-16); background: var(--nb-shade); border-top: 1px solid var(--nb-line); padding: 0; font-size: var(--text-sm); line-height: 1.5; }
html[data-money-style="notebook"] .nb-footer__inner { display: grid; gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
@media (min-width: 48rem) { html[data-money-style="notebook"] .nb-footer__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; } }
html[data-money-style="notebook"] .nb-footer__sign { display: flex; align-items: center; gap: var(--space-3); }
html[data-money-style="notebook"] .nb-footer__sign .nb-plant { width: 4rem; height: 4rem; flex: none; }
html[data-money-style="notebook"] .nb-footer__kept { margin: 0; }
html[data-money-style="notebook"] .nb-footer__kept .nb-script { font-size: 1.75rem; line-height: 1.2; color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
html[data-money-style="notebook"] .nb-footer__fine p { margin: 0 0 var(--space-2); }
html[data-money-style="notebook"] .nb-footer .not-advice { font-weight: 700; }

/* ---------- Botanicals and pen sketches ---------- */
html[data-money-style="notebook"] .nb-plant { display: block; pointer-events: none; }
html[data-money-style="notebook"] .nb-plant svg,
html[data-money-style="notebook"] .nb-flourish svg { display: block; width: 100%; height: 100%; overflow: visible; }
html[data-money-style="notebook"] .nb-ink { fill: var(--nb-ink); }
html[data-money-style="notebook"] .nb-tint { opacity: .8; mix-blend-mode: multiply; }
html[data-money-style="notebook"] .nb-tint--sage { fill: var(--nb-sage); }
html[data-money-style="notebook"] .nb-tint--rose { fill: var(--nb-rose); }
html[data-money-style="notebook"] .nb-tint--none { display: none; }
html[data-money-style="notebook"] .nb-sketch { display: block; width: 2.5rem; height: 2.5rem; overflow: visible; flex: none; }
/* ink: one line weight, paper shapes keep their paper (so lines behind them stay hidden) */
html[data-money-style="notebook"] .nb-sk-ink * { fill: none; stroke: var(--nb-ink); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
html[data-money-style="notebook"] .nb-sk-ink .eg-paper, html[data-money-style="notebook"] .nb-sk-ink .eg-wash { fill: var(--nb-paper); }
html[data-money-style="notebook"] .nb-sk-ink .eg-dot { fill: var(--nb-ink); stroke: none; }
html[data-money-style="notebook"] .nb-sk-ink .eg-brass { stroke: var(--nb-red); stroke-width: 1.1; }
html[data-money-style="notebook"] .nb-sk-ink .eg-hatch { stroke-width: .7; stroke: var(--nb-muted); }
/* wash: laid over the ink, a little off register, like watercolour */
html[data-money-style="notebook"] .nb-sk-wash { mix-blend-mode: multiply; opacity: .75; }
html[data-money-style="notebook"] .nb-sk-wash * { stroke: none; fill: none; }
html[data-money-style="notebook"] .nb-sk-wash .eg-wash { fill: var(--nb-sage); }
html[data-money-style="notebook"] .nb-flourish { display: block; width: 13rem; height: 1.3rem; margin: var(--space-2) 0 var(--space-4); }

/* ---------- Home: the inside cover ---------- */
html[data-money-style="notebook"] .nb-opener--cover { padding-block: var(--space-10) var(--space-8); border-bottom: 0; }
html[data-money-style="notebook"] .nb-cover { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 56rem) { html[data-money-style="notebook"] .nb-cover { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); } }
html[data-money-style="notebook"] .nb-bookplate-wrap { position: relative; justify-self: center; transform: rotate(-1.2deg); }
html[data-money-style="notebook"] .nb-bookplate {
  width: 19rem; padding: var(--space-3); background: var(--nb-paper);
  border: 1px solid var(--nb-ink); box-shadow: 0 2px 6px rgb(43 39 35 / 16%), 3px 4px 0 var(--nb-shade);
}
html[data-money-style="notebook"] .nb-bookplate__frame {
  display: flex; flex-direction: column; align-items: center; padding: var(--space-5) var(--space-4) var(--space-4);
  border: 3px double var(--nb-ink); outline: 1px solid var(--nb-ink); outline-offset: 4px; text-align: center;
}
html[data-money-style="notebook"] .nb-bookplate__exlibris { margin: 0 0 var(--space-2); font-size: 2.25rem; line-height: 1; color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-bookplate__seal { display: block; width: 10rem; height: auto; margin: 0 0 var(--space-3); }
html[data-money-style="notebook"] .nb-bookplate__name { margin: 0; font: 700 .8125rem/1.4 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-bookplate__violets { position: absolute; right: -7%; bottom: -5%; width: 33%; height: auto; pointer-events: none; }
html[data-money-style="notebook"] .nb-cover__text .eyebrow { margin: 0 0 var(--space-3); font: 700 var(--text-sm)/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; font-variant: normal; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-cover__text h1 { margin: 0 0 var(--space-4); font: italic 600 clamp(2.75rem, 5vw, 4.25rem)/1.05 var(--font-display); color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-cover__text h1 .nb-script { font-size: 1.3em; line-height: .8; color: var(--nb-red); padding-left: .05em; }
html[data-money-style="notebook"] .nb-cover__text .nb-dek { max-width: 34rem; margin: 0 0 var(--space-6); font-size: var(--text-lg); line-height: 1.55; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-cover__buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
html[data-money-style="notebook"] .nb-intro { max-width: var(--nb-text); padding-top: var(--space-6); }
html[data-money-style="notebook"] .nb-intro p { margin: 0; font-size: var(--text-md); line-height: 1.6; color: var(--nb-ink); }
/* One centred editorial column for the cover and the three contents lists. */
html[data-money-style="notebook"] .container:has(> .nb-opener--cover) { --nb-home: 64rem; }
html[data-money-style="notebook"] .container:has(> .nb-opener--cover) > :is(.nb-opener--cover, .section-block) { max-width: var(--nb-home); margin-inline: auto; }
/* The privacy note: under the cover's text column, behind a fine red margin rule, with a marginal
   label in the kicker style (script + small caps). No fill or box: it is a note, not an alert. */
html[data-money-style="notebook"] .nb-cover__text > .nb-privacy { margin-block-start: var(--space-8); }
html[data-money-style="notebook"] .nb-privacy__body { max-width: 34rem; padding: var(--space-1) 0 var(--space-1) var(--space-5); border-left: 3px double var(--nb-red); }
html[data-money-style="notebook"] .nb-privacy__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); margin: 0 0 var(--space-1); }
html[data-money-style="notebook"] .nb-privacy__script { font-size: 1.65rem; line-height: 1.1; color: var(--nb-red); }
html[data-money-style="notebook"] .nb-privacy__caps { font: 700 .75rem/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-privacy .privacy-line { max-width: none; margin: 0; font-size: var(--text-body); line-height: 1.6; color: var(--nb-ink); }
html[data-money-style="notebook"] #moments-h > .nb-moments-sprig { display: inline-block; width: 2.25rem; height: 1.5rem; margin-inline-start: .35em; object-fit: contain; vertical-align: middle; }
/* Contents lists on the overview pages (home, Tools): two columns of contents lines on wide screens, read down the
   first column and then the second (I–IV, then V–VII; --nb-rows is set by the script), with the
   entries level across the columns and a fine rule between them. Each line keeps a short dotted
   leader and a readable description. */
@media (min-width: 64rem) {
  html[data-money-style="notebook"] .nb-page--overview .nb-contents {
    position: relative; display: grid; max-width: none; column-gap: var(--space-12);
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--nb-rows, 4), auto); grid-auto-flow: column;
  }
  html[data-money-style="notebook"] .nb-page--overview .nb-contents > li:has(> a.nb-line) { display: grid; }   /* the link fills the whole (level) row */
  html[data-money-style="notebook"] .nb-page--overview .nb-contents::before {   /* the rule between the columns */
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--nb-line); pointer-events: none;
  }
}
@media (max-width: 55.999rem) {
  html[data-money-style="notebook"] .nb-bookplate-wrap { transform: rotate(-1deg); }
  html[data-money-style="notebook"] .nb-bookplate { width: 15rem; }
  html[data-money-style="notebook"] .nb-bookplate__seal { width: 7.5rem; }
}

/* Buttons: ink green, 3px corners */
html[data-money-style="notebook"] .btn { border-radius: 3px; font-family: var(--font-text); }
html[data-money-style="notebook"] .btn--primary { background: var(--nb-green); border-color: var(--nb-green); color: #FFF8EE; }
html[data-money-style="notebook"] .btn--primary:hover { background: #304C3D; color: #FFF8EE; box-shadow: none; }
html[data-money-style="notebook"] .btn--secondary { border-color: var(--nb-muted); color: var(--nb-green); background: var(--nb-paper); }
html[data-money-style="notebook"] .btn--secondary:hover { background: var(--nb-shade); }

/* ---------- Every other page: a journal entry ---------- */
html[data-money-style="notebook"] .nb-opener--entry { position: relative; padding-block: var(--space-6) var(--space-8); border-bottom: 1px solid var(--nb-line); }
html[data-money-style="notebook"] .nb-entry-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--nb-gap); margin-top: var(--space-4); }
@media (min-width: 72rem) {
  html[data-money-style="notebook"] .nb-entry-head { grid-template-columns: minmax(0, var(--nb-text)) var(--nb-margin); }
}
html[data-money-style="notebook"] .nb-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); margin: 0 0 var(--space-1); }
html[data-money-style="notebook"] .nb-kicker__script { font-size: 2rem; line-height: 1.1; color: var(--nb-red); }
html[data-money-style="notebook"] .nb-kicker__caps { font: 700 .8125rem/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-entry-head h1 { margin: 0; font: italic 600 clamp(2.4rem, 4vw, 3.25rem)/1.08 var(--font-display); text-wrap: balance; }
html[data-money-style="notebook"] .nb-flourish .nb-ink { fill: var(--nb-ink); }
html[data-money-style="notebook"] .nb-entry-head .nb-dek { max-width: 38rem; margin: 0 0 var(--space-3); font-size: 1.125rem; line-height: 1.6; color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-entry-head .lead.nb-dek { font-style: italic; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-entry-head .one-thing { font-style: italic; }
html[data-money-style="notebook"] .nb-entry-head .one-thing strong { font: italic 600 1.3rem/1.3 var(--font-display); color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-entry-head .meta-row { margin: 0 0 var(--space-3); line-height: 1.4; color: var(--nb-muted); }
html[data-money-style="notebook"] .nb-watch { width: 1.75rem; height: 1.75rem; }
html[data-money-style="notebook"] .nb-entry-head .privacy-line { margin: 0 0 var(--space-3); }
html[data-money-style="notebook"] .nb-entry-head .callout {
  max-width: 38rem; margin: var(--space-4) 0 0; background: var(--nb-shade);
  border: 1px solid var(--nb-line); box-shadow: 0 1px 2px rgb(43 39 35 / 12%);
}
html[data-money-style="notebook"] .nb-entry-head .crisis,
html[data-money-style="notebook"] .nb-entry-head .browse-safely { max-width: 38rem; }
html[data-money-style="notebook"] .nb-entry-head__margin { position: relative; }
html[data-money-style="notebook"] .nb-plant--margin { width: 8.5rem; height: 12rem; margin: var(--space-8) 0 0 -1.5rem; }
@media (max-width: 71.999rem) {
  html[data-money-style="notebook"] .nb-entry-head__margin { display: none; }   /* the margin sketch needs the margin */
}
/* The bookmark ribbon and seal (moment pages). The ribbon starts under the header's double rule
   (it is drawn below the rule) and passes behind the seal; below the seal it splits into two
   short tails at about ±10°, each cut with a swallowtail, like the tails under a notarial seal
   (tried against a single swallowtail end; the two tails read as more official). The seal sits
   on an opaque paper disc, so no ribbon shows through the gaps in its line work.
   Decorative: the group is aria-hidden, the image alt="". No animation. */
html[data-money-style="notebook"] {
  --nb-ribbon: #8B3E37;               /* ribbon and header rule: one quieter red */
  --nb-seal: 5.75rem;                 /* 92px */
  --nb-seal-centre: 4rem;             /* 64px below the header rule */
  --nb-tail: 2.75rem;                 /* the ribbon runs on 44px below the seal */
}
html[data-money-style="notebook"] .nb-ribbon {
  position: absolute; z-index: 2; isolation: isolate; pointer-events: none;
  top: -8px;                                                          /* from the top of the rule */
  right: var(--gutter); width: var(--nb-seal);
  height: calc(8px + var(--nb-seal-centre) + var(--nb-seal) / 2 + var(--nb-tail));
}
/* fine brass lines inset along both long edges, like a woven border */
html[data-money-style="notebook"] .nb-ribbon__band,
html[data-money-style="notebook"] .nb-ribbon::before,
html[data-money-style="notebook"] .nb-ribbon::after {
  background: linear-gradient(to right,
    var(--nb-ribbon) 0 2px, var(--nb-brass) 2px 3px, var(--nb-ribbon) 3px calc(100% - 3px),
    var(--nb-brass) calc(100% - 3px) calc(100% - 2px), var(--nb-ribbon) calc(100% - 2px));
}
/* the band: from under the rule to the middle of the seal (hidden behind it) */
html[data-money-style="notebook"] .nb-ribbon__band {
  position: absolute; z-index: 0; top: 0; left: 50%;
  height: calc(8px + var(--nb-seal-centre));
  width: calc(var(--nb-seal) * .3); transform: translateX(-50%);     /* 30% of the seal */
}
/* the two tails: start behind the seal, angle out ±10°, swallowtail ends ~44px below the seal */
html[data-money-style="notebook"] .nb-ribbon::before,
html[data-money-style="notebook"] .nb-ribbon::after {
  content: ""; position: absolute; z-index: 0; bottom: 0; left: 50%;
  width: calc(var(--nb-seal) * .27); height: calc(var(--nb-tail) + var(--nb-seal) * .45);
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - .6rem), 0 100%);
}
html[data-money-style="notebook"] .nb-ribbon::before { transform: translateX(-60%) rotate(10deg); }
html[data-money-style="notebook"] .nb-ribbon::after { transform: translateX(-40%) rotate(-10deg); }
html[data-money-style="notebook"] .nb-ribbon__disc {
  position: absolute; z-index: 1; left: 0;
  top: calc(8px + var(--nb-seal-centre) - var(--nb-seal) / 2);
  width: var(--nb-seal); height: var(--nb-seal); border-radius: 50%;
  background: var(--nb-paper);                                      /* covers the ribbon with the page's own paper colour */
  box-shadow: 0 1px 2px rgb(43 39 35 / 22%);
}
html[data-money-style="notebook"] .nb-ribbon__disc img { display: block; width: 100%; height: 100%; border-radius: 50%; }
@media (min-width: 72rem) {
  /* same place as before: over the right margin column, centred where the old seal was */
  html[data-money-style="notebook"] .nb-ribbon { right: auto; left: calc(var(--gutter) + var(--nb-text) + var(--nb-gap) + var(--nb-margin) - 5rem + 2.25rem - var(--nb-seal) / 2); }
  html[data-money-style="notebook"] .has-ribbon .nb-plant--margin { margin-top: 10rem; }
}
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] { --nb-seal: 4.5rem; --nb-seal-centre: 3.25rem; --nb-tail: 2rem; }   /* 72px */
}
/* The botanical sits alongside the guidance and disclaimer, below the title and ribbon. */
html[data-money-style="notebook"] .nb-plant.nb-plant--intro { display: none; pointer-events: none; }
@media (min-width: 44rem) {
  html[data-money-style="notebook"] .nb-moment-intro {
    display: grid;
    grid-template-columns: minmax(0, var(--nb-measure)) minmax(0, 1fr);
    column-gap: clamp(1rem, 2.5vw, 2rem);
  }
  html[data-money-style="notebook"] .nb-plant.nb-plant--intro {
    display: grid;
    position: relative;
    place-items: center;
    align-self: center;
    height: 0;
  }
  html[data-money-style="notebook"] .nb-plant.nb-plant--intro :is(img, svg) {
    position: absolute;
    display: block;
    width: 100%;
    height: clamp(7rem, 16vw, 14rem);
    max-width: 9rem;
    object-fit: contain;
  }
  html[data-money-style="notebook"] .nb-plant--intro.nb-plant--oak :is(img, svg) {
    max-width: 7.5rem;
  }
  html[data-money-style="notebook"] .nb-plant--intro.nb-plant--paycheck-violet img {
    width: min(12rem, 120%);
    max-width: none;
    height: clamp(8rem, 19vw, 17.5rem);
    filter: brightness(1.10);
  }
}
@media (min-width: 44rem) and (max-width: 55.999rem) {
  html[data-money-style="notebook"] .nb-moment-intro {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }
  html[data-money-style="notebook"] .nb-plant.nb-plant--intro :is(img, svg) { height: 7.75rem; }
  html[data-money-style="notebook"] .nb-plant--intro.nb-plant--paycheck-violet img { height: 9.5rem; }
}
/* ---------- Contents lists (Moments, Tools) ---------- */
html[data-money-style="notebook"] .section-block > h2 { font-style: italic; }
html[data-money-style="notebook"] .nb-contents { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
html[data-money-style="notebook"] a.nb-line {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-4); align-items: start;
  padding: var(--space-3) var(--space-2); color: var(--nb-ink); text-decoration: none; border-radius: 3px;
}
html[data-money-style="notebook"] a.nb-line:is(:hover, :focus-visible) { background: var(--nb-shade); color: var(--nb-ink); }
html[data-money-style="notebook"] a.nb-line:is(:hover, :focus-visible) .nb-line__title {
  color: var(--nb-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
html[data-money-style="notebook"] a.nb-line:is(:hover, :focus-visible) .nb-line__page { color: var(--nb-ink); }
@media (prefers-reduced-motion: no-preference) {
  html[data-money-style="notebook"] a.nb-line { transition: background-color 160ms ease-out; }
  html[data-money-style="notebook"] a.nb-line :is(.nb-line__title, .nb-line__page) { transition: color 160ms ease-out; }
}
html[data-money-style="notebook"] .nb-line__icon .nb-sketch { width: 2.75rem; height: 2.75rem; margin-top: .4rem; }
html[data-money-style="notebook"] .nb-line__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
html[data-money-style="notebook"] .nb-line__label { font: 700 .75rem/1.5 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--nb-red); }
html[data-money-style="notebook"] .nb-line__row { display: flex; align-items: baseline; gap: var(--space-2); }
html[data-money-style="notebook"] .nb-line__title { margin: 0; font: italic 600 1.5rem/1.25 var(--font-display); color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-line__leader { flex: 1 1 2rem; min-width: 1.5rem; border-bottom: 2px dotted var(--nb-muted); transform: translateY(-.3em); }
html[data-money-style="notebook"] .nb-line__page { flex: none; font: 600 .9375rem/1 var(--font-text); letter-spacing: .06em; font-variant: all-small-caps; font-size: 1.0625rem; color: var(--nb-ink); }
html[data-money-style="notebook"] .nb-line__desc { margin: var(--space-1) 0 0; color: var(--nb-muted); font-size: var(--text-body); }
/* "Coming soon": faint pencil entries, not links */
html[data-money-style="notebook"] .nb-soon > h2 { font: 700 var(--text-sm)/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--nb-muted); }
html[data-money-style="notebook"] li.nb-line--pencil { display: block; padding: var(--space-1) var(--space-2) var(--space-1) calc(2.75rem + var(--space-4) + var(--space-2)); }
html[data-money-style="notebook"] li.nb-line--pencil .nb-line__title { font-weight: 500; font-size: 1.25rem; color: var(--nb-muted); }
html[data-money-style="notebook"] li.nb-line--pencil .nb-line__leader { border-bottom: 1px dotted rgb(98 88 76 / 55%); }
html[data-money-style="notebook"] li.nb-line--pencil .nb-line__page { color: var(--nb-muted); font-style: italic; }
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] a.nb-line { grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-3); }
  html[data-money-style="notebook"] .nb-line__icon .nb-sketch { width: 2.25rem; height: 2.25rem; }
  html[data-money-style="notebook"] .nb-line__title { font-size: 1.3rem; }
  html[data-money-style="notebook"] li.nb-line--pencil { padding-left: var(--space-2); }
}

/* Cards that stay (Tools for this moment): tucked-in paper */
html[data-money-style="notebook"] .card { background: var(--nb-shade); border: 1px solid var(--nb-line); border-radius: 3px; box-shadow: 0 1px 2px rgb(43 39 35 / 12%); }
html[data-money-style="notebook"] a.card:hover { background: #E3D8C2; }
html[data-money-style="notebook"] .nb-card-sketch { width: 2.75rem; height: 2.75rem; }
html[data-money-style="notebook"] .card--blank { border-left: 4px double var(--nb-red); }

/* ---------- Moment pages: one centred reading canvas ----------
   The article is a single ruled page, centred at every width, with no side column. Paragraphs and
   lists keep a reading measure; Entry cards, folded notes, examples, tables and checklists use the
   page's full width, so the ruling only runs a short way past the text beside it. Margin notes sit
   in the reading flow under their heading. "On this page" is a slim contents slip at the head of
   the page, folded by default, that opens in place. The header (text | margin), ribbon, tools, help
   and sources all share the canvas width through the container. */
html[data-money-style="notebook"] .container:has(> .moment-layout) {
  --nb-canvas: 50rem;                 /* the ruled page, red margin to right edge */
  --nb-measure: 38rem;                /* paragraphs and lists: about 75 characters a line */
  --nb-gap: 2rem; --nb-margin: 10rem; /* the header's text | margin grid fills the same width, so its */
  --nb-text: calc(var(--nb-canvas) - var(--nb-gap) - var(--nb-margin));   /* text column = the measure */
  max-width: calc(var(--nb-canvas) + 2 * var(--gutter));
}
html[data-money-style="notebook"] .moment-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }   /* replaces the Ledger look's 15rem left column */
html[data-money-style="notebook"] .moment-layout :is(.ruled-section, .acc-inner) > :is(p, ul, ol) { max-width: var(--nb-measure); }
/* The goal planner embedded in "What am I saving for?" shares the canvas: its column headings may wrap
   so the table fits the page instead of scrolling sideways (the tool page keeps one-line headings) */
html[data-money-style="notebook"] .container:has(> .moment-layout) .planner-table th { white-space: normal; }
/* Margin notes: red-ink asides in the reading flow, under their heading (figure, then the words) */
html[data-money-style="notebook"] .nb-note {
  display: block; margin: 0 0 var(--rule); padding: 0;
  font: 400 var(--text-sm)/1.4 var(--font-text); color: var(--nb-muted); background: transparent;
}
html[data-money-style="notebook"] .nb-note__fig { display: block; font: italic 600 1.65rem/1.1 var(--font-display); color: var(--nb-red); }
html[data-money-style="notebook"] .nb-note__see { font: italic 600 1.1rem/1 var(--font-display); color: var(--nb-red); }
html[data-money-style="notebook"] .nb-note a { color: var(--nb-green); }
html[data-money-style="notebook"] .ruled .nb-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); max-width: var(--nb-measure);
  padding: var(--space-2) var(--space-3); background: var(--nb-paper); border-left: 2px solid var(--nb-red);
}

/* "On this page": a contents slip at the head of the page. One button opens it in place (it pushes
   the page down rather than covering it); Escape or choosing a section folds it again. */
html[data-money-style="notebook"] .moment-layout > .nb-tabs {
  position: static; background: var(--nb-shade); border: 1px solid var(--nb-line); border-radius: 3px;
  box-shadow: 0 1px 2px rgb(43 39 35 / 12%);
}
html[data-money-style="notebook"] .nb-tabs > h2 { display: none; }   /* the button carries the same words; the nav keeps it as its label */
html[data-money-style="notebook"] .nb-tabs__toggle {
  display: flex; align-items: baseline; gap: var(--space-3); width: 100%; min-height: 3rem;
  padding: var(--space-3) var(--space-4); background: none; border: 0; border-radius: 3px; cursor: pointer;
  color: var(--nb-ink); text-align: left; font: 700 .8125rem/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase;
}
html[data-money-style="notebook"] .nb-tabs__toggle:hover { background: #E3D8C2; }
html[data-money-style="notebook"] .nb-tabs__count { font: italic 600 1.05rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--nb-red); }
html[data-money-style="notebook"] .nb-tabs__toggle svg { align-self: center; flex: none; width: 1rem; height: 1rem; margin-left: auto; }
html[data-money-style="notebook"] .nb-tabs__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
html[data-money-style="notebook"] .nb-tabs ol { display: none; margin: 0 var(--space-4) var(--space-3); padding: 0; list-style: none; counter-reset: nb-tab; }
html[data-money-style="notebook"] .nb-tabs.is-open ol { display: block; }
html[data-money-style="notebook"] .nb-tabs li { break-inside: avoid; counter-increment: nb-tab; border-top: 1px dotted var(--nb-muted); }
html[data-money-style="notebook"] .nb-tabs li a {
  display: flex; align-items: baseline; gap: var(--space-3); min-height: 2.75rem; padding: var(--space-2) var(--space-2);
  color: var(--nb-ink); text-decoration: none; font-size: var(--text-sm); line-height: 1.6;
}
html[data-money-style="notebook"] .nb-tabs li a::before { content: counter(nb-tab) "."; flex: none; min-width: 1.25rem; font: italic 600 1.05rem/1 var(--font-display); color: var(--nb-red); }
html[data-money-style="notebook"] .nb-tabs li a:hover { background: #E3D8C2; text-decoration: underline; }
html[data-money-style="notebook"] .nb-tabs li a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--nb-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 48rem) {
  html[data-money-style="notebook"] .nb-tabs.is-open ol { columns: 2; column-gap: var(--space-8); }
}

/* The ruled column: blue rules on cream, a red double margin; headings on solid paper */
html[data-money-style="notebook"] .ruled { border-left: 4px double var(--nb-red); }
html[data-money-style="notebook"] .ruled h2, html[data-money-style="notebook"] .ruled h3 { background: var(--nb-paper); font-style: italic; }
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] .ruled { border-left: 1px solid var(--nb-red); }   /* a single thin red line on phones */
}

/* Ornamental initial (first body paragraph, 3+ lines): ink letter with a small red flourish */
html[data-money-style="notebook"] .nb-initial::first-letter {
  float: left; margin: .05em .14em 0 0;
  font: 600 3.6em/.8 var(--font-display); color: var(--nb-ink);
  /* a tiny red flourish: a wavy red-ink stroke under the initial */
  text-decoration: underline wavy var(--nb-red); text-decoration-thickness: 1px; text-underline-offset: .06em;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  html[data-money-style="notebook"] .nb-initial::first-letter { float: none; margin: 0 .14em 0 0; font-size: 1em; line-height: 1; -webkit-initial-letter: 3; initial-letter: 3; }
}

/* Folded notes (accordions): heading strip on shade paper with a turned-down corner, "+" in ink */
html[data-money-style="notebook"] .ruled .acc-split > h2 { margin-left: calc(-1 * var(--space-6)); padding-left: 0; background: none; }
html[data-money-style="notebook"] .acc-btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; height: calc(var(--rule) * 2); padding: 0 var(--space-4) 0 var(--space-6); margin: 0;
  background: var(--nb-shade); border: 0; cursor: pointer; text-align: left;
  font: inherit; font-style: italic; color: var(--nb-ink);
  box-shadow: inset 0 -1px 0 var(--nb-line);
}
html[data-money-style="notebook"] .acc-btn::after {   /* the folded corner */
  content: ""; position: absolute; top: 0; right: 0; width: .9rem; height: .9rem;
  background: linear-gradient(225deg, var(--nb-paper) 50%, var(--nb-shade-deep) 50%);
}
html[data-money-style="notebook"] .acc-btn:hover { background: #E3D8C2; }
html[data-money-style="notebook"] .acc-btn[aria-expanded="true"] { background: var(--nb-paper); }
html[data-money-style="notebook"] .acc-btn[aria-expanded="true"]::after { display: none; }
html[data-money-style="notebook"] .acc-plus { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border: 1px solid var(--nb-muted); border-radius: 50%; background: var(--nb-paper); }
html[data-money-style="notebook"] .acc-plus::before, html[data-money-style="notebook"] .acc-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 1.5px; margin: -.75px 0 0 -.375rem; background: var(--nb-ink); border-radius: 1px;
}
html[data-money-style="notebook"] .acc-plus::after { transform: rotate(90deg); }
html[data-money-style="notebook"] .acc-btn[aria-expanded="true"] .acc-plus::after { transform: rotate(90deg) scaleX(0); }
@media (prefers-reduced-motion: no-preference) {
  html[data-money-style="notebook"] .acc-plus::after,
  html[data-money-style="notebook"] .nb-tabs__toggle svg { transition: transform 150ms ease-out; }
}
html[data-money-style="notebook"] .acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; }
html[data-money-style="notebook"] .acc-panel.is-open { grid-template-rows: 1fr; visibility: visible; }
html[data-money-style="notebook"] .acc-inner { min-height: 0; overflow: hidden; padding-top: var(--rule); }
html[data-money-style="notebook"] .acc-panel.is-open > .acc-inner { overflow: visible; }
html[data-money-style="notebook"] .ruled .acc-split { margin: 0 0 var(--rule); }
@media print { html[data-money-style="notebook"] .acc-panel { grid-template-rows: 1fr; visibility: visible; } }

/* Timeline: a hand-ruled line, ink dots, diary-style labels */
html[data-money-style="notebook"] ol.nb-timeline { position: relative; list-style: none; padding-left: var(--space-8); }
html[data-money-style="notebook"] ol.nb-timeline::before { content: ""; position: absolute; left: .55rem; top: .9rem; bottom: .9rem; border-left: 1.5px solid var(--nb-ink); opacity: .7; }
html[data-money-style="notebook"] ol.nb-timeline > li { position: relative; }
html[data-money-style="notebook"] ol.nb-timeline > li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-8) + .3rem); top: calc(var(--rule) / 2 - .3rem);
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--nb-ink);
}
html[data-money-style="notebook"] .nb-timeline__when { margin-right: .5em; font: 700 .8125rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--nb-red); }

/* Entry cards: tucked in with photo corners, a slight tilt (none on phones) */
html[data-money-style="notebook"] .entry {
  position: relative; background: var(--nb-shade); border-left: 0;
  box-shadow: 0 1px 3px rgb(43 39 35 / 20%), 0 0 0 1px rgb(43 39 35 / 12%);
}
html[data-money-style="notebook"] .entry::before,
html[data-money-style="notebook"] .entry::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; pointer-events: none; }
html[data-money-style="notebook"] .entry::before { top: -3px; left: -3px; background: linear-gradient(135deg, var(--nb-shade-deep) 50%, transparent 50%); }
html[data-money-style="notebook"] .entry::after { bottom: -3px; right: -3px; background: linear-gradient(315deg, var(--nb-shade-deep) 50%, transparent 50%); }
html[data-money-style="notebook"] .entry.nb-tilt-l { transform: rotate(-.6deg); }
html[data-money-style="notebook"] .entry.nb-tilt-r { transform: rotate(.5deg); }
html[data-money-style="notebook"] .entry__band { display: flex; align-items: baseline; gap: var(--space-3); box-shadow: inset 0 -1px 0 var(--nb-line); }
html[data-money-style="notebook"] .nb-entry-script { font-size: 1.5rem; line-height: var(--rule); color: var(--nb-red); }
html[data-money-style="notebook"] .nb-entry-caps { font: 700 .75rem/var(--rule) var(--font-text); letter-spacing: .16em; text-transform: uppercase; font-variant: normal; color: var(--nb-muted); }
@media (max-width: 39.999rem) { html[data-money-style="notebook"] .entry.nb-tilt-l, html[data-money-style="notebook"] .entry.nb-tilt-r { transform: none; } }

/* Pros and cons: two hand-ruled columns, "Pros" in ink green, "Cons" in margin red */
html[data-money-style="notebook"] .ledger-cols { border-color: var(--nb-ink); background: var(--nb-paper); }
html[data-money-style="notebook"] .ledger-col + .ledger-col { border-color: var(--nb-ink); }
html[data-money-style="notebook"] .ledger-col h3 { background: var(--nb-shade) !important; font-style: normal; }
html[data-money-style="notebook"] .ledger-col--pros h3 { color: var(--nb-green); }
html[data-money-style="notebook"] .ledger-col--cons h3 { color: var(--nb-red); }

/* Glossary popovers: a slip of paper with a pin */
html[data-money-style="notebook"] .gloss-pop {
  background: var(--nb-shade); border: 1px solid var(--nb-line); border-top: 1px solid var(--nb-line);
  box-shadow: 0 6px 14px rgb(43 39 35 / 18%); transform: rotate(-.8deg); padding-top: var(--space-4);
}
html[data-money-style="notebook"] .gloss-pop::before {
  content: ""; position: absolute; top: -.4rem; left: 1.5rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D9786E, var(--nb-red) 55%, #7A2A23); box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}
html[data-money-style="notebook"] .gloss-pop strong { font-style: italic; }
html[data-money-style="notebook"] .gloss-letter > h2 { color: var(--nb-red); }

/* ---------- Ledger tools: blue-ruled sheets, underline-only blanks ---------- */
html[data-money-style="notebook"] .tool-inputs {
  background: var(--nb-paper);       /* the blanks are the lines here; the sheet's ruling is in the table */
  border: 1px solid var(--nb-line); border-left: 4px double var(--nb-red);
}
html[data-money-style="notebook"] .tool-inputs legend { font-style: italic; background: var(--nb-paper); }
html[data-money-style="notebook"] input[type="text"],
html[data-money-style="notebook"] input[type="number"],
html[data-money-style="notebook"] select {
  background-color: transparent; border: 0; border-bottom: 1px solid var(--nb-muted); border-radius: 0; padding-inline: var(--space-1);
}
html[data-money-style="notebook"] input[type="text"]:focus-visible,
html[data-money-style="notebook"] input[type="number"]:focus-visible,
html[data-money-style="notebook"] select:focus-visible { border-bottom: 2px solid var(--nb-green); }
html[data-money-style="notebook"] .money-input > span { background: transparent; border: 0; border-bottom: 1px solid var(--nb-muted); border-radius: 0; padding: 0 var(--space-1) 0 0; }
html[data-money-style="notebook"] .table-wrap { background: var(--nb-paper); border-color: var(--nb-line); }
/* Shortfalls and errors: red ink with a small mark and plain words, never colour alone */
html[data-money-style="notebook"] .planner-note.is-short,
html[data-money-style="notebook"] .field .error,
html[data-money-style="notebook"] .planner-table tr.is-issue td[data-out="need"] { color: var(--nb-red-deep); }
html[data-money-style="notebook"] .planner-note.is-short::before,
html[data-money-style="notebook"] .field .error:not(:empty)::before,
html[data-money-style="notebook"] .planner-table tr.is-issue td[data-out="need"]::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .4em; vertical-align: -.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.8 C14.6 1.6 18.4 5.4 18.2 10 C18.1 14.6 14.4 18.3 9.8 18.2 C5.3 18.1 1.7 14.4 1.8 9.9 C1.9 5.5 5.5 1.9 10 1.8Z' fill='none' stroke='%238C2F28' stroke-width='1.6'/%3E%3Cpath d='M10 5.5 L9.8 11.4' stroke='%238C2F28' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='9.9' cy='14.4' r='1.2' fill='%238C2F28'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Get help: filter chips as small paper tabs */
html[data-money-style="notebook"] .nb-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); }
html[data-money-style="notebook"] .nb-tab {
  min-height: 2.75rem; padding: 0 var(--space-4); cursor: pointer;
  background: var(--nb-shade); color: var(--nb-ink); border: 1px solid var(--nb-muted); border-bottom-width: 1px;
  border-radius: 6px 6px 0 0; font: 600 1rem/1 var(--font-text); letter-spacing: .06em; font-variant: all-small-caps; font-size: 1.0625rem;
}
html[data-money-style="notebook"] .nb-tab:hover { background: #E3D8C2; }
html[data-money-style="notebook"] .nb-tab[aria-pressed="true"] { background: var(--nb-green); border-color: var(--nb-green); color: #FFF8EE; }
html[data-money-style="notebook"] .help-list li { border-top: 1px dotted var(--nb-muted); }
html[data-money-style="notebook"] .strip > h2.label { display: flex; align-items: center; gap: var(--space-2); }
html[data-money-style="notebook"] .nb-label-sketch { width: 1.75rem; height: 1.75rem; }

/* Crisis box: label and words carry it; the red rule is decoration */
html[data-money-style="notebook"] .crisis { background: var(--nb-shade); border-left: 4px double var(--nb-red); }
html[data-money-style="notebook"] .crisis .label, html[data-money-style="notebook"] .notice .label { color: var(--nb-ink); }

/* Forced colours: keep lines and the ribbon visible, no tilt */
@media (forced-colors: active) {
  html[data-money-style="notebook"] .entry { transform: none !important; border: 1px solid CanvasText; }
  html[data-money-style="notebook"] .nb-ribbon__band,
  html[data-money-style="notebook"] .nb-ribbon::before, html[data-money-style="notebook"] .nb-ribbon::after { background: CanvasText; }
  html[data-money-style="notebook"] .nb-header::after { background: linear-gradient(to bottom, CanvasText 0 2px, transparent 2px 7px, CanvasText 7px 8px); }
  html[data-money-style="notebook"] .nb-tabs li a[aria-current] { outline: 2px solid CanvasText; }
}
@media print {
  html[data-money-style="notebook"] .nb-header .nb-header__actions, html[data-money-style="notebook"] .nb-nav,
  html[data-money-style="notebook"] .nb-ribbon, html[data-money-style="notebook"] .nb-plant, html[data-money-style="notebook"] .nb-tabs { display: none !important; }
  html[data-money-style="notebook"] body.print-plan .nb-header, html[data-money-style="notebook"] body.print-plan .nb-footer,
  html[data-money-style="notebook"] body.print-plan .nb-opener, html[data-money-style="notebook"] body.print-plan .nb-intro { display: none !important; }
}
/* Narrow screens: keep the breadcrumb clear of the ribbon seal */
@media (max-width: 71.999rem) { html[data-money-style="notebook"] .has-ribbon .crumb-row { padding-right: calc(var(--nb-seal) + 1rem); } }

/* ---------- Hand-drawn botanicals (MONEY_BOTANICAL_SOURCE = "drawn") ----------
   Transparent PNGs with their own line and wash: no wobble filter, no tint layer. Sized by
   height so each plant keeps its natural shape; multiply lets the paper show through the
   pale wash so the edges sit in the page instead of on it. */
html[data-money-style="notebook"] .nb-plant--drawn { width: auto; height: auto; }
html[data-money-style="notebook"] .nb-plant--drawn img { display: block; width: auto; height: 11.25rem; max-width: none; mix-blend-mode: multiply; }
/* Page margins: about 180px; the wide oak and the sprig about 140px */
html[data-money-style="notebook"] .nb-plant--margin.nb-plant--drawn { width: auto; height: auto; margin-left: 0; }
html[data-money-style="notebook"] .nb-plant--margin.nb-plant--drawn img { height: 11.25rem; }
html[data-money-style="notebook"] .nb-plant--margin.nb-plant--oak img,
html[data-money-style="notebook"] .nb-plant--margin.nb-plant--sprig img { height: 8.75rem; }
/* Footer sprig: about 56px */
html[data-money-style="notebook"] .nb-footer__sign .nb-plant--drawn { width: auto; height: auto; }
html[data-money-style="notebook"] .nb-footer__sign .nb-plant--drawn img { height: 3.5rem; }
/* margin plants stay hidden below 72rem (the margin column is needed for them) */

/* Phones: the seal and its tails sit beside the breadcrumb and the kicker, never over them */
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] .has-ribbon .nb-kicker { padding-right: calc(var(--nb-seal) + .75rem); }
  html[data-money-style="notebook"] .has-ribbon .crumb-row .breadcrumb { max-width: 100%; }
}

/* ---------- Refinements (November 2026): calculator, reference, and example views ----------
   Same paper, ink, rules, and type as above; only arrangement and a few derived components. */

/* Calculators on wide screens: the results stay beside the inputs while a long sheet scrolls */
@media (min-width: 64rem) {
  html[data-money-style="notebook"] .tool-results { position: sticky; top: var(--space-6); }
  /* Savings goal planner: amounts fill their column, so typed figures sit under the right-aligned heading */
  html[data-money-style="notebook"] .planner-table td.num .money-input { width: 100%; }
  html[data-money-style="notebook"] .planner-table td.num .money-input input { flex: 1 1 0; width: 0; min-width: 5.5rem; }   /* fill the column, never widen the table */
  /* Credit card check: questions on the left, the starting point beside them */
  html[data-money-style="notebook"] .cardcheck { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); column-gap: var(--space-10); align-items: start; }
  html[data-money-style="notebook"] .cardcheck__aside { position: sticky; top: var(--space-6); }
  html[data-money-style="notebook"] .cardcheck__aside .cardcheck__result { margin-top: 0; }
}

/* Worked examples: the Entry card with a small ledger, double-ruled total, and a plain note */
html[data-money-style="notebook"] .entry--example .ledger-table { width: 100%; margin: var(--space-2) 0 0; background: transparent; }
html[data-money-style="notebook"] .entry--example .ledger-table caption { padding: 0 var(--space-2) var(--space-1); text-align: left; font-style: italic; color: var(--nb-muted); }
html[data-money-style="notebook"] .entry--example .ledger-table th[scope="row"] { font-weight: 500; }
html[data-money-style="notebook"] .entry--example .ledger-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
html[data-money-style="notebook"] .entry--example .example-note { margin: var(--space-2) 0 0; padding-inline: var(--space-2); font-size: var(--text-sm); color: var(--nb-muted); }

/* Glossary: an index of letters across the top, like the thumb index of a ledger */
html[data-money-style="notebook"] .nb-az { max-width: var(--reading); margin: var(--space-5) 0 var(--space-2); }
html[data-money-style="notebook"] .nb-az ol { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0 0 var(--space-3); list-style: none; border-bottom: 1px solid var(--nb-line); }
html[data-money-style="notebook"] .nb-az a,
html[data-money-style="notebook"] .nb-az span {
  display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; padding: 0 var(--space-1);
  font: italic 600 1.2rem/1 var(--font-display); border-radius: 3px;
}
html[data-money-style="notebook"] .nb-az a { color: var(--nb-red); text-decoration: none; background: var(--nb-shade); box-shadow: inset 0 0 0 1px var(--nb-line); }
html[data-money-style="notebook"] .nb-az a:hover { background: #E3D8C2; text-decoration: underline; text-underline-offset: 3px; }
html[data-money-style="notebook"] .nb-az span { color: rgb(98 88 76 / 55%); }   /* letters with no terms: faint, not links */
html[data-money-style="notebook"] .gloss-letter > h2 { scroll-margin-top: var(--space-6); }
html[data-money-style="notebook"] .gloss-used { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--nb-muted); }

/* Get help: "What do you need help with?" as contents lines (question, dotted leader, who to ask) */
html[data-money-style="notebook"] .nb-needs { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
html[data-money-style="notebook"] a.nb-need {
  display: flex; align-items: baseline; gap: var(--space-2); padding: var(--space-2) var(--space-2);
  color: var(--nb-ink); text-decoration: none; border-radius: 3px;
}
html[data-money-style="notebook"] a.nb-need:hover { background: var(--nb-shade); }
html[data-money-style="notebook"] a.nb-need:hover .nb-need__q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-money-style="notebook"] .nb-need__q { flex: 0 1 auto; font: italic 600 1.2rem/1.3 var(--font-display); }
html[data-money-style="notebook"] .nb-need__leader { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--nb-muted); transform: translateY(-.3em); }
html[data-money-style="notebook"] .nb-need__who { flex: 0 1 15rem; text-align: right; font: 600 1rem/1.3 var(--font-text); letter-spacing: .04em; font-variant: all-small-caps; font-size: 1.0625rem; color: var(--nb-red-deep); }
html[data-money-style="notebook"] .help-list > li[id] { scroll-margin-top: var(--space-6); }
@media (max-width: 39.999rem) {
  html[data-money-style="notebook"] a.nb-need { flex-direction: column; gap: 0; }
  html[data-money-style="notebook"] .nb-need__leader { display: none; }
  html[data-money-style="notebook"] .nb-need__who { flex: none; text-align: left; }
}

/* ---------- Financial tools: one component language (November 2026) ----------
   money-notebook.js marks a tool page's container .nb-tool-page. All five tools share one centred
   70rem wrapper (inputs | results inside it); header, tool, notes, Read more and Sources share it. */
html[data-money-style="notebook"] main > .container.nb-tool-page { --nb-tool: 70rem; max-width: calc(var(--nb-tool) + 2 * var(--gutter)); }   /* one wrapper for all five tools */
html[data-money-style="notebook"] .nb-tool-page .how > summary { justify-content: space-between; gap: var(--space-3); }
html[data-money-style="notebook"] .nb-tool-page .how > summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  margin-inline-end: .25rem;
  transform: translateY(-.125rem) rotate(45deg);
}
html[data-money-style="notebook"] .nb-tool-page .how[open] > summary::after { transform: translateY(.125rem) rotate(225deg); }
@media (prefers-reduced-motion: no-preference) {
  html[data-money-style="notebook"] .nb-tool-page .how > summary::after { transition: transform 150ms ease-out; }
}
@media (min-width: 72rem) {   /* a header with no sketch has no margin column */
  html[data-money-style="notebook"] .nb-entry-head.nb-entry-head--solo { grid-template-columns: minmax(0, 1fr); }
}
/* Give the tool introduction the symmetry of a notebook title page. */
html[data-money-style="notebook"] .nb-tool-page .nb-entry-head__text {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
html[data-money-style="notebook"] .nb-tool-page .nb-kicker {
  justify-content: center;
  margin-bottom: var(--space-2);
}
html[data-money-style="notebook"] .nb-tool-page .nb-kicker__caps { display: none; }
html[data-money-style="notebook"] .nb-tool-page .nb-flourish {
  width: clamp(7rem, 19vw, 10rem);
  margin-inline: auto;
}
html[data-money-style="notebook"] .nb-tool-page .nb-dek,
html[data-money-style="notebook"] .nb-tool-page .privacy-line {
  max-width: 34rem;
  margin-inline: auto;
  text-wrap: pretty;
}
html[data-money-style="notebook"] .nb-tool-page .nb-entry-head .callout {
  max-width: 34rem;
  margin-inline: auto;
  text-align: start;
}
/* Inputs | results: 40 : 60 for the decoder and the emergency fund; the budget sheet gives the
   editable sheet the larger share (60 : 40) and keeps its summary beside it */
@media (min-width: 64rem) {
  html[data-money-style="notebook"] .nb-tool-page .tool { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--space-10); }
  html[data-money-style="notebook"] .nb-tool-page .tool[data-tool="budget"] { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  html[data-money-style="notebook"] .nb-tool-page .tool-results { padding-top: var(--space-5); }   /* level with the form's legend */
}
/* Results: a titled sheet under a double rule */
html[data-money-style="notebook"] .tool-results__title {
  margin: 0 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 3px double var(--nb-ink);
  font: italic 600 var(--text-h3)/1.25 var(--font-display); color: var(--nb-ink);
}
/* The primary answer: small-caps label, a large tabular figure, double-ruled */
html[data-money-style="notebook"] .tool-answer { margin: 0 0 var(--space-5); }
html[data-money-style="notebook"] .tool-answer__label,
html[data-money-style="notebook"] .tool-figure dt,
html[data-money-style="notebook"] .tool-notes__label { margin: 0; font: 700 .75rem/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--nb-muted); }
html[data-money-style="notebook"] .tool-answer__value { margin: var(--space-1) 0 0; font: 700 2.5rem/1.2 var(--font-text); font-variant-numeric: lining-nums tabular-nums; color: var(--nb-ink); }
html[data-money-style="notebook"] .tool-answer__value .total,
html[data-money-style="notebook"] .tool-figure--main .total { padding-bottom: 3px; border-bottom: 5px double var(--nb-ink); }
html[data-money-style="notebook"] .tool-answer__note { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--nb-muted); }
/* Two headline figures (emergency fund): each on its own ruled line */
html[data-money-style="notebook"] .tool-figures { display: grid; gap: var(--space-4) var(--space-8); margin: 0 0 var(--space-4); }
@media (min-width: 30rem) { html[data-money-style="notebook"] .tool-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-money-style="notebook"] .tool-figure { margin: 0; padding: 0 0 var(--space-3); border-bottom: 1px solid var(--nb-rule); }
html[data-money-style="notebook"] .tool-figure dd { margin: var(--space-1) 0 0; font: 700 2rem/1.2 var(--font-text); font-variant-numeric: lining-nums tabular-nums; color: var(--nb-ink); }
html[data-money-style="notebook"] .tool-figure--main dd { font-size: 2.5rem; }
html[data-money-style="notebook"] .tool-figure dd.is-message { font: 400 var(--text-body)/1.45 var(--font-text); color: var(--nb-muted); }
html[data-money-style="notebook"] .tool-working { margin: 0 0 var(--space-4); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--nb-ink); }
html[data-money-style="notebook"] .tool-working:empty { display: none; }
/* The breakdown: compact ledger lines, labels left, figures right, faded blue rules, a ruled total */
html[data-money-style="notebook"] .tool-ledger { width: 100%; margin: 0; background: transparent; font-variant-numeric: lining-nums tabular-nums; }
html[data-money-style="notebook"] .tool-ledger caption { padding: 0 0 var(--space-2); font-size: var(--text-sm); line-height: 1.45; color: var(--nb-muted); text-align: left; }
html[data-money-style="notebook"] .tool-ledger th,
html[data-money-style="notebook"] .tool-ledger td { padding: var(--space-2) 0; border-bottom: 1px solid var(--nb-rule); }
html[data-money-style="notebook"] .tool-ledger tbody th { font-weight: 500; }
html[data-money-style="notebook"] .tool-ledger td.num { padding-left: var(--space-4); font-size: var(--text-body); }
html[data-money-style="notebook"] .tool-ledger tfoot th,
html[data-money-style="notebook"] .tool-ledger tfoot td { padding-top: var(--space-3); border-top: 1px solid var(--nb-ink); border-bottom: 0; font-weight: 700; }
html[data-money-style="notebook"] .tool-results .tool-ledger tfoot td.num { font-size: var(--text-md); }
html[data-money-style="notebook"] .tool-ledger__aside { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--nb-muted); font-variant-numeric: tabular-nums; }
/* Assumptions and limits: after the figures, smaller, under a fine rule */
html[data-money-style="notebook"] .tool-notes { margin: var(--space-5) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--nb-line); font-size: var(--text-sm); line-height: 1.5; color: var(--nb-muted); }
html[data-money-style="notebook"] .tool-notes ul { margin: var(--space-1) 0 var(--space-3); padding-left: var(--space-5); }
html[data-money-style="notebook"] .tool-notes li + li { margin-top: var(--space-1); }
html[data-money-style="notebook"] .tool-notes .estimate-line { margin: 0; color: var(--nb-ink); }
/* A status line that speaks every update but only shows itself to ask for something */
html[data-money-style="notebook"] .tool-summary--prompt-only:not(.is-prompt) { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-money-style="notebook"] .tool-summary--prompt-only.is-prompt { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-left: 2px solid var(--nb-red); font-size: var(--text-body); color: var(--nb-ink); }
/* Budget sheet: what each group is for, under its heading; the comparison bars below the summary */
html[data-money-style="notebook"] .nb-tool-page .tool-inputs .hint { font-size: var(--text-sm); line-height: 1.45; color: var(--nb-muted); }
html[data-money-style="notebook"] .budget-group__hint { margin: calc(-1 * var(--space-1)) 0 var(--space-2); }
html[data-money-style="notebook"] .nb-tool-page [data-tool="budget"] .tool-ledger tfoot :is(th, td) { font-size: var(--text-md); }
html[data-money-style="notebook"] .nb-tool-page [data-tool="budget"] .tool-ledger tfoot .total { font-size: 1.5rem; border-bottom-width: 5px; }
html[data-money-style="notebook"] .nb-tool-page .split-bars { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--nb-line); }
html[data-money-style="notebook"] .nb-tool-page .split-bars .tool-notes__label { margin: var(--space-3) 0 var(--space-1); }
html[data-money-style="notebook"] .nb-tool-page .split-bars .tool-notes__label:first-child { margin-top: 0; }
html[data-money-style="notebook"] .nb-tool-page [data-tool="budget"] .estimate-line { margin-top: var(--space-4); }
/* Goal planner (tool page): progress under each goal, a larger total, the comparison as a ruled note */
html[data-money-style="notebook"] .goal-progress { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--nb-muted); }
html[data-money-style="notebook"] .goal-progress:empty { display: none; }
html[data-money-style="notebook"] .nb-tool-page .planner-table tfoot .total { font-size: 1.5rem; border-bottom-width: 5px; }
html[data-money-style="notebook"] .nb-tool-page .planner-note:not(:empty) { padding: var(--space-2) var(--space-3); border-left: 2px solid var(--nb-ink); }
html[data-money-style="notebook"] .nb-tool-page .planner-note.is-short:not(:empty) { border-left-color: var(--nb-red); }
/* Card check: each question a ruled line (no box per question); the outcome named in the display face */
html[data-money-style="notebook"] .nb-tool-page .yn { margin: 0; padding: var(--space-3) 0; background: none; border: 0; border-bottom: 1px solid var(--nb-rule); }
html[data-money-style="notebook"] .nb-tool-page .yn:first-of-type { border-top: 1px solid var(--nb-rule); }
html[data-money-style="notebook"] .nb-tool-page .yn legend { float: left; width: 100%; padding: 0; }   /* in the flow, not on the rule above */
html[data-money-style="notebook"] .nb-tool-page .yn > :is(.hint, .yn__opts) { clear: both; }
html[data-money-style="notebook"] .nb-tool-page .yn__opts { margin-top: var(--space-1); }
html[data-money-style="notebook"] .nb-tool-page .cardcheck__result { margin-top: 0; }
html[data-money-style="notebook"] .nb-tool-page .cardcheck__result > .label { margin: 0 0 var(--space-2); font: italic 600 1.5rem/1.25 var(--font-display); letter-spacing: 0; text-transform: none; font-variant: normal; color: var(--nb-ink); }
html[data-money-style="notebook"] .cardcheck__not { margin: var(--space-4) 0 var(--space-3); padding-top: var(--space-3); }
@media (max-width: 63.999rem) {   /* stacked: the result starts a new block after the questions */
  html[data-money-style="notebook"] .nb-tool-page .cardcheck__aside { margin-top: var(--space-8); }
}

/* ---------- Page families: one centred column per page type (November 2026 layout pass) ----------
   Text stays left-aligned; the column is centred. money-notebook.js tags each page's container.
   Overview (home, Tools, Get help): 64rem.  Reading (Moments articles 50rem, above; Glossary): 50rem.
   Tools: 70rem (above). */
html[data-money-style="notebook"] main > .container.nb-page--overview { max-width: calc(64rem + 2 * var(--gutter)); }
html[data-money-style="notebook"] main > .container.nb-page--reading { max-width: calc(50rem + 2 * var(--gutter)); }
/* Get help: the needs index and the office list use the whole column; each office reads as a
   directory line (name | what they help with and how to reach them) on wider screens */
html[data-money-style="notebook"] .nb-page--overview .nb-needs { max-width: none; }
html[data-money-style="notebook"] .nb-page--overview .nb-need__who { flex-basis: 18rem; }
@media (min-width: 48rem) {
  html[data-money-style="notebook"] [data-nb-page="help"] .help-list > li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--space-8); align-items: baseline; }
}
html[data-money-style="notebook"] [data-nb-page="help"] .help-about { display: block; max-width: 42rem; }
/* Glossary: the letter index and the entries fill the reading column; definitions keep a measure */
html[data-money-style="notebook"] .nb-page--reading :is(.nb-az, .gloss-index) { max-width: none; }
html[data-money-style="notebook"] .nb-page--reading .gloss-letter dd { max-width: 40rem; }
/* Small section labels (Tools for this moment, Ask a person, Read more, Sources): a little firmer */
html[data-money-style="notebook"] .strip > h2.label { font-size: .8125rem; letter-spacing: .16em; color: var(--nb-ink); }
