﻿/* CAIEPrep — shared styles (from UX Pilot) */
/* Use clip (not hidden) so position:sticky still works for How-it-Works */
html {
  overflow-x: clip;
}
body {
  font-family: 'Inter', sans-serif;
  overflow-x: clip;
  max-width: 100%;
}
body.drawer-open {
  overflow: hidden;
}

.outlined-text {
  color: transparent;
  -webkit-text-stroke: 2px #000;
  /* Firefox */
  paint-order: stroke fill;
}
.dark .outlined-text {
  -webkit-text-stroke: 2px #fff;
}

.link-underline { position: relative; }
.link-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-underline:hover::after { transform: scaleX(1); }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.level-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1.5rem;
}
.level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.subject-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.year-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease;
}
.year-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  background: #000 !important;
  color: #fff !important;
}
.dark .year-card:hover {
  background: #fff !important;
  color: #000 !important;
}

.paper-row { transition: background 0.18s ease, transform 0.18s ease; }
.paper-row:hover {
  background: rgba(0,0,0,0.03);
  transform: translateX(2px);
}
.dark .paper-row:hover { background: rgba(255,255,255,0.04); }

.filter-chip.active,
.tab-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.dark .filter-chip.active,
.dark .tab-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.type-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-qp  { background: #000; color: #fff; }
.badge-ms  { background: #555; color: #fff; }
.badge-er  { background: #888; color: #fff; }
.badge-gt  { background: #bbb; color: #000; }
.badge-other { background: #333; color: #fff; }
.dark .badge-qp { background: #fff; color: #000; }
.dark .badge-ms { background: #aaa; color: #000; }
.dark .badge-er { background: #777; color: #fff; }
.dark .badge-gt { background: #444; color: #fff; }

.subject-pill {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.result-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.search-bar-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}
.dark .search-bar-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

/* Top-bar level dropdowns — keep parents overflow:visible so menus aren't clipped */
.site-header {
  overflow: visible;
}
.site-nav {
  overflow: visible;
}
.nav-pill {
  background: #e5e5e5;
  border-radius: 999px;
  overflow: visible;
}
.dark .nav-pill {
  background: #121212;
}
.nav-pill-bordered {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.dark .nav-pill-bordered {
  background: #000;
  border-color: rgba(255, 255, 255, 0.08);
}
#nav-levels {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  overflow: visible;
}
.nav-item {
  position: relative;
  overflow: visible;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1.5px solid transparent;
  color: inherit;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-trigger:hover,
.nav-item.is-open .nav-trigger {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
}
.dark .nav-trigger:hover,
.dark .nav-item.is-open .nav-trigger {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.nav-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  padding-top: 0.5rem;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.is-open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel {
  min-width: 280px;
  max-width: min(440px, calc(100vw - 1.5rem));
  background: #fff;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
}
.dark .nav-dropdown-panel {
  background: #000;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.nav-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.dark .nav-dropdown-head {
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav-dropdown-head a {
  font-weight: 700;
  opacity: 0.75;
}
.nav-dropdown-head a:hover { opacity: 1; }
.nav-subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0.4rem;
  max-height: 360px;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .nav-subjects { grid-template-columns: 1fr; }
  .nav-dropdown {
    left: 0;
    transform: translateX(0) translateY(8px);
  }
  .nav-item.is-open .nav-dropdown,
  .nav-item:hover .nav-dropdown {
    transform: translateX(0) translateY(0);
  }
}
.nav-subjects-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.45;
}
.nav-subject-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease;
}
.nav-subject-link:hover {
  background: rgba(0,0,0,0.05);
}
.dark .nav-subject-link:hover {
  background: rgba(255,255,255,0.08);
}
.nav-subject-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,0,0,0.05);
  font-size: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.dark .nav-subject-icon { background: rgba(255,255,255,0.08); }
.nav-subject-link:hover .nav-subject-icon {
  background: #000;
  color: #fff;
}
.dark .nav-subject-link:hover .nav-subject-icon {
  background: #fff;
  color: #000;
}
.nav-subject-text { min-width: 0; }
.nav-subject-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-subject-code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.4;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  opacity: 0.7;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-icon-btn:hover {
  opacity: 1;
  background: #000;
  color: #fff;
}
.dark .nav-icon-btn:hover {
  background: #fff;
  color: #000;
}

/* Drawer toggle — mobile & tablet only */
.drawer-toggle {
  display: none;
}

/* Mobile nav drawer */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(360px, 88vw);
  height: 100%;
  height: 100dvh;
  background: #f5f5f5;
  color: #000;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dark .nav-drawer {
  background: #0a0a0a;
  color: #fff;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.6);
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.dark .nav-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.nav-drawer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.85rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
  padding: 0.75rem 0.65rem 0.4rem;
}
.drawer-level {
  border-radius: 0.85rem;
  margin-bottom: 0.35rem;
  overflow: hidden;
}
.drawer-level-head {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.drawer-level-head:hover,
.drawer-level.is-open .drawer-level-head {
  background: rgba(0, 0, 0, 0.06);
}
.dark .drawer-level-head:hover,
.dark .drawer-level.is-open .drawer-level-head {
  background: rgba(255, 255, 255, 0.08);
}
.drawer-level-title {
  flex: 1;
  min-width: 0;
}
.drawer-level-chevron {
  opacity: 0.4;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.drawer-level.is-open .drawer-level-chevron {
  transform: rotate(180deg);
}
.drawer-level-panel {
  display: none;
  padding: 0 0.35rem 0.55rem;
}
.drawer-level.is-open .drawer-level-panel {
  display: block;
}
.drawer-view-all {
  display: block;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  border-radius: 0.5rem;
}
.drawer-view-all:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}
.dark .drawer-view-all:hover {
  background: rgba(255, 255, 255, 0.06);
}
.drawer-subjects {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.drawer-link:hover {
  background: rgba(0, 0, 0, 0.06);
}
.dark .drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}
.drawer-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.45;
  font-size: 0.85rem;
}

@media (max-width: 1023px) {
  .nav-levels-desktop {
    display: none !important;
  }
  .drawer-toggle {
    display: inline-flex;
  }
  .site-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1024px) {
  .nav-drawer,
  .nav-drawer-overlay {
    display: none !important;
  }
}

/* Prevent flex/grid children from forcing horizontal scroll */
.container,
.site-header,
main,
section {
  max-width: 100%;
}
.hero-search {
  width: 100%;
  box-sizing: border-box;
}

/* Paper rows — keep actions usable on narrow screens */
.paper-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .nav-trigger {
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }
  .level-card {
    transform: none !important;
  }
  .level-card:hover {
    transform: none;
  }
}

/* How it Works — pinned scroll timeline */
.how-section {
  position: relative;
  /* Keep sticky ancestors free of overflow containment */
  overflow: visible;
}
.how-scroll-track {
  height: 320vh;
  position: relative;
}
.how-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #f5f5f5;
  z-index: 2;
  /* Full-bleed so empty track never peeks through */
  width: 100%;
  max-width: none;
  margin: 0;
}
.dark .how-sticky {
  background: #0a0a0a;
}
.how-sticky-inner {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}
.how-timeline {
  position: relative;
}
.how-line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  pointer-events: none;
}
.how-line-track {
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.15;
}
.how-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: #000;
}
.dark .how-line-fill {
  background: #fff;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  position: relative;
  z-index: 1;
}
.how-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  opacity: 0.35;
  transition: opacity 0.25s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  width: 100%;
}
.how-step.is-active,
.how-step.is-done {
  opacity: 1;
}
.how-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: #f5f5f5;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.dark .how-dot {
  background: #0a0a0a;
}
.how-step.is-active .how-dot,
.how-step.is-done .how-dot {
  background: #000;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}
.dark .how-step.is-active .how-dot,
.dark .how-step.is-done .how-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}
.how-step.is-active .how-dot {
  transform: scale(1.2);
}
.how-content {
  transition: opacity 0.22s ease, transform 0.25s ease;
}
.how-content.is-switching {
  opacity: 0;
  transform: translateY(12px);
}
@media (max-width: 767px) {
  .how-scroll-track { height: auto; }
  .how-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    top: auto;
  }
}

/* Hero orbit — "choose your path"
   Every size derives from the container's inline width (cqi), so the widget
   scales to any column without media queries or JS measurement. */
.orbit {
  container-type: inline-size;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
/* Radius is set so the inner corner of a diagonal card clears the hub, and its
   outer corner still lands inside the square stage. */
.orbit-stage {
  --card-w: 17.5cqi;
  --orbit-r: calc(var(--card-w) * 1.72);
  --orbit-duration: 44s;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.orbit-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 0, 0, 0.16);
}
.dark .orbit-ring {
  border-color: rgba(255, 255, 255, 0.18);
}
.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}
.dark .orbit-dot {
  background: #fff;
}
.orbit-dot:nth-child(1) { top: -3px; left: 50%; margin-left: -3px; }
.orbit-dot:nth-child(2) { bottom: 8%; left: 6%; }
.orbit-dot:nth-child(3) { top: 38%; right: -3px; }
.orbit-dot:nth-child(4) { bottom: -3px; right: 30%; }

.orbit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(52px, 15cqi, 86px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 4.2cqi, 24px);
  box-shadow:
    0 0 0 7px rgba(245, 245, 245, 0.9),
    0 0 0 8px rgba(0, 0, 0, 0.08),
    0 18px 40px -14px rgba(0, 0, 0, 0.45);
}
.dark .orbit-hub {
  background: #fff;
  color: #000;
  box-shadow:
    0 0 0 7px rgba(10, 10, 10, 0.9),
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 18px 40px -14px rgba(0, 0, 0, 0.8);
}

.orbit-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit-spin var(--orbit-duration) linear infinite;
  will-change: transform;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Polar placement: rotate out, push along the radius, rotate back. */
.orbit-place {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--deg)) translate(var(--orbit-r)) rotate(calc(-1 * var(--deg)));
}
.orbit-place:nth-child(1) { --deg: -90deg; }
.orbit-place:nth-child(2) { --deg: 30deg; }
.orbit-place:nth-child(3) { --deg: 150deg; }

.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--card-w) * 1.9);
  height: calc(var(--card-w) * 0.72);
  transform: translate(-50%, -50%);
  /* Cancels the parent's rotation so cards stay upright as they travel. */
  animation: orbit-counter-spin var(--orbit-duration) linear infinite;
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 6%;
  padding: 0 6%;
  border-radius: 1rem;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 18px 34px -14px rgba(0, 0, 0, 0.18);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
@keyframes orbit-counter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
.dark .orbit-card {
  background: #000;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 34px -14px rgba(0, 0, 0, 0.8);
}
.orbit-card:hover,
.orbit-card:focus-visible {
  border-color: #000;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 26px 46px -14px rgba(0, 0, 0, 0.3);
  outline: none;
}
.dark .orbit-card:hover,
.dark .orbit-card:focus-visible {
  border-color: #fff;
}

.orbit-card-icon {
  flex-shrink: 0;
  width: 28%;
  aspect-ratio: 1 / 1;
  border-radius: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: clamp(9px, 2.6cqi, 14px);
}
.dark .orbit-card-icon {
  background: #fff;
  color: #000;
}
.orbit-card-text {
  min-width: 0;
}
.orbit-card-title {
  display: block;
  font-weight: 700;
  font-size: clamp(11px, 3.1cqi, 15px);
  line-height: 1.15;
  white-space: nowrap;
}
.orbit-card-sub {
  display: block;
  margin-top: 0.3em;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(7px, 2cqi, 10px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-caption {
  margin-top: clamp(0.5rem, 2cqi, 1rem);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9px, 2.2cqi, 11px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
}

/* Stop the carousel so a moving card can be clicked, and idle it off-screen. */
.orbit-stage:hover .orbit-spin,
.orbit-stage:hover .orbit-card,
.orbit-stage:focus-within .orbit-spin,
.orbit-stage:focus-within .orbit-card,
.orbit-stage.is-paused .orbit-spin,
.orbit-stage.is-paused .orbit-card {
  animation-play-state: paused;
}

@container (max-width: 380px) {
  .orbit-card-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spin,
  .orbit-card {
    animation: none;
  }
}

.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 0.75rem;
}
.dark .skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
