/* Shared look, copied from web/portal.html. One file for the whole app. */
:root,
:root[data-theme="light"] {
  --bg:#eef1f7; --surface:#ffffff; --surface-2:#f2f4f9; --surface-3:#e9edf5;
  --border:#e1e6f0; --border-2:#d2dae7;
  --ink:#232c3d; --muted:#5c687f; --faint:#8b97ab;
  --brand:#2b5ce6; --brand-strong:#1e49c4;
  --act:#f07d22; --act-strong:#da6a13;
  --open:#2f8ee6; --waiting:#e8a234; --blocked:#e85c7a; --done:#2fae92;
  --dev:#16a88c; --comp:#d98a2b; --fund:#8a5cf0;
  --urgent:var(--blocked); --high:var(--act); --normal:var(--open); --low:var(--faint); --spend:var(--fund); --safety:var(--blocked); --access:var(--waiting); --ok:var(--done);
  --brand-soft:color-mix(in srgb,var(--brand) 12%,var(--surface));
  --act-soft:color-mix(in srgb,var(--act) 14%,var(--surface));
  --shadow:0 1px 2px rgba(20,28,45,.04), 0 10px 26px -14px rgba(20,28,45,.20);
  --shadow-lg:0 2px 8px rgba(20,28,45,.07), 0 26px 56px -24px rgba(20,28,45,.4);
  --r:18px; --r-md:13px; --r-sm:10px; --maxw:1120px;
  --fdisp:'Nunito',system-ui,sans-serif; --fbody:'Nunito Sans','Nunito',system-ui,sans-serif; --fhead:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif; --fscript:"Caveat","Segoe Print",cursive;
  --door-player:#2b5ce6; --door-coach:#16a88c; --door-volunteer:#8a5cf0; --door-official:#d98a2b;
  --door-sponsor:#e85c7a; --door-admin:#f07d22;
  --pillar-gov:var(--brand); --pillar-ops:var(--done); --pillar-proj:var(--fund);
  --pillar-gov-tint:var(--brand-soft); --pillar-ops-tint:color-mix(in srgb,var(--pillar-ops) 14%,var(--surface)); --pillar-proj-tint:color-mix(in srgb,var(--pillar-proj) 14%,var(--surface));
  --pillar-gov-ink:var(--pillar-gov); --pillar-ops-ink:var(--pillar-ops); --pillar-proj-ink:var(--pillar-proj);
  --brain-bg:var(--bg); --panel-bg:var(--surface); --panel-border:var(--border); --input-bg:var(--surface-2);
  --brain-text:var(--ink); --brain-text-strong:var(--ink); --brain-text-dim:var(--muted);
  --accent:var(--brand); --brain-radius:var(--r-sm);
  --brain-node:#6f7787; --brain-link:#6f778c; --brain-link-width:1.5px;
  --brain-link-label-bg:#f1ecdf; --brain-link-funds:#2f9150; --brain-link-routed_to:#4c63c9;
  --brain-guide:#5d6478; --brain-bg-lift:#fff6e0;
  --card:#ffffff; --line:#e1e6f0; --on-accent:#ffffff; --warn:#e8a234; --danger:#e85c7a;
  --shadow-menu:0 12px 30px rgba(20,28,45,.18);
  --shadow-strip:0 8px 24px rgba(20,28,45,.16);
  --shadow-pop:0 18px 48px rgba(20,28,45,.22);
  --line-faint:rgba(159,176,208,.25); --fill-faint:rgba(159,176,208,.08);
  --line-soft:rgba(159,176,208,.2); --line-hair:rgba(159,176,208,.12);
  --head-bg:var(--surface); --head-ink:var(--ink); --head-accent:var(--brand); --head-rule:var(--border-2); --head-muted:var(--muted);
  --head-shine:rgba(255,248,230,.5); --head-spark:#fff6dc; --logo-gold:#b8860b; --logo-ink:var(--ink);
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme]) {
    --bg:#111622; --surface:#1a2130; --surface-2:#212a3a; --surface-3:#28334604;
    --surface-3:#283346; --border:#2b3547; --border-2:#3a4760; --ink:#e8edf6; --muted:#9aa6bc; --faint:#6b7891;
    --brand:#5b8cff; --brand-strong:#80a6ff; --act:#ff954a; --act-strong:#ffa868;
    --brand-soft:color-mix(in srgb,var(--brand) 20%,var(--surface));
    --act-soft:color-mix(in srgb,var(--act) 18%,var(--surface));
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 34px -16px rgba(0,0,0,.6);
    --shadow-lg:0 2px 8px rgba(0,0,0,.5), 0 30px 64px -24px rgba(0,0,0,.7);
    --brain-node:#8b95a9; --brain-link:#8591ad;
    --brain-link-label-bg:#151a27; --brain-link-funds:#7ed68f; --brain-link-routed_to:#8fa8ff;
    --brain-guide:#9fb0d0; --brain-bg-lift:#7f8fb5;
    --card:#1a2130; --line:#2b3547; --on-accent:#ffffff; --warn:#e8a234; --danger:#ff8ea6;
    --shadow-menu:0 12px 30px rgba(0,0,0,.45);
    --shadow-strip:0 8px 24px rgba(0,0,0,.4);
    --shadow-pop:0 18px 48px rgba(0,0,0,.55);
    --line-faint:rgba(159,176,208,.25); --fill-faint:rgba(159,176,208,.08);
    --line-soft:rgba(159,176,208,.2); --line-hair:rgba(159,176,208,.12);
    --head-bg:var(--surface); --head-ink:var(--ink); --head-accent:#f1bc49; --head-rule:#f1bc49; --head-muted:var(--muted);
    --head-shine:rgba(255,248,230,.5); --head-spark:#fff6dc; --logo-gold:#f1bc49; --logo-ink:var(--ink);
    --open:#2f8ee6; --waiting:#e8a234; --blocked:#e85c7a; --done:#2fae92;
    --dev:#16a88c; --comp:#d98a2b; --fund:#8a5cf0;
    --urgent:var(--blocked); --high:var(--act); --normal:var(--open); --low:var(--faint); --spend:var(--fund); --safety:var(--blocked); --access:var(--waiting); --ok:var(--done);
    --r:18px; --r-md:13px; --r-sm:10px; --maxw:1120px;
    --fdisp:'Nunito',system-ui,sans-serif; --fbody:'Nunito Sans','Nunito',system-ui,sans-serif; --fhead:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif; --fscript:"Caveat","Segoe Print",cursive;
    --door-player:#2b5ce6; --door-coach:#16a88c; --door-volunteer:#8a5cf0; --door-official:#d98a2b;
    --door-sponsor:#e85c7a; --door-admin:#f07d22;
    --pillar-gov:var(--brand); --pillar-ops:var(--done); --pillar-proj:var(--fund);
    --pillar-gov-tint:var(--brand-soft); --pillar-ops-tint:color-mix(in srgb,var(--pillar-ops) 14%,var(--surface)); --pillar-proj-tint:color-mix(in srgb,var(--pillar-proj) 14%,var(--surface));
    --pillar-gov-ink:var(--pillar-gov); --pillar-ops-ink:var(--pillar-ops); --pillar-proj-ink:var(--pillar-proj);
    --brain-bg:var(--bg); --panel-bg:var(--surface); --panel-border:var(--border); --input-bg:var(--surface-2);
    --brain-text:var(--ink); --brain-text-strong:var(--ink); --brain-text-dim:var(--muted);
    --accent:var(--brand); --brain-radius:var(--r-sm);
    --brain-link-width:1.5px;
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#111622; --surface:#1a2130; --surface-2:#212a3a; --surface-3:#283346;
  --border:#2b3547; --border-2:#3a4760; --ink:#e8edf6; --muted:#9aa6bc; --faint:#6b7891;
  --brand:#5b8cff; --brand-strong:#80a6ff; --act:#ff954a; --act-strong:#ffa868;
  --brand-soft:color-mix(in srgb,var(--brand) 20%,var(--surface));
  --act-soft:color-mix(in srgb,var(--act) 18%,var(--surface));
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 34px -16px rgba(0,0,0,.6);
  --shadow-lg:0 2px 8px rgba(0,0,0,.5), 0 30px 64px -24px rgba(0,0,0,.7);
  --brain-node:#8b95a9; --brain-link:#8591ad;
  --brain-link-label-bg:#151a27; --brain-link-funds:#7ed68f; --brain-link-routed_to:#8fa8ff;
  --brain-guide:#9fb0d0; --brain-bg-lift:#7f8fb5;
  --card:#1a2130; --line:#2b3547; --on-accent:#ffffff; --warn:#e8a234; --danger:#ff8ea6;
  --shadow-menu:0 12px 30px rgba(0,0,0,.45);
  --shadow-strip:0 8px 24px rgba(0,0,0,.4);
  --shadow-pop:0 18px 48px rgba(0,0,0,.55);
  --line-faint:rgba(159,176,208,.25); --fill-faint:rgba(159,176,208,.08);
  --line-soft:rgba(159,176,208,.2); --line-hair:rgba(159,176,208,.12);
  --head-bg:var(--surface); --head-ink:var(--ink); --head-accent:#f1bc49; --head-rule:#f1bc49; --head-muted:var(--muted);
  --head-shine:rgba(255,248,230,.5); --head-spark:#fff6dc; --logo-gold:#f1bc49; --logo-ink:var(--ink);
  --open:#2f8ee6; --waiting:#e8a234; --blocked:#e85c7a; --done:#2fae92;
  --dev:#16a88c; --comp:#d98a2b; --fund:#8a5cf0;
  --urgent:var(--blocked); --high:var(--act); --normal:var(--open); --low:var(--faint); --spend:var(--fund); --safety:var(--blocked); --access:var(--waiting); --ok:var(--done);
  --r:18px; --r-md:13px; --r-sm:10px; --maxw:1120px;
  --fdisp:'Nunito',system-ui,sans-serif; --fbody:'Nunito Sans','Nunito',system-ui,sans-serif; --fhead:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif; --fscript:"Caveat","Segoe Print",cursive;
  --door-player:#2b5ce6; --door-coach:#16a88c; --door-volunteer:#8a5cf0; --door-official:#d98a2b;
  --door-sponsor:#e85c7a; --door-admin:#f07d22;
  --pillar-gov:var(--brand); --pillar-ops:var(--done); --pillar-proj:var(--fund);
  --pillar-gov-tint:var(--brand-soft); --pillar-ops-tint:color-mix(in srgb,var(--pillar-ops) 14%,var(--surface)); --pillar-proj-tint:color-mix(in srgb,var(--pillar-proj) 14%,var(--surface));
  --pillar-gov-ink:var(--pillar-gov); --pillar-ops-ink:var(--pillar-ops); --pillar-proj-ink:var(--pillar-proj);
  --brain-bg:var(--bg); --panel-bg:var(--surface); --panel-border:var(--border); --input-bg:var(--surface-2);
  --brain-text:var(--ink); --brain-text-strong:var(--ink); --brain-text-dim:var(--muted);
  --accent:var(--brand); --brain-radius:var(--r-sm);
  --brain-link-width:1.5px;
  color-scheme:dark;
}

:root[data-theme="club"] {
  --bg:#f7fbff; --surface:#ffffff; --surface-2:#eef6ff; --surface-3:#e6f3ff;
  --border:#d3e3f2; --border-2:#c5d7ea;
  --ink:#0a2c59; --muted:#4d5d78; --faint:#7a8aa3;
  --brand:#1f6fc0; --brand-strong:#17599c;
  --act:#ff8a3d; --act-strong:#da6a13;
  --open:#2f8ee6; --waiting:#e8a234; --blocked:#e85c7a; --done:#2fae92;
  --dev:#16a88c; --comp:#d98a2b; --fund:#8a5cf0;
  --urgent:var(--blocked); --high:var(--act); --normal:var(--open); --low:var(--faint); --spend:var(--fund); --safety:var(--blocked); --access:var(--waiting); --ok:var(--done);
  --brand-soft:#eaf4fd;
  --act-soft:color-mix(in srgb,var(--act) 14%,var(--surface));
  --shadow:0 1px 2px rgba(20,28,45,.04), 0 10px 26px -14px rgba(20,28,45,.20);
  --shadow-lg:0 2px 8px rgba(20,28,45,.07), 0 26px 56px -24px rgba(20,28,45,.4);
  --r:18px; --r-md:13px; --r-sm:10px; --maxw:1120px;
  --fdisp:'Nunito',system-ui,sans-serif; --fbody:'Nunito Sans','Nunito',system-ui,sans-serif; --fhead:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif; --fscript:"Caveat","Segoe Print",cursive;
  --door-player:#2b5ce6; --door-coach:#16a88c; --door-volunteer:#8a5cf0; --door-official:#d98a2b;
  --door-sponsor:#e85c7a; --door-admin:#f07d22;
  --pillar-gov:#1f6fc0; --pillar-ops:#e3a21a; --pillar-proj:#23946a;
  --pillar-gov-tint:#eaf4ff; --pillar-ops-tint:#fff6dc; --pillar-proj-tint:#e6f7ef;
  --pillar-gov-ink:#17599c; --pillar-ops-ink:#8a5a00; --pillar-proj-ink:#1b7554;
  --brain-bg:var(--bg); --panel-bg:var(--surface); --panel-border:var(--border); --input-bg:var(--surface-2);
  --brain-text:var(--ink); --brain-text-strong:var(--ink); --brain-text-dim:var(--muted);
  --accent:var(--brand); --brain-radius:var(--r-sm);
  --brain-node:#6f7787; --brain-link:#6f778c; --brain-link-width:1.5px;
  --brain-link-label-bg:#f1ecdf; --brain-link-funds:#2f9150; --brain-link-routed_to:#4c63c9;
  --brain-guide:#5d6478; --brain-bg-lift:#fff6e0;
  --card:#ffffff; --line:#d3e3f2; --on-accent:#ffffff; --warn:#e8a234; --danger:#e85c7a;
  --shadow-menu:0 12px 30px rgba(20,28,45,.18);
  --shadow-strip:0 8px 24px rgba(20,28,45,.16);
  --shadow-pop:0 18px 48px rgba(20,28,45,.22);
  --line-faint:rgba(159,176,208,.25); --fill-faint:rgba(159,176,208,.08);
  --line-soft:rgba(159,176,208,.2); --line-hair:rgba(159,176,208,.12);
  --head-bg:#ffffff; --head-ink:#0a2c59; --head-accent:#8a5a00; --head-rule:#f1bc49; --head-muted:#4d5d78;
  --head-shine:rgba(255,255,255,.85); --head-spark:#fff6dc; --logo-gold:#f1bc49; --logo-ink:#0a2c59;
  color-scheme:light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fbody);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--fdisp);
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
}
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--head-bg);
  max-width: 100%;
}
.headBand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px 10px;
  background: var(--head-bg);
  color: var(--head-ink);
  min-width: 0;
  max-width: 100%;
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent);
  cursor: pointer;
}
.brandblock { display: flex; flex-direction: column; min-width: 0; }
.brand {
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
  cursor: pointer;
}
.clubname {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  min-width: 0;
  max-width: 100%;
}
.headContext {
  color: var(--head-accent);
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.headTag {
  margin: 0;
  color: var(--head-muted);
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}
.headMotto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  font-family: var(--fdisp);
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.02;
  color: var(--head-ink);
}
.headMotto span { display: block; }
.headMotto::after {
  content: "";
  width: 2.2em;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--head-accent);
  transform: rotate(-8deg);
  transform-origin: left center;
}
.headRule {
  display: block;
  width: 2px;
  height: 64px;
  flex: none;
  align-self: center;
  background: var(--head-rule);
  border-radius: 1px;
}
.headControls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
header.top.is-brand .headBand {
  overflow: hidden;
  isolation: isolate;
  min-height: 96px;
  padding: 8px 22px;
  gap: 14px;
}
header.top.is-brand .headBand > *:not(.head-sheen) { position: relative; z-index: 1; }
header.top.is-brand .logo {
  width: auto;
  height: 64px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: block;
  padding: 0;
  line-height: 0;
  font-size: 0;
  color: inherit;
}
header.top.is-brand .logo svg { display: block; height: 64px; width: auto; }
/* Text monogram for a branded club that does not use the Royals mark. Beats the SVG rule above. */
header.top.is-brand.is-mark .logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--fdisp);
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent);
}
header.top.is-brand .brandblock { flex: 1 1 auto; gap: 1px; }
header.top.is-brand .brand {
  color: var(--head-ink);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header.top.is-brand .headContext,
header.top.is-brand .headTag {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header.top.is-brand .headControls .btn.ghost {
  background: transparent;
  color: var(--head-ink);
  border-color: color-mix(in srgb, var(--head-ink) 45%, transparent);
}
header.top.is-brand .headControls .btn.ghost:hover {
  background: color-mix(in srgb, var(--head-ink) 12%, transparent);
  border-color: var(--head-accent);
}
header.top.is-brand .headControls .btn:not(.ghost) {
  background: var(--head-accent);
  border-color: var(--head-accent);
  color: var(--head-bg);
}
header.top.is-brand .toggle {
  background: transparent;
  border-color: color-mix(in srgb, var(--head-ink) 45%, transparent);
}
header.top.is-brand .toggle button { color: var(--head-muted); }
header.top.is-brand .toggle button.on {
  background: var(--head-accent);
  color: var(--head-bg);
}
header.top.is-brand #whoBtn,
header.top.is-brand .clubname select {
  color: var(--head-ink);
  background: transparent;
  border-color: color-mix(in srgb, var(--head-ink) 45%, transparent);
  max-width: 12rem;
}
header.top.is-brand .clubname { color: var(--head-ink); }
header.top:not(.is-brand) .head-sheen { display: none; }
@media (min-width: 1101px) {
  header.top.is-brand .headBand {
    flex-wrap: nowrap;
    height: 96px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  header.top.is-brand .headBand { height: auto; flex-wrap: wrap; }
  header.top.is-brand .headControls { flex: 1 0 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  header.top.is-brand .headBand {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    padding: 10px 12px 12px;
    row-gap: 8px;
  }
  header.top.is-brand .spacer { display: none; }
  header.top.is-brand .headTag,
  header.top.is-brand .headMotto { display: none; }
  header.top.is-brand .logo,
  header.top.is-brand .logo svg { height: 44px; }
  header.top.is-brand.is-mark .logo { width: 44px; height: 44px; font-size: 22px; }
  header.top.is-brand .headRule { height: 40px; }
  header.top.is-brand .brand { font-size: 17px; }
  header.top.is-brand .headContext { font-size: 11px; letter-spacing: .04em; }
  header.top.is-brand .headControls { flex: 1 0 100%; justify-content: flex-start; }
  html, body { overflow-x: hidden; max-width: 100%; }
}

.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--on-accent);
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .14s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 800;
}
.btn.ghost:hover { border-color: var(--border-2); background: var(--surface); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn.pp-act {
  background: var(--act);
  border-color: var(--act);
  color: var(--on-accent);
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--act) 75%, transparent);
}
.btn.pp-act:hover { background: var(--act-strong); border-color: var(--act-strong); }
/* Club theme: white on court orange is 2.35:1, so the orange button takes navy text (5.9:1). Review of BRIEF-039. */
:root[data-theme="club"] .btn.pp-act, :root[data-theme="club"] .btn.pp-act:hover { color: var(--ink); }
.toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
}
.toggle button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0 14px;
  min-height: 38px;
  font-family: var(--fdisp);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}
.toggle button.on { background: var(--brand); color: var(--on-accent); }

.entry {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.pp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 2px 14px;
}
.pp-pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  box-shadow: var(--shadow);
}
.pp-pillar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent);
}
.pp-hats {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  max-width: 100%;
}
.pp-hslab {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--faint);
  padding: 0 4px 0 9px;
}
.pp-hat {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-family: var(--fdisp);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.pp-hat:hover { color: var(--ink); }
.pp-hat[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-accent);
  box-shadow: 0 7px 15px -9px color-mix(in srgb, var(--brand) 85%, transparent);
}
.pp-greet { margin: 2px 2px 16px; }
.pp-greet h1 { font-size: 26px; }
.pp-greet p { color: var(--muted); margin: 5px 0 0; font-size: 14.5px; }
.pp-next {
  background: linear-gradient(135deg, var(--act-soft), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--act) 32%, var(--border));
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.pp-next .pp-ht { flex: 1; min-width: 200px; }
.pp-elabline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-elab {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--act-strong);
}
.pp-next h2 { font-size: 19px; margin: 5px 0 4px; }
.pp-next p { margin: 0; color: var(--muted); font-size: 13.5px; }
.pp-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 2fr 1fr;
  margin-top: 14px;
  min-width: 0;
}
.pp-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.pp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-card h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.pp-head h2 { margin-bottom: 0; }
.pp-head .tfilter { margin-top: 0; flex-wrap: wrap; }
.pp-sub { color: var(--faint); font-size: 12.5px; margin: 4px 0 12px; }
.pp-ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--on-accent);
}
.pp-ic svg { width: 16px; height: 16px; }
.pp-rows { display: flex; flex-direction: column; }
.pp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-radius: 11px;
  flex-wrap: wrap;
  min-width: 0;
}
.pp-row.dtask {
  background: transparent;
  border: 0;
  border-radius: 11px;
  padding: 12px 6px;
  opacity: 1;
}
.pp-row.dtask.done { opacity: 1; }
.pp-rows > .pp-row + .pp-row { border-top: 1px solid var(--line); }
.pp-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pp-row:hover { background: var(--surface-2); }
.pp-rmain { min-width: 0; flex: 1; }
.pp-rt { font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.pp-rm { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.pp-meta { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pp-check {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  display: grid;
  place-items: center;
  background: var(--surface);
}
.pp-check svg { width: 14px; height: 14px; opacity: 0; color: var(--on-accent); }
.pp-row.done .pp-check { background: var(--done); border-color: var(--done); }
.pp-row.done .pp-check svg { opacity: 1; }
.pp-row.done .pp-rt { color: var(--faint); text-decoration: line-through; }
.pp-row .dtevents { flex: 1 0 100%; }
.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--pc) 26%, transparent);
}
:root[data-theme="club"] .pp-pill {
  color: color-mix(in srgb, var(--pc) 42%, var(--ink));
}
.pp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.pp-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-strong);
  font-weight: 800;
  font-family: var(--fdisp);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 2px;
  margin-top: 4px;
}
.pp-empty { color: var(--muted); font-size: 13.5px; padding: 8px 2px 2px; }
.pp-err { color: var(--danger); }
.pp-doors { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; min-width: 0; max-width: 100%; }
.pp-gap { color: var(--danger); font-weight: 800; margin: 6px 0; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp-squad { display: flex; flex-direction: column; min-width: 0; }
.pp-player { display: flex; align-items: center; gap: 12px; padding: 10px 6px; min-width: 0; }
.pp-squad > .pp-player + .pp-player { border-top: 1px solid var(--line); }
.pp-pn { font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.pp-ps { color: var(--ink); font-weight: 700; font-size: 12.5px; }
.pp-sheet { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-sheet label { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-hats { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .pp-next { flex-direction: column; align-items: stretch; padding: 15px; }
  .pp-next .pp-ht { min-width: 0; }
  .pp-next .btn { width: 100%; }
  .pp-greet h1 { font-size: 23px; }
  .pp-card { padding: 15px; }
  .dash, .dashInner, .pp-top, .pp-card, .pp-next, .pp-doors { max-width: 100%; }
  .pp-actions .btn { white-space: normal; text-align: center; }
}

/* Author display rules must not uncover an element the page marked hidden. */
[hidden] { display: none !important; }

.head-sheen {
  display: block;
  position: absolute;
  top: -25%;
  left: -45%;
  width: 34%;
  height: 150%;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(90deg, transparent, var(--head-shine) 50%, transparent);
  transform: translateX(0) rotate(18deg);
  opacity: 0;
  animation: headSheen 8s ease-in-out infinite 1.2s;
}
@keyframes headSheen {
  0% { transform: translateX(0) rotate(18deg); opacity: 0; }
  6% { opacity: 1; }
  26% { transform: translateX(420%) rotate(18deg); opacity: 1; }
  30%, 100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
}
.head-spk {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  z-index: 3;
  background-image:
    radial-gradient(circle at center, var(--head-spark) 0 1.4px, transparent 1.8px),
    linear-gradient(var(--head-spark), var(--head-spark)),
    linear-gradient(var(--head-spark), var(--head-spark));
  background-size: 100% 100%, 1.5px 100%, 100% 1.5px;
  background-position: center, center, center;
  background-repeat: no-repeat;
  animation: headTwinkle 4.8s ease-in-out infinite;
}
.head-spk.spk-a { left: 36.2%; top: 18.3%; animation-delay: -1.2s; }
.head-spk.spk-b { left: 50%; top: 10.8%; animation-delay: -2.8s; }
.head-spk.spk-c { left: 63.8%; top: 18.3%; animation-delay: -4.2s; }
@keyframes headTwinkle {
  0%, 62%, 100% { transform: scale(.2); opacity: 0; }
  74% { transform: scale(1); opacity: 1; }
  86% { transform: scale(.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .head-sheen,
  .head-spk,
  :root[data-theme="club"] header.top.is-brand .headBand::before {
    animation: none !important;
    display: none !important;
  }
}

/* Club theme only: sky-and-sun header, gold-edged sweep every 5s. Light and dark are untouched. */
:root[data-theme="club"] header.top,
:root[data-theme="club"] .headBand {
  background-color: var(--head-bg);
  background-image:
    radial-gradient(circle at 92% 50%, transparent 118px, rgba(255,138,61,.28) 119px, rgba(255,138,61,.28) 122px, transparent 123px),
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(255,138,61,.16) 0),
    linear-gradient(115deg,#fff 0%,#e6f3ff 55%,#fff3cc 100%);
  background-size: 100% 100%, 50% 100%, 100% 100%;
  background-repeat: no-repeat;
}
:root[data-theme="club"] .headMotto { color: var(--act); }
:root[data-theme="club"] .headMotto::after { background: var(--head-rule); }
:root[data-theme="club"] header.top.is-brand .headControls .btn:not(.ghost),
:root[data-theme="club"] header.top.is-brand .toggle button.on {
  background: var(--logo-gold);
  border-color: var(--logo-gold);
  color: var(--logo-ink);
}
:root[data-theme="club"] .head-sheen {
  top: -30%;
  left: -50%;
  width: 40%;
  height: 160%;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(241,188,73,.22) 45%, var(--head-shine) 50%, rgba(241,188,73,.22) 55%, transparent);
  animation: headSheenBright 5s ease-in-out infinite .8s;
}
:root[data-theme="club"] header.top.is-brand .headBand::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -50%;
  width: 16%;
  height: 160%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(241,188,73,.22) 45%, var(--head-shine) 50%, rgba(241,188,73,.22) 55%, transparent);
  animation: headSheenBright 5s ease-in-out infinite 1.25s;
}
@keyframes headSheenBright {
  0% { opacity: 0; transform: rotate(18deg) translateX(0); }
  5% { opacity: 1; }
  38% { opacity: 1; transform: rotate(18deg) translateX(400%); }
  44%, 100% { opacity: 0; transform: rotate(18deg) translateX(400%); }
}
:root[data-theme="club"] .head-spk {
  background-image:
    radial-gradient(circle at center, var(--logo-gold) 0 1.4px, transparent 1.8px),
    linear-gradient(var(--logo-gold), var(--logo-gold)),
    linear-gradient(var(--logo-gold), var(--logo-gold));
}

/* ---- Design kit (public/ui-kit.js) — the demo portal's pieces, tokens only ---- */
.pp-doors .kit-cols, .kit-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  min-width: 0;
}
.kit-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kit-count {
  font-family: var(--fdisp); font-weight: 800; font-size: 12px;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.kit-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kit-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 14px 15px;
  min-width: 0;
}
.kit-tl { font-size: 12px; font-weight: 700; color: var(--muted); }
.kit-tv {
  font-family: var(--fdisp); font-weight: 800; font-size: 25px;
  margin-top: 4px; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kit-tv.kit-ok { color: var(--done); }
.kit-tv.kit-warn { color: var(--act); }
.kit-tv.kit-danger { color: var(--danger); }
.kit-tsub { font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.kit-meter { display: flex; align-items: center; gap: 10px; }
.kit-track {
  flex: 1; height: 8px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--mc) 16%, var(--surface-3));
}
.kit-track i { display: block; height: 100%; border-radius: 999px; background: var(--mc); }
.kit-pct {
  font-family: var(--fdisp); font-weight: 800; font-size: 13px;
  color: var(--muted); min-width: 38px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.kit-mrow { padding: 12px 2px; }
.kit-mrow + .kit-mrow { border-top: 1px solid var(--line); }
.kit-mtop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.kit-mname { font-weight: 700; font-size: 14px; }
.kit-mfig { font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kit-mnote { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kit-irow { flex-wrap: nowrap; align-items: flex-start; }
.kit-irow .pp-ic { margin-top: 1px; }
.kit-rm { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.kit-right { flex: none; display: flex; align-items: center; gap: 8px; align-self: center; }
.kit-hi { color: var(--act-strong); font-weight: 800; }
@media (max-width: 760px) {
  .kit-cols, .pp-doors .kit-cols { grid-template-columns: 1fr; }
  .kit-tv { font-size: 22px; }
}
.kit-hat { font-weight: 800; color: var(--muted); font-size: .58em; }
.kit-clear { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.kit-clear svg { width: 15px; height: 15px; color: var(--done); flex: none; }
.kit-prow { flex-wrap: nowrap; padding: 9px 6px; }
.kit-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--fdisp); font-weight: 800; font-size: 12px;
  color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
}
.kit-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.kit-cnt {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 5px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--pc) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--pc) 24%, transparent);
}
.kit-cnt b { font-family: var(--fdisp); font-size: 15px; color: var(--ink); }
.kit-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.kit-steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.kit-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.kit-step + .kit-step::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 30px); height: 2px; background: var(--line); }
.kit-step.is-done::before, .kit-step.is-now::before { background: var(--door-player); }
.kit-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--fdisp); font-weight: 800; font-size: 12px;
  color: var(--muted); background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1;
}
.kit-dot svg { width: 14px; height: 14px; }
.kit-step.is-done .kit-dot { background: var(--door-player); border-color: var(--door-player); color: var(--on-accent); }
.kit-step.is-now .kit-dot { background: var(--card); border-color: var(--door-player); color: var(--door-player); box-shadow: 0 0 0 4px color-mix(in srgb, var(--door-player) 18%, transparent); }
.kit-sname { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.kit-step.is-now .kit-sname { color: var(--ink); font-weight: 800; }
.kit-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kit-vid {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--card); color: inherit; text-decoration: none; min-width: 0;
}
a.kit-vid:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.kit-vthumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; color: var(--on-accent);
  background: linear-gradient(135deg, var(--vc), color-mix(in srgb, var(--vc) 55%, var(--ink)));
}
.kit-vthumb svg { width: 30px; height: 30px; }
.kit-vtag {
  position: absolute; left: 8px; bottom: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--on-accent);
}
.kit-vmeta { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 12px; }
.kit-vt { font-weight: 800; font-size: 13px; line-height: 1.3; }
.kit-vs { font-size: 12px; color: var(--muted); line-height: 1.35; }
.kit-vg { font-size: 11.5px; color: var(--muted); font-style: italic; line-height: 1.35; }
.kit-vid.is-live .kit-vthumb { opacity: .8; }
.pp-actions .btn[data-avail] { background: var(--card); color: var(--ink); border: 1px solid var(--border-2); box-shadow: none; }
.pp-actions .btn[data-avail]:hover { border-color: var(--door-player); }
.pp-actions .btn[data-avail].on { background: var(--done); border-color: var(--done); color: var(--on-accent); }
.pp-actions .btn[data-avail="no"].on { background: var(--danger); border-color: var(--danger); }
.pp-actions .btn[data-avail="maybe"].on { background: var(--warn); border-color: var(--warn); color: var(--ink); }
@media (max-width: 760px) {
  .kit-vids { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kit-vthumb { aspect-ratio: 16 / 10; }
  .kit-vthumb svg { width: 24px; height: 24px; }
  .kit-vtag { font-size: 9.5px; left: 6px; bottom: 5px; }
  .kit-vmeta { padding: 8px 9px 10px; }
  .kit-vg { display: none; }
}

/* Journeys phase A (BRIEF-040). New .jn* classes only. Club tokens. */
.jnPage { max-width: 1180px; margin: 0 auto; padding: 4px 16px 48px; min-width: 0; width: 100%; box-sizing: border-box; }
.jnAsk {
  padding: 22px; min-width: 0;
  background: linear-gradient(115deg, var(--card) 0%, var(--surface-3) 60%, var(--head-spark) 100%);
  border: 1px solid var(--border); border-radius: 18px; display: grid; gap: 12px;
}
.jnEyebrow { font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.jnAskTitle, .jnTitle, .jnChosenTitle { font-family: var(--fdisp); font-size: 30px; font-weight: 800; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.jnAskRow { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.jnAskInput {
  flex: 1 1 200px; min-width: 0; border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 14px; font: inherit; background: var(--card); color: var(--ink);
}
.jnChips { display: flex; flex-wrap: wrap; gap: 8px; }
.jnAskChip {
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
  max-width: 100%; text-align: left;
}
.jnAskChip b { color: var(--muted); font-weight: 700; }
.jnBtn {
  border: 0; border-radius: 10px; padding: 10px 16px; min-height: 40px;
  font-family: var(--fdisp); font-weight: 800; font-size: 14px; cursor: pointer;
  background: var(--surface-3); color: var(--ink);
}
.jnBtnMain { background: var(--brand); color: var(--on-accent); }
.jnActs { display: flex; flex-wrap: wrap; gap: 8px; }
.jnLinkBtn, .jnFold {
  border: 0; background: none; padding: 0; color: var(--brand); font-weight: 800;
  font-size: 13px; text-align: left; cursor: pointer;
}
.jnFold { display: none; }
.jnHomeGrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.jnHomeGrid > * { min-width: 0; }
.jnSec { display: grid; gap: 12px; align-content: start; min-width: 0; }
.jnSecHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jnSecHead h2 { font-size: 22px; color: var(--ink); }
.jnSecHead h3 { font-size: 17px; color: var(--ink); }
.jnMuted { color: var(--muted); }
.jnTabNum { font-variant-numeric: tabular-nums; }
.jnWarn { color: var(--act-strong); font-weight: 700; }
.jnEmptyNote { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.jnFine { font-size: 12.5px; color: var(--muted); margin: 0; }
.jnCard {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: grid; gap: 10px; min-width: 0;
}
.jnNext {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px;
  align-items: center; padding: 14px 16px;
}
.jnDot {
  grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 5px var(--pillar-gov-tint);
}
.jnDotWarn { background: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 28%, var(--card)); }
.jnNextTitle { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.jnNextSub { grid-column: 2; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.jnNextSub.jnWarn { color: var(--act-strong); }
.jnNext .jnBtn { grid-row: 1 / span 2; grid-column: 3; }
.jnRun {
  display: grid; gap: 8px; width: 100%; max-width: 100%; box-sizing: border-box;
  text-align: left; padding: 14px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; color: inherit; font: inherit; cursor: pointer; min-width: 0;
}
.jnRun:hover { box-shadow: var(--shadow); }
.jnRunTop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jnRunName { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.jnMiniRail { display: flex; gap: 4px; min-width: 0; }
.jnMiniBar { flex: 1 1 0; height: 7px; border-radius: 4px; background: var(--border); min-width: 0; }
.jnMiniBar.jnIsDone { background: var(--done); }
.jnMiniBar.jnIsNow { background: var(--brand); }
.jnMiniBar.jnIsHeld { background: var(--warn); }
.jnRunLine { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.jnRunLine.jnWarn { color: var(--act-strong); }
.jnTags { display: flex; flex-wrap: wrap; gap: 6px; }
.jnTag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 2px 8px; max-width: 100%;
}
.jnPill {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 11px; line-height: 1;
  padding: 5px 9px; border-radius: 999px; letter-spacing: .3px; white-space: nowrap; max-width: 100%;
}
.jnPill-gov { background: var(--pillar-gov-tint); color: var(--pillar-gov-ink); }
.jnPill-ops { background: var(--pillar-ops-tint); color: var(--pillar-ops-ink); }
.jnPill-proj { background: var(--pillar-proj-tint); color: var(--pillar-proj-ink); }
.jnPillNow { background: var(--pillar-gov-tint); color: var(--brand); white-space: normal; }
.jnNowCard .jnPill, .jnBook .jnPill { white-space: normal; }
.jnPillDone { background: var(--pillar-proj-tint); color: var(--done); }
.jnPillWarn { background: color-mix(in srgb, var(--warn) 22%, var(--card)); color: var(--act-strong); }
.jnPillLater { background: var(--surface-3); color: var(--muted); }
.jnBooksTitle { margin: 28px 0 0; font-size: 22px; color: var(--ink); }
.jnBooks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.jnBook { align-content: start; }
.jnBookList { list-style: none; margin: 0; padding: 0; display: grid; }
.jnBookItem {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline;
  padding: 7px 0; border-top: 1px dashed var(--border); min-width: 0;
}
.jnBookName {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--ink);
  cursor: pointer; text-align: left; min-width: 0; overflow-wrap: anywhere;
}
.jnBookMeta { color: var(--muted); font-size: 12px; }
.jnFlow {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px 20px; min-width: 0;
  grid-template-areas: "head head" "rail rail" "now side" "steps side";
  /* Review of BRIEF-040: a tall side column grows the steps row, never the Now card. */
  grid-template-rows: auto auto auto 1fr;
}
.jnHead { grid-area: head; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; justify-content: space-between; min-width: 0; }
.jnHeadMain { min-width: 0; display: grid; gap: 6px; }
.jnMetaLine, .jnNowMeta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); min-width: 0; }
.jnNowMeta { font-size: 14px; }
.jnMetaLine b, .jnNowMeta b { color: var(--ink); }
.jnStageRail {
  grid-area: rail; display: grid; grid-template-columns: repeat(var(--jn-cols, 1), minmax(0, 1fr));
  gap: 8px; min-width: 0;
}
.jnStageItem { min-width: 0; }
.jnStage {
  width: 100%; min-width: 0; border: 0; background: none; text-align: left; color: inherit;
  font: inherit; padding: 0 8px 0 0; cursor: pointer;
}
.jnStageBar { display: block; height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 10px; }
.jnStageDone .jnStageBar { background: var(--done); }
.jnStageNow .jnStageBar { background: var(--brand); }
.jnStageHeld .jnStageBar { background: var(--warn); }
.jnStageNum { display: block; font-family: var(--fdisp); font-weight: 800; font-size: 13px; letter-spacing: .5px; color: var(--muted); }
.jnStageNow .jnStageNum { color: var(--brand); }
.jnStageName { display: block; font-family: var(--fdisp); font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.jnStageOn .jnStageName { text-decoration: underline; text-decoration-color: var(--logo-gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.jnStageWhen { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.jnStageMore {
  width: 100%; height: 100%; min-height: 44px; border: 1px dashed var(--border); border-radius: 12px;
  background: var(--card); color: var(--brand); font-weight: 800; cursor: pointer;
}
.jnNowCard {
  grid-area: now; padding: 20px; border: 2px solid var(--brand); border-radius: 14px;
  box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0; align-self: start; align-content: start;
  background: linear-gradient(180deg, var(--card), var(--card) 70%, var(--pillar-gov-tint));
}
.jnNowTitle { font-family: var(--fdisp); font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.jnRepeat { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); min-width: 0; }
.jnRepeatProgress { font-family: var(--fdisp); font-weight: 800; font-size: 18px; color: var(--ink); }
.jnRepeatFacts, .jnRepeatPeople { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jnRepeatFact { font-size: 13px; font-weight: 800; color: var(--ink); background: var(--surface-3); border-radius: 999px; padding: 4px 10px; }
.jnRepeatDay { font-weight: 800; color: var(--ink); margin-top: 4px; }
.jnRepeatEvent { font-size: 13px; color: var(--muted); }
.jnRepeatSlot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); padding: 4px 0; border-top: 1px solid var(--border); }
.jnRepeatPick { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; max-width: 100%; }
.jnRepeatNote { font-size: 13px; color: var(--muted); margin: 0; }
.jnChecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jnChecks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; min-width: 0; }
.jnBox {
  flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border);
  margin-top: 2px; display: grid; place-items: center; font-size: 12px; color: var(--on-accent); background: var(--card);
}
.jnBoxOn { background: var(--done); border-color: var(--done); }
.jnSteps { grid-area: steps; display: grid; gap: 8px; min-width: 0; align-content: start; }
.jnStepRow {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; min-width: 0;
}
.jnStepLater { opacity: .72; }
.jnStepNo {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--fdisp); font-weight: 800; font-size: 14px; background: var(--surface-3); color: var(--ink);
}
.jnStepDone .jnStepNo { background: var(--done); color: var(--on-accent); }
.jnStepDone .jnStepTitle { color: var(--done); }
.jnStepNow { border-color: var(--brand); }
.jnStepNow .jnStepNo { background: var(--brand); color: var(--on-accent); }
.jnStepHeld .jnStepNo { background: var(--warn); color: var(--ink); }
.jnStepTitle { font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.jnStepSub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.jnSide {
  grid-area: side; display: grid; gap: 14px; align-content: start; min-width: 0;
  width: auto; max-width: none; border: 0; padding: 0; background: transparent; overflow: visible;
}
.jnWho { display: grid; gap: 8px; }
.jnWhoRow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; min-width: 0; }
.jnWhoRow em { font-style: normal; color: var(--muted); font-size: 12.5px; text-align: right; }
.jnWhoName { min-width: 0; overflow-wrap: anywhere; }
.jnAv {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-style: normal; font-weight: 700; font-size: 11px; background: var(--head-spark); color: var(--head-accent);
  margin-right: 8px; vertical-align: middle;
}
.jnDocs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.jnDocs li { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.jnDocTitle { min-width: 0; overflow-wrap: anywhere; }
.jnMapCard { min-width: 0; }
.jnMapHost { width: 100%; max-width: 100%; height: 220px; min-height: 220px; min-width: 0; position: relative; overflow: hidden; }
.jnMapHost .bh-root, .jnMapHost .bh-svg { width: 100%; max-width: 100%; height: 220px; }
.jnMapNote { font-size: 13px; margin: 6px 0 0; }
.jnHold { display: grid; gap: 8px; }
.jnHoldLabel { font-weight: 800; font-size: 13px; color: var(--ink); }
.jnHoldInput {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: var(--card); color: var(--ink);
}
@media (max-width: 767px) {
  .jnAskTitle, .jnTitle { font-size: 25px; }
  .jnNowTitle { font-size: 19px; }
  .jnHomeGrid, .jnBooks { grid-template-columns: minmax(0, 1fr); }
  .jnFlow { display: flex; flex-direction: column; }
  .jnHead { order: 0; }
  .jnNowCard { order: 1; }
  .jnStageRail { order: 2; display: flex; flex-direction: column; gap: 10px; }
  .jnFold { order: 3; display: block; }
  .jnSteps { order: 4; }
  .jnSide { order: 5; display: none; }
  .jnSide.jnOpen { display: grid; }
  .jnStage {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: start;
    padding: 0; text-align: left;
  }
  .jnStageBar { width: 14px; height: 14px; border-radius: 50%; margin: 3px 0 0; grid-row: 1 / span 3; }
  .jnStageNow .jnStageBar { box-shadow: 0 0 0 4px var(--pillar-gov-tint); }
  .jnNext { grid-template-columns: auto minmax(0, 1fr); }
  .jnNext .jnBtn { grid-row: auto; grid-column: 1 / -1; justify-self: start; }
  .jnStepRow { grid-template-columns: 34px minmax(0, 1fr); }
  .jnStepRow .jnPill { grid-column: 2; justify-self: start; }
}

/* Northside Hawks (Test). Later than the shared club block, so Royals and Riverside stay as they are. */
:root[data-theme="club"][data-club="northside-test"],
:root[data-theme="light"][data-club="northside-test"] {
  --bg:#f4f7f2; --surface:#ffffff; --surface-2:#eef6f1; --surface-3:#e7f4ec;
  --border:#d5e6dc; --border-2:#c3d9cc;
  --ink:#10281f; --muted:#3e564c; --faint:#5c7268;
  --brand:#146b45; --brand-strong:#0e5234;
  --act:#a34c08; --act-strong:#8a3d06;
  --brand-soft:#e5f4ec;
  --on-accent:#ffffff;
  --card:#ffffff; --line:#d5e6dc;
  --head-bg:#ffffff; --head-ink:#10281f; --head-accent:#8a5a00; --head-rule:#c9a227; --head-muted:#3e564c;
  --head-shine:rgba(255,255,255,.85); --head-spark:#e7f4ec; --logo-gold:#146b45; --logo-ink:#10281f;
  --pillar-gov:#0e5234; --pillar-ops:#6b4500; --pillar-proj:#145c40;
  --pillar-gov-tint:#e5f4ec; --pillar-ops-tint:#fff6dc; --pillar-proj-tint:#e6f7ef;
  --pillar-gov-ink:#0e5234; --pillar-ops-ink:#6b4500; --pillar-proj-ink:#145c40;
}
:root[data-theme="dark"][data-club="northside-test"] {
  --bg:#101c18; --surface:#17241f; --surface-2:#1e2d27; --surface-3:#24362f;
  --border:#2c4338; --border-2:#3d5a4c;
  --ink:#e7f3ec; --muted:#b7c9bf; --faint:#8aa396;
  --brand:#146b45; --brand-strong:#0e5234;
  --act:#a34c08; --act-strong:#8a3d06;
  --act-text:#f1bc49;
  --brand-soft:#1c3328;
  --on-accent:#ffffff;
  --card:#17241f; --line:#2c4338;
  --head-bg:#17241f; --head-ink:#e7f3ec; --head-accent:#f1bc49; --head-rule:#146b45; --head-muted:#b7c9bf;
  --head-shine:rgba(255,255,255,.2); --head-spark:#1c3328; --logo-gold:#f1bc49; --logo-ink:#e7f3ec;
  --pillar-gov:#c9ead8; --pillar-ops:#f3d48a; --pillar-proj:#b7e0cf;
  --pillar-gov-tint:#1c3328; --pillar-ops-tint:#332816; --pillar-proj-tint:#163028;
  --pillar-gov-ink:#c9ead8; --pillar-ops-ink:#f3d48a; --pillar-proj-ink:#b7e0cf;
}
:root[data-theme="club"][data-club="northside-test"] header.top,
:root[data-theme="club"][data-club="northside-test"] .headBand {
  background-color: #ffffff;
  background-image: linear-gradient(115deg, #ffffff 0%, #e7f4ec 55%, #f3f7e8 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
:root[data-theme="club"][data-club="northside-test"] .head-sheen,
:root[data-theme="club"][data-club="northside-test"] header.top.is-brand .headBand::before {
  background: linear-gradient(90deg, transparent, rgba(20,107,69,.18) 45%, rgba(255,255,255,.85) 50%, rgba(20,107,69,.18) 55%, transparent);
}
/* Club theme paints act buttons with ink. On the hawks amber that falls under 4.5, so this club uses white. */
:root[data-theme="club"][data-club="northside-test"] .btn.pp-act,
:root[data-theme="club"][data-club="northside-test"] .btn.pp-act:hover {
  color: var(--on-accent);
}
/* Header buttons are #10281f on #146b45 (2.4:1). White on that green clears 4.5. */
:root[data-theme="club"][data-club="northside-test"] header.top.is-brand .headControls .btn:not(.ghost),
:root[data-theme="club"][data-club="northside-test"] header.top.is-brand .toggle button.on {
  color: var(--on-accent);
}
:root[data-theme="dark"][data-club="northside-test"] .kit-tv.kit-warn {
  color: var(--act-text);
}

/* Learn playlist. Tokens only. Sits in the player card; usable at 390px. */
.lp { min-width: 0; max-width: 100%; }
.lp-progress { margin: 0 0 10px; }
.lp-count {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lp-done-note {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lp-next {
  margin: 0 0 12px;
  padding: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--door-player) 8%, var(--card));
}
.lp-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.lp-next-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lp-goal, .lp-check {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lp-check-label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.lp-steps {
  margin: 0 0 8px;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.lp-steps li { overflow-wrap: anywhere; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lp-actions .btn { min-height: 44px; }
.lp-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lp-lesson {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.lp-lesson.is-next { border-color: color-mix(in srgb, var(--door-player) 55%, var(--line)); }
.lp-lesson.is-done { background: color-mix(in srgb, var(--done) 8%, var(--card)); }
.lp-open {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.lp-open:hover { background: var(--surface-2); }
.lp-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.lp-mark svg { width: 14px; height: 14px; }
.lp-lesson.is-done .lp-mark {
  background: var(--door-player);
  border-color: var(--door-player);
  color: var(--on-accent);
}
.lp-lesson.is-next .lp-mark {
  border-color: var(--door-player);
  background: var(--card);
  color: var(--ink);
}
.lp-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lp-state { flex: none; font-size: 13px; font-weight: 800; color: var(--ink); }
.lp-chev { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink); }
.lp-chev svg { width: 16px; height: 16px; }
.lp-open[aria-expanded="true"] .lp-chev svg { transform: rotate(90deg); }
.lp-panel { padding: 0 12px 10px; min-width: 0; }
/* A short film row, not a poster. The link stays a real kit-vid. */
.lp-next .kit-vids,
.lp-panel .kit-vids { grid-template-columns: 1fr; max-width: 100%; }
.lp-next .kit-vid,
.lp-panel .kit-vid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
}
.lp-next .kit-vthumb,
.lp-panel .kit-vthumb {
  aspect-ratio: auto;
  width: 132px;
  height: auto;
  min-height: 74px;
  max-height: 84px;
}
.lp-next .kit-vtag,
.lp-panel .kit-vtag {
  max-width: calc(100% - 12px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lp-next .kit-vmeta,
.lp-panel .kit-vmeta { justify-content: center; }
/* The wordmark sits at the left of a narrow screen. Inset the video so that word is not under the card. */
@media (max-width: 760px) {
  .lp-next .kit-vids,
  .lp-panel .kit-vids { margin-left: 40px; max-width: calc(100% - 40px); }
}
/* Desktop: the playlist scrolls inside the card so one open lesson cannot stretch the player column past the fold. */
@media (min-width: 761px) {
  .lp { max-height: 680px; overflow-y: auto; }
  .lp-next .kit-vids,
  .lp-panel .kit-vids { max-width: 440px; }
}
@media (max-width: 420px) {
  .lp-next { padding: 12px; }
  .lp-next-title { font-size: 20px; }
  .lp-next .kit-vid,
  .lp-panel .kit-vid { grid-template-columns: 108px minmax(0, 1fr); }
  .lp-next .kit-vthumb,
  .lp-panel .kit-vthumb { width: 108px; min-height: 68px; max-height: 76px; }
  .lp-actions { display: grid; }
  .lp-actions .btn { width: 100%; white-space: normal; }
  .lp-open { gap: 8px; padding: 8px 10px; }
}

/* Board status colours. The same token on a column, a card mark and a badge. */
:root {
  --status-todo: var(--open);
  --status-doing: var(--act);
  --status-done: var(--done);
  --status-late: var(--blocked);
  --band-1: #5b8cff;
  --band-2: #2fae92;
  --band-3: #f07d22;
  --band-4: #8a5cf0;
  --band-5: #e8a234;
  --band-6: #e85c7a;
  --band-7: #16a88c;
  --band-8: #2f8ee6;
}
.pv-col[data-status="suggested"] { border-top: 4px solid var(--status-todo); }
.pv-col[data-status="confirmed"] { border-top: 4px solid var(--status-doing); }
.pv-col[data-status="done"] { border-top: 4px solid var(--status-done); }
.pv-status-mark[data-status="suggested"],
.pv-status-badge[data-status="suggested"] { background: var(--status-todo); }
.pv-status-mark[data-status="confirmed"],
.pv-status-badge[data-status="confirmed"] { background: var(--status-doing); }
.pv-status-mark[data-status="done"],
.pv-status-badge[data-status="done"] { background: var(--status-done); }
.pv-status-badge { color: var(--on-accent); }
.pv-end.pv-late { color: var(--status-late); }
.pv-band[data-band="0"] > .pv-band-h { background: var(--band-1); }
.pv-band[data-band="1"] > .pv-band-h { background: var(--band-2); }
.pv-band[data-band="2"] > .pv-band-h { background: var(--band-3); }
.pv-band[data-band="3"] > .pv-band-h { background: var(--band-4); }
.pv-band[data-band="4"] > .pv-band-h { background: var(--band-5); }
.pv-band[data-band="5"] > .pv-band-h { background: var(--band-6); }
.pv-band[data-band="6"] > .pv-band-h { background: var(--band-7); }
.pv-band[data-band="7"] > .pv-band-h { background: var(--band-8); }
/* Same status colour on the header, the mark and the badge. No thick edge on the radius. */
.pv-col[data-status="suggested"],
.pv-col[data-status="confirmed"],
.pv-col[data-status="done"] { border-top-width: 0; }
.pv-col[data-status] > .pv-col-h { color: #0b0d12; }
.pv-col[data-status="suggested"] > .pv-col-h { background: var(--status-todo); }
.pv-col[data-status="confirmed"] > .pv-col-h { background: var(--status-doing); }
.pv-col[data-status="done"] > .pv-col-h { background: var(--status-done); }
.pv-col[data-status] > .pv-col-h .pv-count { background: transparent; color: #0b0d12; }
.pv-status-badge { color: #0b0d12; }

/* Sponsor door deliverables (M6). Long labels wrap on a narrow phone. Tokens only. */
.sp-del { min-width: 0; }
.sp-del .kit-irow { flex-wrap: wrap; min-width: 0; }
.sp-del .pp-rmain { min-width: 0; }
.sp-del .pp-rt,
.sp-del .kit-rm,
.sp-del .kit-mname { overflow-wrap: anywhere; min-width: 0; }
.sp-del-new {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}
@media (max-width: 760px) {
  .sp-del .kit-right { margin-left: 0; }
}
/* Defined edge only. The shared card pairs a 1px line with --shadow (26px blur). */
.pp-card.sp-del-card {
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Front door pieces (ui-kit heroBand, areaBand, valuesFooter, nextSteps).
   Colour is a custom property set from the club brand. No club hex here. */
.fd-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  width: 100%;
  color: var(--on-accent);
  position: relative;
}
.fd-hero-copy { min-width: 0; flex: 1 1 auto; position: relative; z-index: 1; }
.fd-hero h1 {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: .95;
  margin: 0;
  color: var(--on-accent);
  overflow-wrap: anywhere;
}
.fd-hero .fd-sub, .fd-hero .sub {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fd-gold-ink, var(--fd-gold, var(--gold)));
  margin: 6px 0 0;
}
.fd-hero .fd-tag, .fd-hero .tag {
  font-family: var(--fbody, "Nunito Sans", sans-serif);
  font-style: normal;
  font-weight: 700;
  margin: 8px 0 0;
  color: var(--on-accent);
  opacity: 1;
}
.fd-hero .fd-motto, .fd-hero .motto {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-family: var(--fscript, "Caveat", "Segoe Print", cursive);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  transform: rotate(-6deg);
  flex: none;
}
.fd-hero .fd-motto span, .fd-hero .motto span { display: inline; }
.fd-hero .motto i, .fd-hero .fd-motto i {
  display: block;
  height: 3px;
  width: 80%;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--fd-gold-ink, var(--fd-gold, var(--gold)));
}
.fd-hero::after {
  content: "";
  z-index: 0;
  position: absolute;
  top: -30%;
  left: -40%;
  width: 30%;
  height: 160%;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transform: rotate(18deg);
  animation: none;
}
@keyframes fdSweep {
  0% { transform: rotate(18deg) translateX(0); }
  24% { transform: rotate(18deg) translateX(280%); }
  100% { transform: rotate(18deg) translateX(280%); }
}
.fd-area {
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line, var(--border));
  background: var(--fd-t, var(--panel, var(--surface)));
}
.fd-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--fd-c, var(--ink));
  color: var(--fd-on, var(--on-accent));
}
.fd-strip h3 {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
}
.fd-strip small {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
  opacity: 1;
  letter-spacing: 0;
  text-transform: none;
}
.fd-ic { width: 46px; height: 46px; flex: none; display: block; }
.fd-ic svg, .fd-svg { width: 46px; height: 46px; display: block; }
.fd-body { background: var(--fd-t, var(--panel, var(--surface))); color: var(--fd-ink, var(--ink, var(--text))); padding: 12px 16px 16px; }
.fd-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fd-bullets li { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.fd-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fd-c, var(--ink));
  flex: none;
}
.fd-bullets a {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.fd-foot {
  background: var(--fd-deep, var(--navy-deep, var(--navy)));
  color: var(--on-accent);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 32px;
  min-width: 0;
}
.fd-foot .fd-line { flex: 1; height: 4px; min-width: 24px; opacity: 1; background: var(--fd-gold-ink, var(--on-accent)); }
.fd-foot b {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--fd-gold-ink, var(--fd-gold, var(--gold)));
  text-transform: uppercase;
}
.fd-foot .fd-vals {
  font-family: var(--fscript, "Caveat", "Segoe Print", cursive);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--on-accent);
}
.fd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fd-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.fd-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--fd-navy, var(--navy));
}
.fd-steps small { display: block; }
@media (max-width: 760px) {
  .fd-hero { align-items: flex-start; }
  .fd-hero .fd-motto, .fd-hero .motto, .fd-hero .fd-tag, .fd-hero .tag { display: none; }
  .fd-areas, .fd-hero { max-width: 100%; }
  .fd-ic, .fd-ic svg, .fd-svg { width: 36px; height: 36px; }
  .fd-foot { justify-content: center; text-align: center; padding: 16px; }
  .fd-foot .fd-line { display: none; }
  .fd-foot .fd-vals { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-hero::after { animation: none; display: none; }
}

/* Committee structure page. Colour is a custom property set from the club brand. */
section#structure { max-width: 100%; overflow-x: hidden; }
.org-page {
  --navy: var(--ink);
  --gold: var(--head-accent, var(--brand));
  --panel: var(--surface);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
  display: grid;
  gap: 18px;
}
.org-page .fd-hero {
  background: var(--fd-navy, var(--navy));
  border-radius: 14px;
  padding: 18px 22px;
  overflow: hidden;
}
.org-page .fd-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.org-page .fd-hero h1,
.org-page .fd-hero .fd-sub,
.org-page .fd-hero .sub {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  font-style: normal;
}
.org-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}
.org-intro.is-solo { grid-template-columns: minmax(0, 1fr); }
.org-blurb { min-width: 0; }
.org-blurb h2 {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--fd-navy, var(--navy));
}
.org-blurb p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.org-exec-band {
  background: var(--fd-navy, var(--navy));
  color: var(--on-accent);
  border-radius: 14px;
  padding: 16px 18px 18px;
  min-width: 0;
}
.org-exec-band.is-on { box-shadow: inset 0 0 0 3px var(--fd-gold-ink, var(--fd-gold, var(--gold))); }
.org-exec-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-exec-ic { width: 42px; height: 42px; flex: none; display: block; }
.org-exec-head h3 {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--on-accent);
  overflow-wrap: anywhere;
}
.org-exec-roles { display: flex; margin-top: 14px; min-width: 0; }
.org-exec-role {
  flex: 1 1 0;
  text-align: center;
  padding: 4px 8px;
  min-width: 0;
}
.org-exec-role + .org-exec-role { border-left: 2px solid var(--fd-gold-ink, var(--fd-gold, var(--gold))); }
.org-exec-role b {
  display: block;
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.org-exec-role span { display: block; opacity: 1; font-size: .9rem; overflow-wrap: anywhere; }
.org-exec-empty { margin: 12px 0 0; font-style: normal; font-weight: 700; }
.org-exec-procs { margin: 12px 0 0; padding-left: 18px; }
.org-exec-terms { margin-top: 12px; }
.org-exec-terms summary { cursor: pointer; font-weight: 700; }
.org-exec-terms p { margin: 8px 0 0; overflow-wrap: anywhere; }
.org-joins { color: var(--fd-navy, var(--navy)); height: 40px; min-width: 0; }
.org-joins svg { display: block; width: 100%; height: 40px; }
.org-bands {
  display: grid;
  grid-template-columns: repeat(var(--org-cols, 3), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.org-page .fd-strip h3,
.org-page .fd-strip small { overflow-wrap: anywhere; }
.org-row {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-hair, var(--line));
  min-width: 0;
}
.org-row:last-child { border-bottom: 0; }
.org-row.is-on { box-shadow: inset 3px 0 0 var(--fd-gold-ink, var(--fd-gold, var(--gold))); }
.org-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  flex: none;
  display: grid;
  place-items: center;
}
.org-tick.is-held {
  background: var(--fd-c, var(--done));
  border-color: var(--fd-c, var(--done));
}
.org-tick.is-held::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid var(--fd-on, var(--on-accent));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.org-ask {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.org-name { display: block; font-weight: 800; overflow-wrap: anywhere; }
.org-who { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.org-fill {
  margin-left: auto;
  flex: none;
  font-weight: 800;
  color: var(--fd-c, var(--brand));
  text-decoration: none;
  white-space: nowrap;
}
.org-open { padding: 4px 0 8px 34px; min-width: 0; }
.org-open ul { margin: 0 0 8px; padding-left: 18px; }
.org-open p, .org-open li { margin: 0 0 6px; overflow-wrap: anywhere; }
.org-page .fd-foot { border-radius: 14px; }
@media (max-width: 760px) {
  .org-joins { display: none; }
  section#structure { padding: 12px; }
  .org-page .fd-hero { padding: 12px 14px; }
  .org-page .fd-hero h1 { font-size: 1.6rem; }
  .org-page .fd-hero .fd-sub { font-size: .95rem; }
  .org-intro,
  .org-intro.is-solo,
  .org-bands { grid-template-columns: minmax(0, 1fr); }
  .org-exec-roles { flex-direction: column; }
  .org-exec-role { border-left: 0; padding: 8px 0; }
  .org-exec-role + .org-exec-role { border-top: 2px solid var(--fd-gold-ink, var(--fd-gold, var(--gold))); }
  .org-blurb h2 { font-size: 1.6rem; }
  .org-page { overflow-x: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .org-page,
  .org-page * { animation: none; transition: none; }
  .org-joins { animation: none; }
}

/* Player door (BRIEF-069). Colour is a brand variable. No club hex.
   Not .pp-player: that class is the squad-member row (a horizontal flex line). */
.pp-player-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pp-player-page .fd-hero {
  background: var(--fd-navy, var(--navy));
  border-radius: 14px;
  padding: 28px 32px;
  width: 100%;
  overflow: visible;
}
.pp-player-page .fd-hero::after { content: none; display: none; animation: none; }
.pp-player-page .fd-hero h1 { font-size: 2.6rem; overflow-wrap: normal; }
.pp-player-page .fd-hero .fd-motto,
.pp-player-page .fd-hero .motto {
  font-family: var(--fscript);
  font-weight: 700;
  font-size: 2rem;
  color: var(--on-accent);
}
.pp-player-page .fd-hero .fd-tag,
.pp-player-page .fd-hero .tag {
  opacity: 1;
  font-family: var(--fbody);
  font-weight: 700;
  font-style: normal;
  color: var(--on-accent);
}
.pp-player-page .fd-foot .fd-vals {
  font-family: var(--fscript);
  font-weight: 700;
  color: var(--on-accent);
}
.pp-player-page .fd-hero .pp-logo {
  --logo-gold: var(--fd-gold, var(--logo-gold));
  --logo-ink: var(--on-accent);
  --head-bg: var(--on-accent);
}
.pp-player-page .fd-hero .pp-mono rect { fill: var(--fd-gold, var(--logo-gold)); }
.pp-player-page .fd-hero .pp-mono text { fill: var(--fd-deep, var(--ink)); }
.pp-player-page .pp-logo {
  width: 84px;
  height: auto;
  flex: none;
  display: block;
}
.pp-player-page .pp-mono { width: 64px; height: 64px; }
.pp-player-page .fd-area { overflow: visible; }
.pp-player-page .fd-strip { border-radius: 13px 13px 0 0; }
.pp-player-page .fd-body { border-radius: 0 0 13px 13px; }
.pp-player-page .kit-vid { overflow: visible; }
.pp-player-page .kit-vthumb { border-radius: 12px 12px 0 0; }
.pp-player-page .pp-path { width: 100%; min-width: 0; }
.pp-player-page .pp-path h2 {
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.6rem;
  line-height: 1;
  margin: 0 0 14px;
}
.pp-player-page .pp-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.pp-player-page .pp-path-step {
  position: relative;
  flex: 1 1 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.pp-player-page .pp-path-age {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--fhead, "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  border: 2px solid var(--fd-navy, var(--navy));
  background: transparent;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.pp-player-page .pp-path-step.is-done .pp-path-age,
.pp-player-page .pp-path-step.is-filled .pp-path-age {
  background: var(--fd-navy, var(--ink));
  border-color: var(--fd-navy, var(--ink));
  color: var(--on-accent);
  box-shadow: inset 0 0 0 32px var(--fd-navy, var(--ink));
}
.pp-player-page .pp-path-step.is-later .pp-path-age {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  border: 2px solid var(--fd-navy, var(--ink));
}
.pp-player-page .pp-path-step.is-now .pp-path-age {
  background: var(--fd-navy, var(--ink));
  border-color: var(--fd-navy, var(--ink));
  color: var(--on-accent);
  box-shadow: 0 0 0 3px var(--fd-gold, var(--gold));
}
.pp-player-page .pp-path-step.is-done:not(:last-child)::after {
  height: 4px;
  background: var(--fd-navy, var(--ink));
}
.pp-player-page .pp-path-step.is-later:not(:last-child)::after,
.pp-player-page .pp-path-step.is-now:not(:last-child)::after {
  height: 0;
  background: transparent;
  border-top: 2px solid var(--fd-navy, var(--ink));
}
.pp-player-page .pp-path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 32px;
  left: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 2px;
  background: var(--fd-navy, var(--navy));
}
.pp-player-page .pp-path-name { font-weight: 800; overflow-wrap: anywhere; }
.pp-player-page .pp-path-here {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
}
.pp-player-page .pp-path-focus { margin: 14px 0 0; }
.pp-player-page .pp-path-place { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.pp-player-page .fd-body,
.pp-player-page .lp,
.pp-player-page .kit-tiles { min-width: 0; max-width: 100%; }
.pp-player-page .lp { max-height: none; overflow: visible; }
@media (max-width: 390px) {
  .pp-player-page .fd-hero { padding: 14px 16px; gap: 12px; }
  .pp-player-page .fd-hero h1 { font-size: 1.65rem; }
  .pp-player-page .pp-logo,
  .pp-player-page .pp-mono { width: 46px; height: 46px; }
  .pp-player-page .kit-tiles { grid-template-columns: 1fr; }
  .pp-player-page .kit-irow { flex-wrap: wrap; }
  .pp-player-page .pp-path-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .pp-player-page .pp-path-step {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 0 0 18px;
  }
  .pp-player-page .pp-path-step:not(:last-child)::after {
    top: 64px;
    left: 31px;
    width: 2px;
    height: 18px;
    border-top: 0;
  }
  .pp-player-page .pp-path-step.is-done:not(:last-child)::after {
    width: 4px;
    height: 18px;
    background: var(--fd-navy, var(--ink));
    border: 0;
  }
  .pp-player-page .pp-path-step.is-later:not(:last-child)::after,
  .pp-player-page .pp-path-step.is-now:not(:last-child)::after {
    width: 0;
    height: 18px;
    background: transparent;
    border-top: 0;
    border-left: 2px solid var(--fd-navy, var(--ink));
  }
}
@media (prefers-reduced-motion: reduce) {
  .pp-player-page .fd-hero,
  .pp-player-page .fd-hero::after,
  .pp-player-page .pp-path,
  .pp-player-page .pp-path-step,
  .pp-player-page .pp-path-age {
    animation: none;
    transition: none;
  }
}

/* Ask confirm: the note under Save map, and the record panel on a journey. */
.askConfirmNote { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.askConfirmNote p { margin: 0 0 4px; }
.askRecordLinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.askRecordLinks a { color: var(--brand); }
.askRecords { margin: 8px 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); scroll-margin-top: 72px; }
.askRecordHeading { margin: 0 0 8px; font-size: 20px; scroll-margin-top: 72px; }
.askRecordHeading:focus { outline: 2px solid var(--brand); outline-offset: 3px; }
.askRecordList { margin: 0; padding-left: 18px; }
.askRecordList li { overflow-wrap: anywhere; }
.askRecordTotals { margin: 8px 0 0; }
@media (max-width: 420px) {
  .askRecords { max-width: 100%; }
  .askRecordLinks a { padding: 8px 0; }
}
.askMissing { padding: 28px 22px; }
.askMissingActs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jnAskFoot { margin-top: 24px; }

/* Learn playlist: a video block for every skill (learn-videos.js, Peter 4 Dec 2026). */
.lp-vhead { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.lp-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; min-width: 0; }
.lp-vlesson { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.lp-vlesson.is-next { border-color: var(--door-player); box-shadow: 0 0 0 2px color-mix(in srgb, var(--door-player) 25%, transparent); }
.lp-vlesson.is-done { background: color-mix(in srgb, var(--done) 8%, var(--card)); }
.lp-vlesson .kit-vids { display: block; }
.lp-vlesson .kit-vid { border: 0; border-radius: 0; }
.lp-vlesson .kit-vthumb { aspect-ratio: 16 / 9; }
.lp-vlesson .kit-vs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-vnum { position: absolute; top: 8px; left: 8px; z-index: 1; width: 26px; height: 26px; font-size: 12px; background: var(--card); }
.lp-vlesson.is-done .lp-vnum { background: var(--door-player); border-color: var(--door-player); color: var(--on-accent); }
.lp-vlesson.is-next .lp-vnum { border-color: var(--door-player); }
.lp-vopen { margin-top: auto; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 11px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; text-align: left; cursor: pointer; }
.lp-vopen:hover { background: var(--surface-2); }
.lp-vname { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lp-vstate { flex: none; font-size: 12px; color: var(--muted); }
.lp-vlesson.is-next .lp-vstate { color: var(--door-player); }
.lp-vopen[aria-expanded="true"] .lp-chev svg { transform: rotate(90deg); }
.lp-vpanel { padding: 4px 11px 11px; }
@media (max-width: 760px) {
  .lp-vgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 360px) {
  .lp-vgrid { grid-template-columns: 1fr; }
}
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Coach: a player's progress, opened from the Assessment Sheet list (door-pages playerDrill). */
.pp-drill { border-top: 1px solid var(--line); min-width: 0; }
.pp-drill:first-child { border-top: 0; }
.pp-drill > summary { list-style: none; cursor: pointer; border-radius: var(--r-md); }
.pp-drill > summary::-webkit-details-marker { display: none; }
.pp-drill > summary:hover { background: var(--surface-2); }
.pp-drill > summary .pp-row { border-top: 0; }
.pp-drill > summary .kit-right { display: flex; align-items: center; gap: 6px; }
.pp-drill-chev { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--muted); }
.pp-drill-chev svg { width: 16px; height: 16px; transition: transform .15s; }
.pp-drill[open] .pp-drill-chev svg { transform: rotate(90deg); }
.pp-drill-body { padding: 4px 4px 16px; min-width: 0; }
.pp-drill-body .kit-tiles { margin-bottom: 12px; }
.pp-drill-form { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.pp-drill-form h4 { margin: 0 0 10px; font-size: 16px; }
.pp-drill-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.pp-drill-saved { margin: 8px 0 0; font-weight: 700; color: var(--done); }

/* Sponsor: Your promo page (sponsor-promo.js). */
.sp-promo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
.sp-promo-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 15px; font-weight: 700; min-width: 0; }
.sp-promo-field input, .sp-promo-field textarea { font: inherit; font-weight: 400; font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border-2, var(--line)); border-radius: var(--r-md); background: var(--card); color: var(--ink); width: 100%; box-sizing: border-box; }
.sp-promo-field small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.sp-promo-err { font-style: normal; font-weight: 700; font-size: 13px; color: var(--danger); }
.sp-promo-note { min-height: 1.2em; margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: var(--done); }
.sp-promo-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sp-promo { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.sp-promo-pic { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--door-sponsor) 14%, var(--surface-2)); display: grid; place-items: center; color: var(--door-sponsor); }
.sp-promo-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-promo-pic.is-empty svg { width: 40px; height: 40px; }
.sp-promo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sp-promo-by { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--door-sponsor); }
.sp-promo-title { margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.sp-promo-text { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.sp-promo-cta { margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 760px) { .sp-promo-wrap { grid-template-columns: 1fr; } }

/* The hat's term / Blue Card line under the greeting (no lone box; Peter 4 Dec 2026). */
.hat-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 14px; font-size: 13.5px; color: var(--muted); }
.hat-line .hat-term { margin: 0; }

/* Empty roles: the rest behind "N more roles" (door-pages.js moreRolesHtml). */
.pp-roles-more { margin-top: 8px; }
.pp-roles-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--brand); }
