/* ============================================================
   THE RESUSCITATION PROTOCOL — member hub styles
   Matches the Marriage Triage design system (index.html / terms.html).
   All routine content updates happen in the HTML, never here.
   ============================================================ */

:root {
  --black: #000000;
  --near-black: #070707;
  --surface: #0c0c0c;
  --card: #101010;
  --border: rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.12);
  --white: #ffffff;
  --off-white: #f0eeeb;
  --gray-light: #c0bdb8;
  --gray-mid: #807c78;
  --red: #c01212;
  --red-hover: #9e0e0e;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bar-h: 60px;
  --max: 1100px;       /* content container per spec (900-1100px) */
  --content: 980px;    /* reading column for module bodies */
  --pad: 0 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Anchor offset so #your-week lands below the fixed bar */
[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }

/* ============================================================
   SLIM HUB BAR  (persistent top bar — no marketing links)
   ============================================================ */
.hub-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
  padding: var(--pad);
}
.hub-bar-inner {
  max-width: var(--max); width: 100%; margin: 0 auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hub-brand {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white);
  display: inline-flex; align-items: center; gap: 5px;
}
.hub-brand img { height: 24px; width: auto; opacity: 0.92; }
.hub-brand span { color: var(--red); font-size: 1.09em; }
/* program-nav hamburger (module + form pages) */
.hub-right { display: flex; align-items: center; gap: 14px; }
.mtham-wrap { position: relative; }
.mtham { background: none; border: 0; color: var(--off-white); cursor: pointer; padding: 4px; display: flex; align-items: center; }
.mtham svg { width: 24px; height: 24px; }
.mtnav-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 200px;
  background: var(--card); border: 1px solid var(--border-mid); border-radius: 12px; padding: 6px;
  display: none; flex-direction: column; z-index: 300; box-shadow: 0 14px 34px rgba(0,0,0,0.55); }
.mtnav-menu.open { display: flex; }
.mtnav-menu a { color: var(--off-white); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 11px 14px; border-radius: 8px; white-space: nowrap; display: flex; align-items: center; }
.mtnav-menu a:hover { background: rgba(255,255,255,0.06); color: var(--red); }
.mtnav-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 7px; }
.mtnav-dot.on { display: inline-block; }
/* hub bar nav links + unread dot */
.hubnav-link { color: var(--off-white); font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; transition: color .15s; }
.hubnav-link:hover { color: var(--red); }
.navdot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 5px; }
.navdot.on { display: inline-block; }
.hub-nav { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; }
.hub-ham { display: none; background: none; border: 0; color: var(--off-white); cursor: pointer; padding: 4px; }
.hub-ham svg { width: 24px; height: 24px; }
/* Auto-filled identity fields (name/email pulled from the account) */
.cform-locked input,
.cform-locked textarea { opacity: 0.7; cursor: not-allowed; }
.hub-back {
  font-size: 0.82rem; font-weight: 600; color: var(--gray-light);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.2s;
}
.hub-back:hover { color: var(--white); }
.hub-back svg { width: 15px; height: 15px; }

/* page body sits below the fixed bar */
.protocol-page { padding-top: var(--bar-h); }
.wrap { max-width: var(--max); margin: 0 auto; padding: var(--pad); }

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.btn-primary {
  display: inline-block;
  background: var(--red); color: var(--white);
  padding: 16px 36px; border-radius: 4px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--off-white);
  padding: 14px 32px; border-radius: 4px;
  font-size: 0.95rem; font-weight: 600;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer; font-family: var(--font);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 28px rgba(255,255,255,0.06);
}

/* Flash-guard: hidden until auth/access JS confirms, to avoid content flash */
.guarded { visibility: hidden; }
.guarded.cleared { visibility: visible; }

/* ============================================================
   PASSWORD GATE  (gate.html + admin gate overlay)
   ============================================================ */
.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  position: relative; overflow: hidden;
}
.gate::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, rgba(192,18,18,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.gate-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 44px 38px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
}
.gate-logo { height: 34px; width: auto; margin: 0 auto 24px; opacity: 0.92; }
.gate-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.gate-card h1 {
  font-size: 1.5rem; font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 10px;
}
.gate-card p {
  font-size: 0.9rem; color: var(--gray-light);
  line-height: 1.6; margin-bottom: 28px;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.gate-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 15px 16px;
  font-family: var(--font); font-size: 1rem;
  color: var(--off-white);
  text-align: center; letter-spacing: 0.02em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-input::placeholder { color: var(--gray-mid); }
.gate-input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,18,18,0.18);
}
.gate-form .btn-primary { width: 100%; padding: 15px; }
.gate-error {
  font-size: 0.82rem; color: var(--red);
  min-height: 18px; font-weight: 600;
  opacity: 0; transition: opacity 0.15s;
}
.gate-error.show { opacity: 1; }
.gate-foot {
  margin-top: 26px; font-size: 0.74rem; color: var(--gray-mid);
}

/* ============================================================
   HUB LANDING
   ============================================================ */
.hub-intro {
  padding: 72px 32px 8px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hub-intro::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(192,18,18,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hub-intro-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hub-intro h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white);
  line-height: 1.06; margin-bottom: 16px;
}
.hub-intro h1 em { font-style: normal; color: var(--red); }
.hub-intro p {
  font-size: 1.02rem; color: var(--gray-light);
  line-height: 1.7; max-width: 560px; margin: 0 auto;
}
/* Rotating per-week quote — medium-big, white, italic. */
.hub-quote {
  margin: 30px auto 0;
  max-width: 640px;
  font-size: clamp(1.04rem, 2.24vw, 1.36rem);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.hub-quote[hidden] { display: none; }

/* For-Her unlock card (hub, after Week 12) */
.hub-forher { max-width: 760px; margin: 10px auto 0; padding: 0 24px; }
.hub-forher[hidden] { display: none; }
.forher-card {
  border: 1px solid var(--red);
  border-radius: 14px;
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(196,30,30,0.07), transparent);
}
.forher-eyebrow { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.forher-card h3 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; color: var(--white); }
.forher-body { margin: 0 0 18px; font-size: 0.98rem; color: var(--gray-light); line-height: 1.6; }
.forher-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.forher-actions .forher-read { display: inline-flex; width: auto; align-items: center; }
.forher-copy {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 13px 18px; font: inherit; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: border-color 0.15s ease;
}
.forher-copy:hover { border-color: var(--red); }
.forher-open {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--red); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; padding: 13px 4px;
}
.forher-open:hover { text-decoration: underline; }
.forher-embed {
  margin: 20px 0 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}
.forher-frame { display: block; width: 100%; border: 0; min-height: 480px; }
.forher-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--gray-mid); }

/* ===== Upgrade offer ($497 unlock / $2,500 group) ===== */
.hub-upgrade { max-width: var(--max, 1100px); margin: 40px auto 0; padding: 0 24px; scroll-margin-top: 90px; }
.hub-upgrade[hidden] { display: none; }
.upg-inner { text-align: center; }
.upg-title { margin: 6px 0 26px; font-size: 1.9rem; font-weight: 800; color: var(--white); }
.upg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; text-align: left; }
.upg-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 28px;
  background: #0c0c0c;
  display: flex; flex-direction: column;
}
.upg-card.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(196,30,30,0.08), transparent 60%);
}
.upg-eyebrow { margin: 0 0 10px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.upg-card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--white); line-height: 1.25; }
.upg-desc { margin: 0 0 18px; font-size: 0.92rem; color: var(--gray-light); line-height: 1.6; flex: 1; }
.upg-price { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.upg-was { font-size: 1.1rem; font-weight: 600; color: var(--gray-mid); text-decoration: line-through; margin-right: 8px; }
.upg-buy { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.upg-buy.disabled { opacity: 0.5; pointer-events: none; }
.upg-note { margin: 20px 0 0; font-size: 0.8rem; color: var(--gray-mid); }

/* locked-redirect message banner */
.hub-flash {
  max-width: var(--max); margin: 28px auto 0;
  padding: 0 32px;
}
.hub-flash-inner {
  background: rgba(192,18,18,0.08);
  border: 1px solid rgba(192,18,18,0.35);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem; color: var(--off-white);
  display: flex; align-items: center; gap: 10px;
}
.hub-flash-inner svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* continue / start button block */
.hub-continue {
  max-width: var(--max); margin: 40px auto 0;
  padding: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hub-continue .btn-primary {
  font-size: 1.05rem; padding: 18px 48px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
}
.hub-continue .btn-sub {
  font-size: 0.74rem; font-weight: 400; opacity: 0.85; letter-spacing: 0.01em;
}

/* Book-the-weekly-call bar — week modules (.yw-callbar) + hub (.hub-callbar wrapper) */
.yw-callbar {
  display: flex; align-items: center; gap: 13px; width: 100%;
  margin-top: 14px; padding: 13px 18px;
  background: var(--card); border: 1px solid var(--border-mid); border-radius: 12px;
  color: var(--off-white); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; line-height: 1.25;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.yw-callbar:hover { border-color: var(--red); background: #161616; transform: translateY(-1px); }
.yw-callbar-ico { width: 22px; height: 22px; color: var(--red); flex: 0 0 auto; }
.yw-callbar-text { flex: 1 1 auto; }
.yw-callbar-sub { display: block; font-weight: 400; font-size: 0.78rem; color: var(--gray-mid); margin-top: 2px; }
.yw-callbar-arrow { width: 18px; height: 18px; opacity: 0.45; flex: 0 0 auto; }
.hub-callbar { max-width: var(--max); margin: 22px auto 0; padding: var(--pad); }

/* ============================================================
   LESSON CONTENT — searchable text version of the slides
   ============================================================ */
.lesson { margin-top: 20px; }
.lesson > * { max-width: 680px; }
.lesson .lbl { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--red); padding-bottom:7px; border-bottom:3px solid var(--red); margin:38px 0 20px; }
.lesson .lbl.green { color:#6dba8c; border-bottom-color:#6dba8c; }
.lesson h3.lh { font-size:clamp(1.6rem,4vw,2.1rem); font-weight:800; letter-spacing:-.02em; line-height:1.1; margin:0 0 18px; max-width:none; }
.lesson p { font-size:1.05rem; line-height:1.6; color:var(--gray-light); margin-bottom:16px; }
.lesson p strong { color:var(--off-white); font-weight:700; }
.lesson p em { color:var(--off-white); font-style:italic; font-weight:500; }
.lesson .lede { font-size:1.16rem; color:var(--off-white); font-weight:500; }
.lesson .callout { margin:24px 0; padding:22px 28px; border-left:6px solid var(--red); background:var(--card); border-radius:0 12px 12px 0; max-width:none; }
.lesson .callout p { font-size:1.08rem; color:var(--off-white); font-weight:700; margin:0; }
.lesson .callout.green { border-left-color:#6dba8c; }
.lesson .subs { margin:24px 0; max-width:none; }
.lesson .sub { padding:24px 0; border-top:1px solid var(--border); max-width:none; }
.lesson .sub:first-child { border-top:none; }
.lesson .sub-l { font-size:.72rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--red); margin-bottom:10px; }
.lesson .sub-l.grey { color:var(--gray-mid); }
.lesson .sub-b { font-size:1.02rem; line-height:1.55; color:var(--gray-light); }
.lesson .sub-b strong { color:var(--off-white); }
.lesson .nums { margin:22px 0; max-width:none; counter-reset:n; }
.lesson .num { counter-increment:n; position:relative; padding:24px 0 24px 70px; border-top:1px solid var(--border); max-width:none; }
.lesson .num:first-child { border-top:none; }
.lesson .num:before { content:counter(n,decimal-leading-zero); position:absolute; left:0; top:24px; font-size:2rem; font-weight:800; color:var(--red); line-height:1; }
.lesson .num h4 { font-size:1.25rem; font-weight:700; margin-bottom:9px; letter-spacing:-.01em; }
.lesson .num p { font-size:.98rem; color:var(--gray-light); margin:0; }
.lesson .ovgrid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:24px 0; max-width:none; }
.lesson .ov { background:var(--card); border:1px solid var(--border); border-left:6px solid var(--red); border-radius:12px; padding:22px 24px; }
.lesson .ov-n { font-size:.66rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--red); margin-bottom:8px; }
.lesson .ov-name { font-size:1.4rem; font-weight:800; letter-spacing:-.01em; margin-bottom:9px; }
.lesson .ov-t { font-size:.92rem; color:var(--gray-light); line-height:1.45; }
.lesson .cat-name { font-size:clamp(1.7rem,4vw,2.2rem); font-weight:800; letter-spacing:-.02em; margin:12px 0 6px; }
.lesson .cat-tag { font-size:1.02rem; color:var(--gray-mid); font-style:italic; margin-bottom:18px; }
.lesson .score { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:22px 0; max-width:none; }
.lesson .scol { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:20px 22px; }
.lesson .scol.dep { border-left:6px solid #6dba8c; }
.lesson .scol.wd { border-left:6px solid var(--red); }
.lesson .scol-l { font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:12px; }
.lesson .scol.dep .scol-l { color:#6dba8c; }
.lesson .scol.wd .scol-l { color:var(--red); }
.lesson .scol ul { list-style:none; }
.lesson .scol li { font-size:.94rem; color:var(--gray-light); padding:8px 0 8px 18px; position:relative; line-height:1.45; }
.lesson .scol li:before { content:''; position:absolute; left:0; top:14px; width:10px; height:3px; }
.lesson .scol.dep li:before { background:#6dba8c; }
.lesson .scol.wd li:before { background:var(--red); }
.lesson .herside { background:var(--card); border:1px solid var(--border); border-left:6px solid #6dba8c; border-radius:12px; padding:22px 26px; margin:22px 0; max-width:none; }
.lesson .herside-l { font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#6dba8c; margin-bottom:12px; }
.lesson .herside p { color:var(--gray-light); margin:0; }
.lesson .lcard { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:28px 32px; margin:22px 0; max-width:none; }
.lesson .lcard p:last-child { margin-bottom:0; }
.lesson .ldivider { text-align:center; padding:40px 0 6px; max-width:none; }
.lesson .ldivider .dl { font-size:.85rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#6dba8c; }
.lesson .ldivider h3 { font-size:clamp(1.7rem,4.5vw,2.4rem); font-weight:800; letter-spacing:-.02em; margin:14px 0 8px; line-height:1.08; max-width:none; }
.lesson .ldivider p { color:var(--gray-light); }
.lesson .sig { margin:22px 0; border:1px solid var(--border); border-radius:12px; overflow:hidden; max-width:none; }
.lesson .sig-row { display:grid; grid-template-columns:1fr auto; gap:16px; padding:14px 22px; border-top:1px solid var(--border); align-items:center; }
.lesson .sig-row:first-child { border-top:none; }
.lesson .sig-do { font-size:.98rem; color:var(--off-white); font-weight:600; }
.lesson .sig-read { font-size:.88rem; font-weight:700; letter-spacing:.02em; }
.lesson .sig-read.bad { color:var(--red); }
.lesson .sig-read.good { color:#6dba8c; }
.lesson .bigletter { font-size:2.4rem; font-weight:800; color:var(--red); letter-spacing:-.02em; line-height:1; }
/* Diagram / visual-aid figures (ported from the source decks as scalable SVG) */
.lesson .fig { background:#0c0c0c; border:1px solid var(--border); border-radius:14px; padding:22px 26px; margin:28px 0; }
.lesson .fig-l { font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red); margin-bottom:16px; }
.lesson .fig svg { width:100%; height:auto; display:block; }
.lesson .fig-cap { font-size:.92rem; line-height:1.5; color:var(--gray-mid); font-style:italic; margin:16px 0 0; max-width:none; }
@media (max-width: 600px) { .lesson .ovgrid, .lesson .score { grid-template-columns:1fr; } .lesson .fig { padding:16px 14px; } }

/* week grid */
.weeks-section { padding: 56px 32px 96px; }
.weeks-head {
  max-width: var(--max); margin: 0 auto 28px;
}
.weeks-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.week-tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 168px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
a.week-tile:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.week-tile.locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.week-tile-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.week-num {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
}
.week-tile.locked .week-num { color: var(--gray-mid); }
/* Self-guided upsell tiles: locked look, but clickable and pointing to the upgrade. */
.week-tile.locked.upsell {
  opacity: 0.72;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.week-tile.locked.upsell:hover {
  opacity: 1;
  border-color: var(--red);
  transform: translateY(-2px);
}
.week-status.upsell-cta { color: var(--red); font-weight: 700; }
.week-lock-ico { width: 18px; height: 18px; color: var(--gray-mid); }
.week-tile h3 {
  font-size: 1.18rem; font-weight: 800; color: var(--white);
  line-height: 1.2;
}
.week-desc {
  font-size: 0.88rem; color: var(--gray-light); line-height: 1.55;
  flex-grow: 1;
}
.week-status {
  margin-top: 4px;
  font-size: 0.78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.week-status.open { color: var(--gray-mid); }
.week-status.open .dot { background: #22c55e; }
.week-status.countdown { color: var(--off-white); }
.week-status.countdown .dot { background: var(--red); }
.week-status.hard { color: var(--gray-mid); }
.week-status .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.week-status svg { width: 14px; height: 14px; }
.week-arrow {
  align-self: flex-start; margin-top: 2px;
  font-size: 0.8rem; font-weight: 700; color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============================================================
   MODULE PAGES
   ============================================================ */
.module-header {
  padding: 64px 32px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--near-black);
  position: relative; overflow: hidden;
}
.module-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(192,18,18,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.module-header-inner { max-width: var(--content); margin: 0 auto; position: relative; }
.module-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.module-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; color: var(--white); line-height: 1.06;
}
.module-progress {
  margin-top: 18px; font-size: 0.85rem; color: var(--gray-mid);
}

.module-body { max-width: var(--content); margin: 0 auto; padding: var(--pad); }

/* a curriculum section */
.module-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.module-section:last-of-type { border-bottom: none; }
.module-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.module-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--white); line-height: 1.15;
  margin-bottom: 12px;
}
.module-section > p {
  font-size: 0.98rem; color: var(--gray-light); line-height: 1.75;
  max-width: 70ch; margin-bottom: 8px;
}

/* Section subheading — the line lifted from the old title-card slides,
   now living on the on-page divider instead of a redundant slide. */
.module-section-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--gray-light);
  font-weight: 400;
  line-height: 1.55;
  max-width: 62ch;
  margin-bottom: 4px;
}

/* Embedded "Quick Reference — Debrief" slide.
   The source HTML is a fixed 3040px-wide design; protocol.js scales it
   down to the column width and sets the wrapper height. */
.debrief-embed {
  position: relative; width: 100%; overflow: hidden;
  margin-top: 28px; border-radius: 8px; min-height: 240px;
}
.debrief-embed iframe {
  border: 0; display: block; transform-origin: top left; background: #fafaf7;
}

/* ============================================================
   SECTION SIDEBAR NAV  (auto-built by protocol.js on module pages)
   Sticky, numbered table of contents that highlights the section
   you're currently reading. Collapses to "On this page" on mobile.
   ============================================================ */
.section-nav { min-width: 0; }
.section-nav-inner { min-width: 0; }
.sn-heading {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray-mid);
  margin-bottom: 14px; padding-left: 14px;
}
.sn-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.sn-link {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 14px; border-left: 2px solid var(--border);
  color: var(--gray-mid); font-size: 0.83rem; line-height: 1.35;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.sn-link:hover { color: var(--gray-light); }
.sn-num { font-size: 0.7rem; font-weight: 800; min-width: 13px; padding-top: 1px; opacity: 0.85; }
.sn-txt { font-weight: 500; }
.sn-link.active { color: var(--white); border-left-color: var(--red); }
.sn-link.active .sn-num { color: var(--red); opacity: 1; }
.sn-toggle { display: none; }

/* Desktop: two-column layout — sticky nav beside the reading column */
@media (min-width: 1024px) {
  .module-body.has-nav {
    max-width: 1220px;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 52px;
    align-items: start;
  }
  .module-body.has-nav .section-nav-inner {
    position: sticky; top: calc(var(--bar-h) + 28px);
    max-height: calc(100vh - var(--bar-h) - 48px); overflow: auto;
  }
  .module-content { min-width: 0; }
}

/* Mobile / tablet: collapsible "On this page" panel pinned under the bar */
@media (max-width: 1023px) {
  .module-body.has-nav .section-nav {
    position: sticky; top: var(--bar-h); z-index: 50;
    margin-bottom: 10px;
    background: rgba(7,7,7,0.94);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid var(--border); border-radius: 10px;
  }
  .section-nav .sn-heading { display: none; }
  .section-nav .sn-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: none; border: none; cursor: pointer;
    color: var(--white); font-family: var(--font);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .sn-caret { width: 18px; height: 18px; color: var(--gray-mid); transition: transform .2s ease; }
  .section-nav.open .sn-caret { transform: rotate(180deg); }
  .section-nav .sn-list {
    max-height: 0; overflow: hidden; padding: 0 8px;
    transition: max-height .25s ease;
  }
  .section-nav.open .sn-list { max-height: 65vh; overflow: auto; padding: 0 8px 12px; }
  .section-nav .sn-link { border-left: none; border-radius: 7px; }
  .section-nav .sn-link.active { background: rgba(192,18,18,0.13); color: var(--white); }
  .section-nav .sn-link.active .sn-num { color: var(--red); }
}

/* slides — full container width, natural aspect ratio */
.slides { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.slide-fig { margin: 0; position: relative; }
.slide-fig img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
}

/* fullscreen tap-to-zoom overlay */
.slidezoom {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: none; overflow: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.slidezoom.open { display: block; }
.slidezoom img {
  width: 100%; max-width: none; height: auto;
  display: block; margin: 0 auto;
  cursor: zoom-in;
}
.slidezoom img.zoomed { width: 340%; cursor: zoom-out; }
.slidezoom-close {
  position: fixed; top: 14px; right: 16px; z-index: 10000;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.slidezoom-hint {
  position: fixed; bottom: 16px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.7);
  font-size: 0.8rem; pointer-events: none;
}

/* one-section-per-view navigation controls */
.section-controls {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 36px 0 8px;
}
.section-continue {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 440px; margin: 0 auto;
  padding: 16px 24px;
  font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--white); background: var(--red);
  border: 0; border-radius: 10px; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.section-continue:hover { background: var(--red-hover); }
.section-continue:active { transform: translateY(1px); }
.section-continue svg { width: 18px; height: 18px; flex-shrink: 0; }
.section-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--gray-light); padding: 6px 10px;
  transition: color 0.2s;
}
.section-back:hover { color: var(--white); }
.section-back svg { width: 15px; height: 15px; }

/* ============================================================
   ONBOARDING TOUR + CHECK-IN PROMPT MODAL
   ============================================================ */
.mt-modal {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.mt-modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border-mid);
  border-radius: 14px; padding: 36px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.mt-modal-card h2 {
  font-size: 1.4rem; font-weight: 900; color: var(--white);
  line-height: 1.2; margin-bottom: 12px;
}
.mt-modal-card p {
  font-size: 0.95rem; color: var(--gray-light); line-height: 1.6; margin-bottom: 24px;
}
.mt-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-modal-actions .btn-primary, .mt-modal-actions .btn-secondary {
  flex: 1 1 auto; min-width: 130px; text-align: center;
  padding: 13px 18px; font-size: 0.92rem;
}
.mt-modal-dots { display: flex; gap: 7px; margin-bottom: 20px; }
.mt-modal-dots span { width: 22px; height: 4px; border-radius: 2px; background: var(--border-mid); transition: background 0.2s; }
.mt-modal-dots span.on { background: var(--red); }
.mt-modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; color: var(--gray-mid);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.mt-modal-x:hover { color: var(--white); }
.mt-modal-later {
  display: block; margin: 14px auto 0; background: none; border: 0;
  color: var(--gray-mid); font-size: 0.82rem; cursor: pointer; font-family: var(--font);
}
.mt-modal-later:hover { color: var(--white); }

/* Upgrade offer popup (locked tiles, coaching bar, Week 4 prompt) */
.mt-modal-upgrade .mt-modal-card { max-width: 500px; }
.mtup-eyebrow { margin: 0 0 8px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.mtup-h { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.2; font-weight: 800; color: var(--white); }
.mtup-sub { margin: 0 0 20px; font-size: 0.95rem; line-height: 1.6; color: var(--gray-light); }
.mtup-grid { display: flex; flex-direction: column; gap: 12px; }
.mtup-grid .upg-card { margin: 0; }
.mtup-later {
  display: block; margin: 16px auto 0; background: none; border: 0;
  color: var(--gray-mid); font-size: 0.82rem; cursor: pointer; font-family: var(--font);
}
.mtup-later:hover { color: var(--white); }
/* In-page Week 4 upgrade offer (replaces the Bridge-to-Week-5 block) */
.w4offer { margin-top: 24px; }
.w4offer-lead { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--white); }
.w4offer .mtup-grid { display: flex; flex-direction: column; gap: 12px; }
.w4weeks { margin-top: 34px; }
.w4weeks-label { margin: 0 0 14px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.w4hl { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line, var(--border-mid)); }
.w4hl:last-child { border-bottom: 1px solid var(--line, var(--border-mid)); }
.w4hl-wk { flex: 0 0 64px; font-size: 0.8rem; font-weight: 700; color: var(--gray-mid); padding-top: 2px; }
.w4hl-body strong { display: block; font-size: 1rem; color: var(--white); margin-bottom: 3px; }
.w4hl-body p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--gray-light); }
.slide-cap {
  font-size: 0.78rem; color: var(--gray-mid);
  margin-top: 8px; text-align: center;
}
/* placeholder shown when the real PNG isn't dropped in yet */
.slide-ph { display: none; }
.slide-fig.missing img { display: none; }
.slide-fig.missing .slide-ph {
  border: 1px dashed var(--border-mid);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--surface);
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 32px;
}
.slide-ph .ph-icon { width: 30px; height: 30px; color: var(--gray-mid); opacity: 0.7; }
.slide-ph .ph-name {
  font-family: var(--font); font-size: 0.82rem; color: var(--gray-light);
  font-weight: 600; letter-spacing: 0.01em; word-break: break-all;
}
.slide-ph .ph-hint { font-size: 0.72rem; color: var(--gray-mid); }

/* responsive 16:9 YouTube embed */
.video-embed {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  border-radius: 10px; overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
/* Click-to-load facade: crisp maxres poster instead of YouTube's blurry embed thumbnail.
   Also keeps YouTube's scripts off the page until the visitor actually presses play. */
.video-embed .yt-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer; display: block;
  background-color: #000; background-position: center; background-size: cover;
}
.video-embed .yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.34));
  transition: background 0.15s ease;
}
.video-embed .yt-facade:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.22)); }
.video-embed .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; width: 74px; height: 52px; border-radius: 14px;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-embed .yt-play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.video-embed .yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,0.55); }
.video-label {
  font-size: 0.8rem; color: var(--gray-mid);
  margin-top: 10px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.video-label svg { width: 14px; height: 14px; color: var(--red); }
/* placeholder video (no ID set yet) */
.video-embed.pending {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-color: var(--border-mid);
  background: var(--surface);
}
.video-embed.pending span {
  font-size: 0.86rem; color: var(--gray-light); font-weight: 600;
  padding: 20px; text-align: center;
}

/* ============================================================
   YOUR WEEK  (final section — daily/weekly form CTAs)
   ============================================================ */
.your-week {
  margin: 64px 0 90px;
  padding: 44px 38px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(192,18,18,0.10) 0%, transparent 70%),
    var(--card);
  border: 1px solid var(--red);
  border-radius: 14px;
  text-align: center;
}
.your-week .module-section-label { text-align: center; }
.your-week h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.your-week .yw-intro {
  font-size: 0.98rem; color: var(--gray-light); line-height: 1.7;
  max-width: 56ch; margin: 0 auto 32px;
}
.yw-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 620px; margin: 0 auto;
}
.yw-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 22px; border-radius: 10px;
  font-weight: 700; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.yw-btn .yw-btn-ico { width: 26px; height: 26px; margin-bottom: 2px; }
.yw-btn .yw-btn-title { font-size: 1.05rem; }
.yw-btn .yw-btn-sub { font-size: 0.76rem; font-weight: 400; opacity: 0.85; }
.yw-btn.daily {
  background: var(--red); color: var(--white);
}
.yw-btn.daily:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(192,18,18,0.3); }
.yw-btn.weekly {
  background: transparent; color: var(--off-white);
  border: 1px solid var(--border-mid);
}
.yw-btn.weekly:hover { border-color: rgba(255,255,255,0.7); color: var(--white); transform: translateY(-2px); }
.yw-btn-wide {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  max-width: 620px; margin: 16px auto 0; padding: 20px 26px; border-radius: 10px;
  text-align: left; background: transparent; color: var(--off-white);
  border: 1px solid var(--border-mid); font-weight: 700;
  transition: transform 0.15s, border-color 0.2s, color 0.2s;
}
.yw-btn-wide:hover { border-color: rgba(255,255,255,0.7); color: var(--white); transform: translateY(-2px); }
.yw-btn-wide .yw-btn-ico { width: 26px; height: 26px; flex: 0 0 auto; }
.yw-btn-wide .yw-btn-meta { display: flex; flex-direction: column; gap: 3px; }
.yw-btn-wide .yw-btn-title { font-size: 1.05rem; }
.yw-btn-wide .yw-btn-sub { font-size: 0.78rem; font-weight: 400; opacity: 0.85; }
.yw-bookmark {
  margin-top: 22px; font-size: 0.78rem; color: var(--gray-mid);
}

/* ============================================================
   ADMIN TOOL
   ============================================================ */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 90px; }
.admin-head { margin-bottom: 8px; }
.admin-head h1 { font-size: 1.8rem; font-weight: 900; color: var(--white); }
.admin-head p { font-size: 0.9rem; color: var(--gray-mid); margin-top: 6px; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 24px;
  margin-top: 18px;
}
.admin-card h2 {
  font-size: 0.95rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.admin-card .admin-desc { font-size: 0.84rem; color: var(--gray-light); line-height: 1.55; margin-bottom: 16px; }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-input {
  width: 90px; background: var(--surface);
  border: 1px solid var(--border-mid); border-radius: 6px;
  padding: 12px 14px; font-family: var(--font); font-size: 1rem;
  color: var(--off-white); text-align: center;
}
.admin-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,18,18,0.18); }
.admin-btn {
  background: var(--red); color: var(--white);
  border: none; border-radius: 6px; padding: 12px 22px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.admin-btn:hover { background: var(--red-hover); }
.admin-btn.ghost {
  background: transparent; border: 1px solid var(--border-mid); color: var(--off-white);
}
.admin-btn.ghost:hover { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.admin-btn.danger { background: #1a1a1a; border: 1px solid rgba(192,18,18,0.5); color: var(--red); }
.admin-btn.danger:hover { background: rgba(192,18,18,0.12); }
.admin-state {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px; margin-top: 18px;
}
.admin-state h2 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.admin-state pre {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem; color: var(--gray-light); line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.admin-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--white); color: #000; font-weight: 700; font-size: 0.86rem;
  padding: 12px 22px; border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-quicklinks { margin-top: 22px; font-size: 0.84rem; color: var(--gray-mid); }
.admin-quicklinks a { color: var(--gray-light); text-decoration: underline; }
.admin-quicklinks a:hover { color: var(--white); }

/* ============================================================
   FOOTER  (matches main site)
   ============================================================ */
.protocol-footer {
  background: var(--near-black);
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
}
.protocol-footer p { font-size: 0.82rem; color: var(--gray-mid); margin-bottom: 8px; }
.protocol-footer a { color: var(--gray-light); }
.protocol-footer a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad: 0 20px; }
  .hub-intro { padding: 52px 20px 4px; }
  .weeks-grid { grid-template-columns: 1fr; }
  .yw-buttons { grid-template-columns: 1fr; }
  .your-week { padding: 34px 22px; }
  .module-section { padding: 44px 0; }
  .gate-card { padding: 36px 26px; }
  .hub-brand { font-size: 0.82rem; }
  /* slides go edge-to-edge on mobile for maximum size; tap to zoom further */
  .slides { margin-left: -20px; margin-right: -20px; gap: 14px; }
  .slide-fig img { border-radius: 0; border-left: none; border-right: none; }
  /* tidy the hub top-bar links so they don't crowd on a phone */
  .hub-ham { display: flex; align-items: center; }
  .hub-nav { position: absolute; top: calc(100% + 12px); right: 0; min-width: 200px;
    flex-direction: column; align-items: stretch; gap: 0; font-size: 0.9rem;
    background: var(--card); border: 1px solid var(--border-mid); border-radius: 12px;
    padding: 6px; display: none; z-index: 300; box-shadow: 0 14px 34px rgba(0,0,0,0.55); }
  .hub-nav.open { display: flex; }
  .hub-nav .hubnav-link { padding: 11px 14px; border-radius: 8px; }
}

/* ============================================================
   BRANDED CHECK-IN FORM  (custom form -> Google Sheet)
   ============================================================ */
.cform {
  max-width: 640px; margin: 0 auto;
  text-align: left;
}
.cform-field { margin-bottom: 22px; }
.cform-field > label {
  display: block;
  font-size: 0.9rem; font-weight: 600; color: var(--off-white);
  margin-bottom: 9px;
}
.cform-field .req { color: var(--red); margin-left: 2px; }
.cform-hint { font-size: 0.78rem; color: var(--gray-mid); margin-top: 5px; }
.cform-input, .cform-textarea, .cform-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: var(--font); font-size: 0.95rem;
  color: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cform-input::placeholder, .cform-textarea::placeholder { color: var(--gray-mid); }
.cform-input:focus, .cform-textarea:focus, .cform-select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,18,18,0.18);
}
.cform-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.cform-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23807c78' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

/* 1–5 scale as pills */
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale label {
  flex: 1 1 0; min-width: 48px; text-align: center;
  padding: 12px 0; border-radius: 6px; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  color: var(--gray-light); font-weight: 700; font-size: 0.95rem;
  transition: all 0.15s;
}
.scale label:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.scale input:checked + label {
  background: var(--red); border-color: var(--red); color: var(--white);
  box-shadow: 0 6px 18px rgba(192,18,18,0.3);
}
.scale-ends { display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 0.72rem; color: var(--gray-mid); }

/* segmented choice (Yes / Mostly / No) */
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice label {
  padding: 11px 18px; border-radius: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-mid);
  color: var(--gray-light); font-weight: 600; font-size: 0.9rem;
  transition: all 0.15s;
}
.choice label:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.choice input:checked + label { background: var(--red); border-color: var(--red); color: var(--white); }

.cform-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 6px; }
.cform-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cform-note { font-size: 0.76rem; color: var(--gray-mid); text-align: center; margin-top: 14px; }

/* success / error states */
.cform-success, .cform-error-msg { display: none; text-align: center; padding: 20px 0; }
.cform.done .cform-body { display: none; }
.cform.done .cform-success { display: block; }
.cform-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: rgba(34,197,94,0.12);
  display: flex; align-items: center; justify-content: center;
}
.cform-success .check svg { width: 32px; height: 32px; color: #22c55e; }
.cform-success h3 { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.cform-success p { font-size: 0.95rem; color: var(--gray-light); }
.cform-error-msg.show { display: block; color: var(--red); font-size: 0.85rem; font-weight: 600; }
.cform-demo-banner {
  background: rgba(192,18,18,0.08); border: 1px solid rgba(192,18,18,0.3);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 26px;
  font-size: 0.82rem; color: var(--gray-light); line-height: 1.5;
}
.cform-demo-banner strong { color: var(--off-white); }
