/* DIGIXX (Event Center-backed) — self-contained theme, derived from the
 * ScreenXX skin. Brand: deep navy/indigo, magenta→red gradient, gold highlight. Bootstrap 5 (CDN) supplies grid/utilities/components;
 * this file only carries the ScreenXX brand skin. */

:root {
  --sx-black: #07071c;
  --sx-dark: #121238;
  --sx-dark-2: #1b1b4a;
  --sx-gold: #F5C84C;
  --sx-gold-2: #FFD76E;
  --sx-red: #E8253A;
  --sx-white: #ffffff;
  --sx-muted: #b8b9d6;

  /* Three bars, used as a mask so the colour stays a token (see .navbar-toggler-icon). */
  --sx-burger: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

* { box-sizing: border-box; }

html, body {
  background: var(--sx-black);
  color: var(--sx-white);
  font-family: 'Open Sans', 'Lato', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .sx-heading {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a { color: var(--sx-gold-2); text-decoration: none; }
a:hover { color: var(--sx-gold); text-decoration: underline; }

.sx-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---- Header / nav ---------------------------------------------------- */

.sx-header {
  background: var(--sx-black);
  border-bottom: 2px solid var(--sx-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sx-header .navbar-brand img { height: 52px; max-width: 100%; }

/* Below the lg breakpoint the bar is just logo + burger, and they belong on one
 * line with the burger hard right. Bootstrap's navbar wraps instead, which on a
 * 360px phone dropped the burger onto a second row at the left of the logo (the
 * logo alone is 269px wide). This row owns the full first line, so the collapsed
 * menu still wraps underneath it when opened. `display: contents` retires the
 * wrapper at lg and up, where brand and nav lay out as before. */
.sx-navbar-top {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.sx-navbar-top .navbar-brand { min-width: 0; margin-right: 0; }
.sx-navbar-top .navbar-toggler { flex: 0 0 auto; }

@media (min-width: 992px) {
  .sx-navbar-top { display: contents; }
}

@media (max-width: 767px) {
  /* Room to breathe next to the burger on a narrow phone. */
  .sx-header .navbar-brand img { height: 40px; }
}

.sx-header .navbar-toggler {
  border-color: var(--sx-gold);
  padding: 0.35rem 0.6rem;
}
.sx-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(245, 200, 76, 0.35); }

/* Bootstrap's burger glyph is a background-image SVG stroked near-black, so it
 * is invisible on this header. A background-image cannot read a CSS variable,
 * so the glyph becomes a mask and the colour comes from the brand token. */
.sx-header .navbar-toggler-icon {
  background-image: none;
  background-color: var(--sx-gold);
  -webkit-mask: var(--sx-burger) center / 100% 100% no-repeat;
  mask: var(--sx-burger) center / 100% 100% no-repeat;
}

.sx-header .navbar-nav .nav-link {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.6rem 0.9rem;
}

/* Eight items sit on one line on a laptop; tighten them between the lg
 * breakpoint and ~1300px so "The Summit" / "Why ScreenXX" never wrap. */
@media (min-width: 992px) {
  .sx-header .navbar-nav .nav-link { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1300px) {
  .sx-header .navbar-brand img { height: 42px; }
  .sx-header .navbar-nav .nav-link { font-size: 0.78rem; letter-spacing: 0.6px; padding: 0.5rem 0.55rem; }
  .sx-header .btn-sx-cta { padding: 0.45rem 0.85rem; }
}

.sx-header .navbar-nav .nav-link:hover,
.sx-header .navbar-nav .nav-link.active {
  color: var(--sx-gold);
}

.sx-header .btn-sx-cta {
  background: var(--sx-red);
  color: var(--sx-white);
  border: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
}
.sx-header .btn-sx-cta:hover { background: #c81a2d; color: #fff; }

/* Site-wide hero banner (EC admin → Settings → Event → Banners). Full-bleed so
   the artwork is not letterboxed inside the page container; line-height:0 kills
   the inline-image descender gap under it. */
/* Visually hidden, still read by search engines and screen readers. Used for a
   heading whose text already appears inside the hero banner image. */
.sx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sx-hero-banner {
  display: block;
  width: 100%;
  background: #000;
  line-height: 0;
}
.sx-hero-banner a {
  display: block;
}
.sx-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.sx-banner {
  background: #7a1f00;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- Hero -------------------------------------------------------------- */

.sx-hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  border-bottom: 3px solid var(--sx-gold);
  background: var(--sx-black)
              radial-gradient(circle at 50% 20%, rgba(245, 200, 76, 0.16), rgba(0, 0, 0, 0) 62%);
  overflow: hidden;
}

/* There was an artwork slot here that loaded `assets/hero.jpg` and darkened it
 * with a gradient. The file was never supplied, so it 404'd on every home-page
 * view, and the slot is now redundant: the masthead is managed in the EC admin
 * (Settings → Event → Branding → Banners) and renders above the header. The
 * radial gold glow on .sx-hero is the whole background now. */

.sx-hero .sx-container { position: relative; z-index: 1; }

/* A hero carrying only buttons — its wording already lives in the masthead
 * artwork — is a call-to-action strip. At the full band's padding those buttons
 * sat in 215px of empty black on a phone and 263px on a desktop. */
.sx-hero-compact { padding: 34px 0 30px; }

.sx-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--sx-white);
  margin-bottom: 8px;
}

.sx-hero .sx-tagline {
  color: var(--sx-gold-2);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn-sx-primary {
  background: var(--sx-gold);
  color: var(--sx-black);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  border: none;
  display: inline-block;
}
.btn-sx-primary:hover { background: var(--sx-gold-2); color: var(--sx-black); }

.btn-sx-outline {
  background: transparent;
  color: var(--sx-white);
  border: 2px solid var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: 4px;
  display: inline-block;
}
.btn-sx-outline:hover { border-color: var(--sx-gold); color: var(--sx-gold); }

.btn-sx-danger {
  display: inline-block;
  background: transparent;
  color: var(--sx-muted);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-sx-danger:hover,
.btn-sx-danger:focus-visible {
  background: var(--sx-red);
  border-color: var(--sx-red);
  color: #fff;
}

/* ---- Sections ------------------------------------------------------- */

.sx-section { padding: 32px 0; }
.sx-section-alt { background: var(--sx-dark); }
.sx-section-title {
  color: var(--sx-white);
  border-left: 5px solid var(--sx-gold);
  padding-left: 14px;
  margin-bottom: 28px;
}

/* ---- Cards / tiles ---------------------------------------------------- */

.sx-card {
  background: var(--sx-dark-2);
  border: 1px solid rgba(245, 200, 76,0.15);
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}
.sx-card h3, .sx-card h4 { color: var(--sx-gold-2); font-size: 1.05rem; }
.sx-card .sx-fee { color: var(--sx-white); font-weight: 700; font-size: 1.1rem; }
.sx-card p.sx-desc { color: var(--sx-muted); font-size: 0.92rem; }

/* ---- Card multi-select checkbox (awards.php) --------------------------- */

.sx-card-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sx-muted);
  font-size: 0.82rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.sx-card-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sx-gold);
  cursor: pointer;
  flex-shrink: 0;
}
.sx-card-select:hover { color: var(--sx-gold-2); }

/* The whole card is a click target for selection (the corner box is small). */
.sx-card-selectable { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.sx-card-selectable:hover { border-color: rgba(245, 200, 76, 0.45); }

/* Selected card — gold border, glow, and a yellow corner badge. Toggled by
   cart-select.js adding `.is-selected` when the card's checkbox is checked. */
.sx-card.is-selected {
  position: relative;
  overflow: hidden;
  border-color: var(--sx-gold);
  box-shadow: 0 0 0 2px var(--sx-gold), 0 0 18px rgba(245, 200, 76, 0.28);
}
.sx-card.is-selected::after {
  content: "\2713  SELECTED";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sx-gold);
  color: var(--sx-black);
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-bottom-left-radius: 8px;
}

/* ---- Floating "Selected Categories" bar (awards.php) -------------------- */

.sx-fab {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--sx-dark-2);
  border-top: 2px solid var(--sx-gold);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
  padding: 12px 0;
}
.sx-fab.is-visible { display: block; }

body.sx-fab-active .sx-main { padding-bottom: 96px; }

.sx-fab-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sx-fab-summary {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sx-fab-summary strong { color: var(--sx-gold-2); }
.sx-fab-sep { color: var(--sx-muted); }

.sx-fab-free {
  font-size: 0.85rem;
  color: var(--sx-gold-2);
  font-weight: 600;
  flex: 1 1 100%;
  order: 3;
}
.sx-fab-free-earned {
  color: #a9e8bb;
}

.sx-fab-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sx-fab-btn { padding: 10px 20px; font-size: 0.85rem; }

@media (min-width: 768px) {
  .sx-fab-free { flex: 0 1 auto; order: 0; text-align: right; }
}

/* ---- Cart totals box (cart.php) ----------------------------------------- */

.sx-totals-box {
  background: var(--sx-dark-2);
  border: 1px solid rgba(245, 200, 76,0.15);
  border-radius: 8px;
  padding: 24px;
  max-width: 460px;
  margin-left: auto;
}
.sx-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: var(--sx-white);
  font-size: 0.95rem;
}
.sx-totals-row.sx-totals-muted { color: var(--sx-muted); font-size: 0.85rem; }
.sx-totals-row.sx-totals-grand {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 14px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--sx-gold-2);
}
.sx-totals-estimate {
  color: var(--sx-muted);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 10px;
}
.sx-totals-free {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(245, 200, 76,0.12);
  border: 1px solid var(--sx-gold);
  color: var(--sx-gold-2);
}
.sx-totals-free.sx-totals-free-earned {
  background: rgba(31,138,61,0.18);
  border-color: #1f8a3d;
  color: #a9e8bb;
}

/* ---- Awards tabs ------------------------------------------------------- */

.sx-group-tabs .nav-link {
  color: var(--sx-white);
  background: var(--sx-dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  margin-right: 6px;
  margin-bottom: 6px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sx-group-tabs .nav-link.active {
  background: var(--sx-gold);
  color: var(--sx-black);
  border-color: var(--sx-gold);
}

/* ---- Forms ------------------------------------------------------------- */

.sx-form-box {
  background: var(--sx-dark-2);
  border: 1px solid rgba(245, 200, 76,0.15);
  border-radius: 8px;
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.sx-form-box label, .form-label { color: var(--sx-white); font-weight: 600; }

.form-control, .form-select {
  background: #1c1f27;
  border: 1px solid #454b58;
  color: #fff;
}
.form-control:focus, .form-select:focus {
  background: #1c1f27;
  color: #fff;
  border-color: var(--sx-gold);
  box-shadow: 0 0 0 0.2rem rgba(245, 200, 76,0.25);
}
.form-control::placeholder { color: #7c8190; }
.form-text { color: var(--sx-muted); }

/* ---- Tables ------------------------------------------------------------ */

.sx-table {
  /* Bootstrap 5.3 paints every cell from these vars and they default to the
   * light theme, which is why the cart/checkout/dashboard/invoice tables came
   * out white on a black page. Setting the vars fixes all of them at once. */
  --bs-table-bg: transparent;
  --bs-table-color: var(--sx-white);
  --bs-table-border-color: rgba(255, 255, 255, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
  --bs-table-striped-color: var(--sx-white);
  --bs-table-hover-bg: rgba(245, 200, 76, 0.06);
  --bs-table-hover-color: var(--sx-white);
  --bs-table-active-bg: rgba(245, 200, 76, 0.10);
  --bs-table-active-color: var(--sx-white);
  color: var(--sx-white);
}
.sx-table th { color: var(--sx-gold-2); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.85rem; }
.sx-table, .sx-table td, .sx-table th { border-color: rgba(255,255,255,0.12); }

/* ---- Badges / status ---------------------------------------------------- */

.sx-badge { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; }
.sx-badge-paid, .sx-badge-confirmed, .sx-badge-submitted { background: #1f8a3d; color: #fff; }
.sx-badge-pending, .sx-badge-draft { background: var(--sx-gold-2); color: #000; }
.sx-badge-failed, .sx-badge-cancelled, .sx-badge-withdrawn { background: #6c6f77; color: #fff; }
.sx-badge-refunded, .sx-badge-locked { background: var(--sx-red); color: #fff; }

/* ---- Alerts / flash ------------------------------------------------------ */

.sx-flash { border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.sx-flash-error { background: rgba(252,0,34,0.15); border: 1px solid var(--sx-red); color: #ffb3bd; }
.sx-flash-success { background: rgba(31,138,61,0.18); border: 1px solid #1f8a3d; color: #a9e8bb; }
.sx-flash-info { background: rgba(245, 200, 76,0.12); border: 1px solid var(--sx-gold); color: var(--sx-gold-2); }

/* ---- Tabs (dashboard) ---------------------------------------------------- */

.sx-tabs .nav-link {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sx-tabs .nav-link.active {
  color: var(--sx-black);
  background: var(--sx-gold);
}

/* ---- Footer -------------------------------------------------------------- */

.sx-footer {
  background: var(--sx-black);
  border-top: 2px solid var(--sx-gold);
  color: var(--sx-muted);
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 0.9rem;
}
.sx-footer a { color: var(--sx-gold-2); }
.sx-footer h5 { color: var(--sx-gold); font-size: 1rem; margin-bottom: 12px; }
.sx-footer .sx-copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; font-size: 0.8rem; text-align: center; }

/* ---- Misc ----------------------------------------------------------------- */

.sx-qty-btn {
  width: 34px; height: 34px;
  background: var(--sx-dark-2);
  color: #fff;
  border: 1px solid #454b58;
  border-radius: 4px;
}

.sx-empty-state { text-align: center; padding: 60px 20px; color: var(--sx-muted); }

/* ---- Winners ------------------------------------------------------------- */

.sx-winner-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sx-winner-item:last-child { border-bottom: none; }
.sx-winner-title { display: block; color: var(--sx-white); font-weight: 600; }
.sx-winner-sub { display: block; color: var(--sx-muted); font-size: 0.85rem; margin-top: 2px; }

/* ---- Jury gallery ---------------------------------------------------------- */

.sx-jury-card { text-align: center; }
.sx-jury-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sx-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 200, 76,0.15);
}
.sx-jury-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-jury-photo.is-fallback::before {
  content: attr(data-initials);
  color: var(--sx-gold-2);
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.sx-jury-card h3 { font-size: 1rem; margin-bottom: 4px; }
.sx-jury-card .sx-jury-designation { color: var(--sx-white); font-size: 0.88rem; }
.sx-jury-card .sx-jury-company { color: var(--sx-muted); font-size: 0.85rem; }

@media print {
  .sx-header, .sx-footer, .sx-no-print { display: none !important; }
  body, html { background: #fff !important; color: #000 !important; }
  .sx-invoice-box { color: #000 !important; }
  .sx-table {
    --bs-table-bg: #fff !important;
    --bs-table-color: #000 !important;
    --bs-table-border-color: #999 !important;
    color: #000 !important;
  }
  .sx-table th { color: #000 !important; }
}

@media (max-width: 767px) {
  .sx-hero { padding: 56px 0 40px; }
  /* Restated after the rule above, which would otherwise win on source order. */
  .sx-hero-compact { padding: 24px 0 22px; }
  .sx-form-box { padding: 22px; }
}

/* ---- 2026 content pages (big idea, prose, steps, pill lists) -------------- */

.sx-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sx-gold-2);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.sx-hero-date {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sx-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* A reading column, not a centred one — and it must start on exactly the same
 * left edge as every other band.
 *
 * `.sx-prose` sits on the SAME element as `.sx-container`, so the measure has to
 * go on the children, never on the box itself. Narrowing the box to 820px and
 * then fighting `.sx-container`'s `margin: 0 auto` breaks the alignment either
 * way: leave the auto margins and the band is centred, indenting it ~180px to
 * the RIGHT of the others; force `margin-left: 0` and the whole box goes flush
 * to the VIEWPORT edge, 130px to the LEFT of them (at a 1440px viewport).
 * Keeping the container box intact and capping the children gives a 820px
 * measure whose first character lines up with the bands above and below. */
.sx-prose { max-width: 1180px; }
.sx-prose > * { max-width: 820px; }
.sx-prose p { color: var(--sx-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 18px; }

.sx-lead {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sx-white) !important;
  line-height: 1.45 !important;
}

.sx-emphasis { color: var(--sx-white) !important; font-weight: 600; }

.sx-question {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.6rem;
  color: var(--sx-gold) !important;
  margin: 24px 0 !important;
}

.sx-pill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sx-pill-list li,
.sx-pill-list .sx-pill {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--sx-white);
  background: var(--sx-dark-2);
  border: 1px solid rgba(245, 200, 76, 0.2);
  border-radius: 999px;
  padding: 9px 18px;
}

.sx-steps {
  list-style: none;
  counter-reset: sx-step;
  padding: 0;
  margin: 0;
}

.sx-steps li {
  counter-increment: sx-step;
  position: relative;
  padding: 0 0 22px 62px;
  border-left: 1px solid rgba(245, 200, 76, 0.25);
  margin-left: 20px;
}

.sx-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.sx-steps li::before {
  content: counter(sx-step);
  position: absolute;
  left: -20px;
  top: -4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sx-black);
  border: 1px solid var(--sx-gold);
  color: var(--sx-gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-steps li h3 { font-size: 1rem; color: var(--sx-gold-2); margin-bottom: 6px; }

@media (max-width: 767px) {
  .sx-lead { font-size: 1.15rem; }
  .sx-question { font-size: 1.3rem; }
  .sx-steps li { padding-left: 48px; }
}

/* ---- Blocks rendered from an EC page-builder document ------------------- */

.sx-doc-btn { margin: 6px 10px 6px 0; }
.sx-doc-img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.sx-doc-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 28px 0; }
.sx-pill-list .sx-pill { display: inline-block; margin: 0; }

/* A card built from Text blocks: first heading gold, paragraphs muted. */
.sx-card > h3, .sx-card > h4 { margin-bottom: 8px; }
.sx-card > p:last-child { margin-bottom: 0; }

/* Award-group cards link to that group's tab on awards.php. The heading holds
 * the real link, so its words are the accessible name; the ::after cover
 * stretches the hit area over the whole card. The cue sits at the foot of the
 * card (margin-top:auto) so it lines up across a row of uneven descriptions. */
.sx-card-link { position: relative; display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.sx-card-link:hover { border-color: rgba(245, 200, 76, 0.55); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); transform: translateY(-2px); }
.sx-card-link:focus-within { border-color: var(--sx-gold); box-shadow: 0 0 0 2px var(--sx-gold); }
.sx-card-link > p.sx-desc { margin-bottom: 0; }
.sx-card-cover, .sx-card-cover:hover, .sx-card-cover:focus { color: inherit; text-decoration: none; }
.sx-card-cover:focus-visible { outline: none; }
.sx-card-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.sx-card-more { margin-top: auto; padding-top: 14px; align-self: flex-start; color: var(--sx-gold); font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sx-card-link:hover .sx-card-more { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sx-card-link, .sx-card-link:hover { transition: none; transform: none; }
}

.sx-bullet { position: relative; padding-left: 20px; }
.sx-bullet::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sx-gold); }

/* ---- Cart / checkout summary column -------------------------------------- */

/* Cart page: items on the left, summary on the right, tops aligned. Without
 * this the full-width table left the whole lower-left of the page blank. */
.sx-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 32px; align-items: start; }
.sx-cart-grid .table-responsive { min-width: 0; }
.sx-cart-grid > .sx-summary-col { margin-top: 0; }

/* The totals box and the actions that act on it belong together; the actions
 * used to sit a few hundred pixels lower on the opposite side of the page. */
.sx-summary-col { max-width: 460px; margin-left: auto; }
.sx-summary-col .sx-totals-box { max-width: none; margin-left: 0; }
.sx-summary-col .sx-summary-actions { margin-top: 16px; display: grid; gap: 10px; }
.sx-summary-col .sx-summary-actions .btn-sx-primary,
.sx-summary-col .sx-summary-actions .btn-sx-outline { display: block; width: 100%; text-align: center; }
.sx-summary-col .sx-summary-actions form { display: block; }

@media (max-width: 991px) {
  .sx-cart-grid { grid-template-columns: 1fr; gap: 0; }
  .sx-summary-col { max-width: none; margin-left: 0; }
}

/* ---- Video blocks ------------------------------------------------------- */

/* A Video block on its own (not inside a phone) is a plain 16:9 embed. */
.sx-doc-video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.sx-doc-video-wrap .sx-doc-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video.sx-doc-video { display: block; width: 100%; border-radius: 8px; background: #000; }

/* ---- Phone mockup (reel player) ---------------------------------------- *
 *
 * A handset playing the section's Video blocks back to back. The screen is
 * locked to 9:16 because the cover geometry below depends on it.
 */

.sx-phone-wrap { max-width: 320px; margin: 0 auto; }

.sx-phone-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--sx-gold-2);
  text-align: center;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sx-phone-eyebrow::before,
.sx-phone-eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 76, 0.65));
}
.sx-phone-eyebrow::after { background: linear-gradient(270deg, transparent, rgba(245, 200, 76, 0.65)); }

/* The handset: a dark bezel with a gold hairline and a soft gold glow. */
.sx-phone {
  position: relative;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d 55%, #202020);
  border: 1px solid rgba(245, 200, 76, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 200, 76, 0.10);
}

/* Speaker pill in the bezel. */
.sx-phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 8;
  pointer-events: none;
}

/* Side buttons. */
.sx-phone::after {
  content: '';
  position: absolute;
  top: 118px;
  right: -2px;
  width: 3px;
  height: 58px;
  border-radius: 3px;
  background: rgba(245, 200, 76, 0.35);
  pointer-events: none;
}

.sx-phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.sx-phone-stage {
  position: absolute;
  inset: 0;
  /* Clicks belong to the overlay controls, never to the provider's own UI. */
  pointer-events: none;
}

/* Cover: the iframe is made 16:9 and taller-than-wide-cropped, so a clip of any
 * aspect from 9:16 upwards fills the screen edge to edge. 316% is that geometry
 * for a 9:16 screen — (16/9) / (9/16) — not an arbitrary number. */
.sx-phone-stage .sx-phone-media {
  position: absolute;
  top: 0;
  left: 50%;
  width: 316%;
  height: 100%;
  transform: translateX(-50%);
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sx-phone-stage .sx-phone-media.is-active { opacity: 1; }

/* A file plays in a <video>, which crops on its own. */
.sx-phone-stage video.sx-phone-media { width: 100%; left: 0; transform: none; object-fit: cover; }

/* Contain: show the whole frame instead, letterboxed on the black screen. */
.sx-phone-screen[data-sx-fit='contain'] .sx-phone-media { width: 100%; left: 0; transform: none; }
.sx-phone-screen[data-sx-fit='contain'] video.sx-phone-media { object-fit: contain; }

.sx-phone-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 7;
}
.sx-phone-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sx-gold-2), var(--sx-gold));
  transition: width 0.2s linear;
}

.sx-phone-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
}
.sx-phone-controls-gap { flex: 1 1 auto; }

.sx-phone-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sx-phone-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sx-phone-btn:hover,
.sx-phone-btn:focus-visible { background: rgba(0, 0, 0, 0.8); border-color: var(--sx-gold); color: var(--sx-gold); transform: scale(1.08); }

/* The mute control shows the crossed-out speaker until sound is on. */
.sx-phone-btn .sx-phone-icon-on { display: none; }
.sx-phone-btn.is-unmuted .sx-phone-icon-on { display: inline; }
.sx-phone-btn.is-unmuted .sx-phone-icon-off { display: none; }

.sx-phone-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 6;
}
.sx-phone-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.sx-phone-dot.is-active { background: var(--sx-gold); width: 34px; }

/* Shown only when no clip can play at all (all removed, private or blocked from
 * embedding) and by <noscript>. A list of links beats a black rectangle. */
.sx-phone-fallback {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5;
}
.sx-phone-fallback a { color: var(--sx-gold-2); font-size: 0.9rem; }

@media (max-width: 991px) {
  .sx-phone-wrap { margin-top: 36px; }
}

/* ---- Dashboard profile + entry form (2026-09-15) ---------------------- */
.sx-form-box.sx-form-box-wide { max-width: 980px; }
.sx-required { color: #fc0022; }
.form-check-input { background-color: #1c1f26; border-color: rgba(245, 200, 76, 0.45); }
.form-check-input:checked { background-color: var(--sx-gold); border-color: var(--sx-gold); }
.form-check-label { color: var(--sx-white); }
.sx-entry-image { display: block; max-width: 100%; max-height: 280px; margin-bottom: 10px; border: 1px solid rgba(245, 200, 76, 0.35); border-radius: 6px; }
.form-control:disabled, .form-select:disabled { background-color: #262a33; color: var(--sx-muted); border-color: rgba(255, 255, 255, 0.12); opacity: 1; }


/* ---- DIGIXX skin ------------------------------------------------------ */
:root {
  --dx-magenta: #A3238F;
  --dx-indigo: #2B2A8C;
  --dx-gradient: linear-gradient(90deg, #A3238F 0%, #E8253A 100%);
}

.sx-header { border-bottom: 2px solid transparent; border-image: var(--dx-gradient) 1; }
.sx-header .btn-sx-cta { background: var(--dx-gradient); }
.sx-header .btn-sx-cta:hover { filter: brightness(1.08); }

/* Aurora glow behind heroes: two soft brand-colour blobs on the navy base. */
.sx-hero {
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(163, 35, 143, 0.35), transparent 70%),
    radial-gradient(50% 70% at 90% 10%, rgba(43, 42, 140, 0.55), transparent 70%),
    var(--sx-black);
}

.sx-footer { background: linear-gradient(180deg, var(--sx-black), #0d0d2b); }
.sx-social a { margin-right: 0.75rem; }

@media (prefers-reduced-motion: no-preference) {
  .sx-card, .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .sx-card:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(163, 35, 143, 0.25); }
}

/* Primary actions and accents use the DIGIXX gradient instead of flat gold. */
.btn-sx-primary { background: var(--dx-gradient); color: var(--sx-white); }
.btn-sx-primary:hover { background: var(--dx-gradient); color: var(--sx-white); filter: brightness(1.08); }
.sx-section-title { border-left: 0; padding-left: 0; }
.sx-section-title::before {
  content: ""; display: inline-block; width: 5px; height: 0.9em; margin-right: 14px;
  vertical-align: -0.05em; background: var(--dx-gradient); border-radius: 2px;
}
.sx-hero { border-bottom: 0; box-shadow: inset 0 -2px 0 0 #A3238F; }
.sx-hero .sx-section-title::before { display: none; }

/* Builder button rows inside a hero sit together in the centre. */
.sx-hero .row { justify-content: center; }
.sx-hero .row > [class*="col"] { flex: 0 0 auto; width: auto; }
.sx-footer { border-top-color: #A3238F; }

/* ---- Motion layer (assets/motion.js) — Aceternity / Skiper style ------- */

/* Hero network canvas sits behind the hero content. */
.sx-hero { position: relative; isolation: isolate; }
.dx-hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
.sx-hero .sx-container { position: relative; z-index: 1; }

/* Aurora: two brand glows drifting slowly behind the network. */
.sx-main .sx-hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(163, 35, 143, 0.45), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(108, 99, 255, 0.40), transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(232, 37, 58, 0.25), transparent 70%);
  filter: blur(30px);
  animation: dx-aurora 18s ease-in-out infinite alternate;
}
@keyframes dx-aurora {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
  100% { transform: translate3d(4%, 3%, 0) rotate(8deg); }
}

/* Hero headline: brand gradient sweeping through the type. */
.sx-main .sx-hero h1:not(.dx-split) {
  background: linear-gradient(90deg, #fff 0%, #fff 35%, #F5C84C 50%, #fff 65%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dx-sheen 7s linear 1.6s infinite;
}
@keyframes dx-sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Primary button: a moving gradient border (rotating conic ring). */
@property --dx-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-sx-primary, .sx-header .btn-sx-cta {
  position: relative;
  background:
    linear-gradient(90deg, #A3238F, #E8253A) padding-box,
    conic-gradient(from var(--dx-angle), #F5C84C, #A3238F, #6C63FF, #E8253A, #F5C84C) border-box;
  border: 2px solid transparent !important;
  animation: dx-spin 4s linear infinite;
}
@keyframes dx-spin { to { --dx-angle: 360deg; } }
.btn-sx-primary:hover { box-shadow: 0 0 28px rgba(232, 37, 58, 0.45); }

/* Cards: a spotlight that follows the pointer. */
.sx-card { position: relative; overflow: hidden; }
.sx-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--dx-x, 50%) var(--dx-y, 50%), rgba(163, 35, 143, 0.28), transparent 60%);
  transition: opacity 0.25s ease;
}
.sx-card:hover::after { opacity: 1; }
.sx-card:hover { border-color: rgba(163, 35, 143, 0.6); }

/* Stats band: big counting figures. */
.dx-stat {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1; margin: 0;
  background: linear-gradient(90deg, #F5C84C, #E8253A); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dx-stat-label { color: var(--sx-muted); margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .sx-main .sx-hero::before, .sx-main .sx-hero h1, .btn-sx-primary, .sx-header .btn-sx-cta { animation: none !important; }
}

/* The first hero is the showpiece: tall, big type, the network behind it. */
.sx-main > .sx-hero:first-child { min-height: min(86vh, 820px); display: flex; align-items: center; }
.sx-main > .sx-hero:first-child .sx-container { width: 100%; }
.sx-main > .sx-hero:first-child h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: 0.5px;
  text-shadow: 0 0 40px rgba(163, 35, 143, 0.55);
}
.dx-split .dx-word:last-child { color: #F5C84C; }
.sx-main > .sx-hero:first-child .sx-lead { font-size: clamp(1rem, 2vw, 1.35rem); color: #e6e4ff; }

/* Pre-launch notice in brand colours. */
.sx-banner { background: linear-gradient(90deg, rgba(163,35,143,0.9), rgba(43,42,140,0.9)); color: #fff; }

/* ---- Scroll engine (GSAP ScrollTrigger + Lenis, assets/motion.js) ----- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.dx-w { display: inline-block; white-space: nowrap; }
.dx-char { display: inline-block; will-change: transform; }
.sx-section-title .dx-w { overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }

/* Marquee track (driven by JS). */
.dx-marquee { display: block; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dx-marquee .dx-marquee-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.dx-marquee .sx-pill { white-space: nowrap; }

/* "What is DIGIXX?" — static fallback: chapters in sequence, giant outlined words. */
.dx-explainer { overflow: hidden; }
.dx-bgword {
  font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 0.9; margin: 0 0 8px;
  font-size: clamp(4rem, 16vw, 15rem); white-space: nowrap; letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245, 200, 76, 0.55);
  background: linear-gradient(90deg, rgba(163,35,143,0.35), rgba(232,37,58,0.25)); -webkit-background-clip: text; background-clip: text;
}
.dx-chapter { padding: 32px 0; text-align: center; }
.dx-chapter h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.dx-chapter .sx-lead { max-width: 760px; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.4rem); color: #e6e4ff; }

/* Pinned version once GSAP runs. */
.dx-gsap .dx-explainer-on { padding: 0; background:
  radial-gradient(50% 60% at 50% 50%, rgba(43, 42, 140, 0.45), transparent 70%), var(--sx-black); }
.dx-gsap .dx-explainer-on > .sx-container { position: relative; height: 100vh; display: grid; place-items: center; }
.dx-gsap .dx-explainer-on .dx-chapter { grid-area: 1 / 1; padding: 0 16px; }
.dx-gsap .dx-explainer-on .dx-bgword {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  margin: 0; z-index: 0; pointer-events: none; font-size: clamp(5rem, 22vw, 20rem);
}
.dx-gsap .dx-explainer-on .dx-chapter > :not(.dx-bgword) { position: relative; z-index: 1; }
.dx-gsap .dx-explainer-on .sx-container > .sx-btn,
.dx-gsap .dx-explainer-on .sx-container > a,
.dx-gsap .dx-explainer-on .sx-container > div:last-child:not(.dx-chapter) { position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%); z-index: 2; }
.dx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dx-gradient); transform-origin: left; z-index: 3; }

/* Horizontal scroll row (desktop, GSAP). */
.dx-hrow { flex-wrap: nowrap !important; perspective: 1200px; }
.dx-hrow > [class*="col"] { flex: 0 0 380px !important; max-width: 380px !important; }
.dx-hrow .sx-card { min-height: 260px; }
.dx-gsap .dx-hscroll { overflow: hidden; }
.dx-gsap .dx-hscroll > .sx-container { width: 100%; }

/* Giant word sweeping behind the closing call to action. */
.dx-sweep {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 0; white-space: nowrap; pointer-events: none;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(6rem, 18vw, 16rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}
.dx-explainer .sx-section-title::before { display: none; }

/* Bold run inside builder copy (typed as **words** in the admin). */
.sx-desc strong, .sx-prose p strong { color: var(--sx-white); font-weight: 700; }
