/* Pages written for the static site (content/articles/*.html, built by scripts/build-articles.mjs).
   AIA palette: red #D31145, charcoal #333D47, tints #FDF3F6 / #FBE7EC, surfaces #F5F5F7, borders #E8EAEE. */
.afa-article-page .inside-article { padding-top: 20px !important; }
.afa-article { max-width: 1100px; margin: 0 auto; color: #333D47; font-size: 17px; line-height: 1.8; }
.afa-article * { box-sizing: border-box; }
.afa-article p { margin: 0 0 1em; }
.afa-article a { color: #D31145; text-decoration: underline; text-underline-offset: 3px; }
.afa-article a:hover { color: #B80E3B; }
.afa-article h2 { margin: 2.2em 0 .6em; font-size: 28px; line-height: 1.25; color: #14171C; scroll-margin-top: 90px; }
.afa-article h3 { margin: 1.6em 0 .5em; font-size: 21px; line-height: 1.35; color: #14171C; }
.afa-article ul, .afa-article ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.afa-article li { margin: .25em 0; }
.afa-article strong { color: #14171C; }

/* hero */
.afa-hero { position: relative; overflow: hidden; margin: 0 0 26px; padding: 34px 34px 28px; border-radius: 24px; background: linear-gradient(150deg, #FFFFFF 0%, #FDF3F6 55%, #FBE7EC 100%); border: 1px solid #F6CFD9; }
.afa-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(211, 17, 69, .13), transparent 70%); pointer-events: none; }
.afa-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px; background: #D31145; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.afa-eyebrow.is-soft { background: #fff; color: #D31145; border: 1px solid #F6CFD9; }
.afa-hero h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.2; color: #14171C; }
.afa-hero .afa-lead { margin: 0 0 18px; font-size: 18.5px; line-height: 1.7; color: #3B4048; }
.afa-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-size: 14.5px; color: #585858; }
.afa-byline b { color: #14171C; }
.afa-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid #E4E7EB; font-size: 12.5px; font-weight: 700; color: #333D47; }
.afa-badge.is-red { border-color: #F6CFD9; color: #B80E3B; background: #FDF3F6; }

/* quick answer (the paragraph search engines and AI assistants can quote) */
.afa-answer { margin: 0 0 26px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid #E8EAEE; border-left: 5px solid #D31145; box-shadow: 0 10px 28px -20px rgba(15, 23, 42, .35); }
.afa-answer-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #D31145; text-transform: uppercase; }
.afa-answer p:last-child { margin-bottom: 0; }

/* key facts */
.afa-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 28px; }
.afa-fact { padding: 16px 18px; border-radius: 16px; background: #F5F5F7; border: 1px solid #E8EAEE; }
.afa-fact span { display: block; font-size: 13.5px; color: #585858; }
.afa-fact b { display: block; margin-top: 2px; font-size: 19px; line-height: 1.35; color: #14171C; }

/* table of contents */
.afa-toc { margin: 0 0 30px; padding: 16px 22px; border-radius: 16px; background: #fff; border: 1px dashed #DCE3EB; }
.afa-toc p { margin: 0 0 6px; font-weight: 700; color: #14171C; font-size: 15px; }
.afa-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; font-size: 15px; line-height: 1.6; }
.afa-toc li { break-inside: avoid; }
.afa-toc a { text-decoration: none; color: #333D47; }
.afa-toc a:hover { color: #D31145; }

/* tables */
.afa-table-wrap { margin: 0 0 1.4em; overflow-x: auto; border-radius: 16px; border: 1px solid #E8EAEE; }
.afa-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; min-width: 520px; }
.afa-table th, .afa-table td { padding: 12px 14px; border-bottom: 1px solid #EEF0F3; text-align: left; vertical-align: top; }
.afa-table thead th { background: #333D47; color: #fff; font-weight: 700; }
.afa-table tbody th { background: #F5F5F7; color: #14171C; font-weight: 700; width: 34%; }
.afa-table tr:last-child td, .afa-table tr:last-child th { border-bottom: 0; }
.afa-table .is-hl { background: #FDF3F6; }

/* callouts */
.afa-note, .afa-warn, .afa-tip { margin: 0 0 1.4em; padding: 16px 20px; border-radius: 14px; font-size: 16px; line-height: 1.7; }
.afa-note { background: #F5F5F7; border: 1px solid #E8EAEE; }
.afa-tip { background: #FDF3F6; border: 1px solid #F6CFD9; }
.afa-warn { background: #FFF8EB; border: 1px solid #F3D9A4; }
.afa-note > :last-child, .afa-warn > :last-child, .afa-tip > :last-child { margin-bottom: 0; }
.afa-callout-title { display: block; margin-bottom: 4px; font-weight: 700; color: #14171C; }

/* advisor voice */
.afa-advisor { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 1.6em; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #E8EAEE; }
.afa-advisor img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #F6CFD9; }
.afa-advisor p { margin: 0; font-size: 16px; }
.afa-advisor .afa-advisor-name { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: #D31145; }

/* two columns: fits / does not fit */
.afa-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 1.6em; }
.afa-fit > div { padding: 18px 20px; border-radius: 16px; border: 1px solid #E8EAEE; background: #fff; }
.afa-fit h3 { margin: 0 0 8px; font-size: 18px; }
.afa-fit .is-yes { border-top: 4px solid #1F9D55; }
.afa-fit .is-no { border-top: 4px solid #D31145; }
.afa-fit ul { margin: 0; padding-left: 1.15em; font-size: 15.5px; }

/* steps */
.afa-steps { counter-reset: step; list-style: none; margin: 0 0 1.6em; padding: 0; }
.afa-steps li { position: relative; margin: 0 0 12px; padding: 14px 18px 14px 62px; border-radius: 14px; background: #F5F5F7; }
.afa-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: #D31145; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* FAQ */
.afa-faq { margin: 0 0 1.6em; }
.afa-faq details { margin: 0 0 10px; border: 1px solid #E8EAEE; border-radius: 14px; background: #fff; }
.afa-faq summary { cursor: pointer; list-style: none; position: relative; padding: 15px 52px 15px 18px; font-weight: 700; color: #14171C; font-size: 16.5px; line-height: 1.5; }
.afa-faq summary::-webkit-details-marker { display: none; }
.afa-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #FDF3F6; color: #D31145; display: grid; place-items: center; font-size: 18px; }
.afa-faq details[open] summary::after { content: "−"; }
.afa-faq details > div { padding: 0 18px 16px; font-size: 16px; }
.afa-faq details > div > :last-child { margin-bottom: 0; }

/* related reading */
.afa-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 1.6em; }
.afa-related a { display: block; padding: 16px 18px; border-radius: 16px; border: 1px solid #E8EAEE; background: #fff; text-decoration: none; color: #14171C; transition: border-color .15s, box-shadow .15s; }
.afa-related a:hover { border-color: #F6CFD9; box-shadow: 0 10px 24px -18px rgba(211, 17, 69, .6); }
.afa-related small { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: #D31145; }
.afa-related b { display: block; font-size: 16px; line-height: 1.45; }
.afa-related span { display: block; margin-top: 4px; font-size: 14px; color: #585858; line-height: 1.55; }

/* call to action */
.afa-cta { margin: 2em 0 1.6em; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #333D47, #1E252C); color: #fff; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.afa-cta p { margin: 0; color: #E2E6EA; font-size: 16px; }
.afa-cta b { display: block; color: #fff; font-size: 20px; margin-bottom: 4px; }
.afa-cta a.afa-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #06C755; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.afa-cta a.afa-cta-btn:hover { background: #05B34C; color: #fff; }

/* sources and risk disclosure */
.afa-sources { margin: 0 0 1.4em; font-size: 14.5px; color: #585858; }
.afa-sources ul { padding-left: 1.2em; }
.afa-disclaimer { margin: 1.4em 0 0; padding: 16px 20px; border-radius: 14px; background: #F5F5F7; font-size: 14px; line-height: 1.7; color: #585858; }
.afa-disclaimer b { color: #333D47; }

@media (max-width: 720px) {
  .afa-article { font-size: 16px; }
  .afa-hero { padding: 24px 18px 20px; border-radius: 20px; }
  .afa-hero h1 { font-size: 28px; }
  .afa-hero .afa-lead { font-size: 16.5px; }
  .afa-article h2 { font-size: 23px; }
  .afa-article h3 { font-size: 19px; }
  .afa-toc ol { columns: 1; }
  .afa-fit { grid-template-columns: 1fr; }
  .afa-cta { padding: 20px; }
  .afa-advisor img { width: 52px; height: 52px; }
}

/* Heading sizes: the theme and imported page CSS size h1-h3 with !important, so restate them here. */
#page .afa-hero h1 { font-size: 38px !important; line-height: 1.2 !important; margin: 0 0 12px !important; }
#page .afa-article h2 { font-size: 28px !important; line-height: 1.25 !important; }
#page .afa-article h3 { font-size: 21px !important; line-height: 1.35 !important; }
#page .afa-fit h3 { font-size: 18px !important; }
@media (max-width: 720px) {
  #page .afa-hero h1 { font-size: 28px !important; }
  #page .afa-article h2 { font-size: 23px !important; }
  #page .afa-article h3 { font-size: 19px !important; }
}
