/* espclub.ca: mission-control design system
   Palette: orbit navy base, solar-cell panels, blueprint linework, one beacon accent.
   Type: Archivo (width axis carries the personality), Martian Mono for live data only. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 112.5%; src: url("/assets/fonts/martian-mono.woff2") format("woff2-variations"), url("/assets/fonts/martian-mono.woff2") format("woff2"); }

:root {
  --space: #0d1a33;
  --night: #091327;
  --panel: #13244a;
  --panel-2: #182c58;
  --line: #2a3f6e;
  --line-soft: rgba(125, 147, 196, 0.22);
  --ink: #e9edf6;
  --muted: #9daacb;
  --beacon: #ff7a1a;
  --beacon-hi: #ff9247;
  --beacon-ink: #1a0d00;
  --go: #5bd38a;
  --hold: #f2c14e;
  --stop: #ff6b6b;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-12: 0.75rem;
  --s-14: 0.875rem;
  --s-16: 1rem;
  --s-18: 1.125rem;
  --s-21: 1.3125rem;
  --s-24: 1.5rem;
  --s-36: 2.25rem;
  --s-48: 3rem;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-s: 3px;
  --r-m: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s-18);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--beacon); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--beacon-hi); }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--beacon); color: var(--beacon-ink); }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
h1, h2 { font-stretch: 125%; font-variation-settings: "wdth" 125; }
h3 { font-size: var(--s-21); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--s-16); font-weight: 700; }
code, kbd { font-family: var(--mono); font-size: 0.82em; background: var(--panel); padding: 0.12em 0.4em; border-radius: var(--r-s); border: 1px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--beacon); color: var(--beacon-ink); padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(13, 26, 51, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; font-stretch: 125%; font-variation-settings: "wdth" 125; line-height: 1; }
.brand-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; font-stretch: 100%; font-variation-settings: "wdth" 100; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-size: var(--s-16); font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--beacon); padding-bottom: 2px; }
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.94rem; }
  .nav .btn { padding: 0.5rem 0.8rem; }
}
@media (max-width: 380px) { .nav a.nav-docs { display: none; } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: var(--s-16); line-height: 1;
  padding: 0.85rem 1.25rem; border-radius: var(--r-s); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--beacon); color: var(--beacon-ink); }
.btn-primary:hover { background: var(--beacon-hi); color: var(--beacon-ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--muted); color: var(--ink); }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--panel-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--stop); border-color: rgba(255, 107, 107, .45); }
.btn-danger:hover { background: rgba(255, 107, 107, .1); color: var(--stop); }
.btn-small { padding: 0.55rem 0.8rem; font-size: var(--s-14); }
.btn[disabled] { opacity: .55; cursor: progress; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--beacon-ink); }
.nav .btn-primary[aria-current="page"] { box-shadow: none; padding-bottom: 0.5rem; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; overflow: hidden; }
.hero::before { /* faint plotting-table graticule */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 0.98; letter-spacing: -0.025em; font-weight: 850; }
.hero h1 span { display: block; }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); margin: 1.5rem 0 2rem; max-width: 34em; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ground-track { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 60%; pointer-events: none; opacity: .5; }

/* The satellite drawing */
.sat-figure { margin: 0; position: relative; }
.sat { width: 100%; height: auto; overflow: visible; }
.sat .frame, .sat .board, .sat .part-shape { fill: none; stroke: #7d93c4; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sat .board { fill: rgba(125, 147, 196, .12); }
.sat .fillpanel { fill: rgba(24, 44, 88, .75); stroke: #7d93c4; stroke-width: 1.2; }
.sat .rail { fill: #182c58; stroke: #7d93c4; stroke-width: 1.2; }
.sat .unit-line { stroke: #7d93c4; stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.sat .chip { fill: #2a3f6e; stroke: #9daacb; stroke-width: .8; }
.sat .coil { stroke: #9daacb; stroke-width: .8; }
.sat .tape { fill: none; stroke: #c6d1ea; stroke-width: 1.6; stroke-linecap: round; }
.sat .flow { fill: none; stroke: #9daacb; stroke-width: 1; stroke-dasharray: 2 4; }
.sat .leader { fill: none; stroke: #5d74a8; stroke-width: 1; }
.sat .pin { fill: var(--space); stroke: #9daacb; stroke-width: 1.4; }
.sat .dim { stroke: #5d74a8; stroke-width: .8; fill: none; }
.sat .dim-text { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.sat .lbl { fill: var(--ink); font-size: 15px; font-weight: 700; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.sat .sub { fill: var(--muted); font-size: 12px; }
.sat a { cursor: pointer; }
.sat a:focus { outline: none; }
.sat a:focus-visible .lbl { text-decoration: underline; text-decoration-color: var(--beacon); }
.sat .part .part-shape, .sat .part .board, .sat .part .leader, .sat .part .pin, .sat .part .tape, .sat .part .frame, .sat .part .rail { transition: stroke .15s, fill .15s; }
.sat .part:hover .part-shape, .sat .part:focus-visible .part-shape,
.sat .part:hover .board, .sat .part:focus-visible .board,
.sat .part:hover .tape, .sat .part:focus-visible .tape,
.sat .part:hover .frame, .sat .part:focus-visible .frame,
.sat .part:hover .rail, .sat .part:focus-visible .rail,
.sat .part:hover .leader, .sat .part:focus-visible .leader { stroke: var(--beacon); }
.sat .part:hover .pin, .sat .part:focus-visible .pin { fill: var(--beacon); stroke: var(--beacon); }
.sat .part:hover .lbl, .sat .part:focus-visible .lbl { fill: var(--beacon-hi); }
.sat .part:hover .board, .sat .part:focus-visible .board { fill: rgba(255, 122, 26, .16); }

/* One orchestrated moment: the plotter sweeps the drawing in, then the callouts appear. */
@media (prefers-reduced-motion: no-preference) {
  .js .sat .body-art { animation: plot 1.6s cubic-bezier(.6, .1, .3, 1) .15s both; }
  .js .sat .scan { animation: scan 1.6s cubic-bezier(.6, .1, .3, 1) .15s both; }
  .js .sat .callout { animation: appear .45s ease-out both; }
  .js .sat .part:nth-of-type(1) .callout { animation-delay: 1.35s; }
  .js .sat .part:nth-of-type(2) .callout { animation-delay: 1.45s; }
  .js .sat .part:nth-of-type(3) .callout { animation-delay: 1.55s; }
  .js .sat .part:nth-of-type(4) .callout { animation-delay: 1.65s; }
  .js .sat .part:nth-of-type(5) .callout { animation-delay: 1.75s; }
  .js .sat .part:nth-of-type(6) .callout { animation-delay: 1.85s; }
}
@keyframes plot { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(560px); opacity: 0; } }
@keyframes appear { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.sat .scan { stroke: var(--beacon); stroke-width: 1.5; opacity: 0; }

.team-list-mobile { display: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sat-figure { max-width: 560px; }
}
@media (max-width: 560px) {
  .sat .callout { display: none; }
  .sat { max-width: 300px; margin: 0 auto; }
  .team-list-mobile { display: grid; gap: 0.25rem; margin: 1rem 0 0; padding: 0; list-style: none; }
  .team-list-mobile a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
  .team-list-mobile span { color: var(--muted); font-weight: 400; font-size: var(--s-14); text-align: right; }
}

/* ------------------------------------------------------------ telemetry strip */
.telemetry { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night); }
.telemetry dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.telemetry dl > div { padding: 1rem 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.telemetry dl > div:first-child { border-left: 0; padding-left: 0; }
.telemetry dt { font-size: var(--s-14); color: var(--muted); margin-bottom: 0.3rem; }
.telemetry dd { margin: 0; font-family: var(--mono); font-size: 0.86rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45rem; vertical-align: 1px; background: var(--go); box-shadow: 0 0 0 3px rgba(91, 211, 138, .18); }
.status-dot.hold { background: var(--hold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
@media (max-width: 860px) {
  .telemetry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry dl > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .telemetry dl > div:first-child { grid-column: 1 / -1; border-top: 0; }
}

/* ------------------------------------------------------------ sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-night { background: var(--night); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.25rem; max-width: 18em; }
.section-intro { color: var(--muted); font-size: var(--s-18); max-width: 40em; margin-bottom: 2.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Phases: a true sequence, so it's numbered */
.phases { list-style: none; margin: 0; padding: 0; counter-reset: phase; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.phases li { counter-increment: phase; position: relative; padding: 1.5rem 1.25rem 0 0; }
.phases li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--space); border: 2px solid var(--line); }
.phases li.now::before { background: var(--beacon); border-color: var(--beacon); box-shadow: 0 0 0 5px rgba(255, 122, 26, .2); }
.phases li.done::before { background: var(--go); border-color: var(--go); }
.phases .phase-no { font-family: var(--mono); font-size: var(--s-12); color: var(--muted); display: block; margin-bottom: 0.4rem; }
.phases .phase-no::before { content: "Phase " counter(phase, decimal-leading-zero); }
.phases li.now .phase-no { color: var(--beacon-hi); }
.phases h3 { font-size: var(--s-18); margin-bottom: 0.5rem; }
.phases p { font-size: var(--s-16); color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); padding-left: 1.5rem; gap: 1.75rem; }
  .phases li { padding: 0; }
  .phases li::before { top: 4px; left: calc(-1.5rem - 7px); }
}

/* Offer list: what you get, set as a spec sheet rather than cards */
.spec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.spec-list > div { border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; }
.spec-list dt { font-weight: 700; font-size: var(--s-18); margin-bottom: 0.35rem; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.spec-list dd { margin: 0; color: var(--muted); font-size: var(--s-16); }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }

/* Build log */
.log { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.log li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.log li::before { content: ""; position: absolute; left: -5px; top: 0.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.log li.done::before { background: var(--go); }
.log li.next::before { background: var(--beacon); }
.log time, .log .when { font-family: var(--mono); font-size: var(--s-12); color: var(--muted); display: block; margin-bottom: 0.2rem; }
.log h3 { font-size: var(--s-18); margin-bottom: 0.2rem; }
.log p { color: var(--muted); font-size: var(--s-16); margin: 0; }

.photo-slot { border: 1.5px dashed var(--line); border-radius: var(--r-m); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(125, 147, 196, .05) 14px 15px); }
.photo-slot p { margin: 0 auto; max-width: 22em; font-size: var(--s-16); }

/* Call to action band */
.cta-band { padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 14em; }
.cta-band p { color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 720px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ page heads (inner pages) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; max-width: 14em; }
.page-head p { color: var(--muted); font-size: var(--s-21); margin: 1.25rem 0 0; max-width: 36em; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--s-16); }
.spec-table th, .spec-table td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.spec-table td { font-family: var(--mono); font-size: 0.84rem; line-height: 1.6; }
.spec-table td.prose { font-family: var(--font); font-size: var(--s-16); }
.tag { display: inline-block; font-family: var(--font); font-size: var(--s-12); font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); margin-left: 0.4rem; vertical-align: 2px; }
.tag.go { color: var(--go); border-color: rgba(91, 211, 138, .4); }
.tag.hold { color: var(--hold); border-color: rgba(242, 193, 78, .4); }
.tag.beacon { color: var(--beacon-hi); border-color: rgba(255, 122, 26, .45); }

/* Teams on the mission page */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.team { border-top: 1px solid var(--line); padding: 1.75rem 0 2rem; scroll-margin-top: 5rem; }
.team:target { border-top-color: var(--beacon); }
.team:target h3 { color: var(--beacon-hi); }
.team h3 { margin-bottom: 0.5rem; }
.team p { color: var(--muted); font-size: var(--s-16); }
.team dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: var(--s-14); }
.team dt { color: var(--muted); }
.team dd { margin: 0; }
@media (max-width: 760px) { .teams { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; background: var(--night); font-size: var(--s-14); color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { font-size: var(--s-14); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot p { margin: 0 0 0.6rem; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > div:first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ forms (shared by apply + exec) */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.4rem; align-content: start; }
.field > label, .field legend { font-weight: 700; font-size: var(--s-16); }
.field .hint { color: var(--muted); font-size: var(--s-14); margin: -0.15rem 0 0.2rem; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: var(--s-16); color: var(--ink); background: var(--night);
  border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 0.75rem 0.85rem; transition: border-color .15s;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #3b5389; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--beacon); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field-error { color: var(--stop); font-size: var(--s-14); font-weight: 600; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--stop) !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--s-16); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--beacon); flex: none; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--beacon); background: var(--panel); padding: 1rem 1.2rem; border-radius: var(--r-s); font-size: var(--s-16); }
.notice.error { border-left-color: var(--stop); }
.notice.ok { border-left-color: var(--go); }
.notice:empty { display: none; }

/* ------------------------------------------------------------ docs */
.docs-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: 2.5rem; padding-bottom: 5rem; }
.docs-side { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; padding-bottom: 1rem; }
.docs-side input { margin-bottom: 1.25rem; }
.docs-toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 0.38rem 0 0.38rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: var(--s-14); font-weight: 500; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--ink); border-left-color: var(--beacon); }
.docs-toc li[hidden] { display: none; }
.docs-body { max-width: 46rem; }
.doc { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.doc:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.doc h3 { font-size: var(--s-18); margin: 1.5rem 0 0.5rem; }
.doc p, .doc li { color: #c9d2e6; font-size: var(--s-16); }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .spec-table { margin: 0.5rem 0 1.25rem; }
.doc caption { text-align: left; font-weight: 700; font-size: var(--s-14); padding-bottom: 0.4rem; color: var(--ink); }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.doc-cols .spec-table th { width: 30%; }
.docs-empty { margin-bottom: 2rem; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-toc { display: none; }
  .doc-cols { grid-template-columns: 1fr; gap: 0; }
}

/* ------------------------------------------------------------ apply */
.apply-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); padding-top: 2.5rem; padding-bottom: 5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.team-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pick { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--night); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pick:hover { border-color: #3b5389; }
.pick input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--beacon); flex: none; }
.pick strong { display: block; font-size: var(--s-16); font-weight: 700; }
.pick small { display: block; font-size: var(--s-14); color: var(--muted); }
.pick:has(input:checked) { border-color: var(--beacon); background: rgba(255, 122, 26, .07); }
.pick:has(input:focus-visible) { outline: 2px solid var(--beacon); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { margin-top: 0.5rem; min-width: 14rem; }
#form-error { margin-bottom: 1.5rem; }
.apply-done { border: 1px solid var(--line); border-left: 3px solid var(--go); background: var(--panel); padding: 2rem; border-radius: var(--r-m); }
.apply-done h2 { font-size: var(--s-36); margin-bottom: 1rem; }
.apply-done p { color: var(--muted); }
.apply-done:focus { outline: none; }
.apply-aside { position: sticky; top: 5.5rem; align-self: start; }
.apply-aside h2 { font-size: var(--s-21); font-stretch: 112%; font-variation-settings: "wdth" 112; margin: 0 0 1rem; }
.apply-aside h2 + details { border-top: 1px solid var(--line); }
.steps { margin: 0 0 2.5rem; padding-left: 1.3rem; }
.steps li { margin-bottom: 0.8rem; color: var(--muted); font-size: var(--s-16); padding-left: 0.3rem; }
.steps li::marker { color: var(--beacon-hi); font-family: var(--mono); font-size: 0.8em; }
.steps strong { color: var(--ink); display: block; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; font-size: var(--s-16); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); font-size: var(--s-16); margin: 0 0 1rem; }
.aside-note { color: var(--muted); font-size: var(--s-14); margin-top: 1.5rem; }
@media (max-width: 900px) {
  .apply-layout { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
}
@media (max-width: 600px) { .field-row, .team-picks { grid-template-columns: 1fr; } }
.lost { border-bottom: 0; min-height: 55vh; }
.lost-actions { margin-top: 2rem; }
.foot-note { max-width: none; }

/* ------------------------------------------------------------ v2: club landing, board drawing, team, projects */
.sat .silk { fill: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .02em; }
.sat .silk-sm { fill: #6f83b3; font-family: var(--mono); font-size: 7px; }
.sat .pad { fill: #182c58; stroke: #7d93c4; stroke-width: 1; }
.sat .hole { fill: var(--space); stroke: #9daacb; stroke-width: .8; }
.sat .trace { fill: none; stroke: #c6d1ea; stroke-width: 1.4; stroke-linejoin: round; }
.sat .part:hover .trace, .sat .part:focus-visible .trace, .sat .part:hover .pad, .sat .part:focus-visible .pad { stroke: var(--beacon); }
.sat .part:hover .fillpanel, .sat .part:focus-visible .fillpanel { stroke: var(--beacon); }
.board-art .part { cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .js .board-art .scan { animation-name: scan-board; }
}
@keyframes scan-board { 0% { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
.hero-board .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.board-figure { margin: 0; }
@media (max-width: 860px) { .hero-board .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .board-art { max-width: none; } }

/* Projects */
.projects { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.project { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--night); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.project h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; }
.project p { color: var(--muted); font-size: var(--s-16); margin: 0; }
.project .hero-actions { margin-top: auto; padding-top: 0.5rem; }
.project-flagship { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 1.5rem; border-color: #3b5389; }
.project-flagship .mini-sat { width: 120px; height: auto; align-self: center; }
.project-flagship .mini-sat * { vector-effect: non-scaling-stroke; }
.project-kicker { font-family: var(--mono); font-size: var(--s-12); color: var(--beacon-hi); }
.project-plain .project-kicker { color: var(--muted); }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .project-flagship { grid-template-columns: 1fr; } .project-flagship .mini-sat { display: none; } }

/* Exec team */
.execs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.execs li { border-top: 2px solid var(--line); padding-top: 1.25rem; }
.execs li:first-child { border-top-color: var(--beacon); }
.exec-name { display: block; font-size: var(--s-24); font-weight: 800; line-height: 1.1; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.exec-role { display: block; color: var(--muted); font-size: var(--s-16); margin-top: 0.4rem; }
@media (max-width: 860px) { .execs { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; } }
@media (max-width: 480px) { .execs { grid-template-columns: 1fr; } }

/* Selection steps on the CubeSat page */
.select-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.select-steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1rem; }
.select-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--s-12); color: var(--beacon-hi); display: block; margin-bottom: 0.5rem; }
.select-steps h3 { font-size: var(--s-18); margin-bottom: 0.4rem; }
.select-steps p { color: var(--muted); font-size: var(--s-16); margin: 0; }
@media (max-width: 860px) { .select-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .select-steps { grid-template-columns: 1fr; } }

/* Forms v2 */
.word-count { font-family: var(--mono); font-size: var(--s-12); color: var(--muted); }
.word-count.enough { color: var(--go); }
textarea.essay { min-height: 18rem; }
.prompt { border-left: 3px solid var(--line); padding: 0.2rem 0 0.2rem 1rem; color: #c9d2e6; font-size: var(--s-16); margin: 0 0 0.4rem; }
.aside-box { border: 1px solid var(--line); background: var(--night); border-radius: var(--r-m); padding: 1.25rem 1.35rem; margin-bottom: 2rem; }
.aside-box h2 { margin-bottom: 0.5rem; }
.aside-box p { color: var(--muted); font-size: var(--s-16); margin: 0 0 1rem; }
.checklist { margin: 0 0 2.5rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; color: var(--muted); font-size: var(--s-16); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--beacon); }
.checklist strong { color: var(--ink); }
.hero-board .wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
@media (max-width: 860px) { .hero-board .wrap { grid-template-columns: 1fr; } }
.project-kicker { font-family: var(--font); font-size: var(--s-14); font-weight: 700; }
.project p + p { margin-top: 0.75rem; }
.hero-board .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.hero-board h1 { font-size: clamp(2.5rem, 5.3vw, 4.6rem); }
@media (max-width: 860px) { .hero-board .wrap { grid-template-columns: 1fr; } }
.sat .hit { fill: transparent; }
@media (min-width: 861px) { .telemetry-4 dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.label-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.label-row > label { font-weight: 700; font-size: var(--s-16); }
.ai-warning { color: var(--stop); font-style: italic; font-weight: 600; font-size: var(--s-14); }
