/* ==========================================================================
   China Flexpat — design system
   Palette taken from the Flexpat logo: navy lettering, blue arc, red X.
   No external fonts or CDNs: Google Fonts and most CDNs are unreachable from
   mainland China, which is where a large part of this audience sits.
   ========================================================================== */

:root {
  /* Brand (from the logo) */
  --navy: #002780;
  --navy-2: #2f478b;
  --navy-soft: #e9eef9;
  --red: #ee0c12;           /* logo red — decoration only */
  --red-ui: #d40a10;        /* buttons and text: passes AA on white */
  --red-ui-hover: #b0080d;
  --red-soft: #fdeced;

  /* Neutrals */
  --ink: #0e1630;
  --ink-2: #3a4258;
  --ink-3: #657088;
  --line: #e1e5ee;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --bg-3: #edf1f8;

  /* Hero / dark bands stay dark in both themes */
  --band: #001a57;
  --band-2: #0b2a73;
  --band-ink: #dfe6f7;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Songti SC", "Times New Roman", serif;

  --gap: 1.5rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 22, 48, .05), 0 8px 24px -12px rgba(14, 22, 48, .2);
  --shadow-lg: 0 2px 4px rgba(14, 22, 48, .06), 0 24px 48px -20px rgba(14, 22, 48, .3);
  --max: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #8ea8ff;
    --navy-2: #9fb3e8;
    --navy-soft: #16224a;
    --red-ui: #ff4b51;
    --red-ui-hover: #ff7378;
    --red-soft: #3a1416;
    --ink: #eef2fb;
    --ink-2: #c3cadb;
    --ink-3: #8f99b0;
    --line: #253154;
    --bg: #0a1022;
    --bg-2: #0f1730;
    --bg-3: #16203d;
    --band: #050b1d;
    --band-2: #0d1a40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --navy: #8ea8ff;
  --navy-2: #9fb3e8;
  --navy-soft: #16224a;
  --red-ui: #ff4b51;
  --red-ui-hover: #ff7378;
  --red-soft: #3a1416;
  --ink: #eef2fb;
  --ink-2: #c3cadb;
  --ink-3: #8f99b0;
  --line: #253154;
  --bg: #0a1022;
  --bg-2: #0f1730;
  --bg-3: #16203d;
  --band: #050b1d;
  --band-2: #0d1a40;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
}

/* --------------------------------------------------------------- reset --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-ui); }

:focus-visible { outline: 2px solid var(--red-ui); outline-offset: 3px; border-radius: 3px; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  padding: .12em .38em;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- layout --- */

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section.tight { padding: clamp(2rem, 5vw, 3rem) 0; }
.bg-alt { background: var(--bg-2); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------- type --- */

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red-ui);
  margin-bottom: .9rem;
}

.lede { font-size: clamp(1.075rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center.section-head { margin-inline: auto; }

.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
    color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-ui); color: #fff; }
.btn-primary:hover { background: var(--red-ui-hover); color: #fff; }
.btn-navy { background: var(--navy); color: var(--bg); }
.btn-navy:hover { background: var(--navy-2); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--bg-2); }
.btn-light { background: #fff; color: #001a57; }
.btn-light:hover { background: #e6ebf7; color: #001a57; }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* ------------------------------------------------------------- chrome --- */

.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--red-ui); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; margin-right: auto; flex: none; }
.brand img { height: 58px; width: auto; }

/* One logo per theme. The dark one has white lettering. */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  padding: .5rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-3); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }
.nav-toggle { display: none; }
.mobile-only-cta { display: none; }

@media (max-width: 1180px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; font-size: 1rem; border-radius: 0; }
  .nav a + a { border-top: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .9rem; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .mobile-only-cta { display: block; color: var(--red-ui) !important; font-weight: 700 !important; }
}
@media (max-width: 420px) { .brand img { height: 48px; } }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--band-ink);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(48rem 26rem at 88% 0%, rgba(238, 12, 18, .28), transparent 62%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(47, 71, 139, .55), transparent 65%),
    linear-gradient(160deg, var(--band-2), var(--band));
}
/* The logo's arc, echoed large in the background. */
.hero::after {
  content: "";
  position: absolute;
  right: -12rem; top: 50%;
  width: 42rem; height: 42rem;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(143, 168, 255, .35);
  border-bottom-color: rgba(238, 12, 18, .45);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .45em; max-width: 18ch; }
.hero h1 .accent { color: #ff5157; }
.hero .lede { color: #c7d1ea; margin-bottom: 2rem; }
.hero .lede a { color: #fff; }
.hero .eyebrow { color: #ff7a7e; }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
}
.stats div { padding: 1.2rem 1.25rem; background: rgba(0, 16, 60, .55); }
.stats .n { display: block; font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.stats .l { font-size: .85rem; color: #aab6d6; }

/* Page header for inner pages: a slimmer band. */
.page-hero { padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.25rem); }
.page-hero h1 { max-width: 22ch; }

/* ----------------------------------------------------------- start here --- */

.start {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.start a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.start a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.start .k { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ui); }
.start h3 { margin: 0; font-size: 1.15rem; }
.start p { margin: 0; font-size: .925rem; color: var(--ink-3); }
.start .go { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--navy); }

/* --------------------------------------------------------------- card --- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }

.card-body { padding: 1.15rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.card p { font-size: .92rem; color: var(--ink-3); margin: 0; }
.card .meta {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .8rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
}
.card .num { font-size: .75rem; font-weight: 700; color: var(--red-ui); letter-spacing: .04em; margin-bottom: .3rem; }

.card-art { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--bg-3); }
/* Episode cards in dense grids: shorter art keeps rows scannable. */
.ep-card .card-art { aspect-ratio: 16 / 10; }

.tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-red { background: var(--red-soft); color: var(--red-ui); }
.tag-plain { background: var(--bg-3); color: var(--ink-3); }

.feature {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  height: 100%;
}
.feature .num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.075rem; }
.feature p { color: var(--ink-3); font-size: .945rem; margin: 0; }
.feature p + p { margin-top: .8rem; }

/* ------------------------------------------------------ podcast player --- */

.listen {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 900px) { .listen { grid-template-columns: 1fr; } }

.show-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.25rem;
}
.show-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.show-head img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; }
.show-head h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.show-head p { margin: 0; font-size: .875rem; color: var(--ink-3); }
.spotify-embed { width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--bg-3); }

.ep-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
/* Reserve the height of five rows so the page below does not jump when the
   live feed arrives. */
#latest-list { min-height: 345px; }
.ep-list li + li { border-top: 1px solid var(--line); }
.ep-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  padding: .85rem 1rem;
}
.ep-row.is-playing { background: var(--navy-soft); }
.play {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--red-ui);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.play:hover { background: var(--red-ui-hover); transform: scale(1.06); }
.play svg { width: 16px; height: 16px; }
.ep-row .t { font-weight: 600; color: var(--ink); line-height: 1.3; font-size: .975rem; }
.ep-row .t a { color: inherit; text-decoration: none; }
.ep-row .t a:hover { color: var(--red-ui); }
.ep-row .s { font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.ep-row .ext { font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.player {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  background: var(--navy-soft);
  border: 1px solid var(--line);
}
.player[hidden] { display: none; }
.player .now { font-size: .82rem; color: var(--ink-3); margin-bottom: .45rem; }
.player .now strong { color: var(--ink); }
.player audio { width: 100%; height: 40px; }

/* --------------------------------------------------------- comparison --- */

.compare { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--bg); }
.compare-col.is-flexpat { border-color: var(--navy); box-shadow: var(--shadow); }
.compare-col h3 { display: flex; align-items: center; gap: .6rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.compare-col li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
}
.compare-col.is-flexpat li::before { background: var(--red); }

/* Employer-facing table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.cmp th, table.cmp td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
table.cmp thead th { border-top: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); }
table.cmp tbody th { color: var(--ink); font-weight: 600; width: 28%; }
table.cmp td.win { color: var(--ink); }
table.cmp td.win::before { content: "✓ "; color: var(--red-ui); font-weight: 700; }

/* ------------------------------------------------------------ filters --- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--bg); }

.facets {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  margin-bottom: 1.25rem;
}
.facets label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.facets select, .search input {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .925rem;
}

.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { padding-left: 2.4rem; border-radius: 999px; }
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }

.result-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.result-count { font-size: .875rem; color: var(--ink-3); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.path-banner {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy-soft);
  border: 1px solid var(--line);
}
.path-banner[hidden] { display: none; }
.path-banner strong { color: var(--ink); }

.empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------- learning paths --- */

.path-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink-2);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.path-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--navy-2), var(--red)); }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.path-card .k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ui); margin-bottom: .45rem; }
.path-card h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.path-card p { font-size: .9rem; color: var(--ink-3); margin: 0; }
.path-card .meta { margin-top: auto; padding-top: 1rem; font-size: .82rem; font-weight: 600; color: var(--navy); }

.step-badge {
  position: absolute; top: .75rem; left: .75rem;
  min-width: 30px; height: 30px; padding: 0 .5rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--red-ui); color: #fff;
  font-size: .8rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.ep-card { position: relative; }

/* --------------------------------------------------------------- jobs --- */

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 1.5rem;
  align-items: center;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.job + .job { margin-top: .85rem; }
.job h3 { font-size: 1.075rem; margin: 0 0 .25rem; }
.job .co { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.job p { font-size: .9rem; color: var(--ink-3); margin: .5rem 0 0; }
.job .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- long form --- */

.prose { max-width: 70ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.72; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 2rem 0;
  padding: .35rem 0 .35rem 1.5rem;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------- episode --- */

.episode-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 640px) { .episode-head { grid-template-columns: 1fr; gap: 1.25rem; } .episode-head img { max-width: 240px; } }
.episode-head img { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); background: var(--bg-3); }
.listen-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- team --- */

.person { text-align: center; }
.person .portrait { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: var(--bg-3); margin-bottom: .9rem; }
.person .ph, .portrait.ph {
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: var(--navy);
  background: linear-gradient(150deg, var(--navy-soft), var(--bg-2));
}
.person h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.role { font-size: .875rem; color: var(--red-ui); font-weight: 600; margin-bottom: .5rem; }
.person p { font-size: .9rem; color: var(--ink-3); margin: 0; }

.person-lead { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.person-lead .portrait { width: 100%; aspect-ratio: 1; border-radius: var(--radius); }
@media (max-width: 900px) { .person-lead { grid-template-columns: 1fr; gap: 1.25rem; } .person-lead .portrait { max-width: 170px; } }

/* -------------------------------------------------------------- events --- */

.event {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {
  .event { grid-template-columns: 68px minmax(0, 1fr); }
  .event .btn { grid-column: 2; justify-self: start; }
}
.date-block { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .25rem; background: var(--bg-2); }
.date-block .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red-ui); }
.date-block .d { display: block; font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.event h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.event p { font-size: .9rem; color: var(--ink-3); margin: 0; }
.event-photo { display: block; width: 96px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.event-photo:hover img { transform: scale(1.08); }
@media (max-width: 700px) { .event-photo { display: none; } }

/* ----------------------------------------------------------- join / QR --- */

.qr-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) { .qr-panel { grid-template-columns: 1fr; } .qr-panel .qr { max-width: 240px; } }
.qr {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px dashed var(--line);
  display: grid; place-items: center;
  text-align: center; padding: 1rem;
  font-size: .85rem; color: var(--ink-3);
  object-fit: contain;
}

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1rem 2.75rem; font-size: .975rem; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.1rem;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy); color: var(--bg);
  font-size: .8rem; font-weight: 700;
}
.steps li:last-child { padding-bottom: 0; }

.tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tier { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: flex; flex-direction: column; }
.tier.is-featured { border-color: var(--navy); box-shadow: var(--shadow); }
.tier .price { font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin: .25rem 0 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tier li { padding: .45rem 0 .45rem 1.5rem; position: relative; font-size: .95rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--red-ui); font-weight: 700; }
.tier .btn { margin-top: auto; }

/* --------------------------------------------------------- testimonial --- */

.quote { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); height: 100%; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.075rem; line-height: 1.6; color: var(--ink); }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-soft); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--navy); flex: none; }
.quote .who { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.quote .where { font-size: .82rem; color: var(--ink-3); }

/* ----------------------------------------------------------------- CTA --- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  background: linear-gradient(135deg, var(--band-2), var(--band));
  color: var(--band-ink);
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; left: 50%; bottom: -14rem;
  width: 30rem; height: 30rem; transform: translateX(-50%);
  border-radius: 50%; border: 3px solid transparent; border-top-color: rgba(238, 12, 18, .4);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #b9c4e0; margin-inline: auto; margin-bottom: 1.75rem; }

/* ----------------------------------------------------------------- form --- */

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .975rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.note { padding: 1rem 1.2rem; border-left: 3px solid var(--red); background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .935rem; }
.placeholder-note { font-size: .8rem; color: var(--ink-3); font-style: italic; }

/* --------------------------------------------------------------- footer --- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: .925rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(130px, 1fr)); } }
.site-footer .brand img { height: 52px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--red-ui); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }

/* --------------------------------------------------------------- motion --- */

/* Content is visible by default. Only once JS has confirmed it is running
   (html.js) are sections hidden in order to fade them in — so a JS error or
   an observer that never fires can never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
