/* ==========================================================================
   NEXIRA CONSULTING: INSIGHT ARTICLE TEMPLATE (Stage 10-13B)
   Shared by insight-*.html pages. All selectors ar- prefixed. Reading-first:
   a readable single column (about 68 to 72 characters) beside an "In this
   insight" list. Reuses .sd-hero / .sd-crumbs and .closing read-only.
   ========================================================================== */

.ar-theme { margin: 0 0 var(--s-4); font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; line-height: 1.4; text-transform: uppercase; color: var(--gold-soft); }

/* HERO */
.ar-hero { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.75rem); }
.ar-hero h1 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.5rem); line-height: 1.1; max-width: 24ch; margin: 0 0 var(--s-5); }
.ar-lede { max-width: 44rem; margin: 0 0 var(--s-6); }
.ar-byline { margin: 0 0 var(--s-3); font-size: 0.95rem; color: var(--on-dark); }
.ar-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: 0.85rem; color: var(--on-dark-muted); }
.ar-meta div { display: flex; gap: 0.4rem; }
.ar-meta dt { font-weight: 600; }
.ar-meta dd { margin: 0; }
.ar-review { color: var(--gold-soft); }

/* BODY */
.ar-body { background: var(--paper); padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); }
.ar-grid { display: grid; grid-template-columns: minmax(0, 3.5fr) minmax(0, 8.5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ar-toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.ar-toc h2 { margin: 0 0 var(--s-4); font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.ar-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ar-toc li { border-bottom: 1px solid var(--line); }
.ar-toc a { display: block; padding: 0.55rem 0; font-size: 0.9rem; line-height: 1.4; color: var(--text); text-decoration: none; }
.ar-toc a:hover { color: var(--gold-text); }
.ar-article { max-width: 42rem; font-size: 1.0625rem; }
.ar-article p { margin: 0 0 var(--s-5); line-height: 1.75; }
.ar-article h2 { margin: var(--s-8) 0 var(--s-4); font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.2; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.ar-article > h2:first-child { margin-top: 0; }
.ar-article a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
.ar-sources { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line-strong); }
.ar-sources h2 { margin: 0 0 var(--s-4); font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.ar-sources ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.ar-sources li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ar-sources li a { overflow-wrap: anywhere; }
.ar-disclaimer { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }

/* RELATED (ivory) */
.ar-related { background: var(--ivory); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.ar-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.ar-related__grid > div { padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.ar-related h2 { margin: 0 0 var(--s-3); font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.ar-related h3 { margin: 0 0 var(--s-3); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem); line-height: 1.25; }
.ar-related h3 a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.ar-related h3 a:hover { text-decoration-color: var(--gold); }
.ar-related p { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* CLOSING (light) */
.ar-closing { background: var(--ivory-2); color: var(--text); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.ar-closing h2 { color: var(--ink); max-width: 16ch; }
.ar-closing p:not(.eyebrow) { color: var(--text-muted); }

@media (max-width: 960px) {
  .ar-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .ar-toc { position: static; }
  .ar-related__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Stage 15E: let the closing CTAs wrap rather than clip inside the overflow-hidden closing band */
.ar-closing .closing__ctas .btn { white-space: normal; text-align: center; }
