/* =========================================================================
   Exotics Group - eg-premium.css
   The site-wide design layer. Loaded AFTER style.css (and after car.css on
   car pages) by every layout, so it refines what is already there rather
   than replacing it.

   Rules of the system
   -------------------
   - Near-black, neutral surfaces (no blue cast); warm off-white ink; ONE
     accent - champagne gold - used sparingly for emphasis and focus.
   - Bold, tightly tracked Inter for headlines (the Partners & Vendors look), Inter for everything
     else. Fomantic's Lato is replaced component by component; icon fonts are
     never touched.
   - Small radii and hairline borders instead of big rounded shadowed boxes.
   - Every new component is prefixed eg- . Car pages use bare class names
     (.hero, .header, .section) from car.css, so nothing here styles bare
     generic classes except where it is already shared with style.css.

   Sections
     1. Tokens & fonts        6. Footer
     2. Base & typography     7. Shared components (eyebrow, empty, media, chips)
     3. Fomantic refinements  8. Video facade (.eg-yt)
     4. Buttons               9. Homepage (hero, results, interviews, journal)
     5. Top bar & sidebar    10. Car page  11. Motion & accessibility
                             12. Modals & sign-in
   ========================================================================= */

/* Fonts - fonts.googleapis.com / fonts.gstatic.com are both in the CSP. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces: neutral near-blacks, stepped by elevation. */
  --bg: #09090a;
  --panel: #111113;
  --panel-raise: #161618;
  --panel-elev: #1c1c1f;

  /* Ink: warm off-white, and a muted that still clears 7:1 on --bg. */
  --ink: #f2efe8;
  --ink-2: #e7e2d7;
  --muted: #a8a397;
  --ink-muted: #a8a397;
  --faint: #8a857c; /* 5.5:1 on #070708, 5.1:1 on --panel */

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Status inks: desaturated so they sit with the palette, still AA on --panel. */
  --ok: #9cc7a1;
  --danger-soft: #e8908a;

  /* The one accent. Kept at the existing brand gold's hue. */
  --accent: #c9a96a;
  --accent-rgb: 201, 169, 106;
  --accent-ink: #0b0b0c;
  --accent-soft: rgba(201, 169, 106, 0.14);
  --accent-hover: #d6b67a;   /* primary buttons on hover: a lighter gold */
  --focus: #c9a96a;

  /* Links read as ivory, not as browser blue. */
  --link: #e3d3ab;

  --field-bg: rgba(18, 18, 20, 0.72);
  --field-border: rgba(255, 255, 255, 0.14);
  --field-radius: 6px;

  /* Display = the Partners & Vendors directory style: bold, tightly tracked Inter. */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display-weight: 600;
  --display-track: -0.035em;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --topbar-h: 64px;
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ---------- 2. Base & typography ---------- */
html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body {
  padding-top: var(--topbar-h);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover {
  color: var(--ink);
  opacity: 1;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

/* Fomantic sets Lato on each component; restate the family on the same
   selectors so source order (this file loads last) decides it. */
h1, h2, h3, h4, h5, h6,
.ui.header,
.ui.button,
.ui.buttons .button,
.ui.input,
.ui.input > input,
.ui.form,
.ui.form input:not([type]),
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="search"],
.ui.form input[type="tel"],
.ui.form input[type="password"],
.ui.form input[type="number"],
.ui.form textarea,
.ui.form .field > label,
.ui.menu,
.ui.card,
.ui.cards > .card,
.ui.card > .content > .header,
.ui.cards > .card > .content > .header,
.ui.items > .item > .content > .header,
.ui.list,
.ui.label,
.ui.labels .label,
.ui.message,
.ui.dropdown,
.ui.dropdown .menu > .item,
.ui.table,
.ui.modal,
.ui.modal > .header,
.ui.segment,
.ui.statistic > .value,
.ui.statistic > .label,
.ui.popup,
.ui.toast-container .toast-box,
.ui.steps .step,
.ui.accordion .title:not(.ui) {
  font-family: var(--font-sans);
}

/* Display headings: page titles and section titles, in the Partners &
   Vendors style - bold Inter, tight tracking. */
h1,
h2,
.section-head > .ui.header,
.section-head h2.ui.header,
.eg-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.02;
}

/* Every other display-face element: same weight, slightly looser tracking
   because these run smaller. */
.eg-hero__title,
.eg-yt__title,
.eg-about__title,
.eg-story__title,
.eg-empty__title,
.eg-results__title,
.eg-footer__brand,
.eg-hero__stats strong,
.eg-car__price,
.eg-date__d,
.eg-media__fallback,
.eg-car-videos__item h3,
.eg-page-car .header h1,
.eg-page-car .price {
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
}
.eg-hero__title { letter-spacing: var(--display-track); }
.eg-hero__title em { display: block; }   /* "We'll find it." always on its own line */

/* The gold accent inside a headline: light weight, not italic - the same
   treatment as the "&" in "Partners & Vendors". */
.eg-display em,
.eg-hero__title em,
.eg-section-head .eg-display em {
  font-style: normal !important;
  font-weight: 300;
  color: var(--accent);
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2,
.section-head > .ui.header,
.section-head h2.ui.header { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

h3, h4 {
  font-weight: 500;
  letter-spacing: 0;
}

.u-muted { color: var(--muted) !important; }

/* ---------- 3. Fomantic refinements ---------- */
.section {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.section-head {
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head .ui.header,
.section-head .ui.header .sub.header {
  color: var(--ink);
}

/* Cards: flat panels with a hairline; the photo does the work. */
.ui.cards > .card,
.ui.card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.ui.cards > a.card:hover,
.ui.link.cards .card:hover,
a.ui.card:hover {
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  transform: translateY(-2px);
}
.ui.cards > .card > .image,
.ui.card > .image {
  border-radius: 0 !important;
  background: #000;
}
.ui.cards > .card > .content > .header,
.ui.card > .content > .header {
  font-weight: 500;
  color: var(--ink) !important;
}
.ui.cards > .card .meta,
.ui.card .meta,
.ui.cards > .card .description,
.ui.card .description {
  color: var(--muted) !important;
}

/* Fields: one hairline treatment everywhere. */
.ui.input > input,
.ui.form input:not([type]),
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="search"],
.ui.form input[type="tel"],
.ui.form input[type="password"],
.ui.form input[type="number"],
.ui.form textarea {
  border-radius: var(--field-radius) !important;
}

/* Fomantic's blue/teal accents read as "default web". Bring the common ones
   into the palette without touching semantic colours (red/green/orange). */
.ui.blue.label,
.ui.blue.labels .label,
.ui.teal.label {
  background: var(--panel-elev) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
}
.ui.progress .bar { background: var(--accent) !important; }
.ui.checkbox input:checked ~ .box::after,
.ui.checkbox input:checked ~ label::after { color: var(--accent) !important; }
.ui.toggle.checkbox input:checked ~ .box::before,
.ui.toggle.checkbox input:checked ~ label::before { background-color: var(--accent) !important; }

.ui.inverted.divider,
.ui.divider:not(.vertical):not(.horizontal) {
  border-top-color: var(--line) !important;
}

/* ---------- 4. Buttons ---------- */
.ui.button {
  border-radius: var(--radius) !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.2s var(--ease) !important;
}
.ui.button:active { transform: translateY(1px); }

/* ---- The button system (2026-10-22) ------------------------------------
   One look for every action button, so the same job always looks the same
   (the home Search and the events Apply had drifted apart: gradient vs.
   flat, 60% text, sentence case vs. capitals, pill vs. square partner).

     Primary   .ui.primary.button, .ui.gold.button   flat gold, dark text
     Secondary .ui.basic.button (inverted or not)     1px outline, light text
     Danger    .ui.red.button                         flat red, white text
               .ui.basic.red.button                   red outline

   All share: var(--radius) corners, a 1px border (so a primary and a
   secondary side by side are exactly the same height), 500 weight, small
   capitals tracked 0.14em - the same type as .eg-btn and the home search
   button. Only the size varies, by Fomantic's size classes. Round icon
   buttons (.circular, .eg-icon-btn) keep their shape. .gold.invt (dark
   with gold text) is left as it is. */
.ui.button.primary,
.ui.primary.buttons .button,
.ui.button.gold:not(.invt),
.ui.button.basic,
.ui.button.red {
  border: 1px solid transparent !important;
  box-shadow: none !important;
  background-image: none !important;
  font-weight: 500 !important;
  font-size: 0.78rem;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 1.05em 1.6em !important;
  text-shadow: none !important;
}
.ui.button.primary:not(.circular):not(.eg-icon-btn),
.ui.primary.buttons .button,
.ui.button.gold:not(.invt):not(.circular):not(.eg-icon-btn),
.ui.button.basic:not(.circular):not(.eg-icon-btn),
.ui.button.red:not(.circular):not(.eg-icon-btn) {
  border-radius: var(--radius) !important;
}
/* Icon-only buttons stay square-ish rather than wide. */
.ui.icon.button.primary, .ui.icon.button.gold, .ui.icon.button.basic, .ui.icon.button.red { padding: 0.9em !important; }

/* Sizes */
.ui.mini.button.primary,  .ui.mini.button.gold,  .ui.mini.button.basic,  .ui.mini.button.red  { font-size: 0.64rem; }
.ui.tiny.button.primary,  .ui.tiny.button.gold,  .ui.tiny.button.basic,  .ui.tiny.button.red  { font-size: 0.68rem; }
.ui.small.button.primary, .ui.small.button.gold, .ui.small.button.basic, .ui.small.button.red { font-size: 0.72rem; }
.ui.large.button.primary, .ui.large.button.gold, .ui.large.button.basic, .ui.large.button.red { font-size: 0.86rem; }
.ui.big.button.primary,   .ui.big.button.gold,   .ui.big.button.basic,   .ui.big.button.red,
.ui.huge.button.primary,  .ui.huge.button.gold,  .ui.huge.button.basic,  .ui.huge.button.red  { font-size: 0.94rem; }

/* Primary */
.ui.button.primary,
.ui.primary.buttons .button,
.ui.button.gold:not(.invt) {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.ui.button.primary:hover,
.ui.primary.buttons .button:hover,
.ui.button.gold:not(.invt):hover,
.ui.button.primary:focus-visible,
.ui.button.gold:not(.invt):focus-visible {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: var(--accent-ink) !important;
}

/* Secondary */
.ui.button.basic:not(.red) {
  background: transparent !important;
  border-color: var(--line-strong) !important;
  color: var(--ink) !important;
}
.ui.button.basic:not(.red):hover,
.ui.button.basic:not(.red):focus-visible {
  background: transparent !important;
  border-color: rgba(var(--accent-rgb), 0.7) !important;
  color: var(--accent) !important;
}

/* Danger */
.ui.button.red:not(.basic) {
  background-color: #c93c3c !important;
  border-color: #c93c3c !important;
  color: #fff !important;
}
.ui.button.red:not(.basic):hover,
.ui.button.red:not(.basic):focus-visible {
  background-color: #d95252 !important;
  border-color: #d95252 !important;
}
.ui.button.basic.red {
  background: transparent !important;
  border-color: rgba(232, 144, 138, 0.55) !important;
  color: var(--danger-soft) !important;
}
.ui.button.basic.red:hover,
.ui.button.basic.red:focus-visible {
  border-color: var(--danger-soft) !important;
  background: rgba(232, 144, 138, 0.08) !important;
}

/* Keyboard focus ring, the same on all of them. */
.ui.button.primary:focus-visible,
.ui.button.gold:focus-visible,
.ui.button.basic:focus-visible,
.ui.button.red:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 2px;
}

/* Fomantic hides the label while .loading spins; the colours above would
   otherwise paint it back over the spinner. */
.ui.loading.button.primary,
.ui.loading.button.gold,
.ui.loading.button.basic,
.ui.loading.button.red { color: transparent !important; }

/* ---------- 4b. Fields, labels, panels, tags, titles (public site) ------
   2026-10-22 design-consistency pass. One spec per component for every
   public page (template.cfm and the standalone index-*.cfm pages), taken
   from the sign-in dialog, which was the one place it was complete:

     Field     --field-bg fill, 1px --field-border, --field-radius (6px),
               48px tall, ink text, muted placeholder; hover lightens the
               border, focus turns it gold with a soft gold ring. Text boxes,
               text areas, native selects and Fomantic dropdowns all match,
               so a row of mixed filters lines up.
     Label     0.82rem, weight 500, --ink-2.
     Panel     .ui.segment / .ui.message: --panel, 1px --line, --radius-lg
               (the card radius), no shadow or glow. Basic segments stay bare.
     Tag       .ui.label: neutral outline; gold labels are an accent outline;
               green / red / orange keep their meaning as tinted outlines.
     Title     detail-page h1s and h1.ui.header use the display face.

   Scoped away from /admin/ (body.eg-page-admin), which has its own system
   in style-admin.css and uses attached tab segments these rules would break. */
:root { --field-h: 48px; }

body:not(.eg-page-admin) .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not(.search),
body:not(.eg-page-admin) .ui.input > input,
body:not(.eg-page-admin) .ui.form textarea,
body:not(.eg-page-admin) .ui.form select,
body:not(.eg-page-admin) select.ui.dropdown,
body:not(.eg-page-admin) .ui.selection.dropdown {
  background: var(--field-bg) !important;
  border: 1px solid var(--field-border) !important;
  border-radius: var(--field-radius) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  min-height: var(--field-h);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
body:not(.eg-page-admin) .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not(.search),
body:not(.eg-page-admin) .ui.input > input {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
body:not(.eg-page-admin) .ui.form textarea { padding: 0.8rem 1rem; }
body:not(.eg-page-admin) .ui.form select,
body:not(.eg-page-admin) select.ui.dropdown { height: var(--field-h); padding: 0 1rem; }
/* Fomantic sizes a selection dropdown by its padding; centre its text in
   the 48px field (46px inside the border, 1em line). */
body:not(.eg-page-admin) .ui.selection.dropdown {
  padding-top: calc((var(--field-h) - 2px - 1em) / 2) !important;
  padding-bottom: calc((var(--field-h) - 2px - 1em) / 2) !important;
  padding-left: 1rem !important;
  line-height: 1em !important;
}
body:not(.eg-page-admin) .ui.selection.dropdown > .dropdown.icon,
body:not(.eg-page-admin) .ui.selection.dropdown > .search.icon,
body:not(.eg-page-admin) .ui.selection.dropdown > .remove.icon {
  top: 50% !important;
  transform: translateY(-50%);
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  opacity: 1;
}
body:not(.eg-page-admin) .ui.selection.dropdown > input.search {
  padding-top: calc((var(--field-h) - 2px - 1em) / 2) !important;
  padding-bottom: calc((var(--field-h) - 2px - 1em) / 2) !important;
  padding-left: 1rem !important;
  color: var(--ink) !important;
}
body:not(.eg-page-admin) .ui.dropdown > .text { color: var(--ink) !important; }
body:not(.eg-page-admin) .ui.dropdown > .default.text,
body:not(.eg-page-admin) .ui.dropdown > .text.default { color: var(--muted) !important; }
body:not(.eg-page-admin) .ui.form input::placeholder,
body:not(.eg-page-admin) .ui.input > input::placeholder,
body:not(.eg-page-admin) .ui.form textarea::placeholder { color: var(--muted) !important; opacity: 1; }

/* Hover / focus */
body:not(.eg-page-admin) .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.search):hover,
body:not(.eg-page-admin) .ui.input > input:hover,
body:not(.eg-page-admin) .ui.form textarea:hover,
body:not(.eg-page-admin) .ui.form select:hover,
body:not(.eg-page-admin) .ui.selection.dropdown:hover { border-color: rgba(255, 255, 255, 0.24) !important; }
body:not(.eg-page-admin) .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.search):focus,
body:not(.eg-page-admin) .ui.input > input:focus,
body:not(.eg-page-admin) .ui.form textarea:focus,
body:not(.eg-page-admin) .ui.form select:focus,
body:not(.eg-page-admin) .ui.selection.active.dropdown,
body:not(.eg-page-admin) .ui.selection.dropdown:focus {
  border-color: rgba(var(--accent-rgb), 0.8) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16) !important;
  outline: none;
}

/* The open menu */
body:not(.eg-page-admin) .ui.selection.dropdown .menu,
body:not(.eg-page-admin) .ui.selection.active.dropdown .menu {
  background: var(--panel-elev) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.8) !important;
  border-top-width: 0 !important;
  border-radius: 0 0 var(--field-radius) var(--field-radius) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
  margin: 0 -1px !important;
  min-width: calc(100% + 2px) !important;
  width: calc(100% + 2px) !important;
}
body:not(.eg-page-admin) .ui.selection.dropdown .menu > .item {
  border-top: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans);
  padding: 0.8rem 1rem !important;
}
body:not(.eg-page-admin) .ui.selection.dropdown .menu > .item:hover { background: rgba(255, 255, 255, 0.05) !important; }
body:not(.eg-page-admin) .ui.selection.dropdown .menu > .item.selected,
body:not(.eg-page-admin) .ui.selection.dropdown .menu > .item.active {
  background: var(--accent-soft) !important;
  color: #f0dfb8 !important;
  font-weight: 500;
}
body:not(.eg-page-admin) .ui.selection.dropdown.active { border-radius: var(--field-radius) var(--field-radius) 0 0 !important; }
body:not(.eg-page-admin) .ui.selection.upward.active.dropdown { border-radius: 0 0 var(--field-radius) var(--field-radius) !important; }
body:not(.eg-page-admin) .ui.upward.selection.dropdown .menu {
  border-top-width: 1px !important;
  border-bottom-width: 0 !important;
  border-radius: var(--field-radius) var(--field-radius) 0 0 !important;
}

/* A button sitting in a row of fields (filter bars) is as tall as they are. */
body:not(.eg-page-admin) .ui.form .fields > .field > .ui.button,
body:not(.eg-page-admin) .ui.form .fields > .field > .ui.buttons > .ui.button {
  min-height: var(--field-h);
}

/* Labels */
body:not(.eg-page-admin) .ui.form .field > label,
body:not(.eg-page-admin) .ui.inverted.form .field > label,
body:not(.eg-page-admin) .ui.form .fields > .field > label {
  margin-bottom: 0.45rem !important;
  color: var(--ink-2) !important;
  font-family: var(--font-sans);
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-transform: none;
}
body:not(.eg-page-admin) .ui.form .required.field > label::after { color: var(--accent) !important; }
body:not(.eg-page-admin) .ui.checkbox label,
body:not(.eg-page-admin) .ui.inverted.form .ui.checkbox label { color: var(--ink-2) !important; }

/* Panels */
body:not(.eg-page-admin) .ui.segment:not(.basic):not(.attached):not(.vertical):not(.tab):not(.eg-modalpanel),
body:not(.eg-page-admin) .ui.inverted.segment:not(.basic):not(.attached):not(.vertical):not(.tab) {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  color: var(--ink);
}
/* The main panel of event, partner and article pages (style.css gave it
   1.25rem corners and a heavy drop shadow). */
body:not(.eg-page-admin) .eg-article-detail {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
body:not(.eg-page-admin) .ui.basic.segment {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:not(.eg-page-admin) .ui.message {
  background: var(--panel-raise) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  color: var(--ink-2) !important;
}
body:not(.eg-page-admin) .ui.message .header { color: var(--ink) !important; }
body:not(.eg-page-admin) .ui.error.message,
body:not(.eg-page-admin) .ui.negative.message { border-color: rgba(232, 144, 138, 0.45) !important; color: var(--danger-soft) !important; }
body:not(.eg-page-admin) .ui.success.message,
body:not(.eg-page-admin) .ui.positive.message { border-color: rgba(156, 199, 161, 0.45) !important; color: var(--ok) !important; }
body:not(.eg-page-admin) .ui.warning.message { border-color: rgba(242, 166, 90, 0.45) !important; color: #f2c08a !important; }

/* Tags */
body:not(.eg-page-admin) .ui.label:not(.eg-cart-badge):not(.circular):not(.ribbon):not(.corner):not(.empty) {
  background: var(--panel-elev) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-family: var(--font-sans);
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}
body:not(.eg-page-admin) .ui.gold.label:not(.eg-cart-badge),
body:not(.eg-page-admin) .ui.yellow.label:not(.eg-cart-badge),
body:not(.eg-page-admin) .ui.primary.label,
body:not(.eg-page-admin) .ui.label.eg-gold-label {
  background: var(--accent-soft) !important;
  border-color: rgba(var(--accent-rgb), 0.55) !important;
  color: #f0dfb8 !important;
}
body:not(.eg-page-admin) .ui.green.label { background: rgba(156, 199, 161, 0.1) !important; border-color: rgba(156, 199, 161, 0.5) !important; color: var(--ok) !important; }
body:not(.eg-page-admin) .ui.red.label { background: rgba(232, 144, 138, 0.1) !important; border-color: rgba(232, 144, 138, 0.5) !important; color: var(--danger-soft) !important; }
body:not(.eg-page-admin) .ui.orange.label { background: rgba(242, 166, 90, 0.1) !important; border-color: rgba(242, 166, 90, 0.5) !important; color: #f2c08a !important; }

/* Titles */
body:not(.eg-page-admin) .eg-article-detail__title,
body:not(.eg-page-admin) main h1.ui.header {
  font-family: var(--font-display) !important;
  font-weight: var(--display-weight) !important;
  color: var(--ink) !important;
}
body:not(.eg-page-admin) .eg-article-detail__title { letter-spacing: -0.025em; line-height: 1.15; }
/* A page title (Privacy, Terms, Accessibility) at the .eg-pagehead size. */
body:not(.eg-page-admin) main h1.ui.header {
  font-size: clamp(2.4rem, 6vw, 4.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: var(--display-track) !important;
}
body:not(.eg-page-admin) main .ui.header:not(h1) {
  font-family: var(--font-sans);
  font-weight: 600 !important;
  color: var(--ink) !important;
}
body:not(.eg-page-admin) main .ui.header .sub.header { color: var(--muted) !important; font-weight: 400 !important; }
/* Headings inside an article, event or partner description always sit
   below the page title (they had inherited the 2.9rem section-title size,
   twice the title's). */
body:not(.eg-page-admin) .eg-article-detail__body h1,
body:not(.eg-page-admin) .eg-article-detail__body h2 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
}
body:not(.eg-page-admin) .eg-article-detail__body h3 { font-size: 1.22rem !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.3 !important; }
body:not(.eg-page-admin) .eg-article-detail__body h4 { font-size: 1.05rem !important; font-weight: 600 !important; letter-spacing: 0 !important; }
/* Fomantic restates Lato on list headers/descriptions. */
.ui.list > .item .header,
.ui.list > .item .description,
.ui.list .list > .item .header,
.ui.items > .item .meta,
.ui.items > .item .description { font-family: var(--font-sans); }

/* Native buttons/links used by the new components. */
.eg-btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0 1.4rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.eg-btn:hover { border-color: var(--accent); color: var(--accent); }
.eg-btn--solid { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: var(--accent); }
.eg-btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.eg-btn--quiet { --btn-line: transparent; padding: 0; min-height: 0; }
.eg-btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.7rem; }
.eg-btn--danger:hover { border-color: var(--danger-soft); color: var(--danger-soft); }
.eg-btn svg { width: 1em; height: 1em; flex: none; }
.eg-btn i.icon { margin: 0; height: auto; }
/* .loading is what the Fomantic-era handlers add while a request is out. */
.eg-btn:disabled,
.eg-btn.disabled,
.eg-btn.loading { opacity: 0.45; pointer-events: none; }
.eg-btn.loading { cursor: progress; }

/* An inline action that reads as a link: "Forgot password?", "Sign in". */
.eg-textlink {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.eg-textlink:hover { color: var(--accent); }

/* Text link with a trailing arrow that nudges on hover. */
.eg-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.eg-link-arrow::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}
.eg-link-arrow:hover { color: var(--accent); }
.eg-link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Top bar & sidebar ---------- */
.ui.top.fixed.menu.eg-topbar {
  height: var(--topbar-h);
  background: rgba(9, 9, 10, 0.72) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 calc(var(--gutter) - 1rem);
}
.ui.top.fixed.menu.eg-topbar .item {
  color: var(--ink) !important;
  background: transparent !important;
}
.ui.top.fixed.menu.eg-topbar .item::before { display: none; }   /* Fomantic item dividers */

.eg-topbar .eg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eg-topbar .eg-brand img {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
}

/* Cart and hamburger sit at the right edge at every width. */
.ui.top.fixed.menu.eg-topbar .eg-cart-item { margin-left: auto !important; }

/* Signed-out "Sign up" (nav.cfm): a compact gold button ahead of the cart,
   with the button system's var(--radius) corners (no pill: see section 4).
   Sized to fit next to the brand on a 360px Galaxy; 44px tap target. */
.ui.top.fixed.menu.eg-topbar .eg-join-item {
  margin-left: auto !important;
  padding-left: 0.5rem !important;
  padding-right: 0.25rem !important;
}
.ui.top.fixed.menu.eg-topbar .eg-join-item + .eg-cart-item { margin-left: 0 !important; }
.eg-topbar .eg-join-btn {
  min-height: 36px;
  padding: 0 0.95rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  position: relative;
}
/* Invisible extension so the tap target reaches 44px without a taller pill. */
.eg-topbar .eg-join-btn::after { content: ""; position: absolute; inset: -4px; }
@media (min-width: 992px) {
  .ui.top.fixed.menu.eg-topbar .eg-topnav + .eg-join-item { margin-left: 0 !important; }
}
/* Signed-out "Sign in" (2026-11-19): a quiet text button before Sign up,
   desktop only; on phones Sign in stays in the sidebar so the bar never wraps. */
.eg-topbar .eg-signin-link {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-2); font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  min-height: 44px; padding: 0 0.75rem; margin-right: 0.25rem;
}
.eg-topbar .eg-signin-link:hover { color: var(--accent); }
.eg-topbar .eg-signin-link:focus-visible,
.eg-topbar .eg-join-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* From 1024px: at 992-1023 the six links + Sign in + Sign up + icons overflow. */
@media (min-width: 1024px) {
  .ui.top.fixed.menu.eg-topbar .eg-join-item { display: flex; align-items: center; }
  .eg-topbar .eg-signin-link { display: inline-block; }
}
/* Small laptops: six links + Sign up + icons need tighter link spacing. */
@media (min-width: 992px) and (max-width: 1199px) {
  .eg-topbar .eg-topnav { gap: 1rem; padding-right: 0.25rem; }
}
/* Phones (iPhone 375-430, Galaxy 360-412): brand + Sign up + cart + menu
   must share one row, so the brand and icon items get tighter. */
@media (max-width: 991px) {
  .ui.top.fixed.menu.eg-topbar > .header.item { padding-left: 0.5rem !important; padding-right: 0.25rem !important; }
  .ui.top.fixed.menu.eg-topbar .eg-join-item ~ .eg-cart-item,
  .ui.top.fixed.menu.eg-topbar .eg-join-item ~ #egHamburger { padding-left: 0.65rem !important; padding-right: 0.65rem !important; }
}
@media (max-width: 430px) {
  .eg-topbar .eg-brand { font-size: 0.66rem; letter-spacing: 0.18em; gap: 0.5rem; }
  .eg-topbar .eg-join-btn { padding: 0 0.8rem; letter-spacing: 0.1em; }
}
@media (max-width: 339px) {
  .eg-topbar .eg-brand { font-size: 0; gap: 0; }   /* logo mark only */
}

/* Desktop links. The hamburger stays: it carries account and admin. */
.eg-topnav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-left: auto;
  padding-right: 1rem;
}
.eg-topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}
.eg-topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.eg-topnav a:hover,
.eg-topnav a[aria-current="page"] { color: var(--ink); }
.eg-topnav a:hover::after,
.eg-topnav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 992px) {
  .eg-topnav { display: flex; }
  .ui.top.fixed.menu.eg-topbar .eg-topnav + .eg-cart-item { margin-left: 0 !important; }
}

/* Full-page busy overlay (egPageBusy in common.js). Above Fomantic's modal
   dimmer (z-index 1000), so it covers an open modal too, and blurs it. */
.ui.page.dimmer.eg-page-busy {
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#egMobileSidebar.ui.inverted.vertical.sidebar.menu {
  background: #0c0c0d !important;
  border-left: 1px solid var(--line);
  border-right: 0;
}
#egMobileSidebar .eg-gold {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 32px;
  border-top: 1px solid var(--line);
  background: #070708;
  color: var(--muted);
  font-size: 0.9rem;
}
.eg-footer {
  max-width: 1200px;
  margin: 0 auto;
}
.eg-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .eg-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.eg-footer__brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.eg-footer__tag {
  max-width: 32ch;
  margin: 0 0 1rem;
}
.eg-footer__phone { margin: 0 0 1.25rem; }
.eg-footer__phone a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.eg-footer__phone a:hover { color: var(--accent); }
.eg-footer__phone .fa-solid { color: var(--accent); }
.eg-footer__phone-digits { color: var(--muted); font-size: 0.9em; }
.eg-footer h2.eg-footer__head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.eg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.eg-footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.eg-footer__links a:hover { color: var(--ink); }
.eg-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eg-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.eg-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.site-footer .eg-footer__social .fa-brands { color: inherit !important; }
.eg-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--faint);
}
.eg-footer__bottom a { color: var(--faint); }
.eg-footer__bottom a:hover { color: var(--ink); }
.site-footer .eg-footer-legal {
  margin: 0;
  max-width: 80ch;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--faint);
}

/* Visitor location for local sponsors (footer.cfm, sponsor-slots.js) */
.eg-loc { display: inline-flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }
.eg-loc strong { color: var(--muted); font-weight: 600; }
.eg-loc__btn {
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}
.eg-loc__btn:hover { color: var(--ink); }
.eg-loc__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.eg-loc__dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--panel-elev); color: var(--ink);
}
.eg-loc__dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.eg-loc__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.eg-loc__help { margin: 0 0 16px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.eg-loc__label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--muted); }
.eg-loc__input {
  width: 9em; padding: 10px 12px; font: inherit; font-size: 1rem; letter-spacing: 0.08em;
  color: var(--ink); background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--field-radius);
}
.eg-loc__input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.eg-loc__msg { min-height: 1.4em; margin: 8px 0 0; font-size: 0.85rem; color: var(--danger-soft); }
.eg-loc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eg-loc__actions button {
  padding: 9px 16px; font: inherit; font-size: 0.9rem; cursor: pointer; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
}
.eg-loc__actions .eg-loc__save { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.eg-loc__actions .eg-loc__cancel { margin-left: auto; }
.eg-loc__actions button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 7. Shared components ---------- */
.eg-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eg-section {
  padding: var(--section-y) 0;
}
.eg-section + .eg-section { padding-top: 0; }

.eg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font: 500 0.72rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eg-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Page header: gold eyebrow, giant title with a light gold accent word, lede.
   The Partners & Vendors header, shared by every public section page
   (partners, listings, events, rallies, feed, store). Spacing below it comes
   from the surrounding .section-head, or from what follows on partners. */
.eg-pagehead__eyebrow {
  margin: 0 0 0.9rem;
  font: 600 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eg-pagehead h1.eg-pagehead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.eg-pagehead__accent {
  font-weight: 300;
  color: var(--accent);
}
.eg-pagehead__lede {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}
.eg-pagehead__note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.eg-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.eg-section-head .eg-display {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--ink);
}
.eg-section-head .eg-display em {
  font-style: italic;
  color: var(--accent);
}
.eg-lede {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Media frame: fixed aspect, no layout shift, slow zoom on hover. */
.eg-media {
  display: block;            /* also used on <span>s inside links */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #141416, #0c0c0d);
  aspect-ratio: 3 / 2;
}
.eg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s var(--ease);
}
a:hover .eg-media img,
.eg-media:hover img { transform: scale(1.04); }
.eg-media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
}

/* Chips: what the search understood. */
.eg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* One chip site-wide: search suggestions (home), filters (Partners),
   status (rallies, account). Selected = aria-pressed="true" or .is-active. */
.eg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 34px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.02);
}
.eg-chip[aria-pressed="true"],
.eg-chip.is-active {
  color: #f0dfb8;
  border-color: rgba(var(--accent-rgb), 0.75);
  background: var(--accent-soft);
}
.eg-chip--accent {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
}
button.eg-chip {
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
button.eg-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

/* Empty states: considered, never apologetic. */
.eg-empty {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(var(--accent-rgb), 0.07), transparent 70%),
    var(--panel);
}
.eg-empty__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.eg-empty p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Date block for events and rallies. */
.eg-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  height: 72px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  line-height: 1;
}
.eg-date__m {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-date__d {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
}

/* Inside a panel: quieter, no second border-and-glow box. */
.eg-empty.eg-empty--inset {
  padding: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(500px 160px at 0% 0%, rgba(var(--accent-rgb), 0.06), transparent 70%),
    var(--panel-raise);
}
.eg-empty--inset .eg-empty__title { font-size: 1.2rem; }
.eg-empty--inset p:last-child { margin-bottom: 0; }

/* Panel: a titled block of a working page (account, admin dashboard). */
.eg-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.eg-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.eg-panel h2.eg-panel__title {
  margin: 0;
  font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.eg-panel__sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Status: a dot and a word. Verified, Active, Pending, Canceled. */
.eg-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  font: 500 0.66rem/1.4 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eg-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.eg-status--ok { color: var(--ok); }
.eg-status--wait { color: var(--accent); }
.eg-status--bad { color: var(--danger-soft); }

/* Avatar: the photo, or a gold monogram on a dark disc. */
.eg-avatar {
  --size: 48px;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #26262a, #111113 70%);
  color: var(--accent);
  font: 300 calc(var(--size) * 0.36) / 1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eg-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4);
  pointer-events: none;
}
.eg-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eg-avatar--md { --size: 96px; }
.eg-avatar--lg { --size: clamp(84px, 11vw, 128px); }

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

/* ---------- 8. Video facade (.eg-yt) ----------
   A poster <button> that becomes a youtube-nocookie iframe on click
   (common.js). Nothing is requested from Google until then. */
.eg-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050506;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.eg-yt__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.4s var(--ease);
}
.eg-yt:hover .eg-yt__poster { transform: scale(1.03); }
/* Typographic poster when no car photo exists. */
.eg-yt__type {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(160deg, #141416 0%, #070708 100%);
}
.eg-yt__type::after {
  /* faint carbon weave */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 6px);
}
.eg-yt__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%);
}
.eg-yt__caption {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.eg-yt__title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.05;
  color: #fff;
}
.eg-yt__meta {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-yt__play {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 7vw, 76px);
  height: clamp(56px, 7vw, 76px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(9, 9, 10, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.eg-yt__play svg {
  width: 32%;
  height: 32%;
  margin-left: 6%;
  fill: #fff;
  transition: fill 0.3s var(--ease);
}
.eg-yt:hover .eg-yt__play,
.eg-yt:focus-visible .eg-yt__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.eg-yt:hover .eg-yt__play svg,
.eg-yt:focus-visible .eg-yt__play svg { fill: var(--accent-ink); }
.eg-yt iframe,
.eg-yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* After click the button is replaced by this wrapper. */
.eg-yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

/* =========================================================================
   9. HOMEPAGE
   ========================================================================= */

/* The hero runs under the translucent top bar. */
.eg-page-home main { margin-top: calc(var(--topbar-h) * -1); }

/* ---- Hero ---- */
.eg-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Cinematic but capped: on a very tall screen an uncapped hero is a wall of
     black before the first piece of content. */
  min-height: clamp(620px, 92svh, 1040px);
  padding: calc(var(--topbar-h) + 64px) 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.eg-hero__video,
.eg-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.85) contrast(1.05) brightness(0.75);
}
/* The still under the video (hero.cfm). home.js adds .is-stalled when the
   video won't play, which uncovers it. */
.eg-hero__poster { z-index: -3; }
.eg-hero__video.is-stalled { display: none; }
/* iOS draws a big play glyph over an autoplay video it has blocked. */
.eg-hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.eg-hero__video::-webkit-media-controls { display: none !important; }
.eg-hero::before {
  /* cinematic grade: vignette, a lift of gold at the horizon, and a
     fade into the page so the hero has no hard bottom edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 35%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(900px 380px at 85% 75%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    linear-gradient(180deg, rgba(9, 9, 10, 0.55) 0%, rgba(9, 9, 10, 0.1) 30%, rgba(9, 9, 10, 0.55) 70%, var(--bg) 100%);
}
.eg-hero__inner { width: 100%; }
.eg-hero__title {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1.02;
}
.eg-hero__title em {
  font-style: italic;
  color: var(--accent);
}
.eg-hero__sub {
  max-width: 52ch;
  margin: 0 0 2.25rem;
  color: rgba(242, 239, 232, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
}

/* ---- Search ---- */
.eg-search {
  position: relative;
  max-width: 820px;
}
.eg-search__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 13, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.eg-search__field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
  background: rgba(12, 12, 13, 0.82);
}
.eg-search__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.eg-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 400 1.1rem/1.2 var(--font-sans) !important;
  letter-spacing: 0.005em;
}
.eg-search__input::placeholder { color: rgba(242, 239, 232, 0.5); }
.eg-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.eg-search__clear {
  flex: none;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.eg-search__clear:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.eg-search.has-value .eg-search__clear { display: grid; }
.eg-search__submit {
  flex: none;
  height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.eg-search__submit:hover,
.eg-search__submit:focus-visible { background: var(--accent-hover); }
.eg-search__submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 599px) {
  .eg-search__field { flex-wrap: wrap; padding: 6px 6px 6px 16px; }
  .eg-search__input { height: 52px; font-size: 1rem !important; }
  .eg-search__submit { width: 100%; }
}

.eg-search__try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.eg-search__try-label {
  margin-right: 0.25rem;
  color: rgba(242, 239, 232, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-search__try .eg-chip {
  background: rgba(12, 12, 13, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Home hero featured slot as a card (2026-11-30): artwork, dates, one line, button.
   Stacked on phones, artwork beside the text from 640px. The whole card is the link. */
.eg-feature {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin-top: clamp(24px, 4vh, 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 13, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.eg-feature:hover, .eg-feature:focus-visible { border-color: rgba(var(--accent-rgb), 0.6); color: var(--ink); }
.eg-feature__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.eg-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1.1rem 1.25rem 1.25rem; }
.eg-feature__body .eg-eyebrow { margin: 0; }
.eg-feature__title { font: 600 1.35rem/1.15 var(--font-display); color: #fff; }
.eg-feature__when { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.eg-feature__blurb { color: rgba(242, 239, 232, 0.72); font-size: 0.9rem; line-height: 1.5; }
.eg-feature__cta { margin-top: 0.35rem; }
.eg-feature:hover .eg-feature__cta { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.eg-home-feature .eg-feature { max-width: 960px; margin-top: 0; }
.eg-home-feature .eg-feature__title { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
@media (min-width: 640px) {
  .eg-feature { flex-direction: row; align-items: stretch; }
  .eg-feature__img { width: 42%; flex: none; aspect-ratio: auto; min-height: 100%; }
}

.eg-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.eg-hero__stats li { color: rgba(242, 239, 232, 0.6); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
.eg-hero__stats strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font: 600 2rem/1 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Results ---- */
.eg-results {
  scroll-margin-top: calc(var(--topbar-h) + 16px);
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.eg-results[hidden] { display: none; }
.eg-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.eg-results__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
}
.eg-results__title q { font-weight: 300; color: var(--accent); quotes: "\201C" "\201D"; }
.eg-results__understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.eg-results__understood > span {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-results__note {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.eg-results__note[hidden] { display: none; }
.eg-results__divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-results__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* Listings page search (listings.js nlSearch): the same divider inside the Fomantic card grid. */
.listings-grid > .listings-divider {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0.5em 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.listings-grid > .listings-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.eg-results__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.eg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* Listing card */
.eg-car {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.eg-car:hover { color: var(--ink); }
.eg-car .eg-media { border-radius: var(--radius-lg); }
.eg-car__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1rem 0.1rem 0;
}
.eg-car__make {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* A paid home-page feature (db/073): disclosed, quietly. */
.eg-car__sponsored {
  margin-left: 0.5em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--gold, #c9a45c);
  border-radius: 3px;
  color: var(--gold, #c9a45c);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.eg-car__model {
  margin: 0;
  font: 500 1.05rem/1.3 var(--font-sans);
  color: var(--ink);
}
/* Builder cars (Kris, 2026-11-27): the builder's title under the real model,
   e.g. "Remastered by Gunther Werks - Speedster". Home search cards (a grid:
   spans both columns) and listing cards. */
.eg-builder-line {
  display: block;
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  color: var(--gold, #c9a45c);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.listing-card .eg-builder-line { margin: 0.2rem 0 0.35rem; }
.eg-car__price {
  align-self: start;
  font: 600 1.35rem/1.1 var(--font-display);
  color: var(--ink);
  white-space: nowrap;
}
.eg-car__meta {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.eg-car__meta span + span::before {
  content: "\00B7";
  margin: 0 0.5em;
  color: var(--faint);
}
/* Natural-language search: why this car matched (db/076, home.js). */
.eg-car__why {
  grid-column: 1 / -1;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--faint);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.eg-car__why-label {
  font-weight: 600;
  margin-right: 0.25em;
}
.eg-car__why span + span::before {
  content: "\00B7";
  margin: 0 0.45em;
  color: var(--faint);
}
.eg-car__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35em 0.7em;
  border-radius: 2px;
  background: rgba(9, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-car__flag--match { color: var(--accent); }

/* Homepage "Shop now" product card (common/homeShop.cfm, db/090, 2026-11-30).
   Same rhythm as .eg-car. Studio shots on white and lifestyle photos share
   one 4:3 white frame, contained rather than cropped, so the row is even. */
.eg-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px)  { .eg-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .eg-grid--products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 359px)  { .eg-grid--products { grid-template-columns: 1fr; } }
.eg-product {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.eg-product:hover { color: var(--ink); }
.eg-media--product {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #fff;
}
.eg-media--product img {
  object-fit: contain;
  padding: 6%;
}
.eg-product__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0.1rem 0;
}
.eg-product__title {
  margin: 0;
  font: 500 0.98rem/1.35 var(--font-sans);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eg-product__price {
  font: 600 1.2rem/1.1 var(--font-display);
  color: var(--ink);
}
.eg-product__cta {
  margin-top: 0.15rem;
  color: var(--gold, #c9a45c);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-product:hover .eg-product__cta,
.eg-product:focus-visible .eg-product__cta { text-decoration: underline; text-underline-offset: 3px; }

/* Skeletons */
.eg-skel .eg-media,
.eg-skel__line {
  background: linear-gradient(100deg, #141416 30%, #1d1d20 50%, #141416 70%);
  background-size: 300% 100%;
  animation: eg-shimmer 1.4s linear infinite;
}
.eg-skel .eg-media { border-radius: var(--radius-lg); }
.eg-skel__line {
  height: 12px;
  margin-top: 14px;
  border-radius: 2px;
}
.eg-skel__line--short { width: 40%; }
.eg-skel__line--mid { width: 70%; }
@keyframes eg-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -200% 0; }
}

/* ---- Listing Interviews ---- */
.eg-interview {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (min-width: 992px) {
  .eg-interview { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
}
.eg-interview [role="tabpanel"][hidden] { display: none; }

.eg-about {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.eg-about__title {
  margin: 0;
  font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.08 var(--font-display);
  color: var(--ink);
}
.eg-about__meta {
  margin: -0.5rem 0 0;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-about__summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 300;
}
.eg-about__label {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-about__takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tk;
  display: grid;
  gap: 0.6rem;
}
.eg-about__takeaways li {
  counter-increment: tk;
  display: grid;
  grid-template-columns: 2rem 1fr;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.eg-about__takeaways li::before {
  content: counter(tk, decimal-leading-zero);
  color: var(--accent);
  font: 600 0.95rem/1.6 var(--font-display);
}
.eg-about__quote {
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  font: 300 1.25rem/1.45 var(--font-display);
  letter-spacing: -0.01em;
}
.eg-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.eg-about__actions .eg-btn { padding: 0 1.1rem; letter-spacing: 0.12em; }

/* The car the interview is about. */
.eg-feature-car {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.eg-feature-car:hover { border-color: rgba(var(--accent-rgb), 0.45); color: var(--ink); }
.eg-feature-car .eg-media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.eg-feature-car__kicker {
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-feature-car__title { display: block; margin: 0.2rem 0; font-weight: 500; line-height: 1.3; }
.eg-feature-car__meta { color: var(--muted); font-size: 0.85rem; }

.eg-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.eg-related a { color: var(--muted); font-size: 0.75rem; line-height: 1.3; text-decoration: none; }
.eg-related a:hover { color: var(--ink); }
.eg-related .eg-media { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: 0.4rem; }

/* Episode rail */
.eg-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  margin-top: clamp(24px, 3vw, 40px);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.eg-rail__item {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.eg-rail__item:hover { color: var(--ink); border-color: var(--line-strong); }
.eg-rail__item[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--accent-soft);
}
.eg-rail__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1d, #0a0a0b);
}
.eg-rail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.eg-rail__title { font-size: 0.85rem; line-height: 1.3; }

/* ---- The Journal: News, Rallies & Events ---- */
.eg-journal {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 4vw, 56px);
}
@media (min-width: 992px) {
  .eg-journal { grid-template-columns: 1.25fr 1fr; }   /* News, Events (Rallies column removed 2026-11-30, Kris) */
}
.eg-journal__col { min-width: 0; }
.eg-journal__colhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.eg-journal__colhead h3 {
  margin: 0;
  font: 500 0.75rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.eg-journal__colhead a {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.eg-journal__colhead a:hover { color: var(--accent); }

/* Lead article */
.eg-story {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.eg-story:hover { color: var(--ink); }
.eg-story .eg-media { border-radius: var(--radius-lg); margin-bottom: 1.1rem; aspect-ratio: 16 / 10; }
.eg-story__date {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-story__title {
  margin: 0.45rem 0 0.6rem;
  font: 600 clamp(1.45rem, 2.2vw, 1.85rem)/1.12 var(--font-display);
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.eg-story:hover .eg-story__title { color: var(--accent); }
.eg-story__excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Compact list rows (more articles, events, rallies) */
.eg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eg-rows > li + li { border-top: 1px solid var(--line); }
.eg-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
}
.eg-rows > li:first-child .eg-row { padding-top: 0; }
/* Article thumbnail (community.cfm), in the slot .eg-date takes on other rows. */
.eg-row__thumb { flex: none; align-self: flex-start; width: 96px; border-radius: var(--radius); }
.eg-row__thumb--empty img { inset: 22%; width: 56%; height: 56%; object-fit: contain; opacity: 0.5; }
.eg-row__thumbdate {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(9, 9, 10, 0.82);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eg-row__body { min-width: 0; flex: 1; }
.eg-row__title {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
a.eg-row__title:hover { color: var(--accent); }
.eg-row__meta { color: var(--muted); font-size: 0.85rem; }
.eg-row__meta span + span::before { content: "\00B7"; margin: 0 0.45em; color: var(--faint); }
.eg-row__desc {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eg-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.7rem;
}
.eg-row__actions a,
.eg-row__actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 500 0.7rem/1.6 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.eg-row__actions a:hover,
.eg-row__actions button:hover { color: var(--accent); }
.eg-row__tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1em 0.55em;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.eg-row__tag--past { border-color: var(--line-strong); color: var(--muted); }

/* Feature image for a rally */
.eg-rally-art {
  display: block;
  margin-bottom: 1.1rem;
}
.eg-rally-art .eg-media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }

/* =========================================================================
   10. CAR PAGE (body.eg-page-car - common/index-car.cfm)
   car.css owns the layout; this only brings it into the type system and
   gives it the interview section.
   ========================================================================= */
.eg-page-car {
  font-family: var(--font-sans);
}
.eg-page-car .header h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: var(--display-track);
  line-height: 1.05;
}
.eg-page-car .price {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
  font-size: 2rem;
  color: var(--ink);
}
.eg-page-car .section-title {
  color: var(--accent);
  letter-spacing: 0.22em;
}
.eg-car-videos {
  display: grid;
  gap: 1.5rem;
}
.eg-car-videos__item h3 {
  margin: 0.75rem 0 0.25rem;
  font: 600 1.35rem/1.2 var(--font-display);
  color: var(--ink);
}
.eg-car-videos__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
/* Several videos (model / make / buyer advice): two up where there is room. */
.eg-car-videos--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.eg-car-videos--grid .eg-car-videos__item h3 { font-size: 1.1rem; }
.eg-car-videos--grid .eg-yt__play { transform: scale(0.8); }

/* "Maybe you'd also be interested in": .eg-car cards. Narrower cards than
   the listings grid, and on phones a swipeable row instead of six full-width
   cards stacked down the page. */
.eg-vdp-similar .eg-grid,
.eg-news-cars .eg-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
@media (max-width: 639px) {
  .eg-vdp-similar .eg-grid,
  .eg-news-cars .eg-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 0.5rem;
  }
  .eg-vdp-similar .eg-car,
  .eg-news-cars .eg-car { scroll-snap-align: start; }
}

/* ---- News cross-linking (index-article.cfm, news/inc.cfm, car + event pages; api/articleLinks.cfc) ---- */
/* Sidebar card titles are h2s for the outline; keep the look of the old div. */
h2.eg-card__title { margin: 0; font-family: inherit; line-height: inherit; }
.eg-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eg-card__more:hover { color: var(--ink); }

.eg-byline { display: flex; align-items: center; gap: 0.75rem; margin: 0.9rem 0 0.6rem; }
.eg-byline__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.eg-byline__text { display: grid; line-height: 1.35; }
.eg-byline__name { color: var(--ink); font-weight: 500; }
.eg-byline__name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(201, 169, 106, 0.5); text-underline-offset: 3px; }
.eg-byline__name a:hover { color: var(--accent); }
.eg-byline__role { color: var(--muted); font-size: 0.85rem; }

.eg-news-related { margin: 2.5rem 0 1.5rem; }
.eg-news-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.1rem;
}
.eg-news-related__title {
  margin: 0;
  color: var(--ink);
  font: 600 1.35rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.eg-news-related__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; font-size: 0.85rem; }
.eg-news-related__links a { color: var(--accent); }
.eg-news-related__links a:hover { color: var(--ink); }

.eg-news-rally__link { display: grid; gap: 0.3rem; color: var(--ink); text-decoration: none; }
.eg-news-rally__link .eg-media { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 0.45rem; }
.eg-news-rally__name { font-weight: 600; line-height: 1.3; }
.eg-news-rally__meta { color: var(--muted); font-size: 0.85rem; }
.eg-news-rally__link:hover .eg-news-rally__name { color: var(--accent); }

/* Article cards on car and event pages ("From the Journal" / "Related reading"). */
.eg-news-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.eg-news-card { display: grid; gap: 0.35rem; align-content: start; color: var(--ink); text-decoration: none; }
.eg-news-card .eg-media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); margin-bottom: 0.4rem; }
.eg-news-card__date { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eg-news-card__title { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.eg-news-card__excerpt { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.eg-news-card:hover .eg-news-card__title { color: var(--accent); }
.eg-news-cards--stack { grid-template-columns: 1fr; }

/* News index: byline / read time / "N for sale" on each card. */
.eg-article-meta__sep { margin: 0 0.45em; color: var(--faint); }
.eg-article-meta a { color: inherit; }
.eg-article-meta a:hover { color: var(--accent); }
.eg-article-forsale {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6em;
  padding: 0.1em 0.6em;
  border: 1px solid rgba(201, 169, 106, 0.45);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.eg-article-forsale:hover { border-color: var(--accent); color: var(--ink); }
.eg-news-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
}
.eg-news-filter strong { color: var(--ink); font-weight: 600; }

/* ---- News index layout (news/inc.cfm) ----
   Articles (a lead story, then a two-column grid) beside a sidebar of cars,
   events, the next rally and contributors; the sidebar drops below on
   tablets and phones. Same type and tokens as the homepage Journal. */
.eg-newsx {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  margin: 0.5rem 0 clamp(48px, 6vw, 80px);
}
@media (min-width: 992px) {
  .eg-newsx { grid-template-columns: minmax(0, 1fr) 300px; }
}
.eg-newsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 3.5vw, 44px) clamp(20px, 2.5vw, 32px);
}
@media (max-width: 639px) {
  .eg-newsgrid { grid-template-columns: minmax(0, 1fr); }
}
.eg-newsgrid__wide,
.eg-ncard--lead { grid-column: 1 / -1; }

.eg-ncard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.eg-ncard__media { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.eg-ncard__media--empty img { inset: 28%; width: 44%; height: 44%; object-fit: contain; opacity: 0.45; }
.eg-ncard:hover .eg-ncard__media img { transform: scale(1.04); }
.eg-ncard__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.eg-ncard__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eg-ncard__flag { margin-right: 0.85rem; color: var(--accent); font-weight: 600; }
#articles h2.eg-ncard__title {
  margin: 0 0 0.6rem;
  padding: 0;
  font: 600 1.25rem/1.22 var(--font-display);
  letter-spacing: -0.02em;
}
.eg-ncard__link { color: var(--ink); text-decoration: none; transition: color 0.25s var(--ease); }
/* The title link covers the card; byline and chip sit above it. */
.eg-ncard__link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.eg-ncard__link:focus-visible { outline: none; }
.eg-ncard:has(.eg-ncard__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-lg); }
.eg-ncard:hover .eg-ncard__link { color: var(--accent); }
.eg-ncard__excerpt {
  display: -webkit-box;
  margin: 0 0 0.85rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.eg-ncard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.eg-ncard__above { position: relative; z-index: 1; }
.eg-ncard__foot a:not(.eg-article-forsale) { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.eg-ncard__foot a:not(.eg-article-forsale):hover { color: var(--accent); }
.eg-ncard__foot .eg-article-forsale { margin-left: 0; }

@media (min-width: 768px) {
  .eg-ncard--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
    padding-bottom: clamp(32px, 3.5vw, 44px);
    border-bottom: 1px solid var(--line);
  }
  .eg-ncard--lead .eg-ncard__media { margin: 0; }
}
#articles .eg-ncard--lead h2.eg-ncard__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -0.03em; }
.eg-ncard--lead .eg-ncard__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }

/* Sidebar */
.eg-newsx__side { display: grid; align-content: start; gap: 2.5rem; }
@media (min-width: 640px) and (max-width: 991px) {
  .eg-newsx__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
#articles h2.eg-side-block__title {
  margin: 0 0 1.1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 500 0.75rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eg-side-block__more { margin-top: 1rem; color: var(--muted); font-size: 0.8rem; }
.eg-side-block__note { margin: 1rem 0 0; color: var(--faint); font-size: 0.75rem; line-height: 1.5; }

.eg-side-cars { display: grid; gap: 0.95rem; margin: 0; padding: 0; list-style: none; }
.eg-side-car { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); text-decoration: none; }
.eg-side-car:hover { color: var(--ink); }
.eg-side-car__media { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: var(--radius); }
.eg-side-car__text { display: grid; min-width: 0; line-height: 1.3; }
.eg-side-car__top { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eg-side-car__model { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; transition: color 0.25s var(--ease); }
.eg-side-car__price { color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.eg-side-car:hover .eg-side-car__model { color: var(--accent); }

.eg-side-writers { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.eg-side-writers li { display: grid; line-height: 1.35; }
.eg-side-writers a { color: var(--ink); font-weight: 500; }
.eg-side-writers a:hover,
.eg-side-writers li[aria-current] a { color: var(--accent); }
.eg-side-writers span { color: var(--muted); font-size: 0.8rem; }

/* ---- Share links (index-article.cfm, common/library/share.js) ---- */
.eg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0 0.25rem; }
.eg-share__label { margin-right: 0.35rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eg-share__btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.eg-share__btn[hidden] { display: none; }
.eg-share__btn:hover,
.eg-share__btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.eg-share__btn .fa-check { display: none; }
.eg-share__btn.is-done { border-color: var(--ok); color: var(--ok); }
.eg-share__btn.is-done .fa-link { display: none; }
.eg-share__btn.is-done .fa-check { display: inline-block; }
.eg-share__status { margin-left: 0.25rem; color: var(--ok); font-size: 0.82rem; }
.eg-share-end { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.eg-share-end__title { margin: 0; color: var(--ink); font-weight: 500; }

/* ---- Glossary terms in car descriptions (api/glossary.cfc, library/glossary.js) ----
   A dotted underline only: no padding or border, so wrapping a term moves nothing. */
.eg-term {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-color: rgba(201, 169, 106, 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.eg-term:hover { text-decoration-color: var(--accent); }
.eg-term:focus { outline: none; }
.eg-term:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; text-decoration-color: var(--accent); }

/* The popup: the site's dark panel instead of Fomantic's inverted grey. */
.ui.inverted.popup.eg-glossary-pop {
  /* Wide enough that the four paragraphs fit above or below the term on a desktop. */
  max-width: min(540px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-raise);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.55;
}
.ui.inverted.popup.eg-glossary-pop::before { background: var(--panel-raise); box-shadow: 1px 1px 0 0 var(--line-strong); }
.ui.inverted.popup.eg-glossary-pop.bottom::before { box-shadow: -1px -1px 0 0 var(--line-strong); }
/* glossary.js moves a popup that would run off the screen and sets this so the arrow still points at the term. */
.ui.inverted.popup.eg-glossary-pop.center::before { left: var(--eg-arrow-x, 50%); }
.ui.inverted.popup.eg-glossary-pop > .header {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font: 600 1rem/1.3 var(--font-display);
}
.ui.inverted.popup.eg-glossary-pop p { margin: 0 0 0.6em; }
.ui.inverted.popup.eg-glossary-pop p:last-child { margin-bottom: 0; }
.ui.inverted.popup.eg-glossary-pop strong { color: var(--ink); font-weight: 600; }

/* ---- Favorites (api/favorites.cfc; behaviour in common.js "Favorites") ----
   .eg-fav is any heart; a saved one has .is-saved and a solid gold heart. */
.eg-fav { cursor: pointer; }
.eg-fav.is-saved i.icon { color: var(--accent); }
.eg-fav[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Listing cards (listings.js, favorites/content.cfm). The card is a <div>
   whose title link is stretched over all of it, so the heart can be a real
   button on top. The hover and focus look of the old <a> card are kept. */
.ui.cards > .card.listing-card { position: relative; }
.listing-card .eg-stretched-link::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
}
.listing-card .eg-stretched-link:focus-visible { outline: none; }
.listing-card .eg-stretched-link:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}
.ui.cards > .card.listing-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  transform: translateY(-2px);
}
/* Anything else clickable in a card sits above the stretched link. */
.listing-card .extra.content { position: relative; z-index: 2; }

.eg-fav--card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(9, 9, 10, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.eg-fav--card i.icon { margin: 0; height: auto; font-size: 1.05rem; line-height: 1; }
.eg-fav--card:hover { border-color: rgba(var(--accent-rgb), 0.7); color: var(--accent); }
.eg-fav--card:active { transform: scale(0.94); }
.eg-fav--card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.eg-fav--card.is-saved { border-color: rgba(var(--accent-rgb), 0.55); }

/* Car page: a secondary button under Inquire. */
.ui.button.eg-fav--vdp { margin-top: 10px; }
.ui.button.basic.eg-fav--vdp.is-saved {
  border-color: rgba(var(--accent-rgb), 0.55) !important;
  color: var(--accent) !important;
}

/* /favorites/: favorites.js hides a removed card with [hidden], which
   Fomantic's display:flex on cards would otherwise override. */
.ui.cards > .card.listing-card[hidden],
.eg-empty[hidden] { display: none !important; }

/* /favorites/: a saved car that is gone, or no longer for sale. */
.listing-card.eg-fav-gone .image img { filter: grayscale(1); opacity: 0.45; }
.listing-card .eg-fav-status {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Top bar heart (members). Takes the cart's push to the right edge. */
.ui.top.fixed.menu.eg-topbar .eg-fav-nav { margin-left: auto !important; }
.ui.top.fixed.menu.eg-topbar .eg-fav-nav + .eg-cart-item { margin-left: 0 !important; }
.ui.top.fixed.menu.eg-topbar .eg-fav-nav[aria-current="page"] i.icon { color: var(--accent); }
@media (min-width: 992px) {
  .ui.top.fixed.menu.eg-topbar .eg-topnav + .eg-fav-nav { margin-left: 0 !important; }
}

/* ---------- 11. Motion & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.eg-search__input:focus-visible { outline: none; }   /* the field ring shows focus */

/* Reveal on scroll - opt-in via [data-reveal]; JS adds .is-in. Content is
   visible without JS because the hidden state only applies under .eg-js. */
.eg-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.eg-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Modals & sign-in ----------
   .eg-modalpanel is the visible box inside every basic modal (sign-in,
   sign-up, account, admin). style.css drew it with a 16px radius, no
   surface of its own, 12px blue-black fields and a gradient "shiny gold"
   primary with a sheen sweep. Same selectors here, so source order wins;
   the result is the system's flat panel, hairline fields and ivory primary. */
.ui.basic.modal .eg-modalpanel {
  background: var(--panel) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6) !important;
  padding: clamp(22px, 4vw, 40px) !important;
}
.ui.basic.modal .eg-modalpanel .eg-modal__header,
.ui.basic.modal:not(#addPhoneModal) .eg-modalpanel > h2.header,
.ui.basic.modal .eg-modalpanel > h3.header {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* newPhone.cfm's logo heading was an h1 (a second one on every page); now an
   h2, kept at Fomantic's h1 size so it looks the same. */
#addPhoneModal .eg-modalpanel > h2.ui.header { font-size: 2rem; }

/* Fields */
.ui.basic.modal .eg-modalpanel .ui.form .field > label,
.ui.basic.modal .eg-modalpanel .ui.form .required.field > label {
  margin-bottom: 0.45rem;
  color: var(--ink-2) !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ui.basic.modal .eg-modalpanel .ui.form .required.field > label::after { color: var(--accent); }
.ui.basic.modal .eg-modalpanel .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.search),
.ui.basic.modal .eg-modalpanel .ui.form textarea {
  padding: 0.8rem 1rem;
  background: var(--field-bg) !important;
  border: 1px solid var(--field-border) !important;
  border-radius: var(--field-radius) !important;
  box-shadow: none;
  color: var(--ink) !important;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ui.basic.modal .eg-modalpanel .ui.form input::placeholder,
.ui.basic.modal .eg-modalpanel .ui.form textarea::placeholder { color: var(--muted) !important; }
.ui.basic.modal .eg-modalpanel .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.search):hover,
.ui.basic.modal .eg-modalpanel .ui.form textarea:hover { border-color: rgba(255, 255, 255, 0.24) !important; }
.ui.basic.modal .eg-modalpanel .ui.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.search):focus,
.ui.basic.modal .eg-modalpanel .ui.form textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.8) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
  outline: none;
}
.ui.basic.modal .eg-modalpanel .ui.selection.dropdown {
  background: var(--field-bg) !important;
  border: 1px solid var(--field-border) !important;
  border-radius: var(--field-radius) !important;
}
.ui.basic.modal .eg-modalpanel .ui.selection.dropdown .menu {
  background: var(--panel-elev) !important;
  border-color: var(--line-strong) !important;
  border-radius: 0 0 var(--field-radius) var(--field-radius) !important;
}

/* Primary (and the legacy .gold) in a modal: the system's gold button.
   No gradient, glow or sheen. */
.ui.basic.modal .eg-modalpanel .ui.primary.button,
.ui.basic.modal .eg-modalpanel .ui.primary.buttons .button,
.ui.basic.modal .eg-modalpanel .ui.gold.button {
  min-height: 46px;
  padding: 0 1.5rem;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: none;
}
.ui.basic.modal .eg-modalpanel .ui.primary.button::before { display: none; }

/* Fomantic buttons are inline-block; with min-height and no vertical padding
   the label sat at the top. Flex centres it, floated or not. */
.ui.basic.modal .eg-modalpanel .ui.primary.button,
.ui.basic.modal .eg-modalpanel .ui.gold.button,
.ui.basic.modal .eg-modalpanel .ui.basic.inverted.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  line-height: 1;
}
.ui.basic.modal .eg-modalpanel .ui.button > .icon { margin: 0 !important; height: auto; }
/* Fomantic indents every .actions button; the left-hand one should sit flush. */
.ui.basic.modal .eg-modalpanel > .actions > .button:not(.right.floated) { margin-left: 0; }
.ui.basic.modal .eg-modalpanel .ui.primary.button:hover,
.ui.basic.modal .eg-modalpanel .ui.gold.button:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: none !important;
  transform: none;
}
.ui.basic.modal .eg-modalpanel .ui.primary.button:focus-visible,
.ui.basic.modal .eg-modalpanel .ui.gold.button:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}
/* Secondary: hairline outline at the primary's size. Something in style.css
   turns these into bold pills; the !importants here undo that inside modals. */
.ui.basic.modal .eg-modalpanel .ui.basic.inverted.button {
  min-height: 46px;
  padding: 0 1.4rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* egConfirm() (common.js): the window.confirm replacement. Smaller title,
   buttons right-aligned, and the red danger button at the primary's height. */
.ui.basic.modal.eg-confirm .eg-modalpanel .eg-modal__header { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-bottom: 1rem; }
.ui.basic.modal.eg-confirm .eg-modal__content p { margin: 0 0 0.8em; color: var(--ink-2); line-height: 1.55; }
.ui.basic.modal.eg-confirm .eg-modal__content p:last-child { margin-bottom: 0; }
.ui.basic.modal.eg-confirm .eg-modalpanel > .actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.75rem; padding: 0; border: 0; background: none; text-align: right;
}
.ui.basic.modal.eg-confirm .eg-modalpanel > .actions > .button { margin: 0 !important; }
.ui.basic.modal.eg-confirm .eg-modalpanel .ui.red.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.5rem !important; line-height: 1;
}

/* Events calendar "+N more" day list (events.js openDayModal). The header
   and count stay put; only the list scrolls. Full screen on phones. */
.ui.basic.modal.eg-day-modal { width: min(720px, 94vw) !important; margin: 0 !important; }
.ui.basic.modal.eg-day-modal .eg-modalpanel {
  display: flex; flex-direction: column;
  max-height: 86vh; max-height: 86dvh;
}
.ui.basic.modal.eg-day-modal .eg-modalpanel .eg-modal__header { margin-bottom: 0.35rem; padding-right: 2.5rem; }
.eg-day-modal__count {
  margin-bottom: 1rem; color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.eg-day-modal__list {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -0.5rem; padding: 0 0.5rem;
  display: grid; gap: 0.35rem; align-content: start;
}
.eg-day-modal__list .eg-event-item { color: inherit; }
@media (max-width: 767px) {
  /* Fixed to the viewport: a full-height modal makes Fomantic add its
     .scrolling offset (dimmer padding, top margin), which this ignores. */
  .ui.basic.modal.eg-day-modal {
    position: fixed !important; inset: 0 !important; margin: 0 !important;
    width: 100vw !important; height: 100vh; height: 100dvh;
  }
  .ui.basic.modal.eg-day-modal .eg-modalpanel {
    height: 100%; max-height: none;
    border-radius: 0 !important; border: 0 !important;
  }
}

/* Messages: a quiet panel with a coloured rule, not a coloured box. */
.ui.basic.modal .eg-modalpanel .ui.message {
  background: var(--panel-raise) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  color: var(--ink-2) !important;
  font-weight: 400;
}
.ui.basic.modal .eg-modalpanel .ui.negative.message,
.ui.basic.modal .eg-modalpanel .ui.error.message {
  border-left: 2px solid var(--danger-soft) !important;
  background: rgba(232, 144, 138, 0.07) !important;
}
.ui.basic.modal .eg-modalpanel .ui.info.message,
.ui.basic.modal .eg-modalpanel .ui.positive.message,
.ui.basic.modal .eg-modalpanel .ui.success.message {
  border-left: 2px solid var(--accent) !important;
  background: var(--accent-soft) !important;
}

/* Footer row: secondary actions left, Cancel + primary right. Opt-in, so
   modals still laid out with Fomantic floats are untouched. */
.ui.basic.modal .eg-modalpanel .eg-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.ui.basic.modal .eg-modalpanel .eg-modal__actions > .button {
  float: none !important;
  margin: 0 !important;
}
.ui.basic.modal .eg-modalpanel .eg-modal__actions > .eg-modal__aside { margin-right: auto !important; }
@media (max-width: 540px) {
  .ui.basic.modal .eg-modalpanel .eg-modal__actions > .button { flex: 1 1 auto; }
  .ui.basic.modal .eg-modalpanel .eg-modal__actions > .eg-modal__aside { flex-basis: 100%; }
}

/* Sign in / create account / reset: a narrower, quieter panel. */
.ui.basic.modal .eg-modalpanel.eg-auth { width: min(480px, calc(100vw - 32px)) !important; }
.ui.basic.modal .eg-modalpanel.eg-auth--wide { width: min(640px, calc(100vw - 32px)) !important; }
/* The close button is positioned on the Fomantic modal box, not the panel.
   That box is 680-760px wide on desktop, so the X used to float out in the
   backdrop beside the 480px auth panel (and above it: Fomantic puts it at
   -2.5rem outside the box above 992px, inside below). Shrink the box to the
   panel and keep the X inside the panel's top-right corner at every width. */
.ui.basic.modal:has(> .eg-modalpanel.eg-auth) { width: min(480px, calc(100vw - 32px)) !important; }
.ui.basic.modal:has(> .eg-modalpanel.eg-auth--wide) { width: min(640px, calc(100vw - 32px)) !important; }
.ui.basic.modal:has(> .eg-modalpanel) > .close {
  top: 0.75rem !important;
  right: 0.75rem !important;
  z-index: 2;
  color: var(--muted) !important;
}
.ui.basic.modal:has(> .eg-modalpanel) > .close:hover,
.ui.basic.modal:has(> .eg-modalpanel) > .close:focus-visible { color: var(--ink) !important; }
.ui.basic.modal:has(> .eg-modalpanel) .eg-modal__header { padding-right: 2rem; }
.eg-auth .eg-pagehead__eyebrow { margin-bottom: 0.75rem; }
.ui.basic.modal .eg-auth .eg-modal__header { margin-bottom: 0.6rem; }
.eg-auth__lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.eg-auth__row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1.25rem;
  font-size: 0.85rem;
}
.eg-auth .ui.fluid.primary.button { min-height: 50px; }
.eg-auth__foot {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.eg-auth .eg-hint { margin: 1rem 0 0; }
.eg-auth .eg-hint a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .eg-hero__video { display: none; }
  .eg-js [data-reveal] { opacity: 1; transform: none; }
  .eg-media img,
  .eg-yt__poster { transition: none; }
  .eg-skel .eg-media,
  .eg-skel__line { animation: none; }
}

/* =========================================================
   Page view stats (pageviews.js, db/068): account page panel
   and Admin > Page Views. One series, gold bars, recessive grid.
   ========================================================= */
.eg-pv { margin: 0 0 1.75rem; }
.eg-pv:last-child { margin-bottom: 0; }
.eg-pv__name { font-size: 1rem; margin: 0 0 .75rem; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.eg-pv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.eg-pv-tile { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .85rem 1rem; background: rgba(255,255,255,.02); }
.eg-pv-tile__label { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.eg-pv-tile__num { color: var(--ink); font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.eg-pv-tile__unit { color: var(--muted); font-size: .85rem; font-weight: 400; }
.eg-pv-tile__sub { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.eg-pv-chart { margin-bottom: 1rem; }
.eg-pv-chart__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.eg-pv-chart__title { color: var(--ink-2); font-size: .85rem; }
.eg-pv-chart__plot { width: 100%; min-height: 160px; }
.eg-pv-chart__svg { display: block; max-width: 100%; }
.eg-pv-bar { fill: var(--accent); }
.eg-pv-hit { fill: transparent; cursor: default; }
.eg-pv-hit:hover { fill: rgba(255,255,255,.04); }
.eg-pv-grid { stroke: var(--line); stroke-width: 1; }
.eg-pv-axis { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.eg-pv-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.eg-pv-switch__btn { background: transparent; color: var(--muted); border: 0; padding: .35rem .75rem; font: inherit; font-size: .78rem; cursor: pointer; min-height: 32px; }
.eg-pv-switch__btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
.eg-pv-switch__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.eg-pv-tip { position: fixed; z-index: 2000; pointer-events: none; background: #1b1b1e; color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .4rem .6rem; font-size: .78rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.eg-pv-tip[hidden] { display: none; }
.eg-pv-cars__title { font-size: .9rem; margin: .5rem 0 .5rem; color: var(--ink-2); }
.eg-pv-table-wrap { overflow-x: auto; }
.eg-pv-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.eg-pv-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .5rem; border-bottom: 1px solid var(--line-strong); }
.eg-pv-table td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.eg-pv-table tr[hidden] { display: none; }
.eg-pv-table a { color: var(--ink); }
.eg-pv-table a:hover { color: var(--accent); }
.eg-pv-n { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eg-pv-vin { color: var(--muted); font-size: .72rem; font-family: Consolas, Monaco, monospace; }
.eg-pv-showall { margin-top: .6rem; }
.eg-pv-empty, .eg-pv-loading { color: var(--muted); font-size: .85rem; margin: .5rem 0; }
.eg-pv-note { color: var(--muted); font-size: .75rem; margin: .75rem 0 0; }
.eg-pv-days { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .35rem .5rem; font: inherit; font-size: .85rem; min-height: 36px; }
.eg-pv-days option { background: #141416; }

/* Store product page: brand / model line and manufacturer-shipped note (db/071). */
.eg-product-brand { color: var(--muted); font-size: 0.9rem; margin: -0.25rem 0 0.75rem; }
.eg-product-brand strong { color: var(--ink); font-weight: 600; }
.eg-supplier-note { border-top: 1px solid var(--line); margin: 1rem 0 0.5rem; padding-top: 0.75rem; color: var(--ink-2); font-size: 0.9rem; }
.eg-supplier-note p { margin: 0 0 0.5rem; }
.eg-supplier-terms summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; }
.eg-supplier-terms summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eg-supplier-terms > div { margin: 0.5rem 0; }

/* Builder pages (/builders/, /builders/<slug>/, db/077). */
.eg-builder-notes { max-width: 760px; margin: 0 0 1.5rem; line-height: 1.6; }
.eg-builder-h2 { margin: 1.75rem 0 0.75rem; font-size: 1.15rem; letter-spacing: 0.02em; }
.eg-builder-programs { margin: 0 0 1rem; padding-left: 1.1rem; line-height: 1.6; }
.eg-builder-programs li { margin-bottom: 0.25rem; }
.eg-muted { color: var(--muted); font-weight: normal; }
.eg-builder-card-build { font-size: 0.85rem; }
.eg-builder-dir .card .description { margin-top: 0.4rem; }
/* ===== Listings page: one natural-language search box (2026-11-25) =====
   The home page's .eg-search component at full container width, and a
   dimmer + loader over the results while listings.js is searching. */
.eg-search.listings-search { max-width: none; margin: 0 0 24px; }
.listings-results { position: relative; }
.listings-results.is-busy { min-height: 360px; }
.listings-results > .ui.dimmer.listings-dimmer {
  flex-direction: column;
  justify-content: flex-start;        /* loader near the top, not mid-way down 48 cards */
  align-items: center;
  border-radius: var(--radius-lg, 12px);
  background: rgba(12, 12, 13, 0.72);
  z-index: 5;
}
.listings-results > .ui.dimmer.listings-dimmer > .ui.loader {
  /* A fixed spot just under the search box (where every search starts), so it
     is on screen without scrolling even over a 48-card grid. */
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .listings-results > .listings-dimmer > .ui.loader:before,
  .listings-results > .listings-dimmer > .ui.loader:after { animation-duration: 2.4s; }
}

/* ---- About Us / FAQ page (about/, 2026-11-30) ---- */
.eg-about__hero { margin: 0 0 clamp(28px, 4vw, 48px); }
.eg-about__hero img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); }
@media (min-width: 640px) { .eg-about__hero img { aspect-ratio: 16 / 9; max-height: 72vh; object-position: 50% 52%; } }
.eg-about__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.eg-about__tag { color: var(--accent); font-size: 1.1rem; margin: 0.5rem 0 0; }
.eg-about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) {
  .eg-about__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .eg-about__grid--single { grid-template-columns: minmax(0, 760px); }
  .eg-about__photo { position: sticky; top: calc(var(--topbar-h) + 24px); }
}
.eg-about__story { max-width: 760px; }
.eg-about__story h2 { font: 600 1.35rem/1.25 var(--font-display); color: #fff; margin: 2rem 0 0.6rem; }
.eg-about__story h2:first-child { margin-top: 0; }
.eg-about__story p { color: rgba(242, 239, 232, 0.82); font-size: 1.02rem; line-height: 1.7; }
.eg-about__sign { margin-top: 2rem; color: var(--accent) !important; font-style: italic; }
.eg-about__photo { margin: 0; }
.eg-about__photo img { display: block; width: 100%; max-height: 80vh; object-fit: cover; object-position: center; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); }
.eg-about__photo figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.eg-about__faq { margin-top: clamp(48px, 7vw, 88px); max-width: 860px; }
.eg-faq { margin-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.eg-faq__item { border-bottom: 1px solid var(--line-strong); }
.eg-faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; color: #fff; font-weight: 500; font-size: 1.05rem; }
.eg-faq__item summary::-webkit-details-marker { display: none; }
.eg-faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.eg-faq__item[open] summary::after { content: "\2212"; }
.eg-faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.eg-faq__item p { margin: 0 0 1.2rem; color: rgba(242, 239, 232, 0.8); line-height: 1.65; }

/* ---- Cookie banner: slim bar at the BOTTOM of the screen (2026-11-30, Kris: "ultra simple").
   Overrides the old top-pinned rules in style.css. Fomantic shows/hides #consentNag with an
   inline display, so display is set on the inner wrapper, never on the nag itself. ---- */
.ui.nag.consent-nag#consentNag {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  background: #111112 !important;
  opacity: 1 !important;
  border-top: 1px solid var(--line-strong) !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45) !important;
  text-align: left !important;
}
.consent-nag__inner { display: flex; align-items: center; gap: 0.75rem 1rem; max-width: 1100px; margin: 0 auto; }
.consent-nag__text { flex: 1 1 auto; margin: 0; font-size: 0.85rem; line-height: 1.4; font-weight: 400; color: rgba(242, 239, 232, 0.9); }
.consent-nag__text a { color: var(--accent) !important; text-decoration: underline; white-space: nowrap; }
.consent-nag__actions { display: flex; gap: 0.5rem; flex: none; }
.consent-nag__actions .ui.button { margin: 0 !important; min-height: 40px; padding: 0 1.1rem !important; font-size: 0.74rem; }
@media (max-width: 560px) {
  .consent-nag__inner { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .consent-nag__text { font-size: 0.8rem; text-align: center; }
  .consent-nag__actions .ui.button { flex: 1 1 0; }
}
