/* ============================================================
   OPENTAKEOFF ACADEMY — shared stylesheet
   "The Jobsite": one cohesive golden-hour construction-site scene.
   Ported + extended from the design mockup. All imagery inline SVG.
   Data-driven pages: index (leaderboard), cert (verifiable cred),
   how-to-enter (protocol flow).
   ============================================================ */
:root {
  color-scheme: light;

  /* sky / atmosphere */
  --sky-1: #a9def8;
  --sky-2: #cfeaf6;
  --sky-3: #ffe6b8;
  --sky-4: #ffcf87;

  /* construction accents */
  --hi: #ffd21e;          /* safety yellow */
  --hi-lite: #ffe05a;
  --hi-deep: #f2b100;
  --orange: #ff7a1a;      /* construction orange */
  --orange-deep: #e85d04;
  --hazard: #191510;      /* warm near-black */

  /* blueprint */
  --blueprint: #123a5e;
  --blueprint-2: #0e2f4d;
  --bp-line: rgba(139, 197, 236, 0.16);
  --bp-ink: #e9f4ff;
  --bp-2: #a8cbe6;
  --bp-3: #6f92b0;
  --cyan: #1f9dd6;
  --cyan-lite: #6cc6ee;

  /* concrete / paper */
  --concrete: #c8ced4;
  --concrete-deep: #98a1ab;
  --paper: #f7f2e4;
  --paper-2: #efe8d4;
  --ink: #211c12;
  --ink-2: #5f5747;
  --ink-3: #8c8472;
  --rule: rgba(33, 28, 18, 0.16);

  /* semantic — separate from accents */
  --pass-d: #1e7a45; --pass-l: #5fd08a;
  --fail-d: #c23a28; --fail-l: #ff6f5b;
  --warn-d: #a9740f; --warn-l: #ffc24d;

  /* certificate seal */
  --seal-gold: #e8b64a;
  --seal-gold-deep: #a9761c;
  --seal-face: #fbf6e8;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ================= BASE ================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: #cfe6f2;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-size: inherit; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: #0f4c74; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ================= FIXED SITE SCENE ================= */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 74%, var(--sky-4) 100%);
}
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-haze {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 80% at 50% 8%, rgba(255, 255, 255, 0.25), transparent 46%),
    radial-gradient(120% 95% at 50% 100%, rgba(25, 21, 16, 0.14), transparent 60%);
}

/* clouds / dust / crane / dozer motion */
.cloud { animation: drift 46s ease-in-out infinite alternate; }
.cloud.c2 { animation-duration: 62s; animation-delay: -14s; }
.cloud.c3 { animation-duration: 54s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(34px); } }
.swing { transform-box: fill-box; transform-origin: 50% 2%; animation: sway 6.5s ease-in-out infinite; }
.swing.s2 { animation-duration: 8s; animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.digarm { transform-box: fill-box; transform-origin: 12% 82%; animation: dig 4.2s ease-in-out infinite; }
@keyframes dig { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(-7deg); } 70% { transform: rotate(2deg); } }
.puff { transform-box: fill-box; transform-origin: 50% 100%; animation: puff 3.6s ease-out infinite; }
.puff.p2 { animation-delay: 1.2s; }
.puff.p3 { animation-delay: 2.4s; }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 30% { opacity: 0.7; } 100% { opacity: 0; transform: translate(14px, -34px) scale(1.5); } }

/* ================= LAYOUT SHELL ================= */
.rack {
  position: relative;
  z-index: 1;
  max-width: 1064px;
  margin: 0 auto;
  padding: 18px 16px 26px;
  display: grid;
  gap: 22px;
}

/* ================= SITE BOARD (signage panel) ================= */
.board {
  position: relative;
  border-radius: 10px;
  background: rgba(247, 242, 228, 0.97);
  border: 1px solid var(--rule);
  box-shadow: 0 3px 0 rgba(33, 28, 18, 0.22), 0 20px 44px rgba(18, 40, 66, 0.26);
  overflow: hidden;
}
.board-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: var(--hazard);
  border-bottom: 3px solid var(--hazard);
  background:
    radial-gradient(circle at 11px 50%, rgba(25, 21, 16, 0.42) 2.2px, transparent 3.4px),
    radial-gradient(circle at calc(100% - 11px) 50%, rgba(25, 21, 16, 0.42) 2.2px, transparent 3.4px),
    linear-gradient(180deg, var(--hi-lite), var(--hi));
}
.board-hd .hd-ico { flex: 0 0 auto; width: 17px; height: 17px; display: block; }
.board-hd .hd-title {
  font-family: var(--sans); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-hd .hd-tag {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: var(--hazard); color: var(--hi);
}
.board-bd { padding: 18px; }

.hazbar { height: 9px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 15px, var(--hi) 15px 30px); }

.bp {
  position: relative;
  border-radius: 7px;
  color: var(--bp-ink);
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid rgba(139, 197, 236, 0.32);
  box-shadow: inset 0 0 40px rgba(4, 16, 30, 0.55);
}

/* ================= SITE NAV (top directory) ================= */
.sitenav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 12px;
}
.sitenav .nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 900; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hazard);
  text-decoration: none;
}
.sitenav .nav-brand svg { width: 22px; height: 22px; display: block; }
.sitenav .nav-links { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 2px; }
.sitenav .nav-links a {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #0f4c74;
  text-decoration: none; padding: 6px 10px; border-radius: 4px;
  border: 1.5px solid transparent;
}
.sitenav .nav-links a:hover { border-color: var(--rule); background: rgba(255, 255, 255, 0.6); }
.sitenav .nav-links a[aria-current="page"] { color: var(--hazard); background: var(--hi); border-color: var(--hazard); }

/* ================= TOP: SITE ANNOUNCEMENTS + COUNTER ================= */
.topbar { display: grid; gap: 12px; }
.signboard {
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid var(--hazard);
  background: #0c1712;
  box-shadow: 0 3px 0 rgba(33, 28, 18, 0.3), inset 0 0 26px rgba(0, 0, 0, 0.7);
  padding: 7px 0;
}
.marquee-inner {
  display: inline-block; white-space: nowrap; width: max-content;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #ffcf6b;
  text-shadow: 0 0 8px rgba(255, 178, 46, 0.55);
  animation: crawl 32s linear infinite;
}
.marquee-inner .hot { color: var(--orange); text-shadow: 0 0 8px rgba(255, 122, 26, 0.55); }
.marquee-inner .sep { color: #7a5a1e; padding: 0 2px; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 10px 14px;
}
.odometer { display: flex; align-items: center; gap: 9px; }
.odometer .od-label {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 700;
}
.led { display: inline-flex; gap: 2px; }
.led b {
  font-family: var(--mono); font-weight: 700; font-size: 0.92rem;
  color: var(--hi); background: var(--hazard);
  border-radius: 2px; padding: 3px 5px; min-width: 16px; text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.led b.sep { color: var(--ink-3); background: transparent; box-shadow: none; padding: 3px 1px; }
.tack {
  font-family: var(--mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.tack.new { color: var(--hazard); background: var(--hi); border: 1.5px solid var(--hazard); animation: blink 1.5s steps(1) infinite; }
.tack.recert { color: var(--paper); background: var(--orange-deep); }
.tack.build { color: #0f4c74; background: rgba(31, 157, 214, 0.12); border: 1.5px solid #0f4c74; }
@keyframes blink { 0%, 62% { opacity: 1; } 63%, 100% { opacity: 0.42; } }
.site-strip .spacer { flex: 1 1 auto; }
.site-strip .demo-tag {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--warn-d); font-weight: 700;
}

/* ================= HERO / DECK ================= */
.deck-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.deck-mark {
  width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--hi-lite), var(--hi-deep));
  border: 2px solid var(--hazard);
  box-shadow: 0 3px 0 rgba(33, 28, 18, 0.28);
}
.deck-mark svg { width: 38px; height: 38px; display: block; }
.deck-name { flex: 1 1 240px; min-width: 0; }
.deck-name h1 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--hazard);
}
.deck-name .tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange-deep); font-weight: 700; margin-top: 6px;
}
.deck-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.deck-methods {
  font-size: 0.92rem; color: var(--ink-2); max-width: 76ch; line-height: 1.55;
  margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--hi-deep);
}
.deck-methods b { color: var(--ink); font-weight: 700; }
.chip {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 4px; white-space: nowrap;
}
.chip-mock { color: var(--hazard); background: var(--hi); border: 1.5px solid var(--hazard); }
.chip-week { color: var(--ink); border: 1.5px solid var(--rule); background: rgba(255, 255, 255, 0.5); }

.lcd-main {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(160px, 1.15fr) minmax(160px, auto);
  min-height: 120px;
}
@media (max-width: 760px) { .lcd-main { grid-template-columns: 1fr; } }
.lcd-cell { padding: 15px 17px; border-right: 1px solid rgba(139, 197, 236, 0.22); min-width: 0; }
.lcd-cell:last-child { border-right: none; }
@media (max-width: 760px) {
  .lcd-cell { border-right: none; border-bottom: 1px solid rgba(139, 197, 236, 0.22); }
  .lcd-cell:last-child { border-bottom: none; }
}
.lcd-label {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bp-3); margin-bottom: 7px; font-weight: 700;
}
.lcd-big {
  font-family: var(--mono); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700;
  color: var(--hi); line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255, 210, 30, 0.35);
}
.lcd-big .unit { font-size: 0.55em; }
.lcd-sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--pass-l); margin-top: 9px; font-weight: 700; }
.lcd-sub.fail { color: var(--fail-l); }

.vz { display: flex; align-items: flex-end; gap: 3px; height: 78px; margin-top: 6px; }
.vz i {
  flex: 1 1 0; min-width: 3px; display: block; border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--pass-l) 0%, var(--hi) 44%, var(--cyan-lite) 100%);
  transform-origin: bottom;
  animation: meter 1.1s ease-in-out infinite alternate;
}
.vz i:nth-child(6n+1) { height: 34%; animation-duration: .9s; }
.vz i:nth-child(6n+2) { height: 62%; animation-duration: 1.3s; animation-delay: .12s; }
.vz i:nth-child(6n+3) { height: 88%; animation-duration: .8s; animation-delay: .24s; }
.vz i:nth-child(6n+4) { height: 51%; animation-duration: 1.15s; animation-delay: .06s; }
.vz i:nth-child(6n+5) { height: 74%; animation-duration: .95s; animation-delay: .3s; }
.vz i:nth-child(6n+6) { height: 42%; animation-duration: 1.25s; animation-delay: .18s; }
@keyframes meter { from { transform: scaleY(.28); } to { transform: scaleY(1); } }

.tele { display: grid; gap: 7px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tele-row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.72rem; letter-spacing: 0.06em; }
.tele-row .k { color: var(--bp-3); text-transform: uppercase; font-size: 0.58rem; letter-spacing: 0.14em; padding-top: 2px; font-weight: 700; }
.tele-row .v { color: var(--bp-2); font-weight: 700; }
.tele-row .v.amber { color: var(--hi); }
.tele-row .v.green { color: var(--pass-l); }

.deck-marquee { margin-top: 14px; overflow: hidden; padding: 8px 12px; border-radius: 6px; }
.deck-marquee .marquee-inner { color: var(--pass-l); text-shadow: none; letter-spacing: 0.16em; animation-duration: 27s; }

.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid var(--rule); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(33, 28, 18, 0.16);
  transition: background .14s ease, box-shadow .14s ease, transform .14s ease;
  text-decoration: none;
}
.t-btn:hover { background: #fff; transform: translateY(-1px); }
.t-btn:active { transform: translateY(1px); box-shadow: none; }
.t-btn[aria-pressed="true"] { background: var(--hazard); color: var(--hi); border-color: var(--hazard); }
.ico { display: inline-block; width: 0; height: 0; }
.ico-play { border-left: 9px solid var(--pass-d); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.t-btn[aria-pressed="true"] .ico-play { border-left-color: var(--pass-l); }
.ico-pause { width: 9px; height: 11px; border-left: 3px solid var(--warn-d); border-right: 3px solid var(--warn-d); }
.ico-reset { width: 11px; height: 11px; border-left: 3px solid var(--cyan); position: relative; }
.ico-reset::after { content: ""; position: absolute; left: 1px; top: 0; width: 0; height: 0;
  border-right: 8px solid var(--cyan); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.t-btn.print {
  margin-left: auto; color: var(--hazard);
  background: linear-gradient(180deg, var(--hi-lite), var(--hi-deep));
  border-color: var(--hazard);
}
.t-btn.print:hover { background: linear-gradient(180deg, var(--hi), var(--hi-deep)); }
.t-btn.print .ico-print { width: 11px; height: 10px; border: 2px solid var(--hazard); border-radius: 1px; }
.t-status { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--ink-2); text-transform: uppercase; font-weight: 700; }

/* ================= CTA (Enter the Academy) ================= */
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 20px 20px;
  background:
    repeating-linear-gradient(-45deg, rgba(25,21,16,0.05) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,246,214,0.6));
}
.cta-copy { flex: 1 1 320px; min-width: 0; }
.cta-copy h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(1.2rem, 3.4vw, 1.7rem); color: var(--hazard); letter-spacing: 0.01em; }
.cta-copy p { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  font-family: var(--mono); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--hazard);
  background: linear-gradient(180deg, var(--hi-lite), var(--hi-deep));
  padding: 15px 26px; border-radius: 8px; border: 2.5px solid var(--hazard);
  box-shadow: 0 4px 0 rgba(33, 28, 18, 0.32);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(33, 28, 18, 0.32); }
.cta-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(33, 28, 18, 0.32); }
.cta-btn .arrow { font-size: 1.1em; }
.selftest-cta .free-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ================= DUO ================= */
.duo { display: grid; gap: 22px; }
@media (min-width: 960px) { .duo { grid-template-columns: 3fr 2fr; align-items: start; } }

/* ================= TRIAL VIEWPORT (blueprint) ================= */
.viewport-screen svg { display: block; width: 100%; height: auto; border-radius: 5px; max-width: 100%; }
.viewport-note {
  margin-top: 12px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 700;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.viewport-note .swatch { display: inline-block; width: 20px; height: 8px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.viewport-note .warn { color: var(--warn-d); }

/* ================= COMPETENCY BOARD (data-driven meters) ================= */
.comp-board { display: grid; gap: 4px; padding: 14px 16px; }
.comp-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding: 9px 0; border-bottom: 1px solid rgba(139, 197, 236, 0.12); }
.comp-row:last-child { border-bottom: none; }
.comp-name { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bp-2); font-weight: 700; }
.comp-name small { display: block; color: var(--bp-3); font-size: 0.9em; letter-spacing: 0.02em; margin-top: 2px; }
.comp-tierchip { justify-self: end; }
.comp-bar { grid-column: 1 / -1; height: 9px; border-radius: 5px; background: rgba(4,16,30,0.5); overflow: hidden; border: 1px solid rgba(139,197,236,0.3); }
.comp-bar > i { display: block; height: 100%; border-radius: 5px 0 0 5px; }
.comp-bar > i.b-apprentice { background: repeating-linear-gradient(90deg, var(--orange) 0 6px, rgba(255,122,26,0.55) 6px 10px); }
.comp-bar > i.b-journeyman { background: linear-gradient(90deg, var(--cyan), var(--cyan-lite)); }
.comp-bar > i.b-master { background: linear-gradient(90deg, var(--hi-deep), var(--hi-lite)); }
.comp-bar > i.b-bar { background: repeating-linear-gradient(90deg, var(--hi) 0 6px, rgba(255,210,30,0.5) 6px 10px); }
.comp-empty { font-family: var(--mono); font-size: 0.62rem; color: var(--bp-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 24px 0; text-align: center; }
.comp-note { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: 12px; line-height: 1.8; font-weight: 700; }

/* ================= ORIENTATION / TIER LADDER ================= */
.orient-lede { font-size: 1rem; max-width: 68ch; color: var(--ink); }
.orient-lede strong { color: var(--orange-deep); font-weight: 800; }
.orient-lede em { color: var(--hazard); font-style: normal; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; margin-top: 18px; }
.tier-card { padding: 16px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(255, 255, 255, 0.6); position: relative; overflow: hidden; }
.tier-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.tier-card.apprentice::before { background: var(--orange); }
.tier-card.journeyman::before { background: var(--cyan); }
.tier-card.master::before { background: var(--hi-deep); }
.tier-card .rung { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 8px; font-weight: 700; }
.tier-card .leds { display: flex; gap: 6px; margin-bottom: 11px; }
.tier-card .leds i { width: 13px; height: 13px; border-radius: 50%; background: #d9d2bf; border: 1px solid var(--rule); box-shadow: inset 0 1px 1px rgba(0,0,0,.12); }
.tier-card.apprentice .leds i:nth-child(1) { background: var(--orange); border-color: var(--orange-deep); }
.tier-card.journeyman .leds i:nth-child(-n+2) { background: var(--cyan); border-color: #0f6b96; }
.tier-card.master .leds i { background: var(--hi); border-color: var(--hi-deep); }
.tier-card h3 { font-family: var(--sans); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 7px; }
.tier-card.apprentice h3 { color: var(--orange-deep); }
.tier-card.journeyman h3 { color: #0f6b96; }
.tier-card.master h3 { color: var(--hi-deep); }
.tier-card p { font-size: 0.86rem; color: var(--ink-2); }
.tier-crit { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; line-height: 1.55; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--rule); }
.tier-crit b { color: var(--hazard); }

/* ================= CERT WALL (work permits) ================= */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 15px; }
.permit {
  position: relative; border-radius: 7px; overflow: hidden;
  background: #fdfaf0;
  border: 1px solid var(--rule);
  box-shadow: 0 3px 0 rgba(33, 28, 18, 0.16), 0 10px 22px rgba(18, 40, 66, 0.18);
  transition: transform .14s ease, box-shadow .14s ease;
  text-decoration: none; color: inherit; display: block;
}
a.permit:hover { transform: translateY(-3px); box-shadow: 0 5px 0 rgba(33, 28, 18, 0.16), 0 16px 30px rgba(18, 40, 66, 0.24); }
.permit-tab { height: 8px; }
.permit.j .permit-tab { background: var(--cyan); }
.permit.m .permit-tab { background: repeating-linear-gradient(-45deg, var(--hi-deep) 0 8px, var(--hi) 8px 16px); }
.permit.a .permit-tab { background: repeating-linear-gradient(-45deg, var(--hazard) 0 8px, var(--hi) 8px 16px); }
.permit-bd { padding: 13px 14px; }
.permit .t-comp { font-family: var(--sans); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; color: var(--hazard); }
.permit .t-holder { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; color: #0f4c74; margin-top: 5px; letter-spacing: 0.04em; }
.permit .t-stat { font-family: var(--mono); font-size: 0.58rem; color: var(--ink-2); margin-top: 8px; letter-spacing: 0.02em; line-height: 1.5; }
.permit-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.tier-chip { font-family: var(--mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.tier-chip.c-a { color: var(--orange-deep); border: 1.5px dashed var(--orange); }
.tier-chip.c-j { color: var(--paper); background: var(--cyan); }
.tier-chip.c-m { color: var(--hazard); background: linear-gradient(135deg, var(--hi-deep), var(--hi-lite), var(--hi-deep)); }
.tier-chip.c-bar { color: var(--hazard); background: var(--hi); border: 1.5px solid var(--hazard); }
.permit-foot .t-exp { font-family: var(--mono); font-size: 0.53rem; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; font-weight: 700; }
.permit .new-flag {
  position: absolute; top: 10px; right: -30px; transform: rotate(38deg);
  font-family: var(--mono); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.16em;
  background: var(--orange-deep); color: #fff; padding: 3px 34px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); animation: blink 1.5s steps(1) infinite; z-index: 2;
}

/* ================= ATTESTATION MARK (certified vs self-reported) ================= */
.att {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.53rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px 3px 6px; border-radius: 3px; white-space: nowrap;
}
.att .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.att.att-certified { color: var(--pass-d); background: rgba(30, 122, 69, 0.12); border: 1.5px solid var(--pass-d); }
.att.att-certified .dot { background: var(--pass-d); box-shadow: 0 0 0 2px rgba(30,122,69,0.25); }
.att.att-self { color: var(--warn-d); background: rgba(169, 116, 15, 0.1); border: 1.5px dashed var(--warn-d); }
.att.att-self .dot { background: repeating-linear-gradient(-45deg, var(--warn-d) 0 2px, transparent 2px 4px); }

/* ================= CREW ROSTER ================= */
.roster-scroll { overflow-x: auto; border-radius: 7px; }
.roster { padding: 4px 0; min-width: 860px; }
table.crew { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
table.crew th { text-align: left; padding: 8px 12px; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bp-3); border-bottom: 1px solid rgba(139, 197, 236, 0.3); white-space: nowrap; font-weight: 700; }
table.crew td { padding: 8px 12px; white-space: nowrap; color: var(--bp-2); border-bottom: 1px solid rgba(139, 197, 236, 0.1); }
table.crew tbody tr:nth-child(even):not(.human) td { background: rgba(139, 197, 236, 0.05); }
table.crew th.num, table.crew td.num { text-align: right; }
td.idx { color: var(--bp-3); }
.crew-name { font-weight: 700; letter-spacing: 0.02em; color: var(--bp-ink); }
.crew-role { color: var(--bp-3); font-size: 0.58rem; display: block; letter-spacing: 0.02em; }
table.crew a.crew-name { text-decoration: none; }
table.crew a.crew-name:hover { text-decoration: underline; text-decoration-color: var(--hi); }
table.crew tr.human td { background: rgba(255, 210, 30, 0.16); color: var(--hi); border-bottom-color: rgba(255, 210, 30, 0.3); }
table.crew tr.human td .crew-name { color: var(--hi); }
table.crew tr.human td .crew-role { color: rgba(255, 210, 30, 0.75); }
.tl { font-weight: 800; letter-spacing: 0.04em; }
.tl-a { color: var(--orange); }
.tl-j { color: var(--cyan-lite); }
.tl-m { color: var(--hi); }
.tl-r { color: var(--fail-l); text-decoration: line-through; }
.tl-none { color: var(--bp-3); }
.tl-bar { color: var(--hi); }
.d-up { color: var(--pass-l); font-weight: 800; }
.d-down { color: var(--fail-l); font-weight: 800; }
.d-flat { color: var(--bp-3); }
.d-new { color: var(--hi); font-weight: 800; }
.roster-foot {
  display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between;
  padding: 10px 12px 2px; margin-top: 4px; border-top: 1px solid rgba(139, 197, 236, 0.2);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-3); font-weight: 700;
}
.roster-foot .hot { color: var(--fail-l); }
.crew-legend { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-top: 12px; line-height: 1.9; font-weight: 700; }

/* ================= WEEKLY REVIEW ================= */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(242px, 1fr)); gap: 15px; }
.review-card { padding: 16px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(255, 255, 255, 0.62); }
.review-card .rc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.review-card .rc-led { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.review-card.promo .rc-led { background: var(--pass-d); }
.review-card.revoke .rc-led { background: var(--fail-d); }
.review-card.eow .rc-led { background: var(--hi-deep); }
.review-card .rc-label { font-family: var(--mono); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.review-card.promo .rc-label { color: var(--pass-d); }
.review-card.revoke .rc-label { color: var(--fail-d); }
.review-card.eow .rc-label { color: var(--hi-deep); }
.review-card h3 { font-size: 0.94rem; font-weight: 800; color: var(--hazard); margin-bottom: 6px; }
.review-card p { font-size: 0.84rem; color: var(--ink-2); }
.review-card .rc-stat { font-family: var(--mono); font-size: 0.62rem; margin-top: 10px; color: #0f4c74; letter-spacing: 0.02em; font-weight: 700; }
.trainer-note {
  margin-top: 18px; font-family: var(--sans); font-style: italic; font-size: 0.98rem; color: var(--ink);
  border-left: 5px solid var(--hi); padding: 6px 0 6px 16px; max-width: 72ch;
}
.trainer-note .who { font-family: var(--mono); font-style: normal; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 7px; font-weight: 700; }

/* ================= CERTIFICATE (paper credential) ================= */
.printer-slot {
  height: 12px; margin: 0 30px 20px; border-radius: 6px;
  background: linear-gradient(180deg, #2a251a, #100d08);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}
.hero-cert-wrap { display: flex; justify-content: center; padding: 0 4px; }
.hero-cert {
  position: relative; width: 100%; max-width: 740px; padding: 4px; border-radius: 6px;
  background: linear-gradient(135deg, var(--seal-gold-deep), var(--seal-gold), var(--seal-gold-deep));
  box-shadow: 0 14px 34px rgba(18, 40, 66, 0.3);
}
.hero-cert.self { background: linear-gradient(135deg, #8a7130, #c9a75a, #8a7130); }
.cert-inner {
  border-radius: 3px;
  padding: clamp(24px, 4.6vw, 46px) clamp(18px, 4.6vw, 50px) clamp(22px, 3.6vw, 38px);
  text-align: center;
  background: #fbf7ec;
  border: 1px solid rgba(169, 118, 28, 0.4);
  outline: 2px solid #fbf7ec;
  outline-offset: -8px;
  box-shadow: inset 0 0 0 3px rgba(169, 118, 28, 0.25);
  color: #2a2519;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(31, 157, 214, 0.06), transparent 55%);
}
.hero-cert.self .cert-inner {
  background-image:
    repeating-linear-gradient(-45deg, rgba(169,116,15,0.05) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 50% -10%, rgba(169, 116, 15, 0.06), transparent 55%);
}
.cert-academy { font-family: var(--sans); font-size: clamp(1.1rem, 3vw, 1.55rem); font-weight: 900; letter-spacing: 0.14em; color: var(--hazard); }
.cert-office { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin-top: 7px; font-weight: 700; }
.cert-attline { margin-top: 12px; }
.cert-divider { display: flex; align-items: center; gap: 12px; margin: 20px auto 18px; max-width: 400px; color: var(--seal-gold-deep); }
.cert-divider::before, .cert-divider::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--seal-gold-deep), transparent); }
.cert-divider span { font-size: 0.9rem; letter-spacing: 0.3em; }
.cert-certifies { font-family: var(--sans); font-style: italic; font-size: 1.02rem; color: var(--ink-2); }
.cert-name { font-family: var(--sans); font-size: clamp(1.9rem, 5.6vw, 2.7rem); font-weight: 900; color: var(--hazard); margin: 8px 0 4px; line-height: 1.15; text-wrap: balance; }
.cert-qualified { font-family: var(--sans); font-style: italic; font-size: 1rem; color: var(--ink-2); margin-top: 6px; }
.cert-comp { font-family: var(--sans); font-size: clamp(1.15rem, 3.8vw, 1.55rem); font-weight: 900; letter-spacing: 0.06em; color: #0f4c74; margin: 10px 0 14px; }
.cert-tier-banner {
  display: inline-block; font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--hazard);
  background: linear-gradient(180deg, var(--hi-lite), var(--hi));
  padding: 8px 26px; border-radius: 4px; border: 2px solid var(--hazard);
}
.cert-terms { font-family: var(--sans); font-style: italic; font-size: 0.92rem; color: var(--ink-2); max-width: 56ch; margin: 20px auto 0; line-height: 1.65; }
.cert-valid { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: #0f4c74; margin-top: 16px; text-transform: uppercase; font-weight: 700; }
.cert-footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 30px; text-align: left; }
.cert-sig { flex: 1 1 190px; min-width: 170px; }
.sig-script { font-family: "Segoe Script", "Snell Roundhand", cursive, var(--sans); font-style: italic; font-weight: 600; font-size: 1.4rem; color: #123a5e; transform: rotate(-2deg); display: inline-block; margin-bottom: 2px; }
.sig-line { border-top: 1.5px solid var(--hazard); padding-top: 6px; }
.sig-line .sig-name { font-size: 0.84rem; font-weight: 700; color: var(--hazard); }
.sig-line .sig-role { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.cert-seal-block { flex: 0 0 auto; text-align: center; margin: 0 auto; }
.cert-seal-block svg { display: block; width: 122px; height: 122px; margin: 0 auto; }
.seal-ribbons { display: flex; justify-content: center; gap: 6px; margin-top: -12px; }
.seal-ribbons i { width: 15px; height: 32px; display: block; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.seal-ribbons i:first-child { background: var(--hi-deep); transform: rotate(8deg); }
.seal-ribbons i:last-child { background: var(--cyan); transform: rotate(-8deg); }
.cert-no { flex: 1 1 150px; text-align: right; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; line-height: 1.9; font-weight: 700; }
@media (max-width: 560px) { .cert-footer { justify-content: center; text-align: center; } .cert-sig, .cert-no { text-align: center; } }
.print-hint { text-align: center; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; font-weight: 700; }

/* ================= VERIFY PANEL (cert page) ================= */
.verify-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .verify-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.vpanel { padding: 16px 18px; }
.vrow { display: grid; grid-template-columns: 128px 1fr; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid rgba(139,197,236,0.12); font-family: var(--mono); }
.vrow:last-child { border-bottom: none; }
.vrow .vk { font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bp-3); font-weight: 700; padding-top: 2px; }
.vrow .vv { font-size: 0.72rem; color: var(--bp-ink); font-weight: 700; word-break: break-word; overflow-wrap: anywhere; }
.vrow .vv.pass { color: var(--pass-l); }
.vrow .vv.amber { color: var(--hi); }
.vrow .vv.mono-hash { font-size: 0.64rem; color: var(--cyan-lite); }
.vrow .vv a { color: var(--cyan-lite); text-decoration: underline; text-underline-offset: 3px; }
.vrow .vv a:hover { color: var(--bp-ink); }
.comp-note a { color: var(--cyan-lite); text-decoration: underline; text-underline-offset: 2px; }
.vstatus {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px; margin-bottom: 4px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.vstatus.ok { color: var(--pass-l); background: rgba(30,122,69,0.16); border: 1px solid rgba(95,208,138,0.4); }
.vstatus.self { color: var(--hi); background: rgba(169,116,15,0.16); border: 1px dashed rgba(255,210,30,0.5); }
.vstatus .vico { width: 20px; height: 20px; flex: 0 0 auto; }

/* score vs baseline bars */
.scorebars { display: grid; gap: 14px; padding: 4px 0 2px; }
.scorebar .sb-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-3); font-weight: 700; margin-bottom: 6px; }
.scorebar .sb-top .sb-val { color: var(--bp-ink); }
.sb-track { position: relative; height: 16px; border-radius: 8px; background: rgba(4,16,30,0.5); border: 1px solid rgba(139,197,236,0.3); overflow: hidden; }
.sb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px 0 0 8px; }
.sb-fill.model { background: linear-gradient(90deg, var(--pass-d), var(--pass-l)); }
/* certified but above the human bar (e.g. a journeyman): construction-amber,
   an achievement short of Master — not a failure. */
.sb-fill.model.over { background: linear-gradient(90deg, var(--warn-d), var(--hi)); }
.sb-fill.base { background: repeating-linear-gradient(90deg, var(--hi) 0 6px, rgba(255,210,30,0.4) 6px 10px); }
.sb-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--hi); }
.sb-marker::after { content: "BAR"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.5rem; color: var(--hi); font-weight: 800; letter-spacing: 0.1em; }

/* ================= EMBED SNIPPETS ================= */
.embed-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.embed-tab {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 5px; color: var(--ink); background: rgba(255,255,255,0.55);
  border: 1.5px solid var(--rule);
}
.embed-tab[aria-selected="true"] { color: var(--hazard); background: var(--hi); border-color: var(--hazard); }
.embed-panel { display: none; }
.embed-panel.active { display: block; }
.embed-live { margin: 4px 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.embed-live img, .embed-live svg { max-width: 100%; height: auto; }
.codewrap { position: relative; }
.codewrap pre {
  margin: 0; overflow-x: auto; border-radius: 7px; padding: 14px 15px;
  background: var(--blueprint-2); color: var(--bp-2);
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.6;
  border: 1px solid rgba(139,197,236,0.3);
}
.codewrap pre code { white-space: pre; }
/* The verify command on a cert page — same blueprint slab as .codewrap, standalone. */
.verify-cmd {
  margin: 10px 0 0; overflow-x: auto; border-radius: 7px; padding: 12px 13px;
  background: var(--blueprint-2); color: var(--bp-2);
  font-family: var(--mono); font-size: 0.62rem; line-height: 1.7;
  border: 1px solid rgba(139,197,236,0.3);
}
.verify-cmd code { white-space: pre; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--mono); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; color: var(--hazard);
  background: linear-gradient(180deg, var(--hi-lite), var(--hi-deep)); border: 1.5px solid var(--hazard); cursor: pointer;
}
.copy-btn.copied { background: var(--pass-l); color: var(--hazard); }

/* not-found / error states */
.notice-block { text-align: center; padding: 40px 20px; }
.notice-block .nb-code { font-family: var(--mono); font-size: 3.4rem; font-weight: 800; color: var(--orange-deep); letter-spacing: 0.06em; }
.notice-block h2 { font-family: var(--sans); font-weight: 900; font-size: 1.4rem; color: var(--hazard); margin: 8px 0 10px; }
.notice-block p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 18px; }
.loading-block { text-align: center; padding: 40px 20px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

/* ================= HOW-TO-ENTER ================= */
.howto-lede { font-size: 1.02rem; color: var(--ink); max-width: 74ch; }
.howto-lede b { color: var(--hazard); font-weight: 800; }
.flow { display: grid; gap: 14px; counter-reset: step; }
.flow-step { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 15px 16px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(255,255,255,0.6); position: relative; }
.flow-step .step-no {
  counter-increment: step; grid-row: 1 / span 2;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(160deg, var(--hi-lite), var(--hi-deep)); border: 2px solid var(--hazard);
  font-family: var(--mono); font-weight: 800; font-size: 1.1rem; color: var(--hazard);
}
.flow-step .step-no::before { content: counter(step); }
.flow-step h3 { font-family: var(--sans); font-weight: 800; font-size: 0.98rem; color: var(--hazard); }
.flow-step p { font-size: 0.9rem; color: var(--ink-2); margin-top: 4px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.trust-card { padding: 18px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(255,255,255,0.62); position: relative; overflow: hidden; }
.trust-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.trust-card.certified::before { background: var(--pass-d); }
.trust-card.self::before { background: repeating-linear-gradient(180deg, var(--warn-d) 0 8px, transparent 8px 14px); }
.trust-card h3 { font-family: var(--sans); font-weight: 800; font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-card.certified h3 { color: var(--pass-d); }
.trust-card.self h3 { color: var(--warn-d); }
.trust-card p { font-size: 0.9rem; color: var(--ink-2); }
.trust-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--ink-2); }
.trust-card li { margin: 4px 0; }
.private-guarantee { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 4px; }
.pg-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 7px; background: rgba(30,122,69,0.08); border: 1px solid rgba(30,122,69,0.22); }
.pg-item .pg-ico { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.pg-item span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pass-d); font-weight: 700; line-height: 1.5; }
.leaves-box { margin-top: 14px; padding: 13px 15px; border-radius: 7px; background: rgba(169,116,15,0.1); border: 1px dashed rgba(169,116,15,0.4); }
.leaves-box b { color: var(--warn-d); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.leaves-box p { font-size: 0.88rem; color: var(--ink-2); margin-top: 5px; }

/* ================= STATUS FOOTER + PROVENANCE ================= */
footer.status { margin-top: 2px; display: grid; gap: 22px; }
.status-bar {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 16px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pass-l); font-weight: 700;
}
.status-bar .dim { color: var(--bp-3); }
.directory {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  padding: 12px 16px;
}
.directory .dir-nav {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.directory .dir-nav a {
  color: #0f4c74; text-decoration: none; padding: 5px 9px; border-radius: 4px;
  border: 1.5px solid transparent;
}
.directory .dir-nav a:hover { border-color: var(--rule); background: rgba(255, 255, 255, 0.6); }
.directory .dir-nav .bar { color: var(--ink-3); }
.directory .dir-name { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); font-weight: 700; }
.provenance { padding: 15px 18px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 12px 26px; }
.prov-grid > div { display: flex; flex-direction: column; gap: 3px; }
.prov-k { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.prov-v { font-family: var(--mono); font-size: 0.68rem; color: var(--ink); font-weight: 700; letter-spacing: 0.01em; }
.foot-note { font-size: 0.8rem; color: var(--ink-2); max-width: 78ch; margin: 16px auto 0; text-align: center; padding: 0 8px; }

/* ================= SECTION LEDE (shared) ================= */
.sec-lede { font-size: 0.94rem; color: var(--ink-2); max-width: 74ch; margin-bottom: 16px; }
.sec-lede b { color: var(--ink); font-weight: 700; }

/* ================= DIVISIONS / SPECIALIST TRACKS ================= */
.div-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.div-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 15px 16px 14px; border-radius: 8px;
  background: #fdfaf0; border: 1px solid var(--rule);
  box-shadow: 0 3px 0 rgba(33, 28, 18, 0.16), 0 10px 22px rgba(18, 40, 66, 0.16);
  text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.div-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 8px 0 0 8px; }
.div-card.st-live::before { background: var(--pass-d); }
.div-card.st-coming::before { background: var(--cyan); }
.div-card.st-request::before { background: repeating-linear-gradient(180deg, var(--orange) 0 8px, rgba(255,122,26,0.5) 8px 14px); }
a.div-card:hover { transform: translateY(-3px); box-shadow: 0 5px 0 rgba(33, 28, 18, 0.16), 0 16px 30px rgba(18, 40, 66, 0.24); }

.div-top { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 4px 12px; }
.div-code {
  grid-row: 1 / span 1; align-self: center;
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto;
  font-family: var(--mono); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--hazard); border-radius: 9px;
  background: linear-gradient(160deg, var(--hi-lite), var(--hi-deep));
  border: 2px solid var(--hazard); box-shadow: 0 2px 0 rgba(33, 28, 18, 0.22);
  font-variant-numeric: tabular-nums;
}
.div-headings { min-width: 0; }
.div-name { font-family: var(--sans); font-size: 0.92rem; font-weight: 900; color: var(--hazard); letter-spacing: 0.01em; line-height: 1.2; }
.div-spec { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-top: 4px; line-height: 1.5; }
.div-pill {
  justify-self: end; align-self: center;
  font-family: var(--mono); font-size: 0.54rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px; white-space: nowrap;
}
.div-pill.st-live { color: var(--paper); background: var(--pass-d); }
.div-pill.st-coming { color: var(--paper); background: var(--cyan); }
.div-pill.st-request { color: var(--hazard); background: var(--hi); border: 1.5px solid var(--hazard); }
.div-blurb { font-size: 0.85rem; color: var(--ink-2); margin-top: 11px; }
.div-comps { margin-top: 12px; }
.div-lbl { display: block; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.div-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.div-comp {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.04em;
  color: #0f4c74; background: rgba(31, 157, 214, 0.1); border: 1px solid rgba(15, 76, 116, 0.25);
  padding: 3px 8px; border-radius: 3px; white-space: nowrap;
}
.div-suites { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.02em; color: var(--ink-2); margin-top: 10px; font-weight: 700; }
.div-suites .div-lbl { display: inline; margin-right: 4px; }
.div-go {
  margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--rule);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-deep);
}
.div-card.st-live .div-go { color: var(--pass-d); }
.div-card.st-coming .div-go { color: #0f6b96; }
.div-go .arrow { transition: transform .14s ease; }
a.div-card:hover .div-go .arrow { transform: translateX(3px); }
.div-sample { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn-d); font-weight: 700; margin-top: 12px; }
.div-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px;
  padding: 16px 18px; border-radius: 8px; border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(-45deg, rgba(25,21,16,0.05) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,246,214,0.6));
}
.div-cta-copy { flex: 1 1 320px; min-width: 0; font-size: 0.9rem; color: var(--ink-2); }

/* ================= REQUEST CERTIFICATION (Netlify form) ================= */
.reqform { display: grid; gap: 16px; max-width: 720px; }
/* author display:grid on .reqform would otherwise beat the UA [hidden] rule */
.reqform[hidden], .form-thanks[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field > label, .fieldset > legend {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 700;
}
.field .req { color: var(--orange-deep); }
.field .hint { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: none; color: var(--ink-3); font-weight: 700; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.85); border: 1.5px solid var(--rule); border-radius: 6px;
  padding: 11px 13px; width: 100%; min-width: 0;
  box-shadow: inset 0 1px 2px rgba(33, 28, 18, 0.08);
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--hazard); outline-offset: 1px; border-color: var(--hazard); background: #fff;
}
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.fieldset { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin: 0; background: rgba(255, 255, 255, 0.5); display: grid; gap: 10px; }
.fieldset > legend { padding: 0 6px; }
.radio-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .radio-row { grid-template-columns: 1fr 1fr; } }
.radio-card {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border-radius: 7px; border: 1.5px solid var(--rule); background: rgba(255, 255, 255, 0.7);
  transition: border-color .12s ease, background .12s ease;
}
.radio-card:hover { border-color: var(--ink-3); }
.radio-card input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--orange-deep); width: 16px; height: 16px; }
.radio-card:focus-within { outline: 3px solid var(--hazard); outline-offset: 1px; }
.radio-card .rc-title { font-family: var(--sans); font-weight: 800; font-size: 0.86rem; color: var(--hazard); display: block; }
.radio-card .rc-desc { font-size: 0.78rem; color: var(--ink-2); display: block; margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 2px; }
.form-actions .form-note { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; flex: 1 1 200px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  font-family: var(--mono); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hazard); background: linear-gradient(180deg, var(--hi-lite), var(--hi-deep));
  padding: 14px 26px; border-radius: 8px; border: 2.5px solid var(--hazard);
  box-shadow: 0 4px 0 rgba(33, 28, 18, 0.32); transition: transform .12s ease, box-shadow .12s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(33, 28, 18, 0.32); }
.btn-submit:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(33, 28, 18, 0.32); }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: 0 4px 0 rgba(33, 28, 18, 0.32); }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* thank-you / success state */
.form-thanks { text-align: center; padding: 30px 20px 34px; }
.form-thanks .ft-seal { width: 92px; height: 92px; margin: 0 auto 6px; }
.form-thanks h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(1.3rem, 3.6vw, 1.7rem); color: var(--hazard); margin-bottom: 8px; }
.form-thanks p { font-size: 0.94rem; color: var(--ink-2); max-width: 54ch; margin: 0 auto 8px; }
.form-thanks .ft-next { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0f4c74; font-weight: 700; margin-top: 14px; }
.form-thanks .transport { justify-content: center; }

/* ================= MOTION / PRINT ================= */
.halted .marquee-inner, .halted .vz i, .halted .swing, .halted .digarm,
.halted .puff, .halted .cloud, .halted .tack.new, .halted .new-flag { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-inner, .vz i, .swing, .digarm, .puff, .cloud, .tack.new, .permit .new-flag { animation: none !important; }
  .permit, a.permit:hover, .t-btn, .t-btn:hover, .cta-btn, .cta-btn:hover { transition: none; transform: none; }
}
@media print {
  .scene, .scene-haze, #sitenav, #topbar, #deck, #duo, #orientation, #divisions, #cert-wall, #crew, #weekly,
  #enter-cta, footer.status, .print-hint, #ticket-window .board-hd, #ticket-window .printer-slot,
  #verify, #embeds { display: none !important; }
  body { background: #fff; color: #14131c; }
  .rack { padding: 0; display: block; max-width: none; }
  #ticket-window, #cert-paper { border: none; background: none; box-shadow: none; }
  #ticket-window .board-bd { padding: 0; }
  .hero-cert { box-shadow: none; }
}
