/**
 * SHORT.bid design system.
 *
 * Replaces four overlapping stylesheets that were all loaded at once:
 * style.min.css (604 KB, the purchased template), sb-admin-2.css (224 KB),
 * app.css (288 KB, unreferenced) and the Tailwind play CDN, which compiles in
 * the browser on every page view.
 *
 * Values follow Apple's own: #1d1d1f ink, #f5f5f7 alternate ground, a single
 * #0071e3 accent, 980px pill controls. The font stack is the platform's, which
 * resolves to SF Pro on Apple hardware and costs no webfont download - the
 * right trade for a service whose product is speed.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --bg-sunken:   #fafafc;
  --fg:          #1d1d1f;
  --fg-muted:    #6e6e73;
  --fg-faint:    #86868b;
  --line:        #d2d2d7;
  --line-soft:   #e8e8ed;
  --accent:      #0071e3;
  --accent-hover:#0077ed;
  --accent-soft: #e8f2fd;
  --accent-ink:  #0058b0;
  --ok:          #1d7a45;
  --ok-soft:     #e3f5e9;
  --warn:        #9a6700;
  --warn-soft:   #fdf5e2;
  --danger:      #c1121f;
  --danger-soft: #fdeaec;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 980px;

  --w: 1060px;          /* text-width container  */
  --w-wide: 1280px;     /* app-width container   */
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
}
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 17px; letter-spacing: -0.015em; }

p  { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------------------------------------------------------------- layout */
.wrap      { max-width: var(--w);      margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; }

.section     { padding: 88px 0; }
.section-sm  { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }
.grid  { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1 { gap: 8px; }  .gap-2 { gap: 14px; } .gap-3 { gap: 22px; }
.gap-4 { gap: 32px; } .gap-5 { gap: 44px; }
.grow  { flex-grow: 1; }
.center     { text-align: center; }
.push-right { margin-left: auto; }

/* ---------------------------------------------------------------- type */
.lead    { font-size: clamp(17px, 2vw, 21px); color: var(--fg-muted); line-height: 1.45; }
.muted   { color: var(--fg-muted); }
.faint   { color: var(--fg-faint); }
.small   { font-size: 13px; }
.tiny    { font-size: 11.5px; }
.mono    { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
           text-transform: uppercase; color: var(--fg-faint); }
.num     { font-variant-numeric: tabular-nums; }
.measure { max-width: 620px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  height: 54px; padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mark {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
}
.nav-mark:hover { text-decoration: none; color: var(--fg); }
.nav-mark img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.is-active { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}
.btn:hover  { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-lg    { height: 50px; padding: 0 30px; font-size: 16.5px; }
.btn-sm    { height: 32px; padding: 0 15px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--accent); }
.btn-quiet { background: var(--bg-alt); color: var(--fg); }
.btn-quiet:hover { background: #ececf0; color: var(--fg); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: auto; min-height: 92px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-faint); }
.hint  { font-size: 12px; color: var(--fg-faint); margin-top: 6px; }
.error { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* Shorten box: one control made of an input and a button. */
.shorten { display: flex; gap: 10px; max-width: 620px; }
.shorten .input { height: 52px; font-size: 16px; border-radius: var(--r-md); }

/* ---------------------------------------------------------------- surfaces */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.card-flush { padding: 0; overflow: hidden; }
.panel { background: var(--bg-alt); border-radius: var(--r-lg); padding: 34px 36px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0;
  background: var(--bg-alt); color: var(--fg-muted);
}
.pill-blue   { background: var(--accent-soft); color: var(--accent-ink); }
.pill-green  { background: var(--ok-soft);     color: var(--ok); }
.pill-amber  { background: var(--warn-soft);   color: var(--warn); }
.pill-danger { background: var(--danger-soft);  color: var(--danger); }

.note {
  padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 14px; background: var(--bg-alt); color: var(--fg);
}
.note-blue   { background: var(--accent-soft); color: var(--accent-ink); }
.note-green  { background: var(--ok-soft);     color: var(--ok); }
.note-amber  { background: var(--warn-soft);   color: var(--warn); }
.note-danger { background: var(--danger-soft);  color: var(--danger); }

/* ---------------------------------------------------------------- table */
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 0 12px 11px 0;
  font-size: 11.5px; font-weight: 500; text-align: left;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-faint);
}
.table td {
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; vertical-align: middle;
}
.table tr:hover td { background: var(--bg-sunken); }
.table .right { text-align: right; padding-right: 0; }

/* ---------------------------------------------------------------- stats */
.stat-label { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 9px; }
.stat-value { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-delta { font-size: 12px; margin-top: 9px; color: var(--fg-muted); }
.stat-delta.up { color: var(--ok); }

/* Horizontal proportion bar, used for sources and countries. */
.bar-row  { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.bar-name { width: 120px; font-size: 13px; flex-shrink: 0; }
.bar      { flex-grow: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar-dark span { background: var(--fg); opacity: .72; }
.bar-val  { width: 74px; text-align: right; font-size: 12.5px; color: var(--fg-muted);
            font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; background: var(--bg-alt); }
.footer h5 { font-size: 12.5px; font-weight: 600; margin-bottom: 14px; color: var(--fg); }
.footer a { display: block; font-size: 13.5px; color: var(--fg-muted); margin-bottom: 9px; }
.footer a:hover { color: var(--fg); text-decoration: none; }
.footer-base {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-faint);
}

/* ---------------------------------------------------------------- utility */
.hide { display: none !important; }
.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;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1{margin-top:8px}  .mt-2{margin-top:14px} .mt-3{margin-top:22px}
.mt-4{margin-top:32px} .mt-5{margin-top:48px} .mt-6{margin-top:68px}
.mb-1{margin-bottom:8px}  .mb-2{margin-bottom:14px} .mb-3{margin-bottom:22px}
.mb-4{margin-bottom:32px} .mb-5{margin-bottom:48px} .mb-6{margin-bottom:68px}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-right { margin-left: 0; }
  .nav.is-open { height: auto; flex-wrap: wrap; padding-bottom: 14px; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    width: 100%; order: 3; padding-top: 10px; border-top: 1px solid var(--line-soft);
  }
  .nav.is-open .nav-links a { padding: 8px 0; font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .shorten { flex-direction: column; }
  .shorten .btn { width: 100%; }
  .section { padding: 52px 0; }
  .panel { padding: 26px 22px; }
  .bar-name { width: 96px; }
}

/* Wide content must scroll inside its own box, never the page. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
