/*
 * PASC Conference Theme — Main Stylesheet
 * Compiled from edition.css + component overrides.
 * Do not edit directly; source is in assets/css/ partials.
 * Version: 1.0.0
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   0. DESIGN TOKENS  (mirrors mockup base.css)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  /* Width tiers — mirrors theme.json contentSize/wideSize.
     .container CSS class uses --wp--style--global--content-size (1080px).
     WP block layout uses is-layout-constrained with same 1080px.
     These custom properties exist for documentation/reference. */
  --width-content: 1080px;
  --width-narrow:  780px;
  --width-wide:    1440px;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Border-radius */
  --r-sm: 3px;  --r-md: 6px;  --r-lg: 10px;
  --r-xl: 16px; --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.12s ease;
  --t-base: 0.20s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.10);

  /* Z-index scale */
  --z-header:  100;
  --z-overlay: 250;
  --z-drawer:  300;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. BASE / RESET OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--wp--preset--font-family--body, system-ui, sans-serif);
  font-size: var(--wp--preset--font-size--md, 1.0625rem);
  line-height: 1.7;
  color: var(--wp--preset--color--text, #1A2744);
  background-color: var(--wp--preset--color--background, #fff);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Typography utility classes ────────────────────────────────────────── */
.section-lead {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.75;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. ACCESSIBILITY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 999;
  background: var(--wp--preset--color--primary, #1A2744);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  left: 1rem;
  width: auto;
  height: auto;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. LAYOUT UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* .container = a CSS-only constrained box that matches WP constrained layout width.
   Uses the same root padding as WP so all content edges align. */
.container {
  width: 100%;
  max-width: calc(var(--wp--style--global--content-size, 1080px) + 2 * var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)));
  margin-inline: auto;
  padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
  box-sizing: border-box;
}

.container--wide {
  max-width: var(--wp--style--global--wide-size, 1440px);
}

/* Ensure WP constrained-layout width matches .container.
   Both use the same 1080px content-size. The .container class has padding
   inside its box; WP constrained blocks sit inside a padded parent.
   We let WP handle its own padding and just ensure the max-width matches. */

.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }
  .hamburger.mobile-only { display: flex !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. SITE HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* The <header class="wp-block-template-part"> wrapper is made sticky
   via JS (initScrollHeader) so both .site-header and .header-edition
   stay pinned. .site-header collapses to 0 height when .is-hidden. */
.site-header {
  position: relative !important;
  top: auto !important;          /* prevent WP admin-bar from adding top: 32px */
  z-index: var(--z-header);
  width: 100%;
}

/* Global bar — within the sticky .site-header wrapper */
.header-global {
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

/* Global bar — WHITE background, dark text (Precision layout).
   High specificity to beat any WP core/block-library defaults. */
.site-header .header-global,
.header-global.wp-block-group {
  background-color: #fff !important;
  color: var(--global-primary, #1A2744);
  border-bottom: 1px solid var(--ed-border, #dde2ec);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.35rem;
}

/* Logo + actions: equal flex-grow keeps nav centred regardless of logo shape.
   Square (general PASC) ≈ 56px wide; rectangular (PASC26) ≈ 150px wide.
   flex: 1 1 0 means each side claims equal remaining space → nav stays centred. */
.header-inner > .wp-block-site-logo {
  flex: 1 1 0;
  min-width: 80px;
  max-width: 260px;
}

/* The edition-logo shortcode renders <img class="edition-logo">,
   which WP wraps in <p>.  Target both the <p> wrapper and the img. */
.header-inner > p:has(> img.edition-logo) {
  flex: 1 1 0;
  min-width: 80px;
  max-width: 260px;
  margin: 0;
  padding: 0.25rem 0;
  line-height: 0;            /* collapse any extra <p> line-height space */
}
img.edition-logo {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  padding: 0.25rem 0.5rem;
  display: block;
}

/* Edition nav bar — sibling of .site-header inside the sticky
   <header> template-part wrapper. When .site-header collapses,
   this slides up to the top automatically. */
.header-edition {
  background-color: var(--ed-primary, var(--wp--preset--color--primary, #1A2744));
  position: relative;
  z-index: calc(var(--z-header) - 1);
  padding-block: 0.25rem;
}


/* Site logo */
.site-logo,
.wp-block-site-logo {
  padding: 0.25rem 0;
}
.site-logo img,
.wp-block-site-logo img {
  max-height: 48px;
  width: auto;
}

/* Edition logo — fallback for browsers without :has() support */
.edition-logo img,
img.edition-logo {
  max-height: 56px;
  width: auto;
  padding: 0.25rem 0.5rem;
}

/* Main content — kill WP block-gap margin between header and first content */
.site-main { margin-top: 0 !important; }
.site-main > *:first-child { margin-top: 0 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Shared nav list reset ───────────────────────────────────────────────── */
.nav-primary ul,
.nav-edition ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

/* wpautop injects stray <p></p> between </a> and <ul> inside menu items.
   Hide them so they don't break vertical alignment or add extra height. */
.nav-primary p,
.nav-edition p {
  display: none !important;
}

/* ── Global nav links — dark on white bar ────────────────────────────────── */
.nav-primary > ul > .menu-item > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.5rem 0.9rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  color: var(--global-primary, #1A2744);  /* navy on white */
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-md, 6px);
  letter-spacing: 0.01em;
  transition: background var(--t-fast, 0.12s), color var(--t-fast, 0.12s);
}

.nav-primary > ul > .menu-item > a:hover,
.nav-primary > ul > .menu-item.is-open > a {
  background: var(--ed-surface, #F4F6FA); /* light grey on hover */
  color: var(--ed-primary, #1A2744);      /* edition colour on hover */
}

/* ── Current-edition link in global nav (edition colour) ──────────────────── */
/* WP adds .menu-item-object-pasc_edition automatically on CPT menu items.
   Uses --ed-primary (the distinctive edition colour) which always has good
   contrast against the white header bar.  --ed-accent can be very light
   (e.g. #eaeaea) and is not safe for text on white. */
.nav-primary > ul > .menu-item.menu-item-object-pasc_edition > a,
.nav-primary > ul > .menu-item.menu-item--edition > a {
  color: var(--ed-primary, #1A2744);
  font-weight: 600;
}

.nav-primary > ul > .menu-item.menu-item-object-pasc_edition > a:hover,
.nav-primary > ul > .menu-item.menu-item--edition > a:hover {
  background: var(--ed-surface, #F4F6FA);
  color: var(--ed-text, #1A2744);
}

/* ── Edition nav links — white on dark bar ───────────────────────────────── */
.nav-edition > ul > .menu-item > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.45rem 0.85rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);  /* white on navy */
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-md, 6px);
  letter-spacing: 0.02em;
  transition: background var(--t-fast, 0.12s), color var(--t-fast, 0.12s);
}

.nav-edition > ul > .menu-item > a:hover,
.nav-edition > ul > .menu-item.is-open > a {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── Chevron icon ────────────────────────────────────────────────────────── */
.menu-chevron {
  display: inline-flex;
  align-items: center;
  font-size: var(--wp--preset--font-size--xs);
  transition: transform 0.2s;
  margin-left: 0.15em;
  line-height: 1;
}
/* Down-pointing chevron drawn with CSS borders — font-independent so it
   renders identically across systems (some fonts don't ship the U+25BE
   glyph and fall back to a mismatched character). */
.menu-chevron::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.32em solid transparent;
  border-right: 0.32em solid transparent;
  border-top: 0.38em solid currentColor;
  vertical-align: middle;
}
.menu-item.is-open > a > .menu-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown sub-menus (shared base) ───────────────────────────────────── */
.sub-menu {
  display: block !important; /* override .nav-edition ul flex specificity */
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--ed-border, #E2E8F0);
  border-radius: var(--r-lg, 10px);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  /* No transition on close — disappears instantly so switching between
     sibling dropdowns never shows two panels overlapping. */
  transition: none;
  z-index: 200;
  padding: 0.375rem 0;
}

.menu-item {
  position: relative;
}

.menu-item.is-open > .sub-menu,
.menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  /* Smooth open animation (close is instant via base rule) */
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Sub-menu link base (light dropdown — used by .nav-primary) */
.sub-menu .menu-item > a {
  display: block;
  width: auto;
  box-sizing: border-box;
  padding: 0.55rem 1.1rem;
  margin: 0 0.375rem;
  border-radius: 6px;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--global-primary, #1A2744);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast, 0.12s), color var(--t-fast, 0.12s);
}

.sub-menu .menu-item > a:hover {
  background: var(--ed-surface, #F4F6FA);
  color: var(--ed-primary, #1A2744);
}

/* ── Edition nav sub-menu — white dropdown for readability ────────────────── */
.nav-edition .sub-menu {
  background: #fff;
  border-color: var(--ed-border, #E2E8F0);
  min-width: 240px;
}

.nav-edition .sub-menu .menu-item > a {
  color: var(--ed-text, #1e1e1e);
}

.nav-edition .sub-menu .menu-item > a:hover {
  background: var(--ed-surface, #F4F6FA);
  color: var(--ed-primary, #1A2744);
}

/* L3: sub-sub-menus open to the right */
.sub-menu .sub-menu {
  top: -0.375rem; /* align with parent padding */
  left: 100%;
  transform: translateX(8px);
  z-index: 210;
}

.sub-menu .menu-item.is-open > .sub-menu,
.sub-menu .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Right-pointing chevron for nested sub-menu parents — CSS border triangle */
.sub-menu .menu-chevron::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.32em solid transparent;
  border-bottom: 0.32em solid transparent;
  border-left: 0.38em solid currentColor;
  border-right: 0;
  vertical-align: middle;
}
/* Nested sub-item links: show chevron flush-right */
.sub-menu .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Edition trigger link ("PASC26 ▾" in global bar) ────────────────────── */
.edition-trigger-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.5rem 0.9rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--ed-accent, #C9A227);   /* gold */
  background: none;
  border: none;
  border-radius: var(--r-md, 6px);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background var(--t-fast, 0.12s);
}

.edition-trigger-link:hover {
  background: var(--ed-surface, #F4F6FA);
}

.edition-trigger-link[aria-expanded="true"] .menu-chevron {
  transform: rotate(180deg);
}

/* ── Divider between level-1 groups ─────────────────────────────────────── */
.menu-item--divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,0.2);
  margin-inline: 0.5rem;
  align-self: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. EDITION SWITCHER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.edition-switcher {
  display: flex;
  align-items: center;
  background: var(--ed-surface, #F4F6FA);
  border: 1px solid var(--ed-border, #dde2ec);
  border-radius: var(--r-full, 9999px);
  padding: 2px;
  gap: 2px;
}

.edition-switcher__btn {
  padding: 0.3rem 0.85rem;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--global-primary, #1A2744);
  border: 0;
  border-radius: var(--r-full, 9999px);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.edition-switcher__btn.is-active,
.edition-switcher__btn[aria-pressed="true"] {
  background: var(--ed-primary, #1A2744);
  color: #fff;
}

.edition-switcher__btn:hover:not(.is-active) {
  background: var(--ed-border, #dde2ec);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. MOBILE NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hamburger:hover {
  background: rgba(26, 39, 68, 0.08);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--global-primary, #1A2744);  /* dark on white header */
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-active .hamburger__line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: var(--wp--preset--font-size--2xl);
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm, 3px);
  transition: color var(--t-fast, 0.12s);
}

.mobile-nav-close:hover {
  color: #fff;
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(80vw, 340px);
  background: var(--global-primary, #1A2744);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: var(--z-drawer, 300);
  padding: 1rem 1.5rem 2rem;
}

.mobile-nav__logo {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}

.mobile-nav__logo a {
  display: inline-block;
  line-height: 0;
}

.mobile-nav__logo-img {
  max-height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.mobile-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 250;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer .menu-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  min-height: 44px;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.12s ease;
  white-space: normal;
  word-break: break-word;
}

.mobile-nav-drawer .menu-item > a:active,
.mobile-nav-drawer .sub-menu .menu-item > a:active {
  color: var(--global-primary, #1A2744);
  background: #fff;
  border-radius: 6px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.mobile-nav-drawer .sub-menu {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0 0 1rem;
}

.mobile-nav-drawer .menu-item.is-open > .sub-menu {
  max-height: 600px;
}

.mobile-nav-drawer .sub-menu .menu-item > a {
  font-size: var(--wp--preset--font-size--sm);
  color: rgba(255,255,255,0.7);
  white-space: normal;
  word-break: break-word;
}

.mobile-nav-drawer .menu-chevron {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  margin: -0.75rem -0.25rem -0.75rem 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--r-md, 6px);
  transition: background 0.12s ease;
}

.mobile-nav-drawer .menu-chevron:active {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  /* Mobile header — tighter, cleaner look */
  .header-global.wp-block-group {
    border-bottom: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .header-inner {
    gap: 0.75rem;
    min-height: 56px;
  }

  /* Edition logo sizing on mobile */
  .header-inner > p:has(> img.edition-logo) {
    flex: 1 1 0;
  }
  img.edition-logo {
    max-height: 40px;
  }
  .wp-block-site-logo img {
    max-height: 36px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. HERO SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero {
  /* Use pre-derived palette vars (set in inc/enqueue.php) instead of
     color-mix() — color-mix requires Chrome 111+/Safari 16.2+, and older
     browsers (Chrome 88 has been seen in the wild) fail the whole
     declaration, leaving the hero transparent. */
  background: linear-gradient(135deg, var(--ed-primary-dark, #0F1A2E) 0%, var(--ed-primary, #1A2744) 55%, var(--ed-primary-hover, #243660) 100%);
  color: #fff;
  min-height: 70vh;
  padding-block: var(--sp-20, 5rem);
  margin-bottom: var(--wp--preset--spacing--7, 3rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;

}

/* Override WP's .has-text-color that clobbers white text in dark sections.
   Exclude elements with .has-background — those have their own explicit bg+text pair. */
.hero.has-text-color:not(.has-background),
.hero .has-text-color:not(.has-background),
.cta-banner .has-text-color:not(.has-background),
.cta-banner.has-text-color:not(.has-background) {
  color: #fff !important;
}
.hero .has-white-color,
.cta-banner .has-white-color {
  color: #fff !important;
}

/* Hero & CTA banner — always dark enough for white text, regardless of edition primary */
.hero.edition-zone {
  background: linear-gradient(160deg, var(--ed-primary-dark, #0F1A2E) 0%, var(--ed-primary, #1A2744) 60%, var(--ed-primary-dark, #0F1A2E) 100%) !important;
  color: #fff !important;
}
.hero.edition-zone *,
.hero.edition-zone .has-text-color {
  --ed-on-primary: #fff;
  --ed-on-primary-80: rgba(255,255,255,0.8);
  --ed-on-primary-60: rgba(255,255,255,0.6);
  --ed-on-primary-55: rgba(255,255,255,0.55);
}

/* CTA banner base styles */
.cta-banner {
  background: linear-gradient(135deg, var(--ed-primary-dark, #0F1A2E) 0%, var(--ed-primary, #1A2744) 55%, var(--ed-primary-hover, #243660) 100%);
  color: #fff;
}

/* Precision grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.025) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.025) 80px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3, 12px);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.12em;

  color: var(--ed-accent, #C9A227);
  margin-bottom: var(--sp-5, 20px);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ed-accent, #C9A227);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(3.25rem, 7vw, 5rem) !important;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-block: 0 var(--sp-5, 20px);
}

.hero__title em {
  color: var(--ed-accent, #C9A227);
  font-style: italic;
}

.hero__tagline,
.hero__desc {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: var(--sp-8, 32px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6, 24px);
  margin-bottom: var(--sp-8, 32px);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-item span:first-child {
  font-size: var(--wp--preset--font-size--xs);

  letter-spacing: 0.1em;
  color: var(--ed-accent, #C9A227);
  font-family: var(--wp--preset--font-family--body, 'Inter', sans-serif);
}

.hero__meta-item span:last-child {
  font-size: var(--wp--preset--font-size--lg);
  color: #fff;
  font-weight: 600;
  margin-top: 2px;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4, 16px);
  flex-wrap: wrap;
}

.hero__logistics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__logistic-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 600;
}

.hero__stats-band {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding-inline: 1.5rem;
}

.stat-item__number {
  font-size: var(--wp--preset--font-size--4xl);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: #fff;
}

.stat-item__label {
  font-size: var(--wp--preset--font-size--sm);

  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 0.25rem 0 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-md, 6px);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-base, 0.2s);
}

.btn-primary {
  background: var(--ed-accent, #C9A227);
  color: var(--ed-primary, #1A2744);
}

.btn-primary:hover {
  background: var(--ed-accent-hover, #d4a92e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--ed-overlay-20, rgba(201,162,39,.35));
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Base button transition for all WP buttons */
.wp-block-button__link {
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

/* Universal active/pressed state */
.btn:active,
.wp-block-button__link:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
  transition-duration: 0.05s;
}

/* Header actions — equal flex-grow mirrors the logo side, keeping nav centred */
.header-actions {
  flex: 1 1 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

/* Header Register button — filled with global primary by default.
   On edition pages, overridden to edition primary via body class.
   !important needed to beat WP core outline-button reset
   (:root :where(.is-style-outline > .wp-block-button__link:not(.has-background))) */
.header-actions .btn-register .wp-block-button__link,
.header-actions .is-style-outline .wp-block-button__link {
  background: var(--global-primary, #1A2744) !important;
  background-color: var(--global-primary, #1A2744) !important;
  color: #fff !important;
  border: 1.5px solid var(--global-primary, #1A2744) !important;
  border-radius: var(--r-md, 6px);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  white-space: nowrap;
}

.header-actions .btn-register .wp-block-button__link:hover,
.header-actions .is-style-outline .wp-block-button__link:hover {
  background: var(--global-primary-hover, color-mix(in srgb, var(--global-primary, #1A2744) 85%, #000)) !important;
  background-color: var(--global-primary-hover, color-mix(in srgb, var(--global-primary, #1A2744) 85%, #000)) !important;
  border-color: var(--global-primary-hover, color-mix(in srgb, var(--global-primary, #1A2744) 85%, #000)) !important;
  color: #fff !important;
}

/* Edition override — use edition primary on edition pages */
body[class*="edition-pasc"] .header-actions .btn-register .wp-block-button__link,
body[class*="edition-pasc"] .header-actions .is-style-outline .wp-block-button__link {
  background: var(--ed-primary, #1A2744) !important;
  background-color: var(--ed-primary, #1A2744) !important;
  border-color: var(--ed-primary, #1A2744) !important;
}

body[class*="edition-pasc"] .header-actions .btn-register .wp-block-button__link:hover,
body[class*="edition-pasc"] .header-actions .is-style-outline .wp-block-button__link:hover {
  background: var(--ed-primary-dark, color-mix(in srgb, var(--ed-primary, #1A2744) 85%, #000)) !important;
  background-color: var(--ed-primary-dark, color-mix(in srgb, var(--ed-primary, #1A2744) 85%, #000)) !important;
  border-color: var(--ed-primary-dark, color-mix(in srgb, var(--ed-primary, #1A2744) 85%, #000)) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. SECTION HEADERS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Heading sizes — strict hierarchy, accessible for 40+ audience */
h1, .wp-block-heading:where(h1) {
  font-size: var(--heading-h1-size, var(--wp--preset--font-size--4xl, 3.25rem));
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .wp-block-heading:where(h2) {
  font-size: var(--heading-h2-size, var(--wp--preset--font-size--3xl, 2.5rem));
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3, .wp-block-heading:where(h3) {
  font-size: var(--heading-h3-size, var(--wp--preset--font-size--2xl, 1.75rem));
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4, .wp-block-heading:where(h4) {
  font-size: var(--heading-h4-size, var(--wp--preset--font-size--xl, 1.375rem));
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-block: 0 1rem;
}

.section-lead {
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.65;
  color: var(--wp--preset--color--muted, #4A5568);
  margin: 0;
}

/* Eyebrow paragraph style (block style: "Eyebrow") */
p.is-style-eyebrow {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9AA5B4;
  margin-block: 0 0.5rem;
}

/* ── Edition-aware utility classes ─────────────────────────────────────
   Used in block patterns instead of inline var() which WP block parser rejects.
   These adapt automatically when the active edition's CSS variables change.
   ─────────────────────────────────────────────────────────────────────── */
.ed-primary-text  { color: var(--ed-primary, #1A2744) !important; }
.ed-accent-text   { color: var(--ed-accent, #C9A227) !important; }
.ed-muted-text    { color: var(--ed-muted, #5A6474) !important; }
.ed-on-primary    { color: var(--ed-on-primary, #fff) !important; }
.ed-on-primary-80 { color: var(--ed-on-primary-80, rgba(255,255,255,0.8)) !important; }
.ed-on-primary-60 { color: var(--ed-on-primary-60, rgba(255,255,255,0.6)) !important; }
.ed-primary-bg    { background-color: var(--ed-primary, #1A2744) !important; }
.ed-accent-bg     { background-color: var(--ed-accent, #C9A227) !important; }
.ed-surface-bg    { background-color: var(--ed-surface, #F4F6FA) !important; }
.ed-accent-border-left { border-left: 4px solid var(--ed-accent, #C9A227) !important; }

p.is-style-justified {
  text-align: justify;
}

p.is-style-highlighted-content,
.wp-block-list.is-style-highlighted-content {
  background: var(--ed-surface, #f4f6fa);
  border-left: 4px solid var(--ed-accent, #C9A227);
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  margin: 1.25rem 0;
  list-style-position: inside;
}

/* Ensure all titles are NOT capitalized and not justified (but respect explicit alignment) */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  text-transform: none;
}
h1:not([class*="has-text-align"]),
h2:not([class*="has-text-align"]),
h3:not([class*="has-text-align"]),
h4:not([class*="has-text-align"]),
h5:not([class*="has-text-align"]),
h6:not([class*="has-text-align"]) {
  text-align: left;
}

/* Prevent nested has-global-padding blocks from adding extra padding
   when they're already inside a constrained or padded parent. */
.is-layout-constrained .has-global-padding,
.has-global-padding .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Breathing room after hero — only applied to the hero itself, not every page */

/* ── Alternating section tints ─────────────────────────────────────────
   Editors can add "section--tinted" as an Additional CSS Class on any
   Group / Section block to give it a light edition-coloured background.
   The colour adapts automatically per edition via --ed-surface-tint.
   ─────────────────────────────────────────────────────────────────────── */
.section--tinted,
.has-edition-tint-background,
.is-style-tinted-bg {
  background-color: var(--ed-surface-tint, var(--ed-surface, #F4F6FA)) !important;
  padding: var(--wp--preset--spacing--7, 3rem) var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)) !important;
  margin-left: calc(-1 * var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)));
  margin-right: calc(-1 * var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)));
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. SPEAKER CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) { .speakers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .speakers-grid { grid-template-columns: 1fr; } }

.speaker-card {
  background: var(--wp--preset--color--surface, #F4F6F9);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.speaker-card__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.speaker-card__info {
  padding: 1rem;
}

.speaker-card__name {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.speaker-card__name a {
  text-decoration: none;
  color: var(--wp--preset--color--text, #1A2744);
}

.speaker-card__affiliation {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted, #4A5568);
  margin: 0 0 0.5rem;
}

.speaker-card__domain {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--ed-accent, #C9A227);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. SCHEDULE TABLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--wp--preset--color--border, #E2E8F0);
  margin-bottom: 1.5rem;
}

.schedule-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1.5rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  gap: 0.15rem;
}

.schedule-tab.is-active {
  border-bottom-color: var(--ed-accent, #C9A227);
  color: var(--ed-primary, #1A2744);
}

.tab-date { font-size: var(--wp--preset--font-size--sm); font-weight: 600; }
.tab-label { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted, #4A5568); }

.schedule-panel { display: none; }
.schedule-panel.is-active { display: block; }

/* Overflow wrapper for mobile horizontal scroll */
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--sm);
}

.schedule-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  letter-spacing: 0.06em;

  color: var(--wp--preset--color--muted, #4A5568);
  border-bottom: 2px solid var(--wp--preset--color--border, #E2E8F0);
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--wp--preset--color--border, #E2E8F0);
}

.schedule-table tbody tr:hover { background: var(--wp--preset--color--surface, #F4F6F9); }

.schedule-table td {
  padding: 0.875rem 1rem;
  vertical-align: top;
}

.schedule-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted, #4A5568);
  width: 120px;
}

.session-type {
  display: inline-block;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.06em;

  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.35rem;
}

.session-type--plenary   { background: color-mix(in srgb, var(--ed-accent, #C9A227) 18%, transparent); color: color-mix(in srgb, var(--ed-accent, #C9A227) 60%, #000); }
.session-type--ms        { background: color-mix(in srgb, var(--ed-primary, #1A2744) 10%, transparent); color: var(--ed-primary, #1A2744); }
.session-type--papers    { background: rgba(0,100,200,0.1);   color: #004AB3; }   /* semantic blue */
.session-type--break     { background: var(--ed-surface, #F0F4F8); color: var(--wp--preset--color--muted, #526480); }
.session-type--social    { background: rgba(16,185,129,0.1); color: #047857; }    /* semantic green */
.session-type--logistics { background: var(--ed-surface, #F0F4F8); color: var(--wp--preset--color--muted, #526480); }

.session-title {
  display: block;
  font-weight: 600;
  color: var(--wp--preset--color--text, #1A2744);
  margin-bottom: 0.2rem;
}

.session-speaker {
  display: block;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted, #4A5568);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. SPONSORS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sponsors-label {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9AA5B4 !important;
  text-align: center;
  margin-block: 0 1.25rem;
}

.sponsor-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
}

.sponsor-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--wp--preset--color--border, #E2E8F0);
  border-radius: 4px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--muted, #4A5568);
  white-space: nowrap;
}

.sponsor-logo-text--small { font-size: var(--wp--preset--font-size--sm); padding: 0.4rem 1rem; }

.organizer-logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
}

/* Organizer logos in sponsors section (light background) — show full colour */
.organizer-logos-row .organizer-logo img,
.organizer-logo-wrap img { max-height: 48px; width: auto; opacity: 0.8; filter: none; transition: opacity 0.15s; }
.organizer-logos-row .organizer-logo img:hover,
.organizer-logo-wrap img:hover { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. CTA BANNER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.cta-banner {
  background-color: var(--ed-primary, var(--wp--preset--color--primary, #1A2744));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: attr(data-year);
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
}

.cta-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  position: relative;
  z-index: 1;
}

.cta-banner__btn-primary a {
  background-color: var(--ed-accent, #C9A227);
  color: var(--ed-primary, #1A2744);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. VENUE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.venue-section {
  background: var(--wp--preset--color--background, #fff);
}

.venue-map {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.venue-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.55;
}

.venue-details dt {
  font-weight: 600;
  color: var(--global-primary, #1A2744);
  white-space: nowrap;
}

.venue-details dd {
  margin: 0;
  color: var(--wp--preset--color--muted, #5A6474);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.site-footer {
  background: var(--global-primary, var(--wp--preset--color--primary, #1A2744));
  color: rgba(255,255,255,0.85);
}

/* Constrain footer content to content-size — matches .container and WP constrained */
.site-footer > * {
  max-width: calc(var(--wp--style--global--content-size, 1080px) + 2 * var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem)));
  margin-inline: auto;
  padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
  box-sizing: border-box;
}

/* Full-width images — still constrain to wide-size */
.wp-block-image.alignfull {
  max-width: var(--wp--style--global--wide-size, 1440px);
  margin-inline: auto;
}
.wp-block-image.alignfull img {
  width: 100%;
  height: auto;
}

/* Edition pages: footer uses edition primary color */
body[class*="edition-pasc"] .site-footer {
  background: var(--ed-primary, var(--global-primary, #1A2744)) !important;
}

/* Ensure ALL text/links/headings inside the footer are light — WordPress
   navigation blocks, page lists, paragraphs etc. generate deep selectors
   that override normal specificity. */
.site-footer,
.site-footer p:not(.footer-organizers p):not(.footer-organizers-label):not(.footer-sponsor-tier p),
.site-footer .wp-block-navigation,
.site-footer .wp-block-page-list   { color: rgba(255,255,255,0.85) !important; }
.site-footer .footer-organizers p,
.site-footer .footer-organizers-label { color: var(--global-primary, #1A2744) !important; }
.site-footer a,
.site-footer .wp-block-navigation-item__content,
.site-footer .wp-block-pages-list__item__link { color: rgba(255,255,255,0.7) !important;  text-decoration: none; transition: color 0.15s; }
.site-footer a:hover,
.site-footer .wp-block-navigation-item__content:hover,
.site-footer .wp-block-pages-list__item__link:hover { color: #fff !important; }
.site-footer .footer-brand a { text-decoration: underline; }
.site-footer h1, .site-footer h2,
.site-footer h3, .site-footer h4,
.site-footer h5, .site-footer h6    { color: rgba(255,255,255,0.45) !important; }

.footer-grid {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-sitemap-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-col-title {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.1em;

  color: rgba(255,255,255,0.45);
  margin-block: 0 1rem;
}

.footer-nav ul, .footer-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a, .footer-nav-list a { font-size: var(--wp--preset--font-size--sm); color: rgba(255,255,255,0.7) !important; text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover, .footer-nav-list a:hover { color: #fff !important; }
.footer-nav-list li { margin: 0; }

/* Prevent sub-menu dropdowns in footer (white-on-white issue) */
.site-footer .sub-menu,
.site-footer .wp-block-navigation__submenu-container { display: none !important; }

.footer-organizers {
  margin-block: 2.5rem 2rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  color: var(--global-primary, #1A2744) !important;
}
.footer-organizers a { color: var(--global-primary, #1A2744) !important; }
.footer-organizers a:hover { color: var(--ed-accent, #C9A227) !important; }

.site-footer .footer-organizers-label {
  font-size: var(--wp--preset--font-size--sm);

  letter-spacing: 0.06em;
  color: var(--global-primary, #1A2744) !important;
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.organizer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.organizer-logo img { max-height: 52px; width: auto; filter: none; opacity: 0.8; }
.organizer-logo img:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--wp--preset--font-size--sm);
  color: rgba(255,255,255,0.5);
}

/* Footer legal links */
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: var(--wp--preset--font-size--sm); color: rgba(255,255,255,0.5) !important; }
.footer-legal a:hover { color: #fff !important; }

/* Footer newsletter button — .site-footer prefix beats the generic
   `.site-footer a { color: rgba(255,255,255,0.7) !important }` rule. */
.site-footer .footer-newsletter-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  margin-top: 0.25rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ed-primary, #1A2744) !important;
  background: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: var(--r-full);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.site-footer .footer-newsletter-btn:hover { color: #fff !important; background: var(--ed-primary, #1A2744) !important; }

/* ── Social follow buttons — force white text ──────────────────────── */
.wp-block-button__link[style*="--ed-on-primary"] {
  color: #fff !important;
}

/* ── CleverReach newsletter modal ──────────────────────────────────── */
.cr-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}
.cr-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cr-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  width: 90%;
  padding: 20px 22px 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
}
.cr-modal-inner {
  max-height: 80vh;
  overflow-y: auto;
}
.cr-modal-close {
  position: absolute;
  top: 8px; right: 10px;
  border: none; background: transparent;
  font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 8px;
  color: #333;
}
.cr-modal-close:focus { outline: 1px solid #ccc; }
/* CleverReach form overrides inside modal */
.cr-modal .formbox { padding: 0; background: transparent; border-radius: 0; }
.cr-modal .cr_ipe_item { padding: 1px 0; margin: 1px 0; }
.cr-modal .cr_button {
  display: inline-block; font-family: 'Helvetica', Arial, sans-serif;
  height: 32px; padding: 0 22px; border: 0; border-radius: 4px;
  background-color: var(--ed-primary, #1A2744); color: #fff;
  font-weight: bold; font-size: 15px; line-height: 32px;
  cursor: pointer; margin-top: 5px;
}
.cr-modal .cr_button:hover { opacity: 0.7; }
.cr-modal .cr_ipe_item input[type="text"] {
  background: #eee; border: 1px solid #aaa;
  padding: 8px; font-size: 16px; width: 100%; box-sizing: border-box;
}
.cr-modal .cr_ipe_item label { font-weight: bold; margin-bottom: 4px; display: block; }
.cr-modal .clever_form_error { background-color: #f99 !important; border: 1px solid #f22 !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. TOPIC CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  padding: var(--sp-6, 1.5rem);
  border-left: 3px solid var(--ed-accent, #C9A227);
  background: var(--ed-surface, #F4F6FA);
  border-radius: 0 var(--r-lg, 10px) var(--r-lg, 10px) 0;
  border-top: none;
  border-right: none;
  border-bottom: none;
  transition: transform var(--t-base, 0.20s ease), box-shadow var(--t-base, 0.20s ease);
}

.topic-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,.08));
}

.topic-card__icon {
  font-size: var(--wp--preset--font-size--3xl);
  margin-bottom: 0.75rem;
  display: block;
}

.topic-card__title {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  margin-block: 0 0.5rem;
}

.topic-card__desc {
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.55;
  color: var(--wp--preset--color--muted, #4A5568);
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. WORDPRESS BLOCK OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Remove margin from first/last blocks in constrained layout */
.wp-block-group > *:first-child { margin-top: 0; }
.wp-block-group > *:last-child  { margin-bottom: 0; }

/* Query pagination */
.wp-block-query-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--border, #E2E8F0);
  color: var(--wp--preset--color--text, #1A2744);
  transition: background 0.15s, border-color 0.15s;
}

.wp-block-query-pagination a:hover {
  background: var(--ed-primary, #1A2744);
  color: #fff;
  border-color: var(--ed-primary, #1A2744);
}

.wp-block-query-pagination .current {
  background: var(--ed-primary, #1A2744);
  color: #fff;
  border-color: var(--ed-primary, #1A2744);
}

/* Social links */
.wp-block-social-links { gap: 0.75rem; }

/* Social follow icons (circular SVG buttons) */
.social-follow-icons { display: flex; justify-content: center; gap: 1.5rem; }
.social-follow-icons a {
  display: flex !important; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ed-primary, #1A2744) !important; color: #fff !important;
  border: 1px solid var(--ed-primary, #1A2744) !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
}
.social-follow-icons a:hover {
  background: #fff !important;
  color: var(--ed-primary, #1A2744) !important;
  border-color: var(--ed-primary, #1A2744) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.social-follow-icons a:active { transform: translateY(0) scale(0.95); box-shadow: none; }
.social-follow-icons svg { width: 28px; height: 28px; fill: currentColor !important; display: block; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. GLOBAL HOMEPAGE (Portal page — non-edition)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.global-hero {
  background: linear-gradient(135deg, var(--ed-primary-dark, #0F1A2E) 0%, var(--global-primary, #1A2744) 55%, var(--global-primary-hover, #3A5694) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* Subtle grid overlay — matches edition hero */
.global-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.025) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.025) 80px);
  pointer-events: none;
  z-index: 0;
}

.global-hero__inner {
  position: relative;
  z-index: 1;
}

.global-hero__logo img {
  max-width: 140px;
  margin: 0 0 1.5rem;
  display: block;
  filter: brightness(0) invert(1);
}

.global-hero__title {
  color: #fff;
  margin-bottom: 1rem;
}

.global-hero__lead {
  color: rgba(255,255,255,0.8);
}

.global-hero__edition-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  text-align: center;
}

.global-hero__edition-label {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.global-hero__edition-title {
  color: #fff;
  text-align: center;
}

.global-hero__edition-card p {
  color: rgba(255,255,255,0.75);
}

.global-hero__edition-card .wp-block-button__link {
  background-color: var(--ed-accent, #C9A227);
  color: #fff !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.global-hero__edition-card .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,.3);
}

/* ── Global hero responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .global-hero .wp-block-columns {
    flex-direction: column !important;
  }
  .global-hero .wp-block-column {
    flex-basis: 100% !important;
  }
  .global-hero__edition-card {
    margin-top: 2rem;
  }
  .global-hero__lead {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
  }
}

/* About section */
.about-section {
  background: var(--wp--preset--color--background, #fff);
}

/* Previous editions grid */
.edition-card {
  background: var(--ed-surface, #F4F6FA);
  border: 1px solid var(--wp--preset--color--border, #E2E8F0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.edition-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.edition-card h3 {
  color: var(--global-primary, #1A2744);
  margin: 0 0 0.25rem;
}

.edition-card p {
  margin: 0;
}

@media (max-width: 768px) {
  .previous-editions-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. HERO & BUTTON CONTRAST FIXES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* Hero CTA buttons — guaranteed contrast on any edition color */
.hero .wp-block-button__link.has-background {
  color: var(--ed-primary, #1A2744) !important;   /* dark text on white button */
}
.hero .wp-block-button__link {
  transition: opacity var(--t-fast, 0.12s), transform var(--t-fast, 0.12s);
}
.hero .wp-block-button__link:hover,
.hero .wp-block-button__link:focus {
  opacity: 0.88;
  transform: translateY(-1px);
}
.hero .is-style-outline .wp-block-button__link:hover,
.hero .is-style-outline .wp-block-button__link:focus {
  background-color: rgba(255,255,255,0.12) !important;
  opacity: 1;
}

/* Links inside hero section — always white */
.hero a:not(.wp-block-button__link) {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero a:not(.wp-block-button__link):hover {
  opacity: 0.85;
}

/* Edition buttons — ensure hover contrast */
.edition-zone .wp-block-button__link:hover {
  opacity: 0.88;
  transition: opacity var(--t-fast, 0.12s);
}

/* ── General link hover — visible feedback using darker primary ── */
.entry-content a:not(.wp-block-button__link),
.wp-block-post-content a:not(.wp-block-button__link) {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.entry-content a:not(.wp-block-button__link):hover,
.wp-block-post-content a:not(.wp-block-button__link):hover {
  color: var(--ed-primary-dark, #0e1a30) !important;
  text-decoration-color: var(--ed-primary-dark, #0e1a30);
}

/* ── Edition sub-page breadcrumb area ────────────────────────── */
.edition-page-title {
  border-bottom: 1px solid var(--ed-border, #E2E8F0);
  padding-top: 0.75rem !important;
  padding-bottom: 1rem !important;
  margin-bottom: 2rem !important;
}
.edition-page-title .edition-breadcrumbs {
  margin-bottom: 0.25rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Footer spacing ─────────────────────────────────────────── */
.site-footer,
footer.wp-block-template-part {
  margin-top: var(--wp--preset--spacing--8, 4rem) !important;
}

/* Homepage alignment — kill block gap on global-page */
.global-page { margin-top: 0 !important; }
.global-page > *:first-child { margin-top: 0 !important; }

/* Constrain content blocks — backgrounds stay full-width, inner content capped.
   Blocks WITH a background get centered padding; blocks without get max-width.
   Uses descendant selectors (not >) so nested groups also get constrained. */
.site-main .entry-content > :where(:not(.alignfull):not(.alignwide):not(.has-background)) {
  max-width: var(--wp--style--global--content-size, 1080px);
  margin-inline: auto;
}
.site-main .entry-content > .alignwide:not(.has-background) {
  max-width: var(--wp--style--global--wide-size, 1440px);
  margin-inline: auto;
}
.site-main .entry-content > .has-background {
  padding-inline: max(1rem, calc((100% - var(--wp--style--global--content-size, 1080px)) / 2));
}

/* Nested groups: constrain inner content to content-size so text width
   stays consistent regardless of nesting depth. */
.site-main .entry-content .wp-block-group:not(.alignfull):not(.alignwide) > :where(:not(.alignfull):not(.alignwide)) {
  max-width: var(--wp--style--global--content-size, 1080px);
  margin-inline: auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. RESPONSIVE — MOBILE (≤ 768px)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {

  /* ── Registration page column stacking ─────────────────────── */
  .wp-block-template-is-page-registration .wp-block-columns,
  .page-template-page-registration .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-template-is-page-registration .wp-block-column,
  .page-template-page-registration .wp-block-column {
    flex-basis: 100% !important;
  }

  /* ── Mobile edition section (colored background) ──────────── */
  .mobile-nav__edition-section {
    margin: 1rem -1.5rem -2rem;
    padding: 0 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
  }
  .mobile-nav__edition-divider {
    padding-top: 1rem;
  }
  .mobile-nav__edition-divider > span {
    display: block;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    letter-spacing: 0.1em;
  
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.5rem;
  }
  .mobile-nav__edition-logo {
    margin-bottom: 0.75rem;
    /* Edition section background is the edition primary colour (typically
       dark/saturated). Force single-colour logos to render white so they
       stay legible. Safe for transparent PNG / SVG; multi-colour logos
       will flatten to white, which is the intended fallback. */
    filter: brightness(0) invert(1);
  }

  /* ── Current page highlight in mobile drawer ─────────────────── */
  .mobile-nav-drawer .menu-item.current-menu-item > a,
  .mobile-nav-drawer .menu-item.current_page_item > a,
  .mobile-nav-drawer .sub-menu .menu-item.current-menu-item > a,
  .mobile-nav-drawer .sub-menu .menu-item.current_page_item > a {
    color: var(--global-primary, #1A2744);
    background: #fff;
    border-radius: 6px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  /* Chevron inherits currentColor (dark) via border-colour, but be
     explicit so a child .has-text-color override can't re-whiten it. */
  .mobile-nav-drawer .menu-item.current-menu-item > a .menu-chevron::before,
  .mobile-nav-drawer .menu-item > a:active .menu-chevron::before {
    border-top-color: var(--global-primary, #1A2744);
  }
  .mobile-nav-drawer .sub-menu .menu-item.current-menu-item > a .menu-chevron::before,
  .mobile-nav-drawer .sub-menu .menu-item > a:active .menu-chevron::before {
    border-left-color: var(--global-primary, #1A2744);
  }
  .mobile-nav-drawer .current-menu-ancestor > a {
    color: #fff;
  }

  /* ── Mobile register button in drawer ──────────────────────── */
  .mobile-nav__register {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .btn-register-mobile {
    display: block;
    text-align: center;
    min-height: 44px;
    line-height: 44px;
    padding: 0 1.5rem;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
    font-size: var(--wp--preset--font-size--md);
    border-radius: 6px;
    text-decoration: none;
  }
  .btn-register-mobile:hover {
    opacity: 0.9;
  }

  /* ── Schedule table card layout ────────────────────────────── */
  .schedule-table thead { display: none; }
  .schedule-table,
  .schedule-table tbody { display: block; }
  .schedule-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ed-border, #E2E8F0);
  }
  .schedule-table td {
    display: block;
    padding: 0.15rem 0;
    border: 0;
  }
  .schedule-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 700;
    letter-spacing: 0.08em;
  
    color: var(--wp--preset--color--muted, #5A6474);
    margin-bottom: 0.15rem;
  }
  .schedule-table .schedule-time {
    font-weight: 600;
    color: var(--ed-primary, #1A2744);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. PRINT STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media print {
  .site-header,
  .mobile-nav-drawer,
  .cta-banner,
  .footer-social { display: none !important; }
  body { color: #000; background: #fff; }
  a { text-decoration: underline; }
}

/* ── PhotoSwipe gallery (.pasc-lightbox) ──────────────────────────── */
.wp-block-gallery.pasc-lightbox .wp-block-image a {
  display: block;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wp-block-gallery.pasc-lightbox .wp-block-image a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.wp-block-gallery.pasc-lightbox .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* PhotoSwipe modal palette: tie close/counter tint to edition accent. */
.pswp__bg {
  background: #111 !important;
}
.pswp__icn {
  fill: #fff;
  opacity: 0.85;
}

/* ── Inactive edition: hide Register CTA (per-conference action).
   Desktop keeps .header-actions in the flex row via visibility:hidden
   so the logo + nav don't recenter. Mobile link can collapse safely. */
body.pasc-inactive-edition .btn-register {
  visibility: hidden;
  pointer-events: none;
}
body.pasc-inactive-edition .btn-register-mobile {
  display: none !important;
}

/* ── Registration closed: hide Register CTAs when active edition has
   _pasc_reg_open = 0.
   Desktop header: keep the .header-actions container in the flex row
   and use visibility:hidden on .btn-register so the logo/nav layout
   stays stable — collapsing the slot would recenter the menu.
   Mobile drawer + hero: safe to fully collapse. */
body.pasc-reg-closed .btn-register {
  visibility: hidden;
  pointer-events: none;
}
body.pasc-reg-closed .btn-register-mobile,
body.pasc-reg-closed .hero__cta-primary {
  display: none !important;
}

/* ── Edition single (/editions/{slug}/) breathing room ────────────────────
   The single-pasc_edition.html template renders post-content as
   is-layout-flow (layout:default), so root padding isn't applied at the
   post-content level. Most patterns wrap their content in a
   .has-global-padding group — but loose direct children (stray headings,
   paragraphs, wp-block-columns added in the editor) don't, and bleed to
   the viewport edge on mobile. Re-apply root padding to those specific
   orphan children only; full-bleed elements (alignfull) and self-padded
   blocks (has-global-padding) are left alone. */
body.single-pasc_edition .wp-block-post-content.is-layout-flow > *:not(.has-global-padding):not(.alignfull):not(.wp-block-spacer):not(.hero):not(.edition-zone) {
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
}

/* ── Linklings schedule: constrain program table to container width.
   The plugin's own CSS sets white-space:nowrap on every <th> plus
   aggressive min-widths (15em on .presentation-header, 7em on
   .tag-header, 75px floor on every th), which together force the
   table wider than its container on narrower viewports. Override
   those so the table actually fits 100% and all columns are visible. */
.linklings-wp-plugin-contents,
.linklings-wp-plugin-contents .tablesched {
  max-width: 100%;
}
.linklings-wp-plugin-contents .tablesched {
  overflow-x: auto;
  clear: both; /* .date-header .show-hide-links floats right without a
                  clearfix; without this, the table flows next to that
                  float and renders at ~50% width on mobile. */
}
.linklings-wp-plugin-contents .tablesched > table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  /* collapse borders so the alternating-row grey on <td> has no white
     gaps between cells (browsers default to border-spacing: 2px). */
  border-collapse: collapse;
  border-spacing: 0;
}
.linklings-wp-plugin-contents .tablesched .combo-sess-pres > table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* Let header text wrap instead of forcing a single line */
.linklings-wp-plugin-contents .tablesched th {
  white-space: normal;
  min-width: 0;
}
/* Relax the plugin's per-column min-widths */
.linklings-wp-plugin-contents .tablesched th.presentation-header {
  min-width: 12em;
}
.linklings-wp-plugin-contents .tablesched th.tag-header {
  min-width: 5em;
}
/* Cap the Type column so long event-type names don't blow it up,
   and force their inline children to actually wrap onto multiple
   lines (by default the event-type-name flow stays on one line
   because nothing in it is break-able under table-layout:auto). */
.linklings-wp-plugin-contents .tablesched th.type-header,
.linklings-wp-plugin-contents .tablesched td.type-td {
  max-width: 9em;
  width: 9em;
}
.linklings-wp-plugin-contents .tablesched td.type-td,
.linklings-wp-plugin-contents .tablesched td.type-td .presentation-type,
.linklings-wp-plugin-contents .tablesched td.type-td .event-type-name,
.linklings-wp-plugin-contents .tablesched td.type-td .small-etypes,
.linklings-wp-plugin-contents .tablesched .small-etypes .event-type-name {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* Allow long content (titles, presenter names, locations) to wrap */
.linklings-wp-plugin-contents .tablesched td,
.linklings-wp-plugin-contents .tablesched th {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
/* Inner tables used for session/presentation combos — match parent width */
.linklings-wp-plugin-contents .tablesched .combo-sess-pres > table,
.linklings-wp-plugin-contents .tablesched .session-contents > table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}
/* The plugin pins every .combo-sess-pres inner <td> to 50%, which leaves
   half the cell empty when the row only has one <td> (the common case). */
.linklings-wp-plugin-contents .tablesched .combo-sess-pres > table td {
  width: auto;
}
/* Keep every desktop-visible column visible at all viewport widths.
   The plugin drops .hide-med at 600–1100px and .hide-small below 600px
   on the Type, Presenters, Location, Domain columns. Force them back.
   Leave .hide-large alone — it hides the color-indicator and the
   Plan/Calendar columns, which are intentional on desktop. */
.linklings-wp-plugin-contents .tablesched th.hide-med,
.linklings-wp-plugin-contents .tablesched td.hide-med,
.linklings-wp-plugin-contents .tablesched th.hide-small,
.linklings-wp-plugin-contents .tablesched td.hide-small {
  display: table-cell !important;
}
/* Suppress the mobile-only inline fallbacks inside .combo-sess-pres
   (the .small-etypes event-type label that duplicated the now-always-
   visible Type column). */
.linklings-wp-plugin-contents .tablesched .combo-sess-pres .hide-large,
.linklings-wp-plugin-contents .tablesched .combo-sess-pres .small-etypes {
  display: none !important;
}
/* Hide the Plan/Calendar column at every width — the plugin disables it
   on desktop via hide-large, but our hide-med/hide-small override above
   would otherwise reveal it on narrower viewports. */
.linklings-wp-plugin-contents .tablesched th.calendar-header,
.linklings-wp-plugin-contents .tablesched td.calendar-td {
  display: none !important;
}
/* The plugin paints the alternating-row grey on each <td>. When a cell
   contains a nested table (combo-sess-pres) or when the outer table
   doesn't quite reach the scroll container edge, that per-td grey can
   leave visible gaps. Paint the <tr> itself as well so the whole row
   shows a single continuous background. */
.linklings-wp-plugin-contents .tablesched tr.odd {
  background-color: #eeeeee;
}
/* Double-comma on session chairs: the conference_program_styles inline
   CSS forces `.tablesched .presenter-name::after { content: ", " !important }`
   which overrides the plugin's reset inside .session-display. Combined
   with the plugin's own `.session-chair::after { content: ", " }` this
   renders "Name, , NextName, ". Suppress the inner presenter-name comma
   inside chair lists so only the outer session-chair separator applies
   (which already handles :last-of-type). */
.linklings-wp-plugin-contents .session-display .session-chair .presenter-name::after,
.linklings-wp-plugin-contents .presentation-display .session-chair .presenter-name::after {
  content: '' !important;
}
