/* ===========================================================================
   Theme — Report 2026-11, "The Economics of Innovation Adoption"

   Aesthetic: curve-paper. A cool notebook ground, teal for the learning
   curve, coral for the shocks, a friendly Fraunces display face and soft
   rounded cards. Consumer report: warmer, rounder, easier on the eye than
   the series' more formal themes.

   Loaded after report.css: tokens first (which also re-colours every chart,
   since report.js reads the palette from them), then the rules that assume
   the default surface.
   =========================================================================== */

:root {
  --bg: #f7f9f8;
  --bg-card: #ffffff;
  --bg-accent: #eef4f2;
  --bg-dark: #14302b;
  --bg-dark-2: #0e2420;

  --text: #1b2422;
  --text-secondary: #3d4a46;
  --text-muted: #6e7a76;
  --text-inverse: #f2f7f5;

  --primary: #0f5c54;
  --primary-light: #2c857a;
  --accent: #e0654a;
  --accent-light: #ef8a70;

  --border: #d8e2de;
  --border-light: #e7efec;
  --rule: #b9c7c2;

  --chart-blue: #2c6fbb;
  --chart-blue-light: #5b93d0;
  --chart-gold: #d99a2b;
  --chart-red: #e0654a;
  --chart-teal: #0f5c54;
  --chart-gray: #8b9591;
  --chart-orange: #e8853f;
  --chart-purple: #6a5bb0;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "system-ui", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max-width: 940px;
}

body { font-size: 1.03rem; line-height: 1.74; }

::selection { background: rgba(15, 92, 84, 0.15); }
:where(a, button, [tabindex]):focus-visible { outline-color: var(--primary); }

a { color: var(--primary); }
a:hover { color: var(--accent); }

.progress__bar { background: var(--primary); }
.skip-link { background: var(--primary); }

/* --- masthead: a friendly curve -------------------------------------------- */

.masthead {
  background: var(--bg);
  color: var(--text);
  border-top: 8px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem var(--gutter) 0;
}
.masthead .overline {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.masthead h1 {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 19ch;
  font-size: clamp(1.9rem, 4.8vw, 2.7rem);
}
.masthead .subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 54ch;
}
.masthead .strapline {
  border-left: 4px solid var(--accent);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
}
.masthead .meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 0 1px;
  margin-top: 2.2rem;
  padding-top: 0;
  border-top: 0;
  background: var(--border-light);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.7rem;
}
.masthead .meta-row div {
  background: var(--bg);
  border-top: 3px solid var(--primary);
  padding: 0.8rem 0.9rem 1.1rem 0;
}
.masthead .meta-row strong {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
}

/* --- sticky nav ------------------------------------------------------------ */

.sticky-nav {
  background: rgba(247, 249, 248, 0.96);
  border-bottom: 2px solid var(--primary);
}
.nav-inner a {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}
.nav-inner a:hover { color: var(--primary); }
.nav-inner a.is-active { color: var(--primary); border-bottom-color: var(--accent); }

/* --- section headings: a curve-green underline ----------------------------- */

section > h2 {
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.55rem;
}
section > h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--primary);
}
section > .section-dek {
  font-style: italic;
  font-family: var(--serif);
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 66ch;
}
section > h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.4rem 0 0.7rem;
}
section > h4 { color: var(--accent); font-family: var(--mono); font-size: 0.72rem; }

.section-rule { border-top: 1px solid var(--rule); margin: 3.2rem 0 3.4rem; }

/* --- abstract -------------------------------------------------------------- */

.abstract {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 10px;
}
.abstract h2 { color: var(--primary); }

/* --- statistics: rounded tiles --------------------------------------------- */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.1rem;
}
.stat-card .stat-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.stat-card .stat-label { color: var(--text-secondary); font-size: 0.79rem; }

/* --- executive cards ------------------------------------------------------- */

.exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.4rem;
}
.exec-card .exec-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1;
}
.exec-card .exec-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.13rem;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 0.8rem 0 0.5rem;
}

/* --- charts ---------------------------------------------------------------- */

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.chart-container .chart-label {
  color: var(--primary);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-light);
}
.chart-container .chart-caption {
  font-style: normal;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}
.schematic-wrap { background: var(--bg-card); }

/* --- pull quote: a friendly aside ------------------------------------------ */

.pull-quote {
  position: relative;
  background: var(--bg-accent);
  border: 0;
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 1.7rem 1.8rem 1.5rem 2.3rem;
  margin: 2.8rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 46ch;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 0.9rem;
  top: 0.3rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
  font-family: var(--serif);
}
.pull-quote .attribution {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 1rem;
  font-weight: 500;
}

/* --- callouts -------------------------------------------------------------- */

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.3rem 1.45rem;
}
.callout .callout-title { color: var(--accent); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.12em; }
.callout strong { color: var(--primary); }
.callout--warn { border-left-color: var(--chart-red); }
.callout--warn .callout-title { color: var(--chart-red); }

/* --- tables ---------------------------------------------------------------- */

.data-table thead { background: var(--primary); color: #fff; }
.data-table thead th { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.02em; }
.data-table tbody tr:nth-child(even) { background: var(--bg-accent); }
.data-table tbody tr:hover { background: rgba(224, 101, 74, 0.08); }
.data-table tbody th { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.table-caption { color: var(--primary); font-weight: 500; font-size: 0.62rem; font-family: var(--mono); letter-spacing: 0.02em; }

/* --- references and end matter -------------------------------------------- */

.ref-list .ref-org { color: var(--primary); font-size: 0.6rem; }
.endmatter h2 { color: var(--primary); border-bottom-color: var(--rule); }
.endmatter .kw {
  background: var(--bg-accent);
  border-color: var(--border-light);
  font-family: var(--mono);
  font-size: 0.64rem;
}
.endmatter dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.02em; }

/* --- footer ---------------------------------------------------------------- */

.report-footer { border-top: 6px solid var(--primary); }
.footer-inner h3 { color: #fff; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.cite-box { border-left-color: var(--accent-light); }

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 760px) {
  .masthead .meta-row div { padding-right: 0.6rem; }
  .nav-inner a { font-size: 0.62rem; }
  .pull-quote { padding-left: 2rem; }
}

/* --- print ----------------------------------------------------------------- */

@media print {
  .masthead { border-top: 4px solid #333; }
  .masthead .overline { background: #333 !important; }
  .pull-quote { background: #f4f4f4 !important; border-left-color: #666; color: #000 !important; }
  .pull-quote::before { color: #666; }
}
