/* ============================================
   POLARIS HUMAN DEVELOPMENT — Design System
   ============================================ */

:root {
  /* Brand — sampled from logo */
  --navy-900: #0a1f3d;
  --navy-800: #0f2a52;
  --navy-700: #143a73;
  --navy-600: #1e4a8c;
  --navy-500: #2e63aa;
  --navy-400: #5b8ac9;
  --navy-300: #9ab5d9;
  --navy-200: #cfdef0;
  --navy-100: #e8f0fa;
  --navy-50:  #f4f8fd;

  --gold-600: #b89043;
  --gold-500: #d4a857;
  --gold-400: #e3c285;

  --ink-900: #0c1422;
  --ink-700: #2b3648;
  --ink-500: #5a6678;
  --ink-400: #8693a8;
  --ink-300: #b8c2d2;
  --ink-200: #dde3ed;
  --ink-100: #eef1f7;
  --ink-50:  #f7f9fc;

  --bg: #ffffff;
  --bg-tint: #f7f9fc;
  --line: #e3e8f1;
  --line-strong: #cad3e2;

  --success: #2f7d5b;
  --danger: #b53a2c;

  /* Type */
  --font-sans: "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(10,31,61,0.06), 0 0 0 1px rgba(10,31,61,0.04);
  --sh-2: 0 4px 14px rgba(10,31,61,0.08), 0 0 0 1px rgba(10,31,61,0.04);
  --sh-3: 0 18px 48px -12px rgba(10,31,61,0.20), 0 0 0 1px rgba(10,31,61,0.04);

  /* Layout */
  --container: 1240px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Type ramp */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow.gold { color: var(--gold-600); }
.eyebrow.on-dark { color: var(--gold-400); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy-900);
}
h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--navy-900);
}
h3, .h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-900);
}
h4, .h4 {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  color: var(--navy-900);
}
p { margin: 0 0 1em; color: var(--ink-700); }
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 62ch;
}
.small { font-size: 13px; color: var(--ink-500); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  width: 18px; height: 18px;
  transition: transform .2s ease;
}
svg.arrow, svg.ic {
  flex-shrink: 0;
}
svg.arrow {
  width: 18px;
  height: 18px;
}
svg.ic {
  width: 20px;
  height: 20px;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.btn-primary:hover { background: var(--navy-900); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy-800); background: var(--navy-50); }

.btn-on-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* Section */
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-lg { padding: var(--s-10) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.card-link {
  cursor: pointer;
}
.card-link:hover { transform: translateY(-2px); }

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: var(--navy-100);
  color: var(--navy-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-outline {
  background: transparent;
  border: 1px solid var(--navy-200);
  color: var(--navy-700);
}
.tag-gold { background: rgba(212,168,87,0.14); color: var(--gold-600); }
.tag-success { background: rgba(47,125,91,0.12); color: var(--success); }

/* Divider */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.hr-dark { background: rgba(255,255,255,0.12); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Inputs */
.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(20,58,115,0.12);
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.input.error { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 12px; margin-top: 6px; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.logo img { height: 100%; width: auto; }
.logo-mono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 20px;
  color: var(--navy-900);
}

/* Star (compass) icon used as accent */
.star-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    radial-gradient(circle at 50% 50%, #fff 1.5px, transparent 2px) center/100% 100% no-repeat,
    linear-gradient(135deg, var(--navy-600), var(--navy-800));
  border-radius: 4px;
  position: relative;
}

/* Marquee for partner logos */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.nav-link:hover { color: var(--navy-900); background: var(--navy-50); }
.nav-link.active { color: var(--navy-900); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.nav-link .caret {
  margin-left: 6px;
  width: 10px; height: 10px;
  opacity: 0.6;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 1px;
}

/* Mobile sheet */
.nav-mobile-sheet {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 49;
  overflow-y: auto;
  padding: 24px 0 80px;
  animation: sheetIn 0.18s ease-out;
}
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.nav-mobile-link.active {
  color: var(--gold-600);
}
.nav-mobile-link.sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  gap: 12px;
  justify-content: flex-start;
  padding: 14px 0;
}
.nav-mobile-foot {
  margin-top: 24px;
  padding-top: 8px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: var(--ink-500);
}
.lang-toggle button.active {
  background: var(--navy-800);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
}
.footer h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color .15s ease;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Hero common */
.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.hero-eyebrow-row .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.hero-eyebrow-row .badge {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* Stat block */
.stat-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.stat-num.on-dark { color: #fff; }
.stat-label {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.stat-label.on-dark { color: rgba(255,255,255,0.7); }

/* Partner logo cells */
.partner-cell {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter .2s ease, opacity .2s ease;
  color: var(--ink-500);
}
.partner-cell:hover { filter: none; opacity: 1; color: var(--navy-900); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Util */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; } .mt-6 { margin-top: 48px; }

/* Page hero (for inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(94,138,201,0.18), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(212,168,87,0.10), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; font-size: 19px; }

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: rgba(255,255,255,0.3); }

/* Inline icon */
.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* Section header */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head .left { max-width: 56ch; }
@media (max-width: 800px) {
  .section-head { flex-direction: column; align-items: stretch; margin-bottom: 32px; }
}

/* Course card */
.course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  cursor: pointer;
}
.course-card:hover {
  border-color: var(--navy-300);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.course-card-top {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, var(--navy-50), #fff);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 110px;
}
.course-card-top.gold { background: linear-gradient(135deg, #fbf3e1, #fff); }
.course-card-top.dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; }
.course-card-top.dark .badge { background: var(--gold-500); color: var(--navy-900); }
.course-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-card .badge {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy-100);
  color: var(--navy-700);
  padding: 5px 9px;
  border-radius: 4px;
}
.course-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 16px;
}
.course-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Floating CTA panel */
.cta-panel {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--r-xl);
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 280px at 90% 30%, rgba(212,168,87,0.18), transparent 60%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }

/* Quote */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.35;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.section-dark .quote { color: #fff; }

/* Compass icon background decoration */
.compass-bg {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
}

/* ============================================
   MOBILE RESPONSIVE — overrides for inline grids
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --container: 100%; }
  .section { padding: 72px 0; }
  .cta-panel { padding: 40px; }
  .cta-panel > div[style] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Hero split layout collapses to single column */
  section[style*="--navy-900"] > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  /* Footer grid */
  .footer .container > div[style*="grid"] {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 15px; }

  h1 { font-size: clamp(34px, 8vw, 48px) !important; line-height: 1.05 !important; }
  h2 { font-size: clamp(26px, 6vw, 36px) !important; }
  h3 { font-size: 20px !important; }
  .lead { font-size: 17px !important; }

  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .section-sm { padding: 40px 0; }

  /* Container spacing */
  .container { padding: 0 18px; }

  /* Force ALL inline-styled grids to single column on mobile */
  div[style*="grid-template-columns"],
  section[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* But keep certain 2-up grids */
  .grid-keep-2 { grid-template-columns: 1fr 1fr !important; }

  /* Standard grid utilities already collapse via the existing rules */

  /* Nav: hide desktop links + phone, show menu button */
  .nav { height: 64px; }
  .nav-links { display: none !important; }
  .nav-actions > a:first-child { display: none !important; } /* phone number */
  .nav-actions .btn { font-size: 13px; height: 40px; padding: 0 14px; }
  .nav-burger { display: inline-flex !important; }
  /* Mobile sheet styles applied always when component is mounted */

  /* Buttons */
  .btn-lg { height: 48px; padding: 0 22px; font-size: 14px; }

  /* Page hero */
  .page-hero { padding: 64px 0 56px; }
  .page-hero h1 { max-width: 100%; }

  /* Section head */
  .section-head { margin-bottom: 32px; gap: 20px; }

  /* Stat numbers */
  .stat-num { font-size: 36px; }

  /* Hero stat row in home */
  section[style*="--navy-900"] div[style*="display: flex"][style*="gap: 48px"] {
    flex-wrap: wrap !important;
    gap: 24px !important;
  }

  /* CTA panel */
  .cta-panel { padding: 28px 24px; border-radius: 16px; }
  .cta-panel h2 { font-size: 28px !important; }
  .cta-panel > div { display: block !important; }
  .cta-panel > div > div:last-child { display: none !important; } /* hide decorative star */

  /* Course card */
  .course-card-top { padding: 18px 20px; }
  .course-card-body { padding: 18px 20px 20px; }
  .course-card .badge { right: 18px; top: 18px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer .container > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 40px;
  }

  /* Form rows */
  form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Generic flex rows that should wrap */
  div[style*="display: flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  /* Reduce huge inline padding values */
  div[style*="padding: 56px"], div[style*="padding: 60px"] { padding: 32px !important; }
  div[style*="padding: 40px"] { padding: 28px !important; }
  div[style*="padding: 36px"] { padding: 24px !important; }

  /* Filter pill row should scroll horizontally */
  div[style*="border-radius: 999px"][style*="display: flex"] { gap: 8px !important; }

  /* Sim detail two-column → stacked */
  .card[style*="grid-template-columns"] {
    display: block !important;
  }

  /* Marquee */
  .marquee-track { gap: 40px !important; }

  /* Crumbs */
  .crumbs { font-size: 12px; margin-bottom: 16px; }

  /* Nav phone link in nav-actions hidden, but show only the CTA */
  .nav-inner { gap: 12px; }

  /* Tweaks panel positioning */
  .tweaks-panel,
  div[role="dialog"] {
    max-width: calc(100vw - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  .nav-actions .btn span:not(.arrow) { /* shrink CTA label */ }
  .stat-num { font-size: 30px; }
  .quote { font-size: 19px !important; }
  .partner-cell { transform: scale(0.85); }
}

