/* Fearless Events — public styles.
 *
 * Token-driven. The active theme (Oxygen on the live site) supplies fonts,
 * header, footer and page background; this only styles what the plugin
 * itself renders.
 *
 * The palette below is the one already in use on fearlessgroup.co.bw —
 * yellow #F7E829 on black, teal as the one secondary accent — read from the
 * site's own generated stylesheet rather than guessed, so an entry form
 * dropped into the middle of the site does not announce itself as a
 * different product.
 *
 * TWO RULES THIS PALETTE IMPOSES
 * -----------------------------
 * 1. Text on yellow is always BLACK. #F7E829 has a luminance around 0.82;
 *    white text on it fails WCAG AA at every size (contrast ~1.2:1), while
 *    black clears AAA at 16.4:1. Every rule that sets the yellow background
 *    sets the black foreground in the same declaration for that reason.
 * 2. Yellow is not a status colour. It reads as "act here", so it is spent
 *    on the primary action and nothing else; sold out, low stock and errors
 *    use the semantic reds and ambers below, which stay legible against
 *    both the yellow and the white.
 *
 * An event may override --fe-accent with its own brand_colour; the ink
 * token follows it so a dark event colour still gets readable button text.
 */

:root {
  /* Brand, from the live site */
  --fe-brand: #F7E829;
  --fe-brand-ink: #000000;
  --fe-brand-dim: #E8DB2C;
  --fe-teal: #65BEC2;

  --fe-accent: var(--fe-brand);
  --fe-accent-ink: var(--fe-brand-ink);

  --fe-ink: #000000;
  --fe-ink-soft: #2B2C27;
  --fe-slate: #374047;
  --fe-muted: #666666;
  --fe-line: #D3CED2;
  --fe-line-soft: #E5E5E5;
  --fe-surface: #FFFFFF;
  --fe-surface-alt: #F9F9F9;

  /* Semantic — never the brand yellow */
  --fe-warn: #B45309;
  --fe-danger: #C1121F;
  --fe-good: #0F6E56;
  --fe-good-bg: #E8F5EE;

  --fe-radius: 4px;
  --fe-gap: 20px;
}

.fe-page { max-width: 1140px; margin: 0 auto; padding: 40px 20px 64px; }
.fe-page-head { margin-bottom: 28px; }
.fe-page-title { margin: 0 0 6px; line-height: 1.15; }
.fe-page-sub, .fe-lede { color: var(--fe-muted); margin: 0; }
.fe-muted { color: var(--fe-muted); font-size: .875em; }
.fe-empty-msg { color: var(--fe-muted); padding: 32px 0; }

/* Filters
 *
 * The search box is the widest control on the page on purpose: it is what
 * somebody arriving from a poster reaches for, and a 380px field under a
 * 1120px banner reads as an afterthought. It fills the row, and its height
 * matches the button beside it so the pair reads as one control. */
.fe-filters { display: flex; gap: 10px; margin-bottom: 22px; align-items: stretch; }
.fe-search { flex: 1 1 auto; max-width: 640px; display: flex; }
.fe-search input {
  width: 100%; padding: 15px 18px; border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius); font: inherit; font-size: 1.0625rem;
  background: var(--fe-surface); color: var(--fe-ink);
}
.fe-search input:focus {
  outline: 2px solid var(--fe-teal); outline-offset: 1px; border-color: var(--fe-teal);
}
.fe-search input::placeholder { color: var(--fe-muted); }
.fe-filters .fe-btn { display: inline-flex; align-items: center; }
@media (max-width: 560px) {
  .fe-filters { flex-wrap: wrap; }
  .fe-search { max-width: none; flex: 1 1 100%; }
}
.fe-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fe-cat {
  font-size: .8125rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--fe-line); color: var(--fe-muted);
  text-decoration: none; background: var(--fe-surface);
}
.fe-cat.is-active { background: var(--fe-accent); border-color: var(--fe-accent); color: var(--fe-accent-ink); font-weight: 700; }

/* Grid */
.fe-grid {
  display: grid; gap: var(--fe-gap);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.fe-tile {
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  overflow: hidden; background: var(--fe-surface);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fe-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.fe-tile-link { display: block; text-decoration: none; color: inherit; }
.fe-tile-banner { display: block; height: 84px; position: relative; }
.fe-chip {
  position: absolute; top: 10px; left: 10px; background: #fff; color: var(--fe-ink);
  font-size: .6875rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
}
.fe-tile-body { display: block; padding: 14px 16px 16px; }
.fe-tile-date { display: block; font-size: .6875rem; letter-spacing: .06em; color: var(--fe-muted); }
.fe-tile-title { margin: 6px 0 8px; font-size: 1.0625rem; line-height: 1.3; }
.fe-tile-meta { display: block; font-size: .8125rem; color: var(--fe-muted); }
.fe-tile-foot {
  display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px;
}
.fe-tile-cta { font-size: .8125rem; color: var(--fe-muted); }
.fe-price { font-size: 1.0625rem; font-weight: 600; }

/* Capacity bar */
.fe-bar {
  display: block; height: 5px; background: var(--fe-surface-alt);
  border-radius: 4px; margin: 10px 0 6px; overflow: hidden;
}
.fe-bar-fill { display: block; height: 100%; border-radius: 4px; }

/* Event page */
.fe-hero { margin-bottom: 32px; }
.fe-hero-band { height: 6px; border-radius: 4px; margin-bottom: 20px; }
.fe-eyebrow { font-size: .75rem; letter-spacing: .08em; color: var(--fe-muted); margin: 0 0 8px; }
.fe-hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.fe-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .fe-layout { grid-template-columns: 1fr; } }
.fe-section { margin-bottom: 32px; }
.fe-section h2 { margin: 0 0 14px; font-size: 1.25rem; }

.fe-types { list-style: none; margin: 0; padding: 0; }
.fe-type {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius); margin-bottom: 10px; background: var(--fe-surface);
}
.fe-type.is-soldout { opacity: .55; }
.fe-type-name { display: block; font-weight: 600; }
.fe-type-meta, .fe-option-meta { display: block; font-size: .8125rem; color: var(--fe-muted); margin-top: 2px; }
.fe-type-avail { display: block; font-size: .75rem; margin-top: 4px; color: var(--fe-muted); }
.fe-type-avail.is-low { color: var(--fe-warn); }
.fe-type-avail.is-sold_out { color: var(--fe-danger); }
.fe-type-price { text-align: right; white-space: nowrap; }
.fe-next-band { display: block; font-size: .6875rem; color: var(--fe-muted); margin-top: 2px; }

.fe-panel-card {
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  padding: 18px 20px; background: var(--fe-surface);
}
.fe-panel-card h3 { margin: 0 0 12px; font-size: 1rem; }
.fe-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .875rem; }
.fe-dl dt { color: var(--fe-muted); }
.fe-dl dd { margin: 0; text-align: right; }
.fe-capacity { margin-top: 16px; }

/* Buttons */
.fe-btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--fe-radius);
  border: 1px solid var(--fe-ink); text-decoration: none; font: inherit;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  line-height: 1.2; cursor: pointer; background: var(--fe-surface); color: var(--fe-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fe-btn:hover { background: var(--fe-ink); color: var(--fe-surface); }
.fe-btn-primary {
  background: var(--fe-accent); border-color: var(--fe-accent); color: var(--fe-accent-ink);
}
.fe-btn-primary:hover {
  background: var(--fe-surface); color: var(--fe-ink); border-color: var(--fe-ink);
}
.fe-btn-ghost { background: transparent; border-color: var(--fe-line); color: var(--fe-muted); }
.fe-btn-ghost:hover { background: transparent; border-color: var(--fe-ink); color: var(--fe-ink); }
.fe-btn[disabled], .fe-btn.is-disabled { opacity: .45; pointer-events: none; }
.fe-btn:focus-visible, .fe-cat:focus-visible, .fe-option:focus-within {
  outline: 3px solid var(--fe-teal); outline-offset: 2px;
}
.fe-badge-closed {
  display: inline-block; padding: 8px 16px; border-radius: var(--fe-radius);
  background: var(--fe-surface-alt); color: var(--fe-muted); font-size: .875rem;
}

/* Wizard */
.fe-wizard { max-width: 760px; }
.fe-steps {
  display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step;
}
.fe-step {
  flex: 1; text-align: center; font-size: .75rem; padding: 8px 4px;
  border-radius: var(--fe-radius); background: var(--fe-surface-alt); color: var(--fe-muted);
}
.fe-step.is-done { background: var(--fe-good-bg); color: var(--fe-good); }
.fe-step.is-current { background: var(--fe-accent); color: var(--fe-accent-ink); font-weight: 700; }
.fe-wizard-head { margin-bottom: 20px; }
.fe-fieldset { border: 0; margin: 0 0 20px; padding: 0; }

.fe-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  margin-bottom: 10px; cursor: pointer; background: var(--fe-surface);
}
.fe-option.is-selected { border: 2px solid var(--fe-accent); padding: 13px 15px; }
.fe-option.is-disabled { opacity: .5; cursor: not-allowed; }
.fe-option-main { flex: 1; }
.fe-option-name { display: block; font-weight: 600; }
.fe-option-flag { display: block; font-size: .75rem; color: var(--fe-muted); margin-top: 4px; }
.fe-option-flag.is-sold_out, .fe-option-flag.is-closed { color: var(--fe-danger); }
.fe-option-flag.is-not_open { color: var(--fe-slate); }
.fe-option-flag.is-low { color: var(--fe-warn); }
.fe-option-price { text-align: right; white-space: nowrap; }

.fe-summary {
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  padding: 14px 18px; background: var(--fe-surface);
}
.fe-summary-row { display: flex; justify-content: space-between; font-size: .9375rem; padding: 3px 0; }
.fe-summary-total {
  font-weight: 600; font-size: 1.0625rem;
  border-top: 1px solid var(--fe-line); margin-top: 8px; padding-top: 10px;
}
.fe-actions { display: flex; gap: 10px; margin-top: 20px; }
.fe-actions .fe-btn-primary { flex: 2; text-align: center; }
.fe-actions .fe-btn-ghost { flex: 1; text-align: center; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ------------------------------------------------------------------ *
 * Entry form
 * ------------------------------------------------------------------ */

.fe-notice {
  border-left: 4px solid var(--fe-danger); background: #FDF2F3;
  padding: 12px 16px; margin: 0 0 20px; font-size: .9375rem; color: var(--fe-ink-soft);
}
.fe-notice-info { border-left-color: var(--fe-teal); background: #EEF8F9; }
.fe-notice-good { border-left-color: var(--fe-good); background: var(--fe-good-bg); }

.fe-qty {
  display: flex; align-items: center; gap: 8px;
}
.fe-qty label { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fe-muted); }
.fe-qty input {
  width: 68px; padding: 8px 10px; border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius); font: inherit; text-align: center;
  font-variant-numeric: tabular-nums;
}

.fe-entrant {
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  margin-bottom: 18px; background: var(--fe-surface);
}
.fe-entrant-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 18px; background: var(--fe-surface-alt);
  border-bottom: 1px solid var(--fe-line);
}
.fe-entrant-title { font-weight: 700; font-size: .9375rem; }
.fe-entrant-dist { font-size: .8125rem; color: var(--fe-muted); }
.fe-entrant-body { padding: 18px; }

.fe-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fe-fields .fe-field-full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fe-fields { grid-template-columns: 1fr; } }

.fe-field label, .fe-legend {
  display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fe-slate); margin-bottom: 5px;
}
.fe-field .fe-req { color: var(--fe-danger); }
.fe-field input[type=text], .fe-field input[type=email], .fe-field input[type=tel],
.fe-field input[type=date], .fe-field input[type=number], .fe-field select,
.fe-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius); font: inherit; background: var(--fe-surface);
  color: var(--fe-ink);
}
.fe-field input:focus, .fe-field select:focus, .fe-field textarea:focus {
  outline: 2px solid var(--fe-teal); outline-offset: 1px; border-color: var(--fe-teal);
}
.fe-field textarea { min-height: 84px; resize: vertical; }
.fe-help { display: block; font-size: .75rem; color: var(--fe-muted); margin-top: 4px; }
.fe-choice { display: flex; align-items: flex-start; gap: 9px; font-size: .9375rem; }
.fe-choice input { margin-top: 3px; }

.fe-waiver {
  border: 1px solid var(--fe-line); border-radius: var(--fe-radius);
  margin-bottom: 18px; background: var(--fe-surface);
}
.fe-waiver-head {
  padding: 12px 18px; border-bottom: 1px solid var(--fe-line);
  background: var(--fe-surface-alt); font-weight: 700; font-size: .9375rem;
}
.fe-waiver-version { float: right; font-weight: 400; font-size: .75rem; color: var(--fe-muted); }
.fe-waiver-body {
  max-height: 260px; overflow-y: auto; padding: 16px 18px;
  font-size: .9375rem; line-height: 1.6; border-bottom: 1px solid var(--fe-line);
}
.fe-waiver-body p { margin: 0 0 10px; }
.fe-waiver-accept { padding: 14px 18px; }

/* ------------------------------------------------------------------ *
 * Confirmation, ticket, lookup
 * ------------------------------------------------------------------ */

.fe-confirm-head { border-top: 6px solid var(--fe-accent); padding-top: 22px; margin-bottom: 26px; }
.fe-ref {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.5rem; font-weight: 700; letter-spacing: .04em;
}
.fe-state {
  display: inline-block; font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
  background: var(--fe-surface-alt); color: var(--fe-slate); border: 1px solid var(--fe-line);
}
.fe-state.is-paid { background: var(--fe-good-bg); color: var(--fe-good); border-color: var(--fe-good); }
.fe-state.is-unpaid { background: #FFF7E6; color: var(--fe-warn); border-color: var(--fe-warn); }
.fe-state.is-cancelled { background: #FDF2F3; color: var(--fe-danger); border-color: var(--fe-danger); }

.fe-bank {
  border: 1px solid var(--fe-line); border-left: 4px solid var(--fe-accent);
  padding: 16px 18px; background: var(--fe-surface-alt); margin: 18px 0;
}
.fe-bank dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 8px 0 0; font-size: .9375rem; }
.fe-bank dt { color: var(--fe-muted); }
.fe-bank dd { margin: 0; font-variant-numeric: tabular-nums; }

.fe-entry-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--fe-line-soft);
}
.fe-entry-name { font-weight: 700; }
.fe-entry-meta { font-size: .8125rem; color: var(--fe-muted); }

.fe-ticket {
  max-width: 460px; margin: 0 auto; border: 2px solid var(--fe-ink);
  background: var(--fe-surface);
}
.fe-ticket-head {
  background: var(--fe-accent); color: var(--fe-accent-ink);
  padding: 16px 20px; border-bottom: 2px solid var(--fe-ink);
}
.fe-ticket-event { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.fe-ticket-when { font-size: .8125rem; }
.fe-ticket-body { padding: 20px; text-align: center; }
.fe-ticket-qr { margin: 0 auto 14px; width: 220px; max-width: 100%; }
.fe-ticket-qr svg { width: 100%; height: auto; display: block; }
.fe-ticket-name { font-size: 1.25rem; font-weight: 700; }
.fe-ticket-dist { font-size: .875rem; color: var(--fe-muted); margin-top: 2px; }
.fe-ticket-bib {
  font-size: 2.75rem; font-weight: 700; line-height: 1; margin: 14px 0 2px;
  font-variant-numeric: tabular-nums;
}
.fe-ticket-foot {
  border-top: 1px dashed var(--fe-line); padding: 12px 20px;
  font-size: .6875rem; color: var(--fe-muted); text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all;
}

@media print {
  .fe-noprint, .fe-page-head, .fe-actions { display: none !important; }
  .fe-page { padding: 0; }
  .fe-ticket { border-width: 1px; page-break-inside: avoid; }
  .fe-ticket-head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; }
}

.fe-lookup { max-width: 420px; }
.fe-lookup .fe-field { margin-bottom: 14px; }

/* ------------------------------------------------------------------ *
 * Page banner
 *
 * The values here are the Rewards page's own, read out of the Oxygen
 * stylesheet it generates (#section-2-71 and #headline-3-71): the -18°
 * black-to-olive gradient over the tiled logo, the 40px bottom rounding,
 * and the 120 / 100 / 72 / 48 / 36 heading ramp across Oxygen's four
 * breakpoints. Matching the ramp matters as much as matching the colour —
 * a banner that scales differently reads as a different banner on a phone
 * even when it is identical on a desktop.
 * ------------------------------------------------------------------ */

.fe-masthead {
  --fe-mast-image: none;
  background-image:
    linear-gradient(-18deg, #000000 30%, rgba(140, 131, 5, .97)),
    var(--fe-mast-image);
  background-size: auto, auto;
  background-repeat: repeat;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  padding: 108px 0 16px;
  margin-bottom: 34px;
}
.fe-masthead.is-compact { padding-top: 56px; }

.fe-masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.fe-masthead-title {
  margin: 0;
  font-size: var(--fe-mast-size, 120px);
  font-weight: 900;
  line-height: 1;
  color: var(--fe-brand);
  text-wrap: balance;
}
.fe-masthead-lead { font-weight: 400; }

.fe-masthead-sub {
  margin: 14px 0 0;
  color: #FFFFFF;
  font-size: 21px;
  max-width: 46ch;
}

@media (max-width: 1120px) {
  .fe-masthead-title { font-size: min(var(--fe-mast-size, 100px), 100px); margin-top: 18px; margin-bottom: 14px; }
  .fe-masthead { padding-top: 80px; }
}
@media (max-width: 991px)  { .fe-masthead-title { font-size: min(var(--fe-mast-size, 72px), 72px); } }
@media (max-width: 767px)  {
  .fe-masthead-title { font-size: min(var(--fe-mast-size, 48px), 48px); }
  .fe-masthead-sub { font-size: 18px; }
  .fe-masthead { padding-top: 56px; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
}
@media (max-width: 479px)  { .fe-masthead-title { font-size: min(var(--fe-mast-size, 36px), 36px); margin-top: 30px; } }

/* The page body sits under the banner, so it no longer needs its own top
   padding — two stacked headings is what makes a bolted-on page look
   bolted on. */
.fe-masthead + .fe-page { padding-top: 0; }
.fe-masthead + .fe-page > .fe-page-head:first-child,
.fe-masthead + .fe-page > .fe-wizard-head:first-child { margin-top: 0; }

/* On a narrow phone the three parts of a distance row — name, price and the
   number of people — cannot sit on one line without pushing the page
   sideways. They wrap instead, with the stepper pinned to the right so the
   thumb still finds it in the same place down the list. */
@media (max-width: 560px) {
  .fe-option { flex-wrap: wrap; }
  .fe-option-main { flex: 1 1 100%; }
  .fe-option-price { flex: 0 1 auto; text-align: left; }
  .fe-qty { margin-left: auto; }
  .fe-qty input { width: 76px; }
}

/* Under a banner the form should start where the title starts, not float in
   the middle of a wider band. The page keeps the site's 1120px container and
   the form keeps its readable 760px measure, left-aligned inside it. */
.fe-masthead + .fe-page.fe-wizard,
.fe-masthead + .fe-page.fe-lookup { max-width: 1120px; }
.fe-masthead + .fe-page.fe-wizard > *,
.fe-masthead + .fe-page.fe-lookup > * { max-width: 760px; }

/* ------------------------------------------------------------------ *
 * Holding shape inside somebody else's stylesheet
 *
 * A plugin's CSS does not get to load last. On this site Oxygen prints its
 * universal and template stylesheets AFTER this file, and a theme or
 * WooCommerce may print later still — so any rule of ours that merely TIES
 * on specificity loses, and any property we never set is free for a bare
 * `button { width: 100% }` to claim. That is exactly what turned the search
 * row into a 186px input beside a 904px yellow button.
 *
 * Two defences, and both are needed:
 *   1. Every control states its own width and flex behaviour explicitly,
 *      so there is nothing left for a host rule to fill in.
 *   2. Selectors carry one more class than a bare element rule can, so a
 *      tie becomes a win regardless of which file loads last.
 * ------------------------------------------------------------------ */

.fe-page .fe-filters { align-items: stretch; }

.fe-page .fe-filters .fe-search {
  flex: 1 1 320px;
  min-width: 200px;
  max-width: 640px;
  width: auto;
}
.fe-page .fe-filters .fe-search input {
  width: 100%;
  min-width: 0;
  padding: 15px 18px;
  font-size: 1.0625rem;
  line-height: 1.3;
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  background: var(--fe-surface);
  color: var(--fe-ink);
}

.fe-page .fe-filters .fe-btn,
.fe-page .fe-actions .fe-btn {
  flex: 0 0 auto;
  width: auto;
}
/* The action bar is the one place a button SHOULD stretch. */
.fe-page .fe-actions .fe-btn-primary { flex: 2 1 auto; }
.fe-page .fe-actions .fe-btn-ghost { flex: 1 1 auto; }

.fe-page .fe-fields .fe-field input,
.fe-page .fe-fields .fe-field select,
.fe-page .fe-fields .fe-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--fe-line);
  border-radius: var(--fe-radius);
  background: var(--fe-surface);
  color: var(--fe-ink);
}
.fe-page .fe-fields .fe-field textarea { min-height: 84px; }

.fe-page .fe-qty input {
  width: 76px;
  min-width: 76px;
  padding: 8px 10px;
  font-size: 1rem;
  text-align: center;
}

.fe-page .fe-lookup input,
.fe-page .fe-lookup .fe-field input { width: 100%; }

@media (max-width: 560px) {
  .fe-page .fe-filters .fe-search { flex: 1 1 100%; max-width: none; }
}

/* ------------------------------------------------------------------ *
 * Room for a header that floats
 *
 * Oxygen headers on this site are built as an absolutely positioned
 * section with a high z-index: the logo and the menu hang OVER whatever
 * the page opens with rather than sitting above it. Every page designed
 * in the builder opens with a tall hero that leaves room for it, so the
 * overlap is invisible there — and lands squarely on the first line of
 * text on a page that was not designed around it. That is why the logo
 * was sitting across "BIBF Interbanking" and "Your ticket".
 *
 * The offset below is the fallback; a few lines of script measure the
 * header and overwrite --fe-chrome-offset with its real height, which is
 * the only value that survives their logo changing size at each
 * breakpoint. Nothing here applies unless the borrowed header is
 * genuinely floating — ThemeChrome::isOverlay() adds the body class.
 * ------------------------------------------------------------------ */

.fe-chrome-overlay { --fe-chrome-offset: 152px; }

/* Their menu is wider than the header that holds it and hangs off the right
   edge. On the site's own templates that never becomes a scrollbar; on ours
   it did. `clip` rather than `hidden` because hidden on the body would kill
   position:sticky for anything inside it. */
body.fe-oxygen-chrome { overflow-x: clip; }

/* The banner keeps starting at the very top — the logo over dark artwork
   is the intended look, and it is what the Rewards page does. Only the
   text moves down, far enough to clear the header. */
.fe-chrome-overlay .fe-masthead {
  padding-top: calc(var(--fe-chrome-offset, 152px) + 28px);
}
.fe-chrome-overlay .fe-masthead.is-compact {
  padding-top: calc(var(--fe-chrome-offset, 152px) + 12px);
}

/* Pages with no banner of their own — the ticket, the invoice, the
   closed-entries notice — have nothing for the header to float over, so
   the content itself starts below it.

   The sibling list is spelt out rather than using :first-of-type
   because a template may legitimately emit its own <style> or <script>
   before the page, and a page that misses this selector renders with
   the site header sitting on top of its first line. */
.fe-chrome-overlay .fe-chrome-head + .fe-page,
.fe-chrome-overlay .fe-chrome-head + script + .fe-page,
.fe-chrome-overlay .fe-chrome-head + style + .fe-page,
.fe-chrome-overlay .fe-chrome-head + script + style + .fe-page,
.fe-chrome-overlay .fe-chrome-head + style + script + .fe-page {
  padding-top: calc(var(--fe-chrome-offset, 152px) + 24px);
}

@media (max-width: 1120px) {
  .fe-chrome-overlay .fe-masthead { padding-top: calc(var(--fe-chrome-offset, 132px) + 20px); }
}
@media (max-width: 767px) {
  .fe-chrome-overlay { --fe-chrome-offset: 108px; }
  .fe-chrome-overlay .fe-masthead,
  .fe-chrome-overlay .fe-masthead.is-compact {
    padding-top: calc(var(--fe-chrome-offset, 108px) + 12px);
  }
}

/* A ticket is meant to come out of a printer. The site's header, its menu
   and the whole footer are noise on paper. */
@media print {
  .fe-chrome-head,
  .fe-chrome-foot,
  .fe-chrome-overlay .fe-chrome-head { display: none !important; }
  .fe-chrome-overlay .fe-chrome-head + .fe-page,
  .fe-chrome-overlay .fe-chrome-head + script + .fe-page,
  .fe-chrome-overlay .fe-chrome-head + style + .fe-page,
  .fe-chrome-overlay .fe-chrome-head + script + style + .fe-page,
  .fe-chrome-overlay .fe-chrome-head + style + script + .fe-page,
  .fe-chrome-overlay .fe-masthead { padding-top: 0 !important; }
}

/* ------------------------------------------------------------------ *
 * The discount code
 *
 * On the review step, beside the total. A code box at the top of a form
 * makes everybody stop and go looking for a code they were never given;
 * here it is where the person who has one will look for it.
 * ------------------------------------------------------------------ */

.fe-code-label { display:block; font-weight:600; margin-bottom:6px; }
.fe-code-row { display:flex; gap:10px; flex-wrap:wrap; }
.fe-code-row input {
  flex:1 1 220px; min-width:0; max-width:320px;
  padding:14px 16px; font-size:1rem; text-transform:uppercase; letter-spacing:.06em;
  border:1px solid var(--fe-line,#D3CED2); border-radius:8px;
}
.fe-code-row input::placeholder { text-transform:none; letter-spacing:normal; }
.fe-code-row .fe-btn { flex:0 0 auto; width:auto; }
.fe-code-error { color:#A0161F; margin:10px 0 0; font-size:.9375rem; }
.fe-code-ok { color:#14622B; margin:10px 0 0; font-size:.9375rem; }
.fe-summary-discount { color:#14622B; }

/* ------------------------------------------------------------------ *
 * Waitlist
 *
 * Folded shut under the sold-out label, because it is offered at the
 * moment of disappointment and must not compete with the distances that
 * are still open.
 * ------------------------------------------------------------------ */

.fe-waitlist { margin-top: 10px; }
.fe-waitlist summary {
  cursor: pointer; font-size: .9375rem; font-weight: 600;
  color: var(--fe-ink, #2B2C27); display: inline-block; padding: 4px 0;
}
.fe-waitlist summary::marker { color: var(--fe-brand, #F7E829); }
.fe-waitlist-form { margin-top: 10px; }
.fe-waitlist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fe-waitlist-row input {
  flex: 1 1 160px; min-width: 0; padding: 11px 13px; font-size: .9375rem;
  border: 1px solid var(--fe-line, #D3CED2); border-radius: 8px;
}
.fe-waitlist-row .fe-btn { flex: 0 0 auto; width: auto; }

/* ------------------------------------------------------------------ *
 * Results
 *
 * Read on a phone on the bus home. The table must not scroll sideways,
 * so the two columns that can be dropped are dropped and their content
 * moves under the name instead.
 * ------------------------------------------------------------------ */

.fe-results .fe-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.fe-results-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fe-results-table th {
  text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: #666666; font-weight: 700; padding: 10px 10px; border-bottom: 2px solid #2B2C27;
  white-space: nowrap;
}
.fe-results-table td { padding: 11px 10px; border-bottom: 1px solid #EDEDED; vertical-align: top; }
.fe-results-table tr:last-child td { border-bottom: 0; }

.fe-pos  { font-weight: 800; font-variant-numeric: tabular-nums; width: 3.5em; }
.fe-bib  { font-family: ui-monospace, Consolas, monospace; color: #666666; white-space: nowrap; }
.fe-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fe-name { display: block; font-weight: 600; }
.fe-club { display: block; color: #666666; font-size: .8125rem; }
.fe-dnf  { color: #666666; font-weight: 600; font-size: .8125rem; }
.fe-row-muted { opacity: .7; }

.fe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.fe-chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #D3CED2; text-decoration: none; color: #2B2C27; font-size: .875rem;
}
.fe-chip.is-on { background: #F7E829; border-color: #F7E829; font-weight: 700; }

.fe-show-narrow { display: none; }
@media (max-width: 620px) {
  .fe-hide-narrow { display: none; }
  .fe-show-narrow { display: block; }
  .fe-results-table td, .fe-results-table th { padding: 10px 6px; }
}

/* ------------------------------------------------------------------ *
 * The certificate link on a results row
 *
 * Quiet until it is wanted. It sits on every finisher's row, which is
 * most of the table, so it cannot compete with the time — but a runner
 * scanning for their own name is looking for exactly this word.
 * ------------------------------------------------------------------ */

.fe-cert-cell { white-space: nowrap; text-align: right; }
.fe-cert-link {
  font-size: .8125rem; text-decoration: none;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--fe-line, #D3CED2);
  color: inherit; display: inline-block;
}
.fe-cert-link:hover, .fe-cert-link:focus { border-color: currentColor; }

@media (max-width: 640px) {
  .fe-cert-link { padding: 3px 8px; font-size: .75rem; }
}

/* ------------------------------------------------------------------ *
 * The company roster
 *
 * Used by an HR manager on a work laptop, working from a spreadsheet
 * they already have. The paste box is first because pasting is what
 * they will actually do; the one-person form is below it for the
 * substitution that arrives on the Friday.
 * ------------------------------------------------------------------ */

.fe-roster-progress {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  padding: 14px 18px; margin: 0 0 22px;
  border-radius: 10px; background: rgba(0,0,0,.04);
}

.fe-textarea {
  width: 100%; box-sizing: border-box; min-height: 160px;
  padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9375rem; line-height: 1.6;
  border: 1px solid var(--fe-line, #D3CED2); border-radius: 8px;
}

.fe-roster-table { width: 100%; border-collapse: collapse; }
.fe-roster-table th, .fe-roster-table td {
  text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--fe-line, #E7E3E6);
}
.fe-roster-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.fe-roster-table .fe-row-muted td { opacity: .62; }

.fe-field-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.fe-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 5px; }
.fe-field > span { font-size: .8125rem; font-weight: 600; }
.fe-field input, .fe-field select {
  padding: 11px 13px; font-size: 1rem;
  border: 1px solid var(--fe-line, #D3CED2); border-radius: 8px;
}

.fe-btn-small { padding: 6px 12px; font-size: .8125rem; }

.fe-notice-ok   { border-left: 4px solid #14622B; }
.fe-notice-warn { border-left: 4px solid #A0161F; }
.fe-needs { color: #A0161F; font-size: .8125rem; }

/* ------------------------------------------------------------------ *
 * The sponsor board
 *
 * Below the entry information on purpose. Somebody on this page came to
 * enter a race; a wall of logos above the distances is how a sponsor
 * ends up associated with a page nobody scrolls.
 * ------------------------------------------------------------------ */

.fe-partners { margin: 36px 0 0; padding-top: 26px; border-top: 1px solid var(--fe-line, #E7E3E6); }
.fe-partners-title {
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 14px; color: var(--fe-muted, #666);
}
.fe-partner-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
}
.fe-partner { font-size: 1.0625rem; font-weight: 600; }
.fe-partner a { text-decoration: none; color: inherit; }
.fe-partner a:hover, .fe-partner a:focus { text-decoration: underline; }
.fe-partner-tier {
  display: inline-block; margin-left: 7px; font-size: .75rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fe-muted, #777);
}


/* ------------------------------------------------------------------ *
 * Paying
 *
 * The card button is the only primary action on the confirmation page,
 * so it is allowed the brand yellow; the bank details underneath stay
 * quiet. The status page is deliberately plain — somebody reading it
 * has just spent money and wants a sentence, not a design.
 * ------------------------------------------------------------------ */

.fe-pay-now { margin: 0 0 .5rem; }

.fe-pay-status { max-width: 34rem; margin: 0 auto; }
.fe-pay-status .fe-h1 { margin-bottom: .5rem; }
.fe-pay-status .fe-pay-body { font-size: 1.0625rem; line-height: 1.6; }

/* Pending is not an error and must not look like one. A runner whose
   mobile money is still settling has done nothing wrong. */
.fe-pay-pending .fe-pay-body { font-weight: 600; }


/* ------------------------------------------------------------------ *
 * The entrant portal
 *
 * Deliberately plain. Somebody opens this from a phone, in a hurry,
 * usually to answer one of three questions: when is it, what do I owe,
 * what was my time. Each entry is a row that answers all three without
 * being opened.
 * ------------------------------------------------------------------ */

.fe-portal-signin { max-width: 34rem; margin: 0 auto; }
.fe-portal-lede { font-size: 1.0625rem; }

.fe-portal-form { margin: 1.25rem 0 0; }
.fe-portal-label { display: block; font-weight: 600; margin-bottom: .35rem; }

.fe-portal-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.fe-portal-row input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: .6rem .7rem;
  font: inherit;
  border: 1px solid var(--fe-line, #D3CED2);
  border-radius: 4px;
}

.fe-portal-notice {
  padding: .7rem .9rem;
  border-radius: 4px;
  border-left: 3px solid currentColor;
  font-size: .9375rem;
}
.fe-portal-notice.is-sent { background: #E8F5EE; color: #0F6E56; }
.fe-portal-notice.is-error { background: #FDF2F3; color: #C1121F; }

.fe-portal-alt { margin-top: 1.5rem; }

.fe-portal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.fe-portal-signout { flex: none; }

/* The three numbers a runner actually recites about themselves. */
.fe-portal-summary { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.fe-portal-stat { display: flex; flex-direction: column; }
.fe-portal-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fe-portal-stat-label { font-size: .8125rem; color: var(--fe-muted, #666); }

.fe-portal-owed { font-weight: 600; }

.fe-portal-list { list-style: none; margin: 0; padding: 0; }

.fe-portal-entry {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--fe-line-soft, #E5E5E5);
}
.fe-portal-entry:first-child { border-top: 0; }

.fe-portal-entry-main { flex: 1 1 18rem; min-width: 0; }
.fe-portal-entry-title { margin: 0 0 .2rem; font-size: 1.0625rem; }
.fe-portal-entry-meta { margin: 0; font-size: .875rem; color: var(--fe-muted, #666); }
.fe-portal-result { margin: .35rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.fe-portal-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
}
.fe-portal-owe { font-weight: 600; }
.fe-portal-ok { font-size: .875rem; color: #0F6E56; font-weight: 600; }
.fe-portal-link { font-size: .8125rem; color: var(--fe-muted, #666); font-family: monospace; }

.fe-portal-more { margin-top: 1rem; }


/* =====================================================================
   EVENTS FRONT PAGE - "Events & News" layout (26 Sep 2026)
   Hero + next-event countdown + month calendar + wide event cards.
   Fearless colours: black, brand yellow #F7E829, white. Scoped to .fe-news.
   ===================================================================== */
.fe-news {
  --n-ink: #0b0b0c;
  --n-ink-2: #2b2c27;
  --n-muted: #666a70;
  --n-line: #e7e5dc;
  --n-bg: #f7f6f1;
  --n-card: #ffffff;
  --n-yellow: var(--fe-brand, #F7E829);
  --n-yellow-soft: #fdf8c4;
  --n-olive: #7a7000;              /* readable "yellow" for text and icons on white */
  --n-radius: 18px;
  --n-shadow: 0 10px 30px rgba(11, 11, 12, .08);
  background: var(--n-bg);
  color: var(--n-ink);
  padding-bottom: 72px;
}
.fe-news *, .fe-news *::before, .fe-news *::after { box-sizing: border-box; }
.fe-news a { text-decoration: none; }
.fe-news-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.fe-news .fe-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--n-olive); }

/* ---------- hero ---------- */
.fe-news-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(-18deg, #3a3b12 0%, #151509 38%, #000 70%);
  padding: 56px 0 64px;
  border-radius: 0 0 40px 40px;
}
.fe-news-hero-img {
  position: absolute; inset: 0 0 0 38%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  opacity: .55;
}
.fe-news-hero::after {               /* keeps the text side readable over any poster */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.fe-news-hero-inner { position: relative; z-index: 1; }
.fe-news-crumbs { font-size: 14px; color: rgba(255,255,255,.72); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fe-news-crumbs a { color: rgba(255,255,255,.85); }
.fe-news-crumbs a:hover { color: var(--n-yellow); }
.fe-news-title {
  margin: 0 0 12px; color: var(--n-yellow); font-weight: 800;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.02em;
}
.fe-news-title .lite { font-weight: 300; }
.fe-news-lede { max-width: 600px; margin: 0 0 30px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.86); }

/* next-event bar with countdown */
.fe-next {
  display: flex; align-items: center; gap: 16px; max-width: 760px;
  padding: 14px 16px; border-radius: 20px;
  background: rgba(20, 20, 16, .88); border: 1px solid rgba(247, 232, 41, .22);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fe-next-date {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 16px;
  background: var(--n-yellow); color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.fe-next-date b { font-size: 28px; font-weight: 800; }
.fe-next-date span { font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-top: 3px; }
.fe-next-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fe-next-text .fe-eyebrow { color: var(--n-yellow); font-size: 11px; }
.fe-next-text strong { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-next-text small { font-size: 13px; color: rgba(255,255,255,.72); }
.fe-count { display: flex; gap: 6px; flex: 0 0 auto; }
.fe-count span {
  width: 46px; padding: 6px 0 4px; border-radius: 10px; text-align: center; line-height: 1;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.fe-count b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fe-count i { display: block; font-style: normal; font-size: 10px; color: rgba(255,255,255,.6); margin-top: 3px; }
.fe-next-cta {
  flex: 0 0 auto; background: var(--n-yellow); color: #000 !important; font-weight: 800;
  padding: 12px 18px; border-radius: 999px; white-space: nowrap; transition: transform .1s, filter .15s;
}
.fe-next-cta:hover { filter: brightness(.95); }
.fe-next-cta:active { transform: scale(.97); }
.fe-next.is-live .fe-count { opacity: .5; }

/* ---------- body: calendar overlaps the hero on wide screens ---------- */
.fe-news-body { position: relative; padding-top: 36px; }
.fe-cal {
  background: var(--n-card); color: var(--n-ink); border-radius: 22px; padding: 20px 20px 16px;
  box-shadow: 0 20px 50px rgba(11, 11, 12, .18); border: 1px solid var(--n-line);
}
.fe-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fe-cal-title { font-size: 19px; font-weight: 800; }
.fe-cal-nav { display: flex; gap: 8px; }
.fe-cal-nav button {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--n-line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--n-ink); cursor: pointer;
}
.fe-cal-nav button:hover { border-color: var(--n-ink); }
.fe-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; text-align: center; }
.fe-cal-grid .dow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--n-muted); padding: 4px 0 6px; }
.fe-cal-grid .day {
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  width: 38px; height: 38px; border-radius: 50%; font-size: 15px; font-weight: 500; color: var(--n-ink);
}
.fe-cal-grid .day.today { box-shadow: inset 0 0 0 2px var(--n-ink); font-weight: 800; }
.fe-cal-grid .day.ev { font-weight: 800; cursor: pointer; transition: transform .1s; }
.fe-cal-grid .day.ev:hover { transform: scale(1.08); }
.fe-cal-grid .day.up { background: var(--n-yellow); color: #000; }
.fe-cal-grid .day.past { background: #dedcd4; color: var(--n-ink-2); }
.fe-cal-key { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--n-muted); }
.fe-cal-key .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.fe-cal-key .dot.up { background: var(--n-yellow); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.fe-cal-key .dot.past { background: #cfcdc4; }

/* ---------- filters ---------- */
.fe-news-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fe-news-tabs { display: inline-flex; background: #fff; border: 1px solid var(--n-line); border-radius: 999px; padding: 4px; }
.fe-news-tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--n-muted); }
.fe-news-tabs a.is-active { background: var(--n-ink); color: var(--n-yellow); }
.fe-news-search { flex: 1 1 260px; display: flex; gap: 8px; }
.fe-news-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--n-line);
  background: #fff; font-size: 16px; color: var(--n-ink); outline: none;
}
.fe-news-search input:focus { border-color: var(--n-ink); box-shadow: 0 0 0 3px rgba(247, 232, 41, .45); }
.fe-news-search button {
  height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--n-ink); color: var(--n-yellow);
  font-weight: 800; cursor: pointer;
}
.fe-news-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.fe-news-chips a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--n-line); background: #fff;
  color: var(--n-ink-2); font-size: 13px; font-weight: 600;
}
.fe-news-chips a:hover { border-color: var(--n-ink); }
.fe-news-chips a.is-active { background: var(--n-yellow); border-color: var(--n-yellow); color: #000; }

/* ---------- section headings ---------- */
.fe-news-section { margin-top: 8px; }
.fe-news-h2 { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--n-ink); }
.fe-news-h2.small { font-size: 26px; margin: 0; }
.fe-news-intro { margin: 0 0 26px; max-width: 640px; color: var(--n-muted); font-size: 16px; }
.fe-news .fe-empty-msg { background: #fff; border: 1px dashed var(--n-line); border-radius: var(--n-radius); padding: 28px; text-align: center; }

/* ---------- event cards ---------- */
.fe-cards { display: flex; flex-direction: column; gap: 22px; }
.fe-card {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px;
  grid-template-areas: "media main facts" "foot foot foot";
  background: var(--n-card); border: 1px solid var(--n-line); border-radius: var(--n-radius);
  overflow: hidden; box-shadow: var(--n-shadow); transition: transform .15s, box-shadow .15s;
}
.fe-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,11,12,.12); }
.fe-card.no-image { grid-template-columns: 170px minmax(0, 1fr) 250px; }
.fe-card-media { grid-area: media; display: block; background: #111; min-height: 200px; }
.fe-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fe-card-ph {
  height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--fe-card-accent, var(--n-yellow)); color: var(--fe-card-ink, #000);
  font-weight: 800; letter-spacing: .1em; font-size: 14px; line-height: 1;
}
.fe-card-ph b { font-size: 54px; letter-spacing: -.02em; margin-bottom: 6px; }
.fe-card-main { grid-area: main; padding: 26px 26px 22px; }
.fe-card-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.fe-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fe-tag.is-open { background: var(--n-yellow); color: #000; }
.fe-tag.is-soon { background: var(--n-ink); color: var(--n-yellow); }
.fe-tag.is-closed, .fe-tag.is-full { background: #ecebe5; color: #5c5d58; }
.fe-tag.is-past { background: #ecebe5; color: #5c5d58; }
.fe-tag.is-price { background: var(--n-yellow-soft); color: #5b5300; }
.fe-tag.is-cat { background: none; padding-left: 2px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--n-muted); }
.fe-card-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.fe-card-title a { color: var(--n-ink); }
.fe-card-title a:hover { text-decoration: underline; text-decoration-color: var(--n-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fe-live {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--n-yellow);
  box-shadow: 0 0 0 0 rgba(247, 232, 41, .7); vertical-align: middle; margin-left: 4px; animation: fe-pulse 1.8s infinite;
}
@keyframes fe-pulse { 70% { box-shadow: 0 0 0 9px rgba(247, 232, 41, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 232, 41, 0); } }
.fe-card-sum { margin: 0; color: var(--n-muted); font-size: 15px; line-height: 1.6; }
.fe-card-facts { grid-area: facts; list-style: none; margin: 0; padding: 26px 24px; border-left: 1px solid var(--n-line); display: flex; flex-direction: column; gap: 16px; }
.fe-card-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--n-ink-2); line-height: 1.4; }
.fe-card-facts li b { font-weight: 800; color: var(--n-ink); letter-spacing: .02em; }
.fe-card-facts svg { flex: 0 0 auto; width: 20px; height: 20px; fill: var(--n-olive); margin-top: 1px; }
.fe-card-foot {
  grid-area: foot; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: #fbfaf4; border-top: 1px solid var(--n-line);
}
.fe-share {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--n-line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fe-share svg { width: 18px; height: 18px; fill: var(--n-ink); }
.fe-share:hover { border-color: var(--n-ink); }
.fe-share-done {
  position: absolute; left: 52px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--n-olive);
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.fe-share.copied .fe-share-done { opacity: 1; }
.fe-card-cta {
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--n-line); background: #fff; color: var(--n-ink) !important;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: filter .15s, transform .1s;
}
.fe-card-cta:hover { border-color: var(--n-ink); }
.fe-card-cta:active { transform: scale(.97); }
.fe-card:has(.fe-tag.is-open) .fe-card-cta { background: var(--n-yellow); border-color: var(--n-yellow); color: #000 !important; }

/* ---------- recent races ---------- */
.fe-past { margin-top: 56px; }
.fe-past-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fe-news .fe-link { font-weight: 700; color: var(--n-ink); border-bottom: 3px solid var(--n-yellow); padding-bottom: 2px; }
.fe-past-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fe-past-item {
  display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; background: #fff; border: 1px solid var(--n-line);
  border-radius: 16px; color: var(--n-ink); transition: border-color .15s, transform .15s;
}
.fe-past-item:hover { border-color: var(--n-ink); transform: translateY(-2px); }
.fe-past-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: var(--n-olive); }
.fe-past-cat { font-size: 13px; font-weight: 600; color: var(--n-muted); }
.fe-past-item strong { font-size: 17px; line-height: 1.35; }
.fe-past-sum { font-size: 14px; color: var(--n-muted); line-height: 1.5; }

/* ---------- wide screens: calendar sits over the hero, top right ---------- */
@media (min-width: 1024px) {
  .fe-news-hero { padding: 64px 0 92px; }
  .fe-news-hero-inner { padding-right: 380px; }
  .fe-news-body { padding-top: 40px; }
  .fe-cal { position: absolute; top: -300px; right: 20px; width: 350px; z-index: 5; }
  .fe-news-tools, .fe-news-chips { margin-right: 370px; }
}

/* ---------- tablets ---------- */
@media (max-width: 1023px) {
  .fe-cal { margin-bottom: 26px; }
  .fe-card { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "media main" "media facts" "foot foot"; }
  .fe-card.no-image { grid-template-columns: 140px minmax(0, 1fr); }
  .fe-card-facts { border-left: 0; border-top: 1px solid var(--n-line); flex-direction: row; flex-wrap: wrap; gap: 10px 22px; padding: 16px 26px; }
}

/* ---------- phones ---------- */
@media (max-width: 680px) {
  .fe-news-wrap { padding: 0 14px; }
  .fe-news-hero { padding: 30px 0 34px; border-radius: 0 0 28px 28px; }
  .fe-news-hero-img { inset: 0; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .fe-news-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.9)); }
  .fe-news-lede { font-size: 16px; margin-bottom: 20px; }
  .fe-next { flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 18px; }
  .fe-next-date { width: 56px; height: 56px; border-radius: 14px; }
  .fe-next-date b { font-size: 24px; }
  .fe-next-text { flex: 1 1 calc(100% - 80px); }
  .fe-next-text strong { white-space: normal; font-size: 16px; }
  .fe-count { flex: 1 1 auto; justify-content: space-between; }
  .fe-count span { flex: 1; width: auto; }
  .fe-next-cta { flex: 1 1 100%; text-align: center; padding: 13px; }
  .fe-news-body { padding-top: 22px; }
  .fe-cal { border-radius: 18px; padding: 16px 14px 12px; }
  .fe-cal-grid .day { width: 36px; height: 36px; font-size: 14px; }
  .fe-news-tabs { width: 100%; }
  .fe-news-tabs a { flex: 1; text-align: center; }
  .fe-news-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 22px; padding: 0 14px 4px; scrollbar-width: none; }
  .fe-news-chips::-webkit-scrollbar { display: none; }
  .fe-news-chips a { flex: 0 0 auto; }
  .fe-card, .fe-card.no-image { grid-template-columns: 1fr; grid-template-areas: "media" "main" "facts" "foot"; border-radius: 16px; }
  .fe-card-media, .fe-card-ph { min-height: 0; }
  .fe-card-media img { aspect-ratio: 16 / 10; height: auto; }
  .fe-card.no-image .fe-card-media { display: none; }
  .fe-card-main { padding: 18px 18px 14px; }
  .fe-card-title { font-size: 21px; }
  .fe-card-facts { flex-direction: column; padding: 14px 18px; gap: 10px; }
  .fe-card-foot { padding: 12px 14px; }
  .fe-card-cta { padding: 12px 18px; }
  .fe-past-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fe-live { animation: none; }
  .fe-card, .fe-card:hover, .fe-past-item:hover { transform: none; transition: none; }
}

/* --- events front page: fixes after first look (26 Sep 2026) --- */
/* room for the site's own header (logo + menu button) that sits over the top of the page */
.fe-news-hero { padding-top: 150px; }
@media (min-width: 1024px) { .fe-news-hero { padding-top: 170px; } }
@media (max-width: 680px)  { .fe-news-hero { padding-top: 118px; } }
/* the theme styles every form control; keep the search row as one pill + one button */
.fe-news .fe-news-search input[type="search"] { flex: 1 1 auto !important; width: auto !important; max-width: none !important; margin: 0 !important; }
.fe-news .fe-news-search button { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
/* next-event name: wrap to two lines instead of cutting it off */
.fe-next-text strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
@media (min-width: 681px) {
  .fe-next { gap: 14px; }
  .fe-next-text { min-width: 190px; }
  .fe-count { gap: 5px; }
  .fe-count span { width: 42px; }
  .fe-next-cta { padding: 12px 16px; }
}
@media (max-width: 680px) { .fe-news .fe-live { display: none; } }

/* ---- Event flyer on the single event page ---- */
.fe-flyer{margin:0 0 20px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 6px 24px rgba(0,0,0,.12)}
.fe-flyer img{display:block;width:100%;height:auto}
.fe-flyer figcaption{padding:10px 14px;font-size:.85rem;text-align:center;border-top:1px solid rgba(0,0,0,.06)}
.fe-flyer figcaption a{color:inherit;font-weight:600;text-decoration:none}
.fe-flyer figcaption a:hover{text-decoration:underline}

/* ---- Event cards (1 Oct 2026): image with date badge + countdown, category, title, date, venue,
   short summary, then price and a yellow button. Same look as the member portal's event cards. */
.fe-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin-top: 8px; }
.fe-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--n-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(16,24,40,.06); transition: transform .2s, box-shadow .2s; }
.fe-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.12); }
.fe-tile-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b0b0c; overflow: hidden; }
.fe-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.fe-tile-blur { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(18px) brightness(.55); }
.fe-tile:hover .fe-tile-media img { transform: scale(1.04); }
/* no image yet: branded placeholder with the event name */
.fe-tile-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px 20px; text-align: center;
  background: radial-gradient(120% 90% at 85% 0%, rgba(247,232,41,.28), transparent 55%), linear-gradient(135deg, #1c1c1c, #0b0b0c); }
.fe-tile-ph span { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; border-bottom: 3px solid var(--n-yellow); padding-bottom: 6px; }
.fe-tile-date { position: absolute; top: 12px; left: 12px; z-index: 2; min-width: 58px; padding: 7px 8px 6px; border-radius: 12px;
  background: var(--n-yellow); color: #000; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.fe-tile-date b { display: block; font-size: 24px; letter-spacing: -.01em; margin-bottom: 3px; }
.fe-tile-pill { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: rgba(11,11,12,.82); color: #fff; font-size: 13px; font-weight: 700; }
.fe-tile-pill.is-live { background: var(--n-yellow); color: #000; }
.fe-tile-pill.is-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; margin-right: 6px; vertical-align: 1px; }
.fe-tile-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.fe-tile-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n-muted); margin-bottom: 4px; }
.fe-tile-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.fe-tile-title a { color: var(--n-ink); text-decoration: none; }
.fe-tile-title a:hover { text-decoration: underline; text-decoration-color: var(--n-yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.fe-news .fe-tile-meta { list-style: none; margin: 0 0 10px; padding: 0; }
.fe-tile-meta li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 5px; font-size: 15px; color: #44403c; line-height: 1.4; }
.fe-tile-meta svg { flex: 0 0 18px; width: 18px; height: 18px; fill: var(--n-ink); margin-top: 1px; }
.fe-news .fe-tile-sum { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--n-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fe-tile-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--n-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fe-tile-price { font-size: 17px; font-weight: 800; color: var(--n-ink); }
.fe-tile-price small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--n-muted); margin-right: 2px; }
.fe-tile-price .is-sold { color: #b42318; }
.fe-news .fe-tile-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 12px; background: var(--n-yellow);
  color: #000 !important; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .15s, transform .1s; }
.fe-news .fe-tile-btn:hover { filter: brightness(.95); }
.fe-news .fe-tile-btn:active { transform: scale(.97); }
.fe-tile:not(.is-open) .fe-tile-btn { background: #fff; border: 1px solid var(--n-line); }
.fe-tile.is-past .fe-tile-media img { filter: grayscale(.4); }
/* on wide screens the calendar overlaps the hero: keep the heading clear of it, cards use the full width */
@media (min-width: 1024px) { .fe-news-section > .fe-eyebrow, .fe-news-section > .fe-news-h2, .fe-news-section > .fe-news-intro { margin-right: 370px; } }
@media (max-width: 680px) { .fe-tiles { grid-template-columns: 1fr; gap: 20px; } .fe-tile-title { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .fe-tile, .fe-tile:hover, .fe-tile-media img { transform: none !important; transition: none; } }

/* ---------- phones & tablets (2 Oct 2026): events first, calendar after them ---------- */
@media (max-width: 1023px) {
  .fe-news-body { display: flex; flex-direction: column; }
  .fe-news-main { order: 1; }
  .fe-cal { order: 2; margin: 30px 0 26px; }
}
@media (max-width: 680px) {
  .fe-tile-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .fe-news-search input { font-size: 16px; }
}
