/* BSides Phoenix 2027 site styles
   Colours come from the design-token custom properties below.
   Fonts: Instrument Sans (body, nav, buttons), DM Mono (headings, dates,
   venue labels), JetBrains Mono (eyebrows) */

/* ---------- Design tokens ----------
   Names and values match the BSides Phoenix design system (tokens.json).
   orange-text is the light-theme value. Change a colour here, not below. */
:root {
  /* Core brand */
  --phx-magenta: #a8005b;
  --phx-white: #ffffff;
  /* 2027 event theme */
  --event-orange: #f38300;
  --orange-text: #a65300;
  --duotone-orange: #b75012;
  --duotone-magenta: #950050;
  /* Warm charcoal ramp */
  --charcoal-950: #1c1519;
  --charcoal-900: #2a2126;
  --charcoal-800: #3b3036;
  --charcoal-700: #52454c;
  --charcoal-600: #6b5d64;
  --charcoal-500: #877880;
  --charcoal-400: #a5979e;
  --charcoal-300: #c4b8be;
  --charcoal-200: #ded5d9;
  --charcoal-100: #f1ecee;
  --charcoal-50: #f9f6f7;
  /* Magenta ramp */
  --magenta-900: #5c0032;
  --magenta-700: #7f0045;
  --magenta-300: #e0619f;
  --magenta-200: #efa8cb;
  --magenta-100: #f9e0ec;

  /* Type families */
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-code: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  /* Page gutter: the side margin every section's content keeps from the screen edge */
  --gutter: 24px;
}
@media (min-width: 641px) { :root { --gutter: 64px; } }

/* ---------- Theme roles ----------
   Named after the design system's semantic tokens. Rules below use these
   for anything that should change in dark mode; fixed brand areas (hero,
   venue, agenda, newsletter, footer) keep their own colours.
   Light values here; dark values in the media query below. Labels (.chip)
   and the Zeffy signup box always sit on white, so they keep light roles. */
:root, .chip, .newsletter__box {
  --surface: var(--phx-white);
  --surface-alt: var(--charcoal-50);
  --ink: var(--charcoal-900);
  --ink-muted: var(--charcoal-600);
  --accent-text: var(--phx-magenta);
  --accent-hover: var(--magenta-700);
  --divider: var(--charcoal-200);
  --border: var(--charcoal-500);
  --focus: var(--phx-magenta);
}
.chip, .newsletter__box { --orange-text: #a65300; color-scheme: light; }
:root { color-scheme: light dark; }

/* Dark mode follows the visitor's device setting. */
/* Dark theme: follows the device setting unless the visitor picked a mode with the
   theme switch (assets/js/theme.js sets data-theme="light" or "dark" on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: var(--charcoal-950);
    --surface-alt: var(--charcoal-900);
    --ink: var(--charcoal-100);
    --ink-muted: var(--charcoal-300);
    --accent-text: var(--magenta-300);
    --accent-hover: var(--magenta-200);
    --orange-text: var(--event-orange);
    --divider: var(--charcoal-800);
    --focus: var(--magenta-300);
  }
  /* The agenda band shares the dark page ground, so give it edges. */
  :root:not([data-theme="light"]) .dark { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --surface: var(--charcoal-950);
    --surface-alt: var(--charcoal-900);
    --ink: var(--charcoal-100);
    --ink-muted: var(--charcoal-300);
    --accent-text: var(--magenta-300);
    --accent-hover: var(--magenta-200);
    --orange-text: var(--event-orange);
    --divider: var(--charcoal-800);
    --focus: var(--magenta-300);
}
:root[data-theme="dark"] .dark { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
/* Respect the device's "reduce motion" setting: no smooth scrolling or animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* "Skip to main content": hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--phx-magenta); color: var(--phx-white); padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--phx-white); }
body { margin: 0; background: var(--surface); }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--magenta-300); }
.on-photo :focus-visible { outline-color: var(--phx-white); }
summary { cursor: pointer; }

.page {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 80px var(--gutter); }
.wrap--narrow { max-width: 880px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.self-start { align-self: flex-start; }
.min-0 { min-width: 0; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.measure { max-width: 720px; }
.grow { flex-grow: 1; }
.muted { color: var(--ink-muted); }
.m-0 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
/* Eyebrows use JetBrains Mono. It is monospaced, so tracking stays even. */
.eyebrow {
  margin: 0;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.eyebrow--plain { color: inherit; }
.eyebrow--bright { color: var(--event-orange); }
/* Headings use DM Mono, which comes in 400 and 500 only. */
.h2, .h3, .hero__title, .ticket__price, .note__title, .faq__q, .doc__title, .doc__summary-title, .doc h2 {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em;
}
.h2 { margin: 0; font-size: 32px; line-height: 1.15; }
.h3 { margin: 0; font-size: 22px; line-height: 1.3; }
.date-type {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ---------- Buttons ----------
   Hover keeps the same color (buttons don't change color on hover). */
.btn { text-decoration: none; font-weight: 600; }
.btn-primary, .btn-primary:hover { background: var(--phx-magenta); color: var(--phx-white); padding: 14px 24px; }
.btn-outline, .btn-outline:hover { border: 2px solid var(--accent-text); color: var(--accent-text); padding: 12px 22px; }
.btn-light, .btn-light:hover { background: var(--phx-white); color: var(--phx-magenta); padding: 14px 24px; }
.btn-outline-light, .btn-outline-light:hover { border: 2px solid var(--phx-white); color: var(--phx-white); padding: 12px 26px; }
.btn-primary.btn--compact { padding: 12px 20px; }
.btn-light.btn--wide { padding: 14px 28px; }
.btn-outline.btn--small { padding: 10px 20px; }

/* Location tags (white boxes with orange text) */
.chip {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--phx-white);
  color: var(--orange-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--divider); background: var(--surface); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand, .brand:hover { display: flex; align-items: center; gap: 24px; text-decoration: none; color: var(--ink); }
.brand__logo { display: block; height: 50px; width: auto; }
.brand__date { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav-link, .nav-link:hover { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--duotone-orange) 0%, var(--duotone-magenta) 100%); color: var(--phx-white); }
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 240px; display: block; }
.hero__inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter) 280px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
}
.hero__logo { display: block; width: 360px; max-width: 100%; height: auto; }
.hero__text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.hero__title { margin: 0; font-size: 56px; line-height: 1.05; }
.hero__date { margin: 0; }
.hero__tagline { font-size: 16px; font-weight: 400; white-space: nowrap; }
@media (max-width: 640px) { .hero__date { font-size: 18px; } .hero__tagline { font-size: 14px; } }
@media (max-width: 640px) { .hero__title { font-size: 40px; } }

/* ---------- About ---------- */
.about__intro { flex: 1 1 360px; }
.about__intro .eyebrow { margin-bottom: 12px; }
.about__body { flex: 1 1 480px; }

/* ---------- Tickets ---------- */
.band { background: var(--surface-alt); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.ticket {
  flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--border); padding: 32px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.ticket--featured { border: 2px solid var(--accent-text); }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ticket__price { font-size: 32px; line-height: 1.15; }
.ticket__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ticket__fine { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.badge { align-self: flex-start; background: var(--magenta-100); color: var(--charcoal-900); font-size: 14px; font-weight: 500; padding: 4px 12px; }
.badge--strong { background: var(--phx-magenta); color: var(--phx-white); }
.note { flex: 1 1 420px; min-width: 0; background: var(--surface); border-top: 4px solid var(--event-orange); padding: 24px; }
.note__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.note__text { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Key dates ---------- */
.dates { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--divider); }
.dates__item {
  flex: 1 1 300px; min-width: 0; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--divider);
  display: flex; flex-direction: column; gap: 8px;
}
.dates__when { color: var(--accent-text); }
.dates__when--event { color: var(--orange-text); }
.dates__what { font-size: 15px; }
.dates__what--event { font-weight: 600; }

/* ---------- Program (dark) ---------- */
.dark { background: var(--charcoal-950); color: var(--charcoal-100); }
.panel {
  flex: 1 1 240px; min-width: 0; background: var(--charcoal-900); border: 1px solid var(--charcoal-700); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.panel .h3 { color: var(--charcoal-100); }
.panel__text { margin: 0; font-size: 15px; color: var(--charcoal-300); }
.cfp {
  background: var(--magenta-900); padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cfp__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cfp .h3 { color: var(--phx-white); }
.cfp__body { margin: 0; font-size: 15px; color: var(--phx-white); }

/* ---------- Venue ---------- */
.venue { background: var(--phx-magenta); color: var(--phx-white); }
.venue__inner { align-items: stretch; }
.venue__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.venue__blurb { margin: 0; max-width: 520px; }
.venue__map { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.venue__map-frame { display: block; width: 100%; flex: 1 1 auto; min-height: 320px; border: 0; background: var(--charcoal-100); }
.venue__directions, .venue__directions:hover { align-self: flex-start; color: var(--phx-white); font-weight: 600; font-size: 15px; }

/* ---------- Sponsors ---------- */
.sponsors__top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.sponsors__intro { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.placeholder {
  border: 2px dashed var(--border); min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 14px; text-align: center; padding: 24px;
}

/* ---------- Supporters ---------- */
.supporters__empty {
  background: var(--surface); border: 2px dashed var(--accent-text); padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.supporters__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.band--top { background: var(--surface-alt); border-top: 1px solid var(--divider); }
.rule-top { border-top: 1px solid var(--divider); }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.faq__item { border-bottom: 1px solid var(--divider); padding: 20px 0; }
.faq__q { font-size: 18px; }
.faq__a { margin: 12px 0 0; color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--charcoal-800); color: var(--charcoal-100); }
.newsletter__inner { padding: 64px var(--gutter); align-items: center; justify-content: space-between; }
.half { flex: 1 1 420px; min-width: 0; }
.newsletter .h2 { color: var(--phx-white); }
.newsletter__lead { margin: 0; color: var(--charcoal-300); }
.newsletter__box { background: var(--surface); color: var(--ink); padding: 16px; box-sizing: border-box; }
.newsletter__backup {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.newsletter__backup-label { font-size: 14px; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-950); color: var(--charcoal-300); }
.site-footer__inner { padding: 48px var(--gutter); justify-content: space-between; align-items: flex-start; }
.site-footer__about { flex: 1 1 360px; min-width: 0; display: flex; gap: 16px; align-items: flex-start; }
.site-footer__badge { flex: 0 0 72px; display: block; width: 72px; height: 72px; }
.site-footer__text { margin: 0; font-size: 14px; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-link, .footer-link:hover { color: var(--magenta-300); padding: 10px 0; }
.site-footer__legal { border-top: 1px solid var(--charcoal-800); }
.site-footer__legal p { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); font-size: 14px; color: var(--charcoal-400); }

/* ---------- Landing page (index.html while the full site is at preview/) ---------- */
.landing { min-height: 100vh; box-sizing: border-box; }
.landing__inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 240px; }
.landing__intro { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.landing__signup { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.landing__signup .h2 { color: var(--phx-white); }
.landing__lead { margin: 0 0 8px; }
@media (max-width: 640px) { .landing__inner { padding-top: 40px; padding-bottom: 200px; } }

/* ---------- Long-form pages (code-of-conduct/) ---------- */
.doc__title { margin: 0; font-size: 40px; line-height: 1.1; }
.doc__summary { background: var(--surface); border-left: 6px solid var(--accent-text); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.doc__summary-title { margin: 0; font-size: 22px; line-height: 1.3; color: var(--accent-text); }
.doc__summary p { margin: 0; font-size: 17px; }
.doc__toc-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.doc__toc ul { margin: 0; padding: 0; list-style: none; columns: 2 240px; column-gap: 32px; }
.doc__toc li { padding: 4px 0; break-inside: avoid; }
.doc h2 { margin: 48px 0 12px; font-size: 26px; line-height: 1.2; scroll-margin-top: 16px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc__report { background: var(--surface-alt); border: 1px solid var(--divider); padding: 20px 20px 20px 40px; }
@media (max-width: 640px) { .doc__title { font-size: 32px; } }

/* ---------- Site menu (preview site and its pages) ----------
   Row 1: logo + date, Get tickets, phone Menu button. Row 2: the menu. */
.site-header--nav .site-header__inner { row-gap: 8px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.menu-toggle {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); padding: 10px 16px; cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.site-nav { flex-basis: 100%; border-top: 1px solid var(--divider); }
.site-nav__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.site-nav .nav-link { display: inline-block; padding: 12px 0; }
.site-nav .nav-link[aria-current="page"] { font-weight: 700; color: var(--accent-text); }
.site-nav__dd { position: relative; }
.site-nav__dd > summary, .site-nav .site-nav__dd > summary.nav-link { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.site-nav__dd > summary::-webkit-details-marker { display: none; }
.site-nav__dd > summary::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.site-nav__dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.site-nav__menu {
  position: absolute; z-index: 10; top: 100%; left: -16px; min-width: 220px;
  margin: 0; padding: 8px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--divider);
}
.site-nav__menu a, .site-nav__menu a:hover { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav__menu a:hover { background: var(--surface-alt); }
.site-nav__menu a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }

@media (max-width: 900px) {
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list > li { border-bottom: 1px solid var(--divider); }
  .site-nav .nav-link { display: flex; padding: 14px 0; }
  .site-nav__menu { position: static; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .site-nav__menu a { padding: 10px 0; }
  .js-nav .site-nav { display: none; }
  .js-nav .site-nav.is-open { display: block; }
}
@media (min-width: 901px) {
  .menu-toggle { display: none; }
}

/* Sticky menu: the header stays at the top while scrolling and gets more compact once the
   page moves (assets/js/nav.js adds .is-stuck). --header-h keeps in-page links clear of it. */
html { scroll-padding-top: calc(var(--header-h, 96px) + 16px); }
.site-header--nav { position: sticky; top: 0; z-index: 50; }
.site-header--nav.is-stuck { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); }
.site-header--nav.is-stuck .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
.site-header--nav.is-stuck .brand__logo { height: 36px; }
.site-header--nav.is-stuck .brand__date { display: none; }
@media (min-width: 901px) {
  .site-header--nav.is-stuck .site-nav .nav-link { padding: 8px 0; }
}
@media (max-width: 900px) {
  /* An open phone menu scrolls inside the screen instead of running off the bottom */
  .site-header--nav.menu-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
}
@media (max-width: 480px) {
  /* Phones: once scrolled, fit the logo and buttons on one line */
  .site-header--nav.is-stuck:not(.menu-open) .site-header__inner { flex-wrap: nowrap; column-gap: 8px; }
  .site-header--nav.is-stuck:not(.menu-open) .brand__logo { height: 28px; }
  .site-header--nav.is-stuck:not(.menu-open) .header-actions { gap: 8px; }
  .site-header--nav.is-stuck:not(.menu-open) .btn--compact { padding: 10px 14px; white-space: nowrap; }
  .site-header--nav.is-stuck:not(.menu-open) .menu-toggle { padding: 8px 12px; }
}
@media (max-width: 400px) {
  /* Narrow phones: the light/dark switch waits at the top of the page while scrolled */
  .site-header--nav.is-stuck:not(.menu-open) .theme-toggle { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header--nav .site-header__inner, .site-header--nav .brand__logo { transition: padding 0.2s, height 0.2s; }
}

/* ---------- Light / dark switch (assets/js/theme.js) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  font: inherit; color: var(--ink); background: transparent; border: 2px solid var(--border); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .theme-toggle__moon { display: none; }
.theme-toggle[data-current="dark"] .theme-toggle__sun { display: none; }
.theme-toggle[data-current="dark"] .theme-toggle__moon { display: block; }
.site-footer .theme-toggle { color: var(--charcoal-100); border-color: var(--charcoal-500); }
/* Header logo: the colour lockup on light grounds, the white lockup on dark,
   following the same rules as the theme (device setting or the visitor's choice). */
.brand__logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }

/* ---------- Simple content pages (cfp/, communities/, about/, events/) ---------- */
.page-hero { background: var(--surface-alt); border-bottom: 1px solid var(--divider); }
.page-hero__lead { margin: 0; font-size: 18px; color: var(--ink-muted); max-width: 720px; }
.fact-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; border-top: 1px solid var(--divider); }
.fact-list li { flex: 1 1 220px; min-width: 0; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 6px; }
.coming-soon { border: 2px dashed var(--border); padding: 24px; color: var(--ink-muted); }
.coming-soon p { margin: 0; }
.panel__link, .panel__link:hover { color: var(--magenta-300); }

/* ---------- Rounded corners ----------
   One place for all corner rounding: change the three sizes on the :root line.
   Logos are left square: the brand says to place them exactly as supplied. */
:root { --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; }
.chip, .badge { border-radius: var(--radius-sm); }
.btn, .menu-toggle { border-radius: var(--radius-md); }
.ticket, .note, .panel, .cfp, .venue__map-frame, .placeholder, .supporters__empty,
.newsletter__box, .doc__summary, .doc__report, .site-nav__menu, .coming-soon { border-radius: var(--radius-lg); }
.site-nav__menu { overflow: hidden; }
