/* ---------------------------------------------------------
   Not Censored Classrooms — shared styles
   Palette verified against USCGA's real colors:
   blue #223C70 (PMS 2119C) and the Coast Guard racing-stripe
   orange #F2531B (PMS 172C) — not an invented brand.
--------------------------------------------------------- */

:root {
  --navy-deep: #13213E;
  --navy: #1A2D54;
  --navy-badge-fill: rgba(30, 54, 99, 0.5);
  --paper: oklch(97% 0.014 85);
  --ink: oklch(22% 0.03 250);
  --ink-soft: oklch(42% 0.03 250);
  --orange: #F2531B;
  --orange-bright: #F57549;
  --orange-deep: #A93A13;
  --rule: oklch(85% 0.02 85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; }
.sans { font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif; }
.mono { font-family: "IBM Plex Mono", "Courier New", monospace; }

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: #822c0e; text-decoration: underline; }
.navy a, .on-navy { color: var(--orange); }
.navy a:hover { color: var(--orange-bright); }

/* Layout: full-bleed color bands, constrained reading column */
.band {
  width: 100%;
}
.band-navy {
  background: var(--navy-deep);
  background-image: radial-gradient(circle at 50% -10%, var(--navy) 0%, var(--navy-deep) 65%);
  color: oklch(96% 0.012 85);
}
.band-paper {
  background: var(--paper);
}
.col {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section label — small mono caps heading */
.label {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Badge / pill button with the animated dot */
.badge-link { display: block; width: 100%; text-decoration: none; }
.badge {
  border: 2px solid var(--orange);
  border-radius: 100px;
  padding: 22px 24px;
  text-align: center;
  position: relative;
  background: var(--navy-badge-fill);
}
.badge-title {
  font-size: 16px;
  font-weight: 600;
  color: oklch(97% 0.012 85);
  line-height: 1.45;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.badge.is-running .badge-dot {
  animation: badgeDotRun 1s linear 0.2s 1;
}
@keyframes badgeDotRun {
  0%   { top: 0%;   left: 50%;  transform: translate(-50%, -50%); }
  8%   { top: 0%;   left: 80%;  transform: translate(-50%, -50%); }
  17%  { top: 15%;  left: 95%;  transform: translate(-50%, -50%); }
  25%  { top: 50%;  left: 100%; transform: translate(-50%, -50%); }
  33%  { top: 85%;  left: 95%;  transform: translate(-50%, -50%); }
  42%  { top: 100%; left: 80%;  transform: translate(-50%, -50%); }
  58%  { top: 100%; left: 20%;  transform: translate(-50%, -50%); }
  67%  { top: 85%;  left: 5%;   transform: translate(-50%, -50%); }
  75%  { top: 50%;  left: 0%;   transform: translate(-50%, -50%); }
  83%  { top: 15%;  left: 5%;   transform: translate(-50%, -50%); }
  92%  { top: 0%;   left: 20%;  transform: translate(-50%, -50%); }
  100% { top: 0%;   left: 50%;  transform: translate(-50%, -50%); }
}

/* Redaction bar (Beat 1) — the answer text is always laid out in place;
   a cover sits on top and wipes away via transform/opacity only, so
   nothing around it ever reflows. This is what makes the reveal smooth
   instead of jumpy. */
.redact-slot {
  position: relative;
  display: inline-block;
}
.reveal-answer {
  color: var(--orange-bright);
  font-weight: 600;
}
.redact-cover {
  position: absolute;
  inset: -0.06em -0.18em;
  background: #0B0B0C;
  border: 1px solid rgba(242, 83, 27, 0.6);
  border-radius: 2px;
  transform-origin: right center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.05s,
              opacity 0.5s ease 0.15s,
              border-color 0.5s ease 0.15s;
}
.is-revealed .redact-cover {
  transform: scaleX(0);
  opacity: 0;
  border-color: rgba(242, 83, 27, 0);
}
.is-revealed .reveal-answer {
  animation: answerGlow 1s ease-out 0.35s;
}
@keyframes answerGlow {
  0%   { text-shadow: 0 0 0 rgba(242, 83, 27, 0); }
  45%  { text-shadow: 0 0 14px rgba(242, 83, 27, 0.65); }
  100% { text-shadow: 0 0 0 rgba(242, 83, 27, 0); }
}
.reveal-note { display: none; }
.is-revealed .reveal-note {
  display: block;
  animation: revealFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
@keyframes revealFadeIn {
  0%   { opacity: 0; filter: blur(3px); transform: translateY(2px) scale(0.97); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

/* Scroll hint — "tap to reveal" before, "keep scrolling" after, so the
   cue for more content below never just vanishes. */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}
.scroll-hint-label.post-reveal { display: none; }
.is-revealed .scroll-hint-label.pre-reveal { display: none; }
.is-revealed .scroll-hint-label.post-reveal { display: block; }
.is-revealed .scroll-hint-chevron {
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Mission statement word glow, triggered on scroll into view */
.glow-word {
  color: var(--ink-soft);
  transition: color 1.2s ease;
}
.mission-in-view .glow-word {
  color: var(--orange);
  animation: glowPulse 1.8s ease-out;
}
@keyframes glowPulse {
  0%   { text-shadow: 0 0 0 rgba(242, 83, 27, 0); color: var(--ink-soft); }
  40%  { text-shadow: 0 0 16px rgba(242, 83, 27, 0.7), 0 0 32px rgba(242, 83, 27, 0.35); color: var(--orange); }
  100% { text-shadow: 0 0 8px rgba(242, 83, 27, 0.3); color: var(--orange); }
}
.is-revealed .reveal-hint { display: none !important; }

/* Section labels/quotes reused across subpages */
.quote-block {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--rule);
}
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
}
.timeline-date {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--orange-deep); margin-bottom: 5px;
}
.timeline-body { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* Read-more box / bordered callouts */
.box {
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.box-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--ink); text-transform: uppercase;
}
.box-links { display: flex; flex-direction: column; gap: 11px; }
.box-links a { font-size: 14px; font-weight: 600; }
.box-note { font-size: 12.5px; font-style: italic; line-height: 1.55; color: var(--ink-soft); }

/* Chips (peer review vs petition diagram) */
.chip {
  background: var(--paper);
  border: 1.5px solid var(--navy-deep);
  border-radius: 5px;
  padding: 8px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
}
.chip.weak { border-color: var(--rule); color: var(--ink-soft); }
.chip.strong { border-color: var(--orange); font-weight: 600; }
.chip-connector { width: 1.5px; height: 10px; background: var(--rule); margin: 0 auto; }

/* Footer CTA */
.footer-cta a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid rgba(150, 160, 190, 0.25);
}
.footer-cta a:last-child { border-bottom: 1px solid rgba(150, 160, 190, 0.25); }

/* Officer's instinct choice buttons (Beat 2) */
.choice-row { display: flex; gap: 16px; width: 100%; justify-content: center; }
.choice-btn {
  border: 1.5px solid rgba(242, 83, 27, 0.75);
  color: oklch(92% 0.02 85);
  padding: 14px 30px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}
.choice-btn:hover { background: rgba(242, 83, 27, 0.12); }
.choice-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
}
.choice-made .choice-result {
  display: flex;
  animation: revealFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.choice-made .choice-row { display: none; }

@media (max-width: 380px) {
  .col { padding: 0 20px; }
}

/* Cross-page nav strip, top of every child page.
   Single scrollable row of tappable pills, never wraps into a
   cramped multi-line grid on narrow screens. */
.subnav {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(242, 83, 27, 0.2);
}
.subnav-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
  .subnav-inner {
    max-width: 640px;
    justify-content: center;
    gap: 14px;
    overflow-x: visible;
  }
}
.subnav a {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(230, 225, 215, 0.75);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 83, 27, 0.3);
  border-radius: 100px;
}
.subnav a:hover, .subnav a:active {
  background: rgba(242, 83, 27, 0.14);
  border-color: rgba(242, 83, 27, 0.6);
  color: var(--orange);
}
