/* GENERATED BY build.js FROM `brand` IN THE EVENT CONFIG. DO NOT EDIT.
 * Change a colour in the event config and rebuild. */
:root {
  --b-navy: #1a1a2e;
  --b-gold: #ca963f;
  --b-cream: #fdfbf5;
  --b-ink: #1a1a2e;
  --b-alert: #a32530;
  --b-white: #ffffff;
  --b-muted: #5e5e6a;
  --b-gold-ink: #8c6b39;
  --b-gold-dark: #b68739;
  --b-cream-dim: #b9b8b9;
  --b-hair: #e2e0dd;
  --b-input-edge: #b9b8b9;
  --b-panel: #f4f2ed;
}

/* THE SHARED TMG EVENTS STYLESHEET — /clearout2026, /spooktacular2026, /upcoming.
 *
 * ═══════════════════════════════════════════════════════════════════════════
 * 🔑 THERE ARE NO COLOUR LITERALS IN THIS FILE, AND THAT IS ENFORCED.
 * ═══════════════════════════════════════════════════════════════════════════
 * Every colour is `var(--b-*)`. The custom properties themselves are GENERATED
 * by build.js from `brand` in each event config and prepended to this file
 * before it is hashed, so the config is the only place the brand colours exist.
 * tests/events-2026-09-22.test.mjs fails the build if a hex literal ever
 * appears below, because a hex literal here is a second copy of a colour that
 * is supposed to have exactly one.
 *
 * ⚠️ WHY GENERATED AND NOT AN INLINE <style>: the site's CSP is
 * `style-src 'self'` with no 'unsafe-inline'. An inline style block would be
 * silently dropped by the browser and the page would render unstyled. The
 * build writes a real stylesheet, served from our own origin.
 *
 * WHY ITS OWN FILE AND NOT A SECTION OF chili.css: that file is the chili
 * CAMPAIGN's, its palette is that campaign's seven colours, and every byte of
 * it would ship to these three pages for sections they do not have. The chili
 * page is live and is not being touched.
 *
 * ═══════════════════════════════════════════════════════════════════════════
 * 🔴 SYSTEM FONTS. NO @font-face ANYWHERE IN THIS FILE, AND NO WEBFONT.
 * ═══════════════════════════════════════════════════════════════════════════
 * The brand for these pages is Georgia for headings and Arial for body, and
 * both are already on essentially every device these pages will be opened on.
 * Self-hosting either would be shipping a font file to replace one the browser
 * already has. The chili page's three webfonts are that campaign's and are not
 * loaded here, so these pages carry no font request at all.
 *
 * 🔴 NO PAGE-LOAD ANIMATION ANYWHERE IN THIS FILE. Not a fade, not a rise, not
 * a stagger. The page's job is to be readable the instant it paints.
 */

:root {
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--b-cream);
  color: var(--b-ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }

/* 380px IS THE FLOOR THESE PAGES ARE BUILT TO. The wrap padding drops to 18px
   below 420px, which leaves 344px of content on a 380px screen — enough for
   the longest unbreakable string on any of the three pages, the address line. */
.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FOCUS. NAVY ON LIGHT GROUNDS, GOLD ON DARK ONES, AND ON EVERYTHING.
 *
 * 🔴 TWO RULES, AND THE SECOND ONE IS NOT OPTIONAL. A single navy ring would
 * be invisible against the navy footer, which is where the only links on two
 * of these three pages live. Measured rather than guessed:
 *
 *   navy on cream   about 15:1   the default below
 *   gold on cream   about 2.5:1  FAILS the 3:1 a focus indicator needs, which
 *                                is why gold is NOT the default ring
 *   gold on navy    about 5.9:1  the override, for the footer and any other
 *                                navy ground
 *
 * `:focus-visible` rather than `:focus`: a mouse click on a card button should
 * not leave a ring behind, but a Tab press must.
 * ═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--b-navy);
  outline-offset: 2px;
}
.site-footer :focus-visible,
.on-navy :focus-visible {
  outline-color: var(--b-gold);
}

/* ---------------------------------------------------------------- header -- */
/* ═══════════════════════════════════════════════════════════════════════════
 * ONE WORDMARK, CENTRED. ALL THREE PAGES.
 * ═══════════════════════════════════════════════════════════════════════════
 * 🔴 SANDEE SELLS VEGAS AND NOTHING ELSE. No second mark, no McDuffie Group
 * lockup beside it, no hosts row anywhere on any of these pages. That is the
 * September 9 ruling made for /chili2026, applied here because these pages
 * were built to the same ruling. The McDuffie Group is named in the FOOTER and
 * in the fine print, which is where it belongs.
 *
 * ⚠️ THE GIVEAWAY IS NOT AFFECTED BY ANY OF THIS. /fallgive2026 is styled by
 * event.css, a different file, which is untouched and still carries its own
 * two-mark header. This stylesheet has never been served to it.
 * ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--b-panel);
  border-bottom: 1px solid var(--b-hair);
}
.site-header .wrap {
  padding-top: 20px; padding-bottom: 20px;
  text-align: center;
}
.brand {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: 1.3rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--b-navy);
  /* THE CENTRING CORRECTION. Letter-spacing adds its full value after the LAST
     letter as well, which pushes a centred line left by half a space. The
     indent puts it back. It has to track the tracking it is correcting, which
     is why it is repeated in the narrow media query below where the tracking
     changes. */
  text-indent: .18em;
}
.brand-tagline {
  margin: 8px 0 0;
  font-family: var(--sans); font-weight: 600;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--b-gold-ink);
  text-indent: .16em;
}

/* ------------------------------------------------------------------ hero -- */
.hero { background: var(--b-cream); }
.hero .wrap { padding-top: 54px; padding-bottom: 50px; text-align: center; }

.hero-kicker {
  margin: 0 0 10px;
  font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--b-gold-ink); text-indent: .18em;
}
.hero-h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1;
  /* Even lines rather than a long one and an orphan. Ignored where it is not
     supported, which costs nothing. */
  text-wrap: balance;
}

/* ONE HYPHENATED WORD, KEPT WHOLE. Applied by keepHyphenated() in build.js to
   every hyphenated word in a headline, so "e-cycle" cannot wrap into "e-" and
   "cycle". See the long note on that function for why this is a span and not a
   non-breaking hyphen in the copy. */
.nb { white-space: nowrap; }

/* The sentence under the headline. Serif and larger than body text, because it
   is still part of the hero and not the start of the page's prose. */
.hero-lede {
  margin: 18px auto 0; max-width: 40em;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3vw, 1.3rem); line-height: 1.5;
  color: var(--b-muted);
}

/* DATE, TIME AND PLACE ON ONE LINE, and it has to be able to WRAP. The
   approved line for /spooktacular2026 carries a landmark as well as an
   address, so it is long; `balance` keeps the wrapped lines even rather than
   leaving one word stranded, and degrades to normal wrapping where it is not
   supported. */
.hero-when {
  margin: 22px auto 0; max-width: 34em;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 700; color: var(--b-navy);
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ⚠️ .hero-where, .hero-free AND .hero-tagline ARE CURRENTLY UNUSED, AND ARE
 * KEPT ON PURPOSE. Cara's 2026-09-22 copy ruling removed the separate address
 * line, the FREE TO ATTEND badge and the italic tagline from both registration
 * pages. The rules stay so that putting any of them back is a config line plus
 * a line of template, not a rebuild from the brief. Same reasoning as the
 * retained hosts-row code in build.js. DO NOT DELETE AS DEAD CODE.
 * ═══════════════════════════════════════════════════════════════════════════ */
.hero-where { margin: 4px 0 0; font-size: .95rem; color: var(--b-muted); }

.hero-free {
  display: inline-block; margin: 22px 0 0; padding: 12px 18px;
  background: var(--b-gold); color: var(--b-navy);
  font-family: var(--sans); font-weight: 700;
  font-size: .74rem; letter-spacing: .1em;
}
.hero-tagline {
  margin: 20px 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.3rem); color: var(--b-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * THE DETAIL BLOCKS. What to bring, a good cause, the photo booth.
 *
 * `auto-fit` with a 240px floor, so the count in the config decides the
 * layout with no per-page flag: two blocks sit side by side, three sit in a
 * row, and every one of them drops to a single column before it gets too
 * narrow to read. The 240px floor is what makes that automatic rather than a
 * breakpoint somebody has to remember to add when a fourth block appears.
 * ═══════════════════════════════════════════════════════════════════════════ */
.details { background: var(--b-cream); }
.details .wrap { padding-top: 10px; padding-bottom: 44px; }

.details-row {
  display: grid; gap: 28px 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.detail { text-align: center; }

/* Small gold caps, and therefore the DEEPER gold: see --b-gold-ink. */
.detail-label {
  margin: 0 0 8px;
  font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--b-gold-ink); text-indent: .14em;
}
.detail-text {
  margin: 0; font-size: .95rem; line-height: 1.6; color: var(--b-ink);
}

/* The single reassurance under the blocks, not a block of its own. */
.detail-note {
  margin: 32px 0 0; text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--b-muted);
}

/* ----------------------------------------------------------------- strip -- */
/* The one red-equivalent band on the page. Navy rather than an accent colour:
   these are brand pages, not a campaign, and the strip is a statement rather
   than a warning. */
.strip { background: var(--b-navy); color: var(--b-cream); }
.strip .wrap { padding-top: 18px; padding-bottom: 18px; }
.strip p {
  margin: 0; text-align: center;
  font-size: clamp(.88rem, 2.4vw, 1rem); line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * THE FORM. Cream ground, white card.
 * ═══════════════════════════════════════════════════════════════════════════ */
.signup { background: var(--b-cream); }
.signup .wrap { padding-top: 52px; padding-bottom: 56px; }

.card {
  background: var(--b-white); border: 1px solid var(--b-hair);
  max-width: 640px; margin: 0 auto; padding: 36px 32px;
}
.card[hidden] { display: none; }

.card-heading {
  font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(1.9rem, 5vw, 2.4rem); margin: 0; text-align: center;
}
.card-lede {
  margin: 12px 0 28px; text-align: center;
  color: var(--b-muted); font-size: .95rem; line-height: 1.6;
}

/* ------------------------------------------------------------- the fields -- */
.field { margin: 0 0 18px; }
.field label {
  display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700;
  letter-spacing: .02em; color: var(--b-navy);
}
.field input, .field select {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 1rem;
  color: var(--b-ink); background: var(--b-white);
  border: 1px solid var(--b-input-edge); border-radius: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* INLINE, SPECIFIC, AND ATTACHED TO THE FIELD IT IS ABOUT. Never a single
   "please complete every required field" at the bottom — that sentence makes
   somebody hunt for the one box they missed. */
.field-error {
  margin: 6px 0 0; font-size: .82rem; line-height: 1.45;
  color: var(--b-alert); font-weight: 700;
}
.field-error[hidden] { display: none; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--b-alert); border-width: 2px;
}

/* ---------------------------------------------------------------- checks -- */
.check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 18px; font-size: .9rem; line-height: 1.5;
}
.check input {
  margin: 3px 0 0; flex: 0 0 auto; width: 17px; height: 17px;
  accent-color: var(--b-navy);
}
/* The one consent box's policy links (B-0145, 2026-10-28). Without this they
   fell back to the browser's default blue, a colour on no page of this site.
   Underlined rather than coloured, as on the Library gate. */
.check--consent a { color: inherit; text-decoration: underline; }
.check--consent a:hover { text-decoration: none; }

/* "This event has passed." — shown in place of the form once the event has
   started (Cara's ruling, 2026-10-28). The same shape as /gg2026's closed card. */
.event-passed { text-align: center; border-top: 6px solid var(--b-gold); }
.event-passed p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--b-ink); }

/* The honeypot. Off-screen rather than display:none: some bots skip hidden
   fields, very few skip off-screen ones. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------------- button -- */
.cta {
  display: block; width: 100%; margin: 24px 0 0; padding: 17px 20px;
  background: var(--b-gold); color: var(--b-navy);
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  letter-spacing: .04em; border: 0; cursor: pointer;
}
.cta:hover { background: var(--b-gold-dark); }
.cta:disabled { opacity: .45; cursor: not-allowed; }

.fine-print {
  margin: 18px 0 0; text-align: center;
  font-size: .74rem; line-height: 1.6; color: var(--b-muted);
}
/* The 18px above is the gap from the BUTTON; between the paragraphs it would be
   nearly a full blank line at this size and the block would drift apart. 10px
   separates the photo notice from the terms while keeping them one block of
   fine print. Adjacent-sibling, so the first keeps its distance from the button
   whatever the others do. */
.fine-print + .fine-print { margin-top: 10px; }
.form-msg { margin: 14px 0 0; font-size: .92rem; text-align: center; }
.form-msg.is-error { color: var(--b-alert); }

/* ═══════════════════════════════════════════════════════════════════════════
 * THE THANK-YOU CARD. Same white card, with a gold top rule.
 * ═══════════════════════════════════════════════════════════════════════════ */
.thanks { border-top: 6px solid var(--b-gold); }
.thanks h2 {
  font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(1.8rem, 5vw, 2.3rem); margin: 0 0 16px; text-align: center;
}
.thanks p {
  margin: 0 0 14px; font-size: 1rem; line-height: 1.65; color: var(--b-ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * /upcoming — THE EVENT CARDS.
 *
 * MOBILE-FIRST SINGLE COLUMN, and it stays a single column at every width. The
 * list is five items read top to bottom in an order somebody chose; a grid
 * would put two of them side by side and make that order a reading puzzle.
 * The wrap is narrowed instead, so the line length stays comfortable on a
 * desktop rather than the cards stretching to 940px.
 * ═══════════════════════════════════════════════════════════════════════════ */
.landing { background: var(--b-cream); }
.landing .wrap { padding-top: 44px; padding-bottom: 56px; max-width: 620px; }

.landing-headline {
  margin: 0; text-align: center;
  font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15;
}
.landing-subhead {
  margin: 12px 0 34px; text-align: center;
  color: var(--b-muted); font-size: 1rem; line-height: 1.6;
}

.ev-card {
  background: var(--b-white); border: 1px solid var(--b-hair);
  padding: 26px 24px; margin: 0 0 18px; text-align: center;
}
.ev-name {
  margin: 0; font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(1.35rem, 4.2vw, 1.7rem); line-height: 1.2;
}
.ev-when {
  margin: 10px 0 0; font-size: .95rem; font-weight: 700; color: var(--b-navy);
}
/* GOLD SMALL CAPS, AND IT IS THE DARKER GOLD ON PURPOSE.
   `--b-gold-ink` rather than `--b-gold`: pure gold on white measures about
   2.6:1, which fails the 4.5:1 body text needs at this size. The derived token
   is the same hue mixed toward ink until it clears 4.5:1 — see
   brandPaletteBlock() in build.js, where the ratio is stated. The buttons and
   borders below still use the pure brand gold, because a 4px rule and a
   17px-tall button label are not body text. */
.ev-where {
  margin: 6px 0 0;
  font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--b-gold-ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 🔴 THE CARD ACTION IS AN <a>, STYLED AS A BUTTON. NEVER A <button>.
 * ═══════════════════════════════════════════════════════════════════════════
 * These cards are printed on physical cards with QR codes on them. A link is
 * long-pressable, copyable, openable in a new tab, crawlable and works with the
 * page's script absent entirely. A <button> with a click handler is none of
 * those things, and on a phone in a car park that difference is the whole
 * event. `display: block` so the whole width is the target: a 44px-tall
 * full-width tap area, not a text link somebody has to hit precisely.
 * ═══════════════════════════════════════════════════════════════════════════ */
.ev-btn {
  display: block; margin: 20px 0 0; padding: 15px 20px;
  background: var(--b-gold); color: var(--b-navy);
  font-family: var(--sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  text-align: center;
}
.ev-btn:hover { background: var(--b-gold-dark); }

/* A MESSAGE CARD (2026-10-14): one sentence, and the whole card is the link.
   Same white card; the sentence is set like a card name, and the gold left
   rule is the cue that it goes somewhere. */
.ev-card--message {
  display: block; text-decoration: none;
  border-left: 4px solid var(--b-gold);
}
.ev-message {
  font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.3;
  text-decoration: underline; text-decoration-color: var(--b-gold);
  text-underline-offset: 4px;
}
.ev-card--message:hover .ev-message { text-decoration-thickness: 2px; }

/* ------------------------------------------------------- save the date -- */
/* Cream ground and a gold border, so it reads as a different KIND of thing
   from the four white cards above it. It carries no button, and the absence is
   the message: there is nothing to register for yet. */
.std-card {
  background: var(--b-cream); border: 2px solid var(--b-gold);
  padding: 26px 24px; margin: 0; text-align: center;
}
.std-label {
  margin: 0 0 10px;
  font-family: var(--sans); font-weight: 700;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--b-gold-ink); text-indent: .18em;
}
.std-name {
  margin: 0; font-family: var(--serif); font-weight: 400; color: var(--b-navy);
  font-size: clamp(1.35rem, 4.2vw, 1.7rem); line-height: 1.2;
}
.std-when {
  margin: 10px 0 0; font-size: .95rem; font-weight: 700; color: var(--b-navy);
}
.std-note {
  margin: 12px 0 0; font-family: var(--serif); font-style: italic;
  font-size: .92rem; line-height: 1.5; color: var(--b-muted);
}

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--b-navy); }
.site-footer .wrap { padding-top: 26px; padding-bottom: 26px; }
.site-footer p {
  margin: 0; text-align: center; color: var(--b-cream-dim);
  font-size: .8rem; letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE. Two steps, and the pages hold at 380px.
 * ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 28px 22px; }
}

@media (max-width: 420px) {
  /* 24px of padding each side leaves 332px on a 380px screen. 18px leaves
     344px, which is what the address line and the free badge need without
     wrapping mid-word. */
  .wrap { padding: 0 18px; }
  .card { padding: 24px 18px; }
  .brand { font-size: 1.12rem; letter-spacing: .12em; text-indent: .12em; }
  .brand-tagline { font-size: .62rem; letter-spacing: .1em; text-indent: .1em; }
  .hero .wrap { padding-top: 38px; padding-bottom: 42px; }
  .hero-free { letter-spacing: .08em; padding: 12px 14px; }
  .ev-card, .std-card { padding: 22px 18px; }
}

/* Somebody who has asked their system for less motion gets no transition at
   all. There are no page-load animations here to switch off — this covers the
   button hover colour changes, which are the only movement on these pages. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
