:root {
  --navy: #0d1b6e;
  --navy-dark: #071059;
  --navy-mid: #1a2d8a;
  --gold: #f5c518;
  --gold-dark: #e0a800;
  --white: #fff;
  --light-bg: #f4f6fb;
  --text-dark: #0d1b6e;
  --text-muted: #4a5580;
  --border: #dde3f5;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #2980b9;
  --focus: #ffbf47;
  --focus-ring: 0 0 0 4px rgba(255, 191, 71, 0.72);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13, 27, 110, 0.10);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 0.95rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light-bg);
  color: #1e293b;
  /* ✅ FIX: Clear, high-contrast Slate Gray text for base readability */
  min-height: 100vh;
  overflow-x: hidden;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body.accessibility-reduce-motion *,
body.accessibility-reduce-motion *::before,
body.accessibility-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

html.accessibility-large-text {
  font-size: 112.5%;
}

body.accessibility-underline-links a {
  text-decoration: underline !important;
}

a,
  border: 1px solid rgba(255, 255, 255, 0.18);
input,
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.98), rgba(224, 168, 0, 0.92));
  color: var(--navy-dark);
  outline: none;
}

  box-shadow: 0 16px 34px rgba(6, 14, 58, 0.22);
button:focus-visible,
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

/* ── SKIP LINK ENHANCEMENTS ── */
  position: absolute;
  top: -100px;
  left: 20px;
  background: rgb(204, 235, 5);
  color: #002060;
  padding: 12px 24px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 999999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skip-link:focus-visible {
  top: 0;
}

.skip-link:not(:focus) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ── SCREEN READER UTILITIES ── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus:not(:focus-visible) {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ── HIGH CONTRAST MODE ── */
/* ── HIGH CONTRAST MODE (stylish, accessible variant) ── */
body.accessibility-high-contrast {
  --navy: #071059;
  --navy-dark: #021033;
  --navy-mid: #10204a;
  --gold: #ffdd57;
  --gold-dark: #f5c518;
  --white: #ffffff;
  --light-bg: #071059;
  --text-dark: #ffffff;
  --text-muted: #e6e6e6;
  --border: #12304f;
  --success: #27ae60;
  --danger: #ff6b6b;
  --warning: #ffbf47;
  --info: #4da6ff;
  --focus: #ffbf47;
  --focus-ring: 0 0 0 4px rgba(255, 191, 71, 0.18);
  background: linear-gradient(180deg, #03102b, #071059);
  color: var(--text-dark);
}

/* ── DYSLEXIA-FRIENDLY FONT ── */
body.accessibility-dyslexia-font {
  font-family: 'Comic Sans MS', 'Arial', sans-serif !important;
}

/* Provide better fallback fonts for accessibility */
body.accessibility-dyslexia-font,
body.accessibility-increased-legibility {
  font-feature-settings: "liga" 0;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* ── ENHANCED LINK VISIBILITY ── */
body.accessibility-highlight-links a,
body.accessibility-highlight-links a:visited {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── ADDITIONAL LARGE TEXT SCALE ── */
html.accessibility-large-text {
  font-size: 112.5%;
}

html.accessibility-extra-large-text {
  font-size: 125%;
}

/* ── INCREASED LEGIBILITY ── */
body.accessibility-increased-legibility {
  line-height: 1.8 !important;
  word-spacing: 0.1em !important;
  letter-spacing: 0.02em !important;
}

/* ── FOCUS STYLES ENHANCED ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

/* Ensure all interactive elements have visible focus in high contrast mode */
body.accessibility-high-contrast a:focus-visible,
body.accessibility-high-contrast button:focus-visible,
body.accessibility-high-contrast input:focus-visible,
body.accessibility-high-contrast select:focus-visible,
body.accessibility-high-contrast textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body.accessibility-reduce-motion *,
body.accessibility-reduce-motion *::before,
body.accessibility-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

body.accessibility-high-contrast {
  --navy: #000;
  --navy-dark: #000;
  --navy-mid: #000;
  --gold: #ff0;
  --gold-dark: #ff0;
  --white: #fff;
  --light-bg: #fff;
  --text-dark: #000;
  --text-muted: #000;
  --border: #000;
  --success: #006400;
  --danger: #b00020;
  --warning: #8a6d00;
  --info: #005fcc;
  --focus: #00ffff;
  background: #fff;
  color: #000;
}

body.accessibility-high-contrast .topnav,
body.accessibility-high-contrast .hero,
body.accessibility-high-contrast .cta-band,
body.accessibility-high-contrast .app-footer {
  background: var(--navy-dark);
  color: var(--text-dark);
}

body.accessibility-high-contrast .btn-gold,
body.accessibility-high-contrast .cta-primary,
body.accessibility-high-contrast .stat-band,
body.accessibility-high-contrast .hero-title .accent {
  background: var(--gold);
  color: var(--navy-dark);
}

body.accessibility-high-contrast .btn-primary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

body.accessibility-high-contrast .btn-outline,
body.accessibility-high-contrast .btn-outline-white,
body.accessibility-high-contrast .cta-ghost {
  border-color: var(--white);
  color: var(--white);
}

body.accessibility-high-contrast .topnav-logo-text small,
body.accessibility-high-contrast .topnav-user,
body.accessibility-high-contrast .section-sub,
body.accessibility-high-contrast .track-desc,
body.accessibility-high-contrast .form-hint,
body.accessibility-high-contrast .form-label,
body.accessibility-high-contrast .terms-check label,
body.accessibility-high-contrast .divider span {
  color: var(--text-muted);
}

body.accessibility-high-contrast .auth-right,
body.accessibility-high-contrast .main,
body.accessibility-high-contrast .card,
body.accessibility-high-contrast .role-tile,
body.accessibility-high-contrast .tier-row-label {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--border);
}

/* ── LAYOUT MATRIX WRAPPER ── */
.page-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  /* Holds your structural sidebar split lines firmly */
  min-height: calc(100vh - 64px);
  /* Offsets topnav row height perfectly */
  width: 100%;
}

/* ── SIDEBAR FRAMEWORK DOCK ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

/* ── MAIN ACTIONS ACTION CANVAS ── */
.main {
  flex: 1;
  padding: 36px 40px;
  background: var(--light-bg);
  overflow-y: auto;
}

/* ── LOWER SECTION RECENT ENTRIES SPLIT ── */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  /* Holds exact visual asset ratio balance */
  gap: 24px;
  margin-top: 24px;
  align-items: start;
  /* Safeguards variable element column length stretching bugs */
  width: 100%;
}

/* ── NAVIGATION ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topnav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--navy);
  font-size: 1rem;
}

.topnav-logo-icon img {
  /* Size */
  width: auto;
  height: 40px;
  /* Adjust based on your needs */
  max-width: 200px;
  /* Prevents oversized logos */

  /* Spacing */
  margin: 8px 0;
  padding: 4px;

  /* Visual styling */
  object-fit: contain;
  /* Maintains aspect ratio */
  border-radius: 4px;
  /* Optional: subtle rounding */

  /* Optional effects */
  transition: opacity 0.3s ease;

  /* Fallback for missing images */
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  /* Optional border */
}

/* Optional hover effect */
.topnav-logo-icon img:hover {
  opacity: 0.9;
}

/* Optional: Different sizes for mobile */
@media (max-width: 768px) {
  .topnav-logo-icon img {
    height: 32px;
    max-width: 150px;
  }
}

/* Optional: Dark mode support */
@media (prefers-color-scheme: dark) {
  .topnav-logo-icon img {
    background-color: #333;
    border-color: #444;
  }
}

/* .left-logo-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
} */

/* .left-logo-mark img {
  width: auto;
  height: 48px;
  max-width: 220px;
  margin: 12px 0;
  padding: 8px 16px 8px 0;
  object-fit: contain;
  border-radius: 0; 
  transition: all 0.3s ease;
  background-color: transparent;
} */

/* .left-logo-mark::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: #e0e0e0;
  margin: 0 16px;
} */

@media (max-width: 768px) {
  .left-logo-mark img {
    height: 32px;
    max-width: 150px;
    /* margin: 8px 0;
    padding-right: 12px; */
  }

  .left-logo-mark::after {
    height: 28px;
    margin: 0 12px;
  }
}

.left-logo-mark img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

@media (prefers-color-scheme: dark) {
  .left-logo-mark img {
    filter: brightness(1.1);
  }
}

.topnav-logo-text {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.topnav-logo-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── DROPDOWN MENU INTEGRATION ── */

/* 1. Dropdown Parent Container */
.topnav-dropdown {
  position: relative;
  /* Anchor point for the absolute dropdown box */
  display: inline-block;
  height: 100%;
  /* Ensures hover space spans the entire height of navbar */
}

/* 2. Dropdown Menu Box */
.topnav-dropdown-menu {
  display: none;
  /* Kept hidden until hovered */
  position: absolute;
  top: 100%;
  /* Flushes it perfectly to the bottom edge of the topnav */
  right: 0;
  /* Aligns it to the right side of the link (good for topnav-right) */
  background: var(--navy-dark);
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  /* Smooth corners only at the bottom edge */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  /* Avoid a double border line against the navbar */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 1000;
  /* Sits cleanly over your sticky topnav z-index of 999 */
}

/* 3. Dropdown Individual Menu Items */
.topnav-dropdown-menu li {
  width: 100%;
}

.topnav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 4. Interactive States */
.topnav-dropdown-menu a:hover {
  background: var(--navy-mid);
  color: var(--gold);
  padding-left: 24px;
  /* Subtle layout slide effect on hover */
}

/* 5. The Trigger (Pure CSS Hover Mechanism) */
.topnav-dropdown:hover .topnav-dropdown-menu {
  display: block;
}

/* Optional: Add a chevron animation if you use an arrow indicator */
.topnav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.dropdown-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* ..........navbar dropdown ending*/
.topnav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.topnav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav-role {
  background: rgba(245, 197, 24, 0.2);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

.topnav-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .topnav-btn {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

@media (max-width: 600px) {
  .topnav-btn {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-dark);
}

/* ── LAYOUT ── */
.page-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* ── SIDEBAR ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 6px 24px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-right: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--light-bg);
  color: var(--navy);
  border-right-color: var(--navy);
}

.sidebar-link .icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* ── MAIN CONTENT ── */
.main {
  flex: 1;
  padding: 36px 40px;
  overflow-x: hidden;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.page-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.page-breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── STATS ANALYTICS ROW GRID ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Auto-fits across rows dynamically */
  gap: 20px;
  margin-bottom: 28px;
  width: 100%;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.blue {
  background: #e8ecf9;
}

.stat-icon.gold {
  background: #fdf6d8;
}

.stat-icon.green {
  background: #e8f8f0;
}

.stat-icon.red {
  background: #fde8e8;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--light-bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

tr:last-child td {
  border: none;
}

tr:hover td {
  background: rgba(244, 246, 251, 0.7);
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-blue {
  background: #e8ecf9;
  color: var(--navy);
}

.badge-gold {
  background: #fdf6d8;
  color: #8a6a00;
}

.badge-green {
  background: #e8f8f0;
  color: #1a7a45;
}

.badge-red {
  background: #fde8e8;
  color: #a93226;
}

.badge-gray {
  background: #f0f0f0;
  color: #666;
}

.badge-purple {
  background: #f0e8f9;
  color: #6c3483;
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 27, 110, 0.08);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  opacity: 0.85;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #e8f8f0;
  color: #1a7a45;
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: #fde8e8;
  color: #a93226;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: #fef9e7;
  color: #7d6608;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: #e8f4fc;
  color: #1a5276;
  border-left: 4px solid var(--info);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ── FOOTER ── */
.app-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
}

/* ── AUTH PAGES COMMON ── */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── AUTH LEFT PANEL ── */
.auth-left {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #1a3a9e 100%);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23f5c518' fill-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
}

.left-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: rgba(245, 197, 24, 0.1);
  border-radius: 50%;
  filter: blur(70px);
  top: -80px;
  right: -80px;
}

.left-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.left-logo-mark {
  width: auto;
  height: 44px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--navy);
}

.left-logo-text {
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.left-logo-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.left-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}

.left-headline span {
  color: var(--gold);
}

.left-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 36px;
}

.left-footer {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: auto;
  padding-top: 32px;
}

/* ── AUTH RIGHT PANEL ── */
.auth-right {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 56px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.form-heading {
  margin-bottom: 32px;
}

.form-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-heading p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.left-facts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.fact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.fact-text {
  color: rgba(255, 255, 255, 0.8);
  /* This makes the text visible */
  font-size: 0.88rem;
  line-height: 1.4;
}

.fact-text strong {
  color: var(--white);
  /* Uses your white variable for the bold parts */
  font-weight: 700;
}

/* ── ROLE EXPLANATION ── */
.role-explain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.re-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background 0.2s;
}

.re-row:hover {
  background: rgba(255, 255, 255, 0.09);
}

.re-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.re-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
  margin-bottom: 2px;
}

.re-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── ROLE CARDS ── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.role-opt {
  position: relative;
}

.role-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.role-tile .rt-icon {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.role-tile .rt-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.role-tile .rt-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.role-opt input:checked+.role-tile {
  border-color: var(--navy);
  background: white;
  box-shadow: 0 0 0 3px rgba(13, 27, 110, 0.1);
}

.role-tile:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ── FORM SECTIONS ── */
.form-section {
  margin: 24px 0 16px;
}

.form-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── PASSWORD FIELDS ── */
.pw-wrap {
  position: relative;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px;
}

.strength-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

/* ── SUBMIT AREA ── */
.submit-area {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.terms-check input {
  margin-top: 3px;
  accent-color: var(--navy);
}

.terms-check label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-check a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}

.divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── DEMO CHIPS ── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.demo-chip {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-chip:hover {
  border-color: var(--navy);
  background: #edf0fc;
}

.demo-chip .dc-role {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.demo-chip .dc-email {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── LANDING PAGE SPECIFIC ── */
/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://hotel.kise.ac.ke/wp-content/uploads/2025/02/lagatt-9_.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Optional: creates a parallax effect */
  padding: 0;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}


@keyframes gridDrift {
  to {
    background-position: 60px 60px;
  }
}

/* HERO SLIDESHOW */
.hero-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 5% 88px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 110, 0.6) 0%, rgba(13, 27, 110, 0.3) 50%, rgba(13, 27, 110, 0.5) 100%);
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide-intro {
  gap: 0;
}

.hero-speaker-stage {
  gap: 14px;
  width: min(920px, 100%);
}

.hero-speaker-stage .speaker-slide {
  width: min(860px, 100%);
  margin: 0 auto;
}

/* Slideshow Navigation Dots */
.hero-slide-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 12;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-dot.is-active {
  background: rgba(245, 197, 24, 0.9);
  width: 32px;
  border-radius: 6px;
}

/* Previous/Next Navigation Buttons */
.hero-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 12;
  padding: 0;
}

.hero-slide-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-slide-prev {
  left: 20px;
}

.hero-slide-next {
  right: 20px;
}

.hero-slide-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .hero-slide-dots {
    bottom: 20px;
  }

  .hero-slide-nav {
    width: 40px;
    height: 40px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .hero-dot.is-active {
    width: 28px;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(245, 197, 24, 0.12);
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(13, 27, 110, 0.6);
  bottom: -80px;
  left: -80px;
  animation: float2 10s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(245, 197, 24, 0.07);
  top: 40%;
  left: 30%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 30px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -20px);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-15px, 25px);
  }
}

.hero-content,
.hero-slide-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 5% 36px;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

/* Landing-specific hero centering overrides: ensure the hero content block is
   visually centered horizontally within the hero and remove extra side padding. */
.landing .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing .hero-content {
  padding: 56px 0 36px; /* remove the 5% side padding which shifts content visually */
  width: min(1100px, 94vw);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
  animation: fadeDown 0.6s ease both;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  animation: fadeDown 0.6s 0.1s ease both;
  opacity: 0;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 18px;
  animation: fadeDown 0.7s 0.2s ease both;
  opacity: 0;
}

.hero-title .accent {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.35;
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 28px;
  animation: fadeDown 0.7s 0.3s ease both;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.7s 0.4s ease both;
  opacity: 0;
}

.meta-item-keynote {
  position: relative;
  overflow: visible;
  z-index: 40;
}

.meta-item-keynote-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(12, 24, 102, 0.9), rgba(21, 53, 153, 0.96));
  color: #fff;
  font: inherit;
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 16, 89, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.meta-item-keynote-trigger:hover,
.meta-item-keynote-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 197, 24, 0.4);
  background: linear-gradient(135deg, rgba(12, 24, 102, 0.98), rgba(28, 67, 186, 0.98));
  box-shadow: 0 16px 30px rgba(7, 16, 89, 0.2);
}

.meta-item-keynote-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18), 0 16px 30px rgba(7, 16, 89, 0.2);
}

.speaker-preview-meta {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 14, 58, 0.54);
  backdrop-filter: blur(10px);
  z-index: 10000;
  pointer-events: none;
}

.speaker-preview-sheet {
  position: relative;
  width: min(680px, 92vw);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(7, 16, 89, 0.99), rgba(13, 27, 110, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 36px 80px rgba(4, 10, 36, 0.48);
  pointer-events: auto;
}

.speaker-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.speaker-preview-close:hover,
.speaker-preview-close:focus-visible {
  transform: scale(1.05);
  background: rgba(245, 197, 24, 0.18);
  outline: none;
}

.speaker-preview-meta.is-open {
  display: flex;
  animation: keynotePreviewFade 0.2s ease;
}

.speaker-preview-meta.is-open .speaker-preview-sheet {
  animation: keynoteSheetIn 220ms ease;
}

@keyframes keynoteSheetIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.accessibility-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
}

.accessibility-widget-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.98), rgba(224, 168, 0, 0.92));
  color: var(--navy-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(6, 14, 58, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.accessibility-widget-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.accessibility-widget-popout {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: block;
  width: max-content;
  z-index: 130;
  pointer-events: auto;
}

/* On the landing page we hide the left-side WCAG icons and show the accessibility widget
   vertically centered on the right side of the hero. */
.landing .accessibility-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
}

.accessibility-widget-button {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.98), rgba(224, 168, 0, 0.92));
  color: var(--navy-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(6, 14, 58, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.accessibility-widget-popout-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  align-items: center;
  backdrop-filter: blur(10px);
}

.accessibility-widget.is-open .accessibility-widget-popout-group {
  opacity: 1;
  pointer-events: auto;
  animation: a11yPopBottom 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes a11yPopBottom {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.accessibility-widget-button:hover,
.accessibility-widget-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.03) saturate(1.08);
  box-shadow: 0 14px 26px rgba(6, 14, 58, 0.22);
}

.accessibility-widget-toggle:hover,
.accessibility-widget-toggle:focus-visible {
  transform: translateY(0) scale(1.03);
  box-shadow: 0 18px 36px rgba(6, 14, 58, 0.28);
}

@keyframes a11yPopTop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes a11yPopBottom {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.speaker-preview-meta,
.speaker-preview-card-meta {
  backdrop-filter: blur(10px);
}

.speaker-preview-grid-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.speaker-preview-card-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  padding: 16px;
}
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speaker-preview-kicker {
  color: #f8e8a1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.speaker-preview-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 26rem;
}

.speaker-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 4px;
}

.speaker-role {
  color: #f8e8a1;
  font-size: 0.78rem;
  font-weight: 600;
}

.speaker-photo-meta {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(245, 197, 24, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  align-self: center;
}

.speaker-preview-card-meta p {
  display: none;
}

.speaker-preview-stack {
  display: grid;
  gap: 10px;
}

.speaker-preview-card-featured {
  align-self: stretch;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  margin-top: 4px;
}

.speaker-specialty {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}

.cta-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 197, 24, 0.5);
}

.cta-ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.cta-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* COUNTDOWN */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 25px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* META STRIP */
.meta-strip {
  position: relative;
  z-index: 30;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
}

.meta-item:last-child {
  border-right: none;
}

.meta-item .mi {
  font-size: 1.1rem;
}

.meta-item strong {
  color: white;
  font-weight: 700;
}

/* STAT BAND */
.stat-band {
  background: var(--gold);
  padding: 22px 5%;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-band-item {
  text-align: center;
  padding: 8px 32px;
  border-right: 1px solid rgba(13, 27, 110, 0.15);
}

.stat-band-item:last-child {
  border: none;
}

.stat-band-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.stat-band-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(13, 27, 110, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* SECTIONS */
.section {
  padding: 32px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.kiselook-section {
  padding-bottom: 18px;
}

.kise-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.kise-highlight-card {
  background: #fff;
  border: 1px solid rgba(13,27,110,0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(7,16,89,0.06);
}

.kise-highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(13,27,110,0.08));
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.kise-highlight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.kise-highlight-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.kise-highlight-card a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* TRACKS */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.track-card {
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: white;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  transition: height 0.25s;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 27, 110, 0.1);
}

.track-card:hover::before {
  height: 5px;
  background: var(--gold);
}

.track-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.track-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.track-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.timeline::before {
  display: none;
}

.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.tl-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  transition: all 0.2s;
}

.tl-step.done {
  opacity: 1;
}

.tl-step.done .tl-dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #4CAF50;
}

.tl-step.active .tl-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(245, 197, 24, 0.2);
  color: #2196F3;
  animation: pulse 2s infinite;
}

.tl-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.tl-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 8px;
  }

  .tl-step.active {
    opacity: 1;
    transform: translateY(-4px);
  }
}

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

  .tl-dot {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .tl-label {
    font-size: 0.76rem;
  }

  .tl-date {
    font-size: 0.68rem;
  }
}

@media (max-width: 600px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tl-dot {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .tl-label {
    font-size: 0.74rem;
  }

  .tl-date {
    font-size: 0.64rem;
  }
}

/* PROGRAMME PREVIEW */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.prog-card {
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: white;
  border-left: 3px solid var(--navy);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.prog-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(13, 27, 110, 0.08);
}

.prog-card.keynote {
  border-left-color: var(--gold);
  background: #fffdf5;
}

.prog-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.prog-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.35;
}

.prog-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.prog-section-header {
  align-items: flex-end;
}

.prog-section-heading {
  max-width: 32rem;
}

.prog-section-actions {
  flex-shrink: 0;
}

.meta-item-keynote {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.speaker-name {
  font-size: 0.8rem;
}

.speaker-role {
  font-size: 0.62rem;
}

.speaker-mini-data {
  margin-top: 2px;
  font-size: 0.6rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(74, 85, 128, 0.88);
}

@keyframes keynotePreviewFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.speaker-preview-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.speaker-preview-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.speaker-preview-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
}

.speaker-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.speaker-slideshow {
  display: grid;
  gap: 14px;
}

.speaker-slide {
  display: none;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,255,0.7));
  border: 1px solid rgba(13, 27, 110, 0.06);
  box-shadow: 0 6px 18px rgba(7,16,89,0.08);
  animation: slideshowIn 0.45s ease;
}

.speaker-slide.is-active {
  display: grid;
}

.speaker-photo-wrap {
  position: relative;
}

.speaker-photo {
  width: 124px;
  height: 124px;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(7, 16, 89, 0.14);
  border: 4px solid rgba(255, 255, 255, 0.92);
}

.speaker-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 10px 14px -10px 14px;
  border-radius: 20px;
  background: rgba(245, 197, 24, 0.16);
  z-index: -1;
  filter: blur(12px);
}

.speaker-slide-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.speaker-slide-copy p {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.speaker-slideshow-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.speaker-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.speaker-controls .speaker-prev,
.speaker-controls .speaker-next {
  background: transparent;
  border: 1px solid rgba(13,27,110,0.08);
  color: var(--navy);
  font-size: 1.05rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.speaker-controls .speaker-prev:focus-visible,
.speaker-controls .speaker-next:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.speaker-controls .speaker-prev:hover,
.speaker-controls .speaker-next:hover {
  background: rgba(13,27,110,0.06);
  transform: translateY(-2px);
}

.speaker-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(13, 27, 110, 0.18);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.speaker-dot.is-active {
  width: 26px;
  background: var(--gold);
  transform: none;
}

.speaker-dot:hover {
  transform: scale(1.08);
}

@keyframes slideshowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speaker-preview-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 27, 110, 0.08);
}
.speaker-preview-card .speaker-photo {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
}
.speaker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.2), rgba(245, 197, 24, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.speaker-name {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.speaker-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 2px;
}

.speaker-preview-card p {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .speaker-preview-grid-meta {
    grid-template-columns: 1fr;
  }

  .speaker-preview {
    width: min(560px, 88vw);
  }

  .speaker-slide {
    grid-template-columns: 96px 1fr;
  }

  .speaker-photo {
    width: 96px;
    height: 96px;
}
}

@media (max-width: 600px) {
  .meta-item-keynote-trigger {
    font-size: 0.8rem;
    padding: 10px 14px;
  }

  .speaker-preview-meta {
    padding: 16px;
  }

  .speaker-preview-sheet {
    width: min(94vw, 520px);
    max-height: calc(100vh - 32px);
    padding: 18px;
  }

  .speaker-preview-grid-meta,
  .speaker-preview-grid {
    grid-template-columns: 1fr;
  }

  .speaker-preview-head-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .speaker-slide {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .speaker-slide-copy {
    align-items: center;
  }

  .speaker-photo,
  .speaker-photo-wrap::after {
    width: 106px;
    height: 106px;
  }
}

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 60px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f5c518' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-band-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 40px 24px;
  }

  .tracks-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prog-grid {
    grid-template-columns: 1fr;
  }

  .prog-section-header {
    align-items: flex-start;
  }

  .prog-section-actions {
    width: 100%;
  }

  .prog-section-actions a {
    width: 100%;
    text-align: center;
  }

  .prog-card {
    flex-direction: column;
    gap: 8px;
  }

  .prog-time {
    padding-top: 0;
  }

  .prog-title {
    font-size: 0.84rem;
  }

  .prog-meta {
    font-size: 0.7rem;
  }

  .meta-item {
    padding: 14px 20px;
  }

  .stat-band-item {
    padding: 8px 24px;
  }

  .timeline {
    flex-direction: column;
    gap: 16px;
  }

  .timeline::before {
    display: none;
  }

  .countdown-item {
    padding: 15px 20px;
    min-width: 80px;
  }

  .countdown-number {
    font-size: 2.5rem;
  }
}

@media(max-width: 480px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   📱 MOBILE TABLE-TO-CARD MATRIX TRANSFORMER (For Screens Below 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* 1. Force the main table elements to act as blocks rather than cell grids */
  #packages-section table,
  #packages-section tbody,
  #packages-section tr,
  #packages-section td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 2. Completely hide the desktop table headers (Sponsorship Level, Price, Slots) */
  #packages-section thead {
    display: none !important;
  }

  /* 3. Re-engineer each table row (tr) into an independent, padded mobile card */
  #packages-section tr {
    background: #ffffff;
    border: 1px solid rgba(0, 32, 96, 0.15);
    /* Clean portal-navy border tint */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    /* Creates clean breathing room between pricing blocks */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: left !important;
  }

  /* 4. Format the Tier Badges (Platinum, Gold, etc.) as prominent headers */
  #packages-section td:first-of-type {
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  /* 5. Restyle the Price Column to stand out boldly */
  #packages-section td:nth-of-type(2) {
    font-size: 1.6rem;
    font-weight: 800;
    color: #002060;
    /* Portal Navy */
    margin-bottom: 8px;
  }

  /* Append a dynamic currency label prefix on mobile views */
  #packages-section td:nth-of-type(2)::before {
    content: "Investment: KSH ";
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 2px;
  }

  /* 6. Restyle the Slots Available Badge */
  #packages-section td:nth-of-type(3) {
    display: inline-block !important;
    margin-bottom: 15px;
  }

  /* 7. Let the bullet point perk details expand back to full horizontal space */
  #packages-section td ul {
    padding-left: 20px !important;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #packages-section td ul li {
    margin-bottom: 8px;
    white-space: normal !important;
    /* Forces clipped text to wrap to new lines naturally */
  }

  /* 8. Fix the Top Nav cut-off: Ensure it uses a flexible static flow on mobile */
  .topnav {
    position: static !important;
    /* Stops it from pinning over data elements blindly */
    height: auto !important;
    padding: 15px !important;
  }
}

/* ==========================================================================
   ♿ VISUALLY HIDDEN ACCESSIBILITY SKIP UTILITY
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  /* Throws it completely off-screen by default */
  left: 20px;
  background: rgb(204, 235, 5);
  /* Brand Lime-Gold */
  color: #002060;
  /* Portal Navy */
  padding: 12px 24px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 999999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Slide it into view ONLY when it receives active keyboard focus */
.skip-link:focus-visible {
  top: 0;
}

.accessibility-toolbar {
  position: fixed;
  left: 16px;
  top: 120px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.accessibility-button {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}

.accessibility-icon {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
}

.accessibility-button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

body.accessibility-high-contrast .accessibility-toolbar {
  background: #fff;
  border-color: #000;
}

body.accessibility-high-contrast .accessibility-button {
  background: #fff;
  border-color: #000;
  color: #000;
}

body.accessibility-high-contrast .accessibility-button[aria-pressed="true"] {
  background: #000;
  border-color: #000;
  color: #ff0;
}

@media (max-width: 640px) {
  .accessibility-toolbar {
    top: auto;
    left: 10px;
    right: auto;
    bottom: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .accessibility-button {
    width: 44px;
    height: 44px;
  }
}

/* ── DYSLEXIA FONT STYLES ── */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://fonts.googleapis.com/css2?family=Comic+Sans+MS&display=swap') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Additional high contrast for form elements and buttons */
body.accessibility-high-contrast .form-control {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

body.accessibility-high-contrast .btn,
body.accessibility-high-contrast .cta-primary,
body.accessibility-high-contrast .cta-ghost,
body.accessibility-high-contrast .topnav-btn {
  border: 2px solid #000 !important;
}

body.accessibility-high-contrast table th {
  background: #000;
  color: #ff0;
}

body.accessibility-high-contrast table td {
  border-bottom: 1px solid #000;
  background: #fff;
  color: #000;
}

body.accessibility-high-contrast .speaker-preview,
body.accessibility-high-contrast .speaker-slide {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Focus styles for high contrast mode */
body.accessibility-high-contrast :focus {
  outline: 3px solid #00ffff;
  outline-offset: 2px;
}

/* Ensure tooltips and hints are visible in high contrast */
body.accessibility-high-contrast .form-hint,
body.accessibility-high-contrast .section-sub,
body.accessibility-high-contrast .track-desc {
  color: #fff;
}

/* Links in high contrast */
body.accessibility-high-contrast a {
  color: #ff0;
  text-decoration: underline;
}

body.accessibility-high-contrast a:hover,
body.accessibility-high-contrast a:focus {
  color: #fff;
  background: #ff0;
}

/* ── ACCESSIBILITY TOOLBAR ENHANCEMENTS ── */
.accessibility-toolbar {
  backdrop-filter: blur(10px);
}

.accessibility-button .shortcut-hint {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 4px;
}

/* Tooltip for accessibility buttons */
.accessibility-button[title] {
  position: relative;
}

.accessibility-button[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #002060;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10001;
  width: max-content;
}

.accessibility-button[title]:hover::after,
.accessibility-button[title]:focus::after {
  opacity: 1;
  transform: translateY(-2px);
}

body.accessibility-high-contrast .accessibility-button[title]::after {
  background: #fff;
  color: #000;
}

/* Keyboard help indicator */
.accessibility-help-keys {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

body.accessibility-high-contrast .accessibility-help-keys {
  color: #fff;
}

/* Speaker modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4,8,22,0.5);
  z-index: 10000;
}
.modal-overlay[aria-hidden="false"] {
  display: flex;
}
.modal {
  width: min(900px, 94vw);
  max-width: 900px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98));
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(2,6,23,0.6);
  padding: 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}
.modal-close {
  position: absolute;
  right: 24px;
  top: 20px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}
.modal-body {
  display: contents;
}
.modal-photo-wrap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(7,16,89,0.12);
}
.modal-copy h3 {
  margin-top: 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
}
.modal-copy .speaker-role {
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 6px;
}
.modal-copy p {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .modal { grid-template-columns: 1fr; }
  .modal-close { right: 12px; top: 12px; }
}

/* ── CONTACT PAGE ── */
body.contact-page {
  background:
    radial-gradient(circle at top left, rgba(245, 197, 24, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 44, 99, 0.12), transparent 24%),
    linear-gradient(180deg, #eef4ff 0%, #f7faff 42%, #eef2fb 100%);
}

.contact-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 197, 24, 0.26), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(135deg, #051246 0%, #0d1b6e 42%, #113a86 100%);
  color: #fff;
  padding: 58px 0 28px;
}

.contact-hero::before,
.contact-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero::before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.24), transparent 68%);
}

.contact-hero::after {
  width: 380px;
  height: 380px;
  left: -150px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
}

.contact-hero-copy .section-title,
.contact-hero-copy .section-sub,
.contact-hero-copy .section-label {
  color: #fff;
}

.contact-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-ghost-light {
  border-color: rgba(255,255,255,0.35);
}

.contact-hero-panel {
  padding: 30px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(245, 197, 24, 0.08));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 72px rgba(2, 8, 29, 0.28);
  backdrop-filter: blur(12px);
}

.contact-hero-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 12px 0;
}

.contact-hero-panel p {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.contact-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245,197,24,0.18);
  color: #ffeb9c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-grid-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 18px;
}

.contact-form-card,
.contact-info-card,
.contact-mini,
.contact-map-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.95));
  border: 1px solid rgba(13,27,110,0.08);
  box-shadow: 0 18px 44px rgba(11, 26, 48, 0.08);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-flashes {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-flash,
.flash {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.flash-success,
.contact-flash-success {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.25);
  color: #17663a;
}

.flash-danger,
.contact-flash-danger {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.25);
  color: #9c2419;
}

.flash-warning,
.contact-flash-warning {
  background: rgba(243, 156, 18, 0.12);
  border: 1px solid rgba(243, 156, 18, 0.25);
  color: #8a5a00;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-grid label,
.contact-terms {
  display: grid;
  gap: 8px;
}

.contact-message-field {
  grid-column: 1 / -1;
}

.contact-form label span,
.contact-terms span {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 110, 0.12);
  background: linear-gradient(180deg, #fbfdff, #f2f6ff);
  color: var(--text-dark);
  padding: 14px 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(245,197,24,0.28);
  border-color: rgba(245,197,24,0.9);
  box-shadow: 0 0 0 6px rgba(245,197,24,0.08);
}

.contact-terms {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.contact-terms input {
  margin-top: 4px;
}

.contact-submit {
  justify-self: start;
  background: linear-gradient(135deg, #0d1b6e 0%, #16379a 100%);
  color: #fff9e8;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 34px rgba(13, 27, 110, 0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #102179 0%, #1b43b7 100%);
  box-shadow: 0 22px 42px rgba(13, 27, 110, 0.3), inset 0 1px 0 rgba(255,255,255,0.16);
}

.contact-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(245,197,24,0.18), 0 18px 38px rgba(13, 27, 110, 0.26);
}

.contact-side {
  display: grid;
  gap: 14px;
}

.contact-info-card h3,
.contact-mini h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-info-card p,
.contact-mini li,
.contact-mini a {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-mini ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-mini li + li {
  margin-top: 8px;
}

.contact-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(13,27,110,0.12);
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 26, 48, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-social-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(11, 26, 48, 0.12);
  background: linear-gradient(135deg, rgba(245,197,24,0.12), rgba(17,58,134,0.08));
}

.contact-map-section {
  padding-bottom: 56px;
}

.contact-map-frame {
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13,27,110,0.08);
  background: linear-gradient(135deg, #0d1b6e, #113a86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 16px 40px rgba(11,26,48,0.12);
}

.contact-map-frame iframe {
  width: 100%;
  height: 340px;
  display: block;
}

.contact-footer {
  background: linear-gradient(135deg, #051246 0%, #0d1b6e 45%, #113a86 100%);
  color: #fff;
  padding: 28px 5% 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -18px 40px rgba(11, 26, 48, 0.12);
}

.contact-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.contact-footer-brand,
.contact-footer-links,
.contact-footer-contact {
  display: grid;
  gap: 10px;
}

.contact-footer-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.contact-footer-brand p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 36rem;
}

.contact-footer-links h3,
.contact-footer-contact h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245,197,24,0.92);
  margin: 0;
}

.contact-footer-links a,
.contact-footer-contact a,
.contact-footer-contact span {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  line-height: 1.7;
}

.contact-footer-links a:hover,
.contact-footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ── LANDING FOOTER ── */
.conference-footer {
  background: #0b1a30;
  color: #fff;
  padding: 56px 5% 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.conference-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--gold);
}

.conference-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.1fr;
  gap: 32px;
}

.footer-brand-panel,
.footer-links-panel,
.footer-connect-panel {
  text-align: left;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.footer-brand-top strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.footer-brand-top strong span {
  color: rgb(204, 235, 5);
}

.footer-brand-panel p {
  color: #cbd5e1;
  font-size: 0.87rem;
  line-height: 1.7;
  margin: 0 0 18px 0;
}

.footer-alert {
  display: grid;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  padding: 14px;
  border-radius: 10px;
  border-left: 3px solid rgb(204, 235, 5);
}

.footer-alert-kicker {
  color: rgb(204, 235, 5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.footer-alert a,
.footer-links-panel a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links-panel h4,
.footer-connect-panel h4 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 0.96rem;
  margin: 0 0 16px 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-panel h4::after,
.footer-connect-panel h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: rgb(204, 235, 5);
}

.footer-links-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links-panel li {
  line-height: 1.55;
}

.footer-links-panel a:hover,
.footer-alert a:hover,
.footer-social-row a:hover {
  color: rgb(204, 235, 5);
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.footer-map-frame {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #001233;
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.conference-footer-bar {
  margin-top: 42px;
  background: #002060;
  color: #fff;
  padding: 14px 40px;
  margin-left: -5%;
  margin-right: -5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 980px) {
  .kise-highlight-grid,
  .conference-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .kise-highlight-grid,
  .conference-footer-inner {
    grid-template-columns: 1fr;
  }

  .conference-footer {
    padding-top: 44px;
  }

  .footer-brand-panel,
  .footer-links-panel,
  .footer-connect-panel {
    text-align: left;
  }

  .footer-social-row {
    gap: 8px;
  }

  .footer-social-row a {
    min-width: 0;
    padding: 9px 12px;
  }

  .footer-map-frame {
    height: 120px;
  }

  .conference-footer-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 900px) {
  .contact-hero-inner,
  .contact-grid-wrap,
  .contact-links-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }
}

.accessibility-button:hover .accessibility-icon,
.accessibility-button:focus-visible .accessibility-icon {
  transform: scale(1.08);
}

.accessibility-button .sr-only {
  position: absolute !important;
}