
:root {
  color-scheme: light only;
  --paper: #f4efe6;
  --paper-2: #e7efe8;
  --ink: #1a1814;
  --ink-2: #4f4a43;
  --ink-3: #6a645b;
  --pine: #215445;
  --pine-dark: #163b30;
  --rule: #d9d3c8;
  --rule-strong: #1a1814;
  --band: #14261f;
  --on-band: #f4efe6;
  --on-band-2: #d7c4a4;
  --font-display: "Newsreader", "Times New Roman", Times, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-fallback-display: "Times New Roman", Times, serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --focus: #163b30;
}

@font-face {
  font-family: "Source Sans 3";
  size-adjust: 100%;
  src: local("Source Sans 3");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--pine-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.banner {
  background: var(--band);
  color: var(--on-band);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px var(--gutter);
}
.banner a { color: var(--on-band-2); }


.masthead {
  padding: 28px 0 0;
  border-bottom: 3px solid var(--rule-strong);
}
.masthead-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 18px;
}
.kicker-line {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em {
  font-style: italic;
  font-weight: 400;
}
.tagline {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.mast-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 4px 0 0;
}
.mast-meta strong { color: var(--ink); font-weight: 600; }

.nav {
  border-top: 1px solid var(--rule);
  margin-top: 2px;
}
.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pine-dark);
  box-shadow: inset 0 -2px 0 var(--pine);
}
.nav-fr { font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; }


.cover {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 0 48px;
  padding: 36px 0 8px;
  border-bottom: 1px solid var(--rule);
}
.cover-lead .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 10px;
}
.cover-lead h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.cover-lead h1 a { color: inherit; text-decoration: none; }
.cover-lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.deck {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 40ch;
}
.cover-meta { font-size: 14px; color: var(--ink-2); margin: 0; }
.cover-meta a { font-weight: 600; }

.dates-rail {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  align-self: start;
}
.dates-rail h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.next-pay {
  background: var(--paper-2);
  padding: 16px 18px;
  margin: 0 0 18px;
}
.next-pay .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 6px;
}
.next-pay .when {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.next-pay p { margin: 0; font-size: 15px; color: var(--ink-2); }

.mini-dates { list-style: none; margin: 0; padding: 0; }
.mini-dates li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.mini-dates time { font-variant-numeric: tabular-nums; font-weight: 600; }
.dates-rail .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }


.section { padding: 48px 0; border-bottom: 1px solid var(--rule); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section .lede { margin: 0 0 24px; color: var(--ink-2); max-width: 60ch; }

.story-grid,
.tool-grid,
.prov-grid {
  display: grid;
  gap: 20px 28px;
}
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prov-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.story {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  text-decoration: none;
  color: inherit;
}
.story .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); }
.story h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.story p { margin: 0; color: var(--ink-2); font-size: 16px; }

.tool-card {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.tool-card p { margin: 0; color: var(--ink-2); font-size: 16px; }

.prov-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.prov-grid a:hover { color: var(--pine-dark); }

.trust-band {
  background: var(--band);
  color: var(--on-band);
  padding: 48px 0;
}
.trust-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.trust-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--on-band);
}
.trust-band p { margin: 0; color: var(--on-band-2); max-width: 54ch; }
.trust-band a { color: var(--on-band); }


.article-shell {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 0 40px;
  padding: 28px 0 64px;
  align-items: start;
}
.article-shell .crumb,
.article-shell header,
.article-shell .article-body,
.article-shell .author,
.article-shell .sources,
.article-shell .related {
  grid-column: 1;
}
.rail {
  grid-column: 2;
  grid-row: 2 / span 5;
  align-self: start;
  position: sticky;
  top: 16px;
}
.crumb { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumb li:not(:last-child)::after { content: " / "; color: var(--ink-3); }
.crumb a { color: inherit; }

.article-header .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 10px;
}
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.article-header .deck {
  font-size: 22px;
  margin-bottom: 16px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 28px;
}
.byline time, .byline .updated { font-variant-numeric: tabular-nums; }

.direct-answer {
  background: var(--paper-2);
  padding: 20px 22px;
  margin: 0 0 28px;
  border-left: 3px solid var(--pine);
}
.direct-answer p { margin: 0; font-size: 18px; }
.direct-answer p + p { margin-top: 10px; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 16px; padding-left: 1.2em; }

.dates-table { margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.dates-table caption {
  text-align: left;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 15px;
}
.dates-table th,
.dates-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.dates-table thead th {
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dates-table tbody tr:last-child td { font-weight: 600; }

.author, .sources, .related {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
}
.author h2, .sources h2, .related h2, .rail h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}
.author p, .sources li, .related a, .rail p, .rail a {
  font-size: 15px;
}
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li { margin: 0 0 8px; }
.related ul, .rail ul { list-style: none; margin: 0; padding: 0; }
.related li, .rail li { padding: 8px 0; border-top: 1px solid var(--rule); }
.rail { font-size: 15px; }
.rail .toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.rail .toc a:hover { color: var(--pine-dark); }


.calc-panel {
  background: var(--paper-2);
  padding: 24px;
  margin: 0 0 32px;
}
.calc-panel h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
}
.calc-panel .hint { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.calc-fields {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.calc-fields label { font-weight: 600; font-size: 15px; }
.calc-fields input {
  width: 100%;
  max-width: 16rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button,
.calc-panel button[type="submit"] {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.presets button[aria-pressed="true"],
.calc-panel button[type="submit"] {
  background: var(--ink);
  color: var(--paper);
}
.calc-results { display: grid; gap: 18px; margin-top: 20px; }
.calc-row-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc-row h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}
.calc-flag { margin: 0; font-size: 13px; color: var(--pine-dark); font-weight: 600; }
.calc-bar {
  height: 8px;
  background: color-mix(in srgb, var(--pine) 18%, var(--paper));
  margin: 8px 0 10px;
}
.calc-bar span { display: block; height: 100%; background: var(--pine); }
.calc-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.calc-figures dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.calc-figures dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.breakeven { font-size: 15px; color: var(--ink-2); margin: 16px 0 0; }

footer.site {
  background: var(--band);
  color: var(--on-band);
  padding: 40px 0 32px;
  font-size: 14px;
}
footer.site a { color: var(--on-band); }
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
footer.site h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}
footer.site p, footer.site ul { margin: 0; padding: 0; list-style: none; }
footer.site li { margin: 0 0 6px; }
.colophon {
  border-top: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent);
  padding-top: 16px;
  color: var(--on-band-2);
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; gap: 28px; }
  .dates-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .trust-band .wrap,
  footer.site .cols { grid-template-columns: 1fr; }
  .article-shell {
    grid-template-columns: 1fr;
    width: min(var(--max), 100% - 2 * var(--gutter));
    margin-inline: auto;
  }
  .article-shell .crumb,
  .article-shell header,
  .article-shell .article-body,
  .article-shell .author,
  .article-shell .sources,
  .article-shell .related,
  .rail { grid-column: 1; }
  .rail { position: static; grid-row: auto; padding: 0 0 20px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead { padding-top: 20px; }
  .nav a { padding: 0 10px; font-size: 13px; }
  .story-grid, .tool-grid { grid-template-columns: 1fr; }
  .calc-panel { padding: 16px; }
  .calc-figures dd { font-size: 22px; }
}
