/* ======================================================================
   Self-hosted webfonts (OFL) — emitted to /static/fonts/ by `ingest site`.
   No third-party CDN: a Finnish public-data site should not leak requests
   to Google. latin covers ä/ö; latin-ext covers the rest of the names.
   unicode-range values match Google Fonts' latin / latin-ext subset cuts.
   ====================================================================== */

/* --- Source Serif 4 (headlines) --- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/source-serif-4-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/source-serif-4-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/source-serif-4-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/source-serif-4-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* --- IBM Plex Sans (UI / body) --- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* --- IBM Plex Mono (figures) --- */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ======================================================================
   Toimialatieto — visual system
   Register: deep-navy government/bank authority over clean fintech body
   Type: Source Serif 4 (headlines) · IBM Plex Sans (UI) · IBM Plex Mono (figures)
   ====================================================================== */

:root {
  --paper:        #F6F8FA;
  --surface:      #FFFFFF;
  --ink:          #0C1A2B;
  --ink-soft:     #33485E;
  --muted:        #687A8D;
  --faint:        #93A2B2;
  --line:         #E4EAF0;
  --line-strong:  #D2DBE4;

  --navy:         #0E2A47;
  --navy-deep:    #08203A;
  --navy-line:    #234767;

  --accent:       #2F6DA6;   /* steel blue — EBIT bars, links, focus */
  --accent-soft:  #Bcd3e6;
  --roe:          #4E90A8;   /* secondary steel-teal — ROE bars */

  --pos:          #2F7A56;   /* muted institutional green */
  --neg:          #B14A38;   /* muted institutional red */

  --shadow-card:  0 1px 2px rgba(12,26,43,.04), 0 8px 24px -16px rgba(12,26,43,.18);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ----------------------------------------------------------------- Masthead */
.masthead {
  background: var(--navy);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #EAF1F8;
  border-bottom: 3px solid var(--accent);
}
.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.brand .mark .dot { color: var(--accent-soft); }
.brand .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92AAC4;
  border-left: 1px solid var(--navy-line);
  padding-left: 12px;
}
.masthead nav { display: flex; align-items: center; gap: 26px; }
.masthead nav a {
  font-size: 13px;
  color: #B7C7D9;
  letter-spacing: 0.01em;
  transition: color .15s;
}
.masthead nav a:hover { color: #FFFFFF; }
.masthead .src {
  font-size: 12px;
  color: #8AA1BA;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.masthead .src b { color: #D6E2EE; font-weight: 500; }
.src-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(47,122,86,.25); }

/* ----------------------------------------------------------------- Hero */
.hero {
  background: var(--navy);
  background: linear-gradient(180deg, var(--navy-deep) 0%, #0B2440 100%);
  color: #EAF1F8;
  padding: 56px 0 84px;
  position: relative;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6E8AA8;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 19ch;
  color: #FFFFFF;
  text-wrap: balance;
}
.hero p.lede {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: #B9CADC;
}

/* KPI strip — floats over the hero/body seam */
.kpis {
  max-width: var(--maxw);
  margin: -48px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
/* Landing shows three KPIs (no company count); the responsive rules below still
   collapse it to two columns on narrow screens (they appear later in source). */
.landing-kpis { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); padding: 22px 26px; }
.kpi .k-label {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.kpi .k-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.kpi .k-value small { font-size: 16px; color: var(--muted); margin-left: 2px; }
.kpi .k-sub { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }

/* ----------------------------------------------------------------- Controls */
.controls {
  margin-top: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.controls .title-block h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
}
.controls .title-block p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.search {
  position: relative;
  flex: 0 0 320px;
  max-width: 100%;
}
.search input {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 14px 11px 38px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,109,166,.14); }
.search input::placeholder { color: var(--faint); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }

/* Sector filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip .c-count { color: var(--faint); margin-left: 6px; font-family: var(--mono); font-size: 11px; }
.chip.active .c-count { color: #9FB6CC; }

/* ----------------------------------------------------------------- Table */
.table-wrap {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
table.data { width: 100%; border-collapse: collapse; }

table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F1F5F9;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 13px 18px;
  white-space: nowrap;
  user-select: none;
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--accent); }
th .arrow { display: inline-block; width: 10px; margin-left: 5px; color: var(--accent); opacity: 0; transition: opacity .12s; font-size: 10px; }
th.sorted .arrow { opacity: 1; }
th.num, td.num { text-align: right; }
th.num .arrow { margin-left: 4px; }

table.data tbody td {
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  height: 56px;
  vertical-align: middle;
}
table.data tbody tr { transition: background .12s; cursor: pointer; }
table.data tbody tr:hover { background: #F4F8FC; }
table.data tbody tr:last-child td { border-bottom: none; }

.rank { font-family: var(--mono); font-size: 13px; color: var(--faint); font-feature-settings: "tnum" 1; width: 34px; }

.toimiala { min-width: 280px; }
.toimiala .row1 { display: flex; align-items: center; gap: 10px; }
.code-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: #EAF1F8;
  border: 1px solid #D6E4F0;
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}
.toimiala .name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.toimiala .sector {
  font-size: 12px;
  color: var(--faint);
  margin-top: 3px;
}

/* metric cell: number + bar */
.metric { width: 150px; }
.metric .val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  text-align: right;
  letter-spacing: -0.01em;
}
.metric .val.neg { color: var(--neg); }
.bar-track {
  margin-top: 7px;
  height: 5px;
  background: #EDF1F5;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 3px; }
.bar-ebit { background: var(--accent); }
.bar-ebit.neg { background: var(--neg); }
.bar-roe { background: var(--roe); }
.bar-roe.neg { background: var(--neg); }

/* growth: diverging bar around center baseline */
.growth { width: 150px; }
.growth .val { font-family: var(--mono); font-size: 14px; font-weight: 500; text-align: right; font-feature-settings: "tnum" 1; }
.growth .val.pos { color: var(--pos); }
.growth .val.neg { color: var(--neg); }
.growth .val .glyph { font-size: 11px; margin-right: 3px; }
.diverge {
  margin-top: 7px;
  height: 5px;
  position: relative;
  background: #EDF1F5;
  border-radius: 3px;
}
.diverge .center { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: var(--line-strong); }
.diverge .seg { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.diverge .seg.pos { left: 50%; background: var(--pos); }
.diverge .seg.neg { right: 50%; background: var(--neg); }

.count-cell { font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft); text-align: right; font-feature-settings: "tnum" 1; width: 90px; }
.count-cell small { color: var(--faint); font-size: 11px; }

.year-cell { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; width: 64px; font-feature-settings: "tnum" 1; }
.year-cell .stale { color: var(--faint); }

.go-cell { width: 30px; text-align: right; color: var(--faint); }
table.data tbody tr:hover .go-cell { color: var(--accent); }

.empty { padding: 60px; text-align: center; color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- Footer */
.site-foot {
  margin-top: 40px;
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-foot .shell { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot a { color: var(--accent); }
.site-foot a:hover { text-decoration: underline; }
.site-foot .note { max-width: 60ch; line-height: 1.6; }

/* ======================================================================
   DETAIL PAGE
   ====================================================================== */

/* breadcrumb sits inside the navy hero */
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #7E99B6;
  margin: 0 0 26px;
}
.crumb a { color: #9FB6CC; transition: color .15s; }
.crumb a:hover { color: #fff; }
.crumb .sep { color: #44607E; }
.crumb .here { color: #D6E2EE; }

.detail-hero { padding: 40px 0 96px; }
.detail-hero .id-row { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.detail-hero .id-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: #Bcd3e6;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 4px 11px;
}
.detail-hero .id-sector {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E8AA8;
}
.detail-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 22ch;
  color: #fff;
  text-wrap: balance;
}

/* context bar: size class + year tabs */
.context-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--navy-line);
}
.ctx-item { display: flex; align-items: baseline; gap: 9px; }
.ctx-item .ctx-label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6E8AA8; }
.ctx-item .ctx-value { font-family: var(--mono); font-size: 14px; color: #E4EEF7; }
.year-tabs { display: inline-flex; gap: 4px; }
.year-tab {
  font-family: var(--mono);
  font-size: 13px;
  color: #9FB6CC;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 4px 11px;
  cursor: pointer;
  transition: all .14s;
}
.year-tab:hover { border-color: var(--accent); color: #fff; }
.year-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* detail summary KPIs reuse .kpis grid; add an accent rail on first */
.detail-kpis .kpi { position: relative; }
.kpi .k-trend { font-family: var(--mono); font-size: 12.5px; margin-top: 8px; }
.kpi .k-trend.pos { color: var(--pos); }
.kpi .k-trend.neg { color: var(--neg); }

/* section heading */
.section-head { margin: 44px 0 4px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 64ch; }

/* distribution table */
.dist-wrap {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
table.dist-table { width: 100%; border-collapse: collapse; }
table.dist-table thead th {
  background: #F1F5F9;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 13px 18px;
  white-space: nowrap;
}
table.dist-table thead th.tnum { text-align: right; width: 72px; }
table.dist-table thead th.tmed { text-align: right; width: 86px; color: var(--accent); }
table.dist-table thead th.tdist { text-align: left; }
table.dist-table thead th.tname { text-align: left; }

table.dist-table tbody td { border-bottom: 1px solid var(--line); padding: 16px 18px; vertical-align: middle; }
table.dist-table tbody tr:last-child td { border-bottom: none; }
table.dist-table tbody tr:hover { background: #F8FBFD; }

.dt-name { font-size: 14.5px; font-weight: 500; color: var(--ink); min-width: 190px; }
.dt-name small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 400; margin-top: 2px; letter-spacing: 0.04em; }

.dt-cell { font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft); text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.dt-cell.med { color: var(--accent); font-weight: 500; font-size: 14.5px; }
.dt-cell.neg { color: var(--neg); }

/* the distribution plot */
.dist-col { width: 38%; min-width: 260px; padding-right: 28px !important; }
.dist {
  position: relative;
  height: 30px;
}
.dist-axis {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
}
.dist-whisker {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 2px; background: var(--line-strong); border-radius: 2px;
}
.dist-box {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 14px; background: rgba(47,109,166,.16);
  border: 1px solid rgba(47,109,166,.4); border-radius: 4px;
}
.dist-cap {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 2px; height: 9px; background: var(--faint); border-radius: 2px;
}
.dist-median {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(47,109,166,.12);
}
.dist-zero {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 1px; height: 24px; background: var(--neg); opacity: .5;
}
.dist-zero::after {
  content: "0"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; color: var(--neg); opacity: .8;
}

/* methodology note card */
.method {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.method .m-item { background: var(--surface); padding: 22px 24px; }
.method .m-item h3 {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px;
}
.method .m-item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* legend under distribution heading */
.dist-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lg .swatch { display: inline-block; border-radius: 2px; }
.lg .sw-box { width: 18px; height: 11px; background: rgba(47,109,166,.16); border: 1px solid rgba(47,109,166,.4); }
.lg .sw-med { width: 3px; height: 14px; background: var(--accent); }
.lg .sw-whisker { width: 18px; height: 2px; background: var(--line-strong); }

@media (max-width: 820px) {
  .method { grid-template-columns: 1fr; }
  .dist-col { min-width: 200px; }
  .dt-p10, .dt-p90, th.tp10, th.tp90 { display: none; }
}

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .shell { padding: 0 18px; }
  .kpis { padding: 0 18px; grid-template-columns: repeat(2, 1fr); }
  .masthead nav { display: none; }
  .col-hide { display: none; }
  .table-wrap { overflow-x: auto; }
}

/* ======================================================================
   Server-rendered (no-JS) adjustments
   ====================================================================== */

/* Detail summary KPI colouring for the signed growth figure. */
.kpi .k-value.pos { color: var(--pos); }
.kpi .k-value.neg { color: var(--neg); }

/* Year tabs are real <a> links (each year is its own static page). */
a.year-tab { display: inline-block; }
a.year-tab.active { pointer-events: none; }

/* Landing rows: the industry name and the trailing arrow are links to the
   cohort page (no row-level onclick, since the site ships without JS). */
.toimiala .name a { color: var(--ink); transition: color .12s; }
.toimiala .name a:hover { color: var(--accent); }
.go-cell a { color: inherit; display: inline-block; }
table.data tbody tr:hover .toimiala .name a { color: var(--accent); }

/* Empty/degraded distribution cell when a percentile is suppressed. */
.dist-na { font-family: var(--mono); font-size: 12px; color: var(--faint); }
