/* =====================================================================
   eQuity Money, "aligned" look (MONEY_CONFIG.style = "aligned", the default).
   The main site's design (Academia palette, square-ish geometry, dark green header and
   footer, title page and chapter titles, engraved icons, editorial lists) with Money's own
   ledger details: the brass double margin rule, ledger tables and calculator sheets on
   ledger paper, faded blue rules inside them, double-underlined totals, the ribbon seal.
   Every rule is scoped to html[data-money-style="aligned"]; "ledger" shows money.css alone,
   exactly as before. No dependency on the main site's CSS: tokens are copied here.
   Fonts are the self-hosted files in ../fonts/ (money.css @font-face). No external requests.
   Markup changes are made by assets/js/money-aligned.js. Undo: ../../redesign/REVERT-warm.md.
   ===================================================================== */

/* ---------- Tokens: the main site's Academia palette ---------- */
html[data-money-style="aligned"] {
  --brand-green: #20382F;  --brand-ivory: #EEE5D3;  --brand-brass: #A68B5A;  --brand-ink: #252D28;
  --botanical-green: #3F5E3A;  --botanical-highlight: #9BAE8E;  --botanical-shadow: #6F8964;
  --utility-oxblood: #652F32;
  --paper-main: #EEE5D3;  --paper-reading: #F6F1E7;  --paper-aged: #E5DDCB;  --paper-ledger: #E2DED3;
  --line-soft: #C8BBA3;  --line-strong: #776A52;
  --color-primary: var(--brand-green);  --color-primary-hover: #304C3D;
  --color-text: var(--brand-ink);  --color-text-muted: #655F54;
  --color-danger: var(--utility-oxblood);  --color-urgent: var(--utility-oxblood);  --color-safety-action: var(--utility-oxblood);
  --color-focus: #87602A;  --color-focus-on-dark: var(--brand-ivory);
  --color-ornament: var(--brand-brass);
  --radius-small: 2px;  --radius-medium: 4px;
  /* Money-only: the ledger details */
  --ledger-rule: #A4B2B7;          /* faded blue ruling, decorative only */
  --surface-ledger: var(--paper-ledger);
  --sage-wash: #DCE3D4;            /* pale sage tint (selected rows, search marks) */
  /* The Ledger tokens, mapped onto the palette (so every Money component picks it up) */
  --ledger-paper: var(--paper-main);
  --ledger-paper-deep: var(--paper-aged);
  --ledger-margin: var(--color-ornament);   /* the margin rule and the ribbon: brass, not red */
  --ink: var(--color-text);
  --ink-muted: var(--color-text-muted);
  --ledger-green: var(--color-primary);
  --ledger-green-subtle: var(--sage-wash);
  --gold: var(--color-ornament);
  --focus: var(--color-focus);
  --alert: var(--color-danger);
  --on-dark: var(--paper-reading);
  --radius: var(--radius-medium);
  --page: 82rem;                     /* the main site's container */
  --pride-progress: linear-gradient(90deg,
    #000000 0 9%, #613915 9% 18%, #5BCEFA 18% 27%, #F5A9B8 27% 36%, #E6E6E8 36% 45%,
    #E40303 45% 54%, #FF8C00 54% 63%, #FFED00 63% 72%, #008026 72% 81%, #24408E 81% 90%, #732982 90% 100%);
}
@media (min-width: 64rem) { html[data-money-style="aligned"] { --header-height: 8.625rem; } }

/* ---------- Base ---------- */
html[data-money-style="aligned"] body { background: var(--paper-main); color: var(--color-text); line-height: 1.7; }
html[data-money-style="aligned"] h1, html[data-money-style="aligned"] h2, html[data-money-style="aligned"] h3 { color: var(--color-text); }
html[data-money-style="aligned"] a { color: var(--color-primary); text-decoration-line: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
html[data-money-style="aligned"] a:hover { color: var(--color-primary-hover); text-decoration-thickness: 2px; }
html[data-money-style="aligned"] :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
html[data-money-style="aligned"] .mx-header :focus-visible,
html[data-money-style="aligned"] .mx-footer :focus-visible { outline-color: var(--color-focus-on-dark); }
html[data-money-style="aligned"] .skip-link { background: var(--paper-reading); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .eyebrow,
html[data-money-style="aligned"] h4, html[data-money-style="aligned"] .label { color: var(--color-text-muted); letter-spacing: .12em; }

/* ---------- Quick exit: the main site's component (fixed pill, bottom right) ---------- */
html[data-money-style="aligned"] .quick-exit-pill {
  --qx-bg: var(--color-safety-action); --qx-text: var(--paper-reading);   /* 11.2:1 */
  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(--qx-bg); color: var(--qx-text);
  border: 2px solid var(--qx-bg); border-radius: var(--radius-small);
  box-shadow: 0 3px 12px rgb(42 37 32 / 28%);
  font: 700 var(--text-sm)/1 var(--font-text); letter-spacing: .02em;
  text-decoration: none;
}
html[data-money-style="aligned"] .quick-exit-pill:hover { color: var(--qx-text); background: #4E2326; border-color: #4E2326; text-decoration: none; }
html[data-money-style="aligned"] .quick-exit-pill:focus-visible {
  outline: 3px solid var(--color-focus); outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--qx-text), 0 3px 12px rgb(42 37 32 / 28%);
}
html[data-money-style="aligned"] .quick-exit-pill svg { flex: none; width: 1.125rem; height: 1.125rem; }
/* Keep the last line of the page clear of the pill */
html[data-money-style="aligned"] .has-quick-exit .mx-footer { padding-bottom: calc(var(--space-16) + var(--space-4)); }
@media print { html[data-money-style="aligned"] .quick-exit-pill { display: none !important; } }

/* ---------- Header: dark green, brass rule (same structure and height as the main site) ---------- */
html[data-money-style="aligned"] .mx-header {
  position: relative; background: var(--brand-green); color: var(--brand-ivory);
  border-bottom: 1px solid var(--color-ornament); box-shadow: 0 1px 0 var(--color-ornament);   /* 2px brass rule */
}
html[data-money-style="aligned"] .mx-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 5.75rem;                                                   /* 92px */
}
html[data-money-style="aligned"] .mx-brand-row { display: flex; align-items: center; gap: var(--space-6); min-width: 0; }
html[data-money-style="aligned"] .mx-brand {
  display: inline-flex; align-items: center; color: var(--brand-ivory); text-decoration: none;
}
html[data-money-style="aligned"] .mx-brand:hover { color: var(--brand-ivory); }
html[data-money-style="aligned"] .mx-brand__logo { display: block; width: auto; height: 3.25rem; }   /* 52px, as on the main site */
/* a thin ivory double hairline between the wordmark and "Money" */
html[data-money-style="aligned"] .mx-brand__rule {
  width: 4px; height: 1.75rem; margin: .5rem .875rem 0 1rem;
  border-inline: 1px solid rgb(238 229 211 / 70%);
}
html[data-money-style="aligned"] .mx-brand__money {
  margin-top: .55rem;                                                    /* sits on the wordmark's x-height */
  font: 600 1.375rem/1 var(--font-display); letter-spacing: .2em;
  font-variant: small-caps; text-transform: lowercase; color: var(--brand-ivory);
}
html[data-money-style="aligned"] .mx-tagline {
  margin: .4rem 0 0; font: italic 600 var(--text-md)/1.2 var(--font-display);
  color: var(--brand-ivory); opacity: .78;                               /* 8.1:1 on green */
}
html[data-money-style="aligned"] .mx-header__actions { display: flex; align-items: center; gap: var(--space-3); }
html[data-money-style="aligned"] .mx-search,
html[data-money-style="aligned"] .mx-nav-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 var(--space-4);
  background: transparent; color: var(--brand-ivory); cursor: pointer;
  border: 1px solid #B8B09D; border-radius: var(--radius-small);          /* 5.8:1 on green */
  font: 600 var(--text-sm)/1.4 var(--font-text);
}
html[data-money-style="aligned"] .mx-search:hover,
html[data-money-style="aligned"] .mx-nav-toggle:hover { background: var(--color-primary-hover); border-color: var(--brand-ivory); }
html[data-money-style="aligned"] .mx-search svg,
html[data-money-style="aligned"] .mx-nav-toggle svg { width: 1.125rem; height: 1.125rem; }
html[data-money-style="aligned"] .mx-search .search-label { display: inline; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
/* Nav row */
html[data-money-style="aligned"] .mx-nav { border-top: 1px solid rgb(238 229 211 / 22%); }
html[data-money-style="aligned"] .mx-nav__list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
html[data-money-style="aligned"] .mx-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--brand-ivory); text-decoration: none;
  font: 600 var(--text-sm)/1.4 var(--font-text); letter-spacing: .015em;
  /* the main site's Progress Pride hover underline, over a 1px ivory line */
  background-image: var(--pride-progress), linear-gradient(var(--brand-ivory), var(--brand-ivory));
  background-size: 0 3px, 0 1px; background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px), 0 100%;
  transition: background-size .25s ease;
}
html[data-money-style="aligned"] .mx-nav a:hover,
html[data-money-style="aligned"] .mx-nav a:focus-visible { color: var(--brand-ivory); background-size: 100% 3px, 100% 1px; }
/* Current section: bold + brass underline (not colour alone) */
html[data-money-style="aligned"] .mx-nav a[aria-current="page"] {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-ornament);
  text-decoration-thickness: 3px; text-underline-offset: .5rem;
}
html[data-money-style="aligned"] .mx-nav .nav-home span[aria-hidden] { margin-right: .3em; }
html[data-money-style="aligned"] .mx-nav-toggle { display: none; }
@media (max-width: 63.999rem) {
  html[data-money-style="aligned"] .mx-tagline { display: none; }
  html[data-money-style="aligned"] .mx-nav-toggle { display: inline-flex; }
  html[data-money-style="aligned"] .mx-nav { display: none; }
  /* the open menu: a reading-paper panel under the header */
  html[data-money-style="aligned"] .mx-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 80;
    background: var(--paper-reading); border-top: 0; border-bottom: 2px solid var(--color-ornament);
    box-shadow: 0 8px 18px rgb(37 45 40 / 18%);
  }
  html[data-money-style="aligned"] .mx-nav__list { flex-direction: column; padding-block: var(--space-2) var(--space-4); }
  html[data-money-style="aligned"] .mx-nav__list li + li { border-top: 1px solid var(--line-soft); }
  html[data-money-style="aligned"] .mx-nav a { display: flex; color: var(--color-text); font-size: var(--text-body);
    background-image: var(--pride-progress), linear-gradient(var(--color-text), var(--color-text)); }
  html[data-money-style="aligned"] .mx-nav a:hover, html[data-money-style="aligned"] .mx-nav a:focus-visible { color: var(--color-text); }
  html[data-money-style="aligned"] .mx-nav :focus-visible { outline-color: var(--color-focus); outline-offset: -3px; }
  html[data-money-style="aligned"] .mx-nav-toggle[aria-expanded="true"] { background: var(--color-primary-hover); border-color: var(--brand-ivory); }
}
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] .mx-header__inner { min-height: 4.5rem; }
  html[data-money-style="aligned"] .mx-brand__logo { height: 2.5rem; }
  html[data-money-style="aligned"] .mx-brand__rule { height: 1.35rem; margin: .4rem .6rem 0 .7rem; }
  html[data-money-style="aligned"] .mx-brand__money { font-size: 1.125rem; margin-top: .45rem; letter-spacing: .16em; }
  html[data-money-style="aligned"] .mx-search { padding: 0; justify-content: center; }
  html[data-money-style="aligned"] .mx-search .search-label { display: none; }
  html[data-money-style="aligned"] .mx-nav-toggle { padding: 0 var(--space-3); }
}
@media (prefers-reduced-motion: reduce) { html[data-money-style="aligned"] .mx-nav a { transition: none; } }

/* ---------- Footer: dark green, ivory text, small ivory seal ---------- */
html[data-money-style="aligned"] .mx-footer {
  margin-top: var(--space-16); border-top: 0;
  background: var(--brand-green); color: var(--brand-ivory);
  font-size: var(--text-sm); line-height: 1.6;
}
html[data-money-style="aligned"] .mx-footer__grid {
  display: grid; gap: var(--space-8); padding-block: var(--space-10) var(--space-6);
}
@media (min-width: 48rem) { html[data-money-style="aligned"] .mx-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); } }
html[data-money-style="aligned"] .mx-footer__intro { display: flex; align-items: center; gap: var(--space-4); }
html[data-money-style="aligned"] .mx-footer__seal { display: block; width: 4.5rem; height: auto; flex: none; }   /* 72px */
html[data-money-style="aligned"] .mx-footer__name { margin: 0; font: 600 2rem/1.1 var(--font-display); color: var(--brand-ivory); }
html[data-money-style="aligned"] .mx-footer__name span { font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: .75em; }
html[data-money-style="aligned"] .mx-footer__tag { margin: var(--space-1) 0 0; font: italic 600 var(--text-md)/1.3 var(--font-display); opacity: .85; }
html[data-money-style="aligned"] .mx-footer__label {
  margin: 0 0 var(--space-2); font: 700 var(--text-xs)/1.4 var(--font-text);
  letter-spacing: .14em; text-transform: uppercase; color: #CFC6B3;     /* 7.4:1 on green */
}
html[data-money-style="aligned"] .mx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
html[data-money-style="aligned"] .mx-footer a { color: var(--brand-ivory); text-decoration-color: rgb(238 229 211 / 45%); }
html[data-money-style="aligned"] .mx-footer a:hover { color: var(--brand-ivory); text-decoration-color: var(--color-ornament); }
html[data-money-style="aligned"] .mx-footer__fine p { margin: 0 0 var(--space-2); }
html[data-money-style="aligned"] .mx-footer .not-advice { font-weight: 700; }

/* ---------- Shared ornaments (as on the main site) ---------- */
html[data-money-style="aligned"] .mx-double-rule { width: 100%; height: 5px; border-block: 1px solid var(--color-ornament); }
html[data-money-style="aligned"] .mx-short-rule { width: 4rem; border-top: 1px solid var(--color-ornament); margin: var(--space-5) auto; }
html[data-money-style="aligned"] .mx-fleuron { display: flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--color-ornament); }
html[data-money-style="aligned"] .mx-fleuron svg { display: block; width: 3rem; height: auto; }
html[data-money-style="aligned"] .mx-fleuron::before,
html[data-money-style="aligned"] .mx-fleuron::after { content: ""; width: 3rem; border-top: 1px solid var(--color-ornament); }

/* ---------- Home: the title page ---------- */
html[data-money-style="aligned"] .mx-opener--title { padding-block: var(--space-6) var(--space-10); border-bottom: 0; text-align: center; }
html[data-money-style="aligned"] .mx-title-page { max-width: 55rem; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
html[data-money-style="aligned"] .mx-tp-seal { display: block; width: 10rem; height: auto; margin: var(--space-6) 0 var(--space-4); }   /* 160px */
html[data-money-style="aligned"] .mx-title-page .eyebrow {
  margin: 0 0 var(--space-3); font: 600 var(--text-xs)/1.4 var(--font-text); letter-spacing: .16em;
  font-variant: normal; text-transform: uppercase; color: var(--color-text-muted);
}
/* small caps that keep the brand's lowercase e (eQUITY) */
html[data-money-style="aligned"] .mx-caps { text-transform: uppercase; font-variant: normal; }
html[data-money-style="aligned"] .mx-caps .mx-e { text-transform: none; }
html[data-money-style="aligned"] .mx-title-page h1 { margin: 0; font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.08; }
html[data-money-style="aligned"] .mx-title-page .mx-dek { max-width: 60ch; margin: 0 auto var(--space-6); color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.6; }
html[data-money-style="aligned"] .mx-title-page .mx-fleuron { margin-bottom: var(--space-5); }
html[data-money-style="aligned"] .mx-promise {
  margin: 0 0 var(--space-6); color: var(--color-text-muted);
  font: 600 var(--text-sm)/1.5 var(--font-text); letter-spacing: .12em; font-variant: all-small-caps;
}
html[data-money-style="aligned"] .mx-intro { padding-top: var(--space-8); }
html[data-money-style="aligned"] .mx-intro p { max-width: 44rem; margin: 0; font-size: var(--text-md); }
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] .mx-tp-seal { width: 8rem; }
  html[data-money-style="aligned"] .mx-title-page h1 { font-size: min(2.4rem, 9.4vw); }
}

/* ---------- Every other page: the chapter title ---------- */
html[data-money-style="aligned"] .mx-opener--chapter { position: relative; padding-block: 0 var(--space-10); border-bottom: 1px solid var(--line-soft); }
html[data-money-style="aligned"] .mx-opener--chapter .crumb-row { margin: 0; padding-top: var(--space-6); position: relative; z-index: 1; }
html[data-money-style="aligned"] .mx-chapter { max-width: 55rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The carnation seal hangs from a short brass ribbon (Money's signature, in place of the vignette) */
html[data-money-style="aligned"] .mx-seal { display: flex; flex-direction: column; align-items: center; margin: calc(-1 * var(--space-6)) 0 var(--space-3); pointer-events: none; }
/* wide screens: the ribbon hangs from the header, beside the breadcrumb row */
@media (min-width: 64rem) { html[data-money-style="aligned"] .mx-opener--chapter .crumb-row + .mx-chapter .mx-seal { margin-top: calc(-1 * (var(--space-6) + 2.75rem)); } }
/* narrower: below the breadcrumb row, with a shorter ribbon */
@media (max-width: 63.999rem) {
  html[data-money-style="aligned"] .mx-opener--chapter .crumb-row + .mx-chapter .mx-seal { margin-top: var(--space-2); }
  html[data-money-style="aligned"] .mx-opener--chapter .crumb-row + .mx-chapter .mx-seal__ribbon { height: 1.75rem; }
}
html[data-money-style="aligned"] .mx-seal__ribbon {
  display: block; width: 1.25rem; height: 3rem; margin-bottom: -.6rem;
  background: var(--color-ornament);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
html[data-money-style="aligned"] .mx-seal__disc { display: block; width: 5rem; height: 5rem; border-radius: 50%; background: var(--paper-main); }   /* 80px */
html[data-money-style="aligned"] .mx-seal__disc img { display: block; width: 100%; height: auto; }
html[data-money-style="aligned"] .mx-chapter-line {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  margin: 0 0 var(--space-3); color: var(--color-text-muted);
  font: 600 var(--text-sm)/1.35 var(--font-text); letter-spacing: .2em; font-variant: all-small-caps;
}
html[data-money-style="aligned"] .mx-chapter-line__rule { flex: 0 0 2.5rem; border-top: 1px solid var(--color-ornament); }
html[data-money-style="aligned"] .mx-chapter-line__text { padding-left: .2em; }
html[data-money-style="aligned"] .mx-chapter h1 { margin: 0; font-size: 3.25rem; line-height: 1.1; text-wrap: balance; }
html[data-money-style="aligned"] .mx-chapter .mx-fleuron { margin: var(--space-4) 0; }
html[data-money-style="aligned"] .mx-chapter .mx-fleuron svg { width: 2.25rem; }
html[data-money-style="aligned"] .mx-chapter .mx-fleuron::before,
html[data-money-style="aligned"] .mx-chapter .mx-fleuron::after { width: 2.5rem; }
html[data-money-style="aligned"] .mx-chapter .mx-dek {
  max-width: 56ch; margin: 0 auto; font-size: 1.15rem; line-height: 1.6;
  color: var(--color-text-muted); text-wrap: pretty;
}
/* "If you only do one thing…" stays the dek, in italic */
html[data-money-style="aligned"] .mx-chapter .one-thing { font-style: italic; }
html[data-money-style="aligned"] .mx-chapter .one-thing strong { font: italic 600 1.25rem/1.4 var(--font-display); color: var(--color-text); }
html[data-money-style="aligned"] .mx-chapter .meta-row { justify-content: center; margin: var(--space-3) 0 0; line-height: 1.4; }
html[data-money-style="aligned"] .mx-watch { width: 1.5rem; height: 1.5rem; flex: none; overflow: visible; }
html[data-money-style="aligned"] .mx-chapter .privacy-line { margin: var(--space-3) auto 0; }
html[data-money-style="aligned"] .mx-chapter .callout,
html[data-money-style="aligned"] .mx-chapter .crisis,
html[data-money-style="aligned"] .mx-chapter .browse-safely { width: 100%; margin: var(--space-6) auto 0; text-align: left; }
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] .mx-chapter h1 { font-size: 2.25rem; }
  html[data-money-style="aligned"] .mx-chapter .mx-dek { font-size: 1.0625rem; }
  html[data-money-style="aligned"] .mx-seal__disc { width: 4rem; height: 4rem; }
  html[data-money-style="aligned"] .mx-seal__ribbon { height: 2.25rem; }
}

/* Back button + breadcrumb: the main site's component */
html[data-money-style="aligned"] .back-link__icon { background: var(--paper-reading); border-color: var(--line-strong); }
html[data-money-style="aligned"] .back-link:hover .back-link__icon,
html[data-money-style="aligned"] .back-link:focus-visible .back-link__icon { background: var(--paper-aged); border-color: var(--color-primary); }
html[data-money-style="aligned"] .back-link { text-decoration: none; border-radius: var(--radius-small); }
html[data-money-style="aligned"] .breadcrumb a { color: var(--color-text-muted); }

/* ---------- Engraved icon badges (artwork: ../../assets/js/theme-warm.js) ---------- */
html[data-money-style="aligned"] .icon-badge { display: inline-block; flex: none; width: 3.5rem; height: 3.5rem; line-height: 0; }
html[data-money-style="aligned"] .icon-badge svg { width: 100%; height: 100%; overflow: visible; }
html[data-money-style="aligned"] .icon-badge--xs { width: 1.75rem; height: 1.75rem; }
html[data-money-style="aligned"] .icon-badge--sm { width: 2.5rem; height: 2.5rem; }          /* 40px */
html[data-money-style="aligned"] .icon-badge--lg { width: 6rem; height: 6rem; }
html[data-money-style="aligned"] .icon-badge .ring { stroke: var(--botanical-green); stroke-width: 1.25; fill: var(--paper-reading); }
html[data-money-style="aligned"] .icon-badge .eg-line,
html[data-money-style="aligned"] .mx-watch .eg-line { stroke: var(--botanical-green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
html[data-money-style="aligned"] .icon-badge .eg-wash,
html[data-money-style="aligned"] .mx-watch .eg-wash { fill: #D2D6C3; }
html[data-money-style="aligned"] .icon-badge .eg-paper,
html[data-money-style="aligned"] .mx-watch .eg-paper { fill: var(--paper-reading); }
html[data-money-style="aligned"] .icon-badge .eg-dot,
html[data-money-style="aligned"] .mx-watch .eg-dot { fill: var(--botanical-green); stroke: none; }
html[data-money-style="aligned"] .icon-badge .eg-hatch,
html[data-money-style="aligned"] .icon-badge .eg-fine { stroke: var(--botanical-shadow); stroke-width: 1; stroke-linecap: round; fill: none; }
html[data-money-style="aligned"] .icon-badge .eg-brass { stroke: var(--brand-brass); stroke-width: 1.25; fill: none; }
/* two detail levels: fine hatching from 96px up; the brass detail from 64px up */
html[data-money-style="aligned"] .icon-badge .eg-fine,
html[data-money-style="aligned"] .icon-badge--sm .eg-brass,
html[data-money-style="aligned"] .icon-badge--xs .eg-brass,
html[data-money-style="aligned"] .icon-badge--xs .eg-hatch,
html[data-money-style="aligned"] .mx-watch .eg-hatch,
html[data-money-style="aligned"] .mx-watch .eg-fine,
html[data-money-style="aligned"] .mx-watch .eg-brass { display: none; }
html[data-money-style="aligned"] .icon-badge--lg .eg-fine { display: inline; }
html[data-money-style="aligned"] .mx-watch * { vector-effect: non-scaling-stroke; }
html[data-money-style="aligned"] .mx-watch .eg-line { stroke-width: 1.1; }

/* ---------- Editorial list rows (Moments, Tools) ---------- */
html[data-money-style="aligned"] .section-block > h2 { margin-bottom: var(--space-4); }
html[data-money-style="aligned"] .mx-rows { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-top: 1px solid var(--line-soft); }
html[data-money-style="aligned"] .mx-rows > li { border-bottom: 1px solid var(--line-soft); }
html[data-money-style="aligned"] a.mx-row {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-5);
  padding: var(--space-4) var(--space-2); color: var(--color-text); text-decoration: none;
  border-radius: var(--radius-small);
}
html[data-money-style="aligned"] a.mx-row:hover { background: var(--paper-aged); color: var(--color-text); }
html[data-money-style="aligned"] a.mx-row:hover .mx-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html[data-money-style="aligned"] a.mx-row:focus-visible { outline-offset: -3px; }
html[data-money-style="aligned"] .mx-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-money-style="aligned"] .mx-row__title { margin: 0; font: 600 1.5rem/1.2 var(--font-display); color: var(--color-text); }
html[data-money-style="aligned"] .mx-row__desc { margin: 0; color: var(--color-text-muted); line-height: 1.5; }
html[data-money-style="aligned"] .mx-row__meta {
  font: 700 var(--text-xs)/1.5 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted);
}
html[data-money-style="aligned"] .mx-row__arrow { font-size: 1.375rem; color: var(--color-primary); }
/* "Coming soon": muted rows, not links */
html[data-money-style="aligned"] .mx-soon > h2 {
  font: 700 var(--text-sm)/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted);
}
html[data-money-style="aligned"] li.mx-row--soon {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4);
  padding: var(--space-3) var(--space-2) var(--space-3) calc(2.5rem + var(--space-5) + var(--space-2));
}
html[data-money-style="aligned"] li.mx-row--soon .mx-row__title { font-size: 1.25rem; color: var(--color-text-muted); }
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] a.mx-row { gap: var(--space-3); }
  html[data-money-style="aligned"] .mx-row__title { font-size: 1.3rem; }
  html[data-money-style="aligned"] li.mx-row--soon { padding-left: var(--space-2); }
}

/* Cards (six or fewer peer choices, e.g. Tools for this moment) */
html[data-money-style="aligned"] .card {
  background: var(--paper-reading); border: 1px solid var(--line-soft); border-radius: var(--radius-medium);
  box-shadow: none; line-height: 1.5;
}
html[data-money-style="aligned"] a.card { text-decoration: none; }
html[data-money-style="aligned"] a.card:hover { background: var(--paper-reading); border-color: var(--color-primary); }
html[data-money-style="aligned"] .card .card-cta { color: var(--color-primary); }

/* ---------- Moment layout: sticky contents, reading column ---------- */
html[data-money-style="aligned"] .moment-layout { padding-top: var(--space-10); }
@media (min-width: 64rem) { html[data-money-style="aligned"] .moment-layout { grid-template-columns: 15rem minmax(0, 46rem); gap: var(--space-12); } }
html[data-money-style="aligned"] .mx-toc > h2 { margin: 0 0 var(--space-3); }
html[data-money-style="aligned"] .mx-toc ol { border-left: 1px solid var(--line-soft); }
html[data-money-style="aligned"] .mx-toc li + li { border-top: 0; }
html[data-money-style="aligned"] .mx-toc li a {
  margin-left: -1px; padding: var(--space-2) var(--space-3); border-left: 2px solid transparent;
  color: var(--color-text); text-decoration: none; font-size: var(--text-sm); line-height: 1.4;
}
html[data-money-style="aligned"] .mx-toc li a:hover { background: var(--paper-aged); text-decoration: underline; }
html[data-money-style="aligned"] .mx-toc li a[aria-current] { border-left-color: var(--color-ornament); font-weight: 700; }
html[data-money-style="aligned"] .mx-toc__toggle { display: none; }
@media (min-width: 64rem) { html[data-money-style="aligned"] .mx-toc { top: var(--space-8); } }
@media (max-width: 63.999rem) {
  /* phones and tablets: a collapsible block */
  html[data-money-style="aligned"] .mx-toc { background: var(--paper-reading); border: 1px solid var(--line-soft); border-radius: var(--radius-medium); }
  html[data-money-style="aligned"] .mx-toc > h2 { display: none; }
  html[data-money-style="aligned"] .mx-toc__toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3rem;
    padding: 0 var(--space-4); background: none; border: 0; cursor: pointer; color: var(--color-text);
    font: 700 var(--text-sm)/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase;
  }
  html[data-money-style="aligned"] .mx-toc__toggle svg { width: 1rem; height: 1rem; transition: transform .2s ease; }
  html[data-money-style="aligned"] .mx-toc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  html[data-money-style="aligned"] .mx-toc ol { display: none; margin: 0 var(--space-4) var(--space-4); }
  html[data-money-style="aligned"] .mx-toc.is-open ol { display: block; }
}

/* The reading column: no ruling through the text (the rules stay inside ledger tables and Entry
   boxes); the brass double margin rule keeps the ledger feel */
html[data-money-style="aligned"] .ruled {
  background-image: none; border-left: 0; padding-left: var(--space-6); line-height: 1.7;
}
html[data-money-style="aligned"] .ruled::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-inline: 1px solid var(--color-ornament);                      /* two 1px lines, 3px apart */
}
html[data-money-style="aligned"] .ruled p,
html[data-money-style="aligned"] .ruled ul,
html[data-money-style="aligned"] .ruled ol { margin: 0 0 var(--space-5); }
html[data-money-style="aligned"] .ruled li { line-height: 1.7; margin-bottom: var(--space-2); }
html[data-money-style="aligned"] .ruled h2,
html[data-money-style="aligned"] .ruled h3 { margin: 0 0 var(--space-3); padding: 0; background: none; line-height: 1.2; }
html[data-money-style="aligned"] .ruled .ruled-section + .ruled-section { margin-top: var(--space-8); }
html[data-money-style="aligned"] .ruled .gloss-term { height: auto; line-height: inherit; vertical-align: baseline; }
html[data-money-style="aligned"] .ruled .snap { padding-bottom: 0 !important; margin: 0 0 var(--space-6); background: none; }
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] .ruled { padding-left: var(--space-4); }
  html[data-money-style="aligned"] .ruled h2, html[data-money-style="aligned"] .ruled h3 { margin-left: 0; padding-left: 0; }
}
@media (forced-colors: active) { html[data-money-style="aligned"] .ruled::before { border-color: CanvasText; } }

/* Drop cap: the first body paragraph of a moment page, 3 lines, when it is at least 3 lines long */
html[data-money-style="aligned"] .mx-dropcap::first-letter {
  float: left; margin: .06em .12em 0 0; font: 600 3.55em/.8 var(--font-display); color: var(--color-primary);
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  html[data-money-style="aligned"] .mx-dropcap::first-letter { float: none; margin: 0 .12em 0 0; font-size: 1em; line-height: 1; -webkit-initial-letter: 3; initial-letter: 3; }
}

/* Accordions: the main site's component */
html[data-money-style="aligned"] .ruled .acc-split { margin-top: var(--space-6); border-block: 1px solid var(--line-soft); }
html[data-money-style="aligned"] .ruled .acc-split + .acc-split { margin-top: 0; border-top: 0; }
html[data-money-style="aligned"] .ruled .acc-split > h2 { margin: 0; font-size: var(--text-h2); }
html[data-money-style="aligned"] .acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; min-height: 3rem; padding: var(--space-5) 0;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--color-text);
}
html[data-money-style="aligned"] .acc-plus {
  position: relative; flex: none; width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--paper-reading);
}
html[data-money-style="aligned"] .acc-btn:hover .acc-plus { background: var(--paper-aged); }
html[data-money-style="aligned"] .acc-plus::before,
html[data-money-style="aligned"] .acc-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .875rem; height: 2px; margin: -1px 0 0 -.4375rem;
  background: var(--color-primary); border-radius: 1px; transition: transform .18s ease;
}
html[data-money-style="aligned"] .acc-plus::after { transform: rotate(90deg); }
html[data-money-style="aligned"] .acc-btn[aria-expanded="true"] .acc-plus::after { transform: rotate(90deg) scaleX(0); }
html[data-money-style="aligned"] .acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .18s ease, visibility 0s linear .18s; }
html[data-money-style="aligned"] .acc-panel.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .18s ease, visibility 0s; }
html[data-money-style="aligned"] .acc-inner { min-height: 0; overflow: hidden; padding: var(--space-1); margin: calc(-1 * var(--space-1)); }
html[data-money-style="aligned"] .acc-panel.is-open > .acc-inner { overflow: visible; }
html[data-money-style="aligned"] .acc-inner > :last-child { margin-bottom: var(--space-6); }
@media print { html[data-money-style="aligned"] .acc-panel { grid-template-rows: 1fr; visibility: visible; } }

/* Timeline (an ordered sequence of steps): the main site's vertical timeline */
html[data-money-style="aligned"] ol.mx-timeline {
  --tl-x: .75rem; list-style: none; position: relative; padding-left: calc(var(--tl-x) + var(--space-6)); counter-reset: step;
}
html[data-money-style="aligned"] ol.mx-timeline::before {
  content: ""; position: absolute; left: var(--tl-x); top: .6rem; bottom: .9rem; width: 1px; background: var(--line-strong);
}
html[data-money-style="aligned"] ol.mx-timeline > li { position: relative; margin: 0 0 var(--space-4); counter-increment: step; }
html[data-money-style="aligned"] ol.mx-timeline > li::before {
  content: counter(step); position: absolute; top: .2rem; left: calc(-1 * (var(--space-6) + .75rem));
  width: 1.5rem; height: 1.5rem; border-radius: 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-reading); border: 1px solid var(--color-primary); color: var(--color-primary);
  font: 700 .75rem/1 var(--font-text);
}
html[data-money-style="aligned"] ol.mx-timeline > li:first-child::before { background: var(--color-primary); color: var(--paper-reading); }

/* ---------- Ledger details ---------- */
/* Entry box: reading paper, 2px brass left border, faded-blue rules between actions */
html[data-money-style="aligned"] .entry {
  margin: 0 0 var(--space-6); background: var(--paper-reading);
  border: 1px solid var(--line-soft); border-left: 2px solid var(--color-ornament); border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  box-shadow: none; line-height: 1.6;
}
html[data-money-style="aligned"] .entry__band {
  padding: var(--space-2) var(--space-4) 0; box-shadow: none;
  font: 700 var(--text-xs)/1.5 var(--font-text); letter-spacing: .16em; font-variant: normal; text-transform: uppercase; color: var(--color-text-muted);
}
html[data-money-style="aligned"] .entry ol,
html[data-money-style="aligned"] .ruled .entry ol { margin: 0; padding: var(--space-2) var(--space-4) var(--space-3) var(--space-10); }
html[data-money-style="aligned"] .entry li { padding: var(--space-2) 0; margin: 0; line-height: 1.5; }
html[data-money-style="aligned"] .entry li + li { box-shadow: inset 0 1px 0 var(--ledger-rule); }
html[data-money-style="aligned"] .entry li::marker { color: var(--color-text-muted); font-weight: 700; }

/* Ledger tables and calculator sheets: ledger paper, blue row rules, tabular figures */
html[data-money-style="aligned"] .table-wrap { background: var(--paper-ledger); border: 1px solid var(--line-soft); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .ruled .snap .table-wrap { background: var(--paper-ledger); }
html[data-money-style="aligned"] .ledger-table { font-variant-numeric: tabular-nums lining-nums; }
html[data-money-style="aligned"] .ledger-table th,
html[data-money-style="aligned"] .ledger-table td { border-bottom-color: var(--ledger-rule); }
html[data-money-style="aligned"] .ledger-table thead th {
  background: var(--paper-aged); border-bottom: 1px solid var(--line-strong);
  font-variant: all-small-caps; text-transform: none; letter-spacing: .1em; color: var(--color-text);
}
html[data-money-style="aligned"] .total { border-bottom: 3px double var(--brand-ink); }
html[data-money-style="aligned"] .tool-inputs { background: var(--paper-ledger); border: 1px solid var(--line-soft); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .tool-results .table-wrap { background: var(--paper-ledger); }

/* Inputs: "fill in the ledger", underline only */
html[data-money-style="aligned"] input[type="text"],
html[data-money-style="aligned"] input[type="number"],
html[data-money-style="aligned"] select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;   /* 3:1+ */
  padding-inline: var(--space-1);
}
html[data-money-style="aligned"] input[type="text"]:focus-visible,
html[data-money-style="aligned"] input[type="number"]:focus-visible,
html[data-money-style="aligned"] select:focus-visible {
  border-bottom: 3px solid var(--color-primary); padding-bottom: calc(var(--space-2) - 2px);
  outline: 3px solid var(--color-focus); outline-offset: 2px;
}
html[data-money-style="aligned"] select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2320382F' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .25rem center / 1rem; -webkit-appearance: none; appearance: none; padding-right: 1.75rem; }
html[data-money-style="aligned"] .money-input > span { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 0 var(--space-1) 0 0; color: var(--color-text-muted); }
html[data-money-style="aligned"] .money-input input { border-radius: 0; }
html[data-money-style="aligned"] input[aria-invalid="true"] { border-bottom: 2px solid var(--color-danger); }
html[data-money-style="aligned"] .field .error { color: var(--color-danger); }
html[data-money-style="aligned"] .check input,
html[data-money-style="aligned"] input[type="range"],
html[data-money-style="aligned"] .yn__opts input,
html[data-money-style="aligned"] .goal-checklist input[type="checkbox"],
html[data-money-style="aligned"] .habit input { accent-color: var(--color-primary); }
html[data-money-style="aligned"] .icon-btn { border-color: var(--line-strong); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .icon-btn:hover { background: var(--paper-aged); }

/* Buttons: 2px corners */
html[data-money-style="aligned"] .btn { border-radius: var(--radius-small); }
html[data-money-style="aligned"] .btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--paper-reading); }
html[data-money-style="aligned"] .btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--paper-reading); box-shadow: none; }
html[data-money-style="aligned"] .btn--secondary { border-color: var(--line-strong); color: var(--color-primary); }
html[data-money-style="aligned"] .btn--secondary:hover { background: var(--paper-aged); border-color: var(--color-primary); }

/* Pros and cons: "Pros" in green, "Cons" in oxblood; each item an accordion (no ✓/✗ symbols) */
html[data-money-style="aligned"] .ledger-cols { border-color: var(--line-soft); border-radius: var(--radius-medium); background: var(--paper-reading); overflow: hidden; }
html[data-money-style="aligned"] .ledger-col + .ledger-col { border-color: var(--line-soft); }
html[data-money-style="aligned"] .ledger-col h3 { background: var(--paper-aged) !important; border-bottom-color: var(--line-soft); letter-spacing: .12em; }
html[data-money-style="aligned"] .ledger-col--pros h3 { color: var(--color-primary); }
html[data-money-style="aligned"] .ledger-col--cons h3 { color: var(--color-danger); }
html[data-money-style="aligned"] .ledger-col summary::before { border-radius: var(--radius-small); border-color: var(--line-strong); color: var(--color-primary); }

/* Time-horizon tags: square-ish, outlined, always labelled in text */
html[data-money-style="aligned"] .tag { border-radius: var(--radius-small); background: var(--paper-reading); color: var(--color-text); border-width: 1px; border-style: solid; }
html[data-money-style="aligned"] .tag--short { border-color: var(--color-primary); }
html[data-money-style="aligned"] .tag--medium { border-color: var(--color-ornament); }
html[data-money-style="aligned"] .tag--long { border-color: var(--line-strong); border-width: 1px; border-style: solid; }

/* Disclaimer, crisis box, notes */
html[data-money-style="aligned"] .callout { background: var(--paper-reading); border: 1px solid var(--line-strong); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .crisis { background: var(--paper-reading); border: 1px solid var(--line-soft); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius-medium) var(--radius-medium) 0; }
html[data-money-style="aligned"] .crisis .label { color: var(--color-text); }
html[data-money-style="aligned"] .notice { background: var(--paper-reading); border-left-color: var(--color-primary); }
html[data-money-style="aligned"] .notice .label { color: var(--color-text); }
html[data-money-style="aligned"] .browse-safely { background: var(--paper-reading); border-color: var(--line-soft); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .cardcheck__result { background: var(--paper-reading); border-left: 2px solid var(--color-ornament); }
html[data-money-style="aligned"] .yn { background: var(--paper-reading); border-color: var(--line-soft); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .goal-checklist fieldset { border-color: var(--line-soft); border-radius: var(--radius-medium); background: var(--paper-reading); }
/* Budget-shortfall notes keep oxblood (an allowed alert use) */
html[data-money-style="aligned"] .planner-note.is-short,
html[data-money-style="aligned"] .planner-table tr.is-issue td[data-out="need"] { color: var(--color-danger); }
/* the planner's double rule: brass, two 1px lines 3px apart */
html[data-money-style="aligned"] .planner { border-top: 1px solid var(--color-ornament); box-shadow: inset 0 3px 0 var(--paper-main), inset 0 4px 0 var(--color-ornament); }
html[data-money-style="aligned"] .split-bar { border-color: var(--line-strong); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .split-bar .seg-savings { color: var(--paper-reading); }

/* Glossary terms and popovers */
html[data-money-style="aligned"] .gloss-term { text-decoration: underline dotted var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: .2em; }
html[data-money-style="aligned"] .gloss-pop {
  background: var(--paper-reading); border: 1px solid var(--line-soft); border-top: 2px solid var(--color-ornament);
  border-radius: var(--radius-medium); box-shadow: 0 6px 18px rgb(37 45 40 / 16%);
}
html[data-money-style="aligned"] .gloss-letter { border-top-color: var(--line-soft); }
html[data-money-style="aligned"] .gloss-letter > h2 { color: var(--color-primary); }

/* Editing markers, as on the main site */
html[data-money-style="aligned"] .badge-verify { background: var(--paper-ledger); color: var(--color-text); border: 1px dashed var(--line-strong); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .placeholder { background: var(--paper-ledger); color: var(--color-text); border: 1px dashed var(--line-strong); border-radius: var(--radius-small); }

/* Sections and help list */
html[data-money-style="aligned"] .page-head { border-bottom-color: var(--line-soft); }
html[data-money-style="aligned"] .help-list { line-height: 1.6; }
html[data-money-style="aligned"] .help-list li { border-top-color: var(--line-soft); }
html[data-money-style="aligned"] .strip > h2.label { display: flex; align-items: center; gap: var(--space-2); }
html[data-money-style="aligned"] .privacy-line { color: var(--color-text-muted); }

/* Get help: the main site's filterable list */
html[data-money-style="aligned"] .mx-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); }
html[data-money-style="aligned"] .mx-chip {
  min-height: 2.75rem; padding: 0 var(--space-4); cursor: pointer;
  background: var(--paper-reading); color: var(--color-text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  font: 600 var(--text-sm)/1 var(--font-text);
}
html[data-money-style="aligned"] .mx-chip:hover { background: var(--paper-aged); }
html[data-money-style="aligned"] .mx-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--paper-reading); }

/* Search dialog: the shared component in the palette */
html[data-money-style="aligned"] .search-dialog { background: var(--paper-reading); border-color: var(--line-soft); border-top: 2px solid var(--color-ornament); border-radius: var(--radius-medium); }
html[data-money-style="aligned"] .search-input { background: var(--paper-reading); border-color: var(--line-strong); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .search-close { border-color: var(--line-strong); border-radius: var(--radius-small); }
html[data-money-style="aligned"] .search-backdrop { background: var(--brand-ink); }

/* Forced colors: keep every ornament line and the ribbon visible */
@media (forced-colors: active) {
  html[data-money-style="aligned"] .mx-double-rule, html[data-money-style="aligned"] .mx-short-rule,
  html[data-money-style="aligned"] .mx-chapter-line__rule { border-color: CanvasText; }
  html[data-money-style="aligned"] .mx-seal__ribbon { background: CanvasText; }
  html[data-money-style="aligned"] .quick-exit-pill { border: 2px solid ButtonText; }
}
@media print {
  html[data-money-style="aligned"] .mx-header .mx-header__actions, html[data-money-style="aligned"] .mx-nav, html[data-money-style="aligned"] .mx-seal { display: none !important; }
  html[data-money-style="aligned"] body.print-plan .mx-header, html[data-money-style="aligned"] body.print-plan .mx-footer,
  html[data-money-style="aligned"] body.print-plan .mx-opener, html[data-money-style="aligned"] body.print-plan .mx-intro { display: none !important; }
}
html[data-money-style="aligned"] .ledger-table th .gloss-term,
html[data-money-style="aligned"] .ledger-table td .gloss-term { text-align: left; }
html[data-money-style="aligned"] .table-wrap .ledger-table caption { padding: var(--space-2) var(--space-4); }
/* Phones: tighter table cells, so narrow columns keep a few words per line */
@media (max-width: 39.999rem) {
  html[data-money-style="aligned"] .ledger-table th,
  html[data-money-style="aligned"] .ledger-table td { padding: var(--space-2) var(--space-2); }
  html[data-money-style="aligned"] .ruled .table-wrap { margin-right: calc(-1 * var(--space-2)); }
}
