
/* =========================================================
   ERLINSIGHTS | SHARED ARTICLE STYLESHEET
   ========================================================= */


/* =========================================================
   1. BRAND VARIABLES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17324d;
  --ink-soft: #4c5e70;
  --brand-blue: #24537d;

  --teal: #2b8a7e;
  --teal-logo: #55a895;
  --teal-light: #dff2ed;

  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e2e7e8;

  --gold: #d8a84e;
  --lavender: #b9addb;
}


/* =========================================================
   2. GLOBAL STYLES
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  text-underline-offset: 3px;
  text-decoration-color: #9bb8ca;
}

a:hover {
  color: var(--teal);
}


/* =========================================================
   3. PAGE AND ARTICLE CONTAINERS
   ========================================================= */

/* Standard article container */

.container {
  width: calc(100% - 40px);
  max-width: 800px;
  margin: 40px auto;
}

main.content {
  width: min(790px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Article content */

.article {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
}

/* Alternative layouts retained for older articles */

.site-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.article-wrap {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 55px;
}

.wrap {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}


/* =========================================================
   4. STANDARD ARTICLE HEADER
   ========================================================= */

.article-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.article-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

/* Brand */

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.article-brand:hover {
  color: var(--ink);
}

.article-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Four-colour brand mark */

.article-brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.article-brand-mark span {
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  opacity: 0.94;
}

.article-brand-mark span:nth-child(1) {
  top: 0;
  left: 0;
  background: var(--brand-blue);
}

.article-brand-mark span:nth-child(2) {
  top: 0;
  right: 0;
  background: var(--teal-logo);
}

.article-brand-mark span:nth-child(3) {
  bottom: 0;
  left: 0;
  background: var(--gold);
}

.article-brand-mark span:nth-child(4) {
  right: 0;
  bottom: 0;
  background: var(--lavender);
}

/* Header navigation */

.article-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.article-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--brand-blue);
  border-radius: 6px;
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.article-nav-button:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* Standard header button appearance */

.article-site-header .article-nav-button {
  min-height: 40px;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.article-site-header .article-nav-button:hover {
  background: #193e60;
  border-color: #193e60;
  color: var(--white);
  transform: translateY(-1px);
}


/* =========================================================
   5. LEGACY NAVIGATION
   ========================================================= */

.article-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-nav-brand {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.nav-btn {
  display: inline-block;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0 12px;
}

.brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* =========================================================
   6. ARTICLE HEADINGS AND INTRODUCTION
   ========================================================= */

.container h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.2;
}

.container h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-light);
  color: var(--brand-blue);
  font-size: 1.75rem;
  line-height: 1.3;
}

.container h3 {
  margin: 30px 0 10px;
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1.35;
}

/* Article-specific headings */

.article h2 {
  margin: 42px 0 14px;
  color: var(--brand-blue);
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article h3 {
  margin: 26px 0 8px;
  color: var(--teal);
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Category label */

.kicker {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Legacy category label */

.category {
  display: inline-block;
  margin: 15px 0 8px;
  padding: 5px 11px;
  border-radius: 3px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Article introduction */

.dek {
  max-width: 850px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.6;
}

.lead {
  color: #2d455a;
  font-size: 1.08rem;
}

/* Byline and metadata */

.byline {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 13px;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
}


/* =========================================================
   7. FEATURED IMAGES AND ARTICLE VISUALS
   ========================================================= */

/* Standard featured image */

.hero {
  width: 100%;
  max-width: 790px;
  margin: 36px auto 28px;
}

.hero img,
.hero svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero figcaption {
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
}

/* Older feature image class */

.feature {
  margin: 26px 0 34px;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.feature figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* Article illustrations */

.visual {
  width: min(1000px, calc(100% - 40px));
  margin: 28px auto 36px;
  overflow: hidden;
}

.visual svg,
.visual img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   8. ARTICLE BODY TEXT AND LINKS
   ========================================================= */

.container p {
  margin: 0 0 20px;
  font-size: 1.05rem;
}

.article p {
  margin: 0 0 18px;
}

.container a.source-link {
  color: var(--teal);
  text-decoration: underline;
}

.container a.source-link:hover {
  color: var(--brand-blue);
}


/* =========================================================
   9. ARTICLE LISTS AND TABLE OF CONTENTS
   ========================================================= */

.container ul,
.container ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.container li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.article ul,
.article ol {
  margin: 8px 0 20px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 9px;
}

/* Table of contents */

.toc {
  margin: 28px 0 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.toc ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.toc li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Executive playbook containers */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

/* Ordered steps must remain in one vertical column */

ol.steps {
  display: block;
  columns: 1;
  column-count: 1;
  padding-left: 25px;
}

ol.steps li {
  width: 100%;
  break-inside: avoid;
}

/* Individual step cards */

.step {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.step h3 {
  margin-top: 0;
}

/* Three customer signal cards in one row */
.steps.signal-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Five evaluation framework cards in one column */
.steps {
  grid-template-columns: 1fr;
}

.stage-label {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* =========================================================
   10. STATISTICS AND DATA CARDS
   ========================================================= */

/* Statistics grid */

.stats-container,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(
    var(--stat-columns, 3),
    minmax(0, 1fr)
  );
  gap: var(--stat-gap, 13px);
  margin: 26px 0 30px;
}

/* Individual statistic card */

.stat-card {
  min-width: 0;
  min-height: var(--stat-card-height, 150px);
  padding: 17px 16px;
  border: 2px solid var(--card-accent, var(--teal-logo));
  border-top: 5px solid var(--card-accent, var(--teal-logo));
  border-radius: 10px;
  background: var(--card-background, var(--white));
  color: var(--ink);
  text-align: var(--stat-align, left);
}

/* Automatic colour rotation */

.stat-card:nth-child(4n + 1) {
  --card-accent: var(--teal-logo);
}

.stat-card:nth-child(4n + 2) {
  --card-accent: var(--gold);
}

.stat-card:nth-child(4n + 3) {
  --card-accent: var(--lavender);
}

.stat-card:nth-child(4n + 4) {
  --card-accent: var(--brand-blue);
}

/* Statistic number */

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--stat-number-color, var(--brand-blue));
  font-size: var(--stat-number-size, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Statistic description */

.stat-label {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Source and supporting note */

.stat-note,
.stat-source {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.stat-source {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container p.stat-source {
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Optional card backgrounds */

.stat-card.soft-teal {
  --card-background: var(--teal-light);
}

.stat-card.soft-blue {
  --card-background: #edf3f5;
}

/* Legacy statistics layout */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 30px;
}

.stat {
  min-width: 0;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-logo);
  border-radius: 9px;
  background: var(--white);
}

.stat .number {
  display: block;
  margin-bottom: 9px;
  color: var(--brand-blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.stat .label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}


/* =========================================================
   11. CALLOUTS, NOTES AND TAKEAWAYS
   ========================================================= */

/* Standard callout */

.callout-box {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--teal-logo);
  border-radius: 6px;
  background: var(--teal-light);
}

.callout-box p {
  font-style: italic;
}

.callout-box p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

/* Legacy callout */

.callout {
  margin: 24px 0;
  padding: 17px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 9px 9px 0;
  background: var(--teal-light);
}

/* Article note */

.note {
  margin: 21px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 3px;
  background: var(--teal-light);
}

/* Key takeaway */

.takeaway {
  margin: 21px 0;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.takeaway strong {
  color: var(--teal);
}

.small-note {
  color: var(--ink-soft);
  font-size: 0.84rem;
}


/* =========================================================
   12. ARTICLE TABLES
   ========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--brand-blue);
  color: var(--white);
  font-weight: 700;
}

.table-wrap td {
  color: var(--ink-soft);
}

.table-wrap tbody tr:nth-child(even) {
  background: #f5f8fa;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}


/* =========================================================
   13. ARTICLE CTA
   ========================================================= */

/* Base CTA component */

.cta,
.linkedin-cta,
.connect {
  --cta-background: var(--teal-light);
  --cta-text: var(--ink);
  --cta-heading: var(--ink);
  --cta-description: var(--ink-soft);
  --cta-button-background: var(--teal);
  --cta-button-text: var(--white);

  margin: var(--cta-margin, 42px 0 34px);
  padding: var(--cta-padding, 26px);
  border: 1px solid var(--cta-border, var(--line));
  border-radius: var(--cta-radius, 10px);
  background: var(--cta-background);
  color: var(--cta-text);
  text-align: var(--cta-align, left);
}

/* CTA heading */

.cta h2,
.linkedin-cta h2,
.connect h2 {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  color: var(--cta-heading);
  font-size: var(--cta-heading-size, 1.45rem);
  line-height: 1.3;
}

/* CTA description */

.cta p,
.linkedin-cta p,
.connect p {
  margin: 0 0 18px;
  color: var(--cta-description);
}

/* CTA buttons */

.cta-button,
.linkedin-btn,
.button {
  display: inline-block;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--cta-button-background);
  color: var(--cta-button-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.cta-button:hover,
.linkedin-btn:hover,
.button:hover {
  background: var(--cta-button-hover, var(--brand-blue));
  color: var(--cta-button-hover-text, var(--white));
  transform: translateY(-1px);
}

/* CTA themes */

.cta-light {
  --cta-background: var(--teal-light);
  --cta-text: var(--ink);
  --cta-heading: var(--ink);
  --cta-description: var(--ink-soft);
  --cta-button-background: var(--teal);
  --cta-button-text: var(--white);
  --cta-button-hover: var(--brand-blue);
}

.cta-dark {
  --cta-background: var(--ink);
  --cta-text: var(--white);
  --cta-heading: var(--white);
  --cta-description: #e1eaf0;
  --cta-button-background: var(--teal-logo);
  --cta-button-text: #092c36;
  --cta-button-hover: #79c5b5;
  --cta-button-hover-text: #092c36;
  --cta-border: var(--ink);
}

.cta-blue {
  --cta-background: var(--brand-blue);
  --cta-text: var(--white);
  --cta-heading: var(--white);
  --cta-description: #e1eaf0;
  --cta-button-background: var(--white);
  --cta-button-text: var(--brand-blue);
  --cta-button-hover: var(--teal-light);
  --cta-button-hover-text: var(--ink);
  --cta-border: var(--brand-blue);
}

.cta-white {
  --cta-background: var(--white);
  --cta-text: var(--ink);
  --cta-heading: var(--brand-blue);
  --cta-description: var(--ink-soft);
  --cta-button-background: var(--teal);
  --cta-button-text: var(--white);
  --cta-button-hover: var(--brand-blue);
}

/* CTA alignment and sizing */

.cta-center {
  --cta-align: center;
}

.cta-compact {
  --cta-padding: 18px;
}

.cta-wide {
  --cta-padding: 34px;
}

/* Outline button */

.cta-button-outline {
  --cta-button-background: transparent;
  --cta-button-text: var(--brand-blue);
  border-color: var(--brand-blue);
}

.cta-button-outline:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* Multiple CTA buttons */

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.article-cta .cta-button {
  margin: 0;
}

/* Dark CTA button refinement */

.cta-dark {
  border-color: var(--ink);
}

.cta-dark .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
}


/* =========================================================
   14. REFERENCES
   ========================================================= */

.refs {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.refs li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.refs a {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Legacy reference class */

.references {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.references h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.references ol {
  padding-left: 22px;
}

.references li {
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}


/* =========================================================
   15. STANDARD ARTICLE FOOTER
   ========================================================= */

.article-site-footer {
  width: 100%;
  margin: 0;
  padding: 32px 24px;
  background: var(--ink);
  color: var(--white);
}

.article-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.article-footer-brand {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.article-footer-tagline {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: right;
}

/* Legacy footer classes */

footer.wrap {
  margin-top: 50px;
  margin-bottom: 0;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

.site-footer {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 19px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}


/* =========================================================
   16. ALTERNATIVE ARTICLE HERO LAYOUT
   ========================================================= */

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 100%;
  margin: 36px 0 48px;
}

.article-hero-content {
  min-width: 0;
}

.article-hero h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.article-eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-dek {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-byline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.article-hero-art {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

.article-hero-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}


/* =========================================================
   17. FORMULA DERIVATION
   Supports division and division + multiplication
   ========================================================= */

.formula-derivation {
  margin: 28px 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal-logo);
  border-radius: 10px;
  background: var(--paper);
}

/* Equation row */

.formula-line {
  display: grid;
  grid-template-columns: max-content 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin: 18px 0;
  color: var(--ink);
  font-size: 1.05rem;
}

/* Formula label */

.formula-left {
  text-align: right;
}

/* Equals sign */

.formula-operator {
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

/* Right side */

.formula-right {
  min-width: 0;
}

/* Fraction */

.formula-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  text-align: left;
  line-height: 1.5;
}

/* Numerator and denominator */

.formula-numerator,
.formula-denominator {
  display: block;
  padding: 5px 0;
}

/* Standard fraction line */

.formula-numerator {
  width: 100%;
  border-bottom: 2px solid var(--brand-blue);
}

/* Final answer */

.formula-answer {
  color: var(--teal);
  font-size: 1.5rem;
}

/* Extended formula: division followed by multiplication */

.formula-line-extended {
  grid-template-columns: max-content 30px minmax(0, 1fr);
  column-gap: 16px;
}

.formula-line-extended .formula-right {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
}

.formula-line-extended .formula-fraction {
  width: 220px;
  flex: 0 0 220px;
}

/* Extended numerator and division bar */

.formula-line-extended .formula-numerator {
  position: relative;
  width: 100%;
  padding: 5px 0 9px;
  border-bottom: none;
  white-space: normal;
}

.formula-line-extended .formula-numerator::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  border-bottom: 2px solid var(--brand-blue);
  content: "";
}

/* Extended denominator */

.formula-line-extended .formula-denominator {
  padding: 5px 0;
}

/* Multiplication factor */

.formula-line-extended .formula-multiplier {
  margin: 0;
  padding-top: 5px;
  color: var(--teal);
  font-size: 1.2rem;
  white-space: nowrap;
}


/* =========================================================
   18. RESPONSIVE LAYOUT
   ========================================================= */

/* Tablets and smaller screens */

@media (max-width: 900px) {
  .stats-container,
  .stat-grid {
    grid-template-columns: repeat(
      min(2, var(--stat-columns, 3)),
      minmax(0, 1fr)
    );
  }
}

/* Tablet and mobile article hero */

@media (max-width: 800px) {
  .article-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 24px 0 36px;
  }

  .article-hero-art img {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile */

@media (max-width: 700px) {

  /* Header */

  .article-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 30px);
    min-height: 68px;
    gap: 10px;
  }

  /* Homepage button */

  .article-site-header .article-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--brand-blue);
    border-radius: 999px;
    background: var(--brand-blue);
    color: var(--white) !important;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .article-site-header .article-brand:hover {
    background: #193e60;
    color: var(--white) !important;
  }

  .article-site-header .article-brand-name {
    color: var(--white) !important;
    font-size: 0.95rem;
    font-weight: 800;
  }

  .article-site-header .article-brand-mark {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
  }

  .article-site-header .article-brand-mark span {
    width: 14px;
    height: 14px;
  }

  .article-header-actions {
    flex-shrink: 0;
  }

  /* All blog posts button */

  .article-site-header .article-nav-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--brand-blue) !important;
    border-radius: 999px;
    background: var(--brand-blue) !important;
    color: var(--white) !important;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .article-site-header .article-nav-button:hover {
    background: #193e60 !important;
    border-color: #193e60 !important;
    color: var(--white) !important;
  }

  /* Main article content */

  main.content {
    width: calc(100% - 36px);
    padding-bottom: 30px;
  }

  main.content p {
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.75;
  }

  main.content h2 {
    margin-top: 32px;
    margin-bottom: 13px;
    font-size: 1.4rem;
    line-height: 1.3;
  }

  main.content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  /* Hero */

  .hero {
    width: 100%;
    margin: 26px auto 22px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    line-height: 1.22;
  }

  .hero .dek {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* Illustration */

  .visual {
    width: calc(100% - 36px);
    margin: 20px auto 26px;
  }

  /* Table of contents */

  .toc {
    margin: 22px 0 28px;
    padding: 17px;
  }
  
  /* Statistics: one column on mobile */

  .stats-container,
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 26px;
  }

  .stat-card {
    min-height: 0;
    padding: 16px;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .stat-source,
  .stat-note {
    font-size: 0.75rem;
  }
  
  /* Legacy statistics */

  .stats {
    gap: 10px;
  }

  /* Executive playbook */

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .steps.signal-cards {
  grid-template-columns: 1fr;
}
  

  /* CTA */

  .cta,
  .linkedin-cta,
  .connect {
    padding: 20px;
  }

  .cta-dark {
    padding: 22px 18px;
  }

  .cta-dark h2 {
    font-size: 1.3rem;
  }

  .cta-dark .cta-button {
    width: 100%;
    box-sizing: border-box;
  }

  .article-cta {
    flex-direction: column;
  }

  .article-cta .cta-button {
    width: 100%;
  }

  /* Formula */

  .formula-derivation {
    padding: 18px 10px;
  }

  .formula-line {
    grid-template-columns: max-content 22px minmax(0, 1fr);
    column-gap: 6px;
    font-size: 0.9rem;
  }

  .formula-line-extended {
    column-gap: 6px;
  }

  .formula-line-extended .formula-right {
    gap: 3px;
  }

  .formula-line-extended .formula-fraction {
    width: 170px;
    flex-basis: 170px;
  }

  .formula-line-extended .formula-multiplier {
    font-size: 1rem;
  }

  /* Footer */

  .article-site-footer {
    padding: 28px 20px;
  }

  .article-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-footer-copyright {
    text-align: left;
  }
}


/* =========================================================
   19. EXTRA-SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  /* Header */

  .article-header-inner {
    width: calc(100% - 20px);
    gap: 6px;
  }

  .article-site-header .article-brand {
    padding: 7px 9px;
    gap: 5px;
  }

  .article-site-header .article-brand-mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .article-site-header .article-brand-mark span {
    width: 15px;
    height: 15px;
  }

  .article-site-header .article-brand-name {
    font-size: 0.85rem;
  }

  .article-site-header .article-nav-button {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  /* Article widths */

  .hero,
  main.content,
  .visual {
    width: calc(100% - 30px);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  /* Legacy statistics */

  .stats {
    gap: 8px;
  }
}


/* =========================================================
   20. SEMANTIC HTML, ACCESSIBILITY AND SUPPORTING CONTENT
   Additive styles: preserves existing article and legacy classes
   ========================================================= */

/* Semantic content elements */
article {
  min-width: 0;
}

section {
  scroll-margin-top: 100px;
}

/* Supplementary content.
   Use class="article-aside" when the aside needs a visible panel. */
.article-aside,
aside.article-aside {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-logo);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-soft);
}

.article-aside h2,
.article-aside h3 {
  margin-top: 0;
  color: var(--brand-blue);
}

.article-aside > :last-child {
  margin-bottom: 0;
}

/* Navigation landmarks.
   Keep layout decisions in the existing navigation classes. */
nav {
  min-width: 0;
}

nav a {
  text-underline-offset: 3px;
}

/* Table of contents: supports <nav class="toc"> and <aside class="toc"> */
.toc {
  scroll-margin-top: 100px;
}

.toc h2,
.toc h3 {
  margin-top: 0;
  color: var(--brand-blue);
}

.toc a {
  color: var(--brand-blue);
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Quotations */
blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 9px 9px 0;
  background: var(--teal-light);
  color: var(--ink-soft);
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--brand-blue);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
}

/* Figures not already covered by the existing hero and feature styles */
figure:not(.hero):not(.feature) {
  max-width: 100%;
  margin: 28px auto;
}

figure img {
  max-width: 100%;
  height: auto;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Inline emphasis */
strong,
b {
  color: var(--ink);
  font-weight: 700;
}

em,
i {
  color: inherit;
}

/* Expandable FAQ and supplementary details */
details {
  margin: 16px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 12px;
}

details > :last-child {
  margin-bottom: 0;
}

/* Forms and controls */
input,
textarea,
select {
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd5da;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

button {
  font: inherit;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Visible keyboard focus for links, controls and interactive summaries */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact supporting content on mobile */
@media (max-width: 700px) {
  .article-aside,
  aside.article-aside {
    margin: 22px 0;
    padding: 16px;
  }

  blockquote {
    margin: 22px 0;
    padding: 15px 17px;
  }

  details {
    padding: 13px 15px;
  }
}

