/* ==========================================================================
   Solar Exit Group - article.css
   Additive, long-form article styles. Scoped under .article so it cannot
   affect any existing site page or component.
   ========================================================================== */

/* ---------- typographic rhythm ---------- */
.article { color: var(--body); font-size: 1.0625rem; }
.article > * + * { margin-top: 1.5rem; }
.article p { max-width: 68ch; line-height: 1.7; color: var(--body); margin: 1.25rem 0; }
.article > p:first-child { margin-top: 0; }
.article strong { color: var(--ink); }
.article a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(16,27,54,.35); }
.article a:hover { text-decoration-color: var(--gold); }

/* ---------- headings ---------- */
.article h2, .article h3, .article h4 {
  font-family: var(--font-display); color: var(--ink); font-weight: 600;
  line-height: 1.2; scroll-margin-top: 100px;
}
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 3rem 0 1rem; padding-top: 1.5rem;
  border-top: 3px solid var(--gold); position: relative;
}
.article > h2:first-of-type { margin-top: 2rem; }
.article h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); margin: 2.25rem 0 .9rem; }
.article h4 { font-size: 1.05rem; margin: 1.75rem 0 .75rem; }

/* ---------- lists ---------- */
.article ul, .article ol { padding-inline-start: 1.35rem; margin: 1.25rem 0; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: 0 0 .6rem; line-height: 1.7; color: var(--body); }
.article li::marker { color: var(--gold); }
.article li > ul, .article li > ol { margin: .6rem 0 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .9375rem; }
.article caption { text-align: left; font-size: .85rem; color: var(--body-dim); margin-bottom: .5rem; }
.article th, .article td { border: 1px solid var(--line); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.article thead th { background: var(--navy); color: var(--cream); font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; }
.article tbody tr:nth-child(even) { background: var(--cream); }
.article tbody tr:nth-child(odd) { background: var(--white); }

/* ---------- answer box (featured-snippet target) ---------- */
.answer-box {
  background: var(--cream-2); border-left: 3px solid var(--gold); border-radius: var(--r-md);
  padding: 1.5rem 1.75rem; margin: 1.75rem 0; font-size: 1.09375rem; line-height: 1.7;
}
.answer-box p { margin: 0; max-width: none; }
.answer-box p + p { margin-top: 1rem; }

/* ---------- table of contents ---------- */
.toc {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.toc p.toc-title { margin: 0 0 .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A5F1E; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) {
  .toc ol, .toc ul { columns: 2; column-gap: 2rem; }
}
.toc li { margin: 0 0 .6rem; break-inside: avoid; font-size: .9375rem; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { color: #7A5F1E; text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- sources ---------- */
.sources { font-size: .85rem; color: var(--body-dim); line-height: 1.55; }
.sources ul { padding-inline-start: 1.25rem; }
.sources li { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.sources a { overflow-wrap: anywhere; color: var(--body-dim); text-decoration-color: var(--line); }
.sources a:hover { color: var(--navy); }

/* ---------- blockquote / code ---------- */
.article blockquote {
  margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--line-dark);
  color: var(--body-dim); font-style: normal; max-width: 64ch;
}
.article blockquote p { margin: .5rem 0; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em;
  background: var(--cream-2); border-radius: 4px; padding: .15em .4em; color: var(--ink);
}

/* ---------- updated line ---------- */
.updated { font-size: .8125rem; color: var(--body-dim); letter-spacing: .02em; margin: -.5rem 0 1.5rem; }

/* ---------- inline disclaimer ---------- */
.disclaimer-inline {
  font-size: .875rem; color: var(--body-dim); line-height: 1.6;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1rem 0; margin: 1.75rem 0;
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .cta-band { display: none; }
  .article a { color: var(--ink); text-decoration: underline; }
}
