/* Brand roles and reading layout. Loaded after component styles. */
body, button, input, select, textarea { font-family: var(--font-interface); }
body { font-size: var(--type-body); line-height: 1.6; }
button, input, select, textarea { font-size: 1rem; }
h1, h2, h3, h4 { letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 3.2vw, 2.5rem); max-width: 30ch; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h3 { font-size: 1.25rem; }
small, .fine-print, .article-meta, .community-meta, .comment-author,
.comment-status, .inline-comment-header, .comments-heading > a,
.featured-image figcaption, .chart-note, .chart-data,
.results-summary, .rate .rate-note, .rate-note, .badge {
  font-size: var(--type-meta); line-height: 1.5;
}
.wordmark { font-family: var(--font-editorial); font-weight: 650; font-size: 2rem; letter-spacing: -.035em; font-optical-sizing: auto; }
.hero-copy h1 { font-family: var(--font-editorial); font-weight: 600; font-optical-sizing: auto; font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; letter-spacing: -.035em; }
.hero-copy h1 br { display: none; }
.hero-copy h1 { max-width: 17ch; }
.hero-inner { height: auto; min-height: 460px; }
.hero-copy p { font-size: 1.125rem; line-height: 1.6; }
.eyebrow, .panel .eyebrow, .hero-copy .eyebrow, .rate-chart > header .eyebrow { font-size: .8125rem; letter-spacing: .1em; line-height: 1.5; }
.feature h2 { font: 600 1.75rem/1.25 var(--font-editorial); font-optical-sizing: auto; }
.desktop-nav a, .header-actions, .footer-top nav, .pill { font-size: .9375rem; }
.desktop-nav { gap: clamp(12px, 1.4vw, 22px); }
.site-header { gap: 22px; }
.mobile-nav { flex: 0 0 auto; }
.mobile-nav summary { white-space: nowrap; }
.lead { max-width: var(--measure-reading); }
/* Limit prose rather than narrowing the whole page, forms, or data tables. */
.prose { font-family: var(--font-editorial); font-optical-sizing: auto; font-size: var(--type-reading); line-height: 1.6; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: var(--measure-reading); }
.prose > h1 { font-family: var(--font-editorial); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.18; max-width: 26ch; }
.prose h2 { font-family: var(--font-editorial); font-weight: 600; font-size: clamp(1.625rem, 2.3vw, 2rem); line-height: 1.25; }
.prose h3 { font-family: var(--font-editorial); font-size: 1.5rem; font-weight: 600; }
.prose .summary { font-size: 1.375rem; line-height: 1.55; max-width: var(--measure-reading); }
.prose .source, .prose .article-meta, .prose .eyebrow,
.prose .correction, .prose > hr + a { font-family: var(--font-interface); }
.prose .source { font-size: 1rem; line-height: 1.55; }
.article-sidebar .panel, .account-facts { font-size: 1rem; line-height: 1.6; }
.account-facts > h2, .account-review-sidebar .account-facts > h2 { font-size: 1.625rem; line-height: 1.25; }
.account-facts h3 { font-size: 1.25rem; }
.account-facts .input-action { flex-wrap: wrap; }
.account-facts .input-action > div { min-width: 0; flex: 1 1 220px; }
.account-facts .input-action input { width: 100%; }
.account-facts .input-action button { align-self: end; }
.account-facts .terms { max-width: 75ch; }
.account-rate-summary { padding: 20px; }
.account-summary-rate { display: block; color: var(--blue); font-size: 2rem; font-weight: 700; line-height: 1.25; }
main > p:not(.results-summary), .assumptions p { max-width: 68ch; }
.assumptions { font-size: 1rem; line-height: 1.6; }
.filter-fields label, .filter-option, .clear-filters { font-size: 1rem; }
.errorlist { font-size: 1rem; line-height: 1.5; }
form .helptext { display: block; margin-top: .375rem; max-width: 65ch; font-size: .875rem; line-height: 1.5; }
table { font-size: 1rem; line-height: 1.5; }
thead th, .table-sort, .sort-sub-label { font-size: .875rem; line-height: 1.45; }
.rate { font-size: 1.375rem; }
.account-conditions { font-size: 1rem; }
.rate, .big-number, .facts dd, .terms dd, table td, .account-summary-rate {
  font-variant-numeric: lining-nums tabular-nums;
}
.numeric { text-align: end; }
.comparison-table td:nth-child(3), .comparison-table td:nth-child(4),
.comparison-table td:nth-child(5), .comparison-table .annual-interest { text-align: center; }
.comparison-table .rate-note { margin-inline: auto; }
.comparison-table thead th:nth-child(3) .table-sort,
.comparison-table thead th:nth-child(4) .table-sort,
.comparison-table thead th:nth-child(5) .table-sort,
.comparison-table thead th:nth-child(7) .table-sort {
  justify-content: center; text-align: center;
}
.comparison-table .annual-interest { white-space: normal; }
.comparison-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; }
.comparison-intro .lead { margin: 0; max-width: 65ch; }
.comparison-intro > a { flex-shrink: 0; padding-block: 10px; }
.comparison-context { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 32px; margin: 24px 0 16px; color: var(--muted); }
.comparison-context > p { margin: 0; }
.estimate-details summary { text-align: right; cursor: pointer; color: var(--blue); padding-block: 10px; min-height: 44px; }
.estimate-details p { margin: 8px 0 0; }
.results-summary { justify-content: space-between; gap: 8px 24px; }
.big-number { font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -.02em; }
.growth-tick, .growth-axis-label, .chart-tick, .chart-axis-label { font-family: var(--font-interface); }
.growth-chart, .rate-chart { min-width: 0; }
.rate-watch-grid > * { min-width: 0; max-width: 100%; }
@media (max-width: 1000px) {
  .rate-watch-grid { grid-template-columns: minmax(0, 1fr); }
}
.calculator-grid > * { min-width: 0; max-width: 100%; }
.chart-scroll { overflow-x: auto; padding: 4px; min-width: 0; max-width: 100%; }
/* Keep axis labels at readable rendered sizes without relying on JavaScript. */
.chart-scroll .growth-chart-plot { min-width: 340px; }
.chart-scroll .rate-chart-plot { min-width: 440px; }
.growth-point-cadence { font-size: .875rem; }
.chart-scroll:focus-visible { outline-offset: -3px; }
.chart-scroll-hint { display: none; font-size: .875rem; color: var(--muted); }
.mobile-only, .mobile-cell-label, .mobile-account-details, .home-rate-details { display: none; }
.account-choice { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; }
.home-comparison .rate { text-align: end; }
@media (max-width: 1200px) {
  .desktop-nav a, .header-actions { font-size: .875rem; }
  .site-header { gap: 16px; padding-inline: 20px; }
}
@media (max-width: 720px) {
  .comparison-intro { flex-direction: column; gap: 4px; }
  .comparison-context { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .estimate-details summary { text-align: left; }
  .results-summary { flex-direction: row; align-items: baseline; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-scroll-hint { display: block; }
  .wordmark { font-size: 1.75rem; gap: 4px; }
  .wordmark img { width: 28px; height: 34px; }
  .site-header { gap: 8px; padding-inline: 12px; }
  .mobile-nav summary { padding: 12px 8px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3rem); }
  .hero-copy { padding: 32px 20px; }
  .hero-inner { min-height: 0; }
  .hero-copy p { font-size: 1.125rem; }
  .prose { font-size: 1.125rem; line-height: 1.65; padding-inline: 0; background: transparent; }
  .prose .summary { font-size: 1.25rem; }
  .article-meta { gap: 8px; }
  .account-facts { padding: 20px 16px; }
  .account-facts .input-action { flex-direction: column; align-items: stretch; }
  .account-facts .input-action > div { flex: auto; }
  .account-facts .input-action button { align-self: stretch; }
  .projection { padding: 20px 16px; }
  .projection .facts { grid-template-columns: minmax(0, 1fr) auto; }
  .main-grid .home-comparison table { min-width: 0; table-layout: fixed; }
  .home-comparison th:first-child { width: 65%; }
  .home-comparison td:nth-child(n+3), .home-comparison thead th:nth-child(n+3) { display: none; }
  .home-comparison th, .home-comparison td { padding: 14px 8px; }
  .home-rate-details { display: block; font-weight: 400; margin-top: 8px; }
  .comparison-table { display: block; min-width: 0; }
  .comparison-table caption, .comparison-table thead, .comparison-table tbody { display: block; width: 100%; }
  .comparison-table thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
  .comparison-table thead th { display: block; padding: 0; }
  .comparison-table thead th:first-child, .comparison-table thead th:nth-child(6) { display: none; }
  .comparison-table .table-sort { min-height: 48px; padding: 10px 8px; }
  .comparison-table tbody tr:not(.connected-offer-row):not(.mobile-account-details) { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(88px, .65fr); align-items: start; }
  .comparison-table tbody tr > td, .comparison-table tbody tr > th { padding: 14px 6px 8px; border: 0; min-width: 0; }
  .comparison-table tbody tr > td:first-child:has(.account-choice) { padding: 4px 0; }
  .comparison-table tbody tr > td[colspan] { grid-column: 1 / -1; }
  .comparison-table tbody tr > td:nth-child(n+4) { display: none; }
  .comparison-table .bank-name, .comparison-table .bank-name > a { min-width: 0; }
  .comparison-table .bank-name { display: block; }
  .comparison-table .bank-logo { display: none; }
  .comparison-table .rate { white-space: normal; text-align: center; font-size: 1.25rem; }
  .comparison-table .rate .rate-note { max-width: none; }
  .comparison-table .mobile-account-details, .comparison-table .connected-offer-row { display: block; }
  .comparison-table .mobile-account-details > td, .comparison-table .connected-offer-row > td { display: block; width: 100%; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
  .mobile-account-details summary { cursor: pointer; padding: 10px 0; min-height: 44px; color: var(--blue); font-weight: 600; }
  .mobile-account-details dl { margin: 12px 0; }
  .mobile-account-details dt { font-weight: 600; margin-top: 10px; }
  .mobile-account-details dd { margin: 2px 0 12px; }
  .mobile-account-details .account-conditions { min-width: 0; max-width: none; }
  .comparison-table .connected-offer-row .offer-note { margin: 0; }
}
@media print {
  body { background: white; font-size: 11.5pt; }
  .site-header, .site-footer, .article-sidebar, .analytics-manage, .analytics-choices,
  .home-search, .topic-links, .inline-comments form, .comment-actions { display: none; }
  .wrap { width: 100%; }
  .article-grid { display: block; }
  .prose { font-size: 12pt; line-height: 1.4; }
  .prose > h1 { font-size: 26pt; }
  .prose h2 { font-size: 18pt; break-after: avoid; }
  .prose p { orphans: 3; widows: 3; }
  .panel { padding: 0; background: white; }
  table { font-size: 10pt; }
  thead { display: table-header-group; }
  tr, .account-rate-summary { break-inside: avoid; }
  .chart-scroll { overflow: visible; }
  a { color: inherit; }
}
