/* Dark ocean companion styles for the current schedule and CMS surfaces */

:root {
  --ocean-0: #04111c;
  --ocean-1: #06131f;
  --ocean-2: #0a1d2b;
  --ocean-3: #0d2737;
  --ocean-line: rgba(149, 205, 226, .16);
  --ocean-muted: #9bb4c7;
  --ocean-aqua: #4d9dff;
  --ocean-cyan: #4cc9ff;
}

/* Current schedule renderer */
.schedule-section {
  color: var(--ink);
  background: var(--night) !important;
}
.schedule-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  background: radial-gradient(circle at 8% 10%, rgba(76,201,255,.12), transparent 25%), radial-gradient(circle at 92% 80%, rgba(77,157,255,.08), transparent 28%);
}
.schedule-section .section-inner { position: relative; z-index: 1; }
.schedule-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.schedule-intro .section-copy { margin-top: 0 !important; }
.campus-grid { display: grid; gap: 20px; }
.campus-card {
  overflow: hidden;
  border: 1px solid var(--ocean-line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13,39,55,.86), rgba(6,22,34,.92));
  box-shadow: var(--shadow);
}
.campus-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 24px 19px;
  background: linear-gradient(135deg, rgba(16,59,76,.9), rgba(8,29,44,.9));
  border-bottom: 1px solid var(--ocean-line);
}
.campus-card-header h3 { margin: 8px 0 0; color: var(--ink); font: 600 clamp(1.15rem,1.7vw,1.45rem) 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.campus-card-header p { margin: 6px 0 0; color: var(--ocean-muted); font-size: 12px; line-height: 1.5; }
.campus-card-header .text-\[\#2477d4\] { color: var(--ocean-aqua) !important; }
.campus-pin { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--ocean-aqua); border: 1px solid rgba(77,157,255,.24); border-radius: 14px; background: rgba(77,157,255,.08); font-size: 21px; }
.brand-icon { width: 25px; height: 25px; }
.brand-mark-icon svg { width: 25px; height: 25px; }
.icon { display: block; width: 1.25rem; height: 1.25rem; }
.header-action-icon { width: 15px; height: 15px; }
.contact-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; }
.doc-icon { display: inline-grid; width: 48px; height: 48px; place-items: center; color: var(--ocean-aqua); border: 1px solid rgba(77,157,255,.22); border-radius: 15px; background: rgba(77,157,255,.08); }
.swim-pillar-icon svg, .swim-lane-marker svg { display: block; }
.schedule-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--ocean-aqua) rgba(255,255,255,.08); }
.schedule-scroll-hint { display: none; }
.schedule-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
@media (max-width: 640px) {
  .schedule-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 11px 20px;
    color: #5f6b7a;
    border-bottom: 1px solid #d9e0e8;
    background: #eef1f4;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .01em;
  }
  .schedule-scroll-hint-text {
    text-align: center;
  }
  .schedule-scroll-hint-arrow {
    display: inline-flex;
    flex: 0 0 auto;
    color: #7b8795;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    animation: scheduleHintSlide 1.8s ease-in-out infinite;
  }
  .schedule-scroll-hint-arrow:last-child {
    animation-delay: .9s;
  }
}
@keyframes scheduleHintSlide {
  0%, 100% { transform: translateX(0); opacity: .7; }
  50% { transform: translateX(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-scroll-hint-arrow { animation: none; }
}
.schedule-table th, .schedule-table td { padding: 16px 14px; vertical-align: top; border-bottom: 1px solid var(--ocean-line); }
.schedule-table thead th { color: var(--ocean-aqua); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; background: rgba(77,157,255,.08); }
.schedule-table thead th:first-child, .schedule-table tbody th { padding-left: 20px; }
.schedule-table tbody tr { transition: background .2s ease; }
.schedule-table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.schedule-table tbody tr:hover { background: rgba(77,157,255,.08); }
.schedule-table tbody th, .schedule-table tbody td { color: var(--ocean-muted); font-size: 12px; line-height: 1.55; }
.schedule-table tbody th .text-\[\#0f1b2e\] { color: var(--ink) !important; }
.schedule-table tbody td .text-\[\#315669\] { color: #b7d1dd !important; }
.schedule-price { display: inline-flex; min-width: 48px; justify-content: center; padding: 6px 8px; color: #06212b; border-radius: 9px; background: linear-gradient(110deg,var(--ocean-aqua),var(--ocean-cyan)); font: 700 13px 'Space Grotesk',sans-serif; white-space: nowrap; }
.campus-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; color: var(--ocean-muted); font-size: 11px; }
.campus-card-footer a { color: var(--ocean-aqua); font-weight: 700; }
.campus-card-footer a:hover { color: #fff; }
.diving-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 52px; align-items: start; margin-top: 76px; padding: 46px 0 12px; border-top: 1px solid var(--ocean-line); }
.diving-panel h3 { max-width: 370px; margin: 24px 0 0; color: var(--ink); font: 700 clamp(2.35rem,5vw,4.45rem)/.98 'Space Grotesk',sans-serif; letter-spacing: -.07em; }
.diving-panel > div:first-child > span:last-child {
  position: relative;
  display: block;
  width: 70px;
  height: 16px;
  margin-top: 30px;
  border: 0;
  background: transparent !important;
}
.diving-panel > div:first-child > span:last-child::before,
.diving-panel > div:first-child > span:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  width: 70px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3 C6 -1 9 -1 14 3 S22 7 28 3 S36 -1 42 3 S50 7 56 3 S64 -1 70 3' fill='none' stroke='%232477d4' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.diving-panel > div:first-child > span:last-child::before { top: 0; }
.diving-panel > div:first-child > span:last-child::after { top: 9px; }
.diving-panel p { color: var(--ocean-muted); font-size: 15px; line-height: 1.72; }
.diving-standards { display: grid; gap: 10px; margin-top: 17px; color: var(--ink); }
.diving-standards strong { color: var(--ink); font: 700 16px/1.3 'Space Grotesk',sans-serif; }
.diving-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 17px; color: var(--ocean-muted); }
.diving-contact a { color: var(--ocean-aqua); font-weight: 700; }

/* Dark fallback for the current light CMS renderer */
.admin-workspace { color: var(--ink); background: var(--ocean-1) !important; }
.admin-sidebar { color: #c8dbe4; background: linear-gradient(180deg,#092638,#061521) !important; border-color: var(--ocean-line) !important; }
.admin-main { background: #071b29 !important; }
.admin-toolbar { color: var(--ink); background: rgba(8,27,41,.96) !important; border-color: var(--ocean-line) !important; }
.admin-scroll { background: #071b29 !important; }
.admin-workspace .admin-card { color: var(--ink); background: rgba(13,39,55,.78) !important; border-color: var(--ocean-line) !important; box-shadow: 0 14px 35px rgba(0,0,0,.18) !important; }
.admin-workspace .admin-tab { color: #8ca9b8; }
.admin-workspace .admin-tab:hover, .admin-workspace .admin-tab.is-active { color: #fff; background: rgba(77,157,255,.11) !important; }
.admin-workspace .admin-field > span { color: #8ca9b8; }
.admin-workspace .admin-field input, .admin-workspace .admin-field textarea { color: var(--ink) !important; background: rgba(2,16,26,.55) !important; border-color: var(--ocean-line) !important; }
.admin-workspace .admin-field input:focus, .admin-workspace .admin-field textarea:focus { border-color: var(--ocean-aqua) !important; box-shadow: 0 0 0 3px rgba(77,157,255,.12) !important; }
.admin-workspace .admin-save { color: #06212b; background: linear-gradient(110deg,var(--ocean-aqua),var(--ocean-cyan)) !important; }
.admin-workspace .admin-reset { color: #ffb1b1; background: rgba(180,70,80,.12) !important; border-color: rgba(255,150,160,.25) !important; }
.admin-workspace .text-\[\#0f1b2e\], .admin-workspace .text-slate-900 { color: var(--ink) !important; }
.admin-workspace .text-\[\#6b7b91\], .admin-workspace .text-\[\#94a3b8\], .admin-workspace .text-slate-400 { color: #8ca9b8 !important; }
.admin-workspace .bg-\[\#f6f8fa\], .admin-workspace .bg-\[\#fafbfc\], .admin-workspace .bg-white { background: rgba(255,255,255,.04) !important; }
.admin-workspace .border-\[\#e9eef3\] { border-color: var(--ocean-line) !important; }

@media (max-width: 900px) {
  .diving-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .schedule-intro { display: block; margin-bottom: 30px; }
  .schedule-intro .section-copy { margin-top: 18px !important; }
  .campus-card-header { padding: 20px 18px 17px; }
  .schedule-table th, .schedule-table td { padding: 14px 12px; }
  .schedule-table thead th:first-child, .schedule-table tbody th { padding-left: 16px; }
  .campus-card-footer { align-items: flex-start; flex-direction: column; }
  .diving-panel { margin-top: 56px; padding-top: 36px; }
  .diving-panel p { font-size: 14px; }
}

/* Desktop sports sections dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-dropdown-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-dropdown-toggle:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--ocean-aqua);
  outline-offset: 5px;
  border-radius: 4px;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 13px;
}
.nav-dropdown-chevron {
  color: var(--ocean-aqua);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s ease;
}
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg) translateY(1px);
}
.nav-dropdown-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 13px);
  left: 50%;
  width: max-content;
  min-width: 286px;
  padding: 8px;
  border: 1px solid rgba(149, 205, 226, .2);
  border-radius: 15px;
  background: rgba(7, 25, 39, .97);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .32), 0 0 0 1px rgba(82, 228, 208, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(149, 205, 226, .2);
  border-left: 1px solid rgba(149, 205, 226, .2);
  background: #0a2538;
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #d6e8ed;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, padding .2s ease;
}
.nav-dropdown-item + .nav-dropdown-item {
  border-top: 1px solid rgba(149, 205, 226, .1);
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  padding-left: 17px;
  color: #fff;
  outline: 0;
  background: linear-gradient(90deg, rgba(82, 228, 208, .15), rgba(76, 201, 255, .04));
}
.nav-dropdown-number {
  width: 22px;
  color: var(--ocean-aqua);
  font-size: 10px;
  letter-spacing: .08em;
}

@media (max-width: 1023px) {
  .nav-dropdown-menu { display: none; }
}
