/* ==========================================================================
       Payradar — Antimetal-Inspired Editorial Research Document Design System
       ========================================================================== */

:root, [data-theme="light"] {
      --nav-height: 54px;
      --content-width: 954px; /* the one width of the page content, the nav bar and the wide blocks */
      --canvas: #f7f5f0;
      --paper: #fdfcfa;
      --well: #efece5;
      --hover-bg: color-mix(in srgb, var(--ink) 90%, var(--paper));
      --row-hover: #f2efe9;
      --ink: #1a1614;
      --muted: #665e57;
      --faint: #8c847c;
      --line: #e3dfd7;
      --line-strong: #ccc7bc;
      --glass-bg: rgba(253, 252, 250, 0.86);

      --terracotta: #b8441f;
      --terracotta-soft: rgba(184, 68, 31, 0.10);
      --track: rgba(26, 22, 20, 0.11);
      --pay-above: #5b7f9e; /* muted blue: pay estimate above the median employer */
      --pay-below: #c4955a; /* muted orange: below it */

      --shadow-console: 0 2px 6px rgba(26, 22, 20, 0.03), 0 18px 40px -12px rgba(26, 22, 20, 0.10);
      --shadow-card: 0 1px 2px rgba(26, 22, 20, 0.03), 0 8px 24px -10px rgba(26, 22, 20, 0.06);
      --shadow-popover: 0 14px 36px -6px rgba(26, 22, 20, 0.15), 0 2px 6px rgba(26, 22, 20, 0.04);
      --shadow-modal: 0 28px 70px -12px rgba(26, 22, 20, 0.25);

      --serif: Georgia, "Times New Roman", serif;
      --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

[data-theme="dark"] {
      --canvas: #11100f;
      --paper: #191816;
      --well: #23211e;
      --row-hover: #211f1c;
      --ink: #f0efe4;
      --muted: #9c978e;
      --faint: #757068;
      --line: #2c2926;
      --line-strong: #423e39;
      --glass-bg: rgba(25, 24, 22, 0.85);

      --terracotta: #d9785c;
      --terracotta-soft: rgba(217, 120, 92, 0.14);
      --track: rgba(240, 239, 228, 0.13);
      --pay-above: #7d9bb5;
      --pay-below: #c9a06c;

      --shadow-console: 0 2px 6px rgba(0, 0, 0, 0.38), 0 22px 46px -10px rgba(0, 0, 0, 0.65);
      --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.28), 0 10px 26px -10px rgba(0, 0, 0, 0.50);
      --shadow-popover: 0 18px 42px -6px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(240, 239, 228, 0.08);
      --shadow-modal: 0 32px 76px -12px rgba(0, 0, 0, 0.80);
    }

/* ==========================================================================
       Native View Transitions API — Left-to-Right Vertical Curtain Wipe (520ms)
       ========================================================================== */

html {
      view-transition-name: root;
      scroll-behavior: smooth;
      background-color: var(--canvas);
    }

@keyframes theme-wipe-right {
      from {
        clip-path: inset(0 100% 0 0);
      }
      to {
        clip-path: inset(0 0 0 0);
      }
    }

::view-transition-old(root), ::view-transition-new(root) {
      animation: none;
      mix-blend-mode: normal;
    }

::view-transition-old(root) {
      z-index: 1;
    }

::view-transition-new(root) {
      z-index: 2;
      animation: theme-wipe-right 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

html.is-theme-wiping, html.is-theme-wiping * {
      transition: none !important;
    }

* {
      box-sizing: border-box;
    }

body {
      margin: 0;
      background-color: var(--canvas);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 15px;
      line-height: 1.58;
      letter-spacing: -0.012em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

[hidden] {
      display: none !important;
    }

:focus-visible {
      outline: 2px solid var(--terracotta);
      outline-offset: 2px;
    }

.wrap {
      width: min(var(--content-width), 100% - 36px);
      margin-inline: auto;
    }

.mono {
      font-family: var(--mono);
      font-variant-numeric: tabular-nums;
    }

.sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

@media (prefers-reduced-motion: reduce) {
  .hero-grid-spot {
        display: none !important;
      }

  .theme-icon, .select-menu {
        transition: none !important;
      }

  ::view-transition-new(root) {
        animation: none !important;
      }
}

/* ==========================================================================
       1. Floating Liquid-Glass Navigation Capsule (Zero Layout Shift)
       ========================================================================== */

.nav-shell {
      position: sticky;
      top: 0;
      z-index: 50;
      pointer-events: none;
    }

.nav-capsule {
      pointer-events: auto;
      height: var(--nav-height);
      /* Full width bar. The padding keeps the content where it was in the 800px capsule. */
      padding-inline: max(18px, calc((100% - var(--content-width)) / 2));
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      background: var(--glass-bg);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }

.nav-brand {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      justify-self: start;
      text-decoration: none;
      color: var(--ink);
      font-family: var(--serif);
      font-size: 1.22rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }

.nav-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
    }

.nav-link {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      white-space: nowrap;
      transition: color 0.16s var(--ease);
    }

.nav-link:hover {
      color: var(--ink);
    }

.nav-actions {
      justify-self: end;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

/* Fixed-width Springy Sun/Moon Theme Toggle (34px x 34px) */

.theme-toggle {
      position: relative;
      width: 34px;
      height: 34px;
      padding: 0;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid var(--line);
      background-color: var(--paper);
      color: var(--ink);
      cursor: pointer;
      overflow: hidden;
      transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.15s var(--ease);
    }

.theme-toggle:hover {
      border-color: var(--line-strong);
      background-color: var(--well);
    }

.theme-toggle:active {
      transform: scale(0.92);
    }

.theme-icon {
      position: absolute;
      inset: 0;
      margin: auto;
      width: 15px;
      height: 15px;
      transition: transform 0.44s var(--spring), opacity 0.24s ease;
    }

[data-theme="light"] .theme-icon-sun {
      opacity: 1;
      transform: rotate(0deg) scale(1);
    }

[data-theme="light"] .theme-icon-moon {
      opacity: 0;
      transform: rotate(90deg) scale(0.4);
    }

[data-theme="dark"] .theme-icon-sun {
      opacity: 0;
      transform: rotate(-90deg) scale(0.4);
    }

[data-theme="dark"] .theme-icon-moon {
      opacity: 1;
      transform: rotate(0deg) scale(1);
    }

/* ==========================================================================
       2. Hero + 40px Architectural Drafting Grid + Cursor-Reactive Spotlight
       ========================================================================== */

.hero {
      position: relative;
      /* The first screen is the hero and nothing else: the next section starts below the fold. */
      min-height: calc(100vh - var(--nav-height));
      min-height: calc(100svh - var(--nav-height));
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 32px 0 40px;
      text-align: center;
      overflow: visible;
    }

/* The grid and its cursor spotlight cover the whole home page, behind the content. */
#top {
      position: relative;
      isolation: isolate;
      --grid-x: 50%;
      --grid-y: 42%;
      --grid-opacity: 0;
    }

.hero-grid-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: -1;
      -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, #000 calc(100% - 240px), transparent);
      -webkit-mask-composite: source-in;
      mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, #000 calc(100% - 240px), transparent);
      mask-composite: intersect;
    }

.hero-grid-base {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
      background-size: 40px 40px;
      background-position: center top;
      opacity: 0.52;
    }

.hero-grid-spot {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(to right, var(--line-strong) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
      background-size: 40px 40px;
      background-position: center top;
      opacity: var(--grid-opacity);
      -webkit-mask-image: radial-gradient(240px circle at var(--grid-x) var(--grid-y), #000 0%, rgba(0, 0, 0, 0.36) 46%, transparent 100%);
      mask-image: radial-gradient(240px circle at var(--grid-x) var(--grid-y), #000 0%, rgba(0, 0, 0, 0.36) 46%, transparent 100%);
      transition: opacity 0.32s var(--ease);
    }

.hero-inner {
      position: relative;
      z-index: 2;
    }

/* Pay distribution in the hero */

.pay-dist {
      position: relative;
      z-index: 2;
      max-width: var(--content-width);
      margin: 28px auto 20px;
      padding: 0 4px 24px; /* room for the median label under the axis */
    }

.dist-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
      font-size: 0.85rem;
      color: var(--muted);
    }

.dist-title { color: var(--ink); font-weight: 500; }

.dist-plot {
      position: relative;
      display: grid;
      grid-template-columns: repeat(24, minmax(0, 1fr));
      align-items: end;
      gap: 3px;
      height: 170px;
      padding-top: 22px; /* room for the percentage over the tallest bar */
      border-bottom: 1px solid var(--line-strong);
    }

.dist-bar {
      position: relative;
      height: var(--height);
      min-height: 2px;
      background-color: color-mix(in srgb, var(--ink) 24%, transparent);
      border-radius: 3px 3px 0 0;
      transition: background-color 0.15s var(--ease);
    }

.dist-bar:hover { background-color: color-mix(in srgb, var(--ink) 42%, transparent); }
.dist-bar.is-median { background-color: var(--terracotta); }

/* The share of employers, just above each bar */
.dist-share {
      position: absolute;
      bottom: calc(100% + 3px);
      left: 50%;
      transform: translateX(-50%);
      font-family: var(--mono);
      font-size: 0.66rem;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      pointer-events: none;
    }

/* The median line runs down past the axis labels, with its label in a row of its own under them */
.dist-median {
      position: absolute;
      top: 0;
      bottom: -26px;
      left: var(--median-left, 25.625%);
      border-left: 3px dashed var(--terracotta);
      pointer-events: none;
    }

.dist-median span {
      position: absolute;
      top: calc(100% + 3px);
      left: 0;
      transform: translateX(-50%);
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--terracotta);
      white-space: nowrap;
    }

.dist-axis {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
    }

@media (max-width: 640px) {
  .dist-head { flex-direction: column; gap: 2px; }
  .dist-plot { height: 140px; gap: 2px; }
  /* The bars are narrower than the labels, so only every second bar is labelled */
  .dist-share { font-size: 0.6rem; }
  .dist-bar:nth-child(even) .dist-share { display: none; }
}

/* Symmetrical 3-Column Metadata Strip */

.meta-bar {
      max-width: var(--content-width);
      margin: 0 auto 22px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid var(--line);
      background-color: color-mix(in srgb, var(--paper) 82%, transparent);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 16px;
    }

.meta-cell {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      padding: 10px 12px;
      font-family: var(--sans);
      min-width: 0;
    }

.meta-cell + .meta-cell {
      border-left: 1px dashed var(--line);
    }

.meta-k {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      letter-spacing: 0;
      color: var(--faint);
      white-space: nowrap;
    }

.meta-v {
      font-size: 13px;
      font-weight: 500;
      color: var(--ink);
      white-space: nowrap;
    }

.meta-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

.dot-olive { background-color: var(--ink); }

.dot-slate { background-color: var(--muted); }

.dot-terra { background-color: var(--terracotta); }

/* Centered Editorial Headline */

.hero-title {
      font-family: var(--serif);
      font-weight: 400;
      font-size: clamp(2.1rem, 4.2vw, 3.3rem);
      line-height: 1.1;
      letter-spacing: -0.024em;
      color: var(--ink);
      max-width: 24ch;
      margin: 0 auto 14px;
      text-wrap: balance; /* lines of about equal length */
    }

.hero-sub {
      font-size: clamp(0.95rem, 1.3vw, 1.02rem);
      color: var(--muted);
      max-width: 56ch;
      margin: 0 auto 26px;
      line-height: 1.62;
    }

/* ==========================================================================
       3. Rounded (22px) Search Console + Zero-Layout-Shift Custom Dropdowns
       ========================================================================== */

.search-console {
      position: relative;
      z-index: 30;
      width: 100%;
      max-width: min(var(--content-width), 760px);
      margin: 0 auto;
      text-align: left;
      background-color: var(--paper);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow-console);
      transition: border-color 0.2s var(--ease);
    }

.search-console:focus-within {
      border-color: var(--line-strong);
    }

.search-input-row {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 10px 10px 20px;
    }

.search-icon {
      width: 17px;
      height: 17px;
      color: var(--faint);
      flex-shrink: 0;
    }

.search-input {
      flex: 1 1 0;
      min-width: 0;
      height: 44px;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.96rem;
      outline: none;
    }

.search-input::placeholder {
      color: var(--faint);
    }

.kbd-shortcut {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background-color: var(--well);
      color: var(--muted);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 500;
      flex-shrink: 0;
      user-select: none;
    }

.search-submit-btn {
      height: 36px;
      min-width: 84px;
      padding: 0 18px;
      border: 0;
      border-radius: 999px;
      background-color: var(--ink);
      color: var(--canvas);
      font-family: var(--sans);
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
    }

.search-submit-btn:hover {
      transform: translateY(-1px);
      opacity: 0.92;
    }

.search-submit-btn:active {
      transform: translateY(0) scale(0.985);
    }

/* Live Autocomplete Dropdown */

.ac-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 65;
      background-color: var(--paper);
      border: 1px solid var(--line-strong);
      border-radius: 18px;
      box-shadow: var(--shadow-popover);
      padding: 6px;
      overflow: hidden;
    }

.ac-item {
      width: 100%;
      color: inherit;
      text-decoration: none; /* it is a link now, so no blue underline */
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 14px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      text-align: left;
      cursor: pointer;
      transition: background-color 0.14s var(--ease);
    }

.ac-item:hover, .ac-item.is-active {
      background-color: var(--well);
    }

.ac-left {
      min-width: 0;
      flex: 1 1 0;
    }

.ac-name {
      display: block;
      font-family: var(--serif);
      font-size: 1.06rem;
      font-weight: 500;
      color: var(--ink);
      line-height: 1.24;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

.ac-sub {
      display: block;
      font-family: var(--sans);
      font-size: 0.78rem;
      letter-spacing: 0;
      color: var(--faint);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

.ac-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 5px;
      flex-shrink: 0;
    }

.ac-pay {
      font-family: var(--mono);
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--ink);
      white-space: nowrap;
    }

.ac-mini-bar {
      width: 92px;
    }

.ac-empty {
      padding: 14px 16px;
      font-size: 0.88rem;
      color: var(--muted);
      text-align: center;
    }

/* ZERO-LAYOUT-SHIFT 3-Column Custom Filter Dropdowns */

.filter-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      padding: 6px;
      gap: 6px;
      width: 100%;
    }

.custom-select {
      position: relative;
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }

.select-trigger {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 4px 14px;
      border-radius: 12px;
      border: 1px solid transparent;
      background-color: transparent;
      text-align: left;
      cursor: pointer;
      transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
    }

.select-trigger:hover {
      background-color: var(--hover-bg);
    }

.custom-select.is-open .select-trigger {
      background-color: var(--hover-bg);
      border-color: var(--line-strong);
    }

.select-trigger-body {
      flex: 1 1 0;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 1px;
      overflow: hidden;
    }

.select-micro {
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--faint);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

.select-value {
      display: block;
      width: 100%;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: var(--sans);
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--ink);
    }

.custom-select[data-has-value="true"] .select-value {
      color: var(--terracotta);
    }

.select-chevron {
      width: 14px;
      height: 14px;
      color: var(--faint);
      flex-shrink: 0;
      transition: transform 0.2s var(--ease), color 0.16s var(--ease);
    }

.custom-select.is-open .select-chevron {
      transform: rotate(180deg);
      color: var(--ink);
    }

.select-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      min-width: 100%;
      width: max-content;
      max-width: min(380px, 90vw);
      z-index: 60;
      padding: 6px;
      background-color: var(--paper);
      border: 1px solid var(--line-strong);
      border-radius: 16px;
      box-shadow: var(--shadow-popover);
      opacity: 0;
      transform: translateY(-4px) scale(0.985);
      pointer-events: none;
      transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
    }

.custom-select.is-open .select-menu {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

.select-option {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 11px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.87rem;
      text-align: left;
      cursor: pointer;
      white-space: nowrap;
      transition: background-color 0.14s var(--ease), color 0.14s var(--ease);
    }

.select-option:hover {
      background-color: var(--well);
    }

.select-option[aria-selected="true"] {
      background-color: var(--well);
      color: var(--ink);
      font-weight: 500;
    }

.select-check {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      opacity: 0;
    }

.select-option[aria-selected="true"] .select-check {
      opacity: 1;
    }

/* Pill Quick-Lookup Chips */

.quick-strip {
      max-width: var(--content-width);
      margin: 16px auto 0;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 32px;
    }

.quick-label {
      font-family: var(--sans);
      font-size: 0.78rem;
      letter-spacing: 0;
      color: var(--faint);
      margin-right: 4px;
    }

.quick-chip {
      padding: 5px 13px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background-color: color-mix(in srgb, var(--paper) 78%, transparent);
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.81rem;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
    }

.quick-chip:hover {
      color: var(--ink);
      background-color: var(--paper);
      border-color: var(--line-strong);
      transform: translateY(-1px);
    }

/* ==========================================================================
       4. Live Employer Index (Directly Below Hero)
       ========================================================================== */

.section-block {
      padding: 56px 0;
      border-top: 1px solid var(--line);
    }

.section-head-centered {
      text-align: center;
      max-width: 620px;
      margin: 0 auto 32px;
    }

.section-kicker {
      display: inline-block;
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--terracotta);
      margin-bottom: 8px;
    }

.section-title {
      font-family: var(--serif);
      font-weight: 400;
      font-size: clamp(1.85rem, 3.3vw, 2.55rem);
      line-height: 1.12;
      letter-spacing: -0.024em;
      margin: 0 0 8px;
    }

/* Sortable Column Header Row */

.index-col-head {
      display: grid;
      grid-template-columns: 38px 1.5fr 142px 96px 134px 206px 22px;
      align-items: end; /* a label on two lines keeps the others on its last line */
      gap: 12px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--faint);
    }

/* Dashed Employer Rows */

.index-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

.index-row {
      display: grid;
      grid-template-columns: 38px 1.5fr 142px 96px 134px 206px 22px;
      align-items: center;
      gap: 12px;
      padding: 15px 14px;
      border-bottom: 1px dashed var(--line);
      border-radius: 12px;
      cursor: pointer;
      transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
    }

.index-row:hover {
      background-color: var(--row-hover);
      transform: translateX(3px);
    }

.row-rank {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--faint);
    }

.row-company-cell {
      min-width: 0;
    }

.row-company {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 400;
      line-height: 1.22;
      color: var(--ink);
      letter-spacing: -0.015em;
    }

.row-meta {
      margin-top: 2px;
      font-family: var(--sans);
      font-size: 0.78rem;
      letter-spacing: 0;
      color: var(--faint);
    }

.row-sector {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
    }

.row-num {
      text-align: right;
      font-family: var(--mono);
      font-size: 0.85rem;
      color: var(--muted);
    }

.row-pay-cell {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 7px;
    }

.row-pay-range {
      font-family: var(--mono);
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--ink);
      white-space: nowrap;
    }

.row-mini-track {
      width: 154px;
    }

.row-arrow {
      font-family: var(--mono);
      font-size: 14px;
      color: var(--terracotta);
      opacity: 0;
      transform: translateX(-4px);
      transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
      text-align: right;
    }

.index-row:hover .row-arrow, .index-row:focus-visible .row-arrow {
      opacity: 1;
      transform: translateX(0);
    }

/* Hairline Pay-Band Bar with Dashed Median-Employer Tick */

.bar-track {
      position: relative;
      width: 100%;
      height: 5px;
      background-color: var(--track);
      border-radius: 999px;
      overflow: visible;
    }

.bar-ee-tick {
      position: absolute;
      top: -4px;
      bottom: -4px;
      left: var(--median-left, 25.625%); /* set from the data in landing.js */
      width: 0;
      border-left: 1.5px dashed var(--terracotta);
      opacity: 0.9;
    }

.bar-fill {
      position: absolute;
      top: 0;
      bottom: 0;
      left: var(--from, 0%);
      width: calc(var(--to, 0%) - var(--from, 0%));
      min-width: 6px;
      background-color: var(--terracotta);
      border-radius: 999px;
    }

.bar-fill.above { background-color: var(--pay-above); }

.bar-fill.below { background-color: var(--pay-below); }

.band-compare { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; }

.band-compare::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: 6px;
      border-radius: 50%;
      background-color: var(--pay-dot, var(--terracotta));
    }

.band-compare.above { --pay-dot: var(--pay-above); }

.band-compare.below { --pay-dot: var(--pay-below); }

.empty-state {
      padding: 44px 16px;
      text-align: center;
      color: var(--muted);
      border-bottom: 1px dashed var(--line);
    }

/* ==========================================================================
       5. Methodology Strip & Accordion FAQ
       ========================================================================== */

.method-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      margin-bottom: 52px;
    }

.method-card {
      padding: 24px;
      background-color: var(--paper);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow-card);
    }

.method-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.06em;
      color: var(--terracotta);
      background-color: var(--terracotta-soft);
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 14px;
    }

.method-card h3 {
      font-family: var(--serif);
      font-weight: 400;
      font-size: 1.35rem;
      line-height: 1.2;
      margin: 0 0 10px;
      color: var(--ink);
    }

.method-card p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.62;
    }

/* FAQ Accordion */

.faq-block {
      max-width: var(--content-width);
      margin: 0 auto;
    }

.accordion-wrap {
      border-top: 1px dashed var(--line);
    }

.accordion-item {
      border-bottom: 1px dashed var(--line);
    }

.accordion-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 18px 0;
      border: 0;
      background: transparent;
      text-align: left;
      cursor: pointer;
      color: var(--ink);
    }

.accordion-q {
      font-family: var(--serif);
      font-size: clamp(1.15rem, 2vw, 1.34rem);
      font-weight: 400;
      line-height: 1.26;
    }

.accordion-plus {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid var(--line);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 16px;
      color: var(--terracotta);
      flex-shrink: 0;
      transition: transform 0.24s var(--ease), background-color 0.2s var(--ease);
    }

.accordion-item.is-open .accordion-plus {
      transform: rotate(45deg);
      background-color: var(--terracotta-soft);
    }

.accordion-panel {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.26s var(--ease);
    }

.accordion-item.is-open .accordion-panel {
      grid-template-rows: 1fr;
    }

.accordion-panel-inner {
      overflow: hidden;
    }

.accordion-body {
      padding: 0 0 20px;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.64;
    }

/* ==========================================================================
       6. Footer
       ========================================================================== */

.site-footer {
      border-top: 1px solid var(--line);
      padding: 44px 0 36px;
      background-color: color-mix(in srgb, var(--well) 45%, var(--canvas));
    }

.footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
      gap: 32px 40px;
      align-items: start;
    }

.footer-name {
      margin: 0 0 8px;
      font-family: var(--serif);
      font-size: 1.25rem;
      color: var(--ink);
    }

.footer-text {
      margin: 0;
      max-width: 34ch;
      font-size: 0.87rem;
      color: var(--muted);
      line-height: 1.6;
    }

.footer-col h4 {
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--ink);
      margin: 0 0 12px;
    }

.footer-col ul {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

.footer-col a {
      font-size: 0.87rem;
      line-height: 1.4;
      color: var(--muted);
      text-decoration: none;
    }

.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
      margin-top: 36px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }

.footer-bottom p {
      margin: 0;
      max-width: 80ch;
      font-size: 0.8rem;
      line-height: 1.6;
      color: var(--faint);
    }

/* ==========================================================================
       Responsive Adaptations
       ========================================================================== */

@media (max-width: 900px) {
  .method-grid {
        grid-template-columns: 1fr;
      }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .index-col-head {
        display: none;
      }

  .index-row {
        grid-template-columns: 32px 1fr;
        gap: 6px 12px;
      }

  .row-sector, .row-num, .row-arrow {
        display: none;
      }

  .row-pay-cell {
        grid-column: 2;
        align-items: flex-start;
        margin-top: 4px;
      }

  .row-mini-track {
        width: 100%;
        max-width: 220px;
      }
}

@media (max-width: 640px) {
  .nav-capsule {
        gap: 8px;
      }

  .nav-links {
        gap: 12px;
      }

  .nav-link {
        font-size: 0.78rem;
      }

  .nav-links .nav-link:last-child {
        display: none; /* the FAQ link makes the bar too wide on a phone */
      }

  .nav-brand span {
        display: none;
      }

  .hero {
        padding: 28px 0 24px;
      }

  .meta-bar {
        grid-template-columns: 1fr;
      }

  .meta-cell + .meta-cell {
        border-left: 0;
        border-top: 1px dashed var(--line);
      }

  .search-input-row {
        flex-wrap: wrap;
        padding: 10px;
      }

  .kbd-shortcut {
        display: none;
      }

  .search-submit-btn {
        width: 100%;
      }

  .filter-grid {
        grid-template-columns: 1fr;
      }
}

/* ==========================================================================
       Additions for the real data version
       ========================================================================== */

.select-menu { max-height: 320px; overflow-y: auto; }

.index-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px 28px;
      margin-top: 20px;
    }

.more-btn {
      padding: 10px 22px;
      border-radius: 999px;
      border: 1px solid var(--line-strong);
      background-color: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
    }

.more-btn:hover { background-color: var(--well); }

.browse-link { color: var(--terracotta); font-weight: 500; text-underline-offset: 3px; }

[hidden] { display: none !important; }

/* Scrollbars follow the theme */

[data-theme="light"] { color-scheme: light; }

[data-theme="dark"] { color-scheme: dark; }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

html { scrollbar-color: var(--line-strong) var(--canvas); }

::-webkit-scrollbar { width: 12px; height: 12px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }

html::-webkit-scrollbar-track { background: var(--canvas); }

/* ==========================================================================
   Inner pages (ranking, company, methodology) share the home page design
   ========================================================================== */

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 80; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--canvas); }

.skip-link:focus { left: 8px; }

.nav-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

body.inner h1, body.inner h2, body.inner h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }

body.inner main a:not(.index-row):not(.more-btn) { color: var(--ink); text-underline-offset: 3px; }

body.inner main a:not(.index-row):not(.more-btn):hover { color: var(--terracotta); }

.muted { color: var(--muted); }

.mono { font-family: var(--mono); font-size: 0.9em; }

.num { font-variant-numeric: tabular-nums; }

.right, .align-right { text-align: right; }

.page-head { padding: 48px 0 24px; }

.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.page-head .lead { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* Filters on the ranking page: the same console and dropdowns as the home page */

.search-console.ranking-console { max-width: none; margin: 0; }

.filter-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 20px 12px; border-top: 1px solid var(--line); }

.result-count { margin: 0; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0; color: var(--faint); }

.btn-quiet {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-quiet:hover { background-color: var(--well); }

.index-card {
  margin-top: 20px;
  padding: 6px 10px 18px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

a.index-row { color: inherit; text-decoration: none; }

/* Company page */

.crumbs { margin: 40px 0 0; font-size: 0.9rem; }

.company-head { padding: 20px 0 0; }

.company-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background-color: var(--paper); color: var(--muted); font-size: 0.8rem; }

.note { margin: 14px 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--terracotta); color: var(--muted); font-weight: 400; }

.note strong { color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin: 32px 0; }

.block-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.35rem; }

.slip { position: relative; padding: 56px 28px 24px; background-color: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); }

.stamp {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 12px;
  border: 1.5px solid var(--terracotta);
  border-radius: 8px;
  color: var(--terracotta);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0;
  white-space: nowrap;
}

.slip-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0; color: var(--faint); }

.slip-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }

.slip-row .label { color: var(--muted); font-size: 0.92rem; }

.slip-row .leader, .entity-list .leader { flex: 1; border-bottom: 1px dashed var(--line-strong); transform: translateY(-4px); }

.slip-row .value { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.slip-total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-strong); }

.slip-total .label { color: var(--ink); font-weight: 600; }

.slip-total .value { font-size: 1.15rem; }

.slip .band-wrap { display: block; margin-top: 14px; }

.band-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--faint); }

/* A pay bar with its scale: the median line runs from the bar down past the scale, labelled under it */
.band-wrap.with-scale { position: relative; padding-bottom: 22px; }

.band-wrap.with-scale .bar-ee-tick { display: none; }

.band-median {
  position: absolute;
  top: -6px;
  bottom: 20px;
  left: var(--median-left, 25.625%);
  border-left: 3px dashed var(--terracotta);
  pointer-events: none;
}

.band-median span {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--terracotta);
  white-space: nowrap;
}

.slip-note { margin: 16px 0 0; color: var(--muted); font-size: 0.85rem; }

.two-col.equal { align-items: stretch; }

/* The pay slip on its own row, as wide as the cards below it */
.slip-alone { margin: 32px 0; }

/* A chart is a card, like the pay slip. Cards in one row are the same height. */
.chart-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 18px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.chart-block .block-title { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.2rem; }

.chart-sub { margin: 0 0 14px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.chart-frame { flex: 1 1 auto; display: flex; align-items: flex-end; min-height: 0; }

.chart-block svg { display: block; width: 100%; height: auto; }

.chart-block svg text { fill: var(--muted); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }

.chart-block svg text.chart-value { fill: var(--ink); font-size: 11px; }

.chart-note { margin: 12px 0 0; font-size: 0.85rem; }

.chart-grid { stroke: var(--line); stroke-dasharray: 2 4; }

.chart-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }

.chart-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; }

.chart-dot.last { fill: var(--terracotta); stroke: var(--terracotta); }

table.plain { width: 100%; border-collapse: collapse; }

table.plain th, table.plain td { padding: 9px 12px; text-align: left; font-size: 0.92rem; }

table.plain th { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0; color: var(--faint); border-bottom: 1px solid var(--line); }

table.plain tbody tr:nth-child(even) { background-color: color-mix(in srgb, var(--well) 55%, transparent); }

table.plain .right { text-align: right; }

.entity-list { list-style: none; margin: 0; padding: 0; }

.entity-list li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }

.entity-list .mono { color: var(--muted); font-size: 0.85rem; }

.entity-name, .entity-meta { display: block; }

.entity-meta { margin-top: 2px; color: var(--muted); font-size: 0.82rem; }

/* Methodology */

.prose { max-width: var(--content-width); margin: 0 auto; padding: 48px 0 24px; line-height: 1.65; }

.prose h1 { margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.4rem); }

.prose h2 { margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1.6rem; }

.prose h3 { margin: 28px 0 8px; font-size: 1.15rem; }

.prose li { margin: 6px 0; }

/* The list of sections at the top of the methodology page */
.prose .toc { margin: 20px 0 0; padding: 14px 18px 14px 36px; background-color: var(--paper); border: 1px solid var(--line); border-radius: 14px; }

.prose .intro { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); line-height: 1.4; }

.formula { padding: 16px 18px; margin: 16px 0; font-family: var(--mono); font-size: 0.95rem; background-color: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--terracotta); border-radius: 0 14px 14px 0; }

/* Tags inside rows */

.tag-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: var(--well);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0;
  vertical-align: 1px;
  white-space: nowrap;
}

.tag-pill.is-info { background-color: transparent; color: var(--muted); }

/* Table readability */

.row-sector {
  min-width: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row-num, .row-pay-range { font-variant-numeric: tabular-nums; }

.row-arrow { opacity: 0.45; color: var(--terracotta); }

.row-extra { display: none; }

/* Home page: the facts line sits under the search, quiet */

.hero .meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  max-width: none;
  margin: 26px auto 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero .meta-cell, .hero .meta-cell + .meta-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
}

.hero .meta-v { font-size: 0.85rem; }

/* Empty state */

.empty-state {
  margin: 12px;
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background-color: var(--canvas);
}

/* Keyboard focus */

a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .filter-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .two-col { grid-template-columns: 1fr; }

  .row-extra { display: block; margin-top: 4px; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
}

@media (max-width: 640px) {
  .filter-grid.is-four { grid-template-columns: 1fr; }

  .slip { padding: 56px 18px 20px; }

  .stamp { right: 12px; }
}

.band-wrap { display: block; width: 100%; }

.bar-track { display: block; }

table.plain td.mono { white-space: nowrap; }

/* Bar charts */

.chart-bar { fill: var(--line-strong); }

.chart-bar.last { fill: var(--muted); }

#owners { margin: 12px 0 0; font-size: 0.9rem; }

/* Entities that are not in the ranking */

.not-ranked { margin: 22px 12px 0; padding-top: 16px; border-top: 1px dashed var(--line-strong); }

.nr-title { margin: 0 0 8px; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }

.nr-row { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px dashed var(--line); border-radius: 12px; color: inherit; text-decoration: none; }

.nr-row:hover { background-color: var(--row-hover); }

.nr-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; color: var(--ink); }

.nr-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0; color: var(--faint); }

.nr-reason { font-size: 0.85rem; color: var(--muted); }

#not-ranked-note { margin-top: 14px; }

.meta-v { font-family: var(--mono); }

/* Home page sections */

.section-sub { max-width: 60ch; margin: 10px auto 0; color: var(--muted); text-align: center; }

.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.sector-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.sector-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.sector-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--ink); }

.sector-meta { font-size: 0.82rem; color: var(--muted); }

/* Pay and bar sit at the bottom, so the bars line up across a row of cards */
.sector-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }

.sector-pay { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.payslip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: var(--content-width); margin: 0 auto; }

.payslip-text p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }

#payslip .slip { margin: 0; }

@media (max-width: 900px) {
  .payslip-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* On the strong hover background the text flips to the card colour so it stays readable */
.select-trigger:hover .select-value, .select-trigger:hover .select-micro, .select-trigger:hover .select-chevron,
.custom-select.is-open .select-value, .custom-select.is-open .select-micro, .custom-select.is-open .select-chevron {
  color: var(--paper);
}


.flush-top { margin-top: 0; }

/* A chart card on its own row */
.chart-block.section { margin: 32px 0; }

/* Options with a flag, and the short text a header picker shows on a phone */
.select-option-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.select-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 0.5px rgba(26, 22, 20, 0.24);
}
.select-flag.is-icon { width: 15px; height: 15px; box-shadow: none; color: var(--muted); }
.select-short { display: none; }

/* Country and language pickers in the header: pills that open on hover, with the menu of the filters */
.nav-select { width: auto; }
.nav-select .select-trigger {
  height: 34px;
  padding: 0 10px 0 12px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--paper);
}
.nav-select .select-trigger:hover,
.nav-select.is-open .select-trigger { background-color: var(--paper); border-color: var(--line-strong); }
.nav-select .select-value { font-size: 0.82rem; }
.nav-select .select-trigger:hover .select-value, .nav-select.is-open .select-value { color: var(--ink); }
.nav-select .select-trigger:hover .select-chevron, .nav-select.is-open .select-chevron { color: var(--ink); }
.nav-select .select-option-label { gap: 7px; }
.nav-select .select-menu { left: auto; right: 0; min-width: 180px; }
.lang-select .select-trigger .select-full { display: none; }
.lang-select .select-trigger .select-short { display: inline; font-family: var(--mono); font-size: 0.74rem; }
.lang-select .select-menu { min-width: 150px; }

@media (max-width: 640px) {
  .nav-select .select-trigger { padding: 0 7px 0 9px; gap: 4px; }
  .country-select .select-trigger .select-full { display: none; }
  .country-select .select-trigger .select-short { display: inline; font-size: 0.76rem; }
  .country-select .select-trigger .select-flag.is-icon { display: none; }
  .lang-select .select-trigger .select-short { display: none; }
}
