:root {
  --itg-color-text: #444;
  --itg-color-error: #c00;
  --itg-color-white: #fff;
  --itg-color-border: #e0e0e0;
  --itg-color-bg-page: #f9f9f9;
  --itg-color-primary: #0f2d52;
  --itg-color-bg-light: #f8f9fa;
  --itg-color-text-dark: #333;
  --itg-color-accent-gold: #daa520;
  --itg-color-error-light: #b30000;
  --itg-color-border-table: #ccc;
  --itg-color-accent-bright: #FFBF3C;
  --itg-color-primary-hover: #1a4a7a;
  --itg-color-text-secondary: #666;
  --itg-color-accent-gold-hover: #c4941a;
  --itg-list-indent: 1.5rem;
  --itg-section-gap: 2rem;
  --itg-page-padding: 2rem 1rem;
  --itg-page-max-width: 1200px;
  --itg-page-narrow-width: 900px;
  --itg-page-padding-mobile: 1rem;
  --itg-radius-card: 8px;
  --itg-radius-image: 8px;
  --itg-radius-button: 4px;
  --itg-transition-fast: 0.2s;
  --itg-transition-link: 0.15s;
  --itg-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --itg-font-size-h1: 2rem;
  --itg-font-size-h2: 1.5rem;
  --itg-font-size-h3: 1.25rem;
  --itg-font-size-h4: 1.1rem;
  --itg-font-size-body: 1rem;
  --itg-font-size-hero: 2.5rem;
  --itg-font-size-lead: 1.1875rem;
  --itg-font-size-meta: 0.9375rem;
  --itg-font-size-label: 0.8125rem;
  --itg-font-size-small: 0.875rem;
  --itg-line-height-body: 1.7;
  --itg-line-height-card: 1.4;
  --itg-line-height-meta: 1.6;
  --itg-font-size-subtitle: 1.125rem;
  --itg-line-height-heading: 1.3;
  --itg-line-height-summary: 1.5;
  --itg-font-size-h1-mobile: 1.5rem;
  --itg-font-size-h2-mobile: 1.25rem;
  --itg-font-size-h3-mobile: 1.125rem;
  --itg-font-size-h4-mobile: 1rem;
  --itg-font-size-hero-mobile: 1.75rem;
  --itg-font-size-lead-mobile: 1.0625rem;
  --itg-font-size-table-mobile: 0.875rem;
}

/* ---- layout.css ---- */
/* ==========================================================================
   Page Container
   ========================================================================== */

.itg-page {
  max-width: var(--itg-page-max-width);
  margin: 0 auto;
  padding: var(--itg-page-padding);
}

.itg-page-narrow {
  max-width: var(--itg-page-narrow-width);
  margin: 0 auto;
  padding: var(--itg-page-padding);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.itg-page-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.itg-section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.itg-subsection-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 1.5rem 0 0.75rem;
}

.itg-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.itg-lead {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-lead);
  font-weight: 600;
  line-height: var(--itg-line-height-body);
  margin: 0 0 1.5rem;
}

.itg-subtitle {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-subtitle);
  margin: 0 0 2rem;
}

/* ==========================================================================
   Section Header (boxed style used by event, schedule, acknowledgement, etc.)
   ========================================================================== */

.itg-section-header {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 1.5rem;
}

/* ---- actions-cards.css ---- */
/* ==========================================================================
   Links
   ========================================================================== */

.itg-link {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.itg-link:hover {
  text-decoration: underline;
}

.itg-back-link {
  display: inline-block;
  color: var(--itg-color-primary);
  text-decoration: none;
  font-size: var(--itg-font-size-meta);
  margin-bottom: 1.5rem;
}

.itg-back-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.itg-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-meta);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--itg-transition-fast), color var(--itg-transition-fast);
}

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

.itg-btn-primary:hover {
  background: var(--itg-color-primary-hover);
}

.itg-btn-outline {
  background: var(--itg-color-white);
  border: 1px solid var(--itg-color-primary);
  color: var(--itg-color-primary);
}

.itg-btn-outline:hover:not(:disabled) {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.itg-btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.itg-btn-accent {
  background: var(--itg-color-accent-gold);
  color: var(--itg-color-white);
}

.itg-btn-accent:hover {
  background: var(--itg-color-accent-gold-hover);
}

.itg-btn-bright {
  background: var(--itg-color-accent-bright);
  color: var(--itg-color-primary);
}

.itg-btn-bright:hover {
  opacity: 0.85;
}

.itg-btn-lg {
  padding: 0.75rem 2rem;
  font-size: var(--itg-font-size-body);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.itg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  overflow: hidden;
  background: var(--itg-color-white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--itg-transition-fast), transform var(--itg-transition-fast);
}

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

/* ==========================================================================
   Meta Box (detail pages)
   ========================================================================== */

.itg-meta-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--itg-color-bg-light);
  border-radius: var(--itg-radius-card);
  margin-bottom: 2rem;
}

.itg-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.itg-meta-label {
  font-size: var(--itg-font-size-label);
  color: var(--itg-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.itg-meta-value {
  font-size: var(--itg-font-size-body);
  color: var(--itg-color-primary);
  font-weight: 500;
}

/* ---- utilities.css ---- */
/* ==========================================================================
   Notice / Info Box
   ========================================================================== */

.itg-notice {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* ==========================================================================
   Placeholder (empty state)
   ========================================================================== */

.itg-placeholder {
  background: var(--itg-color-bg-light);
  border: 2px dashed #d0d0d0;
  border-radius: var(--itg-radius-card);
  padding: 2rem;
  text-align: center;
}

.itg-placeholder .itg-text {
  color: #888;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.itg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.itg-pagination-info {
  font-size: var(--itg-font-size-meta);
  color: var(--itg-color-text);
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.itg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-body);
  gap: 1rem;
}

.itg-loading::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--itg-color-border);
  border-top-color: var(--itg-color-primary);
  border-radius: 50%;
  animation: itg-spin 0.8s linear infinite;
}

@keyframes itg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Error State
   ========================================================================== */

.itg-error {
  color: var(--itg-color-error-light);
}

/* ---- rich-content.css ---- */
/* ==========================================================================
   Rich Content (shared between CMS rich text and dedicated page content)
   ========================================================================== */

.itg-content p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 0.75rem;
}

.itg-content strong {
  color: var(--itg-color-text-dark);
}

.itg-content ul,
.itg-content ol {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0.5rem 0 0.75rem var(--itg-list-indent);
}

.itg-content li {
  margin-bottom: 0.5rem;
}

.itg-content ol li {
  margin-bottom: 0.75rem;
}

.itg-content ol ul {
  margin: 0.5rem 0 0 var(--itg-list-indent);
  list-style-type: disc;
}

.itg-content ol ul li {
  margin-bottom: 0.25rem;
}

.itg-content a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.itg-content a:hover {
  text-decoration: underline;
}

.itg-content h2 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.itg-content h3 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 1.5rem 0 0.75rem;
}

.itg-content h4 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h4);
  margin: 1.5rem 0 0.5rem;
}

/* --- Tables --- */
.itg-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--itg-font-size-meta);
  line-height: var(--itg-line-height-meta);
}

.itg-content th,
.itg-content td {
  border: 1px solid var(--itg-color-border-table);
  padding: 0.75rem;
  vertical-align: top;
  color: var(--itg-color-text);
}

.itg-content th {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  font-weight: 600;
  text-align: left;
}

.itg-content table ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.itg-content table li {
  margin-bottom: 0.25rem;
}

/* --- Important text (red emphasis) --- */
.itg-important {
  color: var(--itg-color-error);
  font-weight: 700;
}

/* ==========================================================================
   Navigation Row (flex row of links/buttons)
   ========================================================================== */

.itg-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--itg-color-border);
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

.itg-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---- responsive.css ---- */
/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .itg-page,
  .itg-page-narrow {
    padding: var(--itg-page-padding-mobile);
  }

  .itg-page-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .itg-section-title {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .itg-subsection-title {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .itg-section-header {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .itg-lead {
    font-size: var(--itg-font-size-lead-mobile);
  }

  .itg-btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: var(--itg-font-size-small);
  }

  .itg-grid-cards {
    grid-template-columns: 1fr;
  }

  .itg-meta-box {
    grid-template-columns: 1fr 1fr;
  }

  .itg-content table {
    font-size: var(--itg-font-size-table-mobile);
  }

  .itg-content th,
  .itg-content td {
    padding: 0.5rem;
  }

  .itg-content h2 {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .itg-content h3 {
    font-size: var(--itg-font-size-h3-mobile);
  }
}

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

/* ---- Container.css ---- */
.app-layout {
  min-height: 50vh;
  max-width: var(--itg-page-max-width);
  margin: 0 auto;
  padding: var(--itg-page-padding);
  width: 100%;
  box-sizing: border-box;
}

.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-body);
  gap: 1rem;
}

.page-loader::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--itg-color-border);
  border-top-color: var(--itg-color-primary);
  border-radius: 50%;
  animation: itg-spin 0.8s linear infinite;
}

@media (max-width: 768px) {
  .app-layout {
    padding: var(--itg-page-padding-mobile);
  }
}

/* ---- shell.css ---- */
/* noinspection DuplicatedCode */
/* ============================================
   Header â Redesigned per UC Merced I2G reference
   - Top: navy bar with gold divider
   - Bottom: white menu bar with badge + nav + date
   ============================================ */

:root {
  --header-navy: #003366;
  --header-navy-dark: #0b1f3f;
  --header-gold: #daa520;
  --header-text: #003366;
  --header-bg: #ffffff;
  --dropdown-bg: #f5f5f5;
  --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Sticky on #menu-root (direct child of body) so the bottom bar
   sticks at viewport top once the top navy bar (72px + 4px gold) scrolls away. */
#menu-root {
  position: sticky;
  top: -76px;
  z-index: 1000;
}

.site-header {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.site-header-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top + bottom: same max width and horizontal padding as top bar */
.site-header-top .site-header-container,
.site-header-bottom .site-header-container {
  width: min(1280px, calc(100% - 48px));
}

/* ---------- Top bar ---------- */
.site-header-top {
  background: var(--header-navy-dark);
  border-bottom: 4px solid var(--header-gold);
}

.site-header-top-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ucm-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.ucm-wordmark img {
  height: 32px;
  width: auto;
  display: block;
}

.site-header-top-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1;
}

.site-header-top-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.site-header-top-logo-icon {
  display: none;
  height: 30px;
  width: 30px;
  border-radius: 999px;
  object-fit: cover;
}

.site-header-top-logo-full {
  display: block;
}

.site-header-top-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-header-top-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}

.site-header-top-links a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

/* ---- desktop-bars.css ---- */
/* ---------- Bottom menu bar ---------- */
.site-header-bottom {
  background: var(--header-bg);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.site-header-bottom-inner {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header-bottom-left {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  flex: 1;
}

.site-header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
  align-self: center;
}

.site-header-badge img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 2px solid var(--header-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header-badge:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.site-header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-self: stretch;
  align-items: stretch;
  min-width: 0;
}

@keyframes menuNavIntroFade {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.site-header-nav.menu-nav-intro-fade {
  animation: menuNavIntroFade 0.25s ease forwards;
}

.menu-bar-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  height: 100%;
}

.menu-bar-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-bar-item.has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.menu-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  color: var(--header-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.menu-bar-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--header-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.menu-bar-link:hover::after,
.menu-bar-item.is-open > .menu-bar-link::after {
  transform: scaleX(1);
}

.menu-bar-link:hover {
  color: var(--header-navy-dark);
}

.menu-bar-item.is-open > .menu-bar-link {
  color: var(--header-navy-dark);
}

.menu-bar-arrow {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-bar-item.is-open > .menu-bar-link .menu-bar-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.menu-bar-item.is-muted .menu-bar-link {
  color: #8899aa;
  font-style: italic;
}

.menu-bar-item.is-error .menu-bar-link {
  color: #c0392b;
}

.site-header-bottom-inner:has(.site-header-member.is-authenticated) .menu-bar-list {
  gap: 16px;
}

.site-header-bottom-inner:has(.site-header-member.is-authenticated) .menu-bar-link {
  font-size: 13px;
}

.site-header-bottom-inner:has(.site-header-member.is-authenticated) .site-header-date {
  display: none;
}

/* ---- desktop-dropdowns.css ---- */
/* Desktop nav loading skeleton (similar height to .menu-bar-link) */
@keyframes menu-bar-skeleton-pulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.75;
  }
}

.menu-bar-item--skeleton {
  pointer-events: none;
}

.menu-bar-list--skeleton .menu-bar-skeleton {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(0, 51, 102, 0.12) 0%,
    rgba(0, 51, 102, 0.2) 50%,
    rgba(0, 51, 102, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: menu-bar-skeleton-pulse 1.2s ease-in-out infinite;
}

.header-mobile-nav-skeleton {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header-mobile-nav-skeleton-row {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.header-mobile-nav-skeleton .menu-bar-skeleton {
  display: block;
  height: 16px;
  max-width: 100%;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(0, 51, 102, 0.12) 0%,
    rgba(0, 51, 102, 0.22) 50%,
    rgba(0, 51, 102, 0.12) 100%
  );
  animation: menu-bar-skeleton-pulse 1.2s ease-in-out infinite;
}

.site-header-date {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--header-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}

/* ---------- Dropdowns (desktop) ---------- */
.menu-dropdown {
  position: absolute;
  /* Flush with bottom of site-header-bottom (li spans full inner bar height) */
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--dropdown-bg);
  border-left: 3px solid var(--header-gold);
  box-shadow: var(--dropdown-shadow);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.menu-dropdown.is-open,
.menu-bar-item:focus-within > .menu-dropdown,
.menu-bar-item:hover > .menu-dropdown {
  opacity: 1;
  visibility: visible;
}

.menu-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-dropdown-item {
  position: relative;
}

.menu-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--header-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.menu-dropdown-link:hover {
  background: rgba(0, 51, 102, 0.06);
  padding-left: 24px;
}

.menu-dropdown-arrow {
  margin-left: auto;
  color: #888;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.menu-dropdown-item.has-children:hover > .menu-dropdown-link .menu-dropdown-arrow {
  transform: translateX(3px);
}

.menu-bar-link:focus-visible,
.menu-dropdown-link:focus-visible {
  outline: 2px solid var(--header-gold);
  outline-offset: 2px;
}

.menu-dropdown-nested {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--header-bg);
  border-left: 3px solid var(--header-gold);
  box-shadow: var(--dropdown-shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1101;
}

.menu-dropdown-item.has-children:focus-within > .menu-dropdown-nested,
.menu-dropdown-item.has-children:hover > .menu-dropdown-nested {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ---- mobile-shell.css ---- */
/* ---------- Mobile toggle (hidden on desktop) ---------- */
.site-header-mobile-toggle {
  display: none;
  box-sizing: border-box;
  width: 40px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--header-gold);
  background: var(--header-navy-dark);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s ease;
}

.site-header-mobile-toggle:hover {
  background: rgba(218, 165, 32, 0.15);
}

.site-header-mobile-toggle-bar {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--header-gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header-mobile-toggle.is-active .site-header-mobile-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header-mobile-toggle.is-active .site-header-mobile-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header-mobile-toggle.is-active .site-header-mobile-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Menu Overlay ---------- */
.header-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 102, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
}

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

/* ---------- Mobile Menu Panel ---------- */
.header-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  background: var(--header-bg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.header-mobile-menu.is-open {
  transform: translateX(0);
}

.header-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--header-navy-dark);
  flex-shrink: 0;
}

.header-mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-mobile-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--header-gold);
}

.header-mobile-brand span {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.header-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border: 2px solid var(--header-gold);
  background: var(--header-navy-dark);
  color: var(--header-gold);
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-mobile-close:hover {
  background: rgba(218, 165, 32, 0.15);
}


/* ---- mobile-nav.css ---- */
/* Mobile Navigation */
.header-mobile-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.header-mobile-nav .menu-bar-list {
  display: block;
  gap: 0;
  height: auto;
}

.header-mobile-nav .menu-bar-item {
  display: block;
  height: auto;
  border-bottom: 1px solid #eee;
}

.header-mobile-nav .menu-dropdown-list,
.header-mobile-nav .menu-dropdown-list.nested {
  display: block;
}

.header-mobile-nav .menu-dropdown-item {
  display: block;
}

.header-mobile-nav .menu-bar-link {
  padding: 14px 20px;
  color: var(--header-text);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0;
  justify-content: space-between;
  width: 100%;
}

.header-mobile-nav .menu-bar-link::after {
  display: none;
}

.header-mobile-nav .menu-bar-link:hover {
  background: #f5f7fa;
}

.header-mobile-nav .menu-bar-arrow {
  display: none;
}

.header-mobile-nav .menu-dropdown {
  position: static;
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border-radius: 0;
  border-left: none;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  min-width: 100%;
}

.header-mobile-nav .menu-dropdown-link {
  padding: 12px 20px 12px 36px;
  font-size: 14px;
}

.header-mobile-nav .menu-dropdown-link:hover {
  padding-left: 40px;
  background: rgba(0, 51, 102, 0.04);
}

.header-mobile-nav .menu-dropdown-nested {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border-radius: 0;
  border-left: none;
  margin: 0;
  padding: 0;
  background: #eef1f5;
}

.header-mobile-nav .menu-dropdown-nested .menu-dropdown-link {
  padding-left: 52px;
  font-size: 13px;
}

/* Mobile Actions */
.header-mobile-actions {
  padding: 10px 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
  background: #fafafa;
}

.header-mobile-action {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--header-text);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.header-mobile-action:hover {
  background: #f5f7fa;
  border-color: var(--header-gold);
}

.header-mobile-action .fa {
  width: 18px;
  text-align: center;
  color: var(--header-gold);
}


/* Mobile Footer */
.header-mobile-footer {
  padding: 20px;
  text-align: center;
  border-top: none;
  flex-shrink: 0;
  background: var(--header-navy-dark);
}

.header-mobile-footer img {
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.header-mobile-footer a:hover img {
  opacity: 1;
}


/* ---- responsive.css ---- */
/* ---------- Responsive: Large Desktop ---------- */
@media (max-width: 1400px) {
  .site-header-bottom-inner {
    gap: 24px;
  }

  .site-header-bottom-left {
    gap: 16px;
  }

  .menu-bar-list {
    gap: 20px;
  }

  .menu-bar-link {
    font-size: 14px;
  }

  .site-header-date {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .member-button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 1280px) {
  .site-header-bottom-inner {
    gap: 16px;
  }

  .menu-bar-list {
    gap: 16px;
  }

  .site-header-date {
    display: none;
  }

  .site-header-member {
    margin-left: 0;
  }
}

@media (max-width: 1200px) {
  .menu-bar-list {
    gap: 14px;
  }

  .menu-bar-link {
    font-size: 13px;
  }

  .site-header-bottom-left {
    gap: 12px;
  }

  .member-button {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 992px) {
  .site-header-container {
    width: calc(100% - 32px);
  }

  /* Top bar: only show I2G icon on small widths */
  .site-header-top-inner {
    position: relative;
    justify-content: space-between;
    gap: 12px;
    padding-inline: 4px;
  }

  .ucm-wordmark,
  .site-header-top-links {
    display: none;
  }

  .site-header-top-logo {
    flex: 0 0 auto;
    justify-content: flex-start;
    order: 1;
  }

  .site-header-top-logo img.site-header-top-logo-full {
    display: block !important;
    height: 44px;
  }

  .site-header-top-logo-icon {
    display: none !important;
  }

  /* Hide the white menubar entirely on small widths */
  .site-header-bottom {
    display: none;
  }

  .site-header-date {
    display: none;
  }

  .site-header-nav {
    display: none;
  }

  .site-header-mobile-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: static;
    order: 2;
    margin-left: auto;
  }

  .header-mobile-actions,
  .header-mobile-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header-container {
    width: calc(100% - 24px);
  }

  .site-header-top-inner {
    height: 54px;
  }

  .site-header-top-logo img.site-header-top-logo-full {
    height: 36px;
  }

  .header-mobile-brand span {
    font-size: 14px;
  }
}


/* ---- member-desktop.css ---- */
/* ---------- Member Section ---------- */
.site-header-member {
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

.site-header-member.is-authenticated {
  max-width: 240px;
  min-width: 140px;
  flex-shrink: 1;
}

/* Bridge gap so dropdown doesn't close */
.site-header-member::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.member-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--header-navy);
  border-radius: 6px;
  color: var(--header-navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.member-button:hover {
  background: var(--header-navy);
  color: #fff;
}

.member-button.authenticated {
  width: 100%;
  justify-content: space-between;
  background: #f0f4f8;
  border-color: #e0e0e0;
}

.site-header-member.is-open .member-button.authenticated {
  background: #fff;
  border-color: #e5e7eb;
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1101;
}

.member-button.authenticated:hover {
  background: #e5eaf0;
  border-color: var(--header-navy);
  color: var(--header-navy);
}

.site-header-member.is-open .member-button.authenticated:hover {
  background: #fff;
  border-color: #e5e7eb;
  color: var(--header-navy);
}

.member-button .fa {
  font-size: 14px;
}

.member-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.member-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.site-header-member:hover .member-arrow {
  transform: rotate(180deg);
}

.member-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: -1px;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 8px;
  z-index: 1100;
  animation: memberDropdownFadeIn 0.15s ease-out;
}

@keyframes memberDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(0);
    visibility: hidden;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

.member-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--header-text);
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.member-dropdown-item:hover {
  background: #f3f4f6;
}

.member-dropdown-item-account {
  color: var(--header-navy);
}

.member-dropdown-item-account:hover {
  background: #eef2f7;
}

.member-dropdown-item .fa {
  width: 16px;
  text-align: center;
  color: #9ca3af;
}

.member-dropdown-item-account .fa {
  color: var(--header-navy);
}

.member-dropdown-item.logout {
  color: #dc2626;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
  padding-top: 10px;
}

.member-dropdown-item.logout .fa {
  color: #dc2626;
}

.member-dropdown-item.logout:hover {
  background: #fef2f2;
}


/* ---- member-mobile.css ---- */
/* ---------- Mobile Member Section ---------- */
.header-mobile-member {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #f8fafc;
}

.header-mobile-member-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--header-text);
  margin-bottom: 12px;
}

.header-mobile-member-info .fa {
  font-size: 24px;
  color: var(--header-navy);
}

.header-mobile-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-mobile-member-actions {
  display: flex;
  gap: 8px;
}

.header-mobile-member-actions .header-mobile-action {
  flex: 1;
}

.header-mobile-member > .header-mobile-action {
  width: 100%;
}

.header-mobile-action.primary {
  background: var(--header-navy);
  color: #fff;
  border-color: var(--header-navy);
}

.header-mobile-action.primary:hover {
  background: var(--header-navy-dark);
}

/* Hide member section on mobile (show in mobile menu instead) */
@media (max-width: 992px) {
  .site-header-member {
    display: none;
  }
}

/* ---- base.css ---- */
.site-footer {
  background: #e5e6ea;
  color: #0b2653;
  width: 100%;
  margin-top: auto;
}

.footer-error {
  color: #a12622;
  padding: 16px;
  background: #ffecec;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.footer-main {
  padding: 48px 0 60px;
}

.footer-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 56px;
}

.footer-column h2 {
  font-size: 16px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0b2653;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li {
  margin-top: 10px;
}

.footer-column a {
  font-size: 14px;
  text-decoration: none;
  color: #0b2653;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-column a:hover {
  color: #04122d;
  text-decoration: underline;
}

.footer-column__body {
  color: #0b2653;
  font-size: 14px;
  line-height: 1.6;
}

.footer-column__body a {
  color: inherit;
  font-weight: 600;
}

.footer-column--address p {
  margin: 4px 0;
  color: #0b2653;
}

.socialIcons {
  margin-top: 20px;
}

.socialIcons .fa-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.socialIcons .fa-li {
  position: static;
  margin: 0;
  padding: 0;
}

.socialIcons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b2653;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.socialIcons a:hover {
  background: #061432;
  transform: translateY(-2px);
}

.footer-bottom {
  background: #0b1f3f;
  border-top: 6px solid #d3a437;
  padding: 18px 0;
}



/* ---- responsive.css ---- */
.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  color: #fff;
}

.footer-meta li {
  font-size: 13px;
  color: #fff;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-meta a:hover {
  opacity: 0.75;
}

.home-cta-row {
  /* Remove the colored band behind the CTA area */
  background: transparent;
  padding: 24px 0;
}

.sb-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.sb-col {
  display: flex;
  justify-content: center;
}

.hb__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Square corners */
  border-radius: 0;
  border: 2px solid currentColor;
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--invert-gold {
  color: #936200;
  border-color: #d3a437;
  background: transparent;
}

.btn--invert-gold:hover {
  background: #d3a437;
  color: #0b1f3f;
}

.btn--invert-blue {
  color: #0b2653;
  border-color: #0b2653;
  background: transparent;
}

.btn--invert-blue:hover {
  background: #0b2653;
  color: #fff;
}

.i2gHome {
  font-size: 14px;
  line-height: 1.6;
  color: #0b2653;
}

.i2gHome a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 640px) {
  .footer-main {
    padding: 36px 0 48px;
  }

  .footer-column h2 {
    font-size: 14px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---- content.css ---- */
/* ==========================================================================
   Rich Text Block (.cms-rich-text)
   Used by: AboutPage, SponsorshipPage, EngSLPage, and many others
   ========================================================================== */

.cms-rich-text h1 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-rich-text .section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.cms-rich-text .section-title:first-child {
  margin-top: 0;
}

.cms-rich-text h1.section-title {
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-rich-text p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 0.75rem;
}

.cms-rich-text strong {
  color: var(--itg-color-text-dark);
}

.cms-rich-text ul,
.cms-rich-text ol {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0.5rem 0 0.75rem var(--itg-list-indent);
}

.cms-rich-text li {
  margin-bottom: 0.5rem;
}

.cms-rich-text ol li {
  margin-bottom: 0.75rem;
}

.cms-rich-text ol ul {
  margin: 0.5rem 0 0 var(--itg-list-indent);
  list-style-type: disc;
}

.cms-rich-text ol ul li {
  margin-bottom: 0.25rem;
}

.cms-rich-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-rich-text a.submission-button {
  color: var(--itg-color-white);
}

.cms-rich-text a:hover {
  text-decoration: underline;
}

.cms-rich-text h2 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.cms-rich-text h3 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 1.5rem 0 0.75rem;
}

.cms-rich-text h4 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h4);
  margin: 1.5rem 0 0.5rem;
}

.cms-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--itg-font-size-meta);
  line-height: var(--itg-line-height-meta);
}

.cms-rich-text th,
.cms-rich-text td {
  border: 1px solid var(--itg-color-border-table);
  padding: 0.75rem;
  vertical-align: top;
  color: var(--itg-color-text);
}

.cms-rich-text th {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  font-weight: 600;
  text-align: left;
}

.cms-rich-text table ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.cms-rich-text table li {
  margin-bottom: 0.25rem;
}



/* ---- info.css ---- */
/* ==========================================================================
   Section Group Block (.cms-section-group)
   Used by: EventPreparationPage, VideoPreparationPage, PrivacyPolicyPage,
            SponsorAcknowledgementPage, FerpaAgreementPage, StudentAgreementPage
   ========================================================================== */

.cms-section-group .section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.cms-section-group .section-title:first-child,
.cms-section-group h1.section-title {
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-section-group section {
  margin-bottom: 2rem;
}

.cms-section-group section h2 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 0 0 0.75rem;
}

.cms-section-group section h3 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 1.5rem 0 0.75rem;
}

.cms-section-group section h4 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h4);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.cms-section-group p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 0.75rem;
}

.cms-section-group strong {
  color: var(--itg-color-text-dark);
}

.cms-section-group ul,
.cms-section-group ol {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0.5rem 0 0.75rem var(--itg-list-indent);
}

.cms-section-group li {
  margin-bottom: 0.5rem;
}

.cms-section-group ol li {
  margin-bottom: 0.75rem;
}

.cms-section-group ol ul {
  margin: 0.5rem 0 0 var(--itg-list-indent);
  list-style-type: disc;
}

.cms-section-group ol ul li {
  margin-bottom: 0.25rem;
}

.cms-section-group a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-section-group a:hover {
  text-decoration: underline;
}

.cms-section-group table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--itg-font-size-meta);
  line-height: var(--itg-line-height-meta);
}

.cms-section-group th,
.cms-section-group td {
  border: 1px solid var(--itg-color-border-table);
  padding: 0.75rem;
  vertical-align: top;
  color: var(--itg-color-text);
}

.cms-section-group th {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  font-weight: 600;
  text-align: left;
}

.cms-section-group table ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.cms-section-group table li {
  margin-bottom: 0.25rem;
}

/* Red emphasis text (used in student/event-prep pages) */
.cms-section-group .student-important {
  color: var(--itg-color-error);
  font-weight: 700;
}

/* ==========================================================================
   FAQ List Block (.cms-faq-list)
   ========================================================================== */

.cms-faq-list h1 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-faq-list h2 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  font-style: italic;
  margin: 2rem 0 0.75rem;
}

.cms-faq-list p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.cms-faq-list ul {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0.5rem 0 1.5rem var(--itg-list-indent);
}

.cms-faq-list li {
  margin-bottom: 0.5rem;
}

.cms-faq-list a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-faq-list a:hover {
  text-decoration: underline;
}



/* ---- lists.css ---- */
/* ==========================================================================
   Link List Block (.cms-link-list)
   Used by: PartnershipPage, PastEventsPage, PurchasingReimbursementPage, StudentsPage
   ========================================================================== */

.cms-link-list .section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 0.75rem;
}

.cms-link-list .section-title:first-child {
  margin-top: 0;
}

.cms-link-list h1.section-title {
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-link-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cms-link-list-items li {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
}

.cms-link-list-items a {
  color: var(--itg-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.cms-link-list-items a:hover {
  text-decoration: underline;
}

/* Bordered list style (for past events) */
.cms-link-list-bordered {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-link-list-bordered li {
  border-bottom: 1px solid var(--itg-color-border);
}

.cms-link-list-bordered li:first-child {
  border-top: 1px solid var(--itg-color-border);
}

.cms-link-list-bordered a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-body);
  text-decoration: none;
  transition: background-color var(--itg-transition-link);
}

.cms-link-list-bordered a:hover {
  background-color: var(--itg-color-bg-light);
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Grid Block (.cms-navigation-grid)
   ========================================================================== */

.cms-navigation-grid h1 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-navigation-grid .projects-hub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cms-navigation-grid .projects-hub-item {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-subtitle);
  line-height: var(--itg-line-height-body);
  margin: 0;
}

.cms-navigation-grid .projects-hub-link {
  color: var(--itg-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.cms-navigation-grid .projects-hub-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Contact Info Block (.cms-contact-info)
   ========================================================================== */

.cms-contact-info h1 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-contact-info p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.cms-contact-info a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-contact-info a:hover {
  text-decoration: underline;
}



/* ---- capstone.css ---- */
/* ==========================================================================
   Image + Text Block (.cms-image-text)
   Uses existing capstone-page.css classes
   ========================================================================== */

.cms-image-text .section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-image-text .capstone-content {
  overflow: hidden;
}

.cms-image-text .capstone-hero-image {
  float: right;
  max-width: 50%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--itg-radius-image);
}

.cms-image-text p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.cms-image-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-image-text a:hover {
  text-decoration: underline;
}

/* Capstone nav buttons (at bottom of capstone pages) */
.cms-image-text .capstone-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--itg-color-border);
}

.cms-image-text .capstone-nav-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-meta);
  text-decoration: none;
  transition: background var(--itg-transition-fast), color var(--itg-transition-fast);
}

.cms-image-text .capstone-nav-btn-primary {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.cms-image-text .capstone-nav-btn-primary:hover {
  background: var(--itg-color-primary-hover);
}

.cms-image-text .capstone-nav-btn-accent {
  background: var(--itg-color-accent-gold);
  color: var(--itg-color-white);
}

.cms-image-text .capstone-nav-btn-accent:hover {
  background: var(--itg-color-accent-gold-hover);
}

.cms-image-text .capstone-contact {
  text-align: center;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-meta);
  margin-top: 1.5rem;
}

/* ==========================================================================
   Proposal Cards Block (.cms-proposal-cards)
   Uses existing SampleProposalsPage.css classes
   ========================================================================== */

.cms-proposal-cards h1 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.cms-proposal-cards .proposal-card {
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--itg-color-white);
}

.cms-proposal-cards .proposal-card-header {
  background: var(--itg-color-bg-light);
  border-bottom: 1px solid var(--itg-color-border);
  padding: 0.75rem 1.25rem;
  font-size: var(--itg-font-size-h3);
  font-weight: 600;
  color: var(--itg-color-primary);
}

.cms-proposal-cards .proposal-card-body {
  padding: 1.25rem;
}

.cms-proposal-cards .proposal-field {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin-bottom: 0.25rem;
}

.cms-proposal-cards .proposal-label {
  font-weight: 600;
}

.cms-proposal-cards .proposal-section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-subtitle);
  margin: 1.5rem 0 0.5rem;
}

.cms-proposal-cards .proposal-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0;
}

.cms-proposal-cards .proposal-footer {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-meta);
  line-height: var(--itg-line-height-body);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--itg-color-border);
}

.cms-proposal-cards .proposal-footer a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.cms-proposal-cards .proposal-footer a:hover {
  text-decoration: underline;
}



/* ---- body-classes.css ---- */
/* ==========================================================================
   Shared body_html class patterns
   Reusable class-based styles used in CMS rich text content across pages.
   Element-level styling (p, h1-h4, ul, ol, a, table) is in content.css
   and info.css. This file covers unique visual patterns only.
   ========================================================================== */

/* --- Lead text (emphasized intro paragraph) --- */
.about-lead {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-lead);
  font-weight: 600;
  line-height: var(--itg-line-height-body);
  margin: 0 0 1.5rem;
}

/* --- Boxed section header --- */
.judges-section-header,
.past-events-page-section-title {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 2rem 0 1rem;
}

/* --- Bordered link list (past events) --- */
.past-events-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.past-events-page-list-item {
  border-bottom: 1px solid var(--itg-color-border);
}

.past-events-page-list-item:first-child {
  border-top: 1px solid var(--itg-color-border);
}

.past-events-page-link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-body);
  text-decoration: none;
  transition: background-color var(--itg-transition-link);
}

.past-events-page-link:hover {
  background-color: var(--itg-color-bg-light);
  text-decoration: underline;
}

/* --- Navigation button row (shared across projects-hub, submission pages) --- */
.projects-hub-nav,
.submission-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--itg-color-border);
}

.projects-hub-nav-btn,
.submission-nav-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-meta);
  text-decoration: none;
  transition: background var(--itg-transition-fast), color var(--itg-transition-fast);
}

.projects-hub-nav-btn-primary,
.submission-nav-btn-primary {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.projects-hub-nav-btn-primary:hover,
.submission-nav-btn-primary:hover {
  background: var(--itg-color-primary-hover);
}

.projects-hub-nav-btn-accent,
.submission-nav-btn-accent {
  background: var(--itg-color-accent-gold);
  color: var(--itg-color-white);
}

.projects-hub-nav-btn-accent:hover,
.submission-nav-btn-accent:hover {
  background: var(--itg-color-accent-gold-hover);
}

/* --- Contact footer (centered contact text below nav) --- */
.projects-hub-contact,
.submission-contact {
  text-align: center;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-meta);
  margin-top: 1.5rem;
}

.projects-hub-contact a,
.submission-contact a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.projects-hub-contact a:hover,
.submission-contact a:hover {
  text-decoration: underline;
}

/* --- Submission button (inline CTA) --- */
.submission-button {
  display: inline-block;
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
  padding: 0.75rem 2rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-body);
  text-decoration: none;
  transition: background var(--itg-transition-fast);
  margin-top: 0.25rem;
}

.submission-button:hover {
  background: var(--itg-color-primary-hover);
}

/* --- Student hub navigation list --- */
.student-hub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.student-hub-item {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-subtitle);
  line-height: var(--itg-line-height-body);
  margin: 0;
}

.student-hub-link {
  color: var(--itg-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.student-hub-link:hover {
  text-decoration: underline;
}

/* --- Centered text --- */
.sponsor-ack-center {
  text-align: center;
}

/* --- Bold closing text --- */
.attendees-page-closing {
  font-weight: 600;
  color: var(--itg-color-primary);
  margin-top: 1rem;
}

/* --- Construction placeholder --- */
.student-construction {
  color: #888;
  font-style: italic;
}


/* ---- preview.css ---- */
/* ==========================================================================
   CMS Block Styling
   Uses shared design tokens from styles/shared.css for consistency with
   dedicated page components in src/pages/.
   ========================================================================== */

/* --- Live Preview Modal --- */
.cms-live-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-live-preview-modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cms-live-preview-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: cms-live-dot-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.cms-live-preview-modal-text {
  color: #92400e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.cms-live-preview-modal-expiry {
  color: #b45309;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.cms-live-preview-modal-close {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 2rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cms-live-preview-modal-close:hover {
  background: #d97706;
}

/* --- Live Preview Badge (bottom-right, after modal dismissed) --- */
.cms-live-preview-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.cms-live-preview-badge:hover {
  background: #fde68a;
}

.cms-live-preview-badge-expiry {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

@keyframes cms-live-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Loading & error states --- */
.cms-page-loading {
  min-height: 200px;
}

.cms-page-error {
  color: var(--itg-color-text);
}



/* ---- responsive.css ---- */
/* ==========================================================================
   Table Block (.cms-table-block)
   ========================================================================== */

.cms-table-block {
  margin: 0 0 2.5rem;
}

.cms-table-block-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 0 0 1.25rem;
}

.cms-table-block-wrap {
  overflow-x: auto;
}

.cms-table-block-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--itg-color-white);
}

.cms-table-block-table th,
.cms-table-block-table td {
  border: 1px solid var(--itg-color-border-table);
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  padding: 0.75rem 0.875rem;
  text-align: left;
  vertical-align: top;
}

.cms-table-block-table th {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  /* Rich text */
  .cms-rich-text h1 {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-rich-text .section-title {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .cms-rich-text h3 {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .cms-rich-text table {
    font-size: var(--itg-font-size-table-mobile);
  }

  .cms-rich-text th,
  .cms-rich-text td {
    padding: 0.5rem;
  }

  /* Section group */
  .cms-section-group h1.section-title,
  .cms-section-group .section-title:first-child {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-section-group section h2 {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .cms-section-group section h3 {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .cms-section-group table {
    font-size: var(--itg-font-size-table-mobile);
  }

  .cms-section-group th,
  .cms-section-group td {
    padding: 0.5rem;
  }

  /* FAQ */
  .cms-faq-list h1 {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-faq-list h2 {
    font-size: var(--itg-font-size-h3-mobile);
  }

  /* Link list */
  .cms-link-list h1.section-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-link-list .section-title {
    font-size: var(--itg-font-size-h2-mobile);
  }

  /* Navigation grid */
  .cms-navigation-grid h1 {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-navigation-grid .projects-hub-item {
    font-size: var(--itg-font-size-body);
  }

  /* Contact info */
  .cms-contact-info h1 {
    font-size: var(--itg-font-size-h1-mobile);
  }

  /* Image text */
  .cms-image-text .section-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-image-text .capstone-hero-image {
    float: none;
    max-width: 100%;
    margin: 0 0 1.5rem;
  }

  /* Proposal cards */
  .cms-proposal-cards h1 {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .cms-proposal-cards .proposal-card-header {
    font-size: var(--itg-font-size-h4);
    padding: 0.625rem 1rem;
  }

  .cms-proposal-cards .proposal-card-body {
    padding: 1rem;
  }

  .cms-table-block-title {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .cms-table-block-table th,
  .cms-table-block-table td {
    font-size: var(--itg-font-size-table-mobile);
    padding: 0.5rem;
  }

  /* Body classes */
  .about-lead {
    font-size: var(--itg-font-size-lead-mobile);
  }

  .judges-section-header,
  .past-events-page-section-title {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .student-hub-item {
    font-size: var(--itg-font-size-body);
  }
}


/* ---- SponsorYearBlock.css ---- */
.cms-sponsor-year {
  margin: 0 0 2.5rem;
}

.cms-sponsor-year-title {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem;
}

.cms-sponsor-year-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.cms-sponsor-card {
  align-items: center;
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cms-sponsor-card:hover {
  border-color: var(--itg-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cms-sponsor-logo {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.cms-sponsor-card-placeholder {
  align-items: center;
  background: var(--itg-color-primary);
  border-radius: var(--itg-radius-button);
  color: #fff;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  height: 80px;
  justify-content: center;
  width: 80px;
}

.cms-sponsor-name {
  color: var(--itg-color-text);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cms-sponsor-year-title {
    font-size: var(--itg-font-size-h3-mobile);
  }

  .cms-sponsor-year-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ---- HomePage.css ---- */
/* CMS Homepage styling */
/* Hero */
.home-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.home-hero-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-hero);
  margin: 0 0 0.5rem;
}

.home-hero-subtitle {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-subtitle);
  margin: 0;
}

/* Quick links */
.home-quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.home-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-body);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--itg-transition-fast);
}

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

.home-btn-blue {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.home-btn-gold {
  background: var(--itg-color-accent-bright);
  color: var(--itg-color-primary);
}

/* Sections */
.home-section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 1rem;
}

.home-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.home-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.home-text a:hover {
  text-decoration: underline;
}

/* About */
.home-about {
  margin: 2rem 0;
}

.home-cta-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.home-link {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.home-link:hover {
  text-decoration: underline;
}

/* Notice */
.home-notice {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Event info */
.home-event-info {
  margin: 2rem 0;
}

.home-event-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-event-links a {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.home-event-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .home-hero-title {
    font-size: var(--itg-font-size-hero-mobile);
  }

  .home-hero-subtitle {
    font-size: var(--itg-font-size-body);
  }

  .home-btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--itg-font-size-small);
  }

  .home-section-title {
    font-size: var(--itg-font-size-h2-mobile);
  }
}


/* ---- EventPage.css ---- */
.event-page {
  --event-page-gold: var(--itg-color-accent-bright);
}

.event-page .cms-rich-text {
  margin: 0;
}

.event-page .cms-rich-text + .cms-rich-text {
  margin-top: 2rem;
}

.event-page .cms-rich-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.event-page .cms-rich-text a:hover {
  color: var(--itg-color-primary);
  text-decoration: underline;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.25rem;
  row-gap: 1.6rem;
  align-items: start;
}

.event-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-date {
  margin: 0 0 0.75rem;
  color: var(--itg-color-primary);
}

.event-section-title {
  margin: 0 0 0.75rem;
  color: var(--itg-color-primary);
}

.event-section-title a {
  color: inherit;
}

.event-list,
.event-schedule-list {
  margin: 0 0 1.2rem 1.25rem;
  padding: 0;
}

.event-list li,
.event-schedule-list li {
  margin-bottom: 0.15rem;
}

.event-list li:last-child,
.event-schedule-list li:last-child {
  margin-bottom: 0;
}

.event-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.35rem;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid currentColor;
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.event-btn:hover {
  text-decoration: none;
}

.event-btn-gold {
  color: var(--itg-color-primary);
  border-color: var(--itg-color-accent-bright);
}

.event-btn-gold:hover {
  background: var(--itg-color-accent-bright);
  color: var(--itg-color-primary);
}

.event-btn-blue {
  color: var(--itg-color-primary);
  border-color: var(--itg-color-primary);
}

.event-btn-blue:hover {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.event-map-col {
  align-items: flex-start;
}

.event-map-col .event-section-title {
  margin-bottom: 1rem;
}

.event-map-col > a {
  display: block;
  width: 100%;
  text-decoration: none;
}

.event-map-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 960px) {
  .event-grid {
    column-gap: 2rem;
  }
}

@media (max-width: 768px) {
  .event-page .cms-rich-text + .cms-rich-text {
    margin-top: 1.6rem;
  }

  .event-page .cms-rich-text > .section-title:first-child,
  .event-page .cms-rich-text > h1.section-title:first-child {
    margin-bottom: 1.5rem;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .event-list,
  .event-schedule-list {
    margin-bottom: 1rem;
  }

  .event-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .event-btn {
    width: 100%;
    min-width: 0;
  }
}


/* ---- PostEventHomePage.css ---- */
@import "./post-event-home/base.css";
@import "./post-event-home/responsive.css";


/* ---- base.css ---- */
/* Post-Event Home Page */
.post-event-home-page {
  padding-top: 0;
  padding-bottom: 2rem;
}

/* Hero banner — full width, break out of page container */
.peh-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -2rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.peh-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Program section with logo */
.peh-program {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.peh-program-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.peh-program p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0;
}

.peh-program a {
  color: #0091b3;
  text-decoration: underline;
}

.peh-program a:hover {
  color: #007e9e;
}

/* Section headings (h4 style matching original) */
.post-event-home-page h4 {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 0.75rem;
}

/* Two-column sections */
.peh-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Responsive video container (16:9) */
.peh-video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: var(--itg-radius-card);
}

.peh-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Event details text */
.peh-event-details p {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 0.75rem;
}

/* Video caption */
.peh-video-caption {
  text-align: center;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
  margin-top: 0.5rem;
  line-height: var(--itg-line-height-meta);
}

/* Button rows */
.peh-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}


/* ---- responsive.css ---- */

/* Outline buttons with square corners (matching original invert style) */
.post-event-home-page .peh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid currentColor;
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.post-event-home-page .peh-btn-blue {
  color: var(--itg-color-primary);
  border-color: var(--itg-color-primary);
}

.post-event-home-page .peh-btn-blue:hover {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
  text-decoration: none;
}

.post-event-home-page .peh-btn-gold {
  color: var(--itg-color-primary);
  border-color: var(--itg-color-accent-bright);
}

.post-event-home-page .peh-btn-gold:hover {
  background: var(--itg-color-accent-bright);
  color: var(--itg-color-primary);
  text-decoration: none;
}

/* Event links — free-flow wrap */
.peh-event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Bottom quick links */
.peh-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--itg-color-border);
}

/* Contact footer */
.peh-contact {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
}

.peh-contact a {
  color: #0091b3;
  text-decoration: underline;
}

.peh-contact a:hover {
  color: #007e9e;
}

@media (max-width: 768px) {
  .post-event-home-page {
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .peh-hero {
    margin-top: -1rem;
  }

  .peh-two-col {
    grid-template-columns: 1fr;
  }

  .peh-program {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .peh-btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--itg-font-size-small);
  }

  .peh-btn-row {
    justify-content: center;
  }
}


/* ---- layout.css ---- */
/* Auth Page Layout */

.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-page-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 51, 102, 0.08);
  overflow: hidden;
  border-top: 4px solid #daa520;
}

.auth-page-card.wide {
  max-width: 680px;
}

/* Auth Page Header */

.auth-page-header {
  text-align: center;
  padding: 2rem 2rem 0;
}

.auth-page-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #daa520;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.12);
  margin-bottom: 1rem;
}

.auth-page-title {
  margin: 0 0 0.375rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  letter-spacing: -0.01em;
}

.auth-page-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 400;
}

.auth-verification-intro {
  margin: 1.25rem 2rem 0;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-verification-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.auth-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.auth-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
}

.auth-modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.auth-modal-body {
  padding: 1.5rem;
}



/* ---- forms.css ---- */
/* Form Styles */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: 1.75rem 2rem 2rem;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 0;
}

.auth-mode-tab {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-mode-tab.is-active {
  background: #003366;
  color: #fff;
  border-color: #003366;
  box-shadow: 0 8px 18px rgba(0, 51, 102, 0.16);
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-form-group--full-width {
  grid-column: 1 / -1;
}

.auth-form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfc;
}

.auth-form-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  background: #fff;
}

.auth-form-input.has-error {
  border-color: #dc2626;
}

.auth-form-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-help-text {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

.auth-code-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.5rem;
  letter-spacing: 0.55em;
  text-align: center;
  background: #fafbfc;
  color: #003366;
  font-weight: 700;
  box-sizing: border-box;
}

.auth-code-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  background: #fff;
}

.auth-form-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.auth-form-submit {
  background: linear-gradient(135deg, #003366 0%, #00254d 100%);
  color: #fff;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
  letter-spacing: 0.02em;
}

.auth-form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #00254d 0%, #001a3a 100%);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.auth-form-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.auth-form-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-org-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.auth-org-toggle-btn {
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-org-toggle-btn.is-active {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.auth-org-toggle-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



/* ---- feedback.css ---- */
/* Alert Box */

.auth-alert-wrapper {
  padding: 0 2rem;
  margin: 1rem 0 0;
}

.auth-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9375rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

.auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-alert.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.auth-alert-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  margin-top: 0.125rem;
  line-height: 1.25;
}

.auth-alert span {
  flex: 1;
  min-width: 0;
  display: block;
}

/* Switch Link */

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid #e5e7eb;
  margin: 0 -2rem -2rem;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.auth-switch p {
  margin: 0;
}

.auth-switch-link {
  color: #003366;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid #003366;
  border-radius: 8px;
  padding: 0.625rem 1.75rem;
  font-size: 0.875rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-switch-link:hover {
  background: #003366;
  color: #fff;
  border-color: #003366;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.auth-inline-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-text-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #003366;
  font-weight: 600;
  cursor: pointer;
}

.auth-text-link:hover {
  text-decoration: underline;
}



/* ---- profile.css ---- */
/* Profile Form */

.profile-display-name {
  font-size: 1rem;
  color: #1f2937;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.profile-email {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.profile-logout {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  margin-top: 1rem;
  width: 100%;
}

.profile-logout:hover {
  background: #fef2f2;
}

/* Loading Spinner */

.auth-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Row (2-column grid for name fields) */

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



/* ---- account.css ---- */
/* Account Page — CSS Custom Properties */

:root {
  --account-primary: #003366;
  --account-text: #1f2937;
  --account-text-secondary: #6b7280;
  --account-text-muted: #9ca3af;
  --account-text-dark: #374151;
  --account-bg: #fff;
  --account-bg-hover: #f0f4f8;
  --account-bg-subtle: #f8fafc;
  --account-border: #e5e7eb;
  --account-border-subtle: #e2e8f0;
  --account-danger: #dc2626;
  --account-danger-dark: #b91c1c;
  --account-danger-bg: #fff7f7;
  --account-danger-border: #fecaca;
  --account-danger-text: #991b1b;
  --account-danger-heading: #7f1d1d;
  --account-radius: 12px;
  --account-radius-sm: 8px;
  --account-radius-xs: 6px;
}

/* Account Page */

.account-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

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

.account-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-column--primary {
  gap: 1.25rem;
}

.account-column--secondary {
  gap: 1.25rem;
}

.account-page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--account-primary);
  margin: 0 0 1.5rem 0;
}

.account-section {
  background: var(--account-bg);
  border: 1px solid var(--account-border);
  border-radius: var(--account-radius);
  padding: 1.5rem;
  margin-bottom: 0;
}

.account-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--account-text);
  margin: 0 0 1.25rem 0;
}

.account-profile-section .account-section-title {
  margin-bottom: 1rem;
}

.account-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.account-section-header .account-section-title {
  margin-bottom: 0;
}

.account-section-toggle {
  font-size: 1.25rem;
  color: var(--account-text-secondary);
  transition: color 0.2s;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.account-section-header:hover .account-section-toggle {
  color: var(--account-text);
}

.account-edit-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--account-primary);
  color: var(--account-primary);
  border-radius: var(--account-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.account-edit-btn:hover:not(:disabled) {
  background: var(--account-bg-hover);
}

.account-edit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-details-rows .account-readonly-group {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.account-readonly-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.account-readonly-group:last-child {
  margin-bottom: 0;
}

.account-readonly-value {
  font-size: 1rem;
  color: var(--account-text);
  padding: 0.5rem 0;
}

.account-divider {
  height: 1px;
  background: var(--account-border);
  margin: 1.5rem 0;
}

.account-subsection-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--account-text);
}

/* Unified account dashboard CTAs (use with .auth-form-submit for gradient + disabled states) */
.auth-form-submit.account-action-primary {
  margin-top: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 6px rgba(0, 51, 102, 0.18);
}

.auth-form-submit.account-action-primary:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.24);
}

/* Alias for non-edit action buttons (e.g. "Resend Ticket Email") */
.account-outline-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--account-primary);
  color: var(--account-primary);
  border-radius: var(--account-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.account-outline-btn:hover:not(:disabled) {
  background: var(--account-bg-hover);
}

.account-outline-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-form-submit.account-action-primary--inline {
  margin-top: 0.75rem;
  width: fit-content;
}

.auth-form-submit.account-action-secondary {
  background: var(--account-bg);
  color: var(--account-primary);
  border: 1.5px solid var(--account-primary);
  box-shadow: none;
  margin-top: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.auth-form-submit.account-action-secondary:hover:not(:disabled) {
  background: var(--account-bg-hover);
  box-shadow: none;
}

.account-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-action-row .auth-form-submit.account-action-primary,
.account-action-row .auth-form-submit.account-action-secondary {
  flex: 1;
  min-width: 0;
}

.account-action-row .account-edit-btn {
  flex: 1;
  min-width: 0;
}

.account-code-password {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-password-section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.account-password-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-password-header .account-subsection-title {
  margin-bottom: 0.35rem;
}

.account-password-help {
  margin: 0;
  font-size: 0.875rem;
  color: var(--account-text-secondary);
  line-height: 1.5;
}

.account-password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-profile-form {
  gap: 0.875rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.account-danger-section {
  border-color: var(--account-danger-border);
  background: var(--account-danger-bg);
}

.account-danger-toggle {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.account-danger-toggle .account-section-title {
  color: var(--account-danger-heading);
}

.account-danger-toggle .account-section-toggle {
  color: var(--account-danger-dark);
}

.account-danger-content {
  margin-top: 0.5rem;
}

.account-danger-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.account-danger-help,
.account-danger-confirmation {
  margin: 0;
  font-size: 0.875rem;
  color: var(--account-danger-text);
  line-height: 1.5;
}

.account-danger-section .auth-alert {
  border-radius: var(--account-radius-sm);
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
}

.account-danger-section .auth-alert.error {
  background: var(--account-danger-bg);
  border-color: var(--account-danger-border);
  color: var(--account-danger-text);
}

.account-danger-section .auth-alert.success {
  background: #f0fdf4;
  border-color: #86efac;
}
/* Note: success alert colors (#f0fdf4, #86efac) are green tones that don't
   belong to the account color system — they are only used in the danger
   section's rare success state and kept as literals intentionally. */

.account-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--account-danger);
  background: var(--account-bg);
  color: var(--account-danger);
  border-radius: var(--account-radius-sm);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.account-danger-button:hover:not(:disabled) {
  background: var(--account-danger-bg);
  border-color: var(--account-danger-dark);
  color: var(--account-danger-dark);
}

.account-danger-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading / empty state text */
.account-status-text {
  color: var(--account-text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.account-status-text--center {
  text-align: center;
}

.account-status-text--spaced {
  margin-top: 0.5rem;
}

/* Ticket cards (#1, #10) */
.account-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-ticket-card {
  padding: 1rem;
  border-radius: 10px;
  background: var(--account-bg-subtle);
  border: 1px solid var(--account-border-subtle);
}

.account-ticket-name {
  font-weight: 700;
  color: var(--account-primary);
  margin-bottom: 0.5rem;
}

.account-ticket-detail {
  font-size: 0.85rem;
  color: var(--account-text-dark);
  margin-bottom: 0.25rem;
}

.account-ticket-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--account-primary);
  margin: 0.5rem 0;
  letter-spacing: 0.04em;
}

.account-ticket-barcode {
  text-align: center;
  margin: 0.75rem 0;
}

.account-ticket-barcode img {
  max-width: 100%;
  border-radius: var(--account-radius-xs);
  border: 1px solid var(--account-border);
  padding: 8px;
  background: var(--account-bg);
}

.account-ticket-email-status {
  font-size: 0.8rem;
  color: var(--account-text-secondary);
  margin-bottom: 0.5rem;
}

/* Open event — registration CTA card */
.account-open-registration-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
}

.account-open-reg-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.account-open-reg-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--account-primary);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.account-open-reg-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
}

.account-open-reg-lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--account-text-secondary);
  line-height: 1.5;
}

.account-open-reg-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.account-open-reg-details li {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.account-open-reg-detail-label {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--account-text-secondary);
}

.account-open-reg-detail-value {
  color: var(--account-text);
  line-height: 1.45;
  word-break: break-word;
}

.account-open-reg-description {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--account-text-secondary);
  line-height: 1.55;
  padding: 0.625rem 0.75rem;
  background: var(--account-bg);
  border-radius: var(--account-radius-xs);
  border: 1px solid var(--account-border-subtle);
}

.account-open-reg-actions {
  margin-top: 0.125rem;
}

.account-open-reg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 11.5rem;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .account-open-reg-details li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Profile error row (#5) */
.account-profile-error {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-profile-error-text {
  flex: 1;
  min-width: 0;
}

.account-retry-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Optional label hint (#6) */
.account-label-hint {
  font-weight: 400;
  color: var(--account-text-muted);
}

/* Sign-out row (#9) — no card wrapper */
.account-signout-row {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.profile-logout .fa {
  margin-right: 0.5rem;
}

/* Detail labels (#14) — semantic class for read-only detail labels */
.account-detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--account-text-dark);
}


/* ---- profile-image.css ---- */
/* Profile Image Upload */

.profile-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  text-align: center;
}

.profile-image-container {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 0.75rem;
}

.profile-image-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image-initials {
  font-size: 2.125rem;
  font-weight: 600;
  color: #003366;
}

.profile-image-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}

.profile-image-upload-btn:hover {
  background: #00254d;
  transform: scale(1.05);
}

.profile-image-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-image-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.profile-image-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.profile-image-error {
  font-size: 0.875rem;
  color: #dc2626;
  margin: 0.5rem 0 0;
}



/* ---- subscriptions.css ---- */
/* Subscriptions (Email Center) */

.email-center-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.125rem 1.05rem;
  margin-top: 0.75rem;
  background: #fafbfc;
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-center-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.email-center-card-main {
  flex: 1;
  min-width: 0;
}

.email-center-card-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.625rem;
}

.email-center-card-title {
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.email-center-card-title--emphasis {
  font-weight: 600;
}

.email-center-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.email-center-badge.primary {
  background: #dbeafe;
  color: #1e40af;
}

.email-center-badge.verified {
  background: #dcfce7;
  color: #166534;
}

.email-center-badge.unverified {
  background: #fef3c7;
  color: #92400e;
}

.email-center-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  row-gap: 0.5rem;
  margin-top: 0;
  flex-wrap: wrap;
}

.email-center-type-select {
  /* Native selects size to the widest <option>; keep labels short and cap width here. */
  min-width: 7.25rem;
  max-width: min(100%, 11rem);
  flex: 0 1 auto;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8125rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.email-center-type-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.email-center-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
}

.email-center-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.email-center-toggle-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.email-center-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.email-center-toggle input:checked + .email-center-toggle-slider {
  background: #003366;
}

.email-center-toggle input:checked + .email-center-toggle-slider::after {
  transform: translateX(16px);
}

.email-center-toggle input:disabled + .email-center-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-center-toggle-label {
  font-size: 0.8125rem;
  color: #4b5563;
  font-weight: 500;
}

.email-center-btn {
  background: none;
  border: 1px solid #d1d5db;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  font-weight: 500;
}

.email-center-btn.verify {
  color: #003366;
  border-color: #003366;
}

.email-center-btn.verify:hover:not(:disabled) {
  background: #f0f4f8;
}

.email-center-btn.delete {
  color: #dc2626;
  border-color: #fecaca;
}

.email-center-btn.delete:hover {
  background: #fef2f2;
}

.email-center-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-center-verify-inline {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-center-verify-hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
}

.email-center-verify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.email-center-verify-code-wrap {
  margin: 0;
}

.email-center-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-center-verify-submit {
  width: 100%;
  box-sizing: border-box;
}

.email-center-verify-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.email-center-verify-secondary-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 6.5rem;
  box-sizing: border-box;
}

.email-center-verify-alert {
  margin-top: 0.125rem;
}

.email-center-add-form {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
}

.email-center-add-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Add connected email — spacing, preferences block, stacked CTAs */
.email-add-form {
  padding: 1.2rem 1.25rem 1.35rem;
}

.email-add-form > .account-subsection-title {
  margin-bottom: 0.875rem;
}

.email-add-form-fields {
  gap: 1rem;
}

.email-add-newsletters-group {
  gap: 0;
  margin-top: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.email-add-newsletters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.email-add-newsletters-label {
  margin: 0;
  flex: 0 1 auto;
  align-self: center;
  line-height: 1.2;
}

.email-add-newsletters-toggle {
  flex-shrink: 0;
}

.email-add-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.email-add-form-submit,
.email-add-form-cancel {
  width: 100%;
  box-sizing: border-box;
  flex: none;
  margin-top: 0;
}

/* Add-phone SMS step — spacing and stacked actions (avoids one oversized primary in a row) */
.email-center-pending-verify {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.email-center-pending-verify-title {
  margin: 0;
}

.email-center-pending-verify-intro {
  line-height: 1.55;
  max-width: 42rem;
}

.email-center-pending-verify-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin: 0;
}

.email-center-pending-verify-code {
  margin-top: 0.125rem;
}

.email-center-pending-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-center-pending-verify-submit {
  width: 100%;
  box-sizing: border-box;
}

.email-center-pending-verify-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.email-center-pending-verify-secondary-btn {
  flex: 1 1 calc(50% - 0.3125rem);
  min-width: 8.5rem;
  box-sizing: border-box;
}

.email-center-pending-verify-alert {
  margin-top: 0.25rem;
}



/* ---- responsive.css ---- */
/* Responsive */

@media (max-width: 600px) {
  .auth-page {
    min-height: auto;
    padding: 1rem 0.5rem;
  }

  .auth-page-card,
  .auth-page-card.wide {
    max-width: 100%;
    border-radius: 12px;
  }

  .auth-page-header {
    padding: 1.5rem 1.25rem 0;
  }

  .auth-page-logo {
    width: 52px;
    height: 52px;
  }

  .auth-page-title {
    font-size: 1.25rem;
  }

  .auth-alert-wrapper {
    padding: 0 1.25rem;
  }

  .auth-form {
    padding: 1.25rem;
  }

  .auth-mode-toggle {
    padding: 1.25rem 1.25rem 0;
  }

  .auth-verification-intro {
    margin: 1rem 1.25rem 0;
  }

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

  .auth-switch {
    margin: 0 -1.25rem -1.25rem;
    padding: 1rem 1.25rem 1.25rem;
  }

  .auth-modal {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 8px;
  }

  .auth-modal-header {
    padding: 1rem;
  }

  .auth-modal-body {
    padding: 1rem;
  }

  .auth-form-row,
  .account-form-row {
    grid-template-columns: 1fr;
  }

  .account-page {
    margin: 1rem auto;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .account-column,
  .account-column--primary,
  .account-column--secondary {
    gap: 1rem;
  }

  .account-section {
    padding: 1rem;
  }

  .account-profile-form {
    padding: 1rem;
  }

  .profile-image-section {
    margin-bottom: 1rem;
  }

  .profile-image-container {
    width: 92px;
    height: 92px;
  }

  .auth-inline-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-details-rows .account-readonly-group {
    flex-direction: column;
  }
}

/* ---- HomePage.css ---- */
.home-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-body);
  gap: 1rem;
}

.home-loading::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--itg-color-border);
  border-top-color: var(--itg-color-primary);
  border-radius: 50%;
  animation: itg-spin 0.8s linear infinite;
}

/* Hero */
.home-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.home-hero-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-hero);
  margin: 0 0 0.5rem;
}

.home-hero-subtitle {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-subtitle);
  margin: 0;
}

/* Quick links */
.home-quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.home-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-body);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--itg-transition-fast);
}

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

.home-btn-blue {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.home-btn-gold {
  background: var(--itg-color-accent-bright);
  color: var(--itg-color-primary);
}

/* Sections */
.home-section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
  margin: 2rem 0 1rem;
}

.home-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.home-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.home-text a:hover {
  text-decoration: underline;
}

/* About */
.home-about {
  margin: 2rem 0;
}

.home-cta-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.home-link {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.home-link:hover {
  text-decoration: underline;
}

/* Notice */
.home-notice {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Event info */
.home-event-info {
  margin: 2rem 0;
}

.home-event-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-event-links a {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.home-event-links a:hover {
  text-decoration: underline;
}

/* Schedule & projects sections */
.home-schedule-section,
.home-projects-section {
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .home-hero-title {
    font-size: var(--itg-font-size-hero-mobile);
  }

  .home-hero-subtitle {
    font-size: var(--itg-font-size-body);
  }

  .home-btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--itg-font-size-small);
  }

  .home-section-title {
    font-size: var(--itg-font-size-h2-mobile);
  }
}

/* ---- NewsPage.css ---- */
.news-page-title {
  color: var(--itg-color-primary);
  margin: 0 0 2rem;
  font-size: var(--itg-font-size-h1);
}

.news-state {
  text-align: center;
  font-size: var(--itg-font-size-subtitle);
  color: var(--itg-color-primary);
  padding: 3rem 0;
}

.news-error {
  color: var(--itg-color-error-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--itg-transition-fast), transform var(--itg-transition-fast);
  background: var(--itg-color-white);
}

.news-card:hover {
  box-shadow: var(--itg-shadow-card-hover);
  transform: translateY(-2px);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.news-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf2 0%, #d0d8e0 100%);
}

.news-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: var(--itg-font-size-subtitle);
  color: var(--itg-color-primary);
  margin: 0 0 0.5rem;
  line-height: var(--itg-line-height-card);
}

.news-card-date {
  font-size: var(--itg-font-size-small);
  color: var(--itg-color-text-secondary);
  margin-bottom: 0.5rem;
}

.news-card-summary {
  font-size: var(--itg-font-size-meta);
  color: var(--itg-color-text);
  line-height: var(--itg-line-height-summary);
  margin: 0;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.news-pagination-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--itg-color-primary);
  border-radius: var(--itg-radius-button);
  background: var(--itg-color-white);
  color: var(--itg-color-primary);
  cursor: pointer;
  font-size: var(--itg-font-size-meta);
  transition: background var(--itg-transition-fast), color var(--itg-transition-fast);
}

.news-pagination-btn:hover:not(:disabled) {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

.news-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination-info {
  font-size: var(--itg-font-size-meta);
  color: var(--itg-color-text);
}

@media (max-width: 768px) {
  .news-page-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

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


/* ---- NewsDetailPage.css ---- */
.news-detail {
  max-width: var(--itg-page-narrow-width);
  margin: 0 auto;
}

.news-detail-back {
  display: inline-block;
  color: var(--itg-color-primary);
  text-decoration: none;
  font-size: var(--itg-font-size-meta);
  margin-bottom: 1.5rem;
}

.news-detail-back:hover {
  text-decoration: underline;
}

.news-detail-hero {
  margin: 0 0 1.5rem;
}

.news-detail-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--itg-radius-image);
  display: block;
}

.news-detail-hero-caption {
  font-size: var(--itg-font-size-small);
  color: var(--itg-color-text-secondary);
  margin-top: 0.5rem;
  line-height: var(--itg-line-height-card);
  font-style: italic;
}

.news-detail-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 0.75rem;
  line-height: var(--itg-line-height-heading);
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: var(--itg-font-size-meta);
  color: var(--itg-color-text-secondary);
  margin-bottom: 1.5rem;
}

.news-detail-author {
  font-weight: 500;
  color: var(--itg-color-text);
}

.news-detail-content {
  font-size: 1.0625rem;
  line-height: var(--itg-line-height-body);
  color: var(--itg-color-text-dark);
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.news-detail-content p {
  margin: 0 0 1rem;
}

.news-detail-content a {
  color: var(--itg-color-primary);
  text-decoration: underline;
}

.news-detail-source {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--itg-color-primary);
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  text-decoration: none;
  font-size: var(--itg-font-size-meta);
  transition: background var(--itg-transition-fast), color var(--itg-transition-fast);
}

.news-detail-source:hover {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: var(--itg-font-size-h1-mobile);
  }
}

/* ---- ProjectsPage.css ---- */
.projects-page-hero {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.projects-page-title {
  color: var(--itg-color-primary);
  margin: 0;
  font-size: var(--itg-font-size-h1);
}

.projects-page-lead {
  max-width: 880px;
  margin: 0;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-lead);
  line-height: var(--itg-line-height-body);
}

.projects-page-card {
  display: grid;
}

@media (max-width: 768px) {
  .projects-page-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .projects-page-lead {
    font-size: var(--itg-font-size-body);
  }
}


/* ---- PastProjectsPage.css ---- */
/* Toolbar / export / merge actions — smaller than global .itg-btn */
.past-projects-page .itg-btn {
  padding: 0.45rem 1rem;
  font-size: var(--itg-font-size-small);
  line-height: 1.25;
}

.past-projects-page .past-projects-delete-toggle {
  padding: 0.45rem 0.75rem;
  font-size: var(--itg-font-size-small);
}

.past-projects-page .past-projects-action-bar-group,
.past-projects-page .project-grid-toolbar-cluster {
  gap: 0.45rem;
}

.past-projects-page .project-grid-detail-button,
.past-projects-page .project-grid-delete-button {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.past-projects-hero {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.past-projects-title {
  color: var(--itg-color-primary);
  margin: 0;
  font-size: var(--itg-font-size-h1);
}

.past-projects-lead {
  max-width: 920px;
  margin: 0;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-lead);
  line-height: var(--itg-line-height-body);
}

.past-projects-state {
  margin-top: 1rem;
  color: var(--itg-color-text-secondary);
}

.past-projects-state-error {
  color: var(--itg-color-error);
}

@media (max-width: 768px) {
  .past-projects-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .past-projects-lead {
    font-size: var(--itg-font-size-body);
  }
}


/* ---- ProjectDetailPage.css ---- */
.project-detail {
  max-width: var(--itg-page-narrow-width);
  margin: 0 auto;
}

.project-detail-back {
  display: inline-block;
  color: var(--itg-color-primary);
  text-decoration: none;
  font-size: var(--itg-font-size-meta);
  margin-bottom: 1.5rem;
}

.project-detail-back:hover {
  text-decoration: underline;
}

.project-detail-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 1.5rem;
  line-height: var(--itg-line-height-heading);
}

.project-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--itg-color-bg-light);
  border-radius: var(--itg-radius-card);
  margin-bottom: 2rem;
}

.project-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-detail-meta-label {
  font-size: var(--itg-font-size-label);
  color: var(--itg-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-detail-meta-value {
  font-size: var(--itg-font-size-body);
  color: var(--itg-color-primary);
  font-weight: 500;
}

.project-detail-section {
  margin-bottom: 2rem;
}

.project-detail-section-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 0.75rem;
}

.project-detail-abstract {
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  color: var(--itg-color-text-dark);
  margin: 0;
}

.project-detail-students {
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-meta);
  color: var(--itg-color-text);
  margin: 0;
}

@media (max-width: 768px) {
  .project-detail-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .project-detail-meta {
    grid-template-columns: 1fr 1fr;
  }
}

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


/* ---- base.css ---- */
.project-grid-card {
  background: var(--itg-color-white);
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  box-shadow: 0 10px 30px rgba(15, 45, 82, 0.08);
  overflow: hidden;
}

.project-grid-card + .project-grid-card {
  margin-top: 1.5rem;
}

.project-grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.project-grid-card-title {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h2);
}

.project-grid-card-copy {
  margin: 0.5rem 0 0;
  color: var(--itg-color-text-secondary);
  line-height: var(--itg-line-height-meta);
}

.project-grid-table-shell {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-grid-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-grid-inline-actions--clustered {
  align-items: center;
  gap: 0.65rem 1rem;
}

.project-grid-toolbar-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 641px) {
  .project-grid-inline-actions--clustered .project-grid-toolbar-cluster + .project-grid-toolbar-cluster {
    padding-left: 1rem;
    border-left: 1px solid var(--itg-color-border);
  }
}

.project-grid-controls {
  margin-bottom: 1.1rem;
}

.project-grid-controls-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.project-grid-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.project-grid-field-label {
  display: block;
  color: var(--itg-color-text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.project-grid-search-input {
  flex: 1;
  min-width: min(100%, 220px);
  border: 1px solid var(--itg-color-border);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: var(--itg-font-size-small);
  color: var(--itg-color-text-dark);
  background: #fbfcfe;
}

.project-grid-search-input:focus {
  outline: 2px solid rgba(15, 45, 82, 0.18);
  border-color: var(--itg-color-primary);
}

.project-grid-controls-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  flex-shrink: 0;
}

.project-grid-count {
  margin: 0;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
  line-height: 1.35;
  white-space: nowrap;
}

.project-grid-count-value {
  color: var(--itg-color-text-dark);
  font-weight: 600;
}

.project-grid-count-label {
  font-weight: 500;
}

.project-grid-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.project-grid-page-size .project-grid-field-label {
  margin: 0;
  white-space: nowrap;
}

.project-grid-page-size select {
  min-width: 4.75rem;
  border: 1px solid var(--itg-color-border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: var(--itg-font-size-small);
  color: var(--itg-color-text-dark);
  background: #fbfcfe;
  cursor: pointer;
}

.project-grid-page-size select:focus {
  outline: 2px solid rgba(15, 45, 82, 0.18);
  border-color: var(--itg-color-primary);
}

.project-grid-state,
.project-grid-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--itg-color-text-secondary);
}

.project-grid-state-error {
  color: var(--itg-color-error);
}

.project-grid-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--itg-color-border);
  border-radius: 14px;
}

.project-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
}

.project-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  border-bottom: 1px solid var(--itg-color-border);
  padding: 1.05rem 1rem;
  color: var(--itg-color-primary);
  text-align: left;
  font-size: var(--itg-font-size-small);
  line-height: 1.35;
  vertical-align: bottom;
}

.project-grid-table thead th:first-child {
  border-top-left-radius: 12px;
}

.project-grid-table thead th:last-child {
  border-top-right-radius: 12px;
}

.project-grid-table thead th button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: inherit;
}

.project-grid-table thead th.project-grid-detail-col,
.project-grid-table thead th.project-grid-delete-col {
  text-align: center;
}

.project-grid-table thead th.project-grid-detail-col button {
  justify-content: center;
}

.project-grid-table thead th.project-grid-select-col {
  text-align: center;
  vertical-align: middle;
}

.project-grid-sort-indicator {
  font-size: 0.7rem;
  opacity: 0.85;
}



/* ---- table.css ---- */
.project-grid-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #edf1f6;
  vertical-align: top;
  color: var(--itg-color-text-dark);
  font-size: var(--itg-font-size-small);
}

.project-grid-row {
  background: var(--itg-color-white);
}

.project-grid-row:hover {
  background: #fafcff;
}

.project-grid-row.is-selected {
  background: #eef4fb;
}

.project-grid-row.is-expanded {
  background: #f8fbff;
}

.project-grid-select-col,
.project-grid-detail-col,
.project-grid-delete-col {
  width: 88px;
  white-space: nowrap;
}

.project-grid-detail-button,
.project-grid-delete-button {
  border: 1px solid var(--itg-color-border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--itg-color-white);
  color: var(--itg-color-primary);
}

.project-grid-detail-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.project-grid-delete-button {
  color: var(--itg-color-error);
}

.project-grid-detail-row td {
  background: #f8fbff;
}

.project-grid-detail-content {
  display: grid;
  gap: 0.6rem;
  color: var(--itg-color-text);
  line-height: var(--itg-line-height-meta);
}

.project-grid-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  color: var(--itg-color-text-secondary);
}

.project-grid-status {
  margin: 1rem 1.5rem 1.5rem;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-small);
}

.search-table-card {
  position: relative;
  padding: 0 1.5rem 1.5rem;
}

.search-table-card .project-grid-card-header {
  padding-left: 0;
  padding-right: 0;
}

.search-table-card.is-delete-mode {
  border-color: rgba(179, 0, 0, 0.28);
  box-shadow: 0 12px 28px rgba(179, 0, 0, 0.14);
}

.search-table-delete-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: rgba(179, 0, 0, 0.08);
  color: var(--itg-color-error);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(1px);
}

.past-projects-builder {
  display: grid;
  gap: 1.5rem;
}

.past-projects-action-bar {
  z-index: 5;
}

.past-projects-action-bar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  padding: 1rem 1.5rem 0;
}

.past-projects-action-bar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 641px) {
  .past-projects-action-bar-group + .past-projects-action-bar-group {
    padding-left: 1rem;
    border-left: 1px solid var(--itg-color-border);
  }
}

.past-projects-delete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--itg-color-border);
  border-radius: 999px;
  background: #fbfcfe;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-small);
  font-weight: 600;
}

.past-projects-help-details {
  margin: 0.5rem 0 0;
  padding: 0.8rem 1.5rem 1.25rem;
  border: 0;
  border-top: 1px solid #edf1f6;
}

.past-projects-help-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.15rem 0 0.25rem;
  font-size: var(--itg-font-size-small);
  font-weight: 600;
  color: var(--itg-color-primary);
  user-select: none;
}

.past-projects-help-summary::-webkit-details-marker {
  display: none;
}

.past-projects-help-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.past-projects-help-details[open] .past-projects-help-summary::before {
  transform: rotate(90deg);
}

.past-projects-help-intro {
  margin: 0;
  padding: 0 0 0.65rem;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
  line-height: var(--itg-line-height-meta);
}

.past-projects-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0.75rem 0 0;
  margin: 0;
}

.project-grid-help-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f6f9fc;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-small);
  line-height: var(--itg-line-height-meta);
}

.project-grid-help-card strong {
  color: var(--itg-color-primary);
}

@media (min-width: 641px) {
  .past-projects-help-grid .project-grid-help-card--wide {
    grid-column: 1 / -1;
  }
}

.search-table-stack {
  display: grid;
  gap: 1.5rem;
}

.project-grid-empty-shell {
  padding: 1.25rem;
}



/* ---- mobile.css ---- */
/* Mobile cards - hidden on desktop, shown on mobile */
.project-grid-mobile-cards {
  display: none;
}

.project-grid-mobile-card {
  border: 1px solid var(--itg-color-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--itg-color-white);
}

.project-grid-mobile-card + .project-grid-mobile-card {
  margin-top: 0.75rem;
}

.project-grid-mobile-card.is-expanded {
  background: #f8fbff;
}

.project-grid-mobile-card.is-selected {
  background: #eef4fb;
  border-color: var(--itg-color-primary);
}

.project-grid-mobile-card-select {
  margin-bottom: 0.5rem;
}

.project-grid-mobile-card-fields {
  display: grid;
  gap: 0.5rem;
}

.project-grid-mobile-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-grid-mobile-card-label {
  color: var(--itg-color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-grid-mobile-card-value {
  color: var(--itg-color-text-dark);
  font-size: var(--itg-font-size-small);
  line-height: var(--itg-line-height-meta);
}

.project-grid-mobile-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.project-grid-mobile-card-actions .project-grid-detail-button,
.project-grid-mobile-card-actions .project-grid-delete-button {
  flex: 1;
  justify-content: center;
}

.project-grid-mobile-card-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--itg-color-border);
  display: grid;
  gap: 0.5rem;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-small);
  line-height: var(--itg-line-height-meta);
}



/* ---- responsive.css ---- */
@media (max-width: 900px) {
  .project-grid-card-header,
  .project-grid-table-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .search-table-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .past-projects-action-bar-controls,
  .past-projects-help-details,
  .past-projects-help-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .past-projects-help-grid {
    grid-template-columns: 1fr;
  }

  .project-grid-table thead th {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Hide table, show mobile cards */
  .project-grid-table-wrap {
    display: none;
  }

  .project-grid-mobile-cards {
    display: block;
  }
}

@media (max-width: 640px) {
  .project-grid-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .project-grid-controls-meta {
    justify-content: space-between;
    width: 100%;
  }

  .project-grid-inline-actions,
  .project-grid-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .project-grid-inline-actions--clustered {
    align-items: stretch;
    gap: 0.65rem;
  }

  .project-grid-inline-actions--clustered .project-grid-toolbar-cluster {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .project-grid-inline-actions--clustered .project-grid-toolbar-cluster + .project-grid-toolbar-cluster {
    padding-top: 0.65rem;
    border-top: 1px solid var(--itg-color-border);
  }

  .past-projects-action-bar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .past-projects-action-bar-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-left: 0;
    border-left: 0;
  }

  .past-projects-action-bar-group + .past-projects-action-bar-group {
    padding-top: 0.65rem;
    border-top: 1px solid var(--itg-color-border);
  }

  .past-projects-action-bar {
    position: static;
  }

  .past-projects-delete-toggle {
    width: 100%;
    justify-content: center;
  }

  .past-projects-action-bar-group .itg-btn,
  .project-grid-toolbar-cluster .itg-btn {
    width: 100%;
    text-align: center;
  }

  .project-grid-card-header {
    padding: 1rem 1rem 0;
  }

  .project-grid-card-title {
    font-size: var(--itg-font-size-h2-mobile);
  }

  .project-grid-table-shell {
    padding: 0.75rem 0.5rem 1rem;
  }

  .search-table-card {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 1rem;
  }
}


/* ---- SheetsDataTable.css ---- */
.sdt-container {
  margin: 2rem 0;
}

.sdt-loading,
.sdt-error {
  padding: 2rem;
  text-align: center;
  color: var(--itg-color-text-secondary);
}

.sdt-error {
  color: var(--itg-color-error-light);
}

.sdt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sdt-search {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-button);
  font-size: var(--itg-font-size-meta);
  min-width: 250px;
}

.sdt-search:focus {
  outline: none;
  border-color: var(--itg-color-primary);
}

.sdt-count {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
}

.sdt-table-wrap {
  overflow-x: auto;
}

.sdt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--itg-font-size-small);
}

.sdt-th {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  padding: 0.625rem 0.5rem;
  text-align: left;
  border-bottom: 2px solid var(--itg-color-border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.sdt-th:hover {
  background: #eef1f5;
}

.sdt-sorted-asc::after {
  content: ' \25B2';
  font-size: 0.625rem;
}

.sdt-sorted-desc::after {
  content: ' \25BC';
  font-size: 0.625rem;
}

.sdt-th-expand {
  width: 2rem;
  cursor: default;
}

.sdt-td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--itg-color-border);
  color: var(--itg-color-text);
  vertical-align: top;
}

.sdt-td-expand {
  text-align: center;
  cursor: pointer;
  color: var(--itg-color-primary);
  font-size: 0.75rem;
}

.sdt-row-expanded .sdt-td {
  color: var(--itg-color-primary);
  font-weight: 600;
}

.sdt-detail-row .sdt-detail-cell {
  padding: 1rem 1.5rem;
  background: var(--itg-color-bg-light);
  border-bottom: 1px solid var(--itg-color-border);
}

.sdt-detail-section {
  color: var(--itg-color-text);
  line-height: var(--itg-line-height-meta);
  margin-bottom: 0.5rem;
}

.sdt-detail-section strong {
  color: var(--itg-color-primary);
}

.sdt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.sdt-page-btn {
  background: var(--itg-color-primary);
  color: var(--itg-color-white);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--itg-radius-button);
  cursor: pointer;
  font-size: var(--itg-font-size-small);
}

.sdt-page-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.sdt-page-info {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
}

@media (max-width: 768px) {
  .sdt-search {
    min-width: 100%;
  }

  .sdt-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .sdt-table {
    font-size: var(--itg-font-size-table-mobile);
  }

  .sdt-th {
    padding: 0.5rem 0.4rem;
  }

  .sdt-td {
    padding: 0.4rem;
  }

  .sdt-detail-row .sdt-detail-cell {
    padding: 0.75rem 1rem;
  }
}

/* ---- layout.css ---- */
.event-reg-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #003366;
  margin: 0 0 0.5rem;
}

.event-reg-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

/* Event info (shown whenever registration options are loaded — signed in or not) */
.event-reg-info {
  padding: 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  margin-bottom: 1.5rem;
}

.event-reg-info h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #003366;
}

.event-reg-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #374151;
}

.event-reg-info p strong {
  color: #1f2937;
}

/* Auth inline section */
.event-reg-auth {
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.event-reg-auth-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Form elements (reuse auth patterns) */
.event-reg-form-group {
  margin-bottom: 1rem;
}

.event-reg-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.event-reg-label .required-mark {
  color: #dc2626;
  margin-left: 0.125rem;
}

.event-reg-field-hint {
  margin: 0 0 0.375rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.event-reg-field-error {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #dc2626;
  line-height: 1.4;
}

.event-reg-form-group--error .event-reg-input,
.event-reg-form-group--error .event-reg-phone-region {
  border-color: #dc2626;
}

.event-reg-form-group--error .event-reg-input:focus,
.event-reg-form-group--error .event-reg-phone-region:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.event-reg-form-group--error .event-reg-tickets {
  border: 1px solid #dc2626;
  border-radius: 10px;
  padding: 2px;
}

.event-reg-form-group--error .event-reg-label {
  color: #dc2626;
}

.event-reg-section-title {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 700;
  color: #003366;
}

.event-reg-section-header {
  margin-bottom: 0.875rem;
}

.event-reg-section-header .event-reg-section-title {
  margin-bottom: 0.5rem;
}

.event-reg-section-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
}

.event-reg-section-title--spaced {
  margin-top: 0;
}

.event-reg-section-card--spaced {
  margin-top: 1.25rem;
}

.event-reg-locked-note {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.85rem;
  line-height: 1.45;
}

.event-reg-locked-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
}

.event-reg-locked-link:hover {
  color: #1e40af;
}

.event-reg-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.event-reg-input--editable {
  border-color: #93c5fd;
  background: #f8fbff;
}

.event-reg-input:disabled,
.event-reg-phone-region:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

.event-reg-org-toggle--editable .auth-org-toggle-btn {
  border-color: #93c5fd;
}

.event-reg-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.event-reg-textarea {
  resize: none;
  min-height: 72px;
  height: 72px;
}



/* ---- form.css ---- */
/* Ticket selection */
.event-reg-tickets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-reg-ticket-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.event-reg-ticket-option:hover {
  border-color: #003366;
  background: #f0f4f8;
}

.event-reg-ticket-option.selected {
  border-color: #003366;
  background: #eef2f7;
}

.event-reg-ticket-option.sold-out {
  opacity: 0.5;
  cursor: not-allowed;
}

.event-reg-ticket-option input[type='radio'] {
  accent-color: #003366;
}

.event-reg-ticket-name {
  flex: 1;
  font-weight: 600;
  color: #1f2937;
}

.event-reg-ticket-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Profile form row (two columns) */
.event-reg-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.event-reg-form-row .event-reg-form-group {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.event-reg-optional {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Phone input group */
.event-reg-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.event-reg-phone-region {
  width: auto;
  min-width: 140px;
  flex-shrink: 0;
  padding: 0.625rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
}

.event-reg-phone-region:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.event-reg-phone-row .event-reg-input {
  flex: 1 1 120px;
  min-width: 0;
}

.event-reg-phone-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  background: #003366;
  color: #fff;
}

.event-reg-phone-action:hover:not(:disabled) {
  background: #002244;
}

.event-reg-phone-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.event-reg-phone-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #16a34a;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.event-reg-phone-code-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.event-reg-phone-code-row .event-reg-input {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 4px;
  font-size: 1.1rem;
  text-align: center;
}

/* Submit */
.event-reg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  background: #daa520;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.event-reg-submit:hover:not(:disabled) {
  background: #c49418;
}

.event-reg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



/* ---- states.css ---- */
/* Confirmation / done */
.event-reg-done {
  text-align: center;
}

.event-reg-done h2 {
  font-size: 1.5rem;
  color: #003366;
  margin: 0 0 0.5rem;
}

.event-reg-done-subtitle {
  color: #6b7280;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.event-reg-barcode {
  display: inline-block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  background: #fff;
}

.event-reg-ticket-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.event-reg-done-details {
  margin: 1rem auto;
  max-width: 360px;
  text-align: left;
  font-size: 0.9rem;
  color: #374151;
}

.event-reg-done-details p {
  margin: 0.25rem 0;
}

.event-reg-done-email-notice {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.9rem;
}

.event-reg-done-email-error {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
}

.event-reg-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  background: #003366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.event-reg-link:hover {
  background: #002244;
}

/* Alert messages */
.event-reg-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.event-reg-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.event-reg-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Loading */
.event-reg-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.event-reg-loading--inline {
  padding: 1rem 1rem 0;
  font-size: 0.9rem;
}

/* Spinner */
.event-reg-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: event-reg-spin 0.6s linear infinite;
}

@keyframes event-reg-spin {
  to { transform: rotate(360deg); }
}



/* ---- SchedulePage.css ---- */
.schedule-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2rem;
  color: var(--itg-color-primary);
}

.schedule-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-page-title {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.schedule-page-meta {
  margin: 0;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-body);
  font-weight: 600;
}

.schedule-page-text,
.schedule-page-section-text {
  margin: 0;
  max-width: 64rem;
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
}

.schedule-page-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-page-section-title {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-subtitle);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.schedule-page-section-title-main {
  margin-bottom: 0.25rem;
}

.schedule-page-section-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.schedule-page-section-winners {
  gap: 1.5rem;
}

.schedule-winners-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0.2rem 1rem 0;
}

.schedule-winners-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.schedule-winners-title-emphasis {
  color: #37a8ee;
}

.schedule-winners-title-event {
  color: var(--itg-color-primary);
}

.schedule-winners {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.schedule-winners-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.schedule-winners-group-title {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  text-align: center;
}

.schedule-winners-grid {
  display: grid;
  width: min(100%, max-content);
  grid-template-columns: repeat(var(--winner-column-count, 1), minmax(180px, 1fr));
  gap: 0;
  align-items: stretch;
  margin: 0 auto;
}

.schedule-winner-card {
  display: flex;
  flex-direction: column;
  min-height: 9.25rem;
  border: 1px solid var(--itg-color-border);
  background: var(--schedule-column-bg);
  color: var(--schedule-cell-text);
  overflow: hidden;
  box-shadow: none;
}

.schedule-winner-card + .schedule-winner-card {
  border-left-width: 0;
}

.schedule-winner-card-header {
  padding: 0.8rem 1rem;
  background: #ececec;
  color: var(--itg-color-primary);
}

.schedule-winner-track {
  margin: 0;
  font-size: var(--itg-font-size-body);
  font-weight: 800;
}

.schedule-winner-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: stretch;
  gap: 0;
  background: var(--schedule-column-bg);
}

.schedule-winner-topic {
  margin: 0;
  padding: 0.8rem 1rem 0.7rem;
  color: var(--schedule-cell-text);
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.schedule-winner-name {
  margin: 0;
  padding: 0.8rem 1rem 0.95rem;
  color: var(--schedule-cell-text);
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  line-height: 1.2;
}

.schedule-grand-winners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.schedule-grand-winner-line {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.schedule-grand-winner-line.is-cap {
  color: #d2a820;
}

.schedule-grand-winner-line.is-cse {
  color: var(--itg-color-primary);
}

.schedule-grand-winner-line.is-cee,
.schedule-grand-winner-line.is-engsl {
  color: #2f8d8b;
}

.schedule-grand-winner-label {
  font-weight: 800;
}

.schedule-page-agenda-wrap,
.schedule-page-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-page-agenda-table,
.schedule-presentation-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 1px;
  background: var(--itg-color-white);
}

.schedule-presentation-table {
  table-layout: fixed;
}

.schedule-page-agenda-table th,
.schedule-page-agenda-table td,
.schedule-presentation-table th,
.schedule-presentation-table td {
  padding: 0.95rem 0.85rem;
  vertical-align: top;
}

.schedule-page-agenda-table thead th,
.schedule-page-agenda-table tbody th,
.schedule-presentation-table thead th,
.schedule-presentation-table tbody th {
  background: #ececec;
  color: var(--itg-color-primary);
}

.schedule-page-agenda-table thead th,
.schedule-presentation-table thead th {
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  text-align: center;
}

.schedule-page-agenda-table tbody th,
.schedule-presentation-time {
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.schedule-page-agenda-table td {
  background: #f5f5f5;
  color: var(--itg-color-primary);
  font-weight: 700;
  text-align: center;
}

.schedule-presentation-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.schedule-presentation-heading {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-lead);
  font-weight: 800;
  text-align: center;
}

.schedule-presentation-corner,
.schedule-presentation-room,
.schedule-presentation-track {
  min-width: 0;
}

.schedule-presentation-corner {
  position: sticky;
  left: 0;
  z-index: 2;
}

.schedule-presentation-room,
.schedule-presentation-track {
  font-weight: 800;
}

.schedule-presentation-track {
  font-size: var(--itg-font-size-body);
}

.schedule-presentation-time {
  position: sticky;
  left: 0;
  z-index: 1;
}

.schedule-presentation-topic-cell,
.schedule-presentation-slot {
  background: var(--schedule-column-bg);
  color: var(--schedule-cell-text);
}

.schedule-presentation-topic-cell {
  font-weight: 800;
}

.schedule-presentation-topic {
  display: block;
  color: var(--schedule-topic-color);
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  line-height: 1.25;
}

.schedule-presentation-team,
.schedule-mobile-team {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--schedule-cell-text);
  cursor: pointer;
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-decoration: underline;
}

.schedule-presentation-team:hover,
.schedule-mobile-team:hover {
  opacity: 0.88;
}

.schedule-presentation-org,
.schedule-mobile-org {
  display: block;
  margin-top: 0.45rem;
  color: var(--schedule-org-color);
  font-size: var(--itg-font-size-small);
  line-height: 1.65;
}

.schedule-presentation-break,
.schedule-mobile-break {
  display: block;
  color: var(--schedule-cell-text);
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  text-align: center;
}

.schedule-presentation-slot-break {
  vertical-align: middle;
}

.schedule-presentation-empty,
.schedule-mobile-empty {
  color: var(--schedule-cell-text);
  font-size: var(--itg-font-size-small);
  font-weight: 600;
  opacity: 0.72;
}

.schedule-page-mobile-grid {
  display: none;
}

.schedule-mobile-card {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--itg-color-border);
  background: #f8fafc;
  box-shadow: 0 10px 30px rgba(16, 47, 100, 0.08);
}

.schedule-mobile-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem 0.9rem;
  background: #ececec;
}

.schedule-mobile-track-label {
  margin: 0 0 0.15rem;
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-mobile-topic {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-body);
  font-weight: 800;
  line-height: 1.2;
}

.schedule-mobile-room {
  margin: 0;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-small);
  font-weight: 700;
  white-space: nowrap;
}

.schedule-mobile-slots {
  display: flex;
  flex-direction: column;
}

.schedule-mobile-slot {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  min-height: 4.5rem;
}

.schedule-mobile-time {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.95rem 0.85rem;
  background: #ececec;
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-small);
  font-weight: 800;
}

.schedule-mobile-slot-content {
  padding: 0.95rem 1rem;
  background: var(--schedule-column-bg);
}

.schedule-mobile-slot + .schedule-mobile-slot {
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.schedule-mobile-slot-content.is-break {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-page-state {
  border: 1px solid var(--itg-color-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--itg-color-text-secondary);
  background: var(--itg-color-white);
}

.schedule-page-state-error {
  color: #b42318;
}

@media (max-width: 960px) {
  .schedule-page-agenda-table,
  .schedule-presentation-table {
    min-width: 760px;
  }

  .schedule-page {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .schedule-page {
    gap: 1.75rem;
  }

  .schedule-page-header {
    gap: 0.4rem;
  }

  .schedule-page-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .schedule-page-meta,
  .schedule-page-text,
  .schedule-page-section-text {
    font-size: var(--itg-font-size-small);
  }

  .schedule-page-agenda-table {
    min-width: 100%;
  }

  .schedule-page-agenda-table th,
  .schedule-page-agenda-table td {
    padding: 0.8rem 0.7rem;
  }

  .schedule-page-table-wrap-desktop {
    display: none;
  }

  .schedule-page-mobile-grid {
    display: grid;
    gap: 1rem;
  }

  .schedule-winners {
    gap: 1.75rem;
  }

  .schedule-winners-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .schedule-winner-card + .schedule-winner-card {
    border-left-width: 1px;
    border-top-width: 0;
  }

  .schedule-winners-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .schedule-winners-hero {
    width: 100%;
    padding-inline: 0;
  }

  .schedule-grand-winner-line {
    font-size: var(--itg-font-size-lead);
  }

  .schedule-presentation-heading {
    font-size: var(--itg-font-size-body);
  }
}

@media (max-width: 480px) {
  .schedule-page-section-title {
    font-size: var(--itg-font-size-lead);
  }

  .schedule-winner-card-header {
    padding: 0.9rem;
  }

  .schedule-winner-topic,
  .schedule-winner-name {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .schedule-mobile-card-header {
    padding: 0.9rem;
  }

  .schedule-mobile-slot {
    grid-template-columns: 3.7rem minmax(0, 1fr);
  }

  .schedule-mobile-time,
  .schedule-mobile-slot-content {
    padding: 0.85rem 0.8rem;
  }
}


/* ---- EventArchivePage.css ---- */
.ea-header {
  margin-bottom: 2rem;
}

.ea-back-link {
  display: inline-block;
  color: var(--itg-color-primary);
  text-decoration: none;
  font-size: var(--itg-font-size-meta);
  margin-bottom: 0.75rem;
}

.ea-back-link:hover {
  text-decoration: underline;
}

.ea-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 0.5rem;
}

.ea-subtitle {
  color: var(--itg-color-text-secondary);
  font-size: var(--itg-font-size-lead-mobile);
  margin: 0;
}

.ea-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.ea-section {
  margin-top: 2.5rem;
}

.ea-section-title {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 1.5rem;
}

@media (max-width: 768px) {
  .ea-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .ea-section-title {
    font-size: var(--itg-font-size-h3-mobile);
  }
}


/* ---- ScheduleGrid.css ---- */
.sg-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sg-loading,
.sg-error {
  padding: 2rem;
  text-align: center;
  color: var(--itg-color-text-secondary);
}

.sg-error {
  color: var(--itg-color-error-light);
}

.sg-class-section {
  border: 1px solid var(--itg-color-border);
  border-radius: var(--itg-radius-card);
  overflow: hidden;
}

.sg-class-title {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--itg-color-bg-light);
  font-size: var(--itg-font-size-subtitle);
  text-align: center;
  border-bottom: 1px solid var(--itg-color-border);
}

.sg-table-wrap {
  overflow-x: auto;
}

.sg-table {
  width: 100%;
  border-collapse: collapse;
}

.sg-th {
  background: var(--itg-color-bg-light);
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--itg-color-border);
  font-size: var(--itg-font-size-small);
  white-space: nowrap;
}

.sg-th-time {
  color: var(--itg-color-primary);
  min-width: 60px;
}

.sg-th-room {
  color: var(--itg-color-primary);
  font-weight: normal;
}

.sg-th-track {
  font-weight: 700;
}

.sg-td-time {
  background: var(--itg-color-bg-light);
  color: var(--itg-color-primary);
  padding: 0.5rem;
  text-align: center;
  font-size: var(--itg-font-size-small);
  border-bottom: 1px solid var(--itg-color-border);
  white-space: nowrap;
}

.sg-td-cell {
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--itg-color-border);
  min-width: 120px;
  vertical-align: top;
}

.sg-team-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--itg-font-size-small);
  display: block;
  margin: 0 auto;
}

.sg-team-btn:hover {
  text-decoration: underline;
}

.sg-org {
  display: block;
  color: var(--itg-color-text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .sg-class-title {
    font-size: var(--itg-font-size-body);
  }
}

/* ---- base.css ---- */
.subscribe-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #003366;
  margin: 0 0 0.5rem;
}

/* Info banner */
.subscribe-info {
  padding: 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  margin-bottom: 1.5rem;
}

.subscribe-info h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #003366;
}

.subscribe-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #374151;
}

.subscribe-info-note {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Form section */
.subscribe-section {
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.subscribe-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.subscribe-form-group {
  margin-bottom: 1rem;
}

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

.subscribe-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.subscribe-required {
  color: #dc2626;
  margin-left: 0.125rem;
}

.subscribe-optional {
  font-weight: 400;
  color: #9ca3af;
}

.subscribe-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.subscribe-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* Submit button — gold accent */
.subscribe-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  background: #daa520;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

/* Organization type toggle */
.subscribe-org-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0.5rem;
}

.subscribe-org-toggle-btn {
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.subscribe-org-toggle-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.subscribe-org-toggle-btn:last-child {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.subscribe-org-toggle-btn.is-active {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.subscribe-org-toggle-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-form-group--full-width {
  grid-column: 1 / -1;
}

/* Code step actions row */
.subscribe-code-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

/* Manage step */
.subscribe-manage-email {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.subscribe-manage-email-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.subscribe-manage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  margin-bottom: 1rem;
}

.subscribe-manage-status-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

/* Toggle switch */
.subscribe-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.subscribe-toggle.is-active {
  background: #16a34a;
}

.subscribe-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.subscribe-toggle.is-active .subscribe-toggle-knob {
  transform: translateX(20px);
}


/* ---- responsive.css ---- */

.subscribe-submit:hover:not(:disabled) {
  background: #c49418;
}

.subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Back link */
.subscribe-back-link {
  display: inline-block;
  background: none;
  border: none;
  color: #003366;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
}

.subscribe-back-link:hover {
  color: #002244;
}

.subscribe-back-link:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

/* Alerts */
.subscribe-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.subscribe-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.subscribe-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.subscribe-alert.info {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  color: #374151;
}

/* Account link */
.subscribe-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: #003366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.subscribe-link:hover {
  background: #002244;
}

/* Spinner */
.subscribe-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: subscribe-spin 0.6s linear infinite;
}

@keyframes subscribe-spin {
  to { transform: rotate(360deg); }
}

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

  .subscribe-code-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ---- AcknowledgementPage.css ---- */
.ack-page-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 0 0 2rem;
}

.ack-page-lead {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-lead);
  font-weight: 600;
  line-height: var(--itg-line-height-body);
  margin: 0 0 1.5rem;
}

.ack-page-text {
  color: var(--itg-color-text);
  font-size: var(--itg-font-size-body);
  line-height: var(--itg-line-height-body);
  margin: 0 0 1rem;
}

.ack-page-section {
  margin-top: 2.5rem;
}

.ack-page-section-title {
  background: var(--itg-color-bg-light);
  border: 1px solid var(--itg-color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--itg-radius-button);
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h3);
  margin: 0 0 1.5rem;
}

.ack-page-placeholder {
  background: var(--itg-color-bg-light);
  border: 2px dashed #d0d0d0;
  border-radius: var(--itg-radius-card);
  padding: 2rem;
  text-align: center;
}

.ack-page-placeholder .ack-page-text {
  color: #888;
  font-style: italic;
  margin: 0;
}

.ack-page-link {
  color: var(--itg-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.ack-page-link:hover {
  text-decoration: underline;
}

.ack-page-text a {
  color: var(--itg-color-primary);
  text-decoration: none;
}

.ack-page-text a:hover {
  text-decoration: underline;
}

.ack-page-loading {
  text-align: center;
  color: #888;
  padding: 2rem;
  font-size: var(--itg-font-size-body);
}

@media (max-width: 768px) {
  .ack-page-title {
    font-size: var(--itg-font-size-h1-mobile);
  }

  .ack-page-lead {
    font-size: var(--itg-font-size-lead-mobile);
  }

  .ack-page-section-title {
    font-size: var(--itg-font-size-h3-mobile);
  }
}


/* ---- NotFoundPage.css ---- */
.not-found-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.not-found-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--itg-color-primary);
  opacity: 0.15;
  margin: 0;
  line-height: 1;
}

.not-found-title {
  color: var(--itg-color-primary);
  font-size: var(--itg-font-size-h1);
  margin: 1rem 0 0.75rem;
}

.not-found-message {
  font-size: var(--itg-font-size-subtitle);
  color: var(--itg-color-text);
  margin: 0;
}

@media (max-width: 768px) {
  .not-found-code {
    font-size: 4rem;
  }

  .not-found-title {
    font-size: var(--itg-font-size-h1-mobile);
  }
}


/* ---- MagicLoginPage.css ---- */
.magic-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 16px;
}

.magic-login-error {
  color: #b91c1c;
}

.magic-login-link {
  color: #003366;
  font-weight: 600;
  text-decoration: underline;
}


/* ---- TicketLoginPage.css ---- */
.ticket-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 16px;
}

.ticket-login-error {
  color: #b91c1c;
}

.ticket-login-link {
  color: #003366;
  font-weight: 600;
  text-decoration: underline;
}


/* ---- ImpersonateLoginPage.css ---- */
.impersonate-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 16px;
}

.impersonate-login-error {
  color: #b91c1c;
}

.impersonate-login-link {
  color: #003366;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- tokens.css ---- */
/* MaintenanceMode - UC Merced Branded Maintenance Page */

/* UC Merced Brand Colors */
:root {
  --ucm-blue: #0f2d52;
  --ucm-blue-dark: #0a1f3a;
  --ucm-blue-light: #1a4a7a;
  --ucm-gold: #f2a900;
  --ucm-gold-light: #ffc107;
  --ucm-white: #ffffff;
  --ucm-gray: #f2f2f2;
  --ucm-text: #1f2933;
  --ucm-text-muted: #52606d;
  --ucm-border: #e4e7eb;
  --ucm-bg: #ffffff;
  --ucm-panel: #f3f4f6;
  --ucm-divider: #d9d9d9;
  --ucm-ok: #2ecc71;
  --ucm-error: #e74c3c;
}

.maintenance-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ucm-blue);
  color: var(--ucm-white);
  font-family: 'Open Sans', 'Khula', -apple-system, BlinkMacSystemFont, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  overflow: auto;
}

.maintenance-shell {
  width: 100%;
  max-width: 980px;
  margin: auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  min-height: 100vh;
}

.maintenance-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.maintenance-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}



/* ---- card.css ---- */
/* Main card */
.maintenance-card {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 2.75rem 3rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Logo */

.maintenance-ucm-logo {
  height: 50px;
  width: auto;
  display: block;
}

.maintenance-i2g-logo {
  height: 44px;
  width: auto;
  display: block;
}

.maintenance-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 50px;
  color: var(--ucm-gold);
  animation: maintenance-gear-rotate 6s linear infinite;
  margin-left: auto;
}

@keyframes maintenance-gear-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero */
.maintenance-hero {
  margin-bottom: 0;
}

.maintenance-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.maintenance-title {
  font-family: 'Open Sans', 'Khula', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3.125rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  color: var(--ucm-white);
  line-height: 3.125rem;
}

.maintenance-code {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.maintenance-meta {
  margin: 0.6rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.maintenance-meta a {
  color: var(--ucm-gold);
  text-decoration: none;
}

.maintenance-meta a:hover {
  text-decoration: underline;
}

.maintenance-timestamp {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Alert */
.maintenance-alert {
  background: rgba(242, 169, 0, 0.1); /* ucm-gold with opacity */
  border: 1px solid var(--ucm-gold);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.maintenance-alert-icon {
  color: var(--ucm-gold);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.maintenance-alert-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ucm-white);
}

.maintenance-alert-content p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}



/* ---- status.css ---- */
/* Status card */
.maintenance-status-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--ucm-panel);
  border: 1px solid var(--ucm-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin: 0;
  position: relative;
  color: var(--ucm-text);
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 0;
}

.status-item + .status-item {
  border-left: 1px solid var(--ucm-divider);
}

.status-logo-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-logo {
  height: 36px;
  width: auto;
  display: block;
}

.status-logo-aws {
  height: 28px;
}

.status-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--ucm-text);
}

.status-subtitle {
  font-size: 0.98rem;
  color: var(--ucm-text-muted);
}

.status-subtitle-ok {
  color: #1f7a3b;
  font-weight: 700;
}

.status-subtitle-alert {
  color: #e74c3c;
  font-weight: 700;
}

/* Info sections */
.maintenance-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.maintenance-info h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ucm-white);
}

.maintenance-info p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Footer */
.maintenance-footer {
  width: 100%;
  padding: 0;
  z-index: 1;
}

.maintenance-footer-links {
  margin-bottom: 0.5rem;
}

.maintenance-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
}

.maintenance-footer-links a:hover {
  color: var(--ucm-gold);
}

.footer-divider {
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.maintenance-copyright {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}



/* ---- forms.css ---- */
/* Bypass form */
.bypass-toggle-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
}

.bypass-toggle-link:hover {
  color: var(--ucm-gold);
}

.bypass-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.bypass-input {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ucm-white);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 180px;
}

.bypass-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bypass-input:focus {
  border-color: var(--ucm-gold);
}

.bypass-input:disabled {
  opacity: 0.6;
}

.bypass-submit {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--ucm-gold);
  border-radius: 4px;
  background: var(--ucm-gold);
  color: var(--ucm-blue);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.bypass-submit:hover:not(:disabled) {
  background: var(--ucm-gold-light);
}

.bypass-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bypass-error {
  color: var(--ucm-error);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 640px) {
  .maintenance-header {
    margin: 0;
  }

  .maintenance-content {
    padding: 0;
  }

  .maintenance-title {
    font-size: 2rem;
    line-height: 2.2rem;
  }

  .maintenance-card {
    padding: 2rem 1.5rem;
  }

  .maintenance-status-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .status-item + .status-item {
    border-left: none;
    border-top: 1px solid var(--ucm-divider);
    padding-top: 1.25rem;
  }

  .maintenance-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .maintenance-footer-links a {
    font-size: 0.8rem;
  }
}


/* ---- HealthCheckProvider.css ---- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
