/* The Signal look: the inner-page shell. Loads after assets/css/reg.css on every inner page.
   Contract: theme/LOOK-SIGNAL.md. Page-specific blocks get their own look files. */

/* ---- The page header: THE dark tile of the page (rule 3) ---- */
.subhead, .checkout-head {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(100% - 2 * var(--sg-gutter)); max-width: calc(var(--wrap) - 2 * var(--sg-gutter));
  margin: 24px auto 0; padding-block: clamp(40px, 5vw, 64px);
  background: var(--blue-deep); color: #fff; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.subhead > .wrap, .checkout-head > .wrap { max-width: none; padding-inline: clamp(24px, 4.5vw, 56px); z-index: 2; }
/* The aurora: teal, violet and coral blobs, then a faint masked grid */
.subhead::before, .checkout-head::before {
  content: ""; position: absolute; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(30rem 28rem at 88% 12%, rgba(11, 122, 117, .85), transparent 64%),
    radial-gradient(28rem 26rem at 10% 92%, rgba(90, 74, 183, .85), transparent 64%),
    radial-gradient(18rem 18rem at 68% 96%, rgba(196, 61, 34, .5), transparent 64%);
  animation: sg-head-drift 20s ease-in-out infinite alternate;
}
.subhead::after, .checkout-head::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
  mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
}
@keyframes sg-head-drift { to { transform: translate(-4%, 3%) scale(1.06); } }
/* The approved header's own decoration gives way to the aurora (all aria-hidden decoration, no content) */
.subhead__overlay, .subhead__spot,
.abs-hero__glow, .abs-hero__grid, .spk-head__glow, .spk-head__grid,
.trk-head__glow, .trk-head__grid, .pr-head__glow, .pr-head__grid { display: none; }
.subhead__bg .ac-ph { display: none; }
.subhead__bg img { opacity: .18; filter: blur(6px) grayscale(1); mix-blend-mode: luminosity; }

.subhead h1, .checkout-head h1 {
  font-family: var(--serif); font-weight: 800; color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em;
}
.subhead__sub, .checkout-head__sub { color: var(--sg-on-dark-2); font-size: 17px; line-height: 1.55; }
.subhead__crumb, .subhead__crumb a, .checkout-head__crumb, .checkout-head__crumb a { color: var(--sg-on-dark-2); }
.subhead__crumb a:hover, .checkout-head__crumb a:hover { color: #fff; }
.subhead__crumb span, .checkout-head__crumb span { color: rgba(255, 255, 255, .4); }
.subhead :focus-visible, .checkout-head :focus-visible { outline-color: #fff; }

/* The badge or kicker: a small pill chip with a gold mark */
.legal-head__badge, .contact-head__badge, .spk-head__badge, .trk-head__badge,
.pr-head__badge, .venue-head__badge, .abs-hero__badge, .checkout-head__kicker {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 0 20px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: #fff; font: 600 13.5px/1 var(--sans); letter-spacing: .02em; text-transform: none;
}
.legal-head__badge::before, .contact-head__badge::before, .spk-head__badge::before, .trk-head__badge::before,
.pr-head__badge::before, .venue-head__badge::before, .checkout-head__kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
}
.abs-hero__badge .pulse { color: var(--gold); }
.abs-hero__hl { color: inherit; }

/* Small marks and inner blocks on the dark tile */
.subhead__meta li { background: rgba(255, 255, 255, .10); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 600; }
.subhead__meta li svg { color: var(--gold); }
.subhead__glance, .subhead__cd-wrap, .abs-hero__panel, .pr-seal {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.subhead__glance dt, .subhead__cd-lab, .cd__u i { font-family: var(--sans); color: var(--sg-on-dark-2); }
.cd__u b { font-family: var(--serif); font-weight: 800; }
.spk-stat, .trk-stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.spk-stat b, .trk-stat b { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; }
.spk-stat i, .trk-stat i, .venue-head__facts dt { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--sg-on-dark-2); }
.abs-hero::after { display: none; }
.abs-hero__date { -webkit-backdrop-filter: none; backdrop-filter: none; }
.abs-hero__date-ic, .abs-hero__panel-ic { color: var(--sg-on-dark-2); }
.abs-hero__date-val { font-weight: 800; }
.pr-seal__ord { color: #fff; font-weight: 800; }
.pr-seal__rule { background: var(--gold); }
.legal-head__updated { font-family: var(--sans); color: var(--sg-on-dark-2); }
/* The plain and legal header's shield: a quiet outline with a gold check, not a gold slab */
.legal-head__shield { width: clamp(72px, 9vw, 112px); background: linear-gradient(165deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08)); filter: none; }
.legal-head__shield-face { background: linear-gradient(165deg, #24357C, #18255D); color: var(--gold); }
@media (max-width: 560px) { .legal-head__shield { width: 64px; } }

/* ---- Sections: transparent on the ground, no bands, no rules ---- */
.reg-page .section, .reg-page .section:nth-of-type(odd), .reg-page .section:nth-of-type(2n),
.reg-page.past-report .section, .reg-page.tracks-page .section, .reg-page.venue-page .section,
.reg-page.past-report #proceedings, .legal-page #code-of-conduct, .legal-page #report {
  background: transparent; border-top: 0; border-bottom: 0;
}
.reg-page .section { padding-block: clamp(36px, 4.5vw, 56px); }
.reg-page .checkout-section { padding-top: 32px; }
/* Section heads: left-aligned, the kit's short leading line above the title */
.reg-page .head { text-align: left; align-items: flex-start; justify-content: flex-start; }
.reg-page .head-sub { text-align: left; margin: 14px 0 0; max-width: 62ch; }
.reg-page .head::before, .reg-faq__head::before { width: 18px; height: 2px; margin: 0 0 14px; border-radius: 2px; }
.reg-faq__head { text-align: left; }
.reg-faq__head p { color: var(--ink-2); margin: 12px 0 0; }

/* In-page section nav (registration): a frosted pill bar instead of a white band */
.secnav { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 16px; }
.secnav__in {
  width: fit-content; max-width: 100%; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--sg-line); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  margin: 0 auto 0 max(var(--sg-gutter), calc((100% - var(--wrap)) / 2 + var(--sg-gutter))); padding-inline: 4px;
}
.secnav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; color: var(--ink-2); font: 500 15px/1 var(--sans); }
.secnav__link:hover { background: var(--blue-tint); color: var(--blue); }
.secnav__link.is-active { background: var(--blue); color: #fff; }

/* Plain pages (page.php, index.php, 404.php): the text sits in one white tile */
.section > .wrap > .legal-main {
  max-width: 820px; padding: clamp(24px, 4vw, 40px);
  background: var(--bg); border: 1px solid var(--sg-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.section > .wrap > .legal-main > :last-child { margin-bottom: 0; }

/* ---- Generic cards and panels: white tiles ---- */
.reg-page .tier, .reg-page .visit, .reg-page .infocard, .acc-card {
  border: 1px solid var(--sg-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.reg-page .tier:hover, .reg-page .visit:hover, .acc-card:hover { box-shadow: var(--shadow); }
.reg-page .infocard:hover { box-shadow: var(--shadow-sm); }

/* ---- Accordion inside the centred FAQ layout ---- */
.reg-faq .faq { column-gap: 40px; }
.reg-faq .faq__item { border-top: 1px solid var(--sg-line); border-bottom: 0; }
.reg-faq .faq__item:nth-child(-n+2) { border-top: 0; }
@media (max-width: 820px) { .reg-faq .faq__item:nth-child(2) { border-top: 1px solid var(--sg-line); } }

/* ---- Form fields ---- */
.field-group { background: var(--bg); border: 1px solid var(--sg-line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.field-group legend, .field-group__title { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.field label { font: 600 14.5px/1.3 var(--sans); color: var(--ink-2); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 12px 14px; border: 1px solid #848DA8; border-radius: 12px;
  background-color: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent);
}
.field input:disabled { background: var(--bg-tint); }
.field input[type="checkbox"], .field input[type="radio"] { min-height: 0; width: 20px; height: 20px; padding: 0; accent-color: var(--blue); }
.field-hint { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .subhead::before, .checkout-head::before { animation: none; }
}
