:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #14243d;
  --muted: #536176;
  --line: #dce3ed;
  --accent: #235fcb;
  --accent-hover: #164da9;
  --pale: #edf3fc;
  --surface: #f7f9fc;
  --button: #235fcb;
  --button-text: #ffffff;
  --navy: #14243d;
  --error: #ab3535;
  --sans: 'Noto Sans TC', 'PingFang TC', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111c2d; --ink: #edf3fc; --muted: #b9c7dc; --line: #344359;
    --accent: #96bcff; --accent-hover: #b7d1ff; --pale: #20334f; --surface: #18273c;
    --button: #96bcff; --button-text: #111c2d; --navy: #0b1525; --error: #ffadad;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111c2d; --ink: #edf3fc; --muted: #b9c7dc; --line: #344359;
  --accent: #96bcff; --accent-hover: #b7d1ff; --pale: #20334f; --surface: #18273c;
  --button: #96bcff; --button-text: #111c2d; --navy: #0b1525; --error: #ffadad;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); }
img { display: block; width: 100%; height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.45; letter-spacing: 0; overflow-wrap: break-word; text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: #dce9ff; color: #14243d; }
:target { scroll-margin-top: 88px; }
.wrapper { width: calc(100% - 40px); max-width: 1160px; margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 12px 20px; z-index: 100; background: var(--ink); color: var(--paper); }
.eyebrow { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 80px; padding-block: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #235fcb; color: #fff; font-family: var(--sans); font-size: 22px; line-height: 1; border-radius: 6px; }
.brand-period { color: var(--accent); margin-left: -7px; }
.brand-caption { display: none; color: var(--muted); font-size: 15px; line-height: 1.6; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; background: transparent; border-radius: 6px; }
.icon-button:hover { color: var(--accent); background: var(--pale); }
.search-button, .saved-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 15px; white-space: nowrap; }
.search-button svg, .saved-link svg { width: 18px; height: 18px; }
.search-button:hover, .saved-link:hover { color: var(--accent); background: var(--pale); }
.site-navigation { position: sticky; top: 0; z-index: 20; background: var(--paper); border-block: 1px solid var(--line); }
#main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-block: 7px; }
#main-nav > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 5px; border-radius: 6px; font-size: 16px; line-height: 1.5; text-align: center; font-weight: 600; }
#main-nav > a:hover { background: var(--pale); }
#main-nav > a[aria-current] { color: var(--button-text); background: var(--button); }
.topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding-block: 5px; border-bottom: 1px solid var(--line); font-size: 15px; }
.topic-nav > a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; }
.topic-nav > a[aria-current] { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.topic-label { color: var(--muted); font-size: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; line-height: 1.6; font-weight: 600; text-align: center; }
.button.dark { background: var(--button); border-color: var(--button); color: var(--button-text); }
.button.dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--button-text); }
.button.light { background: #fff; border-color: #fff; color: #14243d; }
.button.light:hover { background: #e5efff; border-color: #e5efff; color: #164da9; }
.button.wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent); font-size: 16px; line-height: 1.6; font-weight: 600; }
.text-link svg { width: 18px; }
.opening { padding-block: 28px 24px; }
.section-kicker { color: var(--accent); margin-bottom: 8px; }
.opening h1 span { display: inline-block; }
.opening h1 { font-size: 29px; line-height: 1.4; text-wrap: balance; }
.opening p { margin-top: 10px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.featured-layout { display: grid; gap: 28px; align-items: start; }
.lead-story, .reader-sidebar, .lead-copy { min-width: 0; }
.lead-visual { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--pale); }
.lead-visual img { width: 100%; height: 100%; object-fit: cover; }
.lead-copy { padding-top: 14px; }
.lead-copy h2 { font-size: 25px; line-height: 1.5; }
.lead-copy > p { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.story-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-height: 44px; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.meta-dot { display: inline-block; padding-inline: 7px; }
.category-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; margin-bottom: 4px; color: var(--accent); font-size: 15px; }
.reader-sidebar { display: grid; gap: 24px; }
.tool-card { padding: 24px; background: var(--navy); color: #fff; border-radius: 8px; }
.tool-card .tool-symbol { float: right; margin: 0 0 12px 12px; }
.tool-card .eyebrow { color: #b5d2ff; }
.tool-card h2 { margin-top: 8px; font-size: 25px; line-height: 1.5; }
.tool-card > p { margin-top: 12px; font-size: 18px; line-height: 1.75; color: #d5e0f1; }
.tool-card .button { width: 100%; margin-top: 18px; }
.tool-card > .tool-note { font-size: 15px; line-height: 1.7; color: #c1cee2; }
.topic-directory h2 { font-size: 19px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.topic-directory > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; line-height: 1.5; }
.topic-directory > a > span { min-width: 0; }
.topic-directory small { display: block; margin-top: 3px; font-size: 15px; font-weight: 400; color: var(--muted); }
.topic-directory > a > svg { color: var(--accent); width: 18px; }
.home-sections { display: grid; gap: 40px; margin-top: 40px; }
.home-sections > .content-section { margin-top: 0; }
.content-section { min-width: 0; margin-top: 40px; }
.section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.section-heading h2, .section-heading.large h2 { font-size: 25px; line-height: 1.5; }
.section-heading > .eyebrow { color: var(--muted); }
.section-intro { max-width: 44em; margin: 14px 0 4px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.story-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 18px; min-width: 0; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: start; }
.story-visual { display: block; grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--pale); margin-top: 7px; }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: contents; }
.story-copy > .category-link { grid-column: 2; grid-row: 1; margin-top: -6px; }
.story-copy h3 { grid-column: 2; grid-row: 2; font-size: 22px; line-height: 1.55; }
.story-copy > p { grid-column: 1 / -1; color: var(--muted); font-size: 18px; line-height: 1.8; margin-top: 14px; }
.story-copy .story-meta { grid-column: 1 / -1; margin-top: 10px; }
.story-card:not(:has(.story-visual)) { display: block; }
.story-card:not(:has(.story-visual)) .story-copy { display: block; }
.save-button[aria-pressed="true"] { color: var(--accent); }
.save-button[aria-pressed="true"] svg { fill: var(--pale); stroke-width: 2; }
.small-period { color: var(--accent); }
.collection-header { padding-block: 28px 24px; }
.collection-header > .eyebrow { color: var(--accent); margin-bottom: 10px; }
.collection-header h1 { font-size: 30px; line-height: 1.45; }
.collection-header p { color: var(--muted); font-size: 20px; line-height: 1.85; margin-top: 14px; max-width: 680px; }
.collection { min-height: 330px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px 4px; }
.filter-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 16px; }
.filter-button:hover { color: var(--accent); border-color: var(--accent); }
.filter-button.selected { background: var(--pale); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.filter-button span { font-size: 15px; }
.saved-note { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.empty-state { text-align: center; padding-block: 40px 70px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; background: var(--pale); color: var(--accent); margin: 0 auto 20px; border-radius: 8px; }
.empty-state h2 { font-size: 28px; }
.empty-state p { font-size: 18px; color: var(--muted); margin: 15px auto 25px; max-width: 440px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 12px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.article-header { padding-top: 24px; max-width: 920px; }
.article-header > .eyebrow { color: var(--accent); margin-bottom: 12px; }
.article-header h1 { font-size: 30px; line-height: 1.5; }
.article-deck { margin-top: 18px; font-size: 20px; line-height: 1.85; color: var(--muted); max-width: 680px; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 12px; }
.author-monogram { display: none; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; background: var(--pale); color: var(--accent); font-size: 20px; font-weight: 700; }
.article-byline > div > a { font-size: 15px; font-weight: 600; }
.article-byline > div > span { display: block; font-size: 15px; color: var(--muted); }
.article-actions { display: flex; margin-left: auto; }
.article-cover { max-width: 920px; margin-top: 24px; }
.article-cover img { max-height: 440px; object-fit: cover; border-radius: 8px; }
.article-cover figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.review-note { color: var(--muted); font-size: 15px; line-height: 1.7; }
.review-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-layout { display: grid; gap: 24px; max-width: 920px; margin-top: 16px; }
.article-toc { min-width: 0; border-block: 1px solid var(--line); }
.article-toc summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.5; }
.article-toc summary::marker { color: var(--accent); }
.article-toc > .eyebrow { padding-block: 12px; }
.article-toc nav { display: flex; flex-direction: column; margin-bottom: 12px; }
.article-toc nav a { display: flex; align-items: center; font-size: 16px; min-height: 44px; line-height: 1.7; padding-block: 6px; }
.article-toc .text-link { font-size: 15px; margin-bottom: 10px; }
.article-body { min-width: 0; max-width: 680px; width: 100%; font-size: 20px; }
.takeaway { background: var(--pale); border-left: 3px solid var(--accent); padding: 20px; margin-bottom: 28px; }
.takeaway .eyebrow { color: var(--accent); }
.takeaway p { font-size: 20px; line-height: 1.85; margin-top: 10px; }
.article-body section h2 { font-size: 26px; line-height: 1.55; margin-top: 36px; margin-bottom: 18px; }
.article-body section p { font-size: 20px; line-height: 1.85; margin-block: 20px; }
.article-body li { line-height: 1.85; margin-bottom: 12px; }
.article-body .sources { margin-top: 40px; border-top: 1px solid var(--line); }
.article-body .sources h2 { font-size: 25px; margin-top: 26px; }
.article-body .sources p { color: var(--muted); }
.sources ol { padding-left: 24px; }
.sources li { padding-left: 4px; overflow-wrap: anywhere; }
.sources a { text-decoration: underline; text-underline-offset: 4px; }
.sources a svg { width: 14px; height: 14px; }
.article-disclosure { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.article-disclosure p { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.9; }
.related-section { margin-top: 48px; }
.related-section .text-link { white-space: nowrap; }
.table-wrap { max-width: 100%; overflow-x: auto; margin-block: 28px; border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 20px; line-height: 1.85; text-align: left; }
.table-wrap caption { padding: 16px 20px; text-align: left; font-weight: 600; color: var(--accent); background: var(--pale); }
.table-wrap th, .table-wrap td { min-width: 140px; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 600; background: var(--pale); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.article-links { margin-block: 28px; padding: 20px 24px; background: var(--pale); }
.article-links a { display: block; width: fit-content; min-height: 44px; padding-block: 7px; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; line-height: 1.8; }
.section-sources, .article-body section .section-sources { color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-sources a { text-decoration: underline; text-underline-offset: 4px; }
.text-page { max-width: 680px; padding-block: 28px; }
.text-page > .eyebrow { color: var(--accent); margin-bottom: 18px; }
.text-page h1 { font-size: 30px; line-height: 1.45; margin-bottom: 24px; }
.text-page .intro { font-size: 24px; color: var(--ink); font-weight: 500; }
.text-page p { margin-block: 20px; line-height: 1.85; font-size: 20px; color: var(--muted); }
.text-page h2 { font-size: 26px; margin-top: 32px; line-height: 1.55; }
.text-page p a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.retirement-feature { margin-block: 20px; background: var(--pale); border: 1px solid var(--line); border-radius: 8px; }
.retirement-copy { min-width: 0; padding: 24px; }
.retirement-copy > .eyebrow { color: var(--accent); }
.retirement-copy .tool-symbol { background: var(--paper); color: var(--accent); }
.retirement-copy h3 { margin-top: 8px; font-size: 26px; }
.retirement-copy > p { margin-top: 12px; font-size: 20px; line-height: 1.85; color: var(--muted); max-width: 680px; }
.retirement-copy .button { margin-top: 18px; }
.retirement-copy > .tool-note { font-size: 15px; }
.planning-links { display: grid; margin-top: 24px; border-block: 1px solid var(--line); }
.planning-links > a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 8px 12px; align-content: start; padding-block: 20px; }
.planning-links > a + a { border-top: 1px solid var(--line); }
.planning-links .story-number { grid-column: 1; grid-row: 1 / span 2; padding-top: 6px; font-size: 17px; font-weight: 600; color: var(--accent); }
.planning-links h3 { grid-column: 2; grid-row: 1; font-size: 22px; line-height: 1.6; }
.planning-links p { grid-column: 2; grid-row: 2; font-size: 18px; line-height: 1.8; color: var(--muted); }
.planning-links > a > svg { grid-column: 3; grid-row: 1; align-self: center; color: var(--accent); }
.planning-links > a:hover h3 { text-decoration: underline; text-underline-offset: 6px; }
.calculator-layout { display: grid; gap: 28px; margin-block: 12px 48px; align-items: start; }
.calculator-form { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.calculator-form h2, .calculator-results h2 { font-size: 26px; line-height: 1.55; margin-bottom: 22px; }
.calculator-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calculator-form > p { margin-bottom: 24px; color: var(--muted); font-size: 18px; }
.form-grid { display: grid; gap: 24px; margin-bottom: 28px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; line-height: 1.8; }
.field input, .field select { display: block; width: 100%; min-height: 54px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1.5; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.calculator-results { min-width: 0; padding: 24px; background: var(--pale); border-top: 3px solid var(--accent); border-radius: 5px; }
.calculator-results > p { color: var(--muted); margin-block: 18px; line-height: 1.85; font-size: 18px; }
.calculator-results > .result-value { color: var(--accent); font-size: clamp(28px, 7vw, 40px); line-height: 1.5; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculator-results > .result-interpretation { margin-top: 0; color: var(--ink); }
.result-card { padding-block: 20px; border-bottom: 1px solid var(--line); }
.result-card > span { display: block; color: var(--muted); font-size: 16px; line-height: 1.8; }
.result-card strong { display: block; margin-top: 6px; font-size: 24px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculator-error { margin-block: 18px; padding: 14px 18px; border-left: 3px solid var(--error); color: var(--error); background: var(--paper); font-size: 16px; line-height: 1.8; }
#calculator-status { margin-top: 18px; margin-bottom: 0; font-size: 16px; }
.methodology { max-width: 680px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.methodology h2 { font-size: 28px; line-height: 1.6; margin-bottom: 18px; }
.methodology p, .methodology li { margin-block: 14px; line-height: 1.85; }
.methodology a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.methodology code { white-space: normal; overflow-wrap: anywhere; font-size: .9em; }
.ad-placement { margin-block: 32px; padding-block: 16px; border-block: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.ad-placement > p, .ad-placement > span { display: block; margin-bottom: 16px; }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-top { display: flex; flex-direction: column; gap: 22px; }
.wordmark.small { font-size: 28px; }
.footer-top p { font-size: 15px; color: var(--muted); margin-top: 10px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.footer-top nav > a, .footer-top nav > button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; }
.footer-top nav > button:hover { color: var(--accent); }
.footer-top nav svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--line); padding-block: 20px 25px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.footer-bottom p { flex-basis: 100%; order: 3; }
.footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; }
dialog { width: min(560px, calc(100% - 28px)); max-height: 85dvh; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 24px; box-shadow: 0 20px 80px #08122540; }
dialog::backdrop { background: #0b1525a6; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-top h2 { font-size: 26px; }
.dialog-top .icon-button { margin-right: -8px; }
.search-dialog { width: min(700px, calc(100% - 28px)); }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); margin-top: 22px; padding-block: 8px; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 18px; min-height: 44px; }
.search-field:focus-within { border-color: var(--accent); }
.search-count { font-size: 15px; color: var(--muted); margin-top: 20px; }
.search-result { display: block; padding-block: 18px; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--pale); }
.search-result .eyebrow { color: var(--accent); }
.search-result h3 { font-size: 22px; line-height: 1.6; margin-top: 8px; }
.search-empty { padding-block: 30px; font-size: 18px; color: var(--muted); }
.dialog-footnote { font-size: 15px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
.feed-mark { display: grid; place-items: center; width: 52px; height: 52px; background: var(--pale); color: var(--accent); border-radius: 8px; margin-block: 28px 20px; }
#follow-title { font-size: 30px; line-height: 1.5; }
#follow-dialog > p:not(.dialog-footnote) { font-size: 18px; color: var(--muted); line-height: 1.85; margin-block: 20px 28px; }
.feed-label { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.feed-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; padding-left: 12px; margin-bottom: 16px; }
.feed-field input { width: 100%; min-width: 0; min-height: 44px; font-size: 18px; background: transparent; border: none; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); padding: 13px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 100; width: max-content; max-width: calc(100% - 40px); text-align: center; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.reading-preferences { border: 0; background: none; padding: 0; margin-top: 8px; }
.appearance-controls { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.style-options { display: flex; flex-wrap: wrap; gap: 4px; }
.style-options button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 15px; }
.style-options button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--pale); font-weight: 600; }
.style-swatch { width: 9px; height: 9px; border-radius: 50%; background: #235fcb; }
.style-swatch.editorial { background: #a84e30; }
.style-swatch.calm { background: #21634e; }
.motion-toggle { min-height: 44px; border: 0; padding: 7px 0; background: none; color: var(--muted); font-size: 15px; }
.motion-toggle:hover { color: var(--accent); }
.motion-toggle:disabled { cursor: default; }
#appearance-dialog .appearance-controls { margin-top: 20px; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes image-drift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .lead-copy,
  :root:not([data-motion="off"]) .tool-card { animation: arrive .65s ease-out both; }
  :root:not([data-motion="off"]) .revealed { animation: arrive .55s ease-out both; }
  :root:not([data-motion="off"]) .lead-visual img { animation: image-drift 4s ease-out forwards; }
  :root:not([data-motion="off"]) .story-visual img { transition: transform .45s ease; }
  :root:not([data-motion="off"]) .button,
  :root:not([data-motion="off"]) .text-link svg { transition: transform .2s ease, background-color .2s ease; }
  @media (hover: hover) {
    :root:not([data-motion="off"]) .story-card:hover .story-visual img { transform: scale(1.035); }
    :root:not([data-motion="off"]) .button:hover { transform: translateY(-2px); }
    :root:not([data-motion="off"]) .text-link:hover svg { transform: translateX(4px); }
  }
}
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (max-width: 599px) {
  .site-header .wordmark { font-size: 24px; }
  .brand-mark { width: 30px; height: 30px; font-size: 20px; }
  .header-actions .search-button span, .header-actions .saved-link span { display: none; }
}
@media (max-width: 359px) {
  .brand-mark { display: none; }
}
@media (min-width: 600px) {
  .wrapper { width: calc(100% - 64px); }
  .wordmark { font-size: 32px; }
  .brand-mark { width: 40px; height: 40px; font-size: 25px; }
  .header-actions { gap: 12px; }
  .search-button, .saved-link { font-size: 16px; padding-inline: 8px; }
  .opening h1 { font-size: 34px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .story-card { display: block; }
  .story-visual { aspect-ratio: 16 / 10; margin-top: 0; }
  .story-copy { display: block; padding-top: 10px; }
  .story-copy > .category-link { margin-top: 0; }
  .story-copy h3 { font-size: 23px; }
  .story-card:not(:has(.story-visual)) .story-copy { padding-top: 0; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-monogram { display: grid; }
  .footer-bottom p { flex-basis: auto; order: initial; }
  dialog { padding: 30px; }
}
@media (min-width: 900px) {
  .wrapper { width: calc(100% - 80px); }
  .masthead { min-height: 92px; }
  .brand-caption { display: block; border-left: 1px solid var(--line); padding-left: 20px; margin-left: 14px; }
  #main-nav { display: flex; gap: 10px; }
  #main-nav > a { padding-inline: 24px; font-size: 18px; }
  .topic-nav { gap: 0 24px; }
  .opening { padding-block: 28px; }
  .featured-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
  .lead-visual { max-height: 310px; }
  .lead-copy h2 { font-size: 30px; }
  .tool-card { padding: 24px; }
  .tool-card h2 { font-size: 25px; }
  .topic-directory > a { padding-block: 10px; }
  .topic-directory > a > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .topic-directory small { display: inline; margin-top: 0; }
  .home-sections { gap: 48px; margin-top: 48px; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .home-sections #stock-analysis .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-sections #stock-analysis .story-visual { aspect-ratio: 2 / 1; }
  .section-heading h2, .section-heading.large h2 { font-size: 28px; }
  .article-header h1, .collection-header h1, .text-page h1 { font-size: 38px; }
  .article-layout { grid-template-columns: 190px minmax(0, 680px); gap: 40px; }
  .article-toc { position: sticky; top: 88px; align-self: start; }
  .article-body section h2 { font-size: 28px; }
  .retirement-copy { padding: 32px; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .footer-top nav { gap: 8px 24px; justify-content: flex-end; }
  .calculator-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
  .calculator-results { position: sticky; top: 88px; }
  .field label { font-size: 18px; }
  .planning-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planning-links > a { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 8px 10px; padding: 22px 18px; }
  .planning-links > a:first-child { padding-left: 0; }
  .planning-links > a:last-child { padding-right: 0; }
  .planning-links > a + a { border-top: 0; border-left: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-navigation, .topic-nav, .site-footer, .article-toc, .related-section, .article-actions, .save-button, .ad-placement, dialog { display: none; }
  body { background: #fff; color: #000; }
  .wrapper { width: 100%; }
  .article-layout { display: block; }
  .article-body { max-width: none; }
}
