/* ==========================================================================
   TensorHype theme contract — v1
   --------------------------------------------------------------------------
   This file is the single source of truth for the site's visual theme.
   Pages must NOT redefine these tokens; page-specific <style> blocks may only
   add layout/components unique to that page, referencing the tokens below.

   To re-theme the whole site later, edit the custom properties in :root
   (and the dark-mode overrides). To add a named theme, scope overrides like:
     [data-theme="high-contrast"] { --bg: #000; --ink: #fff; ... }
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Surfaces & text */
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #edf1ec;
  --ink: #17211b;
  --muted: #5a675f;
  --faint: #7b877f;
  --line: #d7ded8;

  /* Brand */
  --accent: #0d7355;
  --accent-strong: #085b43;
  --accent-soft: #d9efe7;

  /* Data visualization */
  --gold: #d99a32;
  --employee: #147d60;
  --employer: #e0a038;
  --growth: #85aa9c;
  --track: #dfe6e1;
  --danger: #a03b32;

  /* Shape & type */
  --shadow: 0 20px 55px rgba(28, 48, 37, .08);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101511;
    --surface: #18201a;
    --surface-2: #202a23;
    --ink: #f0f5f1;
    --muted: #bac6bd;
    --faint: #93a197;
    --line: #334138;
    --accent: #66c7a3;
    --accent-strong: #8bdaba;
    --accent-soft: #193a2f;
    --gold: #efb75a;
    --employee: #67c5a2;
    --employer: #efb75a;
    --growth: #7f9d91;
    --track: #2a352e;
    --danger: #ff9b91;
    --shadow: 0 20px 55px rgba(0, 0, 0, .22);
  }
}

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

/* ---- Layout -------------------------------------------------------------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 56px 22px 64px; }
.wrap--narrow { max-width: 720px; }
.wrap--center { text-align: center; }

/* ---- Breadcrumbs ---------------------------------------------------------- */
.crumbs { font-size: .8rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---- Type helpers ---------------------------------------------------------- */
.lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.page-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -.02em; margin: 0 0 10px; }
.section-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin: 0 0 14px;
}

/* ---- Cards ------------------------------------------------------------------ */
.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h2, .card h3 { margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .go { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: .9rem; }

/* ---- Callout --------------------------------------------------------------- */
.callout {
  margin-top: 30px; padding: 18px 22px; background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .92rem;
}

/* ---- Data tables -------------------------------------------------------------- */
.data-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .92rem; margin: 22px 0;
}
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th {
  background: var(--surface-2); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.hl td { font-weight: 700; background: var(--accent-soft); }

/* ---- Buttons / CTAs ------------------------------------------------------------ */
.cta {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 30px; border-radius: 999px; text-decoration: none; font-size: 1.02rem;
  box-shadow: var(--shadow);
}
.cta:hover { background: var(--accent-strong); }

/* ---- Footer --------------------------------------------------------------------- */
.site-footer { margin: 44px auto 8px; max-width: 880px; text-align: center; font-size: .8rem; color: var(--faint); }
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 .5em; }

/* ---- Ads -------------------------------------------------------------------------- */
.ad-slot { margin: 26px auto 0; max-width: 760px; text-align: center; }

/* ---- Charts (static SVG) ------------------------------------------------------------ */
.chart { width: 100%; height: auto; margin: 8px 0 4px; }
.chart rect { fill: var(--accent); }
.chart rect.hl { fill: var(--gold); }
.chart .bl { fill: var(--muted); font-size: 13px; }
.chart .bv { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 14px; box-shadow: var(--shadow); margin: 22px 0;
}

/* ---- Source notes -------------------------------------------------------------------- */
.source-note { font-size: .8rem; color: var(--faint); }
.source-note a { color: var(--accent); }
.updated { color: var(--faint); font-size: .85rem; margin-bottom: 28px; }
