/* Keep text readable; reflow the layout instead of shrinking its contents. */
body { font-size: 16px; }
p { line-height: 1.65; }
.intro, .hero-features p, .benefit-strip p,
.field-guide p, .field-guide .guide-note,
.detail-panel p, .detail-panel .evidence-list,
.detail-panel .source-list, .detail-panel .context-list,
.preview-detail .preview-awaiting, .preview-summary p,
.auth-context-copy, .auth-description, .auth-perks,
.auth-switch, .list-row p { font-size: 16px; }
.primary-nav, .account-controls, .header-login,
.segmented a, .timeframes a, .how-link,
.hero-features strong, .benefit-strip strong,
.button, .button.small, .account-controls .header-signup,
.account-trigger, .account-dropdown > a, .logout-button,
.quiet-button, .auth-field label, .auth-label-row label,
.remember-label, .auth-label-row a, .password-toggle,
.auth-form .auth-submit, .catalog-search label { font-size: 15px; }
.header-search input[type=search],
.auth-form input:not([type=submit],[type=checkbox],[type=hidden]),
input:not([type=submit],[type=checkbox],[type=hidden]), select { font-size: 16px; }
.auth-field > small, .auth-eyebrow, .account-identity small,
.field-status, .design-preview-notice, .catalog-footnote,
.detail-panel .timestamp, .preview-facts, .preview-facts strong,
.preview-scores span, .preview-detail-heading > div > span,
.preview-summary strong, .preview-price small, .theme-toggle,
.auth-back, .tile-stale, .tile-score { font-size: 14px; }
.account-identity strong { font-size: 15px; }
.hero-copy h1 { font-size: clamp(42px, 4vw, 56px); }
.hero-copy > p { font-size: 20px; }
.auth-card h2 { font-size: 32px; }
.hero-features strong, .hero-features p { max-width: 180px; }
.benefit-strip { gap: 28px; }
.benefit-strip > div { gap: 16px; }
.auth-workspace { max-width: 1120px; }
.auth-form input:not([type=submit],[type=checkbox],[type=hidden]) { height: 52px; }
.auth-form .auth-submit { height: 52px; }
.header-search { min-width: 210px; }
.site-header { height: auto; min-height: 96px; padding-block: 16px; flex-wrap: wrap; }
.site-header .brand { min-width: 220px; }
.primary-nav { gap: 22px; }
.account-controls { margin-left: auto; }
.theme-toggle { min-height: 40px; }
.account-dropdown { min-width: 280px; }
.segmented { flex-wrap: wrap; }
.segmented a, .timeframes a { padding: 10px 16px; }
.filter-row { flex-wrap: wrap; align-items: center; gap: 12px; }
.timeframes { margin-left: auto; }
.reference-hero { gap: 36px; }
.hero-features { gap: 20px; }
.discovery-workspace { grid-template-columns: minmax(0, 1fr) 390px; }
.field-guide, .preview-detail { top: 0; margin-bottom: 0; }
.field-guide h3, .preview-detail h3, .detail-panel h3 { font-size: 18px; }
.preview-detail-heading h2 { font-size: 24px; }
.preview-detail .preview-awaiting { min-height: 0; }
.preview-summary { padding: 16px; }
.tile-name, .dense-field .tile-name,
.opportunity-field.dense-field .tile-name { font-size: 14px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-symbol, .dense-field .tile-symbol,
.opportunity-field.dense-field .tile-symbol { font-size: 20px; }
.tile-dip, .dense-field .tile-dip,
.opportunity-field.dense-field .tile-dip { font-size: 17px; }
.tile-content, .dense-field .tile-content,
.opportunity-field.dense-field .tile-content { gap: 5px; }
.asset-node.featured .tile-symbol { font-size: 30px; }
.asset-node.featured .tile-name { font-size: 16px; }
.asset-node.featured .tile-dip { font-size: 23px; }
@media (max-width: 1400px) {
  .site-header .primary-nav { order: 3; flex-basis: 100%; height: auto; justify-content: center; gap: 32px; }
  .site-header .primary-nav a { height: auto; padding: 6px 0; }
  .site-header .primary-nav a.active::after { bottom: 0; }
  .site-header .header-search { margin-left: auto; flex: 1; max-width: 360px; }
  .site-header .account-controls { margin-left: 0; }
  .site-header .theme-toggle span { display: inline; }
}
@media (max-width: 1250px) {
  .discovery-workspace { display: block; }
  .field-guide:not(.preview-detail) { display: none; }
  .preview-detail { display: block; max-width: 640px; margin: 24px auto; }
  .reference-hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-features { grid-template-columns: repeat(4, 1fr); padding-top: 0; }
  .hero-copy > p { max-width: 700px; }
  .benefit-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header .brand { min-width: 200px; }
  .site-header .primary-nav { display: flex; flex-wrap: wrap; gap: 16px 26px; }
  .site-header .header-search { order: 4; min-width: 100%; max-width: none; }
  .site-header .account-controls { margin-left: auto; }
  .auth-workspace { grid-template-columns: 1fr; max-width: 620px; }
  .auth-card { order: 0; }
  .auth-context { order: 1; }
  .auth-context, .auth-card { padding: 32px; }
}
@media (max-width: 620px) {
  .site-header { gap: 18px; padding: 18px; }
  .site-header .brand { min-width: 0; font-size: 27px; padding-bottom: 22px; }
  .site-header .brand small { font-size: 14px; top: 34px; }
  .site-header .header-search { height: 44px; }
  .site-header .theme-toggle span { display: none; }
  .site-header .account-controls { gap: 14px; }
  .site-header .account-controls .header-signup { font-size: 14px; padding: 10px 14px; }
  .site-header .header-login { font-size: 15px; }
  .site-header .primary-nav { gap: 12px 20px; }
  .site-header .primary-nav a { font-size: 14px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy > p { font-size: 18px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-features strong { font-size: 15px; }
  .hero-features p { font-size: 16px; }
  .categories { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .segmented a, .timeframes a { font-size: 14px; padding: 10px 14px; }
  .opportunity-field:has(.asset-tile) { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .opportunity-field .asset-node { width: calc((100vw - 44px) / 2); height: calc((100vw - 44px) / 2); }
  .opportunity-field .tile-symbol, .opportunity-field .featured .tile-symbol { font-size: 20px; }
  .opportunity-field .tile-name, .opportunity-field .featured .tile-name { font-size: 14px; max-width: 112px; }
  .opportunity-field .tile-dip, .opportunity-field .featured .tile-dip { font-size: 17px; }
  .opportunity-field .tile-content { gap: 4px; }
  .benefit-strip { grid-template-columns: 1fr; gap: 24px; }
  .benefit-strip strong { font-size: 16px; }
  .benefit-strip p { font-size: 16px; max-width: none; }
  .auth-context, .auth-card { padding: 28px 24px; }
  .auth-card h2 { font-size: 28px; }
  .field-status { flex-wrap: wrap; font-size: 14px; }
}
@media (max-width: 390px) {
  .site-header .account-controls { flex-basis: 100%; justify-content: flex-end; }
}
.field-empty p { font-size: 16px; }
