/* TrueTotal shared design system (Advocate identity).
   Used by the homepage and every content page so the site reads as one finished
   product: cobalt + ink, Archivo display + Public Sans body, generous article
   typography, a sticky table of contents, callouts, and a consistent nav/footer. */

:root {
  --ink: #0f1216;
  --ink-2: #39434e;
  --muted: #6b7683;
  --cobalt: #1b44e5;
  --cobalt-700: #1533ad;
  --cobalt-050: #eef2fe;
  --paper: #ffffff;
  --mist: #f3f6fb;
  --mist-2: #eaf0fb;
  --line: #e3e9f1;
  --flag: #d83a3f;
  --flag-bg: #fdecec;
  --tip: #0e9f6e;
  --tip-bg: #e8f7f1;
  --gain: #0e9f6e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,18,22,.04), 0 12px 32px rgba(21,44,120,.08);
  --shadow-sm: 0 1px 2px rgba(15,18,22,.05), 0 6px 18px rgba(21,44,120,.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display { font-family: "Archivo", sans-serif; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 "Public Sans", sans-serif; padding: 13px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-700); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* Nav */
header.nav { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Archivo"; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--cobalt); position: relative; flex: none; }
.brand .mark::after { content: ""; position: absolute; inset: 7px 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* Article layout */
.article { padding: 30px 0 8px; }
.article-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 940px) { .article-grid { grid-template-columns: 1fr; gap: 8px; } }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cobalt); }
.breadcrumb .sep { color: #c2ccdb; }

.article-header { margin-bottom: 22px; }
.eyebrow { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.article-header h1 { font-size: clamp(29px, 4vw, 42px); font-weight: 800; margin: 12px 0 0; }
.article-header .dek { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 62ch; }
.article-meta { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Sticky table of contents */
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc .toc-label { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; color: var(--ink-2); padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--cobalt); }
.toc a.active { color: var(--cobalt); border-left-color: var(--cobalt); font-weight: 600; }
@media (max-width: 940px) {
  .toc { position: static; margin: 0 0 26px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .toc ol { border-left: 0; }
  .toc a { padding: 5px 0; }
  .toc a.active { border-left-color: transparent; }
}

/* Key takeaways box */
.takeaways { background: var(--cobalt-050); border: 1px solid #d6e0fb; border-radius: var(--radius); padding: 20px 22px; margin: 0 0 30px; }
.takeaways .tk-label { font-weight: 800; font-family: "Archivo"; font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; color: var(--cobalt-700); }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin: 7px 0; color: var(--ink); font-size: 15px; }

/* Prose */
.prose { color: var(--ink); font-size: 17px; max-width: 68ch; }
.prose > h2 { font-size: clamp(22px, 2.6vw, 27px); font-weight: 800; margin: 40px 0 0; scroll-margin-top: 92px; }
.prose > h3 { font-size: 19px; font-weight: 700; margin: 28px 0 0; font-family: "Archivo"; scroll-margin-top: 92px; }
.prose p { margin: 14px 0 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: #b9c6ec; text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--cobalt); }
.prose > *:first-child { margin-top: 0; }

/* Callouts */
.callout { background: var(--cobalt-050); border: 1px solid #d6e0fb; border-left: 4px solid var(--cobalt); border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-flag { background: var(--flag-bg); border-color: #f2c6c7; border-left-color: var(--flag); }
.callout-tip { background: var(--tip-bg); border-color: #bfe8d8; border-left-color: var(--tip); }

/* Tables */
.prose .data-table { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-size: 15px; display: block; overflow-x: auto; }
.data-table thead th { text-align: left; background: var(--mist); border-bottom: 2px solid var(--line); padding: 11px 14px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: #fbfcfe; }

/* Blockquote (statute quotes) */
.prose blockquote { margin: 22px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cobalt); color: var(--ink-2); }
.prose blockquote p { margin: 0; font-size: 16px; }
.prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Inline CTA band */
.cta-band { margin: 40px 0 0; background: #0f1420; color: #eaf0fb; border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0; }
.cta-band p { color: #aebbd6; margin: 10px 0 0; max-width: 54ch; font-size: 15.5px; }
.cta-band .cta-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.cta-band .cta-note { color: #7f8fb2; font-size: 13px; }

/* Related links */
.related { margin: 44px 0 0; border-top: 1px solid var(--line); padding-top: 26px; }
.related .rel-label { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: block; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.rel-card:hover { border-color: #c3d0ee; box-shadow: var(--shadow-sm); text-decoration: none; }
.rel-card .rc-cat { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.rel-card .rc-title { font-weight: 700; margin-top: 5px; font-size: 15.5px; line-height: 1.3; }

/* FAQ (accordion, mirrored by FAQPage schema) */
.faq { margin: 44px 0 0; }
.faq h2 { font-size: clamp(22px, 2.6vw, 27px); font-weight: 800; }
.faq .faq-item { border-bottom: 1px solid var(--line); }
.faq details { padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; font-weight: 700; font-size: 16.5px; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 400; color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { color: var(--ink-2); font-size: 16px; padding: 0 0 18px; margin: 0; max-width: 70ch; }
.faq .faq-a p { margin: 0 0 10px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Hub / index pages */
.hub-hero { padding: 40px 0 8px; }
.hub-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.hub-hero .dek { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 60ch; }
.hub-section { margin-top: 36px; }
.hub-section h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); font-weight: 800; margin-bottom: 16px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: block; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.hub-card:hover { border-color: #c3d0ee; box-shadow: var(--shadow-sm); text-decoration: none; }
.hub-card .hc-title { font-family: "Archivo"; font-weight: 700; font-size: 17px; line-height: 1.25; }
.hub-card .hc-desc { color: var(--muted); font-size: 14px; margin-top: 8px; }
.state-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .state-list { grid-template-columns: 1fr 1fr; } }
.state-list a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); font-weight: 600; font-size: 15px; }
.state-list a:hover { border-color: #c3d0ee; text-decoration: none; color: var(--cobalt); }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 60px; background: var(--mist); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid .fcol h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.footer-grid .fcol a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; text-decoration: none; }
.footer-grid .fcol a:hover { color: var(--cobalt); }
.footer-brand .fbrand { display: flex; align-items: center; gap: 9px; font-family: "Archivo"; font-weight: 800; font-size: 19px; color: var(--ink); }
.footer-brand .fbrand .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--cobalt); position: relative; }
.footer-brand .fbrand .mark::after { content: ""; position: absolute; inset: 6px 5px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; max-width: 34ch; }
.footer-legal { border-top: 1px solid var(--line); }
.footer-legal .fl-inner { padding: 20px 0 30px; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-legal .disc { max-width: 70ch; }

/* Print (article pages) */
@media print {
  header.nav, .toc, .cta-band, .related, footer.site, .faq summary::after { display: none !important; }
  .article-grid { grid-template-columns: 1fr; }
  body { color: #000; }
  .faq details { open: true; }
}
