/* EndodMS - conference site — palette benchmark: suggestion/SAMPLE HOMEPAGE.png (navy + orange) */
:root {
  --color-navy: #1e3a5f;
  --color-navy-deep: #152238;
  --color-orange: #ea580c;
  --color-orange-hover: #c2410c;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #3d4d61;
  --color-accent: var(--color-navy);
  --color-accent-soft: #e2ebf5;
  --color-cta: var(--color-orange);
  --color-gold: #b8860b;
  --color-border: #e2e8f0;
  --color-border-subtle: rgba(30, 58, 95, 0.08);
  --font-sans: "Roboto", system-ui, sans-serif;
  --font-display: "Roboto", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(30, 58, 95, 0.07);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 16px rgba(30, 58, 95, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(30, 58, 95, 0.09);
  --surface-border: 1px solid rgba(30, 58, 95, 0.09);
  /* Single layout column: header, sections, and footer share these edges */
  --content-max: 1320px;
  --page-gutter: clamp(1.25rem, 4vw, 2.75rem);
  /* Home: alternate band matches page canvas (pure white) */
  --section-band-alt: #ffffff;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: #ffffff;
  /* Avoid widening the flex column; horizontal overflow is clipped on html + .site-main */
  max-width: 100%;
}

/* Public site only: larger base type & clearer hierarchy (delegate/admin dashboard uses .dash-app-section) */
body:not(:has(.dash-app-section)) {
  font-size: 1.125rem;
  line-height: 1.65;
}

body:not(:has(.dash-app-section)) .section-head h2 {
  font-size: clamp(1.75rem, 2.85vw, 2.1rem);
  line-height: 1.2;
}

body:not(:has(.dash-app-section)) .section-head > p,
body:not(:has(.dash-app-section)) .section-head > .section-head__plain {
  font-size: clamp(0.9rem, 1.45vw, 1.3rem);
  line-height: 1.62;
}

body:not(:has(.dash-app-section)) .card h3 {
  font-size: 1.3rem;
}

body:not(:has(.dash-app-section)) .card p,
body:not(:has(.dash-app-section)) .card .rte-content {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Only RTE inside content sections — never .page-mast-strip (dark band needs light text) */
body:not(:has(.dash-app-section)) .site-main section .rte-content {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--color-text);
}

body:not(:has(.dash-app-section)) .site-main section .rte-content a {
  color: var(--color-accent);
}

body:not(:has(.dash-app-section)) .prose p {
  line-height: 1.72;
}

body:not(:has(.dash-app-section)) .why-home-item__body,
body:not(:has(.dash-app-section)) .speaker-role,
body:not(:has(.dash-app-section)) .date-row span:first-child {
  font-size: 1rem;
  color: var(--color-muted);
}

body:not(:has(.dash-app-section)) .why-home-item__label {
  font-size: clamp(1rem, 1.75vw, 1.4rem);
}

/* Inner public pages: single calm canvas (no per-section alternation — avoids empty-looking bands above footer) */
body:not(.site-home):not(:has(.dash-app-section)) .site-main {
  background: var(--color-bg);
}

/* Links: theme accent; underline only on hover (see .site-footer / .skip-link / .btn overrides) */
a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:visited {
  color: var(--color-accent);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 95, 0.4);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Out of flex flow so body column layout is only header / main / footer */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--color-cta);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  top: 0;
}

.skip-link:visited {
  color: #fff;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.skip-link:hover {
  text-decoration: none;
}

/* One block-level shell everywhere (header / hero / sections / footer) - do not combine with flex on the same node */
.wrap {
  display: block;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  min-width: 0;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.site-header,
.site-main,
.site-footer {
  width: 100%;
}

.site-header {
  flex: 0 0 auto;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.safari .site-header {
  overflow-x: visible;
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-navy) 48%, var(--color-navy-deep) 100%);
}

.site-topbar {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/*
 * Shares .wrap with the nav row below — only add flex + vertical padding here.
 * Do not set width/max-width: those would override .wrap’s min(100%, --content-max)
 * and break horizontal alignment on wide viewports.
 */
.site-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding-block: 0.4rem;
  min-width: 0;
  box-sizing: border-box;
}

.site-topbar__email {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.site-topbar__mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-topbar__mailto:hover,
.site-topbar__mailto:focus-visible {
  text-decoration: underline;
  color: #fff;
}

.site-topbar__mailto span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 1.2rem;
}

.site-topbar__social {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  max-width: 100%;
}

.site-topbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.site-topbar__social-link:hover,
.site-topbar__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-topbar .site-topbar__social-link .icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

@media (max-width: 640px) {
  .site-topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-topbar__social {
    margin-left: 0;
    justify-content: flex-start;
  }
}

.site-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.site-footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  text-decoration: none;
}

.site-footer-social__link .icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* First column: social row under conference title (dark footer — high contrast) */
.footer-col--brand {
  min-width: 0;
}

.footer-brand-social {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand-social__title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.55rem;
}

.site-footer .site-footer-social__link,
.site-footer .site-footer-social__link:visited {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer .site-footer-social__link:hover,
.site-footer .site-footer-social__link:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.25rem;
  padding: 1.2rem 0;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.7rem);
  line-height: 1.15;
  color: var(--color-accent);
  white-space: nowrap;
}

.brand-logo {
  flex-shrink: 0;
  display: block;
}

.brand:not(.is-open) .brand-name {
  padding-left: 75px;
}

.brand:not(.is-open) .brand-logo {
  position: absolute;
  transform: scale(1.6);
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  font: inherit;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
}

.site-nav__primary,
.site-nav__account {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav__account {
  padding-left: 0.35rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--color-border);
}

.site-nav a,
.site-nav .nav-details__summary {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 1.175rem;
  font-weight: 500;
  line-height: 1.4;
}

.site-nav a:hover,
.site-nav .nav-details__summary:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.35);
}

.site-nav .registration-btn {
  background: var(--color-cta) !important;
  color: #fff;
  transition: 0.1s all ease-in;
}

.site-nav .registration-btn:hover {
  background: var(--color-orange-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.site-nav a[aria-current="page"]:hover {
  text-decoration: none;
}

/* Six primary tabs: nested “Program” + “Attend” use <details> */
.site-nav .nav-details {
  position: relative;
}

.site-nav .nav-details__summary {
  list-style: none;
  cursor: pointer;
  padding-right: 1.6rem;
  position: relative;
}

.nav-details__summary::-webkit-details-marker {
  display: none;
}

.nav-details__summary::after {
  content: "";
  position: absolute;
  right: 0.45rem;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: -0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

.nav-details[open] .nav-details__summary::after {
  margin-top: -0.05rem;
  transform: rotate(225deg);
}

@media (min-width: 901px) {
  .site-nav .nav-details:hover .nav-details__summary::after,
  .site-nav .nav-details:focus-within .nav-details__summary::after {
    margin-top: -0.05rem;
    transform: rotate(225deg);
  }
}

.nav-details--active .nav-details__summary {
  background: var(--color-accent);
  color: #fff;
}

.nav-details--active .nav-details__summary:hover {
  text-decoration: none;
}

.nav-details__panel {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.35rem;
  min-width: 12.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav .nav-details__panel a {
  border-radius: 6px;
  margin: 0;
  padding: 0.625rem 1.125rem;
}

@media (min-width: 901px) {
  .site-nav .nav-details__panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0rem;
    z-index: 60;
    min-width: max-content;
    width: max-content;
  }

  .site-nav .nav-details__panel a {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .site-nav__account {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav .nav-details {
    width: 100%;
  }

  .nav-details__panel {
    margin-left: 0.5rem;
    border-left: 2px solid var(--color-accent-soft);
    box-shadow: none;
    background: var(--color-bg);
  }
}

/*
 * Inner pages: dark band with page title + intro (no duplicate block below).
 * Clean bottom edge — no fade pseudo (avoids muddy gradient).
 */
.page-mast-strip {
  position: relative;
  color: #fff;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  max-width: 100%;
  overflow-x: clip;
}

.page-mast-strip__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, var(--color-navy-deep) 0%, var(--color-navy) 46%, #2c5288 100%);
}

.page-mast-strip__inner {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-mast-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--color-orange);
  padding-left: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.page-mast-strip__lead {
  margin: 0.9rem 0 0;
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
}

.page-mast-strip__lead p {
  margin: 0.55rem 0 0;
}

.page-mast-strip__lead p:first-child {
  margin-top: 0;
}

.page-mast-strip__lead a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.65);
}

.page-mast-strip__lead a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

/* Mast lead also has .rte-content; global .rte-content a must not override link color on dark band */
.page-mast-strip__lead.rte-content a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.65);
}

.page-mast-strip__lead.rte-content a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.page-mast-strip + .section {
  padding-top: 2rem;
}

/* Home: base canvas + alternating soft bands (even sections); video keeps navy */
body.site-home .site-main {
  background: var(--color-bg);
}

body.site-home .site-main > section.section:nth-child(2n):not(.section-home-video-split):not(.section-home-bottom-cta) {
  background: var(--section-band-alt);
  box-shadow: none;
}

body.site-home .site-main > section.section.section-home-video-split {
  background: #ffffff;
  box-shadow: none;
}

body.site-home .site-main > section.section.section-home-bottom-cta {
  background: #ffffff;
  box-shadow: none;
}

body.site-home .site-main > section.section {
  padding-top: 2.85rem;
  padding-bottom: 2.85rem;
}

/* Extra space after video so Key dates (and any following block) never sits flush under the navy band */
body.site-home .section-home-video-split + .section {
  padding-top: clamp(2.85rem, 5vw, 3.5rem);
}

.site-main {
  flex: 1 0 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* Spacing before footer comes from the last section’s padding — avoid a second band here */
  padding-bottom: 0;
}

.hero {
  position: relative;
  color: #fff;
  padding: 3rem 0 4rem;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Theme fallback: visible immediately while the photo loads or during mobile repaint */
  background-color: var(--color-navy-deep);
  background-image: linear-gradient(
    165deg,
    var(--color-navy-deep) 0%,
    var(--color-navy) 52%,
    var(--color-navy-deep) 100%
  );
}

@media (max-width: 1024px) {
  .hero {
    min-height: 70vh;
    min-height: 70svh;
  }
}

/*
 * Mobile / touch: avoid clipping hero copy when the browser chrome resizes during scroll.
 * overflow:hidden + flex center + vh min-height often hides content on Android Chrome.
 */
@media (max-width: 899px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero .wrap {
    isolation: isolate;
    transform: translateZ(0);
  }
}

body.site-home .hero.hero--home-banner {
  padding: clamp(2.75rem, 7vw, 4.25rem) 0 clamp(3.25rem, 8vw, 4.75rem);
}

@media (max-width: 899px) {
  body.site-home .hero.hero--home-banner {
    padding: 0 0 clamp(2.25rem, 6vw, 3.25rem);
  }
}

body.site-home .hero.hero--home-banner.hero--has-slider .hero-slider__slide.is-active img {
  opacity: 1;
  object-position: top;
}

/* Legacy single-image hero (non-slider pages) */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-navy-deep);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(21, 34, 56, 0.28) 0%,
    rgba(21, 34, 56, 0.55) 100%
  );
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  position: relative;
  z-index: 0;
  background-color: var(--color-navy-deep);
}

/* Home hero: rotating background slides */
.hero--has-slider .hero-slider__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-navy-deep);
  isolation: isolate;
}

.hero-slider__slides {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
  background-color: var(--color-navy-deep);
  transition: opacity 1.1s ease;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(285deg, rgba(4, 0, 212, 0) 40.11%, #152238 98.45%),rgba(0,2,44,.2);
}

/* Prev/next on left & right, vertically centered on the image */
.hero-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 7vw, 3.25rem);
  height: clamp(2.5rem, 7vw, 3.25rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(21, 34, 56, 0.6);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  pointer-events: auto;
  backdrop-filter: blur(4px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.hero-slider__nav--prev {
  left: clamp(0.35rem, 2vw, 1.25rem);
}

.hero-slider__nav--next {
  right: clamp(0.35rem, 2vw, 1.25rem);
}

.hero-slider__nav:hover {
  background: rgba(234, 88, 12, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-slider__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-slider__nav .icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.hero-slider__dots {
  position: absolute;
  bottom: clamp(0.5rem, 2vw, 1rem);
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(21, 34, 56, 0.5);
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.hero-slider__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-slider__dot.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  transform: scale(1.2);
}

.hero-slider__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }

  .hero-slider__slide img {
    transition: none;
    transform: none;
  }

  .hero-slider__slide.is-active img {
    transform: none;
  }
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 42ch;
  opacity: 0.95;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-countdown {
  margin: 0;
  max-width: min(100%, 55rem);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-countdown__sublabel {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hero-countdown__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
  align-items: stretch;
}

.hero-countdown__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 7rem;
  min-width: 6rem;
  padding: 1.2rem 0.75rem;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(
      to bottom,
      rgba(30, 41, 59, 0.92) 0%,
      rgba(30, 41, 59, 0.92) 32%,
      #ffffff 32%,
      #989898 100%
    );
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-countdown__cell:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-countdown__value {
  display: block;
  font-size: clamp(2rem, 3.55vw, 3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #243746;
  z-index: 2;
}

.hero-countdown__unit {
  display: block;
  flex-shrink: 0;
  transform: translateY(-10px);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  z-index: 2;
}

/* Tablet: compact five-column layout; unit labels keep desktop size (e.g. iPad Pro). */
@media (max-width: 1100px) {
  .hero-countdown {
    max-width: 100%;
  }

  .hero-countdown__sublabel {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
  }

  .hero-countdown__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.35rem, 1.2vw, 0.6rem);
  }

  .hero-countdown__cell {
    min-height: 0;
    min-width: 0;
    gap: 0.15rem;
    padding: 0.35rem 0.28rem 0.32rem;
    overflow: visible;
    border-radius: 12px;
    justify-content: space-between;
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background:
      linear-gradient(
        to bottom,
        rgba(30, 41, 59, 0.92) 0%,
        rgba(30, 41, 59, 0.92) 44%,
        #ffffff 44%,
        #989898 100%
      );
  }

  .hero-countdown__value {
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    padding: 0.2rem 0.12rem 0.28rem;
    box-sizing: border-box;
    width: 100%;
  }

  .hero-countdown__unit {
    transform: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0.32rem 0.15rem 0.28rem;
  }
}

/* Mobile only: full unit words at 0.6rem. */
@media (max-width: 767px) {
  .hero-countdown__unit {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.12rem 0.24rem;
  }
}

@media (max-width: 576px) {
  .hero-countdown__sublabel {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
  }

  .hero-countdown__grid {
    gap: 0.3rem;
  }

  .hero-countdown__cell {
    padding: 0.32rem 0.2rem 0.28rem;
    gap: 0.12rem;
    border-radius: 10px;
  }

  .hero-countdown__unit {
    padding: 0.26rem 0.1rem 0.22rem;
  }

  .hero-countdown__value {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    padding: 0.18rem 0.1rem 0.24rem;
  }

  .hero-countdown__cell:hover {
    transform: none;
  }
}

@media (max-width: 400px) {
  .hero-countdown__grid {
    gap: 0.22rem;
  }

  .hero-countdown__cell {
    padding: 0.28rem 0.1rem 0.24rem;
  }

  .hero-countdown__unit {
    padding: 0.22rem 0.08rem 0.2rem;
  }

  .hero-countdown__value {
    font-size: clamp(0.88rem, 3.8vw, 1rem);
    padding: 0.16rem 0.08rem 0.22rem;
  }
}

/* After conference start: single light block (readable on hero) */
.hero-countdown--past {
  text-align: left;
  max-width: min(100%, 33rem);
  padding: 1.1rem 1.2rem 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(15, 35, 50, 0.12);
}

.hero-countdown__over {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--color-text);
}

.hero-countdown__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

.hero-countdown__link:hover {
  color: var(--color-orange-hover);
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.55);
}

.hero-countdown__noscript {
  margin: 0.6rem 0 0;
  max-width: min(100%, 33rem);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: var(--color-text);
  box-shadow: 0 4px 16px rgba(15, 35, 50, 0.08);
}

/* Hero: full-bleed campus photo + left copy (no logo); benchmark SAMPLE HOMEPAGE.png */
.hero-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3.75rem) clamp(1.2rem, 2vw, 2rem);
  flex-direction: column;
}

@media (min-width: 1400px) {
  .hero-shell {
    bottom: 2rem;
    position: relative;
  }
}

.hero-primary {
  flex: 1 1 min(100%, 36rem);
  min-width: 0;
}

.hero-aside {
  flex: 0 1 auto;
  align-self: flex-start;
}

@media (max-width: 899px) {
  .hero-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-aside {
    align-self: center;
    width: 100%;
  }

  /*
   * Home hero: photo band on top, copy + countdown below on theme navy.
   */
  .hero.hero--home-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 clamp(2.25rem, 6vw, 3.25rem);
    min-height: auto;
  }

  .hero.hero--home-banner .hero-slider__media {
    position: relative;
    inset: auto;
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(11.5rem, 44vw, 16rem);
    z-index: 1;
  }

  .hero.hero--home-banner .hero-slider__overlay {
    background: linear-gradient(
      180deg,
      rgba(21, 34, 56, 0.05) 0%,
      rgba(21, 34, 56, 0.65) 88%,
      var(--color-navy-deep) 100%
    );
  }

  body.site-home .hero.hero--home-banner .hero-slider__slide.is-active img,
  .hero.hero--home-banner .hero-slider__slide.is-active img {
    opacity: 1;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .hero.hero--home-banner .hero-slider__slide img {
    transform: none;
    transition: opacity 1.1s ease;
  }


  .hero.hero--home-banner > .wrap {
    order: 1;
    flex: 1 1 auto;
    width: 100%;
    padding-top: clamp(1.35rem, 4.5vw, 2rem);
  }

  .hero.hero--home-banner .hero-kicker {
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.55rem;
  }

  .hero.hero--home-banner .hero-title {
    font-size: clamp(1.35rem, 5.8vw, 1.9rem);
    margin-bottom: 0.95rem;
    line-height: 1.15;
  }

  .hero.hero--home-banner .hero-meta--rows {
    gap: 0.45rem;
  }

  .hero.hero--home-banner .hero-meta__row {
    font-size: clamp(0.88rem, 3.6vw, 1.02rem);
    gap: 0.5rem;
  }

  .hero.hero--home-banner .hero-meta__text--emph {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  .hero.hero--home-banner .hero-meta__icon .icon svg {
    width: 1.15em;
    height: 1.15em;
  }

  .hero.hero--home-banner .hero-actions--hero {
    margin-top: 1rem;
  }

  .hero.hero--home-banner .hero-actions--hero .btn-primary,
  .hero.hero--home-banner .hero-actions--hero .btn-ghost {
    font-size: 0.9rem;
    padding: 0.62rem 1.1rem;
  }

  .hero.hero--home-banner .hero-shell {
    gap: 1.35rem;
  }
}

.hero-kicker {
    margin: 0 0 0.8rem;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    color: #ffebab;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw + 0.75rem, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.3rem;
  max-width: none;
  color: #ffb020;
  text-wrap: balance;
  background: linear-gradient(230deg, #ffd54a, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Android WebKit: gradient clipped text can vanish while scrolling */
@media (hover: none) and (pointer: coarse) {
  .hero-title {
    background: none;
    -webkit-text-fill-color: #ffd54a;
    color: #ffd54a;
  }
}

.hero-title__accent {
  color: var(--color-orange);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

@media (min-width: 720px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-meta {
  margin: 0;
}

.hero-meta--rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 45rem;
}

.hero-meta__row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: clamp(1rem, 1.65vw, 1.38rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.hero-meta__icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--color-surface);
  opacity: 0.95;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.hero-meta__icon .icon svg {
  width: 1.35em;
  height: 1.35em;
}

.hero-meta__text {
  flex: 1;
  min-width: 0;
}

.hero-meta__text--emph {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.99);
}

.hero-meta__primary {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-meta__secondary {
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

@media (max-width: 719px) {
  .hero-title {
    white-space: normal;
  }
}

.hero-actions--hero {
  margin-top: 1.35rem;
}

.hero-actions--hero .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  padding: 0.7rem 1.35rem;
}

.hero-actions--hero .btn-ghost {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 0.7rem 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.icon svg {
  width: 1.125em;
  height: 1.125em;
  display: block;
}

.hero-actions .btn .icon svg {
  width: 1.2em;
  height: 1.2em;
}

.icon--trailing {
  margin-inline-start: 0.15em;
}

/* Inline text + icon links: align with surrounding copy (avoid baseline “float”). */
.cta-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  vertical-align: middle;
  line-height: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.cta-inline-link .icon {
  line-height: 1;
  align-self: center;
}

.cta-inline-link .icon svg {
  width: 1.05em;
  height: 1.05em;
}

.cta-inline-link:hover {
  text-decoration: underline;
}

.dash-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  vertical-align: middle;
  line-height: inherit;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.dash-back a .icon {
  line-height: 1;
  align-self: center;
}

.dash-back a .icon svg {
  width: 1.05em;
  height: 1.05em;
}

.dash-back a:hover {
  text-decoration: underline;
}

a.btn:hover,
a.btn:focus-visible {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--color-orange-hover);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

a.btn-primary:visited {
  color: #fff;
}

.btn-primary .icon {
  color: inherit;
}

a.btn-ghost:visited {
  color: #fff;
}

.section {
  padding: 2.85rem 0;
}

.section-head {
  margin-bottom: 1.85rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.6rem;
  color: var(--color-accent);
  border-left: 4px solid var(--color-orange);
  padding-left: 0.85rem;
}

.section-head > p,
.section-head > .section-head__plain {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.section-head > .section-head__lead {
  margin-top: 0.65rem;
}

.section-head .rte-content p:first-child {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: var(--surface-border);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.card:hover {
  border-color: rgba(30, 58, 95, 0.14);
  box-shadow: var(--shadow-card-hover);
}

a.card:hover,
button.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

/* Program page cards — icons aligned with home “program overview” strip */
.program-card {
  text-align: center;
}

.program-card__icon {
  display: flex;
  justify-content: center;
  margin: 0 0 0.75rem;
  color: var(--color-navy);
}

.program-card__icon iconify-icon {
  font-size: 50px;
}

.program-card__icon .icon svg {
  width: 2rem;
  height: 2rem;
}

.program-card h3 {
  margin-top: 0;
}

.program-card .rte-content {
  text-align: center;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.section-head__plain {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Home: Why attend — icon grid (client artwork); one card per row on small phones */
.why-home-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1rem;
}

@media (min-width: 640px) {
  .why-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 800px) {
  .why-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

.why-home-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--color-surface);
  border: var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.why-home-item:hover {
  border-color: rgba(30, 58, 95, 0.14);
  box-shadow: var(--shadow-card-hover);
}

.why-home-item__icon {
  align-self: center;
  margin: 0 auto 0.75rem;
  width: clamp(6.25rem, 15vw, 8.5rem);
  height: clamp(6.25rem, 15vw, 8.5rem);
  max-width: clamp(6.25rem, 15vw, 8.5rem);
  box-sizing: border-box;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: linear-gradient(180deg, rgba(13, 92, 109, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(13, 92, 109, 0.12);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
  line-height: 0;
}

.why-home-item__icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.why-home-item__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.75vw, 1.4rem);
  color: var(--color-accent);
  line-height: 1.35;
  text-align: center;
}

.why-home-item__body {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(13, 92, 109, 0.1);
  font-size: 1.1rem !important;
  line-height: 1.55;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  display: flex;
  text-align: center;
}

/* Home: Hosted at — one white card, seal left + copy right (sharp edge, light shadow) */
.section-organising {
  padding-top: 2.5rem;
}

.organising-panel--hosted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 1.75rem;
  overflow: visible;
  background: var(--color-surface);
  border: var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.organising-panel--hosted:hover {
  border-color: rgba(30, 58, 95, 0.14);
  box-shadow: var(--shadow-card-hover);
}

.organising-panel__brand {
  flex: 0 0 auto;
  width: clamp(5.25rem, 13vw, 7.5rem);
  height: clamp(5.25rem, 13vw, 7.5rem);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: var(--color-surface);
}

.organising-panel__logo {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.organising-panel--hosted .organising-panel__text {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0;
}

.organising-panel--hosted .organising-panel__text h2 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.65rem;
  border-left: 4px solid var(--color-orange);
  padding-left: 0.85rem;
}

.organising-panel--hosted .organising-panel__text .rte-content {
  line-height: 1.6;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.organising-panel--hosted .organising-panel__text .rte-content p {
  margin: 0;
}

.organising-panel--hosted .organising-panel__text .rte-content p + p {
  margin-top: 0.75rem;
}

/* Home: featured speakers — compact circular headshots + “View all” CTA card; one per row on small phones */
.home-speakers-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-speakers-featured {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.25rem), 1fr));
  }
}

@media (min-width: 900px) {
  .home-speakers-featured {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.15rem 1.1rem;
  }
}

/* Fewer featured speakers + CTA: larger headshots and clearer grid */
.section-home-speakers .home-speakers-featured--few {
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.35rem) clamp(0.85rem, 2.5vw, 1.1rem);
  max-width: none;
  margin-inline: 0;
}

@media (min-width: 640px) {
  .section-home-speakers .home-speakers-featured--few {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: clamp(36rem, 92vw, 48rem);
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .section-home-speakers .home-speakers-featured--few {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.15rem, 2.2vw, 1.65rem) clamp(1rem, 1.8vw, 1.35rem);
    max-width: min(90rem, 100%);
  }
}

.section-home-speakers .home-speakers-featured--few .home-speaker-card__media {
  width: clamp(7.5rem, 90vw, 24.5rem);
  margin-inline: auto;
}

.section-home-speakers .home-speakers-featured--few .home-speaker-card__media img {
  width: 100%;
  height: 100%;
}

@media (min-width: 640px) {
  .section-home-speakers .home-speakers-featured--few .home-speaker-card__media {
    width: clamp(8.5rem, 44vw, 22.5rem);
  }
}

@media (min-width: 900px) {
  .section-home-speakers .home-speakers-featured--few .home-speaker-card__media {
    width: clamp(9.5rem, 20vw, 18rem);
  }

  .section-home-speakers .home-speakers-featured--few a.home-speaker-card--cta {
    min-height: clamp(15rem, 22vw, 19rem);
  }
}

/*
 * Home speakers: photo cards in horizontal slider (all faculty).
 */
.home-speakers-carousel {
  --carousel-gap: clamp(0.75rem, 1.5vw, 1.1rem);
  --carousel-slides-visible: 4;
  /* JS sets px width from viewport; cqi is fallback before JS runs */
  --carousel-slide-width: calc(
    (100cqi - (var(--carousel-slides-visible) - 1) * var(--carousel-gap)) / var(--carousel-slides-visible)
  );
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

@media (max-width: 900px) {
  .home-speakers-carousel {
    --carousel-slides-visible: 2;
  }
}

@media (max-width: 520px) {
  .home-speakers-carousel {
    --carousel-slides-visible: 1;
  }
}

.home-speakers-carousel__shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 0 calc(0.5rem + 0.4vw);
}

.home-speakers-carousel__nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  color: var(--color-navy-deep);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.15s ease;
}

.home-speakers-carousel__nav:hover:not(:disabled) {
  background: rgba(234, 88, 12, 0.18);
  color: var(--color-navy-deep);
}

.home-speakers-carousel__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-speakers-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-speakers-carousel__nav .icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.5;
}

.home-speakers-carousel__viewport {
  container-type: inline-size;
  container-name: home-speakers-carousel;
  overflow-x: auto;
  overflow-y: hidden;
  /* No scroll-snap: arrows use JS index steps; snap fights animation */
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.home-speakers-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.home-speakers-carousel__viewport::-webkit-scrollbar-thumb {
  display: none;
}

.home-speakers-carousel__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0 var(--carousel-gap);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  width: max-content;
  box-sizing: border-box;
}

.home-speakers-carousel__slide {
  flex: 0 0 var(--carousel-slide-width);
  display: flex;
  align-items: stretch;
  width: var(--carousel-slide-width);
  max-width: var(--carousel-slide-width);
  min-width: 0;
  box-sizing: border-box;
}

.home-speakers-carousel .home-speakers-carousel__card {
  width: 100%;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.home-speakers-carousel .home-speaker-card__media {
  padding: 0;
  background: var(--color-border);
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  transition: box-shadow 0.2s ease;
}

.home-speakers-carousel .home-speaker-card:hover .home-speaker-card__media {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.home-speakers-carousel .home-speaker-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: none;
}

.home-speakers-carousel .home-speaker-card__body {
  padding: 0.65rem 0.5rem 0;
}

.home-speakers-carousel .home-speaker-card__body h3 {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
}

.home-speakers-carousel__footer {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .home-speakers-carousel__viewport {
    scroll-behavior: auto;
  }
}

.home-speaker-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  text-align: left;
}

.home-speaker-card:hover {
  border: none;
  box-shadow: none;
}

.home-speaker-card__media {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  line-height: 0;
  background: var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  transition: box-shadow 0.2s ease;
}

.home-speaker-card:hover .home-speaker-card__media {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.home-speaker-card__media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  box-shadow: none;
}

@media (min-width: 640px) {
  .home-speaker-card__media img {
    width: 100%;
    height: 100%;
  }
}

.home-speaker-card__body {
  flex: 1 1 auto;
  padding: 0.65rem 0.15rem 0;
}

.home-speaker-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem 0.45rem;
  padding-inline: 0.15rem 0.55rem;
}

.home-speaker-card__body h3 {
  margin: 0;
  font-size: clamp(0.98rem, 2.1vw, 1.3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  flex: 0 1 auto;
  min-width: 0;
}

.speaker-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  transform: translateY(1px);
}

.home-speaker-card .speaker-flag,
.speaker-card__footer .speaker-flag {
  margin-inline-end: 0.4rem;
}

.speaker-flag__img {
  display: block;
  width: 1.5rem;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.speaker-flag--lg .speaker-flag__img {
  width: clamp(1.75rem, 3vw, 2.25rem);
}

.home-speakers-carousel .speaker-flag__img {
  width: 1.35rem;
}

.home-speaker-card__role {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text);
  opacity: 0.88;
  line-height: 1.45;
}

/* Dark CTA tile (last column) */
a.home-speaker-card--cta {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(155deg, var(--color-navy-deep) 0%, #1e3a5f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1rem 1.4rem;
  min-height: 15rem;
}

a.home-speaker-card--cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.22);
}

.home-speaker-card__cta-icon {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}

.home-speaker-card__cta-icon .icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 1.5;
}

.home-speaker-card__cta-lead {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  max-width: 14ch;
}

.home-speaker-card__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

a.home-speaker-card--cta:hover .home-speaker-card__cta-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

a.home-speaker-card--cta:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* Home: welcome teaser (short copy + dialog for full welcome) */
.welcome-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: var(--surface-border);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.welcome-teaser:hover {
  border-color: rgba(30, 58, 95, 0.14);
  box-shadow: var(--shadow-card-hover);
}

.welcome-teaser__icon-wrap {
  flex: 0 0 auto;
  line-height: 0;
}

.welcome-teaser__icon-img {
  width: clamp(4.5rem, 14vw, 7.5rem);
  height: auto;
  display: block;
  object-fit: contain;
}

.welcome-teaser__body {
  flex: 1 1 18rem;
  min-width: 0;
}

.welcome-teaser__kicker {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 1.75vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy-deep);
}

.welcome-teaser__text {
  margin: 0 0 0.65rem;
  color: var(--color-navy-deep);
  font-size: 1rem;
  line-height: 1.55;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  text-align: justify;
}

.btn-welcome-outline {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-navy-deep);
  background: transparent;
  border: 1.5px solid var(--color-navy-deep);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.btn-welcome-outline:hover {
  background: rgba(21, 34, 56, 0.07);
}

/* Home: program overview + important dates (two cards) */
.home-program-dates-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-program-dates-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.home-program-card,
.home-dates-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
}

.home-program-card__title,
.home-dates-card__title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.75vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy-deep);
  margin: 0 0 0.6rem;
}

.home-program-card__subtitle {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 1.25rem !important;
  font-size: clamp(0.9rem, 1.45vw, 1.2rem) !important;
  line-height: 1.5;
}

.home-program-card__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  flex: 1;
  padding: 0.65rem 0 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .home-program-card__cols {
    grid-template-columns: 1fr;
  }

  .home-program-card__col {
    border-right: none !important;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
  }

  .home-program-card__col:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

.home-program-card__col {
  text-align: center;
  padding: 0.8rem 0.4rem;
  border-right: 1px solid var(--color-border);
}

.home-program-card__col:last-child {
  border-right: none;
}

.home-program-card__ic {
  display: flex;
  justify-content: center;
  margin: 0 0 0.65rem;
  color: var(--color-navy);
}

.home-program-card__ic .icon svg {
  width: 28px;
  height: 28px;
}

.home-program-card__date {
  font-weight: 700;
  color: var(--color-navy-deep);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-program-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.home-program-card__actions {
  margin: 1.5rem 0 0 !important;
  text-align: center;
}

.endo-header-text *{
  font-size: clamp(0.9rem, 1.45vw, 1.2rem)
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  background: transparent;
  border: 1.5px solid var(--color-navy);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-outline-navy:hover {
  background: rgba(30, 58, 95, 0.08);
  text-decoration: none;
}

.home-dates-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.home-dates-card__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text);
}

.home-dates-card__ic {
  display: flex;
  align-items: center;
  color: var(--color-navy);
}

.home-dates-card__row--accent .home-dates-card__ic {
  color: var(--color-orange);
}

.home-dates-card__label {
  color: var(--color-muted);
  font-size: clamp(0.97rem, 2.1vw, 1.16rem)
}

.home-dates-card__when {
  font-weight: 600;
  color: var(--color-muted);
  text-align: right;
  font-size: 1rem;
}

.home-dates-card__row--accent .home-dates-card__label,
.home-dates-card__row--accent .home-dates-card__when {
  color: var(--color-orange);
  font-weight: 700;
}

.home-dates-card__actions {
  margin: 1.15rem 0 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .home-dates-card__actions {
    margin-top: 20px !important;
  }
}

/* Home: who should attend — optional intro + horizontal icon row */
.section-who-home .home-who-title {
  margin: 0 0 2rem;
}

/* Title directly above icon grid: restore ~2rem breathing room */
.section-who-home .home-who-title + .home-who-grid {
  margin-top: 1rem;
}

.home-who-intro {
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.55;
  color: var(--color-text);
}

.home-who-intro:last-child {
  margin-bottom: 0;
}

.home-who-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

/* Below ~680px two 50% tracks leave almost no room beside the fixed icon — single column reads better */
@media (max-width: 680px) {
  .home-who-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .home-who-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
  }
}

.home-who-grid__item {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  min-width: 0;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: var(--surface-border);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.home-who-grid__icon {
  flex: 0 0 auto;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #ffffff;
  border: 2px solid rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.home-who-grid__item:hover .home-who-grid__icon {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow:
    0 0 0 1px rgba(30, 58, 95, 0.1),
    0 6px 20px rgba(15, 23, 42, 0.14),
    0 0 24px rgba(234, 88, 12, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: scale(1.03);
}

.home-who-grid__item:hover {
  border-color: rgba(30, 58, 95, 0.14);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.home-who-grid__icon .icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

iconify-icon {
  font-size: 24px;
}

/* Heavier stroke reads more “icon-strong” in small circles */
.icon--strong svg {
  stroke-width: 2.65;
}

.home-who-grid__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem) !important;
  line-height: 1.4;
  color: var(--color-navy-deep);
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 680px) {
  .home-who-grid__icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .home-who-grid__icon .icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  /* Match icon diameter so the first line centers with the circle; extra lines grow naturally */
  .home-who-grid__label {
    display: flex;
    align-items: center;
    min-height: 3.75rem;
  }
}

/* Home: video band — cool teal wash vs warm registration CTA; orange top rule separates sections */
.section-home-video-split {
  color: rgba(255, 255, 255, 0.95);
  border-top: 4px solid var(--color-orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.site-home .site-main > section.section.section-home-video-split {
  padding-top: 0;
  padding-bottom: 0;
}

.home-video-cta {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: stretch;
}

.home-video-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
      122deg,
      rgba(12, 74, 88, 0.94) 0%,
      rgba(21, 34, 56, 0.88) 40%,
      rgba(21, 34, 56, 0.42) 100%
    ),
    var(--home-video-poster);
  background-size: cover;
  background-position: 22% center;
  background-repeat: no-repeat;
}

.home-video-cta__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, rgba(120, 200, 220, 0.12) 0%, transparent 45%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.03) 14px,
      rgba(255, 255, 255, 0.03) 15px
    );
  pointer-events: none;
}

.home-video-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
  align-items: center;
}

@media (min-width: 800px) {
  .home-video-cta__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.95fr);
    gap: 2.5rem;
  }
}

.home-video-cta__inner:not(:has(.home-video-cta__visual)) {
  grid-template-columns: 1fr;
}

.home-video-cta__inner:not(:has(.home-video-cta__visual)) .home-video-cta__copy {
  max-width: 44ch;
}

.home-video-cta__copy {
  max-width: 46ch;
}

.home-video-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.home-video-cta__lead {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.13rem;
  line-height: 1.55;
}

.home-video-cta__btn {
  margin-top: 0.15rem;
  font-size: 1.17rem !important;
}

.home-video-cta__visual {
  position: relative;
  min-height: 12rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-video-cta__poster-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
  background: var(--color-navy-deep);
}

.home-video-cta__poster-img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  display: block;
}

.home-video-cta__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-video-cta__play-ring {
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.home-video-cta__play-tri {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #fff;
  margin-left: 0.25rem;
}

.home-video-cta__poster-btn:hover .home-video-cta__play-ring {
  border-color: #fff;
  transform: scale(1.04);
  transition: transform 0.2s ease;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

a.btn-ghost-light:visited {
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Home: bottom CTA band — warm overlay + horizontal texture (pairs with cool video band above) */
body.site-home .site-main > section.section.section-home-bottom-cta {
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-bottom-cta {
  position: relative;
  min-height: clamp(300px, 42vw, 440px);
  display: flex;
  align-items: stretch;
}

.home-bottom-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
      98deg,
      rgba(21, 34, 56, 0.98) 0%,
      rgba(48, 32, 22, 0.42) 48%,
      rgba(21, 34, 56, 0.52) 100%
    ),
    var(--home-cta-img);
  background-size: cover;
  background-position: 88% center;
  background-repeat: no-repeat;
}

.home-bottom-cta__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 11px,
    rgba(255, 255, 255, 0.035) 11px,
    rgba(255, 255, 255, 0.035) 12px
  );
  pointer-events: none;
}

.home-bottom-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 90% 50%, rgba(234, 88, 12, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.home-bottom-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
  align-items: center;
}

@media (min-width: 800px) {
  .home-bottom-cta__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(12rem, auto);
    gap: 2.5rem;
  }
}

.home-bottom-cta__copy {
  max-width: 44ch;
}

.home-bottom-cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
}

@media (min-width: 880px) {
  .home-bottom-cta__title {
    white-space: nowrap;
  }
}

.home-bottom-cta__body {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.13rem;
  line-height: 1.55;
}

.home-bottom-cta__highlight {
  margin: 0;
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1.15rem;
}

.home-bottom-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.home-dates-card__actions .btn-primary, 
.home-program-card__actions .btn-outline-navy, 
.home-bottom-cta__actions .btn-primary,
.home-video-cta__btn,
.home-bottom-cta__actions .btn-ghost-light {
  font-size: 1.17rem;
}

@media (min-width: 800px) {
  .home-bottom-cta__actions {
    align-items: center;
    justify-content: center;
  }
}

.home-bottom-cta__actions .btn {
  justify-content: center;
  width: 100%;
  max-width: 16rem;
}

.home-bottom-cta__actions .btn .icon {
  flex-shrink: 0;
}

/* Modal dialogs (welcome full text, video embed) */
.site-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(100% - 2rem, 40rem);
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.site-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Prevent background scroll while a public site <dialog> is open (see site-dialogs.js) */
html.site-dialog-scroll-lock {
  overflow: hidden !important;
}

html.site-dialog-scroll-lock body {
  touch-action: none;
  overscroll-behavior: none;
}

.site-dialog__inner {
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
}

.site-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  border-radius: 4px;
}

.site-dialog__close:hover {
  color: var(--color-text);
}

.site-dialog__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.5rem;
  padding-right: 2rem;
}

.site-dialog__body {
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}

/* Refund policy (registration / payment — same content as refund-and-cancellation.php) */
.site-dialog.site-dialog--refund-policy {
  box-sizing: border-box;
  width: min(64rem, calc(100vw - 2rem));
  max-width: min(64rem, calc(100vw - 2rem));
  max-height: min(88dvh, 920px);
  margin: auto;
}

@supports (width: 1svw) {
  .site-dialog.site-dialog--refund-policy {
    width: min(64rem, calc(100svw - 2rem));
    max-width: min(64rem, calc(100svw - 2rem));
  }
}

.site-dialog__inner--refund-policy {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 920px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.site-dialog__body--refund-policy {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-dialog__body--refund-policy .legal-page__title {
  display: none;
}

.site-dialog__body--refund-policy .legal-block:first-child {
  display: none;
}

.site-dialog__body--refund-policy .legal-block + .legal-block {
  margin-top: 0;
}

.site-dialog__title--refund-policy {
  margin: 0;
  padding: 0;
  padding-left: 0.85rem;
  border-left: 4px solid var(--color-orange);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.25;
}

button.reg-refund-policy-open,
button.reg-legal-policy-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

button.reg-refund-policy-open:hover,
button.reg-legal-policy-open:hover {
  color: var(--color-navy-deep);
}

button.reg-refund-policy-open:focus-visible,
button.reg-legal-policy-open:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Terms & conditions (registration — same content as terms-and-condition.php) */
.site-dialog.site-dialog--terms-policy {
  box-sizing: border-box;
  width: min(64rem, calc(100vw - 2rem));
  max-width: min(64rem, calc(100vw - 2rem));
  max-height: min(88dvh, 920px);
  margin: auto;
}

@supports (width: 1svw) {
  .site-dialog.site-dialog--terms-policy {
    width: min(64rem, calc(100svw - 2rem));
    max-width: min(64rem, calc(100svw - 2rem));
  }
}

.site-dialog__inner--terms-policy {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 920px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.site-dialog__body--terms-policy {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Page title block is shown in the dialog header */
.site-dialog__body--terms-policy .container:first-of-type {
  display: none;
}

.site-dialog__title--terms-policy {
  margin: 0;
  padding: 0;
  padding-left: 0.85rem;
  border-left: 4px solid var(--color-orange);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.25;
}

.site-dialog--terms-policy .site-dialog__head .site-dialog__close {
  position: static;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  color: var(--color-navy-deep);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.site-dialog--terms-policy .site-dialog__head .site-dialog__close:hover {
  background: rgba(234, 88, 12, 0.18);
  color: var(--color-navy-deep);
}

/* Welcome message dialog — near full width, refreshed layout */
.site-dialog.site-dialog--welcome {
  box-sizing: border-box;
  /* 100vw includes classic scrollbar gutter and can widen the document on mobile */
  width: min(96rem, calc(100vw - 1rem));
  max-width: min(96rem, calc(100vw - 1rem));
  max-height: min(85dvh, 900px);
  margin: auto;
  border-radius: var(--radius);
}

@supports (width: 1svw) {
  .site-dialog.site-dialog--welcome {
    width: min(96rem, calc(100svw - 1rem));
    max-width: min(96rem, calc(100svw - 1rem));
  }
}

.site-dialog--welcome::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-dialog__inner--welcome {
  display: flex;
  flex-direction: column;
  max-height: min(85dvh, 900px);
  min-height: min(45dvh, 520px);
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.site-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.site-dialog--welcome .site-dialog__head .site-dialog__close,
.site-dialog--refund-policy .site-dialog__head .site-dialog__close {
  position: static;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  color: var(--color-navy-deep);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.site-dialog--welcome .site-dialog__head .site-dialog__close:hover,
.site-dialog--refund-policy .site-dialog__head .site-dialog__close:hover {
  background: rgba(234, 88, 12, 0.18);
  color: var(--color-navy-deep);
}

.site-dialog__title--welcome {
  margin: 0;
  padding: 0;
  padding-left: 0.85rem;
  border-left: 4px solid var(--color-orange);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.site-dialog__body--welcome {
  flex: 1;
  min-height: 0;
  max-height: none;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-dialog__body--welcome.rte-content {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  font-size: 1.0625rem;
  line-height: 1.72;
}

.site-dialog__body--welcome.rte-content p:first-of-type {
  margin-top: 0;
}

.site-dialog--video {
  max-width: min(100% - 1rem, 56rem);
  background: var(--color-navy-deep);
}

.site-dialog__inner--video {
  padding: 0.75rem;
  background: transparent;
}

.site-dialog__inner--video .site-dialog__close {
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.site-dialog__video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.site-dialog__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Speakers profile modal */
.site-dialog.site-dialog--speaker {
  width: min(52rem, calc(100vw - 0.75rem));
  max-width: min(52rem, calc(100vw - 0.75rem));
  max-height: min(92dvh, 52rem);
  margin: auto;
}

@supports (width: 1svw) {
  .site-dialog.site-dialog--speaker {
    width: min(52rem, calc(100svw - 0.75rem));
    max-width: min(52rem, calc(100svw - 0.75rem));
  }
}

.site-dialog--speaker::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-dialog__inner--speaker {
  position: relative;
  box-sizing: border-box;
  /* Top padding clears circular close (same affordance as welcome dialog control) */
  padding: clamp(3rem, 8vw, 3.35rem) clamp(1rem, 4vw, 1.5rem)
    max(1.15rem, calc(0.85rem + env(safe-area-inset-bottom, 0px)));
  max-height: min(92dvh, 52rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Match welcome message: circular close with centered × */
.site-dialog--speaker .site-dialog__close {
  position: absolute;
  top: clamp(0.65rem, 2.5vw, 0.85rem);
  right: clamp(0.65rem, 2.5vw, 0.85rem);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  color: var(--color-navy-deep);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.site-dialog--speaker .site-dialog__close:hover {
  background: rgba(234, 88, 12, 0.18);
  color: var(--color-navy-deep);
}

/* Mobile: photo + name (identity) fixed; role + bio scroll; nav fixed */
.speaker-modal__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 3.25vw, 1.2rem);
  align-items: stretch;
}

@media (min-width: 720px) {
  .speaker-modal__grid {
    display: grid;
    grid-template-columns: min(220px, 30vw) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: stretch;
  }
}

.speaker-modal__photo {
  flex-shrink: 0;
  line-height: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(13, 92, 109, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  background: var(--color-border);
}

@media (min-width: 720px) {
  .speaker-modal__photo {
    align-self: start;
  }
}

.speaker-modal__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
  object-position: top;
  display: block;
}

.speaker-modal__column {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 2.25vw, 0.95rem);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.speaker-modal__identity {
  flex-shrink: 0;
}

.speaker-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.35rem;
}

.speaker-modal__position {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.speaker-modal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.speaker-modal__flag[hidden] {
  display: none !important;
}

.speaker-modal__flag:not([hidden]) {
  display: inline-flex;
}

.speaker-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
}

.speaker-modal__role {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.speaker-modal__body {
  margin: 0;
  padding-bottom: clamp(0.5rem, 2vw, 0.85rem);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Biography column: center embedded images and figures from RTE */
.site-dialog--speaker .speaker-modal__body.rte-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.site-dialog--speaker .speaker-modal__body.rte-content figure {
  margin-inline: auto;
  text-align: center;
  max-width: 100%;
}

.site-dialog--speaker .speaker-modal__body.rte-content figure img {
  margin-inline: auto;
}

.speaker-modal__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: clamp(0.65rem, 2.25vw, 0.9rem);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.speaker-modal__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.speaker-modal__nav-btn .icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Welcome message (home) */
.section-welcome {
  padding-top: 2.5rem;
}

/* Why attend - bullet list */
.why-list {
  margin: 0;
  padding-left: 1.2rem;
  max-width: none;
  list-style: disc;
}

.why-list li {
  margin: 0 0 0.65rem;
  padding-left: 0.2rem;
}

.why-list li:last-child {
  margin-bottom: 0;
}

.welcome-micrograph {
  margin: 1.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--surface-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

/* Intro figure above the “Welcome message” title */
.welcome-micrograph--lead {
  margin: 0 0 1.75rem;
}

.welcome-micrograph img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.welcome-micrograph figcaption {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 0.5rem 0.75rem;
  margin: 0;
}

.welcome-signoff {
  margin: 2rem 0 0;
}

/* Image hover: zoom inside clipped media frame (home speakers + speakers page tiles) */
.committee-card:hover .committee-card__media img,
.welcome-micrograph > img:hover {
  transform: scale(1.06);
}

.home-speaker-card__media img,
.speaker-card--tile .speaker-card__media img,
.why-home-item__icon img,
.welcome-teaser__icon-img,
.home-video-cta__poster-img {
  transition: transform 0.45s ease;
}

.home-speaker-card:hover .home-speaker-card__media img,
.speaker-card--tile:hover .speaker-card__media img,
.why-home-item:hover .why-home-item__icon img,
.welcome-teaser:hover .welcome-teaser__icon-img,
.home-video-cta__poster-btn:hover .home-video-cta__poster-img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce), (hover: none) and (pointer: coarse), (max-width: 899px) {
  .committee-card:hover .committee-card__media > img,
  .welcome-micrograph > img,
  .hero:hover .hero-bg > img,
  .hero--has-slider:hover .hero-slider__slide.is-active img,
  .home-speaker-card:hover .home-speaker-card__media img,
  .speaker-card--tile:hover .speaker-card__media img,
  .why-home-item:hover .why-home-item__icon img,
  .welcome-teaser:hover .welcome-teaser__icon-img,
  .home-video-cta__poster-btn:hover .home-video-cta__poster-img {
    transform: none !important;
  }
}

.prose {
  max-width: 65ch;
}

.prose.welcome-prose {
  max-width: none;
}

.prose p {
  margin: 0 0 1.15rem;
  line-height: 1.68;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Why attend list: allow full column width (overrides .prose max-width on ul) */
.why-list.prose {
  max-width: none;
}

.date-list {
  display: grid;
  gap: 0.75rem;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: var(--surface-border);
  border-left: 3px solid var(--color-orange);
  box-shadow: var(--shadow-card);
}

.date-row strong {
  color: var(--color-accent);
}

/* Speakers page: extra air below intro before the grid (all viewports) */
.section-speakers .section-head {
  margin-bottom: clamp(2.5rem, 6.75vw, 3.75rem);
}

.section-speakers .speaker-grid {
  --speaker-col-gap: clamp(1rem, 3.5vw, 1.75rem);
  padding-top: clamp(2.1rem, 5.25vw, 3.35rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2rem) var(--speaker-col-gap);
  padding-bottom: 0.5rem;
  align-items: stretch;
}

/* Tile cards: photo + name/flag; full profile in modal */
button.speaker-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

button.speaker-card:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.speaker-card--tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.speaker-card--tile:hover {
  border: none;
  box-shadow: none;
}

.section-speakers .speaker-grid .speaker-card--tile {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(22rem, 100%);
}

/* Exactly four equal columns when the row fits; last row (e.g. 3) stays centered via justify-content */
@media (min-width: 900px) {
  .section-speakers .speaker-grid .speaker-card--tile {
    width: min(24rem, calc((100% - 3 * var(--speaker-col-gap)) / 4));
  }
}

/* Photo + soft shadow; no outer card frame */
.speaker-card--tile .speaker-card__media {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  z-index: 1;
  background: var(--color-border);
  transition: box-shadow 0.2s ease;
}

.speaker-card--tile:hover .speaker-card__media {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

@media (min-width: 1040px) {
  .speaker-card--tile .speaker-card__media {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--radius);
  }
}

.speaker-card--tile .speaker-card__media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  box-shadow: none;
}

.speaker-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  padding: clamp(0.75rem, 2.2vw, 0.9rem) 0.5rem 0;
  text-align: center;
}

.speaker-card--tile .speaker-card__footer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.5rem;
}

.speaker-card--tile .speaker-card__name {
  grid-column: 1 / -1;
  justify-self: center;
}

.speaker-card--tile .speaker-card__footer:has(.speaker-flag) .speaker-card__name {
  grid-column: 1;
  justify-self: end;
}

.speaker-card--tile .speaker-card__footer .speaker-flag {
  grid-column: 2;
  justify-self: start;
}

/* Hint on its own row, content-width, centered (parent button has aria-label) */
.speaker-card--tile .speaker-card__bio-hint.btn-outline-navy {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  pointer-events: none;
  font-size: 0.78rem;
  padding: 0.5rem 1.1rem;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.speaker-card--tile .speaker-card__bio-hint .speaker-card__bio-hint-icon.icon svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.speaker-card--tile:hover .speaker-card__bio-hint.btn-outline-navy {
  background: rgba(30, 58, 95, 0.08);
}

.speaker-card__name {
  font-size: clamp(0.98rem, 2.1vw, 1.3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .speaker-card__name {
    font-size: clamp(1.3rem, 2.2vw, 1.08rem);
  }
}

/* Legacy article layout (if reused elsewhere) */
.speaker-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  padding: 0 0.15rem;
  text-align: left;
}

.speaker-body h3 {
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  color: var(--color-text);
}

.speaker-role {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.speaker-bio {
  font-size: 0.92rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.58;
}

.committee-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .committee-grid.committee-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .committee-grid.committee-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1.25rem;
  }
}

.committee-grid.committee-grid--4 {
  margin-top: 1.25rem;
}

.committee-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.committee-card:hover {
  transform: translateY(-2px);
}

.committee-card__media {
  width: 100%;
  max-width: 210px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent-soft);
  aspect-ratio: 1;
  line-height: 0;
}

.committee-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.committee-card .role {
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.committee-card .name {
  font-weight: 600;
  margin: 0;
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
}

.committee-extras__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

.committee-extras__intro {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 65ch;
}

.committee-table-wrap {
  margin-top: 0.15rem;
}

table.committee-roles {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 1.125rem;
}

table.committee-roles thead th {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

table.committee-roles tbody th[scope="row"] {
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  width: 32%;
  min-width: 9.5rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

table.committee-roles tbody td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
  line-height: 1.5;
  font-size: 1.15rem;
}

table.committee-roles tbody tr:last-child th,
table.committee-roles tbody tr:last-child td {
  border-bottom: none;
}

.committee-roles__member-list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  display: grid;
  gap: 0.4rem;
  line-height: 1.45;
}

@media (min-width: 700px) {
  .committee-roles__member-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem;
  }
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

table.fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
  /* Same column widths across every .fees table on the page (registration). */
  table-layout: fixed;
}

table.fees th,
table.fees td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: break-word;
}

/* Four-column fee grids: category + three price windows — identical widths in each table */
table.fees th:nth-child(1),
table.fees td:nth-child(1) {
  width: 36%;
}

table.fees th:nth-child(2),
table.fees td:nth-child(2),
table.fees th:nth-child(3),
table.fees td:nth-child(3),
table.fees th:nth-child(4),
table.fees td:nth-child(4) {
  width: 21.333%;
}

table.fees th {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

table.fees tr:last-child td {
  border-bottom: none;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid rgba(234, 88, 12, 0.28);
  border-radius: var(--radius);
  font-size: 1.2rem !important;
  box-shadow: 0 2px 14px rgba(234, 88, 12, 0.08);
}

.note-box strong {
  color: var(--color-navy);
}

.note-box p {
  text-align: justify;
}

/* Contact: details + map side by side (stacked on narrow viewports) */
.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  min-width: 0;
}

.contact-card {
  min-width: 0;
}

.contact-details {
  margin: 0;
}

.contact-details dt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0 0.35rem;
}

.contact-details dt .icon {
  flex-shrink: 0;
  color: var(--color-navy);
}

.contact-details dt .icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0;
  line-height: 1.5;
}

.contact-details__phones {
  line-height: 1.6;
}

.contact-details__sep {
  color: var(--color-muted);
}

@media (min-width: 800px) {
  .contact-layout:not(.contact-layout--single) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.contact-media {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--surface-border);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  min-height: 280px;
}

@media (min-width: 800px) {
  .contact-media {
    margin-top: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
  }
}

.contact-media__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 800px) {
  .contact-media__img {
    flex: 1 1 auto;
    min-height: 320px;
    height: 100%;
  }
}

/* Floating actions: WhatsApp (optional) + back to top */
.site-floating-actions {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.site-whatsapp-chat {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  text-decoration: none;
}

.site-whatsapp-chat:hover {
  transform: translateY(-2px);
  background: #1ebe57;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
  color: #fff;
}

.site-whatsapp-chat:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.site-whatsapp-chat .icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

/* Back to top — navy disc, orange ring, matches public site palette */
.site-floating-actions .scroll-to-top {
  position: static;
  right: auto;
  bottom: auto;
}

.scroll-to-top {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 2px solid rgba(234, 88, 12, 0.95);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* Our flex layout overrides the UA [hidden] rule — force hide when not scrolled */
.scroll-to-top[hidden] {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.4);
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.scroll-to-top .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top .icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.5;
}

/* Legal pages: single reveal wrapper for long copy */
.legal-page__reveal {
  min-width: 0;
}

.site-footer {
  flex: 0 0 auto;
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 0;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  --footer-link: #9ec5e8;
  --footer-link-hover: #c8dff5;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.site-footer-inner {
  min-width: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.footer-muted {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1vw, 1.08rem);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.site-footer a,
.site-footer a:visited {
  color: var(--footer-link);
}

.site-footer a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
  text-decoration-color: rgba(206, 239, 247, 0.65);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--footer-link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.5rem;
  font-size: clamp(0.95rem, 0.95vw, 1rem);
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal-title {
  display: block;
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  font-size: clamp(1rem, 1vw, 1.08rem);
  font-weight: inherit;
  color: rgba(255, 255, 255, 0.95);
}

.footer-legal-links {
  margin-top: 0;
  line-height: 1.65;
  font-size: clamp(1rem, 1vw, 1.08rem);
}

.footer-legal-links a {
  display: inline;
}

/* Legal pages use .wrap only — do not set width here or it overrides .wrap's content-max */

.legal-page .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 1.25rem;
}

.legal-page h1.menu-color-all,
.legal-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--color-accent);
  text-align: left;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.legal-page h1.menu-color-all svg {
  vertical-align: -0.15em;
  margin-right: 0.35rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 1.65rem 0 0.65rem;
  color: var(--color-accent);
}

.legal-page h3,
.legal-page h4 {
  margin: 1.15rem 0 0.45rem;
  color: var(--color-text);
  font-size: 1.05rem;
}

.legal-page .text-purple {
  color: var(--color-accent) !important;
}

.legal-page .lead {
  font-size: 1rem;
  color: var(--color-muted);
}

.legal-page .legal-lead {
  margin-bottom: 0.85rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-page .m-3 {
  margin: 0 !important;
}

.legal-page .mt-3 {
  margin-top: 0.75rem !important;
}

.legal-refund-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-refund-list li {
  margin-bottom: 0.85rem;
}

.legal-block--prose p {
  margin: 0 0 0.85rem;
}

.legal-block--prose p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .brand {
    flex-shrink: 0;
  }

  .site-nav {
    flex: 1 0 100%;
    max-width: 100%;
    display: none;
    order: 3;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__primary,
  .site-nav__account {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav__primary {
    padding-top: 0.25rem;
  }
}

/* Account: sign up / sign in / dashboard */
.auth-page.section {
  padding-bottom: 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.auth-shell--narrow {
  max-width: 440px;
}

/* Sign-up: full .wrap width so the card aligns with header brand + footer grid */
.auth-shell--align-wrap {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

/* Conference branding beside auth forms (login / admin / sign-up) */
.auth-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-top: 0.65rem;
  align-items: center;
}

.auth-split__main {
  min-width: 0;
}

/* Narrow auth (login / admin-login): vertically center the card beside the logo column */
.auth-split:has(.auth-shell--narrow) .auth-split__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  min-height: 0;
}

.auth-aside {
  min-width: 0;
}

.auth-aside__figure {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: linear-gradient(165deg, var(--color-accent-soft) 0%, var(--color-surface) 52%);
  border: var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.auth-aside__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, 26rem);
  margin-inline: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

/* Login + admin: borderless brand column, stretch to form height, larger logo */
.auth-split:has(.auth-shell--narrow) {
  align-items: stretch;
}

.auth-split:has(.auth-shell--narrow) .auth-aside {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.auth-split:has(.auth-shell--narrow) .auth-aside__figure {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.auth-split:has(.auth-shell--narrow) .auth-aside__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin-inline: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

@media (max-width: 899px) {
  .auth-split .auth-aside__img {
    max-width: min(18rem, 88vw);
  }

  .auth-split:has(.auth-shell--narrow) .auth-aside__img {
    max-height: none;
    width: 100%;
    max-width: min(22rem, 100%);
  }
}

@media (min-width: 900px) {
  .auth-split {
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.1fr);
  }

  .auth-split:has(.auth-shell--narrow) {
    grid-template-columns: minmax(300px, 1.28fr) minmax(280px, 1fr);
  }

  .auth-aside__img {
    max-width: 100%;
  }
}

.auth-split .auth-shell {
  margin-inline: 0;
  width: 100%;
}

.auth-split .auth-shell--narrow {
  max-width: 440px;
}

.auth-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.auth-card--signup,
.auth-card--dashboard {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.auth-card--standalone {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.auth-form-sections {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .auth-form-sections--dashboard {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 1.75rem;
  }

  .auth-form--signup .auth-form-sections {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.75rem;
  }
}

.auth-section {
  background: linear-gradient(165deg, var(--color-accent-soft) 0%, var(--color-surface) 42%);
  border: var(--surface-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.auth-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(220, 227, 234, 0.85);
}

.auth-section__step {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-accent);
  color: #fff;
  line-height: 1;
}

.auth-section__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-accent);
  line-height: 1.25;
}

.auth-section__intro {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.auth-form .req {
  color: var(--color-accent);
  font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-form input:hover,
.auth-form select:hover {
  border-color: #c5d0dc;
}

.auth-form input:focus-visible,
.auth-form select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 109, 0.18);
}

.auth-form input::placeholder {
  color: #9aa8b8;
}

.input-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b7f' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.input-readonly {
  background: var(--color-bg) !important;
  color: var(--color-muted);
  cursor: not-allowed;
  box-shadow: none !important;
}

.form-row {
  margin-bottom: 1.05rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row--narrow {
  max-width: 14rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row-grid {
    grid-template-columns: 1fr;
  }
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.form-fieldset {
  margin: 0 0 0.25rem;
  padding: 0;
  border: none;
}

.form-fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  padding: 0;
}

.form-fieldset--gender {
  margin-top: 0.35rem;
}

.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-pill {
  margin: 0;
  cursor: pointer;
  position: relative;
}

.radio-pill span {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.radio-pill input:checked + span {
  border-color: var(--color-accent);
  background: rgba(13, 92, 109, 0.1);
  color: var(--color-accent);
  font-weight: 600;
}

.radio-pill:hover span {
  border-color: #b9c5d1;
}

.verification-panel {
  margin-top: 0.5rem;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 10px;
  border: 1px dashed rgba(13, 92, 109, 0.35);
  background: rgba(255, 255, 255, 0.65);
}

.verification-panel__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.verification-panel__hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.verification-code-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1rem 0 1rem;
  padding: 0.65rem 0.5rem;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  user-select: all;
}

.verification-code-display__char {
  min-width: 2.35rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(13, 92, 109, 0.08);
}

.form-row--verification {
  margin-bottom: 0;
}

.form-row--verification input {
  text-align: center;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.form-actions {
  margin-top: 1.35rem;
}

/* Login / admin-login: breathing room between primary button and divider + secondary link */
.auth-card--standalone .form-actions:not(.form-actions--dashboard) {
  margin-bottom: 0.35rem;
}

.form-actions--signup {
  margin-top: 1.5rem;
}

.form-actions--dashboard {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.35rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* Primary actions in dashboard forms: avoid full-width buttons */
.form-actions--start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.btn-solid {
  background: var(--color-cta);
  color: #fff !important;
  border-color: var(--color-orange-hover);
  box-shadow: 0 2px 14px rgba(234, 88, 12, 0.28);
}

.btn-solid--wide {
  width: 100%;
  min-height: 2.85rem;
  font-size: 1rem;
}

.btn-solid:hover {
  transform: translateY(-1px);
  background: var(--color-orange-hover);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.38);
  text-decoration: none;
}

a.btn-solid:visited {
  color: #fff !important;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0;
  row-gap: 0.25rem;
  margin: 2rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-error {
  background: #fdecef;
  border: 1px solid #f5c2cb;
  color: #842029;
}

.alert-success {
  background: #e8f5ef;
  border: 1px solid #b8e0c8;
  color: #0f5132;
}

.alert-list {
  margin: 0;
  padding-left: 1.15rem;
}

.alert-list li {
  margin-bottom: 0.25rem;
}

.reg-wizard__form {
  position: relative;
}

/* Honeypot — hidden from sighted users; leave empty */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.auth-form--signup {
  position: relative;
}

/* Dashboard layout (sidebar + main) */
.dash-app-section {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, #f8faff 0%, var(--color-bg) 40%, transparent 100%);
}

/* Dashboard CTAs: navy accent (public site keeps orange .btn-solid / .btn-primary) */
.dash-app-section .btn-solid:not(.btn-solid--ghost):not(.btn-solid--danger) {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.2);
}

.dash-app-section .btn-solid:not(.btn-solid--ghost):not(.btn-solid--danger):hover {
  background: var(--color-navy-deep) !important;
  border-color: var(--color-navy-deep);
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.26);
  transform: translateY(-1px);
  text-decoration: none;
}

.dash-app-section a.btn-solid:not(.btn-solid--ghost):not(.btn-solid--danger):visited {
  color: #fff !important;
}

.dash-app-section .dash-app__topbar {
  border-image: linear-gradient(90deg, var(--color-navy) 0%, var(--color-navy-deep) 100%) 1;
}

.dash-app-section .reg-wizard__tab.is-active {
  border-bottom-color: var(--color-accent);
}

/* Three DOM children (sidebar, backdrop, main): avoid putting them on a 2-column grid
   without placement — auto-flow would park main under the sidebar in column 1. */
.dash-app {
  display: block;
  position: relative;
}

.dash-sidebar {
  background: var(--color-surface);
  border: var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1rem 0.85rem;
  margin-bottom: 1rem;
  color: #1a2332;
  color: var(--color-text);
  isolation: isolate;
}

@media (min-width: 901px) {
  .dash-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 1.75rem;
    align-items: start;
  }

  /* Backdrop is mobile-only; keep it out of the grid on large screens */
  .dash-app__backdrop {
    display: none !important;
  }

  .dash-sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 1rem;
    margin-bottom: 0;
    align-self: start;
    z-index: 2;
  }

  .dash-app__main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .dash-app__main {
    width: 100%;
    min-width: 0;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    z-index: 200;
    margin: 0;
    border-radius: 0 12px 12px 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .dash-sidebar.is-open {
    transform: translateX(0);
  }

  .dash-app__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 199;
  }

  .dash-app__backdrop.is-visible {
    display: block;
  }

  body.dash-sidebar-open {
    overflow: hidden;
  }
}

.dash-sidebar__brand {
  padding: 0 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.dash-sidebar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent);
}

.dash-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-sidebar__rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.5rem 0.35rem;
}

/* Nav links: spell out :link/:visited/:hover colors so labels never inherit invisible tones (e.g. visited quirks, overlaps). */
.dash-sidebar__nav a.dash-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: #1a2332;
  color: var(--color-text);
  opacity: 1;
}

.dash-sidebar__nav a.dash-sidebar__link .icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dash-sidebar__nav a.dash-sidebar__link:visited {
  color: #1a2332;
  color: var(--color-text);
}

.dash-sidebar__nav a.dash-sidebar__link:hover {
  color: #1a2332;
  color: var(--color-text);
  background: var(--color-accent-soft);
  text-decoration: none;
}

.dash-sidebar__nav a.dash-sidebar__link:focus-visible {
  color: #1a2332;
  color: var(--color-text);
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--current,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--current:visited {
  background: #0d5c6d;
  background: var(--color-accent);
  color: #fff;
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--current:hover,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--current:focus-visible {
  background: #0d5c6d;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--muted,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--muted:visited {
  color: #5c6b7f;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--muted:hover,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--muted:focus-visible {
  color: #5c6b7f;
  color: var(--color-muted);
  background: var(--color-accent-soft);
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--ghost,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--ghost:visited {
  color: #0d5c6d;
  color: var(--color-accent);
}

.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--ghost:hover,
.dash-sidebar__nav a.dash-sidebar__link.dash-sidebar__link--ghost:focus-visible {
  color: #0d5c6d;
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.dash-app__main {
  min-width: 0;
}

.dash-app__topbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.75rem;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-orange) 0%, var(--color-navy) 100%) 1;
}

@media (min-width: 901px) {
  .dash-sidebar-toggle {
    display: none;
  }
}

.dash-sidebar-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.dash-sidebar-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.dash-app__topmeta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dash-app__name {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-app__email {
  font-size: 0.82rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-app__role {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Use the full width of the main column; site .wrap limits to --content-max and .auth-shell caps forms at 920px. */
.dash-app__body.wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: 0.35rem;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

.dash-app__body .auth-shell {
  max-width: none;
  margin-inline: 0;
}

.dash-app__body .section-head {
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.admin-table th {
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

.admin-table__actions-col {
  width: auto;
  min-width: 6.5rem;
  white-space: normal;
  text-align: left;
}

.admin-table-delete-form {
  display: inline-block;
  margin: 0;
}

.admin-table-delete-form .btn-solid--compact {
  min-width: auto;
  padding: 0.35rem 0.45rem;
  font-size: 0.8125rem;
}

.admin-table code {
  font-size: 0.95rem;
}

.admin-reg-prefs-cell {
  min-width: 11rem;
  max-width: 20rem;
}

.admin-reg-prefs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text);
}

.admin-reg-prefs li + li {
  margin-top: 0.15rem;
}

/* Admin users table — stacked cells */
.admin-users-card {
  padding: 1.25rem 1.35rem !important;
}

.admin-users-all-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin: 2rem 0 1rem;
}

.admin-review-queues {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.admin-review-queue {
  padding: 1.25rem 1.35rem !important;
}

.admin-review-queue--secondary {
  border-color: var(--color-border);
}

.admin-review-queue__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.admin-review-queue__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-accent);
}

.admin-review-queue__intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 52rem;
}

.admin-review-queue__table-wrap {
  margin-top: 0.25rem;
}

.admin-review-queue__table {
  font-size: 0.9375rem;
}

.admin-users-row--needs-attention {
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
}

.admin-users-row--needs-attention:hover {
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
}

.admin-users-table {
  font-size: 0.9375rem;
  table-layout: auto;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  min-width: 15rem;
  max-width: 20rem;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  min-width: 11rem;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  min-width: 9.5rem;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  min-width: 14rem;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  min-width: 11rem;
}

.admin-users-stack--delegate .admin-users-stack__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-users-stack__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-users-stack__identity > * {
  display: block;
  margin: 0;
}

.admin-users-stack__identity > * + * {
  margin-top: 0.28rem;
}

.admin-users-stack__delete {
  flex-shrink: 0;
  margin: 0;
}

.dash-registration-paid {
  margin-bottom: 2.5rem;
}

.dash-registration-paid__prefs {
  margin: 0.5rem 0 0.35rem;
  padding-left: 1.15rem;
  font-size: 0.95rem;
}

.dash-registration-paid__prefs li + li {
  margin-top: 0.2rem;
}

.admin-users-stack--payment {
  min-width: 13rem;
}

.admin-payment-review__amount {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.admin-payment-review__amount .field-hint {
  display: inline;
  margin-left: 0.25rem;
}

.admin-users-stack__amount {
  display: block;
  font-size: 0.95rem;
}

.admin-payment-review {
  margin: 0;
  padding-top: 0.15rem;
}

.admin-payment-review__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-payment-review__buttons .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
}

.admin-payment-review__note {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.admin-payment-review .admin-form-busy-status,
.admin-table-delete-form .admin-form-busy-status {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  color: var(--color-text);
}

.admin-payment-review .admin-form-busy-status.field-hint--loading,
.admin-table-delete-form .admin-form-busy-status.field-hint--loading {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
}

.admin-users-stack__admin-note {
  color: #842029;
}

/* Block stack inside cells — do not use flex on <td> (breaks table layout) */
.admin-users-stack {
  line-height: 1.45;
  vertical-align: top;
}

.admin-users-stack > * {
  display: block;
  margin: 0;
}

.admin-users-stack > * + * {
  margin-top: 0.3rem;
}

.admin-users-stack .dash-badge {
  display: inline-block;
  width: fit-content;
}

.admin-users-stack .admin-users-link {
  display: inline-flex;
}

.admin-users-stack__ref {
  font-size: 0.8125rem;
}

.admin-users-stack__name {
  font-weight: 600;
  color: var(--color-text);
}

.admin-users-stack__email {
  font-size: 0.875rem;
  word-break: break-word;
}

.admin-users-stack__meta {
  font-size: 0.8rem;
}

.admin-users-stack__txn {
  font-size: 0.8125rem;
  word-break: break-all;
}

.admin-users-stack__clip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 16rem;
}

.admin-users-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.admin-users-link:hover {
  text-decoration: underline;
}

.admin-users-link .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.btn-solid--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.45rem;
  line-height: 1;
}

.btn-solid--icon .icon {
  margin: 0;
  width: 1rem;
  height: 1rem;
}

.admin-table-delete-form .btn-solid--compact {
  min-width: auto;
  padding: 0.35rem 0.45rem;
  font-size: 0.8125rem;
}

/* DataTables (admin users / orders / presentations) */
.admin-dt-outer .dt-container {
  margin-top: 0.35rem;
  font-size: 1.0625rem;
  color: var(--color-text);
}

.admin-dt-outer .dt-layout-row {
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.admin-dt-outer .dt-buttons .dt-button {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-dt-outer .dt-buttons .dt-button:hover {
  background: var(--color-surface-muted, #f4f6f8);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.admin-dt-outer .dt-buttons .dt-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.admin-dt-outer .dt-search .dt-input {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 1.0625rem;
  background: var(--color-surface);
  color: var(--color-text);
  margin-left: 0.35rem;
}

.admin-dt-outer .dt-length select {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  margin-left: 0.35rem;
}

.admin-dt-outer .dt-info {
  padding-top: 0.5rem;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

.admin-dt-outer .dt-paging {
  padding-top: 0.5rem;
}

.admin-dt-outer table.dataTable thead th {
  font-weight: 600;
  color: var(--color-accent);
}

.admin-dt-outer table.dataTable tbody td {
  border-bottom-color: var(--color-border);
}

.admin-dt-outer table.dataTable > thead > tr > th,
.admin-dt-outer table.dataTable > tbody > tr > td {
  box-sizing: border-box;
}

/* Dashboard hub */
.dash-hub .section-head {
  margin-bottom: 1.25rem;
}

.dash-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.dash-subnav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--color-accent);
  border: var(--surface-border);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dash-subnav__link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  text-decoration: none;
}

.dash-subnav__link[aria-current="page"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.dash-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem !important;
  min-height: 100%;
}

.dash-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-accent);
}

.dash-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.dash-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.dash-card__cta {
  margin-top: 0.35rem;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

/* Equal-height grid cards use column flex; keep dashboard CTAs button-sized, not stretched */
.dash-card > a.btn.dash-card__cta {
  justify-content: center;
}

/* Presentation upload */
.dash-file-field__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.dash-file-upload {
  position: relative;
}

.dash-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-file-upload__input:focus {
  outline: none;
}

.dash-file-upload:focus-within .dash-file-upload__zone {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 109, 0.2);
}

.dash-file-upload__zone {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-accent-soft) 0%, var(--color-surface) 55%);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.dash-file-upload__zone:hover {
  border-color: rgba(13, 92, 109, 0.45);
  background: var(--color-accent-soft);
}

.dash-file-upload__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(13, 92, 109, 0.08);
}

.dash-file-upload__icon svg {
  display: block;
}

.dash-file-upload__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.dash-file-upload__cta-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
}

.dash-file-upload__filename {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* Presentation upload: submit feedback (matches registration OTP spinner) */
.dash-presentation-upload-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.45;
}

.dash-presentation-upload-status.field-hint--loading {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.dash-file-upload__filename.dash-file-upload__filename--picked {
  color: var(--color-text);
  font-weight: 600;
}

.dash-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.dash-badge--ok {
  background: #d1e7dd;
  color: #0f5132;
}

.dash-badge--pending {
  background: #fff3cd;
  color: #664d03;
}

.dash-badge--no {
  background: #f8d7da;
  color: #842029;
}

.dash-badge--muted {
  background: var(--color-bg);
  color: var(--color-muted);
}

.dash-badge--rework {
  background: #fff3e0;
  color: #b45309;
}

.dash-overview-workflow {
  margin-bottom: 1.5rem;
}

.dash-overview-workflow__line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* Abstract page: lighter hints instead of stacked alerts */
.dash-abstract-inline-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid var(--color-border);
}

.dash-abstract-inline-hint--locked {
  background: var(--color-bg);
  color: var(--color-muted);
}

.dash-abstract-inline-hint--action {
  background: var(--color-accent-soft);
  border-color: rgba(13, 92, 109, 0.22);
  color: var(--color-text);
}

/* Abstract page: form + workflow side by side (wide screens) */
.dash-abstract-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 1040px) {
  .dash-abstract-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
  }

  .dash-abstract-layout__workflow {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.2rem;
  }
}

.dash-abstract-layout__form {
  min-width: 0;
}

.dash-abstract-layout__card {
  height: fit-content;
}

.dash-abstract-layout__workflow {
  min-width: 0;
}

.dash-abstract-layout__workflow .abstract-flow {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
}

@media (max-width: 1039px) {
  .dash-abstract-layout__workflow .abstract-flow {
    margin-top: 0.5rem;
  }
}

/* Abstract workflow: box “flowchart” + prose */
.abstract-flow {
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
  padding: 1.35rem clamp(1rem, 3vw, 1.5rem) 1.45rem;
  background: var(--color-surface);
  border: var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.abstract-flow__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
  color: var(--color-accent);
  text-align: center;
}

.abstract-flow__diagram {
  width: 100%;
}

.abstract-flow__chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.abstract-flow__column--trunk {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 20rem;
}

.abstract-flow__fanout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 40rem;
  margin: 0.85rem auto 0;
  align-items: stretch;
}

@media (min-width: 720px) {
  .abstract-flow__fanout {
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 0.75rem 0.65rem;
  }
}

.abstract-flow__arm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.abstract-flow__arm--path {
  align-items: center;
}

.abstract-flow__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.85rem 1rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--surface-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.abstract-flow__box-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}

.abstract-flow__box-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.abstract-flow__box-text {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}

.abstract-flow__box--pending {
  border-color: rgba(102, 77, 3, 0.45);
  background: linear-gradient(165deg, #fffbeb 0%, #fff3cd 100%);
}

.abstract-flow__box--ok {
  border-color: rgba(15, 81, 50, 0.42);
  background: linear-gradient(165deg, #d1e7dd 0%, #b8d4c4 100%);
}

.abstract-flow__box--rework {
  border-color: rgba(180, 83, 9, 0.5);
  background: linear-gradient(165deg, #fff3e0 0%, #ffe0b2 100%);
}

.abstract-flow__box--action {
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(13, 92, 109, 0.55);
  background: var(--color-accent-soft);
}

.abstract-flow__box--no {
  border-color: rgba(132, 32, 41, 0.45);
  background: linear-gradient(165deg, #f8d7da 0%, #f1c0c7 100%);
}

.abstract-flow__gate {
  margin: 0.35rem 0 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(13, 92, 109, 0.25);
}

.abstract-flow__gate-text {
  display: block;
}

.abstract-flow__connector {
  width: 3px;
  height: 1rem;
  margin: 0.1rem auto;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--color-accent), rgba(13, 92, 109, 0.25));
  border-radius: 2px;
}

.abstract-flow__arm--path .abstract-flow__connector {
  height: 0.85rem;
}

.abstract-flow__prose {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.abstract-flow__prose p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
}

.dash-back {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

/* “← Overview” under forms/tables: separate from primary CTAs above */
.dash-app__body .dash-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.input-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 14rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  resize: vertical;
}

.input-textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 109, 0.18);
}

.abstract-body.prose {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.dash-status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--color-accent-soft);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.dash-status-banner__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.dash-payments-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .dash-payments-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.dash-pay-card .dash-pay-amounts {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--color-text);
}

.dash-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.dash-orders-table th,
.dash-orders-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.dash-orders-table th {
  font-weight: 600;
  color: var(--color-accent);
}

.btn-solid--inline {
  width: auto;
  min-height: 2.5rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.btn-solid--ghost {
  background: transparent !important;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
  box-shadow: none;
}

.btn-solid--ghost:hover {
  background: var(--color-accent-soft) !important;
}

a.btn-solid--ghost:visited {
  color: var(--color-accent) !important;
}

/* Navy primary (registration wizard: Next, Verify OTP) */
.btn-solid--accent {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.22);
}

.btn-solid--accent:hover {
  background: var(--color-navy-deep) !important;
  border-color: var(--color-navy-deep);
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.28);
  text-decoration: none;
}

.btn-solid--accent:disabled {
  background: #b7bcc5 !important;
  border-color: #b7bcc5 !important;
  color: #f5f5f5 !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

a.btn-solid--accent:visited {
  color: #fff !important;
}

.btn-solid--danger {
  background: #9b2335 !important;
  border-color: #9b2335 !important;
  box-shadow: 0 2px 12px rgba(155, 35, 53, 0.25);
}

.btn-solid--danger:hover {
  box-shadow: 0 4px 18px rgba(155, 35, 53, 0.35);
}

.admin-toolbar {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-abstracts-empty {
  padding: 1.25rem 1.35rem !important;
}

.admin-abstracts-toolbar {
  padding: 1rem 1.25rem !important;
  margin-bottom: 1.25rem;
}

.admin-abstracts-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}

.admin-abstracts-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 14rem);
  flex: 1 1 12rem;
}

/* Fixed-width column so the select matches the search row height and doesn’t stretch full width */
.admin-abstracts-toolbar__field--per-page {
  flex: 0 0 auto;
  min-width: unset;
  width: 7.25rem;
}

.admin-abstracts-toolbar__label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.admin-abstracts-toolbar__input {
  width: 100%;
  max-width: 28rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font: inherit;
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.admin-abstracts-toolbar__select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.45rem 2.25rem 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font: inherit;
  font-size: 0.95rem;
  background-color: var(--color-surface);
  color: var(--color-text);
}

.admin-abstracts-toolbar__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-left: auto;
}

.admin-abstracts-toolbar__info {
  font-size: 0.88rem;
  color: var(--color-muted);
  min-width: 10rem;
  text-align: center;
}

/* Admin abstracts: one column on small screens, two columns max (wider cards to read the body) */
.admin-abstracts-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .admin-abstracts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-abstract-item {
  margin: 0;
}

.admin-abstract-item.card.auth-card {
  padding: 1rem 1rem !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

/* Ensure filtered/hidden cards stay out of the grid (display:flex on the card beats [hidden] in some browsers) */
.admin-abstract-item.card.auth-card[hidden] {
  display: none !important;
}

.admin-abstract-item__status {
  margin: -0.15rem 0 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-abstract-item__status .dash-badge {
  vertical-align: middle;
}

.admin-abstract-item__head {
  display: block;
  margin: 0;
}

.admin-abstract-item__delegate {
  margin-top: 0.35rem;
  margin-bottom: 0;
  word-break: break-word;
}

.admin-abstract-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.admin-abstract-item.card h3.admin-abstract-item__title {
  color: var(--color-text);
}

.admin-abstract-item > .field-hint {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-abstract-snippet {
  flex: 1 1 auto;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0.55rem 0;
  padding: 0.65rem 0.75rem;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-abstract-actions {
  margin-top: auto;
  padding-top: 0.65rem;
}

.admin-note-label {
  display: block;
  margin-bottom: 0.65rem;
}

.admin-note-label span {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.admin-note-label input {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.admin-abstract-item .admin-action-buttons {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.admin-abstract-item .admin-action-buttons .btn {
  width: auto;
  flex: 0 0 auto;
}

.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-dl {
  margin: 0 0 1.25rem;
}

.dash-dl dt {
  font-weight: 600;
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.dash-dl dt:first-child {
  margin-top: 0;
}

.dash-dl dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.dash-pay-result {
  max-width: 520px;
}

/* Themed confirm dialog (abstract submit / admin decisions) */
.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  box-sizing: border-box;
}

.confirm-dialog.is-open {
  display: flex;
}

.confirm-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.48);
  backdrop-filter: blur(3px);
}

@media (prefers-reduced-motion: reduce) {
  .confirm-dialog__backdrop {
    backdrop-filter: none;
  }
}

.confirm-dialog__panel {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  width: 100%;
  margin: 0;
  padding: 1.35rem 1.5rem !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.confirm-dialog__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--color-accent);
  line-height: 1.3;
}

.confirm-dialog__message {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Admin: sidebar section labels + website CMS (separate from approvals) */
.dash-sidebar__group-label {
  margin: 0.35rem 0 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.dash-app-section--admin-cms .dash-app__role {
  color: var(--color-accent);
}

.admin-cms-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-cms-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  padding: 0.15rem 0 0.85rem;
  margin: 0 0 0.15rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, var(--color-bg) 70%, transparent);
}

.admin-cms-tabs__tab {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

.admin-cms-tabs__tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.admin-cms-tabs__tab:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 109, 0.18);
}

.admin-cms-tabs__tab.is-active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-color: rgba(13, 92, 109, 0.22);
}

.admin-cms-tabpanel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-cms-tabpanel[hidden] {
  display: none !important;
}

.admin-cms-rte-wrap .ql-toolbar.ql-snow {
  border-radius: 10px 10px 0 0;
  border-color: var(--color-border);
}

.admin-cms-rte-wrap .ql-container.ql-snow {
  border-radius: 0 0 10px 10px;
  border-color: var(--color-border);
  font-size: 1rem;
}

.admin-cms-rte-wrap .ql-editor {
  min-height: 9rem;
}

.rte-content {
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rte-content p {
  margin: 0 0 0.75rem;
}

.rte-content p:last-child {
  margin-bottom: 0;
}

.section-head__lead.rte-content {
  margin-top: 0.35rem;
}

.rte-content ul,
.rte-content ol {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.35rem;
}

.rte-content a {
  color: var(--color-accent);
}

/* Registration page: account CTA above fee copy */
.registration-signup-cta,
.venue-banner,
.visa-info-banner,
.abstract-banner {
  margin: 0 0 1.75rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  border: var(--surface-border);
  background: linear-gradient(145deg, var(--color-accent-soft) 0%, var(--color-surface) 62%);
  box-shadow: var(--shadow-card);
}

.registration-signup-cta__inner,
.venue__inner,
.visa-info__inner,
.abstract__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.registration-signup-cta__copy,
.venue__copy,
.visa-info__copy,
.abstract__copy {
  flex: 1 1 14rem;
  min-width: 0;
}

.registration-signup-cta__title,
.venue__title,
.visa-info__title,
.abstract__title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.registration-signup-cta__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 42rem;
}

.venue-content,
.visa-info-content,
.abstract-content {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.venue-content {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .venue-content:has(.venue-content__figure) {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 42%);
  }
}

.venue-content__address {
  font-style: normal;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.venue-content__line {
  display: block;
}

.venue-content__figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--surface-border);
  background: var(--color-surface);
}

.venue-content__figure img {
  display: block;
  width: 100%;
  height: auto;
}

body:not(:has(.dash-app-section)) .visa-info-page .card .rte-content a,
body:not(:has(.dash-app-section)) .abstract-page .card .rte-content a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

body:not(:has(.dash-app-section)) .visa-info-page .card .rte-content a:hover,
body:not(:has(.dash-app-section)) .abstract-page .card .rte-content a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 95, 0.4);
}

.registration-signup-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.registration-signup-cta__btn {
  min-height: 2.65rem;
  padding-inline: 1.15rem;
}

.registration-signup-cta--trailing {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.registration-page sup {
  font-size: 0.72em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
}

.registration-fees-note {
  margin: 0 0 1.35rem;
}

.registration-fees-note .registration-gst-line {
  margin-top: 0;
}

.registration-gst-line {
  margin-top: 0.65rem;
}

/* CMS repeaters: each block is a bordered “card” with a labeled toolbar */
.admin-cms-block {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  margin-bottom: 1.15rem;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.04);
}

.admin-cms-block__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, rgba(13, 92, 109, 0.1) 0%, rgba(13, 92, 109, 0.04) 100%);
  border-bottom: 1px solid var(--color-border);
}

.admin-cms-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-accent);
  margin: 0;
  letter-spacing: 0.01em;
}

.admin-cms-block__fields {
  padding: 1rem 1rem 0.35rem;
}

.admin-cms-block__remove {
  flex-shrink: 0;
  font-size: 0.88rem;
}

.admin-cms-repeater {
  margin-top: 0.35rem;
}

.admin-cms-card .admin-cms-subhead {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.admin-cms-input-datetime {
  max-width: 22rem;
}

.admin-cms-head {
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-accent-soft);
}

.admin-cms-head code {
  font-size: 0.85em;
}

.admin-cms-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: min(100%, 72rem);
}

/* Website editor: full-width fields (form is not `.auth-form`). */
.dash-app-section--admin-cms .admin-cms-input,
.dash-app-section--admin-cms .admin-cms-form input[type="text"],
.dash-app-section--admin-cms .admin-cms-form input[type="email"],
.dash-app-section--admin-cms .admin-cms-form input[type="url"] {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
}

.dash-app-section--admin-cms .admin-cms-form textarea.input-textarea.admin-cms-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 7rem;
  font-size: 1rem;
  line-height: 1.55;
}

/* Fee tables and long copy need more vertical room without forcing every CMS textarea huge */
.dash-app-section--admin-cms .admin-cms-form textarea[name*="rows_raw"],
.dash-app-section--admin-cms .admin-cms-form textarea[name="welcome_paragraphs"] {
  min-height: 14rem;
}

.admin-cms-card__title {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--color-accent);
}

.admin-cms-card__lead {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.admin-cms-preview-row {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

@media (min-width: 640px) {
  .admin-cms-preview-row {
    grid-template-columns: 1fr minmax(120px, 160px);
  }
}

.admin-cms-thumb {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 16 / 10;
}

.admin-cms-thumb--logo {
  aspect-ratio: 1;
  max-width: 120px;
}

.admin-cms-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-cms-thumb--portrait {
  aspect-ratio: 1;
  max-width: 120px;
}

.admin-cms-image-path-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: stretch;
}

.admin-cms-image-path-row .admin-cms-image-path {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-cms-image-path-row .admin-cms-image-lib-btn {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

/* Modal: pick image path (website content) */
.admin-image-lib-picker {
  width: min(100vw - 2rem, 52rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: none;
  background: transparent;
}

.admin-image-lib-picker::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.admin-image-lib-picker__shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  padding: 1.25rem 1.35rem;
  margin: 0;
}

.admin-image-lib-picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.admin-image-lib-picker__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
}

.admin-image-lib-picker__error {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  font-size: 0.95rem;
}

.admin-image-lib-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.65rem;
  overflow: auto;
  min-height: 4rem;
  max-height: min(60dvh, 28rem);
  padding: 0.15rem;
}

.admin-image-lib-picker__loading,
.admin-image-lib-picker__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.admin-image-lib-picker__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-image-lib-picker__card:hover,
.admin-image-lib-picker__card:focus-visible {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.1);
  outline: none;
}

.admin-image-lib-picker__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: var(--color-bg);
}

.admin-image-lib-picker__card-path {
  font-size: 0.62rem;
  line-height: 1.25;
  word-break: break-all;
  color: var(--color-muted);
}

.admin-image-lib-picker__hint {
  margin: 0.85rem 0 0;
}

/* Image library admin page */
.admin-image-lib-page-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
}

.admin-image-lib-page-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.admin-image-lib-page-card__thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.admin-image-lib-page-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.admin-image-lib-page-card__path {
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.35;
  color: var(--color-text);
}

.admin-image-lib-page-card__badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.admin-image-lib-page-card__del {
  margin-top: auto;
}

.admin-cms-highlight-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.admin-cms-highlight-block:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.admin-cms-highlight-block__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-muted);
}

.admin-cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 2rem;
}

/* --- Maintenance holding page (503) --- */
.maintenance-holding {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
}

.maintenance-holding__backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(13, 92, 109, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(184, 134, 11, 0.06), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.maintenance-holding__main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
}

.maintenance-holding__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
}

.maintenance-holding__logo {
  max-width: min(100%, 280px);
  height: auto;
  margin: 0 auto 1.35rem;
  display: block;
}

.maintenance-holding__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.maintenance-holding__lead {
  margin: 0 0 1.35rem;
  line-height: 1.6;
  color: var(--color-muted);
  font-size: 1rem;
}

.maintenance-holding__actions {
  margin: 0 0 0.75rem;
}

.maintenance-holding__cta {
  display: inline-flex;
  justify-content: center;
  min-width: 12rem;
}

.maintenance-holding__fineprint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.maintenance-holding__fineprint--muted {
  font-style: italic;
}

/* --- Admin Site gates: datetime-local matches auth form / theme --- */
.site-gates-card .site-gates-form input[type="datetime-local"].input-datetime-themed {
  width: 100%;
  max-width: min(100%, 22rem);
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.site-gates-card .site-gates-form input[type="datetime-local"].input-datetime-themed:hover {
  border-color: #c5d0dc;
}

.site-gates-card .site-gates-form input[type="datetime-local"].input-datetime-themed:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 92, 109, 0.18);
}

.site-gates-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}

.site-gates-legend {
  margin-bottom: 0.65rem;
}

.site-gates-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.site-gates-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.site-gates-check--danger input {
  accent-color: #b42318;
}

.site-gates-datetime-row {
  margin-top: 1rem;
}

.site-gates-pin-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border);
}

.site-gates-subhead {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.site-gates-php-limits__list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.site-gates-php-limits__list li + li {
  margin-top: 0.35rem;
}

.site-gates-pin-note {
  margin-top: 0 !important;
  margin-bottom: 0.85rem !important;
}

/* Multi-step registration wizard — centered card (no side logo) */
.reg-wizard-page.auth-page {
  background: transparent;
}

.reg-wizard-page__wrap {
  max-width: min(1280px, 100%);
  margin-inline: auto;
}

.reg-wizard-page__shell {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.reg-wizard.auth-card--signup {
  box-shadow: var(--shadow-card);
  border: var(--surface-border);
}

.reg-wizard__stepper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 720px) {
  .reg-wizard__stepper {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reg-wizard__tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.85rem 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 100%;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.reg-wizard__tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.reg-wizard__tab-label {
  display: block;
  max-width: 11rem;
}

@media (min-width: 640px) {
  .reg-wizard__tab {
    font-size: 1rem;
    padding-inline: 0.75rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.55rem;
  }

  .reg-wizard__tab-label {
    max-width: none;
  }
}

.reg-wizard__tab:hover {
  color: var(--color-accent);
}

.reg-wizard__tab:hover .reg-wizard__tab-num {
  background: var(--color-navy-deep);
}

.reg-wizard__tab.is-active {
  color: var(--color-accent);
  font-weight: 700;
  border-bottom-color: var(--color-cta);
}

.reg-wizard__tab.is-active .reg-wizard__tab-num {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.reg-wizard__heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--color-accent);
  line-height: 1.25;
}

.reg-wizard__subheading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-accent);
}

.reg-wizard__panels {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

.reg-wizard__panel[hidden] {
  display: none !important;
}

/* Prevent scroll anchoring when Tom Select / hints update during Chrome autofill on step 2 */
.reg-wizard__panel[data-step-panel="1"] {
  overflow-anchor: none;
}

.reg-wizard__panel[data-step-panel="1"] .ts-control {
  scroll-margin-top: 0;
}

/* OTP row: clear gap between input and CTA */
.reg-wizard__input-action {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.reg-wizard__input-action input {
  flex: 1 1 12rem;
  min-width: 0;
}

.reg-wizard__input-action .reg-wizard__inline-btn {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 2.75rem;
}

/* Send OTP: soft navy (distinct from Back outline and Verify filled) */
.reg-wizard__btn-send-otp.btn-solid--ghost {
  background: var(--color-accent-soft) !important;
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  box-shadow: none;
}

.reg-wizard__btn-send-otp.btn-solid--ghost:hover {
  background: #d4e3f2 !important;
}

.reg-wizard__btn-verify-otp.btn-solid--accent .icon {
  color: inherit;
}

@media (max-width: 520px) {
  .reg-wizard__input-action .reg-wizard__inline-btn {
    width: 100%;
  }
}

.reg-wizard__radio-group legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}

.reg-wizard__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.reg-wizard__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
}

.reg-wizard__radio input[type="radio"] {
  accent-color: var(--color-accent);
  width: 1.1rem;
  height: 1.1rem;
}

.reg-wizard__options legend,
.reg-wizard__options > legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.reg-wizard__option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.reg-wizard__option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reg-wizard__option input {
  margin-top: 0.25rem;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.reg-wizard__total {
  margin: 1.35rem 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(165deg, var(--color-accent-soft) 0%, var(--color-surface) 55%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.reg-wizard__total-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reg-wizard__total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0;
}

.reg-wizard__total-line--payable {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.reg-wizard__total-amount {
  font-weight: 600;
  color: var(--color-text);
}

.reg-wizard__total-label {
  font-weight: 600;
  color: var(--color-text);
}

.reg-wizard__total-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.dash-refund-policy-card {
  margin-bottom: 1.25rem;
}

.dash-refund-policy-card .reg-wizard__refund {
  margin-bottom: 0;
}

.reg-wizard__refund {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-height: 14rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.reg-wizard__refund a {
  color: var(--color-accent);
}

.reg-wizard__refund ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.reg-wizard__checkbox {
  margin-top: 1rem;
}

.reg-wizard__check-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  cursor: pointer;
  color: var(--color-text);
}

.reg-wizard__check-label input {
  margin-top: 0.2rem;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.reg-wizard__check-label a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Footer nav: spaced CTAs (Back | Next / Submit) */
.reg-wizard__nav.form-actions {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem 1.25rem;
  justify-content: flex-end;
  width: 100%;
}

.reg-wizard__nav .reg-wizard__btn-back {
  margin-right: auto;
}

.reg-wizard__nav .btn {
  min-width: 9rem;
  flex: 0 1 auto;
}

/* .btn { display } overrides the UA [hidden] rule in flex nav */
.reg-wizard__nav .reg-wizard__btn-next[hidden],
.reg-wizard__nav .reg-wizard__btn-submit[hidden] {
  display: none !important;
}

.reg-wizard__gender {
  margin: 0 0 1.25rem;
}

@media (max-width: 480px) {
  .reg-wizard__nav.form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reg-wizard__nav .reg-wizard__btn-back {
    margin-right: 0;
    order: 2;
  }

  .reg-wizard__nav .reg-wizard__btn-next,
  .reg-wizard__nav .reg-wizard__btn-submit {
    order: 1;
    width: 100%;
  }
}

.field-hint--ok {
  color: #0f5132;
}

.field-hint--error {
  color: #d32f2f;
}

.reg-wizard .field-hint--error {
  color: #d32f2f;
  font-weight: 500;
}

/* Beat global `.card p { color: var(--color-muted) }` on sign-up field errors */
.auth-form p.reg-wizard__field-error,
.reg-wizard.card p.reg-wizard__field-error,
body:not(:has(.dash-app-section)) .reg-wizard.card p.reg-wizard__field-error {
  color: #d32f2f;
  font-weight: 500;
}

/* Registration wizard: OTP / async feedback */
.reg-wizard__otp-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.45;
}

.reg-wizard__otp-status.field-hint--loading {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.reg-wizard__otp-status.field-hint--sent {
  color: #055160;
  background: #cff4fc;
  border: 1px solid #9eeaf9;
}

.reg-wizard__otp-status.field-hint--ok {
  color: #0a3622;
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
}

.reg-wizard__otp-status.field-hint--error {
  color: #b71c1c;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.reg-wizard__otp-status.field-hint--dev {
  color: #5c4a00;
  background: #fff8e6;
  border: 1px solid #e6c200;
}

@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}

.inline-spinner,
.btn-spinner {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.btn.is-busy {
  position: relative;
  cursor: wait;
  pointer-events: none;
}

.btn.is-busy .btn-busy-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn.is-busy .icon {
  display: none;
}

.field-hint--dev {
  padding: 0.65rem 0.85rem;
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 8px;
  color: #5c4a00;
  font-weight: 500;
}

.payment-mock-banner {
  border-color: #e6c200;
  background: #fff8e6;
  color: #5c4a00;
}

/* Prevent scroll-into-view on Tom Select's hidden native <select> during autofill */
.form-geo select[data-geo-country].ts-hidden-accessible {
  position: fixed !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-geo .ts-wrapper,
.reg-wizard__phone-row .ts-wrapper,
.dash-phone-row .ts-wrapper {
  width: 100%;
}

.form-geo .ts-wrapper.form-select,
.reg-wizard__phone-row .ts-wrapper.form-select,
.dash-phone-row .ts-wrapper.form-select {
  font-family: var(--font-body);
}

.form-geo .ts-control,
.reg-wizard__phone-row .ts-control,
.dash-phone-row .ts-control {
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 1rem;
  box-shadow: none;
}

.form-geo .ts-wrapper.focus .ts-control,
.reg-wizard__phone-row .ts-wrapper.focus .ts-control,
.dash-phone-row .ts-wrapper.focus .ts-control {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.form-geo .ts-dropdown,
.reg-wizard__phone-row .ts-dropdown,
.dash-phone-row .ts-dropdown {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 0.95rem;
  z-index: 200;
}

.form-geo .ts-dropdown .option.active,
.reg-wizard__phone-row .ts-dropdown .option.active,
.dash-phone-row .ts-dropdown .option.active {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

.form-geo .ts-wrapper.disabled .ts-control,
.form-geo select[data-geo-state]:disabled + .ts-wrapper .ts-control,
.form-geo select[data-geo-city]:disabled + .ts-wrapper .ts-control {
  opacity: 0.65;
  cursor: not-allowed;
}

.payment-mock-banner a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Manual registration payment step */
.reg-manual-payment {
  margin-top: 0.5rem;
}

.reg-manual-payment__total {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.reg-manual-payment__layout {
  display: grid;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 640px) {
  .reg-manual-payment__layout {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.reg-manual-payment__qr {
  margin: 0;
  text-align: center;
}

.reg-manual-payment__qr img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.reg-manual-payment__bank-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.reg-manual-payment__details {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.reg-manual-payment__details dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0;
}

.reg-manual-payment__details dd {
  margin: 0.1rem 0 0;
  font-size: 0.98rem;
}

.reg-wizard__intro {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.reg-wizard__field-error {
  margin-top: 0.35rem;
}

.reg-wizard__field-error[hidden] {
  display: none;
}

/* Dashboard pending approval */
.dash-pending-approval__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dash-pending-approval__txn-on-file {
  margin: 0.75rem 0;
}

.dash-pending-approval__form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
