/* ==========================================================================
   Goldfields Burnouts — Dark Motorsport / Racing Theme
   High-contrast carbon black + fire red/orange. Mobile-first.
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --panel: #141416;
  --carbon: #0e0e10;
  --line: #26262b;
  --line-strong: #33333a;

  --red: #e8101c;
  --red-bright: #ff3338;
  --orange: #ff5a1f;
  --amber: #ffb400;
  --gold: #d9a62e;

  --text: #f4f4f6;
  --text-dim: #a1a1aa;
  --text-faint: #6d6d76;

  /* Fire gradient */
  --fire: linear-gradient(120deg, var(--red-bright) 0%, var(--orange) 55%, var(--amber) 100%);
  --fire-soft: linear-gradient(120deg, rgba(255,51,56,.18) 0%, rgba(255,90,31,.12) 100%);

  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,.9);
  --radius: 14px;
  --radius-sm: 9px;

  --font-display: "Anton", "Arial Narrow", "Impact", "Arial Black", sans-serif;
  --font-body: "Rajdhani", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-bright); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  letter-spacing: .2em;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--fire); }

.page-hero {
  padding: 144px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-top: 14px; }
.page-hero .sub { color: var(--text-dim); font-size: 1.15rem; margin-top: 10px; max-width: 720px; }

/* ------------------------------------------------------------------ Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(12,12,13,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 10px;
  background: var(--fire);
  display: grid; place-items: center;
  font-family: var(--font-display);
  color: #000; font-size: 1.5rem;
  box-shadow: 0 0 24px rgba(232,16,28,.5);
}
.brand b { font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; font-size: 1.15rem; line-height: 1; }
.brand span { display: block; font-size: .68rem; letter-spacing: .28em; color: var(--text-dim); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: .08em;
  font-size: .92rem;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a.active { color: var(--orange); }
.nav-cta { color: #000 !important; background: var(--fire); font-weight: 700; }
.nav-cta:hover { background: var(--orange); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); width: 46px; height: 42px; font-size: 1.3rem; cursor: pointer; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 74px;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(5,5,6,.72) 0%, rgba(10,10,11,.55) 40%, rgba(14,12,8,.92) 100%),
    url("../assets/img/goldfields_banner_hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-media::after {
  /* animated smoke rising */
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(circle at 30% 100%, rgba(200,200,205,.14), transparent 45%),
    radial-gradient(circle at 70% 100%, rgba(220,215,210,.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(230,220,210,.10), transparent 50%);
  filter: blur(2px);
  animation: smoke 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes smoke {
  0% { transform: translate(0,0) scale(1); opacity: .7; }
  50% { transform: translate(-40px,-30px) scale(1.12); opacity: 1; }
  100% { transform: translate(30px,-50px) scale(1.05); opacity: .75; }
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-top: 14px; text-shadow: 0 6px 40px rgba(0,0,0,.85); }
.hero h1 .fire { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { color: var(--text-dim); font-size: clamp(1.05rem, 2.4vw, 1.4rem); margin-top: 18px; font-weight: 500; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  letter-spacing: .08em; text-transform: uppercase; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-fire { background: var(--fire); color: #000; box-shadow: 0 8px 30px -8px rgba(232,16,28,.7); font-weight: 700; }
.btn-fire:hover { color: #000; transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255,90,31,.8); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-outline-fire { border-color: var(--red); color: var(--red-bright); }
.btn-outline-fire:hover { background: rgba(232,16,28,.12); color: var(--red-bright); }
.btn-amber { background: var(--amber); color: #000; font-weight: 700; }
.btn-sm { padding: 8px 14px; font-size: .8rem; }

/* ------------------------------------------------------------------ Countdown */
.countdown {
  margin-top: 42px;
  background: linear-gradient(180deg, rgba(18,18,20,.9), rgba(10,10,12,.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.countdown-label { font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-size: .82rem; }
.countdown-date { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem); margin-top: 2px; text-transform: uppercase; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.cd-cell {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  padding: 12px 6px 10px;
}
.cd-num { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--fire); line-height: 1; }
.cd-unit { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }

/* ------------------------------------------------------------------ Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,90,31,.5); }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card h3 .num { color: var(--orange); }
.card .price { font-family: var(--font-display); font-size: 1.9rem; color: var(--fire); margin: 2px 0 6px; }
.card ul { list-style: none; }
.card li { padding-left: 20px; position: relative; margin-top: 7px; color: var(--text-dim); }
.card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--fire); }
.card li b { color: var(--text); }

.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: 8px; }
.section-head p { color: var(--text-dim); max-width: 640px; margin-top: 10px; }

/* ------------------------------------------------------------------ Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.g-item {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 1px solid var(--line);
}
.g-item canvas, .g-item .ph { width: 100%; height: 100%; object-fit: cover; }
.g-item .ph { display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: .8rem; text-align: center; padding: 10px; }
.g-item:hover { border-color: var(--orange); }
.g-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: .82rem; letter-spacing: .04em; color: var(--text);
  opacity: 0; transition: opacity .2s ease;
}
.g-item:hover .g-cap { opacity: 1; }

/* placeholder art generator canvas images */
.ph-img { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------------ Sticky cart bar (merch / shared) */
.cart-bar { position: sticky; bottom: 14px; z-index: 6; margin-top: 22px; }
.cart-inner { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 14px 40px -18px rgba(0,0,0,.8); }
.cart-inner .tot { font-family: var(--font-display); font-size: 1.4rem; color: var(--fire); }

/* ------------------------------------------------------------------ Sponsor rotator (footer) */
.sponsor-rotator { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:18px; }
.sponsor-rotator .lbl { font-family:var(--font-display); letter-spacing:.14em; text-transform:uppercase; font-size:.7rem; color:var(--text-faint); }
.sponsor-rotator a { display:inline-flex; align-items:center; gap:10px; padding:6px 14px; background:var(--bg-2); border:1px solid var(--line-strong); border-radius:8px; color:var(--text); text-decoration:none; transition:border-color .2s; }
.sponsor-rotator a:hover { border-color:rgba(255,90,31,.55); }
.sponsor-rotator img { height:34px; width:auto; max-width:140px; object-fit:contain; }
.sponsor-rotator .tier { font-size:.65rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.1em; }

/* ------------------------------------------------------------------ Content blocks (admin-managed) */
.cb-zone { display: none; }
.cb-zone.has-blocks { display: block; }
.cb { margin-bottom: 22px; }
[data-blocks] > .cb:last-child { margin-bottom: 0; }
.cb-photo { text-align: center; }
.cb-photo a { display: block; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.cb-photo img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.cb-photo figcaption { margin-top: 10px; color: var(--text-dim); font-size: .9rem; }
.cb-gallery { margin-bottom: 0; }
.cb-heading .sec-head h2 { margin: 10px 0 6px; }
.cb-heading .sec-head p { max-width: 640px; }
.cb-text-body { color: var(--text-dim); margin-top: 6px; }
.cb-cta { margin-top: 14px; }
.cb-video h3 { margin-bottom: 10px; font-size: 1.2rem; }
.cb-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.cb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center;
  padding: 3vh 3vw;
}
.lightbox.open { display: flex; }
.lightbox-media { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.9); }
.lightbox-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-box canvas, .lightbox-box video { max-width: 92vw; max-height: 78vh; border-radius: 8px; }
.lightbox-cap { color: var(--text-dim); text-align: center; font-size: .95rem; max-width: 640px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08); border: none; color: #fff;
  font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; }
.lb-close:hover { color: var(--red); }

/* ------------------------------------------------------------------ Tables */
.rules-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.rules-table th, .rules-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules-table th { font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); font-weight: 400; font-size: 1rem; }
.rules-table tr:hover td { background: rgba(255,90,31,.03); }

.pricing td:first-child { font-weight: 600; }
.pricing td.price { font-family: var(--font-display); color: var(--fire); font-size: 1.2rem; white-space: nowrap; }

/* ------------------------------------------------------------------ Forms */
.form-card { max-width: 620px; }
.field { margin-top: 16px; }
.field label { display: block; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-size: .86rem; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--text); font-size: 1rem; font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--text-faint); margin-top: 6px; }
.form-ok { display: none; margin-top: 18px; padding: 14px; border: 1px solid #2e7d32; background: rgba(46,125,50,.12); border-radius: 10px; color: #7ed089; }

/* ------------------------------------------------------------------ Sponsor logos */
.sponsor-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sponsor {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.sponsor:hover { border-color: var(--orange); transform: translateY(-3px); }
.sponsor .logo {
  width: 100%; max-width: 220px; height: 120px; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line-strong);
}
.sponsor .logo a { display: contents; }
.sponsor .logo img { max-width: 86%; max-height: 100px; width: auto; height: auto; object-fit: contain; display: block; }
.sponsor .tag { font-size: .8rem; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; margin-top: -4px; }

/* ------------------------------------------------------------------ Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.logo-tile { padding: 16px 22px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-display); letter-spacing: .04em; color: var(--text-dim); text-align: center; }

/* ------------------------------------------------------------------ Timeline / steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  counter-increment: step; flex: 0 0 46px; width: 46px; height: 46px;
  background: var(--fire); color: #000; border-radius: 10px;
  font-family: var(--font-display); font-size: 1.3rem; display: grid; place-items: center;
}

/* ------------------------------------------------------------------ News / blog */
.news-list { display: grid; gap: 22px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-media { aspect-ratio: 21/9; position: relative; }
.news-media canvas { width: 100%; height: 100%; display: block; }
.news-body { padding: 22px 24px 26px; }
.news-meta { font-size: .82rem; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.news-item h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.news-item p { color: var(--text-dim); }

/* ------------------------------------------------------------------ Footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--text-dim); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: var(--text); font-size: 1.05rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-top: 8px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem; color: var(--text-faint); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 980px) {
  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(5,5,6,.7) 0%, rgba(10,10,11,.55) 45%, rgba(14,12,8,.93) 100%),
      url("../assets/img/goldfields_banner_hero_mobile.jpg");
    background-size: cover, cover;
    background-position: center, center;
  }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(10,10,11,.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 5vw 20px;
    gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 110px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .countdown-grid { gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { font-size: .58rem; }
  .hero { min-height: 90vh; }
  .brand b { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .hero .tagline { font-size: 1.05rem; }
  .countdown { padding: 18px 16px 16px; margin-top: 30px; }
  .countdown-date { font-size: 1.15rem; }
  .countdown-label { font-size: .72rem; letter-spacing: .12em; }
  .cd-cell { padding: 10px 4px 8px; }
  .cd-unit { font-size: .62rem; letter-spacing: .1em; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section { padding: 44px 0; }
  .container { width: 90%; }
  .rules-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .step { flex-direction: column; gap: 12px; }
  .news-body { padding: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cb-columns { grid-template-columns: 1fr !important; gap: 16px; }
  .cb-columns img { border-radius: 8px; }
  .cb-accordion .acc-body { padding: 10px 12px; }
  .cb .cb-map iframe { border-radius: 8px; }
  .cb-container { padding: 4px !important; }
}

/* ------------------------------------------------------------------ Small phones */
@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .container { width: 92%; }
  .navbar { height: 64px; }
  .nav-links { top: 64px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 1.2rem; }
  .brand b { font-size: .95rem; }
  .hero h1 { font-size: clamp(1.9rem, 9.5vw, 2.6rem); }
  .countdown { padding: 15px 13px 14px; }
  .cd-cell { gap: 4px; padding: 9px 3px 8px; }
  .cd-unit { font-size: .56rem; }
  .grid { gap: 14px; }
  .card { padding: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-item .g-cap { font-size: .7rem; }
  .section-head { margin-bottom: 24px; }
  .sponsor .logo { height: 84px; }
  .sponsor .logo img { max-height: 70px; }
  .lb-btn { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Ensure long code/links never blow out the layout */
a, td, p, h1, h2, h3, h4 { overflow-wrap: break-word; }


/* ===================== LIVE EDITOR (admin ?edit=1) ===================== */
body.gb-editing { cursor: default; }
.gb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  background: var(--fire); color: #000; font-weight: 700; font-family: var(--font-display);
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px -8px #000; text-decoration: none;
}
.gb-fab:hover { filter: brightness(1.05); }
#gb-editbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 12px;
  background: #0a0a0b; border-bottom: 2px solid var(--fire);
  padding: 10px 16px; font-family: var(--font-body); color: #fff;
}
.gb-eb-title { font-family: var(--font-display); color: var(--fire); font-size: 1rem; margin-right: auto; }
.gb-eb-btn {
  background: #1b191f; color: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 14px; font-weight: 600; cursor: pointer; font-size: .9rem;
}
.gb-eb-btn:hover { border-color: var(--fire); }
.gb-eb-done { background: var(--fire); color: #000; border-color: var(--fire); }
.gb-status { color: var(--orange); font-size: .85rem; min-width: 80px; }
#gb-editbar ~ * { } /* noop */
body.gb-editing main, body.gb-editing header, body.gb-editing footer { margin-top: 52px; }

/* Mobile preview width toggle */
body.gb-editing.gb-mobile main,
body.gb-editing.gb-mobile header,
body.gb-editing.gb-mobile footer,
body.gb-editing.gb-mobile section {
  max-width: 414px; margin-left: auto; margin-right: auto;
}
.gb-block.gb-sel { outline: 2px solid var(--orange); }

/* Copy-to-page dialog */
.gb-copydlg {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 10001;
  width: 320px; max-width: 92vw; padding: 18px; border-radius: 12px;
  background: #0d0c10; border: 1px solid var(--fire); color: #fff;
  font-family: var(--font-body); box-shadow: 0 20px 60px -12px #000;
  display: flex; flex-direction: column; gap: 12px;
}
.gb-copydlg .gb-copytitle { font-family: var(--font-display); color: var(--fire); font-size: 1.05rem; }
.gb-copydlg .gb-copyselect {
  width: 100%; padding: 9px 10px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-body); font-size: .95rem;
}

.gb-block { position: relative; outline: 1px dashed transparent; transition: outline-color .15s; }
.gb-block:hover { outline-color: var(--fire); }
.gb-block-bar {
  position: absolute; top: 6px; right: 6px; z-index: 50;
  display: none; gap: 4px; background: rgba(10,10,11,.92); border: 1px solid var(--fire); border-radius: 8px; padding: 4px;
}
.gb-block:hover > .gb-block-bar { display: flex; }
.gb-ic {
  width: 30px; height: 30px; border: none; border-radius: 6px; background: #1b191f; color: #fff;
  cursor: pointer; font-size: .9rem; line-height: 1;
}
.gb-ic:hover { background: var(--fire); color: #000; }
.gb-ce { outline: 1px dashed rgba(255,90,31,.4); border-radius: 4px; }
.gb-ce:focus { outline: 2px solid var(--fire); background: rgba(255,90,31,.08); }

#gb-inspector {
  position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 92vw; z-index: 9998;
  background: #0d0c10; border-left: 2px solid var(--fire); color: #fff;
  transform: translateX(105%); transition: transform .2s ease; display: flex; flex-direction: column;
  font-family: var(--font-body); box-shadow: -10px 0 40px -10px #000;
}
#gb-inspector.open { transform: translateX(0); }
.gb-in-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-strong); }
.gb-in-head strong { font-family: var(--font-display); color: var(--fire); }
#gb-in-close { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.gb-in-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.gb-in-body label { display: block; margin-bottom: 12px; font-size: .82rem; color: var(--text-dim); }
.gb-in-body input, .gb-in-body select, .gb-in-body textarea {
  width: 100%; margin-top: 4px; padding: 9px 10px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-body); font-size: .9rem;
}
.gb-in-check { display: flex; align-items: center; gap: 8px; }
.gb-in-check input { width: auto; }
.gb-in-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-strong); }
.gb-zone-hint {
  display: block; text-align: center; color: var(--text-faint); font-style: italic;
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 18px; margin: 6px 0;
}
/* In edit mode always show content zones (even empty) so admins can place content */
body.gb-editing .cb-zone { display: block; }

.gb-pc { outline: 1px dashed rgba(255,90,31,.45); border-radius: 4px; }
.gb-pc:focus { outline: 2px solid var(--fire); background: rgba(255,90,31,.08); }

/* ===================== SCHEDULE ===================== */
.schedule-list { display:flex; flex-direction:column; gap:0; max-width:760px; margin:0 auto; }
.sched-row { display:flex; gap:18px; padding:16px 0; border-bottom:1px solid var(--line); }
.sched-time { font-family:var(--font-display); color:var(--fire); font-size:1.3rem; min-width:90px; }
.sched-title { font-family:var(--font-display); font-size:1.15rem; }
.sched-area { color:var(--orange); font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
.sched-desc { color:var(--text-dim); margin-top:4px; }

@media print {
  header, footer, .nav-toggle, .nav-links { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; }
  .ticket { box-shadow: none; border: 1px solid #000; margin: 0 auto; }
  .ticket .body > div[style*="flex"] { display:none !important; }
}

.grid-events { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }

/* Accessibility */
.skip-link { position:absolute; left:-999px; top:0; z-index:10000; background:var(--fire); color:#000; padding:10px 16px; border-radius:0 0 8px 0; font-weight:700; }
.skip-link:focus { left:0; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 2px; }
img { max-width:100%; }
#consent { position:fixed; left:0; right:0; bottom:0; z-index:9990; display:flex; gap:14px; justify-content:space-between; align-items:center; flex-wrap:wrap; background:#0a0a0b; border-top:2px solid var(--fire); padding:14px 18px; color:#fff; font-size:.9rem; }
#consent a { color:var(--orange); }
#consent > span:last-child { display:flex; gap:8px; }

.share-bar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.share-bar span { color:var(--text-dim); }
