/* Skelmore Consulting Group: research design system (2026 refresh).
   Built on the Skelmore wordmark: deep green (#006f45) and warm grey (#818285), with the teal
   accent from skelmore.com. Stone paper echoes the concrete imagery; the stepped mark before
   section labels echoes the staircase. A classical serif (Newsreader) carries headlines and
   text like the wordmark; condensed caps (IBM Plex Sans Condensed) carry labels like
   "CONSULTING GROUP". In charts, Chinese brands carry the one warm accent. */
:root {
  --paper: #f5f4ef;
  --paper-2: #eae9e2;
  --surface: #fbfaf7;
  --brand: #006f45;        /* Skelmore green (wordmark) */
  --brand-deep: #0b3b2a;   /* covers and bands */
  --brand-grey: #818285;   /* Skelmore grey (wordmark) */
  --teal: #009999;         /* skelmore.com accent */
  --on-brand: #ffffff;
  --on-brand-2: #c4d6cc;
  --ink: #17221d;
  --ink-2: #48534d;
  --ink-3: #747a76;
  --rule: #d5d6cf;
  --cn: #d4562a;           /* Chinese brands: the focus series */
  --jp: #2a6fd0;
  --kr: #009999;
  --us: #d99a00;
  --eu: #6a4fd3;
  --muted-series: #b9bdb5;
  --f-display: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --f-body: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --f-ui: "IBM Plex Sans Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --measure: 66ch;
  --wide: 1080px;
  --steps: linear-gradient(var(--brand), var(--brand)) 0 100% / 5px 4px no-repeat,
           linear-gradient(var(--brand), var(--brand)) 5px 100% / 5px 8px no-repeat,
           linear-gradient(var(--brand), var(--brand)) 10px 100% / 5px 12px no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101b17; --paper-2: #17241f; --surface: #14211c; --brand: #4cb487; --brand-deep: #0a1611;
    --brand-grey: #9a9c9e; --teal: #2bb3b0; --on-brand: #ffffff; --on-brand-2: #a9bdb2;
    --ink: #eef0ea; --ink-2: #bcc4bd; --ink-3: #8d958f; --rule: #2a3832;
    --cn: #e8693a; --jp: #3d7fe0; --kr: #0f9a8c; --us: #b9840f; --eu: #9282ec; --muted-series: #45524b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101b17; --paper-2: #17241f; --surface: #14211c; --brand: #4cb487; --brand-deep: #0a1611;
  --brand-grey: #9a9c9e; --teal: #2bb3b0; --on-brand: #ffffff; --on-brand-2: #a9bdb2;
  --ink: #eef0ea; --ink-2: #bcc4bd; --ink-3: #8d958f; --rule: #2a3832;
  --cn: #e8693a; --jp: #3d7fe0; --kr: #0f9a8c; --us: #b9840f; --eu: #9282ec; --muted-series: #45524b; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0938rem/1.6 var(--f-body);
  padding-inline: 20px; padding-block: 0 4rem; border-top: 4px solid var(--brand); }
a { color: inherit; }
.wrap { max-width: var(--wide); margin-inline: auto; }
.col { max-width: var(--measure); margin-inline: auto; }

/* Wordmark lockup (typeset; replace with the vector logo when supplied) */
.lockup { display: inline-grid; gap: 3px; text-decoration: none; color: var(--brand); justify-items: start; }
.lockup .lk-name { font: 500 1.75rem/0.9 var(--f-display); letter-spacing: -.01em; }
.lockup .lk-sub { font: 500 .56rem/1 var(--f-ui); letter-spacing: .34em; text-transform: uppercase; color: var(--brand-grey);
  border-top: 1px solid currentColor; padding-top: 4px; width: 100%; }
.endorse { font: 400 .78rem/1.3 var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }

/* Masthead */
.mast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem;
  border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 5; }
.mast nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font: 500 .8rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.mast nav a { text-decoration: none; color: var(--ink-2); }
.mast nav a:hover, .mast nav a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-block: 4rem 2rem; }
.kicker { font: 600 .78rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
  display: flex; align-items: flex-end; gap: .6rem; }
.kicker::before { content: ""; width: 15px; height: 12px; background: var(--steps); flex: none; }
h1 { font: 500 clamp(2.3rem, 5.6vw, 4.3rem)/1.02 var(--f-display); letter-spacing: -.02em; margin: .8rem 0 1.1rem; text-wrap: balance; max-width: 17ch; }
.dek { font-size: 1.28rem; line-height: 1.5; color: var(--ink-2); max-width: 52ch; margin: 0; }
.byline { margin-top: 1.4rem; font: 400 .85rem/1.4 var(--f-ui); color: var(--ink-3); letter-spacing: .02em; }

/* Key numbers */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--rule); margin-block: 2rem 3rem; }
.key { padding: 1.2rem 1rem 1.3rem 0; display: grid; gap: .4rem; align-content: start; }
.key + .key { padding-left: 1rem; border-left: 1px solid var(--rule); }
.key b { font: 500 2.6rem/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--brand); }
.key b.cn { color: var(--cn); }
.key span { font: 400 .9rem/1.4 var(--f-ui); color: var(--ink-2); }

/* Sections and findings */
section.chapter { padding-block: 2.5rem 1rem; border-top: 1px solid var(--rule); margin-top: 3rem; }
.chapter-label { font: 600 .78rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
  display: flex; align-items: flex-end; gap: .6rem; }
.chapter-label::before { content: ""; width: 15px; height: 12px; background: var(--steps); flex: none; }
h2 { font: 500 clamp(1.7rem, 3.5vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -.015em; margin: .6rem 0 1rem; text-wrap: balance; }
p { margin: 0 0 1rem; }
.figure { margin-block: 2rem 2.5rem; width: min(900px, calc(100vw - 40px)); position: relative; left: 50%; transform: translateX(-50%); }
.fig-head, .figure .source { max-width: 760px; }
.fig-head h3 { font: 600 1.3rem/1.25 var(--f-display); margin: 0 0 .3rem; text-wrap: balance; }
.fig-head p { font: 400 .95rem/1.45 var(--f-ui); color: var(--ink-2); margin: 0 0 .8rem; }
.fig-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.seg button { font: 500 .78rem/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: .5rem .8rem; background: transparent; color: var(--ink-2); border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.seg button:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn { font: 500 .74rem/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: .5rem .8rem; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--ink-2); cursor: pointer; margin-left: auto; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; max-width: 100%; height: auto; font-family: var(--f-ui); }
.source { font: 400 .78rem/1.45 var(--f-ui); color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: .5rem; margin-top: .6rem; }
.note { font: 400 .95rem/1.5 var(--f-body); color: var(--ink-2); background: var(--paper-2); padding: 1rem 1.2rem; border-left: 3px solid var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font: 400 .85rem/1 var(--f-ui); color: var(--ink-2); margin-bottom: .5rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }

/* Quotes from buyer talk */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-block: 1.5rem; }
.voice { margin: 0; border-left: 2px solid var(--brand); padding: .2rem 0 .2rem 1rem; font: italic 400 1.05rem/1.5 var(--f-body); color: var(--ink-2); }
.voice small { display: block; font: normal 400 .78rem/1.3 var(--f-ui); color: var(--ink-3); margin-top: .4rem; letter-spacing: .02em; }

/* Tooltip */
.tip { position: fixed; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--rule);
  padding: .5rem .65rem; border-radius: 2px; font: 400 .85rem/1.35 var(--f-ui); box-shadow: 0 4px 16px rgb(0 0 0 / .12); z-index: 20; max-width: 260px; }
.tip[hidden] { display: none; }
.tip b { font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font: 400 .9rem/1.3 var(--f-ui); font-variant-numeric: tabular-nums; }
table.data th { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
table.data th, table.data td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rule); }
table.data td.num, table.data th.num { text-align: right; }
.tablewrap { overflow-x: auto; }

footer { margin-top: 4rem; border-top: 2px solid var(--brand); padding-top: 1.5rem; font: 400 .85rem/1.5 var(--f-ui); color: var(--ink-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 940px) { .figure { width: auto; left: auto; transform: none; } }
@media (max-width: 560px) { .key + .key { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } .mast nav { display: none; } }
