/* ============================================================
   Team 2972 public website: design 8.2 (D190, release 8.3).
   The 13 public pages load only this file. The portal, its install page, offline.html and team-login.html keep
   css/style.css, so nothing here can change them.
   Flag black and white from the team's logo and shirts; one accent, the colour of the robot's bumpers (blue or red,
   the visitor can swap them with the bumper on Home); banner lettering for headlines and numerals. Light only.
   Rules (public-redesign-demo/v8.2/README.md): the accent is only for acting and for winning; soft corners only for
   padded, touchable things (buttons, the bumper); no boxes round content (the school's is the one filled box); no
   upper-case labels, no middle dots, no arrows on links; nothing moves by itself except the bumper's colour change.
   ============================================================ */

/* Fonts are self-hosted (SIL Open Font License, see fonts/). The headline face is named only in --display below, so a
   switch to another face is this @font-face and that one line. */
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- tokens: every colour on the public pages is here and nowhere else ---------- */
:root, :root[data-theme] {
  --ink: #000000;          /* flag black */
  --paper: #ffffff;
  --floor: #eceef0;        /* arena grey, for every second band */
  --rule: #c5cad0;
  --text-2: #2c3238;
  --mute: #4a5158;
  --accent: #1d43c0;       /* bumper blue */
  --accent-press: #15329a;
  --on-accent: #ffffff;
  --ftr-text: #c9ced3;     /* second lines on the black footer */
  --ftr-rule: #4a5158;
  --bumper-shade: rgba(0, 0, 0, 0.18);
  --bumper-shine: rgba(255, 255, 255, 0.14);
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gut: 20px;
  --bumper-r: 14px;        /* the one soft corner: padded things (the bumper, buttons) */
  color-scheme: only light;   /* one theme, said to the browser: a dark browser setting changes nothing (D264 (1)) */
}
/* Bumper red: set on <html> by the bumper (and, before the first paint, by each page's one head script). */
:root[data-alliance="red"] { --accent: #c3122a; --accent-press: #9a0d20; }
@media (min-width: 720px) { :root { --gut: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); font-kerning: normal; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: .002em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 5.75rem); line-height: .92; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
h3 { font-family: var(--text); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 700; }
h1:focus { outline: none; }
.lead { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); line-height: 1.4; max-width: 34em; color: var(--text-2); }
.prose p { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.mute { color: var(--mute); }
.small { font-size: .9375rem; }
.num { font-family: var(--display); font-weight: 900; font-variant-numeric: lining-nums; }
.tab { font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: clamp(48px, 7vw, 96px); }
.band-floor { background: var(--floor); }
.band-first { padding-top: clamp(32px, 5vw, 64px); }
.band h2 + * { margin-top: 20px; }
.stack > * + * { margin-top: 20px; }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .split > .s5 { grid-column: span 5; } .split > .s6 { grid-column: span 6; } .split > .s7 { grid-column: span 7; }
  .split > .s4 { grid-column: span 4; } .split > .s8 { grid-column: span 8; }
}

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px solid var(--ink); }
.hdr-in { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.hdr-school { flex: none; padding-right: 14px; border-right: 1px solid var(--rule); }
.brand { flex: 1 1 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.brand-n { font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1; }
.brand-t { display: grid; line-height: 1.1; min-width: 0; }
.brand-t span { font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-one { font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-a { padding: 10px 12px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-a:hover { border-bottom-color: var(--rule); }
.nav-a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--bumper-r); background: var(--paper); font-weight: 600; }
@media (max-width: 899px) {
  .hdr-in { flex-wrap: wrap; min-height: 60px; gap: 10px; }
  .hdr-school { padding-right: 10px; }
  .hdr-school img { width: 34px; height: auto; }
  .brand img { width: 36px; height: 36px; }
  .brand-n, .brand-one { font-size: 1.5rem; }
  .brand-t span { font-size: .8125rem; }
  .menu-btn { display: inline-block; }
  .brand-t { display: none; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .hdr.open .nav { display: flex; }
  /* On a short screen the open menu scrolls inside the screen (the bar is about 63px tall). */
  .hdr.open .nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-a { padding: 13px 2px; border-bottom: 1px solid var(--rule); margin: 0; }
  .nav-a[aria-current="page"] { border-bottom: 3px solid var(--accent); }
  .nav .btn { margin: 16px 0 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: var(--bumper-r); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-bumper { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-bumper:hover { background: var(--accent-press); border-color: var(--accent-press); color: var(--on-accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.addr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr-t { font-weight: 700; overflow-wrap: anywhere; }
.copy { min-height: 36px; padding: 0 12px; border: 2px solid currentColor; border-radius: var(--bumper-r); background: none; font-size: .875rem; font-weight: 700; }
.textlink { font-weight: 700; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- home: hero ---------- */
.hero { padding-top: clamp(28px, 3.4vw, 44px); }
/* The headline is set like the lettering on a winner's banner, as large as two lines allow; the mission and the two
   ways in sit beside its last line. */
.hero-title { font-size: clamp(3.25rem, 8.2vw, 7.4rem); line-height: .88; }
.hero-top { display: grid; gap: 20px; }
.hero-row { display: grid; gap: 20px; }
@media (min-width: 900px) { .hero-top { grid-template-columns: auto minmax(300px, 1fr); column-gap: 56px; align-items: end; } .hero-row { padding-bottom: 6px; } }
.hero-shot { margin-top: clamp(24px, 3.5vw, 40px); }
.hero-shot > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 720px) { .hero-shot > img { aspect-ratio: 2 / 1; } }
@media (min-width: 1100px) { .hero-shot > img { aspect-ratio: 5 / 2; object-position: 50% 66%; } }
.cap { margin-top: 12px; color: var(--mute); font-size: .9375rem; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 14px; }
.hero-foot .cap { margin: 0; }
.school-line { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); font-size: .9375rem; }
/* The school's wordmark file is white on clear. On paper it is turned black; on the black footer it stays white. */
.wm { display: block; filter: brightness(0); }
.wm-light { filter: none; }

/* The bumper: the padded strip every robot wears, with the team number at each end. It sits across the base of
   the hero photo, and it is the button that swaps the site's accent colour. */
.bumper { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 84px; margin-top: -42px; padding: 0 clamp(16px, 3vw, 36px); border: 0; border-radius: var(--bumper-r); background: var(--accent); color: var(--on-accent); text-align: center; transition: background-color .25s ease; box-shadow: inset 0 -6px 0 var(--bumper-shade), inset 0 2px 0 var(--bumper-shine); }
.bumper:hover { background: var(--accent-press); }
.bumper:focus-visible { outline-offset: 4px; }
.bumper-n { font-family: var(--display); font-weight: 900; font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; letter-spacing: .03em; }
.bumper-t { font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 719px) { .bumper { min-height: 64px; margin-top: -32px; } .bumper-n + .bumper-t + .bumper-n { display: none; } }
@media (prefers-reduced-motion: reduce) { .bumper { transition: none; } }

/* ---------- home: schedule ---------- */
.sched { width: 100%; border-collapse: collapse; }
.sched caption { text-align: left; }
.sched th, .sched td { padding: 18px 20px 18px 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--rule); }
.sched thead th { padding-block: 0 10px; border-top: 0; color: var(--mute); font-size: .9375rem; font-weight: 600; }
.sched tbody tr:first-child th, .sched tbody tr:first-child td { border-top: 3px solid var(--ink); }
.sched tbody th { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.05; }
.sched .next th { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: .95; }
.sched td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.sched .when { white-space: nowrap; }
.count-big { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; }
@media (max-width: 719px) {
  .sched thead { display: none; }
  .sched tr { display: grid; gap: 2px; padding-block: 16px; border-top: 1px solid var(--rule); }
  .sched tbody tr:first-child { border-top: 3px solid var(--ink); }
  .sched th, .sched td, .sched tbody tr:first-child th, .sched tbody tr:first-child td { display: block; padding: 0; border: 0; }
  .sched td:last-child { text-align: left; margin-top: 6px; font-weight: 700; }
  .sched td:empty { display: none; }
}

/* ---------- season log ---------- */
.record-line { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); max-width: 34em; }
.log-hint { margin-top: 6px; color: var(--mute); font-size: .9375rem; }
.log-scroll { position: relative; margin-top: 28px; overflow-x: auto; }
.log { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); min-width: 1044px; border-bottom: 3px solid var(--ink); }
.log-col { display: grid; grid-template-rows: 96px auto auto; justify-items: center; padding: 8px 2px 10px; color: var(--ink); text-decoration: none; }
a.log-col:hover { background: var(--floor); }
.band-floor a.log-col:hover { background: var(--paper); }
.log-marks { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; align-self: end; padding-bottom: 10px; }
.log-marks svg { display: block; }
.log-year { font-family: var(--display); font-weight: 900; font-size: 1.375rem; line-height: 1; }
.log-name { margin-top: 4px; min-height: 2.4em; max-width: 100%; overflow-wrap: break-word; color: var(--mute); font-size: .6875rem; line-height: 1.2; text-align: center; }
.log-none { color: var(--mute); }
.m-ink { fill: var(--ink); } .m-win { fill: var(--accent); } .m-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; font-size: .9375rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- robots ---------- */
.star { display: grid; gap: 28px; }
@media (min-width: 900px) { .star { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: start; } }
.shot { display: block; background: var(--floor); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.r43 { aspect-ratio: 4 / 3; } .r32 { aspect-ratio: 3 / 2; } .r11 { aspect-ratio: 1; }
.robot-a { display: block; color: var(--ink); text-decoration: none; }
.robot-a:hover .robot-name { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.robot-yr { font-family: var(--display); font-weight: 900; font-size: 1.375rem; line-height: 1; color: var(--accent); }
.robot-name { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; }
.robot-big .robot-name { font-size: clamp(2.5rem, 5vw, 4rem); }
.robot-meta { margin-top: 12px; display: grid; gap: 4px; }
.robot-line { color: var(--text-2); }
.roster { display: grid; }
.roster li + li { border-top: 1px solid var(--rule); }
.roster .robot-a { display: grid; grid-template-columns: clamp(120px, 34%, 190px) minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 16px; }
.roster li:first-child .robot-a { padding-top: 0; }
.roster .robot-meta { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; margin-top: 24px; }
.gallery .robot-meta { margin-top: 14px; }
.ph { display: grid; place-content: center; justify-items: center; width: 100%; height: 100%; background: var(--floor); color: var(--mute); }
.band-floor .ph { background: var(--paper); }
.ph b { font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: 1; color: var(--rule); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--bumper-r); background: none; font-weight: 600; font-size: .9375rem; }
.filter:hover { background: var(--paper); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- lists of facts ---------- */
.dated { display: grid; max-width: 860px; }
.dated li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--rule); }
.dated li:first-child { border-top: 3px solid var(--ink); }
.dated b { font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1; }
.sheet { display: grid; }
.sheet > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.sheet > div:first-child { border-top: 3px solid var(--ink); }
.sheet dt { color: var(--mute); }
.sheet dd { font-weight: 600; }
.names { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.names li { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.links { display: grid; max-width: 760px; }
.links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 13px; border-top: 1px solid var(--rule); }
.links li:first-child { border-top: 3px solid var(--ink); }
.links a { font-weight: 600; }

/* ---------- ways in, workshop ---------- */
.doors li { padding-block: 22px; border-top: 1px solid var(--rule); }
.doors li:first-child { padding-top: 0; border-top: 0; }
.doors h3 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; }
.doors p { margin-top: 8px; max-width: 30em; color: var(--text-2); }
.doors a { display: inline-block; margin-top: 10px; }
.tools { columns: 2; column-gap: 32px; margin-top: 20px; }
.tools li { break-inside: avoid; padding-block: 9px; border-top: 1px solid var(--rule); font-weight: 600; }
@media (max-width: 480px) { .tools { columns: 1; } }

/* ---------- page head, section rows ---------- */
.crumb { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 36px; border-top: 3px solid var(--ink); }
.sec-body { min-width: 0; }
.sec h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
@media (min-width: 900px) { .sec { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 32px; } }
.sec-body > * + * { margin-top: 14px; }
.sec-body p { max-width: 68ch; }
.specs { display: grid; max-width: 760px; }
.specs > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding-block: 11px; border-top: 1px solid var(--rule); }
.specs > div:first-child { border-top: 0; padding-top: 0; }
.specs dt { color: var(--mute); }
.specs dd { font-weight: 600; }
.mech { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mech p { margin-top: 4px; color: var(--text-2); }
/* position: the hidden "opens in a new tab" text inside must stay inside the scrolling box. */
.tbl-scroll { position: relative; overflow-x: auto; }
.tbl { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 12px 16px 12px 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--rule); }
.tbl thead th { padding-top: 0; border-top: 0; color: var(--mute); font-size: .9375rem; font-weight: 600; }
.tbl tbody th { font-weight: 700; }
.tbl .won { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.pn { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 3px solid var(--ink); }
.pn a { font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.status-on::before { background: var(--accent); border-color: var(--accent); }
.statlist li { padding-block: 2px; }

/* ---------- about ---------- */
.values { display: grid; gap: 0 48px; }
@media (min-width: 720px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--rule); }
.values b { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.grew li { display: grid; gap: 8px 32px; padding-block: 28px; border-top: 1px solid var(--rule); }
.grew li:first-child { border-top: 3px solid var(--ink); }
@media (min-width: 720px) { .grew li { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; } }
.grew .yr { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: .85; }
.grew p { max-width: 60ch; font-size: 1.125rem; }
.grew p + p { margin-top: 10px; }
.grew .shot { max-width: 420px; margin-top: 16px; }
.school { padding: 28px; background: var(--floor); }
.school .wm { width: 230px; max-width: 100%; height: auto; margin-bottom: 12px; }
.school p + p { margin-top: 12px; }
.disc { border-top: 1px solid var(--rule); }
.disc:last-child { border-bottom: 1px solid var(--rule); }
.disc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.disc summary::-webkit-details-marker { display: none; }
.disc summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: .6; }
.disc[open] summary::after { content: "\2212"; }
.disc > :not(summary) { max-width: 68ch; margin-bottom: 16px; }
.disc ul { padding-left: 1.2em; list-style: disc; }
.disc li + li { margin-top: 4px; }
.disc-2 { display: grid; gap: 0 48px; }
@media (min-width: 900px) { .disc-2 { grid-template-columns: 1fr 1fr; align-items: start; } .disc-2 .disc { border-bottom: 1px solid var(--rule); } }

/* ---------- join ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 3px solid var(--ink); }
.tabbtn { padding: 0 0 10px; border: 0; border-bottom: 6px solid transparent; margin-bottom: -3px; background: none; font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1; color: var(--mute); }
.tabbtn:hover { color: var(--ink); }
.tabbtn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel { padding-top: 32px; }
.roles { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-block: 28px; }
.roles p { margin-top: 4px; color: var(--text-2); }
.year { display: grid; gap: 0; counter-reset: none; }
.year li { padding-block: 22px; border-top: 1px solid var(--rule); }
.year li:first-child { border-top: 3px solid var(--ink); }
@media (min-width: 900px) {
  .year { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-top: 3px solid var(--ink); }
  .year li, .year li:first-child { border-top: 0; padding-top: 20px; }
}
.year .when { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--ink); }
.year h3 { margin-top: 10px; }
.year p { margin-top: 4px; color: var(--text-2); }

/* ---------- resources ---------- */
.res-tools { display: grid; gap: 20px; margin-top: 28px; }
.field { display: grid; gap: 6px; max-width: 420px; }
.field label { font-weight: 600; }
.field input { min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); }
.res-cols { columns: 2 340px; column-gap: 48px; margin-top: 12px; }
.res-cat { break-inside: avoid; padding-top: 28px; }
.res-cat h2 { font-size: 1.75rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.res-list li { padding-block: 11px; border-bottom: 1px solid var(--rule); }
.res-list a { font-weight: 600; }
.res-note { display: block; color: var(--mute); font-size: .9375rem; }
.asbtn { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- outreach, contact ---------- */
.events { display: grid; gap: 40px 32px; margin-top: 32px; }
@media (min-width: 720px) { .events { grid-template-columns: 1fr 1fr; } }
.events h2 { margin-top: 14px; font-size: 2rem; }
.events p { margin-top: 6px; color: var(--text-2); }
.contact h2 { font-size: 2rem; }
.contact > div > * + h2 { margin-top: 36px; }
.contact h2 + * { margin-top: 10px; }
.contact p + p { margin-top: 10px; }
.addr-big .addr-t { font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1; }
.routes li { border-top: 1px solid var(--rule); }
.routes li:first-child { border-top: 3px solid var(--ink); }
.routes a { display: block; padding-block: 16px; font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 6vw, 72px) 28px; }
.ftr a { color: var(--paper); }
.ftr :focus-visible { outline-color: var(--paper); }
.ftr-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); column-gap: 48px; } }
.ftr-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; align-self: start; }
.ftr-id img { width: 104px; height: 104px; border-radius: 50%; }
.ftr-name { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.75rem); line-height: .95; }
.ftr-id p + p { margin-top: 8px; color: var(--ftr-text); }
.ftr h2 { font-family: var(--text); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.ftr-pages { columns: 2; column-gap: 32px; }
.ftr-pages li { break-inside: avoid; padding-block: 5px; }
.ftr-contact p + p { margin-top: 12px; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ftr-rule); color: var(--ftr-text); font-size: .9375rem; }

/* ---------- sections the live site keeps that the demo has no place for (D190) ----------
   Each is drawn with the demo's own parts: rules between rows, square photos, text links, no new look. */
/* the header's Dawson "D" and the brand logo come from content; the badge is removed if its file fails to load */
.hdr-school img { display: block; width: 42px; height: auto; }
/* robot without a photo on the Robots page: the "Photo wanted" tile is a mail link of its own */
a.shot { text-decoration: none; }
a.shot:hover .ph span { text-decoration: underline; }
/* awards on a robot page and "Winner" in the results: the banner mark and the words */
.awards { display: grid; gap: 6px; }
.awards li, .won-line { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
/* a robot's photo gallery, Media's photo grid: square photos in a grid, no frames */
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pics a { display: block; }
.cap-src { margin-top: 8px; color: var(--mute); font-size: .9375rem; }
/* sponsor logos: a real logo is made for white, so it sits on the page as it is; its name shows if the file fails */
.names .logo-tile img { display: block; width: auto; max-width: 220px; height: 72px; object-fit: contain; }
.names .logo-tile a { display: inline-block; }
.names .logo-tile .sp-name { display: none; }
.names .logo-tile.logo-failed img { display: none; }
.names .logo-tile.logo-failed .sp-name { display: inline; }
.names .editor-empty, .names .logo { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--mute); }
.names a { color: var(--ink); }
.tier-banner { width: 100%; margin-top: 24px; aspect-ratio: 3 / 1; object-fit: cover; }
/* Resources: code, CAD and the Team Drive; the access requests */
.access { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.access > div { padding-top: 16px; border-top: 3px solid var(--ink); }
.access p { margin-top: 4px; color: var(--text-2); }
.access a { display: inline-block; margin-top: 10px; }
/* an outreach event's date, when it is not "Annual" */
.when-line { margin-top: 14px; color: var(--mute); font-weight: 600; }
.events .when-line + h2 { margin-top: 4px; }
.empty-note { color: var(--mute); }
/* Privacy and Terms */
.legal { max-width: 68ch; }
.legal h2 { margin-top: 40px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 1em; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal-date { color: var(--mute); }
/* links in a long sentence wrap anywhere rather than push the page sideways */
.addr-t, .legal a { overflow-wrap: anywhere; }
/* the copy button and the menu are touch targets: at least 44px on a phone */
@media (max-width: 899px) { .copy, .filter, .btn-sm { min-height: 44px; } }
.next-band { margin-top: clamp(40px, 6vw, 72px); }
.next-none { margin-top: 12px; max-width: 40em; }
.more { margin-top: 20px; }
.access-note { margin-top: 20px; }
.ftr-legal { display: inline-flex; gap: 20px; }
.names img.logo { width: auto; height: 48px; }
.hero-shot.no-photo .bumper { margin-top: 0; }
.band .doors-split, .band .home-names { margin-top: 28px; }
/* page heads and gaps the demo set inline */
h1 + .lead, .stack > h1 + .lead { margin-top: 16px; }
.robots-record { margin-top: 36px; }
.h2-gap { margin-top: 56px; }
.band .count { margin-top: 12px; }
.measure { max-width: 60ch; }
.robot-head { padding-bottom: 48px; }
.robot-yr-lg { font-size: 1.75rem; }
.robot-head h1 { margin-top: 6px; }
.robot-tail { padding-bottom: clamp(48px, 7vw, 96px); }
.links + .links li:first-child { border-top: 1px solid var(--rule); }
/* About, Sponsors, Join */
.band .about-top { margin-top: 40px; }
.about-disc { margin-top: 48px; }
.band .values, .band .grew, .band .year { margin-top: 28px; }
.grew-after { margin-top: 32px; }
.packet { margin-top: 28px; }
.band .built { margin-top: 32px; }
.band .tier-names { margin-top: 28px; }
.join { margin-top: 40px; }
a.tabbtn { text-decoration: none; }
.tabbtn[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.h3, .roles h2 { font-family: var(--text); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.first-h { margin-top: 36px; }
.prose .first-links { margin-top: 12px; }
.no-pic > .s7 { grid-column: 1 / -1; }
/* Resources, Outreach, Media, Contact, Privacy and Terms */
.res-count { margin-top: 20px; }
.res-none { padding-top: 28px; }
.band .team-tools { margin-top: 24px; }
.band .cad { max-width: 820px; margin-top: 24px; }
.cad .disc ul { padding-left: 1.2em; list-style: disc; }
.intro { margin-top: 16px; }
.media-head { padding-bottom: 0; }
.media-body { padding-block: 48px clamp(48px, 7vw, 96px); }
.band .contact { margin-top: 48px; }
.legal-head { padding-bottom: 0; }
/* touch targets: the Dawson D and the wordmark links are at least 44px tall */
.hdr-school { display: flex; align-items: center; min-height: 44px; }
.wm-link { display: inline-flex; align-items: center; min-height: 44px; }
.brand { min-height: 44px; }
.ftr-legal a { display: inline-flex; align-items: center; min-height: 44px; }
/* The header is drawn inside <div id="site-header">: the wrapper is what sticks (a sticky child only sticks within it). */
#site-header { position: sticky; top: 0; z-index: 50; }
/* The Website editor's preview only: a spot for a photo field with nothing to show, and an unset date (editorPhotoSpot) */
.editor-photo { display: grid; place-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 16px; background: var(--floor); color: var(--mute); font-weight: 600; text-align: center; }
.editor-photo.r11 { aspect-ratio: 1; } .editor-photo.r32 { aspect-ratio: 3 / 2; }
.editor-photo.editor-hero { aspect-ratio: 5 / 2; }
.editor-photo.tier-banner { aspect-ratio: 3 / 1; margin-top: 24px; }
.when-line.editor-empty { font-style: italic; }

/* ---------- release 8.5: Guides, Our tools, Safety, Privacy and Home's new parts (A1-A6) ----------
   From public-redesign-demo/v8.2 branch auton-ideas (site.css, "our tools, safety, privacy"); the demo's inline
   styles are the classes at the end of this block. Tokens only. */
/* Lists of facts with a bold lead: a black rule where the list starts, thin rules between. Inside a section row the
   section's own black rule is already there, so the list starts with a thin one. */
.meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; color: var(--mute); font-size: .9375rem; }
.facts { display: grid; max-width: 860px; }
.facts li { padding-block: 12px; border-top: 1px solid var(--rule); }
.facts li:first-child { border-top: 3px solid var(--ink); }
.facts-in li:first-child, .sec-body .facts li:first-child { border-top: 1px solid var(--rule); }
.sec-body .facts { max-width: 68ch; }
@media (min-width: 900px) {
  .facts-2 { grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: none; }
  .facts-2 li:nth-child(2) { border-top: 3px solid var(--ink); }
}
.steps { display: grid; margin-top: 28px; }
.steps li { padding-block: 22px; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 3px solid var(--ink); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 3px solid var(--ink); }
  .steps li, .steps li:first-child { border-top: 0; padding-top: 20px; }
}
.step-n { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; }
.steps h3 { margin-top: 10px; }
.steps p:not(.step-n) { margin-top: 4px; max-width: 34em; color: var(--text-2); }
.faq { max-width: 820px; margin-top: 24px; }
.crisis { display: grid; max-width: 860px; margin-top: 20px; }
.crisis li { display: grid; gap: 2px 24px; padding-block: 14px; border-top: 1px solid var(--rule); align-items: baseline; }
.crisis li:first-child { border-top: 3px solid var(--ink); }
@media (min-width: 480px) { .crisis li { grid-template-columns: 9rem minmax(0, 1fr); } }
.crisis-n { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.25rem); line-height: 1; }
.tbd { font-style: italic; border-bottom: 2px dashed currentColor; }
.changes { display: grid; max-width: 68ch; }
.changes li { display: grid; gap: 2px 16px; padding-block: 12px; border-top: 1px solid var(--rule); }
.changes li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 480px) { .changes li { grid-template-columns: 7.5rem minmax(0, 1fr); } }
/* A band that holds section rows: the rows bring their own space. */
.band-rows { padding-block: 24px clamp(32px, 5vw, 64px); }
/* What the demo set inline. */
.band-head { padding-bottom: 40px; }
.rows { padding-bottom: clamp(48px, 7vw, 96px); }
.rows-tight { padding-block: 40px clamp(48px, 7vw, 96px); }
.band-tight { padding-block: 40px; }
.page-intro { margin-top: 20px; }
.tools-built, .crisis-after { max-width: 68ch; }
.crisis-after { margin-top: 16px; }
.talk-line { max-width: 60ch; }
.band .facts-wrap { margin-top: 24px; }
.band h2 + .linkrow { margin-top: 16px; }
.legal-facts h2 + .facts { margin-top: 24px; }
.legal li > strong:first-child { font-weight: 700; }
/* Guides in the nav: from 900 to 1099 px six links and the login sit closer, so "2972 Team" keeps its room. */
@media (min-width: 900px) and (max-width: 1099px) { .hdr-in { gap: 10px; } .nav-a { padding-inline: 7px; } .nav .btn { margin-left: 6px; padding: 0 12px; } }
/* The narrowest phones: "2972 Team" and the Menu button must both fit. */
@media (max-width: 359px) { .hdr-in { gap: 8px; } .hdr-school { padding-right: 8px; } .brand { gap: 8px; } .brand-n, .brand-one { font-size: 1.25rem; } .menu-btn { padding: 0 12px; } }
.ftr-legal { flex-wrap: wrap; row-gap: 0; }
/* Touch areas on a phone (Sol finding 4): the breadcrumb, the link rows, Home's doors and a text link
   alone in its paragraph are at least 44px tall. */
.linkrow a, .crumb, .doors a, .crisis-n, p > .textlink:only-child { display: inline-flex; align-items: center; min-height: 44px; }
/* Safety (D256): the two safety contacts, one line each, with a thin rule between. */
.contacts li { padding-block: 10px; border-top: 1px solid var(--rule); }
.contacts li:first-child { border-top: 0; padding-top: 0; }

/* ---------- video inlay (release 8.5, D262; js/components.js videoInlay(); the list is VIDEOS in js/content.js) ----------
   A fixed 16:9 box: the poster (kept on the team's own server) and then the player fill the same space, so nothing moves
   when a video starts. The poster is the button; its Play mark is a padded, bumper-coloured thing. */
.vid { min-width: 0; }
.vid-box { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.vid-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; background: var(--ink); color: var(--paper); text-align: left; cursor: pointer; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; }
.vid-ph { display: grid; place-content: center; height: 100%; padding: 24px 24px 72px; font-weight: 700; font-size: 1.25rem; text-align: center; }
.vid-btn { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border-radius: var(--bumper-r); background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 2px var(--paper); }
.vid-play:hover .vid-btn { background: var(--accent-press); }
.vid-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vid-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-cap { margin-top: 14px; }
.vid-t { font-size: 1.1875rem; }
.vid-cap p { margin-top: 4px; max-width: 62ch; color: var(--text-2); }
.vid-cap .vid-next { margin-top: 8px; color: var(--ink); }
.vid-cap .vid-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; color: var(--mute); font-size: .9375rem; }
.vid-foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* The game on a robot page: the animation, a match with our robot and that year's Kickoff. Phone: one under the other.
   From 900 px: two side by side (the Kickoff under the first). One alone keeps 720 px. */
.vid-pair { display: grid; gap: 36px 32px; margin-top: 20px; max-width: 720px; }
@media (min-width: 900px) { .vid-pair-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; } }
/* Our tools: a screen from the apps demo under each tool. */
.app-shot { max-width: 900px; margin-top: 8px; }
.app-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.app-shot .cap { margin-top: 8px; }
