/* ============================================================================
   PayLens signature sheet — Identity A ("Editorial Data"), work cluster.
   PREMIUM PASS, 2026-07-30. Pilot for the portfolio-wide facelift.

   Art direction: this is a reference work, not a landing page. "Premium" here
   means what it means in print — a confident type scale, a strict grid, real
   white space, and numbers set well. Deliberately NO gradients, glassmorphism,
   neon accents or decorative motion: on a page whose product is a wage figure,
   ornament reads as untrustworthy.

   The four things doing the work:
     1. TYPE — Fraunces optical sizing for display, Inter with tabular figures
        for every number. One accent hue, used sparingly.
     2. RHYTHM — an 8pt scale applied strictly, with section spacing roughly
        double what the ring shipped before. Space is the main signal of care.
     3. MATERIAL — warm paper, hairlines, and exactly one functional shadow.
        Cards are defined by their rules, not by drop shadows.
     4. TABLES — treated as the primary interface, because on this site they
        are: sticky heads, tabular numerals, rules that guide the eye across a
        row without boxing every cell in.

   Loaded after styles.css + data.css on every page, and carries the accent
   repair, so a page that skipped it would fall back to the ring's neutral.
   ========================================================================== */

:root {
  --site-accent: #1F4E42;      /* deeper, inkier ledger green — reads printed */
  --accent-quiet: #5C7F75;     /* for supporting marks that must not shout */
  --pay-up: #2F6B3F;
  --pay-down: #9B2C1F;

  /* Type scale — 1.25 major third, capped so headings never get shouty. */
  --step--1: clamp(.82rem, .8rem + .1vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.13rem + .35vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.32rem + .6vw, 1.8rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.1vw, 2.4rem);
  --display: clamp(2.7rem, 2.1rem + 3.2vw, 4.6rem);

  --measure-prose: 68ch;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* --------------------------------------------------------------- container
   The ring's convention is `<section class="section"><div class="wrap">`, and
   this build emits its body blocks as direct children of <main> instead — so
   until now every page ran edge-to-edge with no gutter, which no amount of type
   polish can rescue. Constraining <main> fixes it in one rule for every page
   rather than threading a wrapper through two dozen templates. The shell's own
   header/hero/footer carry their own `.wrap`, and nesting inside this container
   is harmless because both resolve to the same measure. */
main {
  max-width: calc(var(--max, 1180px) + 2 * clamp(18px, 4vw, 44px));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}
main > .hero { padding-inline: 0; }

/* ------------------------------------------------------------------ canvas */
body {
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A hairline of accent along the very top. One pixel, and the whole page reads
   as deliberate rather than default. */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--accent-quiet) 60%, transparent);
  pointer-events: none;
}

/* ---------------------------------------------------------------- numerals
   Numbers are the product. Tabular figures everywhere they are compared, so
   columns align and digits do not jitter between rows. */
.num, .unitfig, .az, .stat, .progress-row .num,
table td.num, table th.num, .figure text, .vs-side .unitfig, .tnote {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
table td.num, table th.num { text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------ the headline
   The answer block is the page's reason to exist, so it gets real air and the
   display face at its optical size. */
/* data.css constrains .answer to a narrower measure than the sections below it,
   which made the headline block read as a stray card. It spans the container
   here; the LEDE keeps its own reading measure so lines stay short. */
.answer {
  max-width: none;
  margin: clamp(28px, 5vw, 52px) 0 clamp(24px, 4vw, 40px);
}
.answer .eyebrow,
.eyebrow {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: .7em;
}
.answer .az {
  font-family: var(--serif, Fraunces), "Iowan Old Style", Georgia, serif;
  font-size: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.028em;
  color: var(--accent);
  margin: 0 0 .3em;
  text-wrap: balance;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2, var(--ink));
  max-width: var(--measure-prose);
  text-wrap: pretty;
}
h1 {
  font-family: var(--serif, Fraunces), Georgia, serif;
  font-size: var(--step-3);
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif, Fraunces), Georgia, serif;
  font-size: var(--step-2);
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.014em;
  text-wrap: balance;
  margin-bottom: .5em;
}
p { max-width: var(--measure-prose); text-wrap: pretty; }

/* ------------------------------------------------------------------ rhythm
   Sections are separated by space and a single hairline, never by boxes. This
   is the biggest single lift from "functional" to "considered". */
.section {
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------- the stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  margin: clamp(28px, 4vw, 44px) 0;
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat { min-width: 0; }
.stats .figure-unit {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin-bottom: 6px;
}
.stats .unitfig {
  font-size: var(--step-1); font-weight: 600;
  color: var(--ink); line-height: 1.1;
  letter-spacing: -.01em;
}
.stats .tnote { font-size: var(--step--1); color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ------------------------------------------------- FX versus PPP, the argument
   The site's whole thesis in one component, so it earns the only real card
   treatment on the page. */
.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin: clamp(24px, 3.5vw, 40px) 0;
  padding: clamp(22px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(20 24 27 / .04), 0 8px 24px -16px rgb(20 24 27 / .18);
}
.vs-side { min-width: 0; text-align: center; }
.vs-side .figure-unit {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin-bottom: 8px;
}
.vs-side .unitfig {
  font-family: var(--serif, Fraunces), Georgia, serif;
  font-size: var(--step-2);
  font-variation-settings: "opsz" 48;
  font-weight: 450; color: var(--accent);
  line-height: 1.05; letter-spacing: -.018em;
}
.vs-side .tnote { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.vs-mid {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--faint);
}
@media (max-width: 600px) {
  .vs { grid-template-columns: 1fr; text-align: left; }
  .vs-side { text-align: left; }
  .vs-mid { padding: 4px 0; }
}

/* --------------------------------------------- purchasing-power bar rows */
.bandchart { margin: clamp(22px, 3vw, 34px) 0; }
.bc-rows { display: grid; gap: 12px; }
.progress-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 3fr minmax(84px, auto);
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}
.progress-row .lbl-row {
  font-size: var(--step--1); color: var(--ink-2, var(--ink));
  line-height: 1.35;
}
.progress-track {
  height: 10px; background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: var(--accent);
  /* Grows once on load rather than on every hover — feedback, not decoration. */
  transform-origin: left center;
  animation: bar-in .7s var(--ease) both;
}
@keyframes bar-in { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
.progress-row .num { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
@media (max-width: 600px) {
  .progress-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .progress-track { grid-column: 1 / -1; order: 3; }
}

/* --------------------------------------------------- the percentile figure */
.figure { margin: clamp(30px, 4.5vw, 52px) 0; }
.figure svg { display: block; overflow: visible; }
.figure text { font-family: var(--sans, Inter), system-ui, sans-serif; }
.figure-cap {
  font-size: var(--step--1); line-height: 1.55; color: var(--muted);
  margin-top: 14px; max-width: 64ch;
  padding-left: 14px; border-left: 2px solid var(--line-2, var(--line));
}

/* -------------------------------------------------------------- the tables
   On a reference site the table IS the interface, so it gets the most care:
   a sticky head for long lists, generous row height, and rules that carry the
   eye across without caging every value. */
.tablewrap {
  overflow-x: auto;
  margin: clamp(18px, 2.5vw, 26px) 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tablewrap table {
  width: 100%; border-collapse: collapse;
  font-size: var(--step--1);
}
.tablewrap th, .tablewrap td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.tablewrap thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-tint);
  font-size: .66rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-2, var(--muted));
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2, var(--line));
}
.tablewrap tbody tr:last-child td { border-bottom: 0; }
.tablewrap tbody tr { transition: background .12s var(--ease); }
.tablewrap tbody tr:hover { background: var(--accent-soft); }
.tablewrap td a { color: var(--accent); font-weight: 550; text-decoration: none; }
.tablewrap td a:hover { text-decoration: underline; text-underline-offset: 2px; }
.tablewrap td .tnote { font-size: .76rem; color: var(--muted); }

/* ----------------------------------------------------- occupation lists */
.soc-links {
  list-style: none; padding: 0; margin: clamp(14px, 2vw, 20px) 0 0;
  columns: 2; column-gap: clamp(28px, 4vw, 48px);
}
.soc-links li {
  break-inside: avoid; margin: 0 0 9px;
  font-size: var(--step--1); line-height: 1.45;
}
.soc-links .soc-link {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .12s var(--ease), color .12s var(--ease);
}
.soc-links .soc-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.soc-links .tnote { color: var(--muted); font-size: .8rem; margin-left: .4em; }
@media (max-width: 680px) { .soc-links { columns: 1; } }

/* --------------------------------------------------------- editorial notes
   A stated limitation is a trust signal, so it is set as a real aside rather
   than hidden in small grey print. */
.assume {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
  border-radius: 0 8px 8px 0;
  margin: clamp(22px, 3vw, 32px) 0;
  font-size: var(--step-0); line-height: 1.55;
}
.assume strong { color: var(--accent); }
.sec-note {
  font-size: var(--step--1); line-height: 1.55; color: var(--muted);
  max-width: 66ch; margin-top: 12px;
}
.srcline {
  font-size: .82rem; line-height: 1.5; color: var(--muted);
  margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--line-2, var(--line));
}
.srcline a { color: var(--accent); }

/* --------------------------------------------------------- country cards */
.ring-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 20px); margin-top: clamp(16px, 2.5vw, 24px);
}
.ring-card {
  display: block; padding: clamp(20px, 3vw, 26px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color .16s var(--ease), transform .16s var(--ease),
              box-shadow .16s var(--ease);
}
.ring-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgb(20 24 27 / .04), 0 14px 30px -18px rgb(20 24 27 / .28);
}
.ring-card .ring-h {
  font-family: var(--serif, Fraunces), Georgia, serif;
  font-size: var(--step-1); font-weight: 500; letter-spacing: -.012em;
  margin-bottom: 6px;
}
.ring-card .hub-blurb { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------ cross-site bridge */
.entity-bridge {
  margin: clamp(30px, 4vw, 48px) 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-2, var(--line));
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}
.eb-kicker {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .11em;
  color: var(--faint); margin-bottom: 8px;
}
.eb-body { font-size: var(--step-0); line-height: 1.55; margin-bottom: 12px; }
.eb-go {
  font-weight: 600; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color .12s var(--ease);
}
.eb-go:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------- ad slots
   Reserved, labelled and visually subordinate. An ad that pretends to be
   content is the fastest way to lose a reference site's credibility. */
.ad-slot {
  display: block; margin: clamp(30px, 4vw, 48px) auto 0;
  padding-top: 18px; border-top: 1px solid var(--line);
  text-align: center;
}
.ad-label {
  display: block; font-size: .62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--faint); margin-bottom: 8px;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.15em; border-radius: 8px;
  font-size: var(--step--1); font-weight: 600;
  text-decoration: none;
  transition: background .14s var(--ease), border-color .14s var(--ease),
              transform .14s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #000); }

/* ------------------------------------------------------------ mobile header
   The ring's header row does not shrink: with three nav items plus the theme
   toggle it measured 420px against a 390px viewport, which put a 30px
   horizontal scroll on EVERY page — the one thing that instantly reads cheap
   on a phone regardless of how good the type is.

   Fixed here for the pilot; the same rule belongs in the shared sheet at
   rollout, because every ring site carries a three-item nav and inherits this. */
@media (max-width: 560px) {
  .site-head .head-in,
  .site-head { flex-wrap: wrap; row-gap: 8px; }
  .head-right {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 14px;
  }
  .head-nav {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: .86rem;
  }
  .head-nav a { white-space: nowrap; }
}
/* Belt and braces: nothing may create a horizontal scrollbar on the document. */
html, body { overflow-x: hidden; }

/* ------------------------------------------------- motion, kept restrained */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress-fill { animation: none !important; }
}

/* -------------------------------------------------------------- dark mode
   The ring supports a theme toggle; the accent has to lift or it disappears
   against a dark ground. */
:root[data-theme="dark"] {
  --site-accent: #6FB3A0;
  --accent-quiet: #4E8377;
  --pay-up: #6FBF84;
  --pay-down: #E38377;
}
:root[data-theme="dark"] .vs,
:root[data-theme="dark"] .ring-card:hover {
  box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 30px -18px rgb(0 0 0 / .55);
}

/* --------------------------------------------------------------- print
   A reference page should print like one. */
@media print {
  body::before, .ad-slot, .entity-bridge { display: none !important; }
  .section { break-inside: avoid; }
  .tablewrap { overflow: visible; border: 0; }
  .tablewrap thead th { position: static; }
}
