/* ==========================================================================
   Insight article: /insights/offshore-helpdesk-vs-ai-fm-cost-comparison
   Long-form cost model in the v2 design. Reuses article.css (art-p, art-h2,
   art-quote, art-table + its phone card layout, art-win) and adds the
   article-only blocks with the `ia-` prefix (hero meta, hero chart, stats,
   table highlights, captions, sources, end CTA).
   Colours: --v2-* tokens, or the page tokens below (defined for both themes).
   ========================================================================== */
:root,
[data-theme="light"] {
  --os-warn: #B4570E;     /* "hidden costs" amber in the hero chart */
}
[data-theme="dark"] {
  --os-warn: #F8B042;
}

/* Hero ------------------------------------------------------------------- */
.ia-hero__inner {
  display: grid;
  gap: clamp(1.125rem, 0.9rem + 0.9vw, 1.625rem);   /* 18 → 26 */
  justify-items: start;
}
.ia-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--v2-fs-small);
  font-weight: 600;
  color: var(--v2-text-muted);
  text-decoration: none;
  transition: color var(--v2-dur) ease;
}
.ia-back:hover { color: var(--v2-accent-ink); }
.ia-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--v2-r-pill);
  border: 1px solid var(--v2-chip-border);
  font-size: var(--v2-fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--v2-text-muted);
}
.ia-pill--primary {
  border-color: var(--v2-accent-tint-border);
  background: var(--v2-accent-tint);
  color: var(--v2-accent-ink);
}
.ia-title {
  max-width: 1000px;
  font-size: clamp(2rem, 1.5rem + 2.1vw, 3.5rem);   /* 32 → 56: long headline */
  line-height: 1.1;
  text-wrap: balance;
}
.ia-deck { max-width: 820px; }

/* Byline / meta strip */
.ia-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: var(--v2-fs-small);
  color: var(--v2-text-muted);
}
.ia-meta strong { font-weight: 600; color: var(--v2-text); }
.ia-meta a { color: var(--v2-accent-ink); text-decoration: none; }
.ia-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ia-meta__dot { opacity: 0.6; }

/* Body column ---------------------------------------------------------- */
.ia-section { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ia-body { display: grid; gap: clamp(2rem, 1.6rem + 1.6vw, 3.25rem); }
.ia-prose { display: grid; gap: 20px; align-content: start; min-width: 0; }
.ia-prose .art-p strong { color: var(--v2-text); font-weight: 600; }
.ia-h2 {
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: clamp(1.625rem, 1.4rem + 0.95vw, 2.375rem);   /* 26 → 38 */
  line-height: 1.15;
}

/* Hero chart (inline SVG, colours from tokens) */
.ia-hero-art {
  padding: clamp(14px, 1rem + 1.4vw, 36px);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-card);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-frame);
}
.ia-hero-art svg { display: block; width: 100%; height: auto; max-height: 320px; }
.ia-c-accent { fill: var(--v2-accent-ink); }
.ia-c-text { fill: var(--v2-text); }
.ia-c-muted { fill: var(--v2-text-muted); }
.ia-c-faint { fill: var(--v2-text-muted); opacity: 0.8; }
.ia-c-line { stroke: var(--v2-line-soft); fill: none; }
.ia-c-bar { fill: var(--v2-line-soft); }
.ia-c-stop { stop-color: var(--v2-accent); }

/* Pull quotes (art-quote from article.css adds the accent rule) */
.ia-quote { margin-block: 12px; }
.ia-quote__text {
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);   /* 20 → 26 */
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--v2-text);
}

/* Stats */
.ia-stat {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-block: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--v2-line);
}
.ia-stat__num {
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: var(--v2-fs-statnum);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--v2-accent-ink);
}
.ia-stat__lbl { max-width: 680px; font-size: var(--v2-fs-ui); line-height: 1.55; color: var(--v2-text-muted); }
.ia-stat__lbl strong { color: var(--v2-text); font-weight: 600; }
.ia-stat-row {
  display: grid;
  gap: var(--v2-stack);
  grid-template-columns: 1fr;
  margin-block: 12px;
}
.ia-stat-row .ia-stat { margin-block: 0; }
@media (min-width: 700px) { .ia-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Divider, notes to editors, end CTA */
.ia-divider { margin-block: 20px; }
.ia-notes {
  display: grid;
  gap: 10px;
  max-width: 760px;
  font-size: var(--v2-fs-small);
  line-height: 1.6;
  color: var(--v2-text-muted);
}
.ia-notes__eyebrow { margin-bottom: 4px; font-weight: 600; }
.ia-notes strong { color: var(--v2-text); font-weight: 600; }
.ia-notes a { color: var(--v2-accent-ink); text-underline-offset: 3px; }
.ia-end-cta {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin-top: 28px;
  padding: clamp(28px, 1.2rem + 2.4vw, 48px);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-r-panel);
  background: var(--v2-banner-bg);
}
.ia-end-cta__title { margin: 0; }
.ia-end-cta__sub { max-width: 640px; }

/* Hero chart: amber hidden-cost caps + the HIGHEST pill */
.ia-c-warn { fill: var(--os-warn); }
.ia-c-warn-line { stroke: var(--os-warn); fill: none; }
.ia-c-pill { fill: var(--v2-btn-bg); }
.ia-c-pill-text { fill: var(--v2-btn-fg); }

/* Sub-headings, footnote refs, captions */
.ia-h3 { margin-top: 16px; color: var(--v2-text); }
.ia-ref {
  margin-left: 1px;
  font-size: 0.8em;
  color: var(--v2-accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.art-p a.ia-ref { text-decoration-thickness: 1px; }
.ia-caption {
  max-width: 760px;
  margin-top: -6px;
  font-size: var(--v2-fs-xs);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--v2-text-muted);
}
.ia-caption a { color: var(--v2-accent-ink); }

/* Comparison tables (art-table from article.css) */
.ia-table-wrap { margin-block: 8px; }
.ia-table td.ia-best {
  color: var(--v2-accent-ink);
  font-weight: 700;
}
.ia-table tbody th.ia-total { color: var(--v2-text); font-weight: 700; }
.ia-table tr.ia-row-total th,
.ia-table tr.ia-row-total td {
  background: var(--v2-accent-tint);
  border-top-color: var(--v2-accent-tint-border);
}
.ia-table--2col tbody th { width: auto; }
.ia-table--2col td { width: 30%; white-space: nowrap; }
.ia-table--3col tbody th { width: 30%; }
@media (max-width: 699px) {
  .ia-table--2col td { width: auto; white-space: normal; }
  .ia-table tr.ia-row-total { border-color: var(--v2-accent-tint-border); }
}

/* Sources & methodology */
.ia-sources {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0;
  padding-left: 24px;
  font-size: var(--v2-fs-small);
  line-height: 1.7;
  color: var(--v2-text-muted);
}
.ia-sources strong { color: var(--v2-text); font-weight: 600; }
.ia-sources a {
  color: var(--v2-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ia-sources a:hover { text-decoration-thickness: 2px; }
.ia-disclaimer {
  max-width: 760px;
  font-size: var(--v2-fs-xs);
  font-style: italic;
  line-height: 1.6;
  color: var(--v2-text-muted);
}
