/* Aces High Special Events - design system from the homepage redesign
   handoff: warm-charcoal + gold, Oswald headings / Source Sans body.

   This is the single stylesheet for the whole site. Joomla loads it from
   the template; the standalone log app links the same file, so the CMS
   pages and the event logs cannot drift apart. */
:root {
  --bg:        oklch(18% 0.008 130);
  --panel:     oklch(15% 0.008 130);
  --panel-alt: oklch(22% 0.015 130);
  --border:    oklch(30% 0.02 130);
  --header-bg: oklch(24% 0.03 130 / 0.97);
  --dark:      oklch(12% 0.01 130);
  --text:      oklch(94% 0.005 130);
  --muted:     oklch(74% 0.01 130);
  --heading:   oklch(96% 0.006 130);
  /* Accent (tweakable): gold. Alternates in the handoff were burnt
     orange oklch(70% 0.14 50), olive oklch(75% 0.15 145), red oklch(70% 0.1 25). */
  --accent:        oklch(72% 0.13 85);
  --accent-bright: oklch(85% 0.13 85);
  --link:          oklch(78% 0.11 85);
  --red:   oklch(63% 0.19 25);
  --green: oklch(70% 0.14 145);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, .oswald { font-family: "Oswald", sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-bright); text-decoration: underline; }
img { max-width: 100%; height: auto; }
::selection { background: oklch(45% 0.06 130); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Page shell: sticky footer without inline styles. */
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid oklch(40% 0.03 130);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.emblem { color: var(--accent); display: block; }
.wordmark { line-height: 1.1; }
.wordmark .w1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .5px; color: var(--heading); }
.wordmark .w2 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2.5px; color: var(--accent); text-transform: uppercase; }

.mainnav { display: flex; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; }
/* Direct children when the template renders the fallback nav, plus the
   <ul>/<li> markup Joomla's mod_menu emits into the same slot. */
.mainnav > a,
.mainnav .nav-dropdown-toggle,
.mainnav ul.mod-menu > li > a,
.mainnav ul.mod-menu > li > span,
/* A menu item of type "heading" is a <button> wrapping a <span>, not a bare
   span — so it needs styling here or the top-level parents ("Events",
   "Sign-ups", "CM Admin") render as unstyled browser buttons. */
.mainnav ul.mod-menu > li > button {
  display: block;
  padding: 10px 12px; border-radius: 6px; color: oklch(90% 0.01 130);
  font-weight: 600; font-size: 14px; letter-spacing: .3px; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.mainnav ul.mod-menu > li > button { display: flex; align-items: center; gap: 4px; }
.mainnav > a:hover,
.mainnav .nav-dropdown-toggle:hover,
.mainnav ul.mod-menu > li > button:hover,
.mainnav ul.mod-menu > li > a:hover { background: oklch(32% 0.03 130); color: var(--heading); text-decoration: none; }
/* The chevron is Joomla's own icon font, which this template does not load.
   A CSS triangle says the same thing without the dependency. */
.mainnav ul.mod-menu .icon-chevron-down::before {
  content: ""; display: inline-block;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px); opacity: .7;
}
.mainnav > a.active,
.mainnav ul.mod-menu > li.current > a,
.mainnav ul.mod-menu > li.active > a { color: var(--accent); }

/* Joomla menu module: strip list chrome so it lays out like the flex nav. */
.mainnav ul.mod-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav ul.mod-menu li { position: relative; }
/* Second level renders as the "Other Events" style dropdown. */
.mainnav ul.mod-menu ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 210px; list-style: none; margin: 0; padding: 6px;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
/* Third level (Events > Scenarios > ..., CM Admin > CM Info > ...) opens to
   the side. Left at top:100% it would land underneath its own parent. */
.mainnav ul.mod-menu ul ul { top: 0; left: 100%; margin-left: 4px; }
.mainnav ul.mod-menu li:hover > ul,
.mainnav ul.mod-menu li:focus-within > ul { display: block; }
.mainnav ul.mod-menu ul a {
  display: block; padding: 8px 12px; border-radius: 5px; color: oklch(90% 0.01 130);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.mainnav ul.mod-menu ul a:hover { background: oklch(32% 0.03 130); color: var(--heading); text-decoration: none; }

/* Fallback "Other Events" dropdown (pure CSS: hover or keyboard focus). */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 210px; background: var(--header-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 8px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: 5px; color: oklch(90% 0.01 130);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: oklch(32% 0.03 130); color: var(--heading); text-decoration: none; }

.btn-login {
  display: inline-block;
  padding: 9px 16px; border: 1px solid var(--accent); border-radius: 6px;
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent);
  white-space: nowrap; flex-shrink: 0; background: none; cursor: pointer;
}
.btn-login:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

.topbar { background: var(--dark); border-bottom: 1px solid var(--border); font-size: 13px; }
.topbar > div { max-width: 1280px; margin: 0 auto; padding: 6px 24px; }

/* ---------- generic layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.wrap.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .wrap.has-sidebar { grid-template-columns: minmax(0, 1fr); } }
.section { max-width: 1280px; margin: 0 auto; padding: 40px 24px; width: 100%; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 8px; }
.section-head h2, .section h2, .wrap h2 { margin: 0; font-size: 24px; font-weight: 600; color: var(--heading); }
.muted { color: var(--muted); }
.pill { display: inline-block; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--muted); }
.overflow { overflow-x: auto; }
.lead { max-width: 820px; font-size: 17px; line-height: 1.7; color: oklch(88% 0.008 130); margin: 0 0 16px; }

/* ---------- hero carousel ---------- */
/* Banner aspect matches the cropped screenshots (2.6:1) so cover barely
   crops; max-height caps it on ultrawide screens, min-height keeps it
   usable on phones. */
.hero-carousel { position: relative; width: 100%; aspect-ratio: 2.6 / 1; max-height: 560px; min-height: 220px; overflow: hidden; background: var(--dark); }
.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.hero-slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; }
/* Compact scrim: just enough dark behind the tagline for legibility,
   fading out by ~28% so it doesn't blank the shot. */
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, oklch(12% 0.01 130 / 0.78) 0%, oklch(12% 0.01 130 / 0.25) 14%, transparent 28%); }
.hero-tagline { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 5vw; pointer-events: none; }
.hero-tagline div { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(34px,5vw,60px); letter-spacing: 1px; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 4px 24px rgba(0,0,0,.6); }
.hero-tagline .accent { color: var(--accent); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid oklch(80% 0.01 130 / 0.4); background: oklch(20% 0.01 130 / 0.5);
  color: oklch(95% 0.01 130); font-size: 20px; cursor: pointer; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.hero-prev { left: 20px; } .hero-next { right: 20px; }
.hero-dots { position: absolute; bottom: 20px; right: 32px; display: flex; gap: 8px; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: oklch(60% 0.01 130 / 0.6); cursor: pointer; padding: 0; }
.hero-dots .dot.active { background: var(--accent); }
.hero-credit { max-width: 1280px; margin: 0 auto; padding: 6px 24px 0; }

/* ---------- about chip + intro ---------- */
.about-chip { display: inline-block; background: var(--panel); padding: 10px 20px; transform: rotate(-.5deg); margin-bottom: 24px; }
.about-chip h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: .5px; color: var(--heading); }

/* ---------- cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.type-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px; color: var(--text); animation: fadeUp .5s ease both; display: block; }
.type-card:hover { border-color: var(--accent); text-decoration: none; }
.type-card h3 { margin: 0 0 8px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 19px; color: var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.type-card .count { background: var(--panel-alt); color: var(--accent); font-size: 13px; border-radius: 999px; padding: 1px 10px; }
.type-card p { margin: 0; font-size: 15px; line-height: 1.65; color: oklch(82% 0.008 130); }

/* ---------- recent event log cards ---------- */
.log-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.log-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: var(--text); display: block; }
.log-card:hover { border-color: var(--accent); text-decoration: none; }
.log-card .thumb { width: 100%; height: 150px; background-size: cover; background-position: center; background-color: var(--dark); }
.log-card .body { padding: 16px 18px; }
.log-card .date { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.log-card .lc-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--heading); }
.log-card .summary { font-size: 14px; color: oklch(78% 0.01 130); line-height: 1.5; }

/* ---------- announcements ---------- */
.news { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; }
.news-row { background: var(--panel); padding: 18px 22px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.news-row .n-date { font-size: 13px; color: var(--muted); min-width: 90px; }
.news-row .n-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--heading); }
.news-row .n-body { font-size: 14px; color: oklch(80% 0.01 130); line-height: 1.5; }

/* ---------- CM team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.team-member { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  background: var(--panel-alt); border: 2px solid var(--accent); color: var(--accent); font-family: "Oswald", sans-serif; font-weight: 600; font-size: 26px; }
.team-member .tm-name { font-weight: 700; font-size: 15px; color: var(--heading); }
.team-member .tm-role { font-size: 13px; color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--dark); border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner .copyright { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }

/* ---------- data tables (event lists, cm-team) ---------- */
table.grid { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.grid th { text-align: left; background: var(--panel-alt); color: var(--accent); padding: 9px 12px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .5px; }
table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
table.grid tr:nth-child(even) td { background: var(--panel); }
table.grid tr:hover td { background: var(--panel-alt); }

/* ---------- event log detail (side -> squad -> pilot) ---------- */
.log-sides { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.log-side { flex: 1; min-width: 320px; }
.log-side-name { color: var(--heading); font-size: 22px; margin: 6px 0 10px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.squad-bar { background: oklch(35% 0.06 85); color: var(--bg); font-weight: 700; padding: 5px 10px; margin-top: 10px; border-radius: 3px; }
.pilot-bar { background: var(--panel-alt); color: var(--accent); font-weight: 600; padding: 4px 10px; margin-top: 4px; }
.log-line { padding: 4px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.log-line:hover { background: var(--panel); }
.log-t { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Per-side summary at the foot of an event log */
.side-summary { margin-top: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.side-summary h4 { margin: 0 0 10px; font-family: "Oswald", sans-serif; color: var(--accent); font-size: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 3px 12px; font-size: 13px; align-items: baseline; }
.stat-grid span { color: var(--muted); }
.stat-grid b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.top-list { margin-top: 12px; }
.top-head { font-family: "Oswald", sans-serif; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.top-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; border-bottom: 1px solid var(--border); }
.top-row b { font-variant-numeric: tabular-nums; color: var(--accent); }

/* ---------- event summary ---------- */
.summary-h { font-family: "Oswald", sans-serif; color: var(--accent); font-size: 16px; margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; }
/* The landed roster is a long list of short names; columns beat a table. */
.pilot-roster { columns: 160px auto; column-gap: 18px; font-size: 13px; }
.pilot-roster span { display: block; padding: 2px 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.side-summary .top-list:first-of-type { margin-top: 14px; }

/* ---------- writeups / article banner ---------- */
.writeup-banner { background: var(--panel); border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 16px; margin: 12px 0 18px; }
.writeup-banner a { font-size: 17px; }
.writeup-excerpt { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Joomla content chrome ----------
   Articles, blog layouts and core modules render with Joomla's own class
   names; these map them onto the design system so a CM-authored article
   looks like the rest of the site with no extra markup. */
.com-content-article, .com-content-category-blog, .com-content-article__body { max-width: 860px; line-height: 1.65; }
.com-content-article__body img, .com-content-article img { border-radius: 6px; }
.page-header h1, .page-header h2, .item-title, .com-content-article__title {
  font-family: "Oswald", sans-serif; color: var(--heading); font-weight: 600;
}
.article-info { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.article-info dd { margin: 0; }
blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding: 4px 0 4px 16px; color: oklch(86% 0.008 130); }
code, pre { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 13px; }
pre { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 12px; overflow-x: auto; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.sidebar .card, .sidebar .moduletable { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.sidebar .card-header, .sidebar h3 { font-family: "Oswald", sans-serif; color: var(--accent); font-size: 16px; margin: 0 0 10px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar li:last-child { border-bottom: none; }

/* System messages */
.alert { border: 1px solid var(--border); border-left-width: 4px; border-radius: 6px; padding: 12px 16px; margin: 0 0 18px; background: var(--panel); }
.alert-success { border-left-color: var(--green); }
.alert-danger, .alert-error { border-left-color: var(--red); }
.alert-warning { border-left-color: var(--accent); }
.alert-info { border-left-color: var(--link); }
.alert-heading { font-family: "Oswald", sans-serif; margin: 0 0 4px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 24px 0; padding: 0; justify-content: center; }
.pagination li a, .pagination li span {
  display: block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel); color: var(--link); font-size: 14px;
}
.pagination li.active span, .pagination li a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); text-decoration: none; }
.pagination__wrapper .counter { color: var(--muted); font-size: 13px; text-align: center; }

/* Forms (login, contact, search, and the log-upload form) */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="date"], input[type="datetime-local"], input[type="number"],
select, textarea {
  width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 8px;
  font-family: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 160px; }
label, .control-label label { display: block; font-family: "Oswald", sans-serif; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.control-group { margin: 12px 0; }
.btn, button[type="submit"], .btn-primary {
  background: var(--accent); color: var(--bg); border: none; border-radius: 6px; padding: 10px 22px;
  font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; font-size: 14px;
}
.btn:hover, button[type="submit"]:hover, .btn-primary:hover { background: var(--accent-bright); text-decoration: none; color: var(--bg); }
.btn-secondary { background: var(--panel-alt); color: var(--text); }
.field-error, .invalid-feedback, .form-control-feedback { color: var(--red); font-size: 13px; margin-top: 3px; }
.upload-form { max-width: 820px; }
.upload-form textarea { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 13px; min-height: 320px; }
/* A fieldset used only so the whole group can be disabled at once, not to
   draw a box round anything. */
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.bare[disabled] { opacity: 0.55; }

/* ---------- error / offline pages ---------- */
.error-block, .offline-block { max-width: 760px; }
.error-code { font-family: "Oswald", sans-serif; font-size: 96px; line-height: 1; color: var(--accent); font-weight: 700; }
.error-trace { font-size: 12px; color: var(--muted); }
.offline-login { max-width: 420px; margin-top: 24px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; margin-left: 0; }
  .hero-arrow { display: none; }
  .hero-tagline { padding: 24px 20px; }
  .stat-grid { grid-template-columns: 1fr auto; }
}

.stat-note { font-size: 12px; line-height: 1.5; margin: 10px 0 0; }

/* ---------- missing images ----------
   Articles whose pictures were never recoverable point at a placeholder
   rather than a broken-image icon, so a reader can see something was there.
   Every one keeps the original URL in data-original, which is how they would
   be swapped back if the file ever turns up (archive.org, say). */
img.missing-image { max-width: 480px; width: 100%; height: auto; opacity: .55; border-radius: 6px; }
img.missing-image:hover { opacity: .8; }

/* ---------- scenario registration ---------- */
.scenario-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 10px 0 18px; align-items: baseline; }
.scenario-facts dt { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--accent); }
.scenario-facts dd { margin: 0 18px 0 0; font-weight: 600; }
.scenario-description { background: var(--panel); border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 16px; margin: 0 0 18px; }
.side-totals { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.side-totals li { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; font-size: 14px; }
.side-totals strong { color: var(--accent); margin-right: 6px; }
/* The "preference, not a guaranteed ride" note. Deliberately prominent --
   it sets the expectation the rest of the event workflow depends on. */
.scenario-note { background: var(--panel-alt); border-radius: 6px; padding: 10px 16px; margin: 0 0 16px; }
.scenario-note p { margin: 6px 0; }
table.grid td label { cursor: pointer; }

/* ---------- CM test log area ----------
   TEMPORARY. Delete this whole block when the test area goes; the checklist
   is in docs/test-log-area.md.

   The banner is loud on purpose. Test pages render through the same
   templates as real ones and are therefore indistinguishable at a glance,
   which is exactly how a practice upload ends up quoted as real history. */
.sandbox-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  background: oklch(38% 0.10 55); border-bottom: 2px solid var(--accent-bright);
  color: oklch(96% 0.02 85); padding: 9px 22px; font-size: 13px;
}
.sandbox-banner strong {
  font-family: "Oswald", sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--accent-bright); color: var(--bg); padding: 2px 10px; border-radius: 3px;
}
.sandbox-banner span { flex: 1 1 320px; }
.sandbox-banner a { color: oklch(96% 0.02 85); text-decoration: underline; white-space: nowrap; }
.sandbox-banner a:hover { color: var(--bg); background: var(--accent-bright); text-decoration: none; }

/* A submit button that has to read as a table cell action, not a form. */
.inline-form { display: inline; margin: 0; }
.link-button {
  background: none; border: none; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-decoration: underline; letter-spacing: 0; text-transform: none;
}
.link-button:hover { background: none; color: var(--red); }

.danger-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; }
.danger-form .field-help { margin: 0; flex: 1 1 280px; }
.btn-danger { background: var(--red); color: oklch(98% 0 0); }
.btn-danger:hover { background: oklch(62% 0.20 25); }

table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .sandbox-banner { padding: 9px 16px; }
}
