/*
 * Resource articles on the homepage theme (cream, navy, bright blue, orange;
 * Source Serif 4 headings, Source Sans 3 body). Loaded after each article's
 * own <style> block, so it re-colors the article without changing its layout.
 * Header and footer come from home-new.css.
 */

/* One palette for every article, whatever names its own <style> uses. */
:root {
  --navy: #0F2A52; --blue: #2F6FE4; --orange: #F47A22; --orange-dk: #D4611A;
  --cream: #FBF7EF; --cream-line: #E4DCCB; --ink: #0F2A52; --muted: #56667E;
  --bg: #FBF7EF; --bg-card: #FFFFFF; --text: #0F2A52; --text-muted: #56667E;
  --accent-navy: #0F2A52; --accent-orange: #D4611A; --accent-green: #2F6FE4;
  --border: #E4DCCB; --border-subtle: #EFE9DC; --link: #2F6FE4;
  --primary: #2F6FE4; --primary-dk: #2556C4; --gold: #F47A22; --gold-dk: #D4611A;
  --dark: #0F2A52; --white: #FFFFFF; --green: #2F6FE4;
}

html body { background: #FBF7EF; color: #0F2A52; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }

/* Article text */
html body .article-wrap p, html body .article-wrap li { color: #3E4F67; }
html body .article-wrap strong { color: #0F2A52; }
html body .article-wrap a:not(.btn) { color: #2F6FE4; }
html body .article-wrap h1, html body .article-wrap h2, html body .article-wrap h3,
html body .rspage h1, html body .rspage h2, html body .rspage h3 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 400; color: #0F2A52; letter-spacing: 0;
}
html body .article-wrap h2, html body .rspage h2 { font-size: 1.65rem; line-height: 1.25; }
html body .article-wrap h3, html body .rspage h3 { font-size: 1.25rem; }
html body .crumb, html body .crumb a { color: #56667E; }
html body .crumb a:hover { color: #2F6FE4; }

/* Title block: was a navy gradient card; now a white card on cream. */
html body .article-header, html body .rspage .hero {
  background: #FFFFFF; border: 1px solid #E4DCCB; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15,42,82,.04), 0 14px 34px rgba(15,42,82,.07);
}
html body .article-header .label, html body .rspage .hero .label, html body .rspage .hero .eyebrow {
  color: #D4611A; letter-spacing: .12em;
}
html body .article-header h1, html body .rspage .hero h1 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 400; color: #0F2A52;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.18;
}
html body .article-header p, html body .rspage .hero p, html body .rspage .hero .answer { color: #3E4F67; }
html body .article-meta, html body .byline { color: #56667E; }
html body .article-meta a, html body .byline a { color: #2F6FE4; }

/* Callouts and tables */
html body .callout { background: #FFFFFF; border-color: #E4DCCB; border-left-color: #F47A22; }
html body .callout-green { background: #EAF0FC; border-color: #D3E0FA; border-left-color: #2F6FE4; }
html body .callout-green p, html body .callout-green li { color: #0F2A52; }
html body .disclaimer { background: #F7F3EA; border-color: #E4DCCB; color: #56667E; }
html body .article-wrap table th, html body .rspage table th { background: #F7F3EA; color: #0F2A52; }
html body .article-wrap table td, html body .rspage table td { border-bottom-color: #EFE9DC; }
html body td.hi { color: #2556C4; }
html body td.lo { color: #D4611A; }
html body details { border-color: #E4DCCB; }
html body summary { color: #0F2A52; }

/* Closing call to action: same orange button as the homepage. */
html body .cta { background: #FFFFFF; border: 1px solid #E4DCCB; border-radius: 20px; }
html body .cta h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; color: #0F2A52; }
html body .cta a.btn, html body .cta .btn {
  background: #F47A22; color: #0F2A52; border-radius: 10px; font-weight: 700;
}
html body .cta a.btn:hover, html body .cta .btn:hover { background: #F9A25F; }

/* Each article's own element rules (p, li, a, strong, line-height) would leak
   into the shared header and footer; restate the homepage values with enough
   weight to win. */
html body .hn-header, html body .hn-footer { line-height: normal; }
html body .hn-header a { text-decoration: none; }
html body .hn-footer li { margin: 0; font-size: 16px; color: #DCE6F7; line-height: normal; }
html body .hn-footer .ft-brand p { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 46px; line-height: 52px; color: #FFFFFF; }
html body .hn-footer .ft-l a, html body .hn-footer .ft-k { color: #DCE6F7; text-decoration: none; font-size: 16px; }
html body .hn-footer .ft-l a:hover, html body .hn-footer .ft-k:hover { color: #FFFFFF; text-decoration: underline; }
html body .hn-footer .ft-h { margin: 0 0 16px; font-size: 13px; color: #F9A25F; }
html body .hn-footer .ft-disclaimer { margin: 0; font-size: 12px; line-height: 19px; color: #9FB0C8; }
html body .hn-footer .ft-f { font-size: 13px; line-height: 20px; color: #9FB0C8; }
html body .hn-footer .btn { color: #0F2A52; }
@media (max-width: 720px) {
  html body .hn-footer .ft-brand p { font-size: 34px; line-height: 40px; }
}

/* Sidebar contact form */
html body .asf-card { border-color: #E4DCCB; border-radius: 18px; box-shadow: 0 1px 2px rgba(15,42,82,.04), 0 14px 34px rgba(15,42,82,.07);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
html body .asf-card .asf-eyebrow { color: #D4611A; }
html body .asf-card .asf-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 1.4rem; color: #0F2A52; }
html body .asf-card .asf-btn { background: #F47A22; color: #0F2A52; border-radius: 10px; }
html body .asf-card .asf-btn:hover { background: #F9A25F; }
html body .asf-card input:focus, html body .asf-card textarea:focus { border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47,111,228,.18); }

/* Byline and author box (these used to live in site-header.css). */
.byline-author { color: inherit; font-weight: 700; text-decoration: none; }
.byline-author:hover { text-decoration: underline; }
html body .author-bio { display: flex; gap: 18px; align-items: flex-start; background: #FFFFFF; border: 1px solid #E4DCCB; border-radius: 18px;
  padding: 24px 26px; margin: 52px 0 0; box-shadow: 0 1px 2px rgba(15,42,82,.04), 0 14px 34px rgba(15,42,82,.07); }
html body .author-bio-avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #0F2A52; color: #FFFFFF; font-weight: 700;
  font-size: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
html body .author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .author-bio-body { flex: 1 1 auto; min-width: 0; }
html body .author-bio-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #D4611A; }
html body .author-bio-name { margin: 0 0 2px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; font-weight: 400; color: #0F2A52; }
html body .author-bio-name a { color: inherit; text-decoration: none; }
html body .author-bio-name a:hover { text-decoration: underline; }
html body .author-bio-role { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #2F6FE4; }
html body .author-bio-text { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #56667E; }
html body .author-bio-links { margin: 0; font-size: 14px; color: #56667E; }
html body .author-bio-links a { color: #2F6FE4; text-decoration: none; font-weight: 600; }
html body .author-bio-links a:hover { text-decoration: underline; }
@media (max-width: 560px) { html body .author-bio { flex-direction: column; gap: 12px; padding: 20px; } }

/* Comparison pages (.rspage): their palette is set on .rspage, not :root. */
html body .rspage {
  --white: #FFFFFF; --bg: #FBF7EF; --dark: #0F2A52; --navy: #0F2A52; --primary: #2F6FE4; --primary-dk: #2556C4;
  --gold: #F47A22; --gold-dk: #D4611A; --border: #E4DCCB; --text: #3E4F67; --muted: #56667E; --link: #2F6FE4;
  --green: #2F6FE4; --orange: #D4611A;
  background: #FBF7EF;
}
html body .rspage .hero { background: #F7F3EA; border: 0; border-bottom: 1px solid #E4DCCB; border-radius: 0; box-shadow: none; }
html body .rspage .kicker { color: #D4611A; border-color: rgba(212,97,26,.45); }
html body .rspage .hero .answer strong { color: #0F2A52; }
html body .rspage .btn-gold { background: #F47A22; border-color: #F47A22; color: #0F2A52; }
html body .rspage .btn-gold:hover { background: #F9A25F; color: #0F2A52; }
html body .rspage .btn-ghost { color: #0F2A52; border-color: #C9BFAA; }
html body .rspage .btn-ghost:hover { color: #0F2A52; background: rgba(15,42,82,.06); }
html body .rspage .qcol.sis { background: #FEF1E6; border-color: rgba(244,122,34,.45); }
html body .rspage .qcol.x1031, html body .rspage .qcol.trust { background: #EAF0FC; border-color: #D3E0FA; }
html body .rspage tbody th { background: #F7F3EA; }
html body .rspage .cta { background: linear-gradient(180deg, #2556C4 0%, #143561 55%, #0F2A52 100%); border: 0; color: #FFFFFF; }
html body .rspage .cta h2, html body .rspage .cta p { color: #FFFFFF; }
html body .rspage .hero .crumb, html body .rspage .hero .byline { color: #56667E; }
html body .rspage .hero .crumb a, html body .rspage .hero .byline a, html body .rspage .hero .byline strong { color: #2F6FE4; }
html body .rspage .cta .btn-ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.55); }
html body .rspage .cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }

/* Related guides block and sibling pointer */
html body .see-also { margin: 0 0 28px; padding: 16px 20px; background: #E7EFFC; border-radius: 12px; font-size: 16px; line-height: 25px; color: #0F2A52; }
html body .see-also a { color: #2F6FE4; font-weight: 600; }
html body .rg-block { margin: 48px 0 8px; }
html body .rg-block .rg-h { margin: 0 0 16px; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 28px; line-height: 34px; color: #0F2A52; }
html body .rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html body .rg-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #FFFFFF; border: 1px solid #E4DCCB; border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .2s; }
html body .rg-card:hover { border-color: #2F6FE4; transform: translateY(-2px); }
html body .rg-kind { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #D4611A; }
html body .rg-t { font-size: 17px; line-height: 24px; font-weight: 600; color: #0F2A52; }
@media (max-width: 640px) { html body .rg-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html body .rg-card, html body .rg-card:hover { transition: none; transform: none; } }
/* Long source URLs must wrap on phones */
html body .sources-list li, html body .sources li, html body .sources-list a, html body .sources a { overflow-wrap: anywhere; word-break: break-word; }
/* Wide comparison tables scroll inside the column on phones instead of widening the page */
@media (max-width: 640px) { html body .article-wrap table, html body main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
/* Shared table, sources and review-date styles for articles that lack their own */
html body .article-wrap .table-wrap { overflow-x: auto; margin: 24px 0; }
html body .article-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
html body .article-wrap table th { padding: 10px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; text-align: left; }
html body .article-wrap table td { padding: 10px 14px; border-bottom: 1px solid #EFE9DC; color: #3D4F60; }
html body .sources-list { padding-left: 20px; }
html body .sources-list li { margin: 6px 0; font-size: 15px; line-height: 23px; }
html body .last-reviewed { font-size: 14px; color: #56667E; }

/* Short answer under the H1: the one-paragraph answer search engines and AI tools quote. */
html body .article-wrap .direct-answer {
  background: #EAF0FC; border: 1px solid #D3E0FA; border-left: 4px solid #2F6FE4; border-radius: 12px;
  padding: 16px 20px; margin: 22px 0 26px; color: #0F2A52; font-size: 1.06rem; line-height: 1.6;
}
html body .article-wrap .direct-answer strong { color: #0F2A52; }
@media (max-width: 760px) {
  html body .article-wrap .direct-answer { padding: 14px 16px; font-size: 1rem; }
}
