/* Methodology (HOD-588). Bragi v1.2: Fraunces and Inter, self-hosted (font-src 'self').
   Light is ivory paper and ink text, accent #7a5a12. Dark is navy and ivory, accent #d8b25c.
   No inline style. MathML scripts stay at the first-level size so nothing renders under 12px. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("inter-variable.woff2") format("woff2"); }
html.method {
  --paper: #f3ecd8; --ink2: #04080f; --gold: #7a5a12; --surface: #fffdf8; --line: #c9b896; --muted: #3a3224;
  color-scheme: light;
}
html.method[data-theme="dark"] {
  --paper: #0c2240; --ink2: #f3ecd8; --gold: #d8b25c; --surface: #132d52; --line: #2a4466; --muted: #c9c1ab;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html.method:not([data-theme="light"]) {
    --paper: #0c2240; --ink2: #f3ecd8; --gold: #d8b25c; --surface: #132d52; --line: #2a4466; --muted: #c9c1ab;
    color-scheme: dark;
  }
}
html.method body { background: var(--paper); color: var(--ink2); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 1.0625rem; }
html.method .skip { min-width: 44px; min-height: 44px; }
html.method main { max-width: 74rem; }
html.method main h1, html.method main h2, html.method main h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; color: var(--ink2); }
html.method main h1 { font-size: 2.3rem; }
html.method main h2 { font-size: 1.6rem; }
html.method main h3 { font-size: 1.2rem; }
html.method main a { color: var(--ink2); }
html.method code { font-size: 1rem; }
html.method .masthead { flex-wrap: wrap; }
html.method .mast-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem; }
html.method .theme-link, html.method .menu-btn, html.method .back a, html.method .earlier {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 .85rem; font-weight: 650; text-decoration: none;
}
html.method .theme-link { color: var(--ivory); border: 1px solid var(--rule); border-radius: 999px; }
html.method .theme-link[aria-current="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
html.method .menu-btn { display: none; position: relative; color: var(--ivory); border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
html.method .nav-toggle { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
html.method .version-box { margin: 0 0 1.5rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
html.method .version-box ul { margin: .2rem 0 0; padding-left: 1.2rem; }
html.method .method-grid { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
html.method .method-main, html.method .eq, html.method .toc { min-width: 0; max-width: 100%; }
html.method .toc { position: sticky; top: 1rem; }
html.method .toc ol { list-style: none; margin: 0; padding: 0; }
html.method .toc a { display: flex; align-items: center; min-height: 44px; padding: .15rem .4rem .15rem .7rem; color: var(--ink2); text-decoration: none; border-left: 3px solid transparent; }
html.method:not(:has(.method-sec:target)) .toc a.toc-start,
html.method:has(#historical-simulations:target) .toc a[href="#historical-simulations"],
html.method:has(#history-sets-the-swings-the-assumptions-set-the-growth:target) .toc a[href="#history-sets-the-swings-the-assumptions-set-the-growth"],
html.method:has(#two-views-side-by-side:target) .toc a[href="#two-views-side-by-side"],
html.method:has(#fast-growth-does-not-last-forever:target) .toc a[href="#fast-growth-does-not-last-forever"],
html.method:has(#volatility-starts-where-it-is-today-and-calms-with-time:target) .toc a[href="#volatility-starts-where-it-is-today-and-calms-with-time"],
html.method:has(#what-money-lasts-in-n-of-100-futures-means:target) .toc a[href="#what-money-lasts-in-n-of-100-futures-means"],
html.method:has(#rebalancing-and-why-big-swings-cut-both-ways:target) .toc a[href="#rebalancing-and-why-big-swings-cut-both-ways"],
html.method:has(#taxes:target) .toc a[href="#taxes"],
html.method:has(#spending-and-income:target) .toc a[href="#spending-and-income"],
html.method:has(#what-the-plan-is-not:target) .toc a[href="#what-the-plan-is-not"],
html.method:has(#technical-notes:target) .toc a[href="#technical-notes"] { font-weight: 700; border-left-color: var(--gold); }
html.method .note { margin: .6rem 0; border-top: 1px solid var(--line); }
html.method summary, html.method details > summary, html.method details > summary:hover {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; cursor: pointer;
  color: var(--ink2); background: transparent; border-color: var(--gold); }
html.method details > summary::before { content: none; }
html.method details[open] > summary { background: var(--gold); color: var(--paper); border-color: var(--gold); }
html.method summary h3, html.method details[open] > summary h3 { margin: 0; color: inherit; }
html.method .hint { flex: none; font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 650; color: var(--gold); }
html.method details[open] .hint { color: inherit; }
html.method .note .when-open { display: none; }
html.method .note[open] .when-closed { display: none; }
html.method .note[open] .when-open { display: inline; }
html.method .eq { overflow-x: auto; margin: 1rem 0; padding: .55rem .4rem; border-left: 3px solid var(--gold); }
html.method .eq:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
html.method math, html.method math * { font-size: 1.1rem !important; }
html.method .eq math, html.method .eq math * { font-size: 1.25rem !important; }
html.method .dots { display: grid; grid-template-columns: repeat(10, 1.15rem); gap: .4rem; width: max-content; max-width: 100%; margin: 1rem 0; }
html.method .dots > span { display: contents; }   /* the dots sit in an aria-hidden span: let them be the grid's items */
html.method .dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--gold); display: block; }
html.method .dot.empty { background: transparent; box-shadow: inset 0 0 0 2px var(--ink2); }
html.method footer { color: var(--muted); background: var(--paper); border-top-color: var(--line); font-size: 1rem; }
html.method footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); }
html.method .back { margin-top: 1.5rem; }
@media (max-width: 48rem) {
  html.method .method-grid { grid-template-columns: minmax(0, 1fr); }
  html.method .toc { position: static; }
  html.method .menu-btn { display: inline-flex; }
  html.method .tabs { display: none; }
  html.method header:has(.nav-toggle:checked) .tabs { display: block; }
  html.method main { padding: 1rem; }
}
@media (max-width: 30rem) {
  html.method header { padding-left: 1rem; padding-right: 1rem; }
  html.method .wordmark { font-size: 1rem; letter-spacing: .04em; }
}
@media (min-width: 48.0625rem) {
  html.method .tabs { display: block; }
}
