/* Economy in Context — shared styles for the articles section.
   The almanac (index.html) and detail page (chart.html) carry their own copies
   of the same tokens so each stays a single file. Keep the tokens in sync. */

@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/PublicSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/PublicSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/PublicSans-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --page: #f6f6f3; --surface: #ffffff; --ink: #1b1b1a; --ink-2: #5a5955; --muted: #72716b;
  --hairline: #e3e2dc; --grid: #ebeae4; --series: #0b7a75; --focus: #0b7a75; --c1: #903a03; --c2: #5624c1; --c3: #b88e2f; --c4: #eb4ec8; --nav: #8a6100; --nav-wash: rgba(138, 97, 0, 0.09);
  --series-wash: rgba(11, 122, 117, 0.10); --full-ink: #0b6b66; --full-line: rgba(11, 122, 117, 0.45);   /* the Featured card and its pills, as on the almanac */
  --banner: #fff4d6; --banner-ink: #5a4300; --max: 1120px; --measure: 39em;   /* about 76 characters at 17px (was 42em, about 84) */
  --frame: #c4c2b9;   /* the sides of framed boxes (cards, chart frames), Nov 6: the range bar's gray; Featured keeps its teal */
}
/* dark colors on screen only: printing from a browser in dark mode stays on the light tokens */
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #121211; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --hairline: #2c2c2a; --grid: #262624; --series: #2bb3a8; --focus: #2bb3a8; --c1: #fb8304; --c2: #9980fe; --c3: #7c6713; --c4: #ba0f9b; --nav: #d9a83a; --nav-wash: rgba(217, 168, 58, 0.12);
    --series-wash: rgba(43, 179, 168, 0.14); --full-ink: #5cc8be; --full-line: rgba(43, 179, 168, 0.6); --banner: #3a2f10; --banner-ink: #f3dfa0;
    --frame: #45443f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.masthead { padding: 12px 0 10px; border-bottom: 1px solid var(--hairline); }
/* The site's masthead row (Batch B, Nov 6): the lockup, a link home at 22px, and the site menu, the same component as the
   home page's (index.html) and the chart pages' (chart.html). Desktop: the menu right of the lockup on one row; phones
   (<=760px): the lockup, then the menu in a row under it. The menu marks the page you are on, or the part of the site it
   belongs to, in ink (aria-current). */
.masthead .title-row { display: flex; align-items: center; justify-content: space-between; gap: 4px 20px; }
.site-menu { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nav); font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--nav); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.site-menu a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.site-menu a[aria-current] { color: var(--ink); }
a.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); text-decoration: none; white-space: nowrap; }
a.brand .bl { font-weight: 400; color: var(--ink-2); }
a.brand:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.brand .mark { flex: none; width: 1.4em; height: 1.4em; margin: 0 0.1em 0 -0.26em; }
@media (max-width: 760px) {
  .masthead .title-row { flex-wrap: wrap; row-gap: 0; }
  .site-menu { width: 100%; gap: 0 14px; }
  a.brand { font-size: 20px; }
}
@media (max-width: 340px) { a.brand { font-size: 19px; } }   /* 320px phones: the lockup on one line (the menu's 320px size is with the Tools rule below) */

/* Article ------------------------------------------------------------------ */
.article { padding-top: 28px; padding-bottom: 40px; }   /* top and bottom only: .wrap keeps the 16px side gutter */
.article article, .article > h1, .article > .dek, .article > .article-list { max-width: var(--measure); }
.article h1 { margin: 0 0 8px; font-size: 40px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.article .dek { margin: 0 0 10px; font-size: 19px; color: var(--ink-2); line-height: 1.4; }
.article .dateline { margin: 0 0 28px; font-size: 13.5px; color: var(--muted); }
.article .dateline .sep { margin: 0 4px; }
.article h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.article h3 { margin: 26px 0 6px; font-size: 19px; font-weight: 600; }
.article h4 { margin: 20px 0 4px; font-size: 17px; font-weight: 600; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 0 0 6px; }
.article blockquote { margin: 0 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--hairline); color: var(--ink-2); }
.article hr { border: 0; border-top: 1px solid var(--hairline); margin: 28px 0; }
.article strong { font-weight: 600; }
.article .table-scroll { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; margin: 0; font-size: 15px; }
.article .table-scroll table { min-width: 480px; }
/* Phones (Nov 5): a table of four columns or fewer gets no minimum width, so most fit the screen with their headings
   wrapped; one that still doesn't fit fades at the edge with more to scroll to, under a line that says so (assets/tables.js). */
.article .table-scroll table:not(:has(tr > :nth-child(5))) { min-width: 0; }
.article .table-scroll table:has(tr > :nth-child(6)) { width: auto; min-width: 100%; }   /* six or more columns: it scrolls anyway, */
.article .table-scroll table:has(tr > :nth-child(6)) td { white-space: nowrap; }      /* so each cell keeps to one line and the hint says to scroll */
.article .table-hint { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.article .table-scroll.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.article .table-scroll.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.article .table-scroll.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.article .table-scroll:focus-visible { outline: 2px solid var(--nav); outline-offset: 2px; }
.article th, .article td { padding: 6px 8px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.article th { font-weight: 600; border-top: 0; border-bottom: 1px solid var(--ink-2); }
.article td.num, .article th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Live chart embeds: wider than the text column */
.article figure.chart-embed { margin: 22px 0 26px; width: min(860px, calc(100vw - 32px)); }
.article figure.chart-embed iframe { display: block; width: 100%; border: 1px solid var(--frame); border-radius: 6px; background: var(--surface); }
.article figure.chart-embed figcaption { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: calc(var(--measure) * 17 / 13.5); }   /* the text column's width: 42em at the body's 17px */
.article figure.chart-embed figcaption a { white-space: nowrap; }
/* Static figures ({{figure}} in an article): plain HTML bars from numbers in the text. Bars in Neutral Ground Teal,
   a second series in the first companion color (c1), a split whole in teal, c1, c3 and ink; values in text tokens at
   each bar's tip; a legend only when there is more than one color */
.article .figure { margin: 22px 0 26px; max-width: var(--measure); font-size: 13.5px; color: var(--ink-2); }
.figure .ftitle { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.figure .row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 3px 0; border-top: 1px solid var(--hairline); }
.figure .row:first-child { border-top: 0; }
.figure .lab { color: var(--ink); }
.figure .bars { display: flex; flex-direction: column; gap: 2px; padding-right: 8.5em; }   /* room for the value past a full-width bar */
.figure .bar { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.figure .bar i { display: block; flex: none; height: 14px; border-radius: 0 4px 4px 0; background: var(--series); }
.fig-pairs .bar i { height: 11px; }
.figure .bar i.s2, .figure .legend i.s2, .figure .seg.s2 { background: var(--c1); }
.figure .seg.s3, .figure .legend i.s3 { background: var(--c3); }
.figure .seg.s4, .figure .legend i.s4 { background: var(--ink); }
.figure .v { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.figure .stack { display: flex; gap: 2px; height: 28px; }
.figure .seg { display: flex; align-items: center; min-width: 0; overflow: hidden; padding: 0 6px; border-radius: 4px; background: var(--series); color: #fff; }
.figure .seg.s4 { color: var(--page); }
.figure .seg .v { color: inherit; font-weight: 600; font-size: 12.5px; }
.figure .legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.figure .legend li { margin: 0; }
.figure .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; background: var(--series); }
.figure figcaption { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.figure figcaption .src { color: var(--muted); }
/* Illustrations ({{illustration}} in an article, Nov 9): hand-drawn SVGs from articles/illustrations/, inlined so they
   take the page's font and both themes. Drawn on a 360-unit-wide viewBox, shown at most 430px wide (about 1.2x on
   desktop, a little under 1x on phones), so 13-unit text is never below 11px. Only these classes color them: paper,
   sheet and ink, Ink Secondary and Muted, Frame and Hairline, the teal for the reading or the money that matters, and
   (Nov 9) the four companion colors for identity only. No judgment colors: a fee is marked by an ink tag and weight, never red. Fictional documents say so on their face. */
.article figure.illo { margin: 24px 0 28px; max-width: 430px; }
.illo svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; font-variant-numeric: tabular-nums; }
.illo figcaption { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: var(--measure); }
.illo .bg { fill: var(--page); }
.illo .sheet { fill: var(--surface); stroke: var(--frame); stroke-width: 1; }
.illo .well { fill: var(--page); stroke: var(--hairline); stroke-width: 1; }
.illo .rule { stroke: var(--hairline); stroke-width: 1; fill: none; }
.illo .frame { stroke: var(--frame); stroke-width: 1; fill: none; }
.illo .ink-line { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.illo .lead { stroke: var(--ink-2); stroke-width: 1; fill: none; stroke-dasharray: 2 3; }
.illo .ink-fill { fill: var(--ink); }
.illo .ink2-fill { fill: var(--ink-2); }
.illo .range-fill { fill: var(--frame); }
.illo .teal-fill { fill: var(--series); }
.illo .wash { fill: var(--series-wash); }
.illo .teal-line { stroke: var(--series); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illo .teal-rule { stroke: var(--series); stroke-width: 2; fill: none; }
.illo .series-ring { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
/* Identity colors in illustrations (Nov 9): the chart page's four companion slots, for telling things apart only
   (which plan, which line), never for judgment. Always paired with a second cue: a dash pattern, a label or a legend. */
.illo .c1-line { stroke: var(--c1); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illo .c1-fill { fill: var(--c1); }
.illo .c1-edge { fill: var(--surface); stroke: var(--c1); stroke-width: 2; }
.illo .c2-line { stroke: var(--c2); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illo .c2-fill { fill: var(--c2); }
.illo .c2-edge { fill: var(--surface); stroke: var(--c2); stroke-width: 2; }
.illo .c3-line { stroke: var(--c3); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illo .c3-fill { fill: var(--c3); }
.illo .c3-edge { fill: var(--surface); stroke: var(--c3); stroke-width: 2; }
.illo .c4-line { stroke: var(--c4); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illo .c4-fill { fill: var(--c4); }
.illo .c4-edge { fill: var(--surface); stroke: var(--c4); stroke-width: 2; }
.illo .teal-edge { fill: var(--surface); stroke: var(--series); stroke-width: 2; }
.illo .dashed { stroke-dasharray: 6 4; }
.illo .dotted { stroke-dasharray: 1.5 4; stroke-linecap: round; }
.illo .hatch-line { stroke: var(--ink-2); stroke-width: 1; }
.illo text { fill: var(--ink); font-size: 14px; }
.illo text.s { font-size: 13px; }
.illo text.xs { font-size: 12.5px; }
.illo text.h { font-size: 15px; font-weight: 700; }
.illo text.big { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.illo text.b, .illo tspan.b { font-weight: 700; }
.illo text.m, .illo tspan.m { font-weight: 600; }
.illo text.i2, .illo tspan.i2 { fill: var(--ink-2); }
.illo text.mu, .illo tspan.mu { fill: var(--muted); }
.illo text.rev, .illo tspan.rev { fill: var(--surface); font-weight: 700; }
.illo text.teal, .illo tspan.teal { fill: var(--full-ink); font-weight: 700; }
.illo text.cap { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; fill: var(--ink-2); }
@media (max-width: 760px) { .figure .row { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); } }

.article ul.sources { font-size: 15px; color: var(--ink-2); padding-left: 20px; }
.article ul.sources li { margin: 0 0 4px; }
.article #sources { font-size: 19px; }

.article .note-box { margin: 0 0 18px; padding: 10px 14px; background: var(--banner); color: var(--banner-ink); border-radius: 4px; font-size: 15px; }

/* Index ---------------------------------------------------------------------- */
.article-list { list-style: none; margin: 22px 0 0; padding: 0; }
.article .article-list { margin: 22px 0 0; padding: 0; }   /* beats ".article ul", which indented the index lists */
.article-list li { padding: 16px 0; border-top: 1px solid var(--hairline); display: grid; gap: 2px; }
.article-list li:last-child { border-bottom: 1px solid var(--hairline); }
.article-list a { text-decoration: none; }
.article-list .t { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.article-list a:hover .t { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.article-list .d { color: var(--ink-2); font-size: 16px; }
.article-list .when { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* Index layout: jump links, Latest with its folded earlier pieces, Plain words split into
   The numbers (grouped as on the almanac) and The ideas, in one-line entries */
.article > h2, .article > h3, .article > .lede, .article > .num-group,
.article > .compact-list, .article > details.earlier { max-width: var(--measure); }
/* The index's title and dek sit above the section bar, outside main; the bar is the almanac's (index.html has the same
   rules): a sheet-colored strip between two hairlines with an "On this page" label, sticky, the section in view marked
   by a 2px ink rule on the bar's bottom edge; on phones one sideways-scrolling row with edge fades and no label */
.article-head { padding-bottom: 0; }
.article-head h1, .article-head .dek { max-width: var(--measure); }
.secnav { position: sticky; top: 0; z-index: 5; margin: 14px 0 0; background: linear-gradient(var(--nav-wash), var(--nav-wash)), var(--surface); border-top: 3px solid var(--nav); border-bottom: 1px solid var(--hairline); }
.secnav .wrap { display: flex; align-items: baseline; gap: 0 20px; }   /* baseline, not center: the label is smaller type and sits on the links' baseline */
.secnav-label { flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
/* ↑ Top: the way back to the top of the page, first in the row at every width (outside the list, so it stays put while the
   row scrolls sideways on phones) */
.to-top { flex: none; font-size: 12.5px; font-weight: 600; color: var(--nav); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; padding: 13px 0 10px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.to-top:hover { color: var(--ink); border-bottom-color: var(--nav); }
.sections-nav { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
.sections-nav a { display: inline-block; padding: 11px 0 8px; margin-bottom: -1px; color: var(--nav); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.sections-nav a:hover { color: var(--ink); border-bottom-color: var(--nav); }
.sections-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--nav); }
.secnav + main.article { padding-top: 0; }
.secnav + main h2[id] { scroll-margin-top: calc(var(--nav-h, 48px) + 8px); }   /* Nov 19: the Tools page's groups, too */
#latest, #household-paths, #the-numbers, #the-ideas { scroll-margin-top: calc(var(--nav-h, 48px) + 8px); }   /* jumps land below the bar */
@media (max-width: 760px) {
  .secnav { margin-top: 10px; }
  .secnav-label { display: none; }
  .to-top { padding: 14px 0 11px; }
  .sections-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px; margin: 0 -16px -1px; gap: 0 20px; }   /* sideways only (Nov 5): the links' -1px marker overlap made the row 1px taller than its box, so it also scrolled up and down; the row now takes the overlap itself */
  .sections-nav::-webkit-scrollbar { display: none; }
  .sections-nav li:last-child { padding-right: 16px; }
  .sections-nav a { padding: 14px 0 11px; margin-bottom: 0; }   /* about 46px: a thumb-sized target */
  .sections-nav.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .sections-nav.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
  .sections-nav.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
}
/* the feed, under the lead items on the articles index */
.article > .feed-link { max-width: var(--measure); margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
/* The lead on the articles index: the Featured card (teal wash) and Make your own chart (sheet) side by side, stacked on phones;
   the same rules as the almanac's (index.html). Each ends with a picture drawn from the site's data, kept at the foot */
.article > .lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin: 22px 0 0; align-items: stretch; max-width: calc(var(--measure) * 17 / 15 + 320px); }
.lead:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.featured, .chart-try, .tool-try { display: flex; flex-direction: column; margin: 0; padding: 14px 18px 14px; border: 1px solid var(--frame); border-top: 2px solid var(--ink); border-radius: 6px; background: var(--surface); font-size: 15px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.featured { border-color: var(--full-line); border-top-color: var(--ink); background: var(--series-wash); }
.featured .ctext, .chart-try .ctext, .tool-try .ctext { flex: none; min-width: 0; }
.featured .flabel, .chart-try .flabel, .tool-try .flabel { display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.featured .flabel { color: var(--full-ink); }
.article .featured a.ftitle, .article .chart-try a.ftitle, .article .tool-try a.ftitle { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; border: 0; }
.article .featured a.ftitle:hover, .article .chart-try a.ftitle:hover, .article .tool-try a.ftitle:hover { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }
.featured .fdek, .chart-try .fdek { margin: 4px 0 0; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Nov 19: the tool box in an article ({{tool}}), in the Make your own chart card's frame: Try it with your own numbers */
.article .tool-try { display: block; margin: 26px 0; max-width: var(--measure); }
.tool-try .fdek { margin: 4px 0 0; color: var(--ink-2); }
.chart-try .fdek { -webkit-line-clamp: 3; }
.chart-try .fhow, .tool-try .fhow { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }   /* the fixed how-to line under the prompt (Nov 6) */
/* A featured series: the parts in reading order under the dek, as numbered pill buttons */
.featured .fparts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.featured .fparts li { margin: 0; }
.featured .fparts a { display: inline-flex; align-items: center; padding: 5px 12px 5px 7px; border: 1px solid var(--full-line); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--full-ink); text-decoration: none; }
.featured .fmore { margin: 10px 0 0; font-weight: 600; }
.featured .fmore a { display: inline-block; padding: 11px 0; margin: -11px 0; color: var(--full-ink); }   /* a long featured series ends "All N parts" (Nov 9); 44px tap height */
.featured .fparts a:hover { border-color: var(--full-ink); color: var(--ink); }
.featured .fparts .n { margin-right: 6px; border-color: var(--full-line); color: var(--full-ink); }
/* the pictures */
.featured .cthumb, .chart-try .cthumb { display: block; flex: none; margin-top: auto; padding-top: 12px; border: 0; }
.featured .thumb, .chart-try .thumb { display: block; width: 100%; height: 56px; overflow: visible; }
.thumb .main, .thumb .comp { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.thumb .main { stroke: var(--series); stroke-width: 2; }
.thumb .comp { stroke: var(--c1); stroke-width: 1.5; }
.thumb .zero { stroke: var(--grid); stroke-width: 1; }
.thumb .end, .thumb .end-halo { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.thumb .end { stroke: var(--series); stroke-width: 6; }
.thumb .end-halo { stroke: var(--surface); stroke-width: 9; }
@media (max-width: 760px) { .article > .lead { grid-template-columns: minmax(0, 1fr); gap: 10px; } .featured .fdek, .chart-try .fdek { -webkit-line-clamp: 3; } .featured .fparts a { padding: 8px 14px 8px 9px; } }
/* Series box under an article's dateline, and the next-part line before See also: a 2px ink rule at the left, no box */
.series-label { display: block; margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.article .series { margin: -14px 0 28px; padding: 8px 0 8px 14px; border-left: 2px solid var(--ink); font-size: 15px; line-height: 1.4; }
.article .series .series-name { margin: 0; }
.article .series .series-name a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.article .series .series-name a:hover { border-color: var(--ink); }
/* the parts as pill buttons, as on the Featured card; the part you are reading is the filled teal pill, not a link */
.article .series .series-parts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.article .series .series-parts li { margin: 0; padding: 0; }
.article .series .series-parts a, .article .series .series-parts li[aria-current] { display: inline-flex; align-items: center; padding: 5px 12px 5px 7px; border: 1px solid var(--full-line); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--full-ink); text-decoration: none; }
.article .series .series-parts a:hover { border-color: var(--full-ink); color: var(--ink); text-decoration: none; }
.article .series .series-parts .n { margin-right: 6px; border-color: var(--full-line); color: var(--full-ink); }
.article .series .series-parts li[aria-current] { background: var(--series); border-color: var(--series); color: var(--surface); }
.article .series .series-parts li[aria-current] .n { border-color: var(--surface); color: var(--surface); }
/* A long series (more than 8 parts, Nov 9) folds its parts behind a wayfinding toggle, so the article starts on the first screen */
.article .series details.series-all > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; color: var(--nav); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nav); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.article .series details.series-all > summary::-webkit-details-marker { display: none; }
.article .series details.series-all > summary:hover { color: var(--ink); text-decoration-color: var(--ink); }
.article .series details.series-all[open] .more, .article .series details.series-all:not([open]) .less { display: none; }
.article .series details.series-all .series-parts { margin-top: 4px; }
.n { display: inline-block; min-width: 1.5em; height: 1.5em; line-height: calc(1.5em - 2px); margin-right: 3px; border: 1px solid var(--hairline); border-radius: 50%; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.article .series-next, .article .more-tools { margin: 30px 0 0; padding: 8px 0 8px 14px; border-left: 2px solid var(--ink); font-size: 15px; line-height: 1.4; }
.article .series-next p, .article .more-tools p { margin: 0; }
.article .series-next a, .article .more-tools a { font-weight: 600; }
/* Nov 8: the one-line pointer to the weekly digest after an article's opening section; same left rule as series-next, quieter */
.article .digest-nudge { margin: 22px 0 26px; padding: 4px 0 4px 14px; border-left: 2px solid var(--hairline); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.article .digest-nudge a { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .article .series .series-parts a, .article .series .series-parts li[aria-current] { padding: 8px 14px 8px 9px; } }
/* phones: the type scale's smaller steps for the page title, dek and the featured title (40 → 28, 19 → 17, 22 → 19) */
@media (max-width: 760px) { .article h1 { font-size: 28px; } .article .dek { font-size: 17px; } }
.article .lede { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; }
.article .num-group h4 { margin: 24px 0 0; padding: 5px 10px; background: var(--hairline); border-radius: 3px; font-size: 13.5px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.07em; }   /* the almanac's At a glance band (Nov 5) */
.article .num-group h4 + .compact-list { margin-top: 0; }
.article .num-group h4 + .compact-list li:first-child { border-top: 0; }
.article .compact-list { list-style: none; margin: 6px 0 0; padding: 0; }
.article .compact-list li { margin: 0; padding: 8px 0; border-top: 1px solid var(--hairline); line-height: 1.4; }
.article .compact-list li:last-child { border-bottom: 1px solid var(--hairline); }
.article .compact-list a { font-weight: 600; text-decoration: none; }
.article .compact-list a:hover { text-decoration: underline; text-decoration-color: var(--muted); }
.article .compact-list .h { color: var(--ink-2); }
.article .compact-list .when { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.article details.earlier { margin: 4px 0 0; }
.article details.earlier summary { cursor: pointer; display: inline-block; list-style: none; margin: 4px 0 0; padding: 10px 0; font-size: 15px; color: var(--nav); text-decoration: underline; text-decoration-color: var(--nav); text-decoration-thickness: 2px; text-underline-offset: 3px; }   /* wayfinding: an ochre link, not a gray toggle (Nov 5) */
.article details.earlier summary::-webkit-details-marker { display: none; }
.article details.earlier summary:hover { color: var(--ink); text-decoration-color: var(--ink); }
.article details.earlier[open] summary .more, .article details.earlier:not([open]) summary .less { display: none; }
.article details.earlier .article-list { margin-top: 6px; }
.article h3#the-numbers, .article h3#the-ideas { margin-top: 30px; font-size: 19px; font-weight: 700; }
/* a series inside The ideas: its parts in its own order under the series title */
.article .num-group.series-group h4 { padding: 6px 10px 7px; font-size: 17px; line-height: 1.3; text-transform: none; letter-spacing: 0; }   /* a series: "SERIES" over its title, on the same band, the title as large as the pages under it */
.article .num-group.series-group h4 .series-label { margin: 0 0 1px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.article > .num-group.series-group { scroll-margin-top: 16px; }

footer.about { border-top: 1px solid var(--hairline); padding: 22px 0 44px; font-size: 13.5px; color: var(--ink-2); }
footer.about p { max-width: 48em; margin: 0 0 8px; }

/* The mark in the masthead lockup: two ink brackets around the teal dot. Same rules in index.html and chart.html. */
.mark path { fill: none; stroke: var(--ink); stroke-width: 6.5; }
.mark circle { fill: var(--series); }

/* The weekly digest signup (Nov 4): a card like Make your own chart before the footer of every article page and the index;
   a plain HTML form that posts to Buttondown (no script). Same rules in index.html. */
.signup-wrap { padding-top: 8px; padding-bottom: 28px; }
.signup { max-width: var(--measure); padding: 14px 18px 16px; border: 1px solid var(--frame); border-top: 2px solid var(--ink); border-radius: 6px; background: var(--surface); font-size: 15px; line-height: 1.45; }
.signup h2 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.signup .stext { margin: 0 0 12px; }
.signup label { display: block; margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.signup .srow { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input[type="email"] { flex: 1 1 10em; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 16px; }
.signup button { height: 44px; padding: 0 18px; border: 1px solid var(--full-ink); border-radius: 4px; background: var(--full-ink); color: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.signup button:hover { background: var(--ink); border-color: var(--ink); }
.signup .smeta { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.signup .smeta .sep { margin: 0 4px; color: var(--muted); }

/* The map on the Plain words index (built by tools/build_articles.py) */
.article > figure.map { max-width: 480px; margin: 22px 0 8px; }
.map svg { display: block; width: 100%; height: auto; font-family: inherit; }
.map .node rect { fill: var(--surface); stroke: var(--hairline); stroke-width: 1.5; }
.map .node text { fill: var(--ink); font-size: 15px; font-weight: 600; }
.map a.node:hover rect, .map a.node:focus rect { stroke: var(--focus); }
.map a.node:hover text { text-decoration: underline; text-decoration-color: var(--muted); }
.map .edge { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.map marker path { fill: var(--ink-2); }
.map .lag { fill: var(--muted); font-size: 12.5px; }
.map figcaption { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* Wrapping: no single word left alone on a line */
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, .dek { text-wrap: balance; }

/* Print: no navigation chrome, nothing split across pages, and the site's name at the end */
/* Rollback calculator (Nov 8): "Try it with your own bill" in How a Property Tax Rate Gets Set; markup and logic in assets/rollback.js, mounted on .rb-mount */
.rb { max-width: var(--measure); margin: 24px 0 28px; padding: 14px 18px 16px; border: 1px solid var(--frame); border-top: 2px solid var(--ink); border-radius: 6px; background: var(--surface); font-size: 15px; line-height: 1.45; }
.rb h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.rb .rb-intro { margin: 0 0 14px; }
.rb .rb-f { margin: 0 0 12px; }
.rb label, .rb legend { display: block; margin: 0 0 4px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.rb .rb-opt { color: var(--muted); }
.rb .rb-hint { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.rb .rb-in { display: inline-flex; align-items: center; gap: 6px; }
.rb input[type="text"] { width: 7.5em; height: 44px; padding: 0 10px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.rb input.rb-wide { width: 9em; }
.rb input[aria-invalid="true"] { border: 2px solid var(--ink); }
.rb select { height: 44px; padding: 0 8px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 15px; }
.rb input:focus-visible, .rb select:focus-visible, .rb summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rb fieldset { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.rb .rb-seg { display: inline-flex; margin: 0 0 8px; border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden; }
.rb .rb-seg button { min-height: 36px; padding: 4px 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.rb .rb-seg button + button { border-left: 1px solid var(--hairline); }
.rb .rb-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rb .rb-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
@media screen and (prefers-color-scheme: dark) { .rb .rb-seg button[aria-pressed="true"] { font-weight: 600; } }   /* Nov 8: dark mode keeps the ink fill, so the pressed state reads at 3:1 or better */
.rb .rb-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; }
.rb .rb-line { margin: 0 0 12px; padding: 10px 12px 12px; border: 1px solid var(--hairline); border-radius: 4px; }
.rb .rb-line legend { float: left; width: 100%; margin: 0 0 6px; font-weight: 600; color: var(--ink); font-size: 14px; }
.rb .rb-line legend + * { clear: both; }
.rb .rb-line .rb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.rb .rb-line .rb-row > .rb-nm { grid-column: 1 / -1; }
.rb .rb-line .rb-row .rb-in { display: flex; }
.rb .rb-line .rb-row input { width: 100%; min-width: 0; }
.rb .rb-line input.rb-name { max-width: 16em; }
@media (max-width: 520px) { .rb .rb-line .rb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rb .rb-line .rb-row > .rb-tx { grid-column: 1 / -1; } .rb .rb-line .rb-row > .rb-tx input { max-width: 10em; } }
.rb .rb-lres { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rb .rb-act { min-height: 40px; padding: 0 14px; border: 1px solid var(--frame); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.rb .rb-act:hover { border-color: var(--ink); }
.rb .rb-act:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rb .rb-rm { margin-top: 8px; min-height: 36px; font-size: 13.5px; }
.rb .rb-out { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.rb .rb-res { display: grid; grid-template-columns: 1fr auto; column-gap: 0; row-gap: 8px; align-items: baseline; margin: 0; }
.rb .rb-res dt { color: var(--ink); padding-right: 16px; }
.rb .rb-res dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb .rb-res .rb-sep { padding-top: 8px; border-top: 1px dashed var(--frame); }
.rb .rb-big { font-size: 20px; font-weight: 700; }
.rb .rb-chg { font-size: 13.5px; color: var(--ink-2); margin-left: 6px; }
.rb .rb-rate { margin: 12px 0 0; }
.rb .rb-err { margin: 10px 0 0; color: var(--ink); font-weight: 600; font-size: 14px; }
.rb .rb-warn { margin: 10px 0 0; color: var(--ink); font-size: 14px; }
.rb .rb-modes { margin-bottom: 14px; }
.rb .rb-chgline { margin: 6px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rb .rb-ov { margin: 8px 0 0; min-height: 36px; font-size: 13.5px; }
.rb .rb-ovbox { margin: 8px 0 0; }
.rb .rb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 12em)); gap: 10px 12px; }
.rb .rb-pair .rb-in { display: flex; }
.rb .rb-pair input[type="text"] { width: 100%; min-width: 0; }
.rb .rb-sub { display: block; margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.rb .rb-lead { margin: 0 0 10px; }
.rb details { margin: 12px 0 0; }
.rb summary { list-style: none; display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--nav); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-size: 14.5px; }
.rb summary::-webkit-details-marker { display: none; }
.rb summary::before { content: "\25B8"; display: inline-block; width: 1em; text-decoration: none; transition: transform .15s; }
.rb details[open] summary::before { transform: rotate(90deg); }
.rb details .rb-f { margin-top: 10px; }
.rb .rb-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
/* Nov 8 revision: example line, unknown-average table, difference note, rate line in More detail, the summary that stays in view */
.rb [hidden] { display: none !important; }   /* the hidden attribute wins over .rb-res's grid and other display rules */
.rb .rb-ex { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.rb .rb-pt { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.rb .rb-plain { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.rb #rb-avg-w { margin: 6px 0 2px; }
.rb input.rb-xwide { width: 11em; max-width: 100%; }
.rb .rb-ex strong { font-weight: 600; }
.rb .rb-out:focus { outline: none; }
.rb .rb-tcap { margin: 0 0 4px; }
.rb .rb-t { width: 100%; margin: 4px 0 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rb .rb-t th { padding: 0 0 4px 10px; border-bottom: 1px solid var(--hairline); text-align: right; font-size: 13.5px; font-weight: 400; color: var(--ink-2); }
.rb .rb-t td { padding: 7px 0 7px 10px; border-bottom: 1px solid var(--hairline); text-align: right; white-space: nowrap; vertical-align: top; }
.rb .rb-t th:first-child, .rb .rb-t td:first-child { padding-left: 0; text-align: left; }
.rb .rb-t td.rb-tbill { font-weight: 700; }
.rb .rb-t .rb-tsub { display: block; font-size: 12.5px; color: var(--ink-2); white-space: normal; }
.rb .rb-dnote { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.rb .rb-rl { margin: 6px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rb .rb-sumwrap { position: sticky; bottom: 0; height: 0; z-index: 3; }
.rb input, .rb select, .rb button, .rb summary { scroll-margin-bottom: 96px; }   /* focus scrolls fields clear of the summary */
.rb .rb-sum { position: absolute; bottom: 0; left: -18px; right: -18px; display: block; min-height: 44px; padding: 10px 18px; border-top: 1px solid var(--frame); background: var(--surface); box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.08); color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; text-decoration: none; transition: opacity .15s, visibility .15s; }
.rb .rb-sum.off { opacity: 0; visibility: hidden; }
.rb .rb-sum:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rb .rb-sumgo { margin-left: 4px; color: var(--nav); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rb .rb-sum { transition: none; } }
/* Nov 8: "Has It Kept Up With Prices?" (.ku, on the shared calculator box), the Tools list, and the Tools menu item (desktop only) */
.rb h2.ku-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.ku .ku-kinds { display: flex; width: 100%; }
.ku .ku-kinds button { flex: 1 1 0; min-height: 44px; white-space: normal; line-height: 1.2; }
.ku .ku-when { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.ku .ku-when legend { float: left; width: 100%; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.ku .ku-when > * { clear: both; }
.ku .ku-date { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 8em); gap: 10px 12px; margin-top: 10px; }
.ku .ku-date select { width: 100%; }
.ku #ku-ah { margin: 0 0 4px; }
.rb select[aria-invalid="true"] { border: 2px solid var(--ink); }
.ku .ku-copied input { width: 100%; height: 44px; margin-top: 4px; padding: 0 8px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; }
.ku .rb-out { margin-top: 14px; }
.ku .ku-lead { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ku .rb-res dt .ku-sub { display: block; margin-top: 1px; font-size: 13.5px; color: var(--ink-2); }
.ku .ku-share { margin: 16px 0 0; }
.ku .ku-copied { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
/* Nov 9: the Money Traps tools (.mt, assets/moneytools.js) reuse the calculator box and .ku's layout; the car loan table fits 320px phones */
.mt .ku-kinds { margin-top: 2px; }
.mt .rb-pair { margin-bottom: 0; }
.mt .rb-warn { margin: 0 0 10px; }
.mt .rb-pair { align-items: end; }   /* boxes line up when one label wraps and the other doesn't */
.mt .rb-err + .rb-dnote { margin-top: 10px; }
/* Nov 19: the savings tool pairs boxes that carry hints, so each box's label, input and hint share rows with its neighbor's (subgrid); a short label sits on its input */
.mt .mt-pair2 { grid-template-rows: auto auto auto; row-gap: 0; align-items: start; margin-bottom: 12px; }
.mt .mt-pair2 > .rb-f { display: grid; grid-row: span 3; grid-template-rows: subgrid; margin: 0; }
.mt .mt-pair2 > .rb-f > label { align-self: end; }
@media (max-width: 359px) { .mt .ku-kinds { display: grid; grid-template-columns: 1fr 1fr; } .mt .ku-kinds button + button { border-left: 0; } .mt .ku-kinds button:nth-child(even) { border-left: 1px solid var(--hairline); } .mt .ku-kinds button:nth-child(n+3) { border-top: 1px solid var(--hairline); } }   /* the four plan kinds as two rows on the smallest phones */
@media (max-width: 360px) { .mt .rb-t th, .mt .rb-t td { padding-left: 6px; } }
/* Nov 19: the savings tool's fill-in rates, the take-home tool's row of three and its hours box (assets/moneytools.js) */
.mt .mt-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 14px; font-size: 13.5px; color: var(--ink-2); }
.mt .mt-fill .rb-seg { margin: 0; flex-wrap: wrap; }
.mt .mt-fill .rb-seg button { min-height: 44px; white-space: normal; text-align: left; }
.mt .mt-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 12px; align-items: start; margin-bottom: 12px; }
.mt .mt-trio > .rb-f { display: grid; grid-row: span 3; grid-template-rows: subgrid; margin: 0; }
.mt .mt-trio > .rb-f > label { align-self: end; }
.mt .mt-trio .rb-in { display: flex; }
.mt .mt-trio input[type="text"] { width: 100%; min-width: 0; }
@media (max-width: 560px) { .mt .mt-trio { grid-template-columns: 1fr; grid-template-rows: none; } .mt .mt-trio > .rb-f { display: block; grid-row: auto; margin: 0 0 12px; } .mt .mt-trio input[type="text"] { width: 7.5em; } }
.mt .mt-conv { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); }
.mt .mt-conv .ku-h { margin-bottom: 10px; }
.mt .mt-convout { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.mt .mt-convout:empty { display: none; }
/* Nov 19: What's My Own Inflation Rate? (.mr, assets/myrate.js): a line per kind of spending, its year-ago box opened on request */
.mr .mr-kl { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.mr .mr-intro { margin: 6px 0 12px; font-size: 14px; }
.mr .mr-lines { border-top: 1px solid var(--hairline); }
.mr details .mr-lines { margin-top: 8px; }
.mr .mr-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.mr .mr-line > .rb-hint { grid-column: 1 / -1; }
.mr .mr-lab label { margin: 0; font-size: 15px; color: var(--ink); }
.mr .mr-amts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 6px 12px; }
.mr .mr-now, .mr .mr-ago, .mr .mr-nmf { display: flex; flex-direction: column; }
.mr .mr-small { display: block; margin: 0 0 2px; font-size: 12.5px; color: var(--ink-2); }
.mr .mr-nmf { margin-top: 6px; }
.mr input.mr-name { width: 12em; max-width: 100%; }
.mr .mr-use { min-height: 44px; padding: 0; border: 0; background: none; color: var(--nav); font: inherit; font-size: 13.5px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; text-align: right; }
.mr .mr-use:hover { color: var(--ink); }
.mr .mr-use:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) { .mr .mr-line { grid-template-columns: 1fr; } .mr .mr-amts { justify-content: flex-start; margin-top: 6px; } .mr .mr-use { text-align: left; } }
.rb .rb-t tr.mr-tot td { font-weight: 700; border-bottom: 0; }
.rb caption.rb-tcap { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.mr #mr-more > summary { align-items: baseline; }
.mr .mr-t td:first-child { white-space: normal; }
/* Nov 19: What Does It Cost to Own a Car? (.cc, assets/carcost.js): a column per car, side by side when there's room */
.cc .cc-cars { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 4px 0 0; }
@media (min-width: 700px) { .cc .cc-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc .cc-car { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--hairline); border-radius: 4px; }
.cc .cc-car legend { float: left; width: 100%; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cc .cc-car legend + * { clear: both; }
.cc .cc-car .rb-pair { grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); }   /* type and power side by side when they fit, else stacked */
.cc .cc-car .rb-pair select { width: 100%; }
.cc .cc-price { margin: 0 0 12px; padding: 10px 0 0; border-top: 1px dashed var(--frame); }
.cc input.cc-name { width: 12em; max-width: 100%; }
.cc .rb-rm { margin-top: 4px; }
.cc .cc-t td:first-child { white-space: normal; }
.article .tools-list { margin: 8px 0 0; padding: 0; list-style: none; }
.article .tools-list li { margin: 0; padding: 4px 0 14px; border-bottom: 1px solid var(--hairline); }
.article .tools-list li:first-child { border-top: 1px solid var(--hairline); }
.article .tools-list a { display: block; padding: 12px 0 4px; font-size: 19px; font-weight: 600; }
.article .tools-list .th { display: block; margin-top: 3px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 389px) { .site-menu a.m-wide { display: none; } }   /* Nov 8: Tools shows from 390px up, where five items fit on one row; under 390 four fit and five don't */
@media (max-width: 760px) { nav.site-menu { gap: 0 10px; } nav.site-menu a { font-size: 14px; } }   /* phones: 14px type, 10px gaps; nav. raises specificity over the phone .site-menu rules that come later */
@media (max-width: 340px) { nav.site-menu a { font-size: 13px; } }   /* 320–340px phones: 13px keeps four items on one row */
.rb .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .rb { padding: 12px 14px 14px; }
  .rb .rb-sum { left: -14px; right: -14px; padding: 8px 14px; }
  .rb .rb-big { font-size: 18px; }
  .rb .rb-seg { display: flex; width: 100%; }
  .rb .rb-seg button { flex: 1 1 0; min-height: 44px; white-space: normal; }
  .rb summary { min-height: 44px; }
  .rb .rb-act, .rb .rb-rm { min-height: 44px; }
}
@media (max-width: 400px) {
  .rb .rb-res { grid-template-columns: 1fr; row-gap: 2px; }
  .rb .rb-res dt { padding-right: 0; }
  .rb .rb-res dd { text-align: left; margin-bottom: 8px; }
  .rb .rb-res dd.rb-sep { padding-top: 0; border-top: 0; }
}
.rb-mount .rb-noscript { font-size: 14px; color: var(--ink-2); }

@media print {
  :root { --page: #fff; --surface: #fff; }
  body { background: #fff; }
  .site-menu, .secnav, .lead, .feed-link, .series-parts, .series-all, .series-next, .more-tools, .digest-nudge, .signup-wrap, .rb-mount, .rb-sumwrap, .ku-share { display: none !important; }
  .article .series { margin-top: 0; }
  .article figure.chart-embed, .article .figure, .article figure.illo, .article .table-scroll, .map { break-inside: avoid; }
  .article figure.chart-embed { width: 100%; }
  footer.about { padding-bottom: 0; }
  body::after { content: "economyincontext.org"; display: block; padding: 12px 16px 0; font-size: 12.5px; color: #555; }
}
/* New / Revised labels (Nov 8): the Featured card's teal wash; Revised is outlined only. Shown for 14 days (build_articles.py fresh_label). */
.fresh { display: inline-block; margin-left: 2px; padding: 0 6px; border: 1px solid var(--full-line); border-radius: 4px; background: var(--series-wash); color: var(--full-ink); font-size: 11px; font-weight: 700; line-height: 17px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.15em; white-space: nowrap; text-decoration: none; }
.fresh.rev { background: none; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.article-list .t + .fresh { vertical-align: 0.35em; }
/* Nov 19: on a tool page's title, at the chart pages' title size; on a Tools page entry, centered on its 19px title */
.article h1 .fresh { padding: 0 7px; font-size: 13px; line-height: 22px; vertical-align: 0.3em; }
.article .tools-list a .fresh { vertical-align: 0.2em; }
.article .tools-list a { text-decoration: none; }
.article .tools-list .t { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.article .tools-list a:hover .t { text-decoration-color: var(--ink); }
/* Spanish pages (Nov 9 pilot): the translation note at the foot of a translated page */
.article .es-note { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2); }

/* Sharing (Nov 11): assets/share.js and tools/build_articles.py (share_top, share_end, section_links). The top control is a
   text button at the end of the dateline (its 44px target set by negative margins, so the line doesn't grow); the end row
   uses the Action button; section links show on computers only, on hover or keyboard focus. Messages are 13.5px/600 ink and
   clear after 6 s; a hidden live region (#share-live) speaks them, and the visible ones are aria-hidden. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.article .dateline .share-top { white-space: nowrap; }
.article .dateline .share-top[hidden] { display: none; }
.article .dateline .tbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; margin: -12px 0; padding: 0 2px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; cursor: pointer; vertical-align: baseline; }
.article .dateline .tbtn:hover { text-decoration-color: var(--ink); }
.article .dateline .tbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.article .dateline .done { margin-left: 6px; font-weight: 600; color: var(--ink); white-space: normal; }
.share-end .act { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--frame); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.share-end .act:hover { border-color: var(--ink); text-decoration: none; }
.share-end .act:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.share-end .act[hidden], .share-end[hidden] { display: none; }
.article .share-end { margin: 36px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); }
.article .share-end .share-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.article .share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.article .share-status { margin: 8px 0 0; min-height: 1.45em; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.article .by-hand { margin: 10px 0 0; max-width: 100%; }
.article .by-hand label { display: block; margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.article .by-hand input { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 16px; }
.article h2 .h-end { white-space: nowrap; }
.article h2 .h-link { display: none; }
.article h2 .h-link svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.article h2 .h-done { margin-left: 4px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .article h2 .h-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px 0 -6px 6px; vertical-align: middle; border-radius: 4px; color: var(--muted); text-decoration: none; opacity: 0; }
  .article h2 .h-link svg { width: 17px; height: 17px; }
  .article h2:hover .h-link, .article h2 .h-link:focus-visible, .article h2 .h-link.on { opacity: 1; }
  .article h2 .h-link:hover { color: var(--ink); }
  .article h2 .h-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
}
@media (max-width: 760px) { .article .share-btns .act { flex: 1 1 calc(50% - 4px); } }
@media print { .share-top, .share-end, .h-link, .h-done, .by-hand { display: none !important; } }
/* Search in the masthead (Nov 14). It comes twice, so the reading and Tab order always match what shows: .m-search,
   the menu's last item, on desktop; .site-search beside the lockup on phones. One shows at a time. */
.site-search { display: none; align-items: center; min-height: 44px; color: var(--nav); font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--nav); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.site-search:hover { color: var(--ink); text-decoration-color: var(--ink); }
.site-search[aria-current] { color: var(--ink); }
.site-search:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
  .site-menu a.m-search { display: none; }
  .site-search { display: inline-flex; order: 1; margin-left: auto; font-size: 14px; }
  .masthead .title-row > .site-menu { order: 2; }
}
@media print { .site-search, .site-menu a.m-search { display: none; } }

/* Site search (Nov 14): the search page (/search/), the not-found page (/404.html) and the box on the articles index,
   all drawn by assets/search.js against the Pagefind index. Matched words are bold ink, never a highlight color. */
.sform { max-width: var(--measure); margin: 18px 0 0; }
.sform label { display: block; margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.sform .srow { display: flex; gap: 8px; }
.sform input[type="search"] { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--muted); border-radius: 4px; background: var(--page); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.sform input[type="search"]::-webkit-search-decoration, .sform input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }   /* the browser's blue x; Escape clears */
.sform input:focus-visible, .sform button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sform button { flex: none; height: 44px; padding: 0 18px; border: 1px solid var(--full-ink); border-radius: 4px; background: var(--full-ink); color: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.sform button:hover { background: var(--ink); border-color: var(--ink); }
.sform-ix { margin-top: 16px; margin-bottom: 24px; }
.sform-ix button { background: var(--surface); color: var(--ink); border-color: var(--muted); }   /* Action style on the articles index, so its teal stays with the Featured card; the edge is the box's gray (4.5:1) */
.sform-ix button:hover { background: var(--surface); border-color: var(--ink); }
.search-page .s-privacy { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: var(--measure); }
.search-page #s-out { max-width: var(--measure); margin-top: 22px; min-height: 12em; }
.search-page.notfound #s-out { min-height: 0; }
.s-msg { color: var(--ink-2); font-size: 16px; }
.s-try { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.s-tryi { white-space: nowrap; }   /* each link carries the dot before it, so a line breaks before a dot, never after one */
.s-try-l { font-weight: 600; color: var(--ink); margin-right: 4px; }
.s-try a { display: inline-block; padding: 11px 0; color: var(--nav); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nav); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s-try .sep { color: var(--muted); }
.article h2.s-count, h2.s-count { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink); }
.s-msg + .s-try, h2.s-count + .s-msg { margin-top: 8px; }
.article ol.s-results, ol.s-results { list-style: none; margin: 10px 0 0; padding: 0; }
ol.s-results > li { padding: 14px 0 16px; border-top: 1px solid var(--hairline); display: grid; gap: 3px; margin: 0; }
ol.s-results > li:last-child { border-bottom: 1px solid var(--hairline); }
.search-page ol.s-results p { margin: 0; }
.s-kind { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.article .s-title, .s-title { position: relative; z-index: 1; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; justify-self: start; padding: 10px 0; margin: -10px 0; }   /* 44px tap height on a one-line title, above the excerpt */
.s-title:hover { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.s-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.s-ex { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.s-ex mark { background: none; color: var(--ink); font-weight: 700; }
.s-read { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.search-page ol.s-results p.s-sec { margin: -6px 0 -8px; font-size: 14px; }
.s-sec a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.s-sec a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.search-page .s-more { margin-top: 18px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--frame); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.search-page .s-more:hover { border-color: var(--ink); }
.search-page .s-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nf-links { margin-top: 26px; font-size: 16px; color: var(--ink-2); line-height: 2; }
@media (max-width: 760px) {
  .s-title { font-size: 18px; }
  .sform button { padding: 0 14px; }
}
@media print { .sform, .s-privacy, .s-more { display: none; } }
