/* Mission Tech site pages: Home, Courses, Arcade, Labs & Tools, About, Review, Proof.
   One calm system for every page that explains or lists things. The tools, lessons and
   games keep their own, louder looks; these pages are the school around them.
   Serif headings, DM Sans body, DM Mono labels. Orange is the action, lavender the
   secondary accent, green means done or available. Loaded after mission-tech-shared.css,
   so every token has a fallback. */

/* ── Page frame ─────────────────────────────────────────── */
.hub { max-width: 1120px; margin: 0 auto; padding: 5.5rem 1.5rem 4rem; }
.hub a { text-underline-offset: 0.18em; }
.hub :focus-visible, .site-footer :focus-visible { outline: 2px solid var(--c-accent, #e8864a); outline-offset: 3px; border-radius: 4px; }
.measure { max-width: 42rem; }

/* Page header: a numbered mono label, a serif title, a lead. */
.hub-hero { padding: 0 0 2.25rem; }
.hub-kicker { font-family: var(--f-mono, monospace); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-lavender, #9b8ec4); margin: 0 0 0.75rem; }
.hub-hero h1 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: clamp(2.3rem, 5.6vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--c-text, #f5f2fa); margin: 0 0 1rem; max-width: 20ch; }
.hub-lead { font-size: 1.08rem; font-weight: 300; line-height: 1.65; color: var(--c-text-dim, #cac4d9); max-width: 42rem; margin: 0; }
.hub-lead a, .hub-sub a, .prose a { color: var(--c-accent, #e8864a); }

/* Sections: hairline above, a small numbered label, a serif heading. */
.hub-section { padding: 2.75rem 0; border-top: 1px solid var(--c-border, rgba(255,255,255,0.1)); scroll-margin-top: 84px; }
.hub-section:first-of-type { border-top: 0; }
.sec-label { display: block; font-family: var(--f-mono, monospace); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-muted, #a89fc0); margin: 0 0 0.6rem; }
.hub-h2 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1.15; color: var(--c-text, #f5f2fa); margin: 0 0 0.5rem; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.hub-h2 .w { font-family: 'Press Start 2P', var(--f-mono, monospace); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--c-lavender, #9b8ec4); }
.hub-h3 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--c-text, #f5f2fa); margin: 2rem 0 0.4rem; }
.hub-sub { font-size: 0.98rem; color: var(--c-text-dim, #cac4d9); line-height: 1.65; margin: 0 0 1.4rem; max-width: 42rem; }
.prose { font-size: 1rem; line-height: 1.75; color: var(--c-text-dim, #cac4d9); max-width: 40rem; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--c-text, #f5f2fa); font-weight: 600; }

/* ── Actions ─────────────────────────────────────────────── */
.hub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.75rem 1.4rem; border-radius: var(--r-sm, 6px); background: var(--c-accent, #e8864a); color: #1a1000; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background 0.2s var(--ease, ease), transform 0.2s var(--ease, ease); }
.hub-btn:hover { background: var(--c-accent-hover, #f0a46e); transform: translateY(-1px); }
.hub-btn.ghost { background: transparent; color: var(--c-text, #f5f2fa); border-color: var(--c-border-vis, rgba(255,255,255,0.22)); }
.hub-btn.ghost:hover { border-color: var(--c-accent, #e8864a); color: var(--c-accent, #e8864a); }
.hub-btn[disabled], .hub-btn[aria-disabled="true"] { opacity: 0.5; cursor: default; transform: none; }
/* Buttons keep their own colours inside text blocks that colour links. */
.prose .hub-btn, .hub-sub .hub-btn, .hub-lead .hub-btn { color: #1a1000; text-decoration: none; }
.prose .hub-btn.ghost, .hub-sub .hub-btn.ghost, .hub-lead .hub-btn.ghost { color: var(--c-text, #f5f2fa); }
.hub-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.4rem; }
/* A text link that is clearly a link, with room to tap. */
.go-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--c-accent, #e8864a); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.go-link:hover { text-decoration: underline; }
.go-link::after { content: '\2192'; transition: transform 0.2s var(--ease, ease); }
.go-link:hover::after { transform: translateX(3px); }

/* Small labels: mono, quiet. Status adds a word as well as a colour. */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--f-mono, monospace); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted, #a89fc0); border: 1px solid var(--c-border-vis, rgba(255,255,255,0.16)); border-radius: 4px; padding: 0.2rem 0.45rem; white-space: nowrap; }
[hidden] { display: none !important; }
.chip.ok { color: var(--c-green, #7dd4a0); border-color: rgba(125,212,160,0.4); }
.chip.live { color: var(--c-cyan, #50b0e0); border-color: rgba(80,176,224,0.4); }
.chip.next { color: var(--c-accent, #e8864a); border-color: rgba(232,134,74,0.5); }

/* ── Cards, used where a card helps (a few big choices) ──── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.35rem 1.25rem; background: var(--c-panel, rgba(38,31,66,0.94)); border: 1px solid var(--c-border, rgba(255,255,255,0.1)); border-radius: var(--r-md, 12px); color: var(--c-text, #f5f2fa); text-decoration: none; transition: border-color 0.2s var(--ease, ease), transform 0.2s var(--ease, ease); }
a.hub-card:hover, a.hub-card:focus-visible { border-color: rgba(232,134,74,0.5); transform: translateY(-2px); }
.hub-card .tag { font-family: var(--f-mono, monospace); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-lavender, #9b8ec4); }
.hub-card h3 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin: 0; }
.hub-card p { font-size: 0.93rem; line-height: 1.55; color: var(--c-text-dim, #cac4d9); margin: 0; }
.hub-card .meta { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-family: var(--f-mono, monospace); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--c-text-muted, #a89fc0); }
.hub-card .live { color: var(--c-cyan, #50b0e0); }
.hub-card .go { font-size: 0.88rem; font-weight: 600; color: var(--c-accent, #e8864a); }

/* ── Resource list: rows, not a wall of cards ─────────────── */
.res-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-border, rgba(255,255,255,0.1)); }
.res { border-bottom: 1px solid var(--c-border, rgba(255,255,255,0.1)); }
.res > a { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 0.4rem 1.5rem; align-items: baseline; padding: 1rem 0.25rem; color: var(--c-text, #f5f2fa); text-decoration: none; min-height: 44px; }
.res > a:hover .res-title { color: var(--c-accent, #e8864a); }
.res-title { font-family: var(--f-serif, Georgia, serif); font-size: 1.2rem; line-height: 1.25; transition: color 0.2s; }
.res-desc { font-size: 0.93rem; line-height: 1.55; color: var(--c-text-dim, #cac4d9); }
.res-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.res-note { grid-column: 2 / -1; font-size: 0.8rem; color: var(--c-text-muted, #a89fc0); }

/* Jump links at the top of a long page. */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border: 1px solid var(--c-border-vis, rgba(255,255,255,0.16)); border-radius: 999px; color: var(--c-text-dim, #cac4d9); text-decoration: none; font-size: 0.88rem; }
.jump a:hover { border-color: var(--c-accent, #e8864a); color: var(--c-text, #f5f2fa); }

/* ── The learning path: lessons on a wire ─────────────────── */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ''; position: absolute; left: 1.35rem; top: 1.6rem; bottom: 1.6rem; width: 2px; background: repeating-linear-gradient(to bottom, rgba(155,142,196,0.45) 0 6px, transparent 6px 11px); }
.path-step { position: relative; display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); gap: 1.1rem; padding: 0.9rem 0; }
.path-node { position: relative; z-index: 1; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-bg-2, #221c42); border: 1px solid var(--c-border-vis, rgba(255,255,255,0.22)); font-family: 'Press Start 2P', var(--f-mono, monospace); font-size: 0.5rem; color: var(--c-text, #f5f2fa); }
.path-step.clear .path-node { border-color: var(--c-green, #7dd4a0); color: var(--c-green, #7dd4a0); }
.path-step.next .path-node { border-color: var(--c-accent, #e8864a); box-shadow: 0 0 0 4px rgba(232,134,74,0.18); }
.path-body { padding: 0.35rem 0 0.4rem; min-width: 0; }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; }
.path-title { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-serif, Georgia, serif); font-size: 1.32rem; line-height: 1.2; color: var(--c-text, #f5f2fa); text-decoration: none; }
a.path-title:hover { color: var(--c-accent, #e8864a); }
.path-sum { margin: 0.35rem 0 0.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--c-text-dim, #cac4d9); max-width: 46rem; }
.path-with { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.path-with li { color: var(--c-text-muted, #a89fc0); }
.path-with a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--c-text-dim, #cac4d9); }
.path-with a:hover { color: var(--c-accent, #e8864a); }
.path-with b { font-family: var(--f-mono, monospace); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-lavender, #9b8ec4); margin-right: 0.35rem; }

/* Upcoming curriculum: present, honest, quiet. */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem 2.5rem; }
.roadmap h3 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: 1.15rem; margin: 0 0 0.2rem; color: var(--c-text-dim, #cac4d9); }
.roadmap p { margin: 0 0 0.6rem; font-size: 0.88rem; color: var(--c-text-muted, #a89fc0); }
.roadmap ol { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--c-text-muted, #a89fc0); }
.roadmap li { padding: 0.28rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.roadmap li b { font-family: var(--f-mono, monospace); font-weight: 400; font-size: 0.72rem; margin-right: 0.6rem; color: var(--c-text-muted, #a89fc0); }

/* Understand, Practice, Build, Prove. */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: m; }
.method li { position: relative; padding: 1.2rem 1.4rem 1.3rem 0; border-top: 2px solid var(--c-border-vis, rgba(255,255,255,0.16)); }
.method li::before { counter-increment: m; content: '0' counter(m); display: block; font-family: var(--f-mono, monospace); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--c-lavender, #9b8ec4); margin-bottom: 0.5rem; }
.method li:first-child { border-top-color: var(--c-accent, #e8864a); }
.method h3 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.4rem; color: var(--c-text, #f5f2fa); }
.method p { margin: 0 0 0.4rem; font-size: 0.92rem; line-height: 1.6; color: var(--c-text-dim, #cac4d9); }
.method a { font-size: 0.88rem; }

/* Feature block: a picture and a paragraph, side by side. */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.25rem; align-items: center; }
.feature + .feature { margin-top: 3rem; }
.feature.flip > .feature-media { order: 2; }
.feature-media { position: relative; display: block; text-decoration: none; border-radius: var(--r-md, 12px); overflow: hidden; border: 1px solid var(--c-border-vis, rgba(255,255,255,0.16)); background: #0c0c1e; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.feature-media img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.feature h2, .feature h3 { font-family: var(--f-serif, Georgia, serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 0.6rem; color: var(--c-text, #f5f2fa); }
.feature p { color: var(--c-text-dim, #cac4d9); line-height: 1.65; margin: 0 0 0.9rem; }
.learns { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Progress bar. */
.hub-progress { display: flex; align-items: center; gap: 0.75rem; font-family: var(--f-mono, monospace); font-size: 0.74rem; color: var(--c-text-muted, #a89fc0); margin: 1rem 0 0; }
.hub-progress .bar { flex: 0 1 240px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hub-progress .bar i { display: block; height: 100%; background: var(--c-green, #7dd4a0); border-radius: 3px; }

/* Level tiles (still used by the proof page). */
.hub-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.hub-level { display: flex; flex-direction: column; gap: 0.3rem; min-height: 76px; padding: 0.75rem 0.8rem; border: 1px solid var(--c-border-vis, rgba(255,255,255,0.16)); border-radius: var(--r-sm, 6px); background: rgba(10,7,20,0.45); color: var(--c-text-dim, #cac4d9); text-decoration: none; font-size: 0.84rem; line-height: 1.3; }
.hub-level b { font-family: 'Press Start 2P', var(--f-mono, monospace); font-size: 0.62rem; color: var(--c-text, #f5f2fa); font-weight: 400; }
.hub-level small { margin-top: auto; font-family: var(--f-mono, monospace); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted, #a89fc0); }
.hub-level.clear { border-color: rgba(125,212,160,0.5); }
.hub-level.clear small { color: var(--c-green, #7dd4a0); }
.hub-level.next { border-color: var(--c-accent, #e8864a); color: var(--c-text, #f5f2fa); }
.hub-level.next small { color: var(--c-accent, #e8864a); }
a.hub-level:hover { border-color: var(--c-accent, #e8864a); color: var(--c-text, #f5f2fa); }

.hub-note { font-size: 0.85rem; color: var(--c-text-muted, #a89fc0); line-height: 1.6; max-width: 44rem; }
.hub-note a { color: var(--c-text-dim, #cac4d9); }
.callout { padding: 1rem 1.25rem; border-left: 3px solid var(--c-lavender, #9b8ec4); background: rgba(155,142,196,0.08); border-radius: 0 var(--r-sm, 6px) var(--r-sm, 6px) 0; font-size: 0.93rem; line-height: 1.6; color: var(--c-text-dim, #cac4d9); max-width: 44rem; }
.callout a { color: var(--c-accent, #e8864a); }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--c-border, rgba(255,255,255,0.1)); padding: 2.75rem 1.5rem 2.25rem; }
.site-footer .footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer .footer-name { font-family: var(--f-serif, Georgia, serif); font-size: 1.2rem; margin: 0 0 0.25rem; color: var(--c-text, #f5f2fa); }
.site-footer .footer-tag { font-family: var(--f-mono, monospace); font-size: 0.7rem; color: var(--c-text-muted, #a89fc0); margin: 0; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 0 1.4rem; max-width: 40rem; }
.site-footer .footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 0.88rem; color: var(--c-text-dim, #cac4d9); text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--c-text, #f5f2fa); }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature.flip > .feature-media { order: 0; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res > a { grid-template-columns: 1fr; gap: 0.3rem; }
  .res-meta { justify-content: flex-start; }
  .res-note { grid-column: auto; }
}
@media (max-width: 560px) {
  .hub { padding: 5rem 1.15rem 3rem; }
  .method { grid-template-columns: 1fr; }
  .hub-levels { grid-template-columns: repeat(2, 1fr); }
  .hub-row .hub-btn { flex: 1 1 100%; }
  .path::before { left: 1.15rem; }
  .path-step { grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.85rem; }
  .path-node { width: 2.3rem; height: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-btn, .go-link::after { transition: none; }
  a.hub-card:hover, .hub-btn:hover, .go-link:hover::after { transform: none; }
}
