/* ===== EVENT DETAIL - REFINED HEADER ===== */
.event-detail-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 580px at 18% 0%, rgba(var(--theme-primary-rgb), 0.20), transparent 60%),
    radial-gradient(1000px 480px at 85% 15%, rgba(var(--theme-accent-ink-rgb), 0.16), transparent 56%),
    linear-gradient(135deg, rgba(var(--theme-canvas-rgb), 0.98), rgba(var(--theme-surface-rgb), 0.96));
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  padding: clamp(28px, 4.5vw, 48px) 0;
  box-shadow: 0 6px 24px rgba(var(--theme-black-rgb), 0.06);
}

.event-detail-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(var(--theme-primary-rgb), 0.015) 100px,
      rgba(var(--theme-primary-rgb), 0.015) 101px
    );
  pointer-events: none;
}

.event-detail-header::after {
  content: "";
  position: absolute;
  inset: -50% -40%;
  background: linear-gradient(125deg, transparent 40%, rgba(var(--theme-surface-rgb), 0.7) 50%, transparent 60%);
  transform: rotate(12deg);
  animation: headerShine 12s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes headerShine {
  0%, 100% { transform: translateX(-45%) rotate(12deg); opacity: 0; }
  15% { opacity: 0.6; }
  50% { opacity: 0.25; }
  85% { opacity: 0.6; }
  100% { transform: translateX(45%) rotate(12deg); opacity: 0; }
}

.event-detail-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .event-detail-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
  }
}

.event-detail-title-group {
  flex: 1;
  min-width: 0;
}

.event-detail-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-bright);
  margin: 0 0 var(--space-md);
  text-shadow: 
    0 1px 2px rgba(var(--theme-surface-rgb), 0.8),
    0 2px 8px rgba(var(--theme-black-rgb), 0.06);
}

.event-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(var(--theme-black-rgb), 0.08);
  transition: var(--transition-base);
}

.event-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--theme-black-rgb), 0.12);
}

.event-chip i { 
  font-size: 0.85rem;
}

.event-chip--date {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--navy-deep);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
}

.event-chip--date i { 
  color: var(--navy-rich);
}

.event-chip--location {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
}

.event-chip--location i { 
  color: var(--teal);
}

.event-chip--units {
  background: rgba(var(--theme-warning-rgb), 0.12);
  color: var(--amber-dark);
  border: 1px solid rgba(var(--theme-warning-rgb), 0.22);
}

.event-chip--units i { 
  color: var(--gold);
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-event-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--theme-ink);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-rich) 100%);
  border: 1px solid rgba(var(--theme-surface-rgb), 0.20);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 
    0 10px 28px rgba(var(--theme-midnight-rgb), 0.28),
    inset 0 1px 0 rgba(var(--theme-surface-rgb), 0.15);
  transition: var(--transition-base);
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(var(--theme-black-rgb), 0.2);
  cursor: pointer;
}

.btn-event-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(var(--theme-surface-rgb), 0.15) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.btn-event-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 40px rgba(var(--theme-midnight-rgb), 0.35),
    inset 0 1px 0 rgba(var(--theme-surface-rgb), 0.2);
}

.btn-event-primary:hover::before {
  opacity: 1;
}

.btn-event-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(var(--theme-surface-rgb), 0.92);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 
    0 6px 20px rgba(var(--theme-black-rgb), 0.08),
    inset 0 1px 0 rgba(var(--theme-surface-rgb), 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.btn-event-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--teal-dark);
  box-shadow: 
    0 10px 28px rgba(var(--theme-primary-rgb), 0.18),
    inset 0 1px 0 rgba(var(--theme-surface-rgb), 0.8);
}

.btn-event-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-event-ghost:hover {
  color: var(--text-primary);
  background: rgba(var(--theme-surface-rgb), 0.6);
  border-color: rgba(var(--theme-midnight-rgb), 0.10);
  transform: translateX(-2px);
}


/* ===== MAIN LAYOUT ===== */
.event-detail-layout {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-2xl);
}

@media (min-width: 960px) {
  .event-detail-layout {
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
  }
}

.event-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  order: 1;
}

.event-detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
  order: 2;
}

@media (min-width: 960px) {
  .event-detail-sidebar {
    order: 2;
  }
  .event-detail-main {
    order: 1;
  }
}

/* ===== SIDEBAR CARD ===== */
.sidebar-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 22% -5%, rgba(var(--theme-accent-ink-rgb), 0.12), transparent 58%),
    radial-gradient(600px 320px at 82% 15%, rgba(var(--theme-primary-rgb), 0.10), transparent 55%),
    linear-gradient(135deg, rgba(var(--theme-surface-rgb), 0.98), rgba(var(--theme-canvas-rgb), 0.96));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: 0 10px 32px rgba(var(--theme-black-rgb), 0.08);
}

.sidebar-card::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(var(--theme-accent-ink-rgb), 0.12), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin: 0 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.sidebar-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.10);
  position: relative;
  z-index: 1;
}

.sidebar-stat:last-child {
  border-bottom: none;
}

.sidebar-stat__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.14), rgba(var(--theme-primary-light-rgb), 0.10));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  color: var(--navy-rich);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.14);
}

.sidebar-stat__content {
  flex: 1;
  min-width: 0;
}

.sidebar-stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sidebar-stat__value {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-wrap: break-word;
}

.sidebar-stat__value strong {
  font-weight: 800;
  color: var(--text-bright);
}

.sidebar-stat__value a {
  color: var(--navy-rich);
  text-decoration: none;
  font-weight: 750;
  transition: var(--transition-fast);
}

.sidebar-stat__value a:hover {
  color: var(--navy-deep);
  text-decoration: underline;
}

/* ===== CONTENT CARDS ===== */
.detail-card {
  position: relative;
  background: var(--surface-elevated);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(var(--theme-black-rgb), 0.08);
  transition: var(--transition-base);
}

.detail-card:hover {
  box-shadow: 0 14px 40px rgba(var(--theme-black-rgb), 0.10);
  transform: translateY(-2px);
  border-color: rgba(var(--theme-primary-rgb), 0.16);
}

.detail-card__header {
  position: relative;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.10);
  background:
    radial-gradient(800px 300px at 18% -5%, rgba(var(--theme-primary-rgb), 0.10), transparent 60%),
    radial-gradient(700px 280px at 85% 10%, rgba(var(--theme-accent-ink-rgb), 0.08), transparent 58%),
    linear-gradient(135deg, rgba(var(--theme-surface-rgb), 0.98), rgba(var(--theme-canvas-rgb), 0.96));
}

.detail-card__header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-accent-ink-rgb), 0.08));
  pointer-events: none;
}

.detail-card__header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  position: relative;
  z-index: 1;
}

.detail-card__header i {
  font-size: 1.25rem;
  color: var(--navy-rich);
  opacity: 0.85;
}

.detail-card__body {
  padding: var(--space-lg);
  background: var(--surface-elevated);
}

.detail-card__body--tight {
  padding: var(--space-md);
}


/* ===== DOCUMENT LIST ===== */
.doc-list-simple {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  background:
    radial-gradient(500px 250px at 15% -8%, rgba(var(--theme-primary-rgb), 0.08), transparent 60%),
    linear-gradient(135deg, rgba(var(--theme-surface-rgb), 0.96), rgba(var(--theme-canvas-rgb), 0.92));
  text-decoration: none;
  transition: var(--transition-base);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(var(--theme-black-rgb), 0.06);
}

.doc-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(var(--theme-primary-rgb), 0.10) 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.doc-link:hover {
  background: 
    radial-gradient(550px 280px at 15% -8%, rgba(var(--theme-primary-rgb), 0.12), transparent 60%),
    var(--surface-elevated);
  border-color: var(--navy-bright);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.16);
}

.doc-link:hover::before {
  opacity: 1;
}

.doc-link__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.16), rgba(var(--theme-primary-light-rgb), 0.12));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  color: var(--navy-rich);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.14);
}

.doc-link__name {
  position: relative;
  z-index: 1;
  flex: 1;
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--text-primary);
  min-width: 0;
  word-wrap: break-word;
}

.doc-link__arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.doc-link:hover .doc-link__arrow {
  color: var(--navy-rich);
  transform: translateX(4px);
}

/* ===== ENTRIES ACCORDION ===== */
.entries-wrap {
  position: relative;
  background:
    radial-gradient(950px 450px at 22% -5%, rgba(var(--theme-primary-rgb), 0.12), transparent 60%),
    radial-gradient(850px 400px at 82% 12%, rgba(var(--theme-accent-ink-rgb), 0.10), transparent 58%),
    linear-gradient(135deg, rgba(var(--theme-surface-rgb), 0.98), rgba(var(--theme-canvas-rgb), 0.95));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: 0 10px 32px rgba(var(--theme-black-rgb), 0.08);
  overflow: hidden;
}

.entries-wrap::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(var(--theme-accent-ink-rgb), 0.10), transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}

.entries-wrap h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  position: relative;
  z-index: 1;
}

.entries-wrap h2 i {
  font-size: 1.25rem;
  color: var(--teal-dark);
  opacity: 0.85;
}

.entries-acc {
  position: relative;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-elevated);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(var(--theme-black-rgb), 0.06);
  transition: var(--transition-base);
  z-index: 1;
}

.entries-acc:last-child {
  margin-bottom: 0;
}

.entries-acc:hover {
  box-shadow: 0 6px 20px rgba(var(--theme-black-rgb), 0.08);
  border-color: rgba(var(--theme-primary-rgb), 0.18);
}

.entries-acc[open] {
  box-shadow: 0 8px 24px rgba(var(--theme-black-rgb), 0.10);
  border-color: rgba(var(--theme-primary-rgb), 0.20);
}

.entries-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  background:
    radial-gradient(650px 250px at 15% -5%, rgba(var(--theme-primary-rgb), 0.08), transparent 58%),
    linear-gradient(135deg, rgba(var(--theme-canvas-rgb), 0.98), rgba(var(--theme-surface-rgb), 0.96));
  transition: var(--transition-fast);
  position: relative;
}

.entries-sum::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(var(--theme-primary-rgb), 0.06) 100%);
  opacity: 0;
  transition: var(--transition-fast);
}

.entries-sum::-webkit-details-marker {
  display: none;
}

.entries-sum:hover {
  background: var(--surface-elevated);
}

.entries-sum:hover::after {
  opacity: 1;
}

.entries-sum__left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  position: relative;
  z-index: 1;
}

.entries-sum__left i {
  font-size: 1.15rem;
  color: var(--teal-dark);
}

.entries-sum__count {
  position: relative;
  z-index: 1;
  min-width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.18), rgba(var(--theme-primary-rgb), 0.14));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.24);
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.14);
}

.entries-body {
  padding: 0;
}

.entries-scroll {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  background: var(--surface-elevated);
}

.entries-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-elevated);
}

.entries-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background:
    radial-gradient(550px 180px at 18% -5%, rgba(var(--theme-primary-rgb), 0.10), transparent 60%),
    linear-gradient(135deg, rgba(var(--theme-canvas-rgb), 0.98), rgba(var(--theme-surface-rgb), 0.96));
  color: var(--teal-dark);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  box-shadow: 0 2px 8px rgba(var(--theme-black-rgb), 0.04);
}

.entries-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.08);
  font-weight: 650;
  color: var(--text-primary);
}

.entries-table tbody tr {
  transition: var(--transition-fast);
}

.entries-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.06), transparent);
}

.entries-table tbody tr:last-child td {
  border-bottom: none;
}

.entries-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-muted);
}

.entries-empty i {
  font-size: 2.8rem;
  opacity: 0.20;
  margin-bottom: var(--space-md);
  color: var(--teal-dark);
}

.entries-empty__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.entries-empty__text {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== DESCRIPTION SECTION ===== */
.event-description {
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-description p {
  margin: 0 0 var(--space-md);
}

.event-description p:last-child {
  margin-bottom: 0;
}


/* ===== SCHEDULE MODAL (Mobile-First) ===== */
.schedule-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: var(--theme-surface);
}

.schedule-overlay.is-active {
  display: flex;
}

/* Branded top bar - slim on mobile */
.schedule-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-rich) 100%);
  border-bottom: 2px solid rgba(var(--theme-accent-ink-rgb), 0.40);
  box-shadow: 0 2px 12px rgba(var(--theme-black-rgb), 0.15);
  min-height: 54px;
}

.schedule-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.schedule-bar__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.schedule-bar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--theme-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.schedule-bar__subtitle {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(var(--theme-ink-rgb), 0.65);
  letter-spacing: 0.03em;
}

@media (min-width: 480px) {
  .schedule-bar__subtitle {
    display: block;
  }
}

.schedule-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.schedule-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(var(--theme-ink-rgb), 0.85);
  background: rgba(var(--theme-surface-rgb), 0.12);
  border: 1px solid rgba(var(--theme-surface-rgb), 0.18);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.schedule-bar__link:hover {
  background: rgba(var(--theme-surface-rgb), 0.22);
  color: var(--theme-ink);
}

.schedule-bar__link i {
  font-size: 0.8rem;
}

/* Hide "Open in new tab" text on very small screens, keep icon */
@media (max-width: 380px) {
  .schedule-bar__link span {
    display: none;
  }
}

.schedule-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(var(--theme-surface-rgb), 0.12);
  border: 1px solid rgba(var(--theme-surface-rgb), 0.18);
  border-radius: var(--radius-full);
  color: var(--theme-ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.schedule-bar__close:hover {
  background: rgba(var(--theme-surface-rgb), 0.25);
  transform: scale(1.05);
}

/* Iframe fills remaining space */
.schedule-frame-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--theme-canvas);
}

.schedule-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading state */
.schedule-frame-wrap .schedule-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--theme-canvas);
  z-index: 2;
  transition: opacity 0.3s ease;
}

.schedule-frame-wrap .schedule-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.schedule-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(var(--theme-primary-rgb), 0.15);
  border-top-color: var(--navy-rich);
  border-radius: 50%;
  animation: spinSchedule 0.8s linear infinite;
}

@keyframes spinSchedule {
  to { transform: rotate(360deg); }
}

.schedule-loading__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Desktop: Inset from edges for a modal feel */
@media (min-width: 960px) {
  .schedule-overlay {
    inset: 24px;
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(var(--theme-black-rgb), 0.30);
    overflow: hidden;
  }

  /* Backdrop */
  .schedule-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(var(--theme-midnight-rgb), 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
  }

  .schedule-bar {
    padding: 12px 24px;
    min-height: 58px;
  }

  .schedule-bar__logo {
    height: 32px;
  }

  .schedule-bar__title {
    font-size: 0.95rem;
  }
}
