/* Shared styles for the K12 Cyber Warriors demos (Pivot Peak Adventure Park - fictional) */
:root {
  --ink: #12283C;
  --muted: #4B6175;
  --paper: #F2F8FC;
  --surface: #FFFFFF;
  --line: #D3E4EF;
  --blue: #0A76AE;
  --blue-deep: #08608E;
  --navy: #12283C;
  --sky: #BFE3F5;
  --sky-soft: #E3F2FA;
  --gold: #F5A13A;
  --gold-ink: #8A4B00;
  --green: #1E8E5A;
  --green-soft: #DDF3E8;
  --red: #C2412D;
  --red-soft: #FBE3DE;
  --amber: #B7791F;
  --amber-soft: #FDF0D5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 40, 60, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3, .display { font-family: Rubik, Inter, system-ui, sans-serif; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.02; }
h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.1; }
h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.25; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Top bar shared by every demo */
.topbar { background: var(--navy); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-family: Rubik, Inter, sans-serif; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 1rem; }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav a { color: #DCEFFA; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.topnav a:hover, .topnav a[aria-current="page"] { background: rgba(255,255,255,0.12); color: #fff; }

.training-ribbon { background: var(--gold); color: var(--navy); text-align: center; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; padding: 6px 12px; text-transform: uppercase; }

.eyebrow { margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--sky); }
.lead { color: var(--muted); font-size: 1.05rem; }

.page-hero { background: linear-gradient(135deg, #0A76AE 0%, #08608E 55%, #12283C 100%); color: #fff; padding: 40px 0 34px; }
.page-hero .lead { color: #DCEFFA; max-width: 760px; margin-top: 12px; }

.band { padding: 56px 0; }
.band.white { background: #fff; }
.band.dark { background: var(--navy); color: #EAF6FD; }
.band.dark .lead { color: #C4DCEB; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 2px solid transparent; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.primary:hover { background: #F7B25D; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn.outline { background: #fff; color: var(--blue); border-color: var(--sky); }
.btn.outline:hover { border-color: var(--blue); }
.btn.danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill.ok { background: var(--green-soft); color: #11603C; }
.pill.warn { background: var(--amber-soft); color: #7A4E0B; }
.pill.bad { background: var(--red-soft); color: #8E2A1B; }
.pill.info { background: var(--sky-soft); color: var(--blue-deep); }
.pill.off { background: #E8EDF1; color: #4B5B68; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--red); }
.dot.off { background: #9AA8B3; }

.tip { background: var(--sky-soft); border-left: 6px solid var(--blue); border-radius: 10px; padding: 14px 16px; }
.tip strong { color: var(--blue-deep); }

.footer { background: var(--navy); color: #BFD4E2; padding: 24px 0; font-size: 0.9rem; }
.footer a { color: var(--gold); font-weight: 700; }

.next-up { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
