/* ==========================================================================
   Trusted Pro Connect — shared design system
   Built from the TPC logo: royal blue → indigo → purple on light backgrounds.
   Audience: home-service business owners.
   ========================================================================== */

:root {
  /* Brand */
  --blue-royal: #1E3AC4;
  --blue-royal-dark: #17309F;
  --blue-bright: #3B6FF0;
  --navy: #101C4A;
  --navy-deep: #0B1430;
  --indigo: #3B4FE0;
  --purple: #8B3FB0;
  --purple-bright: #9A4FC4;
  --grad: linear-gradient(120deg, #1E3AC4 0%, #3B4FE0 48%, #9A4FC4 100%);
  --grad-soft: linear-gradient(135deg, #EEF1FF 0%, #F6EEFC 100%);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-cool: #F6F8FC;
  --blue-pale: #F4F7FF;
  --lavender-pale: #FAF7FF;
  --charcoal: #242A38;
  --ink: #111A3D;
  --muted: #5A6379;
  --muted-light: #7A8299;
  --border: #E4E8F5;
  --border-strong: #D9DFF0;

  /* Feedback */
  --danger: #C33B3B;
  --danger-bg: #FDF1F1;
  --danger-border: #F2C9C9;
  --notice: #8A6A22;
  --notice-bg: #FFF8E9;
  --notice-border: #F2DFB4;
  --good: #1F7A4D;
  --good-bg: #EDF7F1;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 35, 90, .06);
  --shadow-md: 0 12px 28px rgba(20, 35, 90, .10);
  --shadow-lg: 0 20px 50px rgba(18, 32, 84, .13);
  --shadow-brand: 0 10px 26px rgba(30, 58, 196, .28);

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 22px; --s-6: 28px;  --s-7: 36px;  --s-8: 48px;
  --s-9: 64px; --s-10: 80px; --s-11: 104px;

  /* Type scale */
  --t-xs: 13px; --t-sm: 14.5px; --t-base: 17px; --t-md: 18.5px;
  --t-lg: 20px; --t-xl: 24px;   --t-2xl: 31px;  --t-3xl: 40px; --t-4xl: 52px;
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px; --r-pill: 999px;
  /* Restrained gold — accent only, never a primary brand colour */
  --gold: #B98B2E;          /* borders and rules only — 3.09:1 on white */
  --gold-ink: #8A5F14;      /* gold text on --gold-soft — 5.14:1 */
  --gold-soft: #FBF4E4;
  --gold-border: #EBDAB0;
  --container: 1200px;
  --container-narrow: 1000px;
  --speed: .18s;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
  text-wrap: pretty;
}
h1 { font-size: clamp(34px, 5vw, var(--t-4xl)); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, var(--t-3xl)); font-weight: 800; }
h3 { font-size: var(--t-lg); font-weight: 700; }
h4 { font-size: var(--t-base); font-weight: 700; }
p  { margin: 0; text-wrap: pretty; }

a { color: var(--blue-royal); text-decoration: none; }
a:hover { color: var(--purple); text-decoration: underline; }

img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid #7C5CE0; outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }
.lede { font-size: var(--t-md); color: var(--muted); line-height: 1.6; max-width: 66ch; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--purple); }
.grad-text { background: linear-gradient(110deg, #1E3AC4 10%, #5B45D8 55%, #A855C9 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.measure { max-width: 660px; }
.measure-center { max-width: 680px; margin-left: auto; margin-right: auto; }

.bg-pale { background: var(--blue-pale); border-block: 1px solid #E9EDF8; }
.bg-cool { background: var(--gray-cool); border-block: 1px solid #E9EDF8; }
.bg-lav  { background: linear-gradient(180deg, var(--lavender-pale) 0%, var(--blue-pale) 100%); border-block: 1px solid #ECE7F7; }
.bg-navy { background: var(--navy); color: #DCE3F7; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-grad { background: linear-gradient(120deg, #1B2FA8 0%, #3B3FD4 45%, #8B44C6 100%); color: #DDE2FB; }
.bg-grad h1, .bg-grad h2 { color: #fff; }

.grid { display: grid; gap: var(--s-5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.split-start { align-items: start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  padding: 15px 28px; border-radius: 12px; border: none; cursor: pointer;
  min-height: 50px; text-decoration: none; text-align: center;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 58, 196, .36); }
.btn-solid { background: var(--blue-royal); color: #fff; }
.btn-solid:hover { background: var(--blue-royal-dark); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #763394; color: #fff; }
.btn-outline { background: #fff; color: var(--blue-royal); border: 2px solid #C9D3F5; padding: 13px 26px; }
.btn-outline:hover { border-color: var(--blue-royal); background: var(--blue-pale); color: var(--blue-royal); }
.btn-light { background: #fff; color: #1E2FA8; }
.btn-light:hover { background: #EFE9FB; color: #1E2FA8; transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.5); padding: 13px 26px; }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { font-size: 15px; padding: 12px 20px; min-height: 44px; border-radius: var(--r-sm); }
.btn-lg { font-size: 17.5px; padding: 18px 34px; min-height: 58px; }
.link-arrow { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.topbar { background: linear-gradient(120deg, #101C4A 0%, #1E3AC4 60%, #6D3A9E 100%); color: #DCE4FF; font-size: 13.5px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.topbar a:hover { color: #fff; text-decoration-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: var(--s-4); padding-block: 8px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links > a, .nav-links .menu > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 11px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600;
  color: #2C3550; white-space: nowrap; background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.nav-links > a:hover, .nav-links .menu > button:hover { background: #EEF2FF; color: var(--blue-royal); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links .menu[data-active] > button { background: var(--grad-soft); color: var(--blue-royal); }
.menu { position: relative; }
.menu > button svg { transition: transform var(--speed) ease; }
.menu[data-open] > button svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 70;
}
.menu[data-open] .menu-panel { display: block; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #2C3550; }
.menu-panel a:hover { background: #EEF2FF; color: var(--blue-royal); text-decoration: none; }
.menu-panel a span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted-light); margin-top: 2px; }
.nav .btn { margin-left: 10px; padding: 12px 20px; font-size: 15px; min-height: 46px; border-radius: var(--r-sm); }
.nav-login { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 10px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: 8px; background: #F3F5FC; border: 1px solid #E0E5F3; border-radius: var(--r-sm); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: 12px var(--s-5) var(--s-6); max-height: 78vh; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 10px; border-radius: var(--r-sm); font-size: 16.5px; font-weight: 600; color: #2C3550; }
.mobile-nav a:hover { background: #EEF2FF; text-decoration: none; }
.mobile-nav .mgroup { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); padding: 16px 10px 4px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: var(--t-sm); color: var(--muted-light); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { font-weight: 600; }
.page-head { background: linear-gradient(170deg, var(--blue-pale) 0%, #FFF 100%); border-bottom: 1px solid #E9EDF8; }
.page-head .container { padding-block: var(--s-8) var(--s-8); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }
.card-hover { transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #BFC9F0; }
.card h3 + p, .card h2 + p { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card-top-blue { border-top: 4px solid var(--blue-royal); }
.card-top-purple { border-top: 4px solid var(--purple-bright); }
.card-left-blue { border-left: 4px solid var(--blue-royal); }
.card-left-purple { border-left: 4px solid var(--purple-bright); }
.card-dashed { border: 1px dashed #C9D2EA; background: #FBFCFF; }
.card-soft { background: var(--blue-pale); border: 1px solid var(--border); }

.icon-tile { display: flex; width: 48px; height: 48px; border-radius: 12px; background: var(--grad-soft); color: #3E43CE; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile-grad { background: var(--grad); color: #fff; }
.num-tile { display: flex; width: 42px; height: 42px; border-radius: 11px; background: var(--grad); color: #fff; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 18px; }

/* Pillars */
.pillar { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); text-align: left; }
.pillar h3 { margin-top: 14px; font-size: 18.5px; }
.pillar p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }

/* Category chips for "who TPC is for" */
.cat-chip {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; font-family: var(--font-head); font-weight: 700;
  font-size: 16px; color: var(--ink);
}
.cat-chip .icon-tile { width: 38px; height: 38px; border-radius: 10px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: var(--r-pill); padding: 5px 11px; }
.badge-blue { color: var(--blue-royal); background: #EEF2FF; }
.badge-purple { color: var(--purple); background: #F6EDFB; }
.badge-sample { color: var(--notice); background: #FBF0D9; }
.chip { background: #fff; border: 1px solid #E1E6F5; border-radius: var(--r-pill); padding: 11px 20px; font-size: 16.5px; font-weight: 700; font-family: var(--font-head); color: #2B3455; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.trust-line { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #DDE3F5; border-radius: var(--r-pill); padding: 7px 15px 7px 9px; font-size: 13.5px; font-weight: 600; color: #33406B; box-shadow: var(--shadow-sm); }
.trust-line .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(120deg, #1E3AC4, #A855C9); flex-shrink: 0; }

/* ---------- Comparison ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.vs-col { border-radius: var(--r-lg); padding: var(--s-6); }
.vs-old { background: var(--gray-cool); border: 1px solid var(--border); }
.vs-new { background: linear-gradient(165deg, #F3F6FF 0%, #FAF6FF 100%); border: 1px solid #D9E0F8; border-top: 4px solid var(--blue-royal); }
.vs-col h3 { font-size: 21px; }
.vs-col ul { margin-top: var(--s-4); display: flex; flex-direction: column; gap: 12px; }
.vs-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; }
.vs-old li { color: var(--muted); }
.vs-new li { color: #2B3455; font-weight: 600; }
.vs-col li svg { flex-shrink: 0; margin-top: 3px; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 760px; }
table.matrix th, table.matrix td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #EDF0F9; font-size: 15.5px; vertical-align: top; }
table.matrix thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 700; position: sticky; top: 0; }
table.matrix thead th.tpc-col { background: linear-gradient(120deg, #1E3AC4, #8B44C6); }
table.matrix tbody th { font-family: var(--font-head); font-weight: 700; color: var(--ink); width: 26%; background: #FBFCFF; }
table.matrix td.tpc-col { background: #F7F5FF; font-weight: 600; color: #2B3455; }
table.matrix tr:last-child th, table.matrix tr:last-child td { border-bottom: none; }
.unknown { color: var(--muted-light); font-style: italic; }

.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.acc > button:hover { background: var(--blue-pale); }
.acc > button svg { flex-shrink: 0; transition: transform var(--speed) ease; }
.acc[data-open] > button svg { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 18px 18px; }
.acc[data-open] .acc-body { display: block; }
.acc-body dl { display: grid; grid-template-columns: 1fr; gap: 12px; }
.acc-body .row { border-top: 1px solid #EDF0F9; padding-top: 12px; }
.acc-body dt { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-light); }
.acc-body dd { margin: 4px 0 0; font-size: 16px; color: #2B3455; }
.acc-body .row-tpc dt { color: var(--purple); }
.acc-body .row-tpc dd { font-weight: 600; }

/* ---------- Ecosystem hub diagram ---------- */
.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hub-core {
  grid-column: 1 / -1; background: var(--grad); color: #fff; border-radius: var(--r-lg);
  padding: var(--s-6); text-align: center;
}
.hub-core h3 { color: #fff; font-size: 24px; }
.hub-core p { color: #DCE2FB; margin-top: 8px; font-size: 16.5px; }
.hub-node { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; text-align: center; }
.hub-node h4 { font-size: 16.5px; margin-top: 12px; }
.hub-node .icon-tile { margin: 0 auto; }

/* ---------- Notices ---------- */
.notice { background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--r-sm); padding: 13px 18px; font-size: 15px; color: #6B5320; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex-shrink: 0; margin-top: 3px; }
.info-panel { background: #EEF2FF; border: 1px solid #D8E0FA; border-radius: var(--r-md); padding: var(--s-5); color: #2B3455; }
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger-border); border-left: 4px solid var(--danger); border-radius: var(--r-md); padding: 15px 18px; color: #8E2C2C; font-size: 16px; }
.disclaimer { background: var(--gray-cool); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5); font-size: 15px; color: var(--muted); line-height: 1.6; }
.disclaimer strong { color: var(--charcoal); }

/* ---------- Media placeholders ---------- */
.media-slot { border-radius: var(--r-xl); border: 1px solid #DFE5F5; background: #EDF1FB; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s-6); aspect-ratio: 4 / 3.2; color: var(--muted-light); }
.media-slot .slot-label { font-size: var(--t-sm); font-weight: 700; color: #4E5A7C; font-family: var(--font-head); margin-top: 12px; }
.media-slot .slot-hint { font-size: 13.5px; color: #77809C; line-height: 1.5; max-width: 300px; margin: 6px auto 0; }

/* ---------- Photography ---------- */
.photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid #DFE5F5; background: #EDF1FB; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

/* Full-bleed photographic hero */
.hero-photo { position: relative; isolation: isolate; background: var(--navy-deep); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-photo-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo-media img.is-on { opacity: 1; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(96deg, rgba(9,16,40,.92) 0%, rgba(11,20,48,.80) 34%, rgba(13,23,54,.40) 60%, rgba(16,28,64,.08) 100%),
              linear-gradient(180deg, rgba(9,16,40,.42) 0%, rgba(9,16,40,0) 30%);
}
.hero-photo > .container, .hero-photo > .container-narrow { position: relative; z-index: 2; }
.hero-photo-body { padding-block: var(--s-9) var(--s-10); min-height: clamp(420px, 58vh, 620px); display: flex; flex-direction: column; justify-content: center; }
.hero-photo-copy { max-width: 640px; }
.hero-photo h1 { max-width: 20ch; }
.hero-photo .lede, .hero-photo-body > p { max-width: 62ch; }
.hero-photo h1, .hero-photo h2 { color: #fff; }
.hero-photo .lede, .hero-photo p { color: #D3DCF4; }
.hero-photo .eyebrow { color: #CFAEEE; }
.hero-photo .statement { color: #fff; }
.hero-photo .breadcrumbs, .hero-photo .breadcrumbs a { color: #B7C3E4; }
.hero-photo .trust-line { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.30); color: #EDF1FF; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-photo .btn-outline { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-photo .btn-outline:hover { background: #fff; color: var(--blue-royal); border-color: #fff; }
.hero-photo-note { position: absolute; z-index: 2; right: 18px; bottom: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
@media (max-width: 720px) { .hero-photo::after { background: linear-gradient(180deg, rgba(9,16,40,.72) 0%, rgba(10,18,44,.9) 55%, rgba(10,18,44,.95) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-photo-media img { transition: none; } }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span.label { display: block; font-size: var(--t-sm); font-weight: 700; color: #2B3455; margin-bottom: 7px; }
.field > span.hint { display: block; font-size: 13.5px; color: var(--muted-light); margin: -3px 0 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--border-strong);
  border-radius: 11px; font-size: 16px; background: #FBFCFF; transition: border-color var(--speed) ease;
}
.field textarea { resize: vertical; font-family: var(--font-body); }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-royal); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFFBFB; }
.field-error { display: none; margin-top: 6px; font-size: var(--t-sm); color: var(--danger); font-weight: 600; }
.field-error.show { display: block; }
.check-field { display: flex; gap: 13px; align-items: flex-start; background: var(--blue-pale); border: 1.5px solid #DFE5F5; border-radius: 13px; padding: 18px 20px; cursor: pointer; }
.check-field.invalid { border-color: var(--danger); }
.check-field input { width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--blue-royal); cursor: pointer; flex-shrink: 0; }
.check-field span { font-size: 16px; color: #2B3455; line-height: 1.55; }
.form-card { background: #fff; border: 1px solid #DFE5F5; border-radius: var(--r-xl); padding: var(--s-8); box-shadow: var(--shadow-lg); }
.form-section { border-top: 1px solid var(--border); padding-top: var(--s-6); margin-top: var(--s-7); }
.form-section:first-of-type { border-top: none; padding-top: 0; margin-top: var(--s-6); }
.form-section > h3 { font-size: 21px; }
.form-section > p.sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
.form-success { text-align: center; padding: var(--s-7) var(--s-2); }
.success-mark { display: inline-flex; width: 66px; height: 66px; border-radius: 50%; background: var(--grad); align-items: center; justify-content: center; }
.form-note { font-size: var(--t-sm); color: var(--muted-light); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Events ---------- */
.event-list { border: 1px solid #E1E6F5; border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.event-row { display: grid; grid-template-columns: 118px 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5); border-bottom: 1px solid #EDF0F9; }
.event-row:last-child { border-bottom: none; }
.event-date { background: linear-gradient(150deg, #101C4A 0%, #2A2F82 100%); border-radius: 13px; padding: 12px 8px; text-align: center; color: #fff; }
.event-date .dow { display: block; font-size: 13px; font-weight: 600; color: #B9A6E8; }
.event-date .day { display: block; font-size: 30px; font-weight: 800; font-family: var(--font-head); line-height: 1.1; }
.event-date .mon { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; color: #C9D2F2; }
.event-venue { color: var(--purple); font-weight: 600; font-size: 16.5px; margin-top: 6px; }

/* ---------- FAQ / lists ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; padding: var(--s-5); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item h3 { font-size: var(--t-lg); }
.faq-item p { margin-top: 9px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; color: #3E4761; line-height: 1.5; }
.check-list svg { flex-shrink: 0; margin-top: 4px; }

.std-list { display: flex; flex-direction: column; gap: 12px; }
.std-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue-royal); border-radius: var(--r-md); padding: 16px 18px; }
.std-list li svg { flex-shrink: 0; margin-top: 3px; }
.std-list li span { font-size: 16.5px; color: #2B3455; line-height: 1.5; }
.std-list li.no { border-left-color: #C33B3B; }

/* ---------- Dark tiles ---------- */
.tile-dark { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11); border-radius: 13px; padding: 17px 18px; display: flex; gap: 11px; align-items: flex-start; }
.tile-dark span { font-size: 16px; font-weight: 600; color: #E6EAFA; line-height: 1.4; }
.tile-dark svg { flex-shrink: 0; margin-top: 3px; }
.eco-panel { background: linear-gradient(160deg, #141F4A 0%, #232A6E 55%, #4A2A78 100%); border-radius: var(--r-xl); padding: var(--s-9); color: #DDE3F7; }
.eco-panel h2, .eco-panel h3 { color: #fff; }
.eco-panel p { color: #BCC5E2; }
.eco-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-md); padding: 20px 18px; }
.eco-tile p { color: #B4BEDE; font-size: 15px; line-height: 1.5; margin-top: 8px; }
.foundation-pill { border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 9px 18px; font-size: var(--t-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #E4E9FA; }
.mission-line { font-size: 21px; font-weight: 700; font-family: var(--font-head); color: #fff; }

.pull-quote { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--border); border-left: 5px solid var(--purple-bright); background: linear-gradient(165deg, #F8F6FF 0%, #F6F8FF 100%); padding: var(--s-7) var(--s-6); }
.pull-quote p { font-size: 21px; line-height: 1.55; color: #2B3455; font-family: var(--font-head); font-weight: 600; }
.pull-quote footer { margin-top: var(--s-4); font-size: 15px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--purple); }

.statement { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; color: var(--ink); letter-spacing: -.02em; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 26px; margin-top: var(--s-7); }
.prose h3 { font-size: 19px; margin-top: var(--s-5); }
.prose p, .prose li { font-size: 16.5px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--charcoal); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1080px) {
  .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .hub { grid-template-columns: repeat(2, 1fr); }
  .eco-panel { padding: var(--s-7); }
}
@media (max-width: 760px) {
  .section { padding: var(--s-8) 0; }
  .g2, .g3, .g4, .g5, .split, .vs-grid, .form-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hub { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 84px 1fr; }
  .event-row .btn { grid-column: 1 / -1; }
  .form-card { padding: var(--s-6) var(--s-5); }
  .brand img { height: 38px; }
  .split { gap: var(--s-7); }
  .matrix-wrap { display: none; }
}
@media (min-width: 761px) { .acc-mobile { display: none; } }

/* ---------- Mobile hardening ----------
   Most traffic is on phones. Everything below tunes for 320-560px. */

/* Never allow sideways scroll; clip keeps position:sticky working. */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }

/* Anchor targets (#guest, #ask) must clear the sticky header. */
[id] { scroll-margin-top: 96px; }

@media (max-width: 760px) {
  /* Photo heroes: dedicated mobile crop, taller frame, full-width copy. */
  .hero-photo-body { min-height: 60vh; padding-block: var(--s-7) var(--s-8); }
  .hero-photo-copy { max-width: none; }
  .hero-photo h1 { max-width: none; font-size: clamp(30px, 8.4vw, 40px); }
  .hero-photo .lede { font-size: 18.5px !important; color: #E3E9FB !important; }
  .hero-photo .statement { font-size: 19px !important; }
  .hero-photo .eyebrow { color: #DCC8FA; }
  .hero-photo-media img { object-position: center 38% !important; }
  .hero-photo-note { right: 12px; bottom: 8px; font-size: 10px; }
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(9,16,40,.62) 0%, rgba(10,18,44,.55) 38%, rgba(10,18,44,.93) 100%) !important;
  }

  /* Two-column lists collapse. */
  .check-list { columns: 1 !important; }
  .legend { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Stat strips read as stacked rows rather than squeezed columns. */
  .stat-strip { grid-template-columns: repeat(2, 1fr); }

  /* Progressive disclosure: show a few cards, reveal the rest on request. */
  .more-wrap { display: block; margin-top: var(--s-5); }
  .grid.is-collapsed > *:nth-child(n + 4) { display: none; }
  .grid.show-4.is-collapsed > *:nth-child(n + 4) { display: block; }
  .grid.show-4.is-collapsed > *:nth-child(n + 5) { display: none; }
  .grid.show-6.is-collapsed > *:nth-child(n + 4) { display: block; }
  .grid.show-6.is-collapsed > *:nth-child(n + 7) { display: none; }
  .hub.is-collapsed > *:nth-child(n + 7) { display: none; }
  /* Keep the sticky action bar clear of the footer. */
  body.has-mobile-cta { padding-bottom: 76px; }
}
@media (min-width: 761px) { .more-wrap { display: none; } }

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 18px; }
  .section { padding: var(--s-7) 0; }

  /* Primary actions become full-width tap targets. */
  .btn-lg { width: 100%; font-size: 17px; padding: 17px 22px; }
  .hero-photo-body .btn, .bg-grad .btn, .bg-navy .btn { width: 100%; }
  .hero-photo-body a[href*="events"] { align-self: flex-start; }

  .cat-grid { grid-template-columns: 1fr !important; }
  .stat-strip { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; gap: 12px; }
  .event-date { display: flex; gap: 10px; align-items: baseline; justify-content: flex-start; padding: 10px 14px; }
  .event-date .day { font-size: 24px; }

  .form-card { padding: var(--s-5) var(--s-4); }
  .brand img { height: 34px; }
  .topbar { font-size: 13px; }
  .topbar .container { flex-direction: column; gap: 4px; text-align: center; padding-block: 8px; }

  .site-footer .footer-legal { gap: 12px 18px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 14px; }

  .tpc-map { height: 320px; }
  .tpc-map.map-sm { height: 260px; }
}

/* Comfortable tap targets everywhere touch is the primary input. */
@media (hover: none) and (pointer: coarse) {
  .site-footer a, .mobile-nav a, .footer-legal a { display: inline-block; padding-block: 7px; }
  .btn { min-height: 48px; }
  .team-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .btn:hover, .card-hover:hover, .btn-primary:hover, .btn-light:hover { transform: none; }
}

/* Visible keyboard focus, and no grey flash on tap. */
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: rgba(30, 58, 196, .12); }
:focus-visible { outline: 3px solid var(--blue-royal); outline-offset: 2px; border-radius: 4px; }
.hero-photo :focus-visible, .bg-navy :focus-visible, .bg-grad :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* Sticky mobile CTA — appears only after the hero has scrolled away, so it
   never sits on screen at the same time as the header button. */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(16, 28, 74, .10);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.mobile-cta.is-on { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 48px; font-size: 16px; padding: 11px 14px; }
.mobile-cta .btn-outline { flex: 0 0 auto; padding: 11px 16px; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
}
/* One primary CTA at a time — the header button yields wherever the
   hamburger menu is in play, since the menu carries its own. */
@media (max-width: 1180px) {
  .site-header .nav > .btn-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* Mobile readability: larger body copy and stronger secondary-text contrast. */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .lede { font-size: 18px; line-height: 1.6; }
  p, li, .card p, .card span { text-wrap: pretty; }
  .check-list li, .std-list li { font-size: 17px; line-height: 1.55; }
  .faq-item p, .card p { font-size: 16.5px; line-height: 1.62; }
  .disclaimer, .stat-src, .form-note { font-size: 14.5px; line-height: 1.6; }
  /* Secondary text sits at 4.5:1 or better on white. */
  .card p, .faq-item p, .lede, .stat-label, .stat-sub { color: #4B546B; }
  .stat-src, .disclaimer, .form-note, .breadcrumbs { color: #565F76; }
}

/* Seven-step model: wide diagram on desktop, native vertical stepper on phones. */
.model-steps { display: none; list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.model-steps li { position: relative; display: flex; gap: 16px; padding: 0 0 22px 0; }
.model-steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(#D8DEF6, #EADAF6); }
.model-steps li:last-child { padding-bottom: 0; }
.model-steps li:last-child::before { display: none; }
.model-step-n { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--grad);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(30,58,196,.22); }
.model-steps h3 { font-size: 18px; margin: 9px 0 0; line-height: 1.25; }
.model-steps p { font-size: 16.5px; line-height: 1.6; color: #4B546B; margin-top: 6px; }
@media (max-width: 760px) {
  .model-steps { display: block; }
  .model-figure { display: none; }
}

/* Live events: featured next event, reserve chip, calendar links. */
.event-featured { background: linear-gradient(135deg, #101C4A, #1B2C6E 60%, #2A2560); border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.reserve-chip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  background: #EFF3FE; border: 1px solid #C9D2F5; border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 15.5px; color: #2C3550; }
.reserve-chip button { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #DDE4FA; color: var(--blue-royal); font-size: 19px; line-height: 1; cursor: pointer; }
.cal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.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; }

/* Mobile menu: lock the page behind it. */
body.nav-open { overflow: hidden; }
.mobile-nav-head { display: none; }
@media (max-width: 1180px) {
  .mobile-nav.open { position: fixed; inset: 0; z-index: 80; max-height: none; height: 100dvh;
    padding: 0 var(--s-5) calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .mobile-nav-head { display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; padding: 16px 2px 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border); z-index: 1; }
  .mobile-nav-head span { font-family: var(--font-head); font-weight: 800; font-size: 15px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .mnav-close { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: #F3F5FC; border: 1px solid #E0E5F3; border-radius: var(--r-sm); color: var(--blue-royal); cursor: pointer; }
}
.mobile-nav .mgroup-block { border-bottom: 1px solid #EEF1F9; }
.mobile-nav button.mgroup { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 16px 10px; min-height: 52px; font-family: var(--font-head); font-weight: 700;
  font-size: 16.5px; letter-spacing: 0; text-transform: none; color: #2C3550; cursor: pointer; text-align: left; }
.mobile-nav button.mgroup svg { flex-shrink: 0; color: var(--muted); transition: transform var(--speed) ease; }
.mobile-nav button.mgroup[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav .mgroup-panel { display: none; padding: 2px 0 10px 10px; }
.mobile-nav .mgroup-panel.open { display: block; }
.mobile-nav .mgroup-panel a { font-weight: 600; font-size: 16px; color: #4A5470; padding: 12px 10px; }
.mobile-nav > a:not(.btn) { border-bottom: 1px solid #EEF1F9; padding: 16px 10px; min-height: 52px;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: #2C3550; }
/* Buttons inside the menu must win over the generic link colour above. */
.mobile-nav a.btn { display: flex; font-size: 16.5px; padding: 15px 20px; min-height: 52px; }
.mobile-nav a.btn-primary { color: #fff; }
.mobile-nav a.btn-outline { color: var(--blue-royal); }
.mobile-nav a.btn:hover { background-color: transparent; }
.mobile-nav a.btn-primary:hover { color: #fff; }

/* Footer social icons + credit */
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3A4670;
  display: flex; align-items: center; justify-content: center; color: #9BA6C8;
  transition: color var(--speed) ease, border-color var(--speed) ease, background-color var(--speed) ease; }
.footer-social a:hover { color: #fff; border-color: #6B7BB8; background-color: rgba(255,255,255,.06); }
.footer-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #C9D2EE; }

/* Respect the iPhone home indicator / notch. */
@media (max-width: 560px) {
  @supports (padding: max(0px)) {
    .container, .container-narrow {
      padding-left: max(18px, env(safe-area-inset-left));
      padding-right: max(18px, env(safe-area-inset-right));
    }
  }
}
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #AEB8D6; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); padding-block: var(--s-9) var(--s-7); }
.site-footer h3 { font-size: var(--t-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-footer ul { margin-top: var(--s-4); display: flex; flex-direction: column; gap: 11px; }
.site-footer a { color: #AEB8D6; font-size: 16px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-logo { display: inline-flex; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-creed { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: var(--s-5) 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-creed span { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: #C9D2F2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; padding-block: var(--s-5); }
.footer-bottom p { font-size: 16px; font-weight: 700; font-family: var(--font-head); color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; font-size: var(--t-sm); }
@media (max-width: 1080px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }


/* ---------- Trusted Team model ---------- */
.nav-second { margin-left: 4px; }
@media (max-width: 1180px) { .nav-second { display: none; } }

.ladder { display: grid; gap: 10px; margin-top: var(--s-6); }
.ladder-step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; }
.ladder-step + .ladder-step { margin-left: clamp(0px, 3vw, 46px); }
.ladder-step .rung { font-family: var(--font-head); font-weight: 800; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; background: var(--grad); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.ladder-step p { margin: 0; font-size: 16.5px; color: var(--muted); line-height: 1.5; }
.ladder-step strong { color: var(--ink); font-family: var(--font-head); }
@media (max-width: 700px) {
  .ladder-step { grid-template-columns: 1fr; gap: 10px; }
  .ladder-step + .ladder-step { margin-left: 0; }
}

.city-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s-6); box-shadow: var(--shadow-sm); transition: box-shadow var(--speed) ease, transform var(--speed) ease; }
.city-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.city-card h3 { font-size: 24px; }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.team-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-pale);
  border: 1px solid #D5DEF8; border-radius: 999px; padding: 7px 13px; font-size: 14.5px;
  font-family: var(--font-head); font-weight: 600; color: var(--blue-royal); }
a.team-chip:hover { background: #E3EAFD; text-decoration: none; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 6px 13px; font-size: 13.5px; font-family: var(--font-head); font-weight: 700; letter-spacing: .01em; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-open { background: #E7F5EC; color: #1B6E42; }
.status-review { background: #FFF4E0; color: #9A6510; }
.status-filled { background: #F0F1F5; color: #5B6377; }
.status-future { background: #EDE9FB; color: #6B3FA8; }

.channel { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px; }
.channel h3 { font-size: 17.5px; }
.channel p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.channel .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-family: var(--font-head);
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; }


.engine { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: var(--s-6); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--s-5); font-size: 14.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }


/* ---------- Coverage map ---------- */
.map-frame { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--gray-cool); }
.tpc-map { height: 600px; width: 100%; }
.tpc-map.map-sm { height: 380px; }
@media (max-width: 700px) { .tpc-map { height: 400px; } .tpc-map.map-sm { height: 320px; } }
.leaflet-container { font-family: var(--font-body); background: #EAF0FA; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 14px 16px; font-size: 15px; line-height: 1.5; }
.leaflet-popup-content .pop-city { font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-light); }
.leaflet-popup-content .pop-name { display: block; margin-top: 4px; font-family: var(--font-head);
  font-weight: 700; font-size: 17px; color: var(--ink); }
.leaflet-popup-content a { display: inline-block; margin-top: 8px; font-family: var(--font-head);
  font-weight: 700; font-size: 14.5px; }
.map-label { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  color: var(--navy); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  white-space: nowrap; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--border); background: #fff; font-size: 14.5px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 9px; }
.map-legend i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.map-dot-city { background: var(--blue-royal); }
.map-dot-team { background: var(--purple-bright); }


/* ---------- Market data ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 5px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05; color: var(--blue-royal); letter-spacing: -0.01em; }
.stat-label { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.stat-sub { font-size: 13px; color: var(--muted); line-height: 1.35; font-weight: 600; }
.stat-src { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.stat-strip.on-dark { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.15); }
.stat-strip.on-dark .stat { background: #16204B; }
.stat-strip.on-dark .stat-num { color: #A9BCFF; }
.stat-strip.on-dark .stat-label { color: #B9C3E0; }


/* Data tables that scroll on mobile rather than hiding (unlike .matrix-wrap,
   which has an accordion fallback). */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.table-scroll table { width: 100%; min-width: 620px; border-collapse: collapse; }
.table-scroll caption { text-align: left; }
.table-scroll th, .table-scroll td { padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 15.5px; vertical-align: top; }
.table-scroll thead th { background: var(--blue-pale); color: var(--blue-royal);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table-scroll tbody th { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-scroll tbody tr:last-child th, .table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover td, .table-scroll tbody tr:hover th { background: #FAFBFF; }
.table-scroll .unknown { color: var(--muted); font-style: italic; }
@media (max-width: 700px) { .table-scroll table { min-width: 560px; } }


/* ---------- Gold accents (restrained) ---------- */
.status-pill.status-forming { background: var(--gold-soft); color: var(--gold-ink); }
.accent-rule { height: 3px; width: 56px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-royal), var(--purple-bright) 60%, var(--gold)); }
.card-top-gold { border-top: 3px solid var(--gold); }
.gold-note { border-left: 3px solid var(--gold); background: var(--gold-soft);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 16px; line-height: 1.55; color: var(--ink); }
