/* Lenny base styles. Mobile-first, generous tap targets, plain and warm.
   All colours reference semantic tokens (tokens.css). */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Headings use the display face */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  font-weight: 300; /* Champie Light */
  color: var(--color-crushed-cherry);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h1); }
h3 { font-size: 22px; }

p { margin: 0 0 var(--space-3); }

a {
  color: var(--color-link);
  text-underline-offset: 2px;
}

/* Visible focus everywhere — accessibility matters more for this audience. */
:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  flex: 1 0 auto;
}

/* --- Header / logo lockup (brand §5.4) --- */
.site-header {
  padding: var(--space-3);
  display: flex;
  justify-content: center;
}
/* Logo lockup: salmon bell tile + Fredoka wordmark + endorsement. */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  line-height: 1;
}
.logo-lockup .mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-salmon-roe);
  color: #fff;
  display: grid;
  place-items: center;
}
.logo-lockup .mark .bell { width: 26px; height: 26px; display: block; }
.logo-lockup .lock-txt { display: flex; flex-direction: column; }
.logo-lockup .wm {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 27px;
  color: var(--color-crushed-cherry);
  letter-spacing: -0.01em;
}
.logo-lockup .en { font-size: 10px; color: var(--color-muted); margin-top: 2px; }
/* On dark surfaces (footer) the wordmark reverses to white. */
.site-footer--full .logo-lockup .wm { color: #fff; }
.site-footer--full .logo-lockup .en { color: rgb(255 255 255 / 0.6); }

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 12px 34px -22px rgb(0 0 0 / 0.3);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.card--peach { background: var(--color-pale-peach); box-shadow: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.18s ease,
    box-shadow 0.18s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 8px 22px -8px rgb(255 87 48 / 0.75);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 28px -8px rgb(255 87 48 / 0.8);
}
.btn--secondary { /* cherry ghost */
  background: transparent;
  color: var(--color-crushed-cherry);
  border-color: currentColor;
}
.btn--secondary:hover { background: rgb(112 3 47 / 0.06); }
.btn--dark { background: var(--color-crushed-cherry); color: #fff; }
.btn--dark:hover { background: #2E1324; }
.btn--light { background: #fff; color: var(--color-crushed-cherry); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }
.btn .arw { transition: transform 0.18s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   MARKETING HOME (design refresh) — scoped to .mh
   ========================================================================== */
.mh { container-type: inline-size; container-name: home; position: relative; overflow: hidden; }
.mh-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.mh-sec { padding: 74px 40px; }
.mh h1, .mh h2, .mh h3 { letter-spacing: -0.015em; }
.mh-h1 { font-size: 72px; }
.mh-h2 { font-size: 46px; }

.mh-eyebrow {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
  color: var(--salmon); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px;
}
.mh-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: var(--purple); border: 2px solid transparent; font-weight: 700; font-size: 15px; color: #fff;
}
.mh-chip--peach { background: var(--pink); border-color: transparent; color: var(--cherry); }
.mh-chip--salmon { background: var(--salmon); border-color: transparent; color: #fff; }
.mh-chip--sky { background: var(--sky); border-color: transparent; color: #fff; }
.mh-chip--green { background: var(--green); border-color: transparent; color: var(--ink); }
.mh-num { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--fdisp); font-size: 26px; color: #fff; }
.mh-lift { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
.mh-lift:hover { transform: translateY(-6px); }

.mh-float { animation: mhFloat 6s ease-in-out infinite; }
.mh-float2 { animation: mhFloat 7.5s ease-in-out infinite; }
@keyframes mhFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

.mh-marq { overflow: hidden; position: relative; }
.mh-mtrack { display: flex; align-items: center; gap: 14px; width: max-content; animation: mhMarq 34s linear infinite; }
.mh-marq:hover .mh-mtrack { animation-play-state: paused; }
.mh-mtrack--rev { animation-direction: reverse; animation-duration: 40s; }
@keyframes mhMarq { to { transform: translateX(-50%); } }
.mh-logo { display: inline-flex; align-items: center; gap: 10px; padding: 0 12px; color: #a7a29b; white-space: nowrap; }
.mh-logo .lname { font-family: var(--fdisp); font-weight: 400; font-size: 23px; }
.mh-logo svg { width: 26px; height: 26px; flex: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.mh-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.mh-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mh-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mh-safety-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.mh-stats { display: flex; gap: 26px; margin-top: 42px; }

@container home (max-width: 760px) {
  .mh-wrap { padding: 0 22px; }
  .mh-hero-grid, .mh-2col, .mh-3col, .mh-safety-grid { grid-template-columns: 1fr; }
  .mh-h1 { font-size: 42px; }
  .mh-h2 { font-size: 34px; }
  .mh-stats { gap: 16px; flex-wrap: wrap; }
  .mh-hero-pad { padding: 44px 22px 52px !important; }
  .mh-sec { padding: 52px 22px; }
  .mh-cta { padding: 40px 26px !important; }
  .mh-hide-sm { display: none !important; }
  .mh-doors-card { padding: 30px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mh-float, .mh-float2, .mh-mtrack { animation: none; }
}

/* --- Content pages (reuse the .mh marketing system) --- */
.mh-narrow { max-width: 760px; margin: 0 auto; }
.mh-title { font-size: 58px; }
.mh-lede { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }
.mh-sec--tint { background: var(--teal); }
.mh-sec--tint h1, .mh-sec--tint h2, .mh-sec--tint h3 { color: #fff; }
.mh-sec--tint .mh-eyebrow { color: var(--fluro); }
.mh-sec--tint p, .mh-sec--tint .mh-lede, .mh-sec--tint .muted { color: rgb(255 255 255 / 0.92); }
.mh-sec--tint a:not(.btn) { color: #fff; text-decoration: underline; }
.mh-sec--cherry { background: var(--cherry); }
.mh-sec--cherry h1, .mh-sec--cherry h2, .mh-sec--cherry h3 { color: #fff; }
.mh-sec--cherry p, .mh-sec--cherry .mh-lede, .mh-sec--cherry .lede { color: #f2d9d0; }
.mh-sec--cherry a:not(.btn) { color: #fff; }
.mh-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.mh-center { text-align: center; }
.mh-center .mh-lede { margin-left: auto; margin-right: auto; max-width: 58ch; }
.mh-center .mh-cta-row { justify-content: center; }
.mh-hd { max-width: 720px; }
.mh-card-h { display: inline-flex; align-items: center; gap: 12px; margin-top: 0; }
@container home (max-width: 760px) {
  .mh-title { font-size: 40px; }
  .mh-lede { font-size: 18px; }
}

/* ==========================================================================
   PUBLIC SITE — responsive nav, marketing sections, full footer
   ========================================================================== */

/* --- Top nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--red);
}
.nav-links a:hover { color: var(--fluro); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.nav-logo { text-align: left; }
.nav-logo .wordmark { font-size: 26px; }
.nav-logo .endorsement { font-size: 10px; }
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  cursor: pointer;
}
.nav-burger span {
  width: 26px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Mobile: collapsed by default and animated open (kept display:flex so it can
   transition height/opacity rather than pop in). */
.nav-links {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: var(--space-1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.24s ease, transform 0.3s ease;
}
.nav-toggle:checked ~ .nav-links {
  max-height: 460px;
  opacity: 1;
  transform: none;
  padding: var(--space-2) 0;
}
/* Burger morphs into an X when open. */
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 12px 4px;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}
.nav-links a.active { color: var(--color-primary); }
/* Nav text links use the brand face (Fredoka, already self-hosted) — friendlier
   and on-brand vs plain body Inter. Buttons keep the body font. */
.nav-links a:not(.btn) { font-family: var(--fbrand); font-weight: 500; font-size: 17px; }
.nav-links .btn { justify-content: center; }
.nav-links .btn--primary { color: var(--color-text-inverse); }
/* Bold red nav bar (Nell's treatment): fluro logo tile + white lockup on red,
   with a white "Get started" so the yellow logo is the single yellow accent. */
.site-nav .logo-lockup .mark { background: var(--fluro); color: var(--purple); }
.site-nav .logo-lockup .wm { color: #fff; }
.site-nav .logo-lockup .en { color: rgb(255 255 255 / 0.72); }
.site-nav .nav-burger span { background: #fff; }
.site-nav .nav-links a { color: #fff; }
.site-nav .nav-links a.active { color: var(--fluro); }
.site-nav .nav-links .btn--primary { background: #fff; color: var(--red); box-shadow: none; }
.site-nav .nav-links .btn--primary:hover { background: #fff; }
@media (min-width: 800px) {
  .nav-burger { display: none; }
  .nav-links {
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: var(--space-4);
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    transition: none;
  }
  .nav-links a { padding: 0; }
}

/* --- Marketing sections --- */
.m-section { padding: clamp(40px, 7vw, 88px) var(--space-3); }
.m-section--tint { background: var(--color-pale-peach); }
.m-section--cherry { background: var(--color-crushed-cherry); }
.m-section--cherry h1, .m-section--cherry h2, .m-section--cherry h3 { color: var(--color-text-inverse); }
.m-section--cherry p { color: #f2d9d0; }
.m-inner { max-width: 1080px; margin: 0 auto; }
.m-narrow { max-width: 720px; margin: 0 auto; }
.m-center { text-align: center; }
.m-center .lede { margin-left: auto; margin-right: auto; max-width: 60ch; }
.m-eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--color-primary); margin: 0 0 var(--space-3);
}
.m-section h2 { font-size: clamp(26px, 4vw, 38px); }

/* Hero */
.m-hero { display: grid; gap: var(--space-5); align-items: center; }
.m-hero h1 { font-size: clamp(36px, 6.5vw, 62px); }
.m-hero .lede { font-size: clamp(17px, 2.2vw, 20px); }
.m-hero-visual { display: grid; place-items: center; }
.m-hero-visual .miso { width: min(220px, 60vw); height: auto; }
.m-hero-blobs {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.m-hero-blobs .blob {
  position: absolute; inset: 0; margin: auto;
  width: 78%; height: 78%;
  background: var(--color-candy-floss-blue);
  border-radius: 47% 53% 62% 38% / 45% 40% 60% 55%;
  opacity: 0.5;
}
.m-hero-blobs .miso { position: relative; z-index: 1; width: 55%; }
@media (min-width: 860px) {
  .m-hero { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); }
}

/* Responsive card grids */
.m-grid { display: grid; gap: var(--space-4); }
.m-grid--2 { grid-template-columns: 1fr; }
.m-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .m-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .m-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.m-card { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4); }
.m-card h3 { margin-top: 0; }
.m-card .m-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-pale-peach); color: var(--color-crushed-cherry);
  font-family: var(--font-display); font-size: 20px; margin-bottom: var(--space-2);
}
.m-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.m-cta-row .btn { flex: 0 1 auto; }
.m-center .m-cta-row { justify-content: center; }

/* Operator match list uses desktop width */
@media (min-width: 760px) {
  .match-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); align-items: start; }
}

/* --- Footer --- */
.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  color: var(--color-muted);
  font-size: 14px;
}
.site-footer--full {
  text-align: left;
  background: var(--color-crushed-cherry);
  color: var(--color-text-inverse);
  padding: var(--space-6) var(--space-3) var(--space-4);
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: var(--space-5); }
.footer-brand .endorsement { color: rgb(255 255 255 / 0.6); }
.footer-cols { display: grid; gap: var(--space-4); }
.footer-col h4 {
  font-family: var(--font-body); color: var(--color-text-inverse);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.65; margin: 0 0 var(--space-2);
}
.footer-col a { display: block; color: var(--color-text-inverse); text-decoration: none; opacity: 0.9; padding: 5px 0; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-legal { max-width: 1080px; margin: var(--space-5) auto 0; font-size: 13px; color: rgb(255 255 255 / 0.6); }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.3fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* --- Forms --- */
.field { margin-bottom: var(--space-4); }
.field > label.label {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--space-2);
}
.field .help {
  color: var(--color-muted);
  font-size: 15px;
  margin: 0 0 var(--space-2);
}
.input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
}
.input:focus { border-color: var(--color-link); }
textarea.input { min-height: 90px; resize: vertical; }
.field-error {
  color: var(--color-danger);
  font-size: 15px;
  margin-top: var(--space-2);
}
.input--invalid { border-color: var(--color-danger); }

/* --- Value / availability chips --- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
}
.chip:has(input:focus-visible) { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }

/* --- Date-of-birth three-box row --- */
.dob-row { display: flex; gap: 8px; }
.dob-row .input { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 6px; }
.dob-row .input:first-child { flex: 0 0 26%; } /* day a touch narrower */

/* --- Availability grid --- */
.avail-day { margin-bottom: var(--space-3); }
.avail-day .day-name { font-weight: 600; margin-bottom: var(--space-2); }

/* --- Progress stepper (no pressure language) --- */
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  list-style: none;
  padding: 0;
}
.stepper li {
  height: 6px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--color-border);
}
.stepper li.done { background: var(--color-primary); }
.stepper li.current { background: var(--color-primary); opacity: 0.5; }
.stepper-caption { font-size: 14px; color: var(--color-muted); margin-bottom: var(--space-4); }

/* --- Guide character (MISO stand-in) --- */
.guide {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-pale-peach);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.guide .avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-candy-floss-blue);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.guide .bubble { font-size: 16px; }
.guide .bubble p { margin: 0; }

/* --- Status flag (consent) — never colour alone (brand §5.1) --- */
.status-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
}
.status-flag--waiting { background: var(--color-pale-peach); color: var(--color-crushed-cherry); }
.status-flag--ok { background: var(--color-positive); color: var(--color-ink); }
.status-flag--off { background: #eee; color: var(--color-muted); }

/* --- Young person's "you're live" banner (kept separate from the business
   list so status and who-has-my-details don't compete) --- */
.live-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
  background: var(--color-pale-peach); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
}
.live-banner p { flex: 1 1 220px; font-size: 14px; }
/* Businesses that have this young person's details. */
.biz-list { list-style: none; margin: 0; padding: 0; }
.biz-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) 0; border-top: 1px solid var(--color-border);
}
.biz-name { font-weight: 700; }
.biz-report { font-size: 13px; font-weight: 600; color: var(--color-muted); flex: none; }
.biz-report:hover { color: var(--color-danger); }

/* --- Admin funnel snapshot (placements) --- */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--space-3); }
.fstage {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-sm);
}
.fstage--total { background: var(--color-pale-peach); border-color: transparent; }
.fnum { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--color-crushed-cherry); }
.flabel { margin-top: 8px; font-size: 14px; color: var(--color-muted); }

/* --- Data facts list (consent transparency) --- */
.facts { padding-left: 1.1em; margin: 0 0 var(--space-3); }
.facts li { margin-bottom: var(--space-2); }

/* --- Button rows --- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row .btn { flex: 1 1 auto; }

/* --- Wide container (admin) --- */
.container--wide { max-width: 1160px; }

/* --- Stats grid --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }
.stat {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--font-display); font-size: 32px; color: var(--color-crushed-cherry); }
.stat .label { font-size: 14px; color: var(--color-muted); }

/* --- Simple table --- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: anywhere; /* long emails wrap instead of forcing a scroll */
}
table.data th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-muted); }

/* --- Small pill badges for status --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; }
.badge--pending { background: var(--color-pale-peach); color: var(--color-crushed-cherry); }
.badge--approved { background: var(--color-positive); color: var(--color-ink); }
.badge--suspended { background: #eee; color: var(--color-muted); }

.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.btn--danger { background: transparent; color: var(--color-danger); border-color: var(--color-danger); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }

/* --- Utility --- */
.stack > * + * { margin-top: var(--space-3); }
.muted { color: var(--color-muted); }
.lede { font-size: 19px; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }

/* ==========================================================================
   HYBRID DESIGN LAYER
   Playground (warm) for the young person's journey; Confident (premium) for
   operator/admin. Same tokens, tuned per audience.
   ========================================================================== */

/* --- MISO mascot --- */
.miso { display: block; flex: 0 0 auto; width: 46px; height: 46px; }
.guide .miso { width: 48px; height: 48px; }
/* the mascot IS the circle now, so drop the old avatar background */
.guide .avatar { background: none; width: auto; height: auto; }

/* --- Playground: ambient colour washes on the young-person journey only --- */
.page.theme-young {
  background:
    radial-gradient(300px 300px at 108% 4%, rgba(0, 162, 157, 0.20), transparent 70%),
    radial-gradient(260px 260px at -8% 96%, rgba(217, 237, 0, 0.30), transparent 70%),
    var(--color-bg);
  background-attachment: fixed;
}

/* --- Playground hero (home) --- */
.hero-playground {
  position: relative;
  overflow: hidden;
  background: var(--color-pale-peach);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.hero-playground > * { position: relative; z-index: 1; }
.hero-playground .hero-blob {
  position: absolute;
  z-index: 0;
  width: 180px; height: 180px;
  top: -50px; right: -50px;
  background: var(--color-candy-floss-blue);
  opacity: 0.55;
  border-radius: 47% 53% 62% 38% / 45% 40% 60% 55%;
}
.hero-playground h1 { color: var(--color-crushed-cherry); }
.hero-playground p { color: #5a4133; }

/* MISO speech-bubble intro used on hero + guide */
.miso-bubble { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.miso-bubble .bubble {
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  padding: 10px 14px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.miso-bubble .bubble p { margin: 0; }

/* --- Confident hero (operator landing) --- */
.hero-confident {
  position: relative;
  overflow: hidden;
  background: var(--color-crushed-cherry);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.hero-confident > * { position: relative; z-index: 1; }
.hero-confident .spark { position: absolute; z-index: 0; top: -22px; right: -22px; width: 130px; height: 130px; opacity: 0.9; }
.hero-confident .kick {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-candy-floss-blue); font-weight: 700; margin: 0 0 var(--space-2);
}
.hero-confident h1 { color: var(--color-text-inverse); margin-bottom: var(--space-2); }
.hero-confident h1 em { font-style: normal; color: var(--color-salmon-roe); }
.hero-confident p { color: #f2d9d0; }

/* --- Match card (confident) --- */
.match-card .match-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.match-card h3 { margin: 0; }
.match-meta { font-size: 15px; color: var(--color-muted); margin: 6px 0; }
.chip-match {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-isotonic-green); color: var(--color-ink);
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* --- Celebration (done page) --- */
.celebrate { font-size: 52px; }

/* --- Motion (tasteful, opt-out honoured) --- */
@media (prefers-reduced-motion: no-preference) {
  .container > .card,
  .container > .hero-playground,
  .container > .hero-confident,
  .container > .stack > .card { animation: riseIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .celebrate { animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   APP SCREENS (design refresh) — page headers, nav cards, richer heroes
   ========================================================================== */

/* Consistent page-header block for flow steps and dashboards */
.app-head { margin-bottom: var(--space-4); }
.app-head .eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 800; color: var(--color-primary); margin: 0 0 10px;
}
.app-head h1 { margin: 0 0 8px; }
.app-head .sub { color: var(--color-muted); font-size: 17px; margin: 0; max-width: 54ch; }

/* Dashboard section label */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); margin: var(--space-5) 0 var(--space-3);
}
.section-head h2 { margin: 0; font-size: 26px; }

/* Tappable menu cards on dashboards (icon tile + title + chevron) */
.nav-card {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: inherit;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s;
}
.nav-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.35); }
.nav-card .nc-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  background: var(--color-pale-peach); color: var(--color-crushed-cherry);
  display: grid; place-items: center; font-size: 22px;
}
.nav-card .nc-body { flex: 1; min-width: 0; }
.nav-card .nc-title { font-weight: 700; color: var(--color-text); display: block; }
.nav-card .nc-sub { color: var(--color-muted); font-size: 14px; margin: 2px 0 0; }
.nav-card .nc-arw { flex: 0 0 auto; color: var(--color-muted); font-size: 20px; }
.nav-card:hover .nc-arw { color: var(--color-primary); }

/* Richer heroes (young welcome/intro + operator landing) */
.hero-playground, .hero-confident { border-radius: 24px; }
.hero-playground h1, .hero-confident h1 { font-size: 44px; }
.hero-confident {
  background:
    radial-gradient(120% 130% at 12% 0%, #8a0a3d 0%, var(--color-crushed-cherry) 58%);
}
.hero-confident .lede { color: #f2d9d0; }

/* Elevated stat cards */
.stat { border-radius: 18px; box-shadow: 0 12px 34px -22px rgb(0 0 0 / 0.3); padding: var(--space-4); }
.stat .num { font-size: 40px; line-height: 1; }
.stat .label { margin-top: 6px; }

/* Admin table row hover */
table.data tbody tr:hover { background: rgb(112 3 47 / 0.03); }

/* ==========================================================================
   OPERATOR APP SHELL (design refresh) — top bar, filters, shortlist cards
   Scoped to .op. Adapted to Lenny's blanket-consent reveal model.
   ========================================================================== */
.op { container-type: inline-size; container-name: op; }
.op-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.op-brand { display: flex; align-items: center; gap: 12px; }
.op-wm {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--fbrand); font-weight: 600; font-size: 22px; color: var(--cherry); line-height: 1;
}
.op-wm .mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--salmon);
  color: #fff; display: grid; place-items: center; flex: none;
}
.op-wm .mark .bell { width: 21px; height: 21px; display: block; }
.op-role {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px;
}
.op-navr { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.op-navr a, .op-navr .op-signout {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--fbody);
}
.op-navr a:hover, .op-navr .op-signout:hover { color: var(--salmon); }
.op-navr a.active { color: var(--cherry); }
/* Account avatar = a dropdown menu (nav links on mobile + always Sign out). */
.op-avatar {
  width: 38px; height: 38px; border-radius: 11px; background: var(--cherry);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  margin-left: 12px; cursor: pointer; flex: none; user-select: none;
}
.op-avatar:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.op-menu-panel {
  position: absolute; top: 100%; right: 18px; z-index: 6;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; min-width: 210px; overflow: hidden;
  max-height: 0; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}
.op-menu-toggle:checked ~ .op-menu-panel {
  max-height: 360px; opacity: 1; transform: none; pointer-events: auto; padding: 6px 0;
}
.op-menu-panel a, .op-menu-panel .op-menu-signout {
  display: block; width: 100%; text-align: left; padding: 11px 16px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: var(--fbody);
}
.op-menu-panel a:hover, .op-menu-panel .op-menu-signout:hover { background: var(--marsh); color: var(--salmon); }
.op-menu-panel form { margin: 0; border-top: 1px solid var(--border); }
.op-menu-panel .op-menu-navlink { border-bottom: 1px solid var(--border); }
.op-main { max-width: 1080px; margin: 0 auto; padding: 30px 26px 40px; }
.op-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.op-h1 { font-family: var(--fdisp); font-weight: 300; font-size: 40px; color: var(--cherry); letter-spacing: -0.015em; margin: 0; }
.op-sub { color: #5f5d58; margin: 0 0 22px; }
.op-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.op-fchip {
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--border); border-radius: 99px; padding: 9px 15px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  text-decoration: none; transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.op-fchip:hover { border-color: var(--salmon); color: var(--salmon); }
.op-fchip.on { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.op-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.op-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s;
}
.op-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.4); }
.op-ctop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.op-cav { display: flex; align-items: center; gap: 12px; }
.op-cinit {
  width: 48px; height: 48px; border-radius: 14px; background: var(--peach); color: var(--cherry);
  display: grid; place-items: center; font-family: var(--fdisp); font-size: 22px; flex: none;
}
.op-cname { font-weight: 700; font-size: 17px; line-height: 1.2; }
.op-cmeta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.op-fit {
  display: inline-flex; align-items: center; gap: 5px; background: var(--green); color: var(--ink);
  font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 99px; white-space: nowrap; flex: none;
}
.op-fit--soft { background: var(--peach); color: var(--cherry); }
.op-ctop-r { display: flex; align-items: center; gap: 8px; flex: none; }
.op-savef { display: inline-flex; }
.op-save {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: transform 0.15s, color 0.15s, background-color 0.15s, border-color 0.15s;
}
.op-save:hover { transform: translateY(-2px); color: var(--cherry); }
.op-save[aria-pressed="true"] { background: var(--peach); border-color: var(--peach); color: var(--cherry); }
.op-vals { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.op-val { background: var(--marsh); border: 1px solid var(--border); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: #3d3b37; }
.op-quote { font-size: 14px; color: #5f5d58; line-height: 1.5; border-left: 3px solid var(--peach); padding-left: 12px; margin: 0 0 16px; }
.op-avail { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.op-avail svg { flex: none; }
/* Saved (bookmarked) marker — these rows pin to the top of the shortlist. */
.op-saved-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 11px; font-weight: 800;
  color: var(--cherry); background: var(--peach); border-radius: 99px; padding: 2px 8px; letter-spacing: 0.02em;
}
/* --- Scannable availability matrix (AM/PM/Eve × Mon–Sun) --- */
.op-availwrap { margin-bottom: 16px; }
.op-availcap { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.op-availcap svg { flex: none; }
.op-availg { display: grid; grid-template-columns: 2.4em repeat(7, 1fr); gap: 4px; align-items: center; }
.op-availhd { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; }
.op-availpt { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.op-availcell { height: 15px; border-radius: 5px; background: var(--marsh); }
.op-availcell--corner { background: transparent; }
.op-availcell.on { background: var(--salmon); }
.op-report { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.op-report:hover { color: var(--color-danger); }
.op-spacer { flex: 1; }
.op-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
  font-family: var(--fbody); font-weight: 700; font-size: 15px; border-radius: 13px;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background-color 0.15s;
}
.op-btn:hover { transform: translateY(-2px); }
.op-btn--primary { width: 100%; background: var(--cherry); color: #fff; }
.op-btn--primary:hover { background: #2E1324; }
.op-revealed { background: var(--peach); color: var(--cherry); border-radius: 13px; padding: 12px 14px; font-size: 14px; }
.op-revealed .rtitle { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.op-revealed a { color: var(--cherry); }
.op-lock { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.op-lock svg { flex: none; margin-top: 1px; }
.op-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.op-panel .status-flag { margin-bottom: var(--space-3); }
/* "What happens next" explainer on the shortlist. */
.op-guide { background: var(--peach); border-radius: 16px; padding: 14px 20px; margin-bottom: 22px; }
.op-guide > summary {
  cursor: pointer; font-family: var(--fdisp); font-size: 20px; color: var(--cherry);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.op-guide > summary::-webkit-details-marker { display: none; }
.op-guide > summary::before { content: "›"; transition: transform 0.2s ease; font-size: 22px; }
.op-guide[open] > summary::before { transform: rotate(90deg); }
.op-guide-steps { margin: 12px 0 4px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: #5a4a52; }
.op-guide-steps li { line-height: 1.5; }
.op-guide-steps a { color: var(--cherry); font-weight: 700; }
@container op (max-width: 720px) {
  .op-bar { padding: 12px 18px; }
  .op-role { display: none; }
  .op-main { padding: 24px 18px 32px; }
  .op-h1 { font-size: 30px; }
  .op-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .op-grid { grid-template-columns: 1fr; }
  /* Inline nav hidden; the avatar menu carries the nav on mobile. */
  .op-navr { display: none; }
  .op-avatar { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-burger span, .op-menu-panel { transition: none; }
}

/* First-shift pack header actions (Print / Back) */
.pack-actions { display: flex; gap: 8px; flex: none; }

/* Clean printout for the first-shift pack: drop the app chrome. */
@media print {
  .op-bar, .op-menu-panel, .pack-actions, .site-footer { display: none !important; }
  .op-main { padding: 0 !important; max-width: none; }
  body, .page { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; }
}

/* --- Business toolkit (operator downloads) --- */
.tk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tk-card {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s;
}
.tk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.4); }
.tk-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--peach); color: var(--cherry); display: grid; place-items: center; }
.tk-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-title { font-weight: 700; font-size: 17px; color: var(--ink); }
.tk-desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tk-dl { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--cherry); }
@container op (max-width: 720px) { .tk-grid { grid-template-columns: 1fr; } }

/* --- Operator pipeline board (lightweight ATS) --- */
.pboard { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
/* Desktop: the five columns share the width so the whole board fits on screen. */
.pcol {
  flex: 1 1 0; min-width: 0; background: rgb(112 3 47 / 0.03);
  border: 1px solid var(--border); border-radius: 16px; padding: 12px;
}
.pcol-h {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 14px; color: var(--cherry); margin: 2px 4px 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pcol-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: #fff; border: 1px solid var(--border); color: var(--muted);
  display: inline-grid; place-items: center; font-size: 12px; letter-spacing: 0;
}
.pcol-list { display: flex; flex-direction: column; gap: 10px; min-height: 40px; border-radius: 12px; transition: background-color 0.15s; }
.pcol-list.drop { background: rgb(255 87 48 / 0.08); outline: 2px dashed var(--salmon); outline-offset: 2px; }
.pcard {
  background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 13px;
  cursor: grab; box-shadow: 0 6px 18px -14px rgb(0 0 0 / 0.3);
}
.pcard:active { cursor: grabbing; }
.pcard.dragging { opacity: 0.5; }
.pcard-top { display: flex; align-items: center; gap: 10px; }
.pcard-init {
  width: 36px; height: 36px; border-radius: 11px; background: var(--peach); color: var(--cherry);
  display: grid; place-items: center; font-family: var(--fdisp); font-size: 17px; flex: none;
}
.pcard-id { min-width: 0; flex: 1 1 auto; }
.pcard-name { font-weight: 700; font-size: 15px; line-height: 1.1; }
.pcard-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
/* Compact "move to stage" control — the column already shows the stage, so this
   stays quiet: small, unlabelled, right-aligned. Drives mobile / keyboard too. */
.pcard-stage {
  display: block; width: auto; max-width: 100%; margin-top: 10px; padding: 5px 8px;
  font-family: var(--fbody); font-size: 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--marsh); color: var(--muted); cursor: pointer;
}
.pcard-stage:hover { color: var(--cherry); border-color: var(--salmon); }
.pcard-notes { margin-top: 10px; }
.pcard-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.pcard-report { font-size: 12px; font-weight: 600; color: var(--muted); }
.pcard-report:hover { color: var(--color-danger); }
.pcard-link { font-size: 12px; font-weight: 600; color: var(--muted); }
.pcard-link:hover { color: var(--cherry); }
/* Prominent first-shift pack link, shown on Hired cards. */
.pcard-pack {
  display: block; margin-top: 10px; padding: 8px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--cherry);
  background: var(--peach); border-radius: 9px;
}
.pcard-pack:hover { filter: brightness(0.97); }
.pcard-notes summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cherry); }
.pcard-notes-dot { color: var(--salmon); }
.pcard-notes-t {
  width: 100%; margin-top: 8px; padding: 8px 10px; font-family: var(--fbody); font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px; resize: vertical; color: var(--ink);
}
.pcard-notes-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pcard-notes-ok { font-size: 13px; color: var(--muted); }
@container op (max-width: 720px) {
  /* Mobile: fixed-width columns that scroll horizontally (one at a time). */
  .pcol { flex: 0 0 82vw; }
}

/* ==========================================================================
   CULTURE — word picker + snapshot
   ========================================================================== */

/* --- Word selection grid --- */
.culture-counter {
  text-align: center;
  font-weight: 700;
  color: var(--color-crushed-cherry);
  margin: 0 0 var(--space-3);
}
.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.word-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: var(--tap-min);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.word-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.word-chip:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 600;
}
.word-chip:has(input:focus-visible) { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.word-chip:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

/* --- Culture pagination (progress dots + Back/Next) --- */
.culture-progress {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-2);
}
.culture-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.culture-dot.has-picks { background: var(--color-pale-peach); }
.culture-dot.active { background: var(--color-primary); transform: scale(1.25); }
.culture-page-label {
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 var(--space-3);
}
.culture-hint { text-align: center; font-size: 14px; color: var(--color-muted); margin: 0 0 var(--space-3); }
.culture-nav { margin-top: var(--space-4); }
.culture-nav .btn + .btn { margin-top: var(--space-2); }
/* Back sits quietly under the primary action (people instinctively click the top button). */
.culture-back {
  display: block; margin: var(--space-3) auto 0; padding: 8px; background: none; border: 0;
  font-family: var(--fbody); font-size: 15px; font-weight: 600; color: var(--color-muted);
  cursor: pointer; text-decoration: underline;
}
.culture-back:hover { color: var(--cherry); }
.word-panel.is-hidden { display: none; }

/* --- Snapshot --- */
.snapshot-section { text-align: center; }
.snapshot-title {
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 var(--space-3);
}
.snapshot-pills { justify-content: center; }
.pill-peach {
  display: inline-flex; align-items: center;
  background: var(--color-pale-peach); color: var(--color-crushed-cherry);
  border-radius: var(--radius-pill); padding: 8px 18px; font-weight: 600; font-size: 16px;
}
.icon-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.icon-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: var(--color-primary);
}
.icon-badge--pos { background: var(--color-pale-peach); }
.icon-badge--neg { background: #f0ede9; color: var(--color-muted); }
.icon-badge svg { width: 26px; height: 26px; display: block; }
.icon-label { font-size: 15px; }
.snapshot-section .facts { text-align: left; display: inline-block; }

/* --- Learning & Development --- */
.progress-track { height: 8px; background: var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--color-primary); border-radius: var(--radius-pill); }
.video-row { display: flex; align-items: center; gap: var(--space-3); }
.video-tick {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--color-border); color: var(--color-ink);
}
.video-tick.done { background: var(--color-positive); color: var(--color-ink); }
.video-row-body { flex: 1; min-width: 0; }
.video-wrap { border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; display: block; aspect-ratio: 16 / 9; }

/* --- Culture on match card --- */
.culture-line { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 0; }
.culture-pct { font-weight: 800; color: var(--color-crushed-cherry); }
