/* Interim brand font until New Hero is available: Outfit, with Noto Sans for other scripts.
   Both are SIL Open Font License fonts, self-hosted in assets/fonts (licenses alongside).
   Browsers only download a file when the page uses characters in its unicode-range. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/noto-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #172b35;
  --muted: #52636c;
  --paper: #f4f7f7;
  --line: #d6dfe1;
  --line-soft: #e6ecee;
  --raised: #edf1f2;
  --accent: #d22630;
  --accent-soft: #fceef0;
  --font: "Outfit", "Noto Sans", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
/* New Hero (Adobe Fonts) replaces Outfit once audience.js confirms it loaded; Outfit stays the fallback. */
html.brand-font { --font: "new-hero", "Outfit", "Noto Sans", Arial, Helvetica, sans-serif; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
body[data-program="iq"] { --accent: #006baf; --accent-soft: #eaf4fb; }
body[data-program="v5"] { --accent: #d22630; --accent-soft: #fceef0; }
body[data-program="air"] { --accent: #b03707; --accent-soft: #fdf0e9; }
a { color: var(--accent); text-underline-offset: 4px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #1c78b3; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { width: min(1248px, 100%); margin-inline: auto; padding-inline: 28px; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 50; padding: 12px 20px; background: var(--ink); color: white; border-radius: 4px; }
.skip-link:focus { top: 12px; }
main:focus, .article-section h2:focus { outline: none; }
.site-header { background: white; }
/* Top bar font and colors match education.vex.com; it is exempt from the site font. */
.global-bar { border-bottom: 5px solid #595959; line-height: 1.55; font-family: Arial, Helvetica, "Helvetica Neue", Verdana, sans-serif; }
.global-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 20px; min-width: 0; }
.corporate-brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.corporate-brand img { width: 78px; height: 38px; object-fit: contain; }
.site-brand { display: inline-flex; align-items: center; gap: 15px; min-width: 0; text-decoration: none; color: #212529; flex-shrink: 0; }
.brand-divider { width: 1px; height: 25px; background: #d4d9dc; }
.site-name { font-size: 23px; letter-spacing: -.035em; font-weight: 700; }
.site-shortcut { font-size: 14px; font-weight: 400; color: #5c707b; letter-spacing: 0; white-space: nowrap; padding-left: 15px; border-left: 1px solid #e0e6e8; line-height: 1.3; }
.site-brand:hover .site-shortcut { text-decoration: underline; text-underline-offset: 4px; }
.utility-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 22px; }
.utility-nav a { display: inline-flex; align-items: center; min-height: 36px; padding-block: 6px; font-size: 15px; line-height: 1.4; font-weight: 600; color: #006bb4; text-decoration: none; white-space: nowrap; }
.utility-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.platform-bar { border-bottom: 3px solid var(--accent); transition: border-color .15s; }
.platform-inner { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.home-link { display: flex; align-items: center; justify-content: center; align-self: stretch; width: 44px; color: #546773; flex-shrink: 0; text-decoration: none; }
/* Current and hovered tabs fill with the bar color, as on api.vex.com; the fill is at least 5:1 against the white bar. */
.home-link:hover, .home-link[aria-current="page"] { color: white; background: var(--accent); }
.platform-links { display: flex; align-self: stretch; gap: 6px; flex: 1; }
.platform-link { min-width: 92px; display: flex; align-items: center; justify-content: center; padding: 13px 20px; text-decoration: none; transition: background .15s; }
.platform-link img { height: 18px; width: auto; max-width: 65px; object-fit: contain; }
.platform-link[data-program-link="iq"] { --brand: #006baf; }
.platform-link[data-program-link="v5"] { --brand: #d22630; }
.platform-link[data-program-link="air"] { --brand: #b03707; }
.platform-link:hover, .platform-link[aria-current="page"] { background: var(--brand); }
/* Filled tabs switch to VEX's own white logo files (content.vexrobotics.com/vexheader), used unaltered. */
.platform-link .tab-logo-white, .platform-link:hover .tab-logo, .platform-link[aria-current="page"] .tab-logo { display: none; }
.platform-link:hover .tab-logo-white, .platform-link[aria-current="page"] .tab-logo-white { display: block; }
/* The white AIR file pads its mark (68% of its height), so it is drawn larger to match the colored mark's size and footprint. */
.platform-link[data-program-link="air"] .tab-logo-white { height: 26.6px; max-width: none; margin: -4.3px -10.35px; }
.foundation-brand { display: flex; align-items: center; margin-left: auto; padding: 6px 0 6px 12px; flex-shrink: 0; }
.foundation-brand img { display: block; width: auto; height: 28px; }
body[data-program="all"] main, body[data-program="all"] main > .container { display: flex; }
.home-selector { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 0; }
.home-title { margin: 0 0 24px; font-size: 28px; line-height: 1.2; text-align: center; }
.program-tiles { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.program-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 28px 24px 20px; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 12px; background: white; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile-iq { --brand: #006baf; --tint: #eaf4fb; }
.tile-v5 { --brand: #d22630; --tint: #fceef0; }
.tile-air { --brand: #b03707; --tint: #fdf0e9; }
.program-tile:hover { border-color: var(--brand); box-shadow: 0 8px 24px #172b3512; }
.program-tile:focus-visible { outline-color: var(--brand); outline-offset: 4px; }
.tile-logo { width: auto; height: 96px; max-width: 80%; object-fit: contain; }
.tile-note { min-height: 2.7em; font-size: 16px; line-height: 1.35; color: var(--muted); text-align: center; text-wrap: balance; }
.tile-field { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.learning-slogan { margin: 24px 0 0; padding: 16px 24px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--ink); text-align: center; font-size: 22px; line-height: 1.45; font-style: normal; font-weight: 600; }
.learning-slogan strong { font-weight: inherit; color: inherit; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 40px 0; }
.hero-copy { padding: 8px 0; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
h1 { font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -.02em; margin-bottom: 16px; }
.hero-intro { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 490px; }
.hero-slogan { font-size: 22px; line-height: 1.35; font-weight: 600; margin: 28px 0 12px; max-width: 480px; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 500px; }
.hero-media { margin: 0; }
.hero-photo { width: 100%; height: auto; border-radius: 8px; }
/* After a program switch, an empty frame replaces the old photo until the new one arrives. */
.hero-media.is-loading { border-radius: 8px; background: var(--raised); }
.hero-media.is-loading .hero-photo { opacity: 0; }
.guide-layout { display: grid; grid-template-columns: 204px minmax(0, 1fr); align-items: start; gap: 36px; padding: 0 0 64px; }
.guide-sidebar { position: sticky; top: 24px; }
.guide-navigation { padding-top: 24px; }
.contents-heading { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0 0 8px 16px; }
.contents-links { display: flex; flex-direction: column; gap: 2px; }
.contents-links a { display: block; padding: 8px 12px; border-left: 4px solid transparent; color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; }
.contents-links a:hover { color: var(--accent); background: var(--raised); }
.contents-links a[aria-current="location"] { border-left-color: var(--accent); color: var(--accent); font-weight: 600; background: white; }
.contents-toggle { display: none; }
.contents-links a.contents-sub { padding: 6px 12px 6px 28px; font-size: 13px; }
html.route-pending #home-view { display: none; }
/* audience.js never ran (blocked or failed to load): a guide page shows its guide, like the noscript view.
   The home page keeps its competition tiles, which are plain links. */
html.no-app body:not([data-program="all"]) #guide-view[hidden] { display: block !important; }
.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 4px 16px #172b3524; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 18px; height: 18px; }
.audience-article { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0 36px; }
.article-section { padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.article-section:last-child { border: 0; }
.article-section h2 { font-size: 28px; letter-spacing: -.01em; margin-bottom: 16px; }
.reg { position: relative; top: -.85em; margin-left: .04em; font-size: .5em; vertical-align: baseline; }
.article-section h3 { font-size: 22px; font-weight: 600; margin: 28px 0 12px; }
.article-section h4 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.article-section p { margin-bottom: 16px; }
.article-section p:last-child { margin-bottom: 0; }
.article-section ul, .article-section ol { padding-left: 24px; margin: 16px 0 24px; }
.article-section li { padding-left: 4px; margin: 8px 0; }
.article-section li::marker { color: var(--accent); font-weight: 600; }
.article-section strong { font-weight: 600; }
.section-photo { float: right; width: 38%; max-width: 310px; margin: 0 0 16px 24px; }
.section-photo img { width: 100%; height: auto; border-radius: 8px; }
.games-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.games-list:has(.game-guide[open]), body:not([data-program="all"]) .games-list { grid-template-columns: minmax(0, 1fr); }
.game-guide { border: 1px solid var(--line); border-top: 4px solid var(--game-color); border-radius: 8px; overflow: hidden; min-width: 0; }
.game-guide[data-program="iq"] { --game-color: #006baf; --game-tint: #eaf4fb; }
.game-guide[data-program="v5"] { --game-color: #d22630; --game-tint: #fceef0; }
.game-guide[data-program="air"] { --game-color: #b03707; --game-tint: #fdf0e9; }
.game-summary { list-style: none; cursor: pointer; padding: 20px 20px 12px; background: var(--paper); }
.game-summary::-webkit-details-marker { display: none; }
.game-summary:hover { background: var(--game-tint); }
.game-summary:focus-visible { outline-offset: -5px; }
.game-name { display: block; color: var(--game-color); font-size: 22px; line-height: 1.25; font-weight: 600; }
.game-action { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.game-action svg { width: 16px; height: 16px; }
.game-field { height: 180px; width: 100%; object-fit: contain; margin-top: 8px; mix-blend-mode: multiply; }
.game-guide[open] .game-summary { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 20px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.game-guide[open] .game-field { height: 128px; margin: 0; cursor: default; }
.game-guide[open] .game-action svg { transform: rotate(180deg); }
.game-guide:not([open]) .when-open, .game-guide[open] .when-closed { display: none; }
.game-content { padding: 24px; }
.video-player { position: relative; margin-bottom: 16px; }
/* While YouTube loads, the thumbnail stays on top of the player with a spinner. */
.video-player.is-loading .video-play { position: absolute; inset: 0; z-index: 1; cursor: progress; }
.video-player.is-loading .video-play-icon svg { display: none; }
.video-player.is-loading .video-play-icon::after { content: ""; width: 44px; height: 44px; border: 4px solid #ffffff59; border-top-color: white; border-radius: 50%; background: #212121b3; animation: video-spin .9s linear infinite; }
@keyframes video-spin { to { transform: rotate(360deg); } }
.video-player iframe, .video-play { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 4px; }
.video-play { position: relative; padding: 0; overflow: hidden; background: #000; cursor: pointer; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play-icon svg { width: 68px; height: 48px; fill: #212121e0; transition: fill .15s; }
.video-play-icon path { fill: white; }
.video-play:hover .video-play-icon svg, .video-play:focus-visible .video-play-icon svg { fill: var(--game-color); }
.game-content a { color: var(--game-color); }
.game-content .video-player + p { font-size: 13px; }
.table-wrap { width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--raised); }
td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--line-soft); }
td:first-child { width: 43%; }
.game-content td:first-child { width: 70%; }
td small { display: inline-block; font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Scoring cards: the image leads, with the point value large beneath it. */
.game-content .score-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0 24px; padding: 0; }
.game-content .score-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score-cards-two .score-media { height: 240px; }
.score-card { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.score-media { display: flex; align-items: center; justify-content: center; height: 170px; padding: 12px; background: var(--paper); }
.score-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.score-media .air-object-visual { width: 132px; }
.score-media .air-object-visual img { max-width: none; max-height: none; }
.score-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.score-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.score-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.score-points { margin: auto 0 0; padding-top: 8px; font-size: 14px; color: var(--muted); }
.score-points strong, .score-rows strong { margin-right: 4px; font-size: 28px; line-height: 1; color: var(--game-color); font-variant-numeric: tabular-nums; }
/* AIR numbers keep their pill padding at all times, so filling it when a value changes never moves anything. */
#air-scoring-table strong { display: inline-block; margin: 0 -1px 0 -5px; padding: 2px 5px; border-radius: 4px; }
.score-per { white-space: nowrap; }
.score-rows { display: grid; gap: 4px; margin: auto 0 0; padding-top: 8px; }
.score-rows div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.score-rows dt { font-size: 14px; color: var(--ink); }
.score-rows dd { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.score-rows strong { font-size: 22px; }
/* AIR scoring viewer: eight tiles in a 4 x 2 grid (2 across when narrower), then the two bonuses side by side,
   tight enough that a scoring system's changes fit on one screen. Image areas keep their size; only spacing shrinks. */
.game-guide[data-program="air"] .game-content { container-type: inline-size; }
.game-content #air-scoring-table { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
/* The id outranks .article-section li and p, whose margins and padding would otherwise widen every gap. */
#air-scoring-table .score-card { margin: 0; padding: 0; }
#air-scoring-table p { margin-bottom: 0; }
#air-scoring-table .score-media { height: 158px; padding: 8px; }
#air-scoring-table .score-body { gap: 4px; padding: 8px 8px 12px; }
#air-scoring-table .score-points { padding-top: 4px; }
#air-scoring-table .score-rows { gap: 2px; padding-top: 2px; }
#air-scoring-table .score-rows div { flex-wrap: nowrap; column-gap: 4px; padding-top: 2px; }
.score-card-wide { grid-column: 1 / -1; background: var(--game-tint); border-color: transparent; }
.score-card-wide .score-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 20px; }
.score-card-wide .score-note { grid-column: 1; }
.score-card-wide .score-points { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; text-align: right; }
/* AIR bonus cards stay white, since there the tint marks a changed value. They stack like the
   tiles, so a wider value (5 to 12 in System E) never wraps and pushes the page down. */
#air-scoring-table .score-card-wide { background: white; border-color: var(--line); }
#air-scoring-table .score-card-wide .score-body { display: flex; align-items: stretch; }
#air-scoring-table .score-card-wide .score-points { margin-top: auto; padding-top: 4px; text-align: left; }
@container (min-width: 560px) {
  #air-scoring-table .score-card-wide { grid-column: auto; }
}
/* 4 across from 815 px: the widest "Matching color 7 points" row needs 804 px in New Hero. */
@container (min-width: 815px) {
  .game-content #air-scoring-table { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #air-scoring-table .score-card-wide { grid-column: span 2; }
}
/* A changed value: thick outline, tinted card, and the number itself filled. */
.score-card.is-changed { outline: 3px solid var(--game-color); outline-offset: -3px; }
.score-card.is-changed .score-body { background: var(--game-tint); }
#air-scoring-table strong.is-changed { background: var(--game-color); color: white; }
/* Key terms: plain-English definitions; each term links to its official wording in the game manual. */
.key-terms { margin: 12px 0 16px; }
.key-terms div { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.key-terms div:last-child { border-bottom: 1px solid var(--line); }
.key-terms dt { font-weight: 600; }
/* Terms read as one quiet column: ink text, the program color only in the underline. */
.key-terms dt a { color: var(--ink); text-decoration-color: var(--game-color); }
.key-terms dt a:hover { color: var(--game-color); }
.key-terms dt a > span:not(.visually-hidden) { color: var(--muted); }
.key-terms dd { margin: 0; }
.game-content .score-caption { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--game-color); }
/* The longest caption (System E, 726 px in New Hero) wraps below 740 px, so every system keeps room for two lines. */
@container (max-width: 739px) {
  .game-content .score-caption { min-height: 3.2em; }
}
.air-scoring-picker { margin: 16px 0 0; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--game-tint); }
.air-scoring-picker legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.air-system-options { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
/* Wide screens: the label floats left and the letters (a flex container) sit beside it on one row. */
@container (min-width: 640px) {
  .air-scoring-picker legend { width: auto; margin: 0 16px 0 0; line-height: 70px; }
  .air-system-options { clear: none; }
}
.air-system-option { position: relative; display: flex; align-items: center; justify-content: center; width: 76px; height: 70px; border: 2px solid transparent; border-radius: 8px; background: white; cursor: pointer; transition: border-color .15s, opacity .15s; }
.air-system-option img { width: 60px; height: 56px; }
.air-system-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
/* 75% keeps every unselected letter at 3:1 or better against its hexagon (B is lowest, 3.3:1). */
.air-system-option:not(:has(input:checked)) { opacity: .75; }
.air-system-option:hover { opacity: 1; }
.air-system-option:has(input:checked) { border-color: var(--game-color); }
.air-system-option:has(input:focus-visible) { outline: 3px solid #1c78b3; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.air-object-visual { position: relative; display: block; width: 105px; max-width: 100%; margin: 0 auto; overflow: hidden; }
.air-object-visual img { position: absolute; left: 0; top: 0; max-width: none; height: auto; }
.air-orbit-ball { aspect-ratio: 661 / 625; }
.air-orbit-ball img { width: calc(100% * 1200 / 661); left: calc(-100% * 539 / 661); }
.air-cargo { aspect-ratio: 412 / 338; }
.air-cargo img { width: calc(100% * 1200 / 412); top: calc(-100% * 207 / 338); }
.awards-intro { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.awards-intro p { flex: 1; margin-bottom: 0; }
.award-figure { flex: 0 0 136px; margin: -48px 0 0; }
.award-photo { width: 136px; height: 160px; object-fit: contain; }
.student-centered-poster { position: relative; width: 100%; max-width: 680px; aspect-ratio: 2048 / 1034; overflow: hidden; margin: 24px auto; }
.student-centered-poster img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transform: translateY(calc(-100% * 220 / 1446)); }
#get-involved > p:last-child { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; font-size: 14px; color: var(--muted); }
/* Matches the shared VEX site footer on api.vex.com, including its system font stack: New Hero is for the page body only. */
.site-footer { background: white; padding: 48px 0 8px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; border-top: 1px solid #ccc; padding-top: 24px; text-align: center; }
.footer-logo img { display: block; width: 175px; height: auto; margin: 0 auto 16px; }
.footer-legal { margin: 0; font-size: 10px; line-height: 1.5; color: #000; }
.footer-legal a { color: #006bb4; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-social { display: flex; justify-content: center; margin-top: 16px; }
.footer-social a { padding: 4px; }
.footer-social img { display: block; width: 42px; height: 42px; }
/* Phones only: the foundation logo moves here because the program bar has no room for it. */
.footer-foundation { display: none; }
@media (max-width: 1100px) {
  .utility-nav { gap: 4px 17px; }
}
@media (max-width: 1000px) {
  .hero { gap: 32px; }
  .hero-slogan { font-size: 20px; margin-top: 20px; }
  .hero-intro { font-size: 16px; }
  .guide-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .audience-article { padding: 0 28px; }
  .game-name { font-size: 20px; }
  .game-summary { padding: 16px 16px 8px; }
  .game-field { height: 140px; }
  .foundation-brand img { height: 26px; }
}
@media (max-width: 820px) {
  .program-tiles { gap: 20px; }
  .program-tile { padding: 24px 20px 16px; }
  .container { padding-inline: 22px; }
  .global-inner { min-height: 50px; }
  .site-name { font-size: 21px; }
  .platform-inner { min-height: 44px; gap: 12px; }
  .platform-link { min-width: 82px; padding: 12px 18px; }
  .hero { padding: 28px 0 32px; gap: 24px; }
  .hero-description { font-size: 14px; }
  .hero-slogan { font-size: 20px; }
  .guide-layout { display: block; }
  .guide-sidebar { position: static; margin-bottom: 16px; }
  .guide-navigation { padding: 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
  .contents-heading { display: none; }
  .contents-toggle { display: flex; width: 100%; border: 0; background: transparent; align-items: center; justify-content: space-between; color: var(--ink); font-size: 14px; font-weight: 600; padding: 12px 16px; }
  .contents-toggle svg { width: 18px; height: 18px; }
  .contents-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .contents-links { display: none; padding: 4px 12px 12px; }
  .contents-links.is-open { display: flex; }
  .contents-links a { min-height: 44px; }
  .game-field { height: 180px; }
}
@media (max-width: 800px) {
  .global-inner { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 0; }
  .utility-nav { flex: 0 0 100%; justify-content: flex-start; gap: 0 18px; margin-top: 2px; }
}
@media (max-width: 680px) {
  .brand-lockup { gap: 14px; }
  .corporate-brand img { width: 66px; height: 32px; }
  .site-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .site-name { font-size: 21px; }
  .site-shortcut { border: 0; padding: 0; font-size: 11px; line-height: 1.2; }
  .global-inner { column-gap: 15px; }
  .utility-nav { gap: 0 14px; }
  .utility-nav a { min-height: 32px; font-size: 13px; }
}
@media (max-width: 720px) {
  .program-tiles { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 650px) {
  .global-inner { padding-inline: 18px; }
  .brand-divider { height: 21px; }
}
@media (max-width: 600px) {
  .learning-slogan { margin-top: 20px; padding: 12px 16px; font-size: 20px; }
  .home-selector { padding: 32px 0; }
  .home-title { font-size: 24px; margin-bottom: 16px; }
  .program-tiles { grid-template-columns: 1fr; gap: 20px; }
  .program-tile { gap: 8px; }
  .tile-note { min-height: 0; }
  .tile-logo { height: 84px; }
  .container { padding-inline: 18px; }
  .platform-inner { gap: 8px; }
  .platform-links { gap: 2px; }
  .platform-link { min-width: 65px; padding-inline: 15px; }
  .home-link { width: 36px; }
  /* Phones: the home icon and three tabs fill the bar, so the foundation logo shows in the footer instead. */
  .foundation-brand { display: none; }
  .footer-foundation { display: block; justify-self: center; margin-bottom: 18px; }
  .footer-foundation img { display: block; width: 220px; height: auto; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 28px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 8px; }
  h1 { font-size: 34px; margin-bottom: 12px; }
  .hero-intro { font-size: 16px; }
  .hero-slogan { font-size: 20px; max-width: 360px; margin: 20px 0 12px; }
  .hero-description { font-size: 14px; }
  .article-section { padding: 24px 0 28px; }
  .article-section h2 { font-size: 24px; }
  .article-section h3 { font-size: 20px; }
  .key-terms div { grid-template-columns: minmax(0, 1fr); }
  .section-photo { float: none; width: 100%; max-width: none; margin: 0 0 24px; }
  .games-list { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .game-summary { padding: 16px 16px 8px; }
  .game-field { height: 184px; }
  .game-guide[open] .game-summary { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .game-guide[open] .game-field { height: 160px; }
  .game-content .table-wrap { margin-inline: -4px; width: calc(100% + 8px); }
  .game-content .score-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .score-media, .score-cards-two .score-media { height: 120px; padding: 8px; }
  .score-media .air-object-visual { width: 96px; }
  .score-body { padding: 8px 12px 12px; }
  /* Same 100 px image area as before, with less space around it. */
  #air-scoring-table .score-media { height: 112px; padding: 6px 8px; }
  #air-scoring-table .score-body { padding: 8px 12px 12px; }
  /* "per pass" gets its own line, so a two-digit value (10 in System E) can't wrap it and move the page. */
  #air-scoring-table .score-card:not(.score-card-wide) .score-per { display: block; }
  .score-points strong { font-size: 24px; }
  .score-rows strong { font-size: 20px; }
  /* Narrow cards stack each row's label over its points so rows line up. */
  .score-cards:not(.score-cards-two) .score-rows div { display: block; }
  .air-system-options { flex-wrap: nowrap; gap: 8px; }
  .air-system-option { flex: 1 1 0; width: auto; min-width: 44px; height: 52px; }
  .air-system-option img { width: 100%; max-width: 40px; height: auto; }
  table { font-size: 13px; }
  th, td { padding: 8px 12px; }
  .awards-intro { gap: 16px; }
  .award-figure { flex-basis: 96px; margin-top: -48px; }
  .award-photo { width: 96px; height: 120px; }
  /* Phones: "In this guide" comes before the hero photo so it shows on the first screen. */
  #guide-view { display: flex; flex-direction: column; }
  .hero, .guide-layout { display: contents; }
  .hero-copy { order: 1; padding-top: 24px; }
  .guide-sidebar { order: 2; margin: 24px 0; }
  .hero-media { order: 3; margin-bottom: 28px; }
  .audience-article { order: 4; margin-bottom: 36px; }
  /* Phones: the article and game guide drop their side frames so content uses the full screen width. */
  .audience-article { margin-inline: -18px; padding: 0 18px; border-inline: 0; border-radius: 0; }
  .game-guide { margin-inline: -18px; border-inline: 0; border-radius: 0; }
  .game-content { padding: 16px 12px; }
  .air-scoring-picker { padding-inline: 8px; }
  /* Room for the longest caption (System E), so choosing a letter never pushes the cards down. */
  .game-content .score-caption { min-height: 4.8em; }
  .score-card-wide .score-body { grid-template-columns: minmax(0, 1fr); }
  .score-card-wide .score-points { grid-column: 1; grid-row: auto; padding-top: 8px; text-align: left; }
  .game-content .score-cards-two { grid-template-columns: minmax(0, 1fr); }
  .score-cards-two .score-media { height: 280px; }
}
@media (max-width: 991px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .global-inner { column-gap: 10px; padding-inline: 15px; }
  .brand-lockup { gap: 10px; }
  .corporate-brand img { width: 57px; height: 28px; }
  .brand-lockup .brand-divider { height: 27px; }
  .site-name { font-size: 19px; }
  .site-shortcut { font-size: 10px; }
  .utility-nav { column-gap: 10px; }
}
@media (max-width: 360px) {
  .utility-nav a { font-size: 12px; }
  .utility-nav { column-gap: 8px; }
  .game-guide { margin-inline: -16px; }
  .air-scoring-picker { padding-inline: 6px; }
  .air-system-options { gap: 4px; }
  .platform-link { min-width: 59px; padding-inline: 12px; }
  .audience-article { padding-inline: 16px; }
}
@media (max-width: 300px) {
  .platform-link { min-width: 0; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .guide-sidebar, .site-footer, .game-action { display: none; }
  body { background: white; }
  .container { width: 100%; padding: 0; }
  .hero { padding-top: 0; }
  .guide-layout { display: block; }
  .audience-article { padding: 0; border: 0; }
  .article-section { break-inside: avoid; }
  /* iubenda's cookie banner, its preferences panel, its floating button and the US links it adds below the
     footer (audience.vex.com only; IUBENDA_SCRIPT in tools/build_site.py). iubenda's stylesheet loads after this
     one and shows them with !important; an !important declaration in a layer outranks every unlayered one. */
  @layer print-overrides {
    #iubenda-cs-banner, #iubenda-iframe, .iubenda-tp-btn, .iubenda-uspr-btn, .iub__us-widget { display: none !important; }
  }
}
