/* ============================================================
   Celestial motifs — stars, planet glyphs, dasha timeline.
   Layered on top of style.css; kept separate since not every
   page needs these.
   ============================================================ */

/* A dark band with a subtle scattered-star backdrop, reused
   on several page headers for a consistent "night sky" feel. */
.celestial-band {
  position: relative;
  background:
    radial-gradient(1px 1px at 8% 22%, rgba(247,243,233,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 64%, rgba(247,243,233,0.4) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 27% 38%, rgba(200,134,45,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 12%, rgba(247,243,233,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 70%, rgba(247,243,233,0.35) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 63% 30%, rgba(200,134,45,0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 55%, rgba(247,243,233,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 18%, rgba(247,243,233,0.4) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 93% 60%, rgba(200,134,45,0.5) 50%, transparent 51%),
    var(--indigo-950);
  background-repeat: no-repeat;
}

/* Small inline planet glyph chip, used next to Dasha lords,
   astrologer specialisms, etc. */
.planet-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(122, 46, 46, 0.1);
  color: var(--decor-text-light);
  font-size: 0.85rem;
  margin-right: 6px;
}

/* ---------------- Dasha timeline ---------------- */
.dasha-timeline {
  border-left: 2px solid var(--line);
  margin-left: 14px;
  padding-left: 28px;
}
.dasha-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dasha-row:last-child { border-bottom: none; }
.dasha-row::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 24px;
  width: 9px; height: 9px;
  background: var(--surface-alt-color);
  border: 2px solid var(--indigo-700);
  border-radius: 50%;
}
.dasha-row.is-current::before {
  background: var(--gold-600);
  border-color: var(--gold-700);
  box-shadow: 0 0 0 4px rgba(200,134,45,0.18);
}
.dasha-planet-glyph {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-alt-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--heading-color);
  flex-shrink: 0;
}
.dasha-row.is-current .dasha-planet-glyph {
  background: var(--gold-600);
  color: var(--indigo-950);
}
.dasha-row-title { font-weight: 700; color: var(--heading-color); font-family: var(--font-display); font-size: 1.05rem; }
.dasha-row-dates { font-size: 0.85rem; color: var(--ink-600); margin-top: 2px; }

/* ---------------- Mini "current dasha" widget for the homepage ---------------- */
.dasha-widget {
  background: rgba(247, 243, 233, 0.06);
  border: 1px solid rgba(247, 243, 233, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.dasha-widget .label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--decor-text-dark); font-weight: 700; margin-bottom: 10px; display:block;
}
.dasha-widget .planet-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
}
.dasha-widget .planet-row .glyph {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(247, 243, 233, 0.12); color: var(--parchment-100);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.dasha-widget .planet-name { color: var(--parchment-100); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.dasha-widget .planet-sub { color: rgba(247,243,233,0.72); font-size: 0.78rem; }
.dasha-widget .cta { margin-top: 14px; }
.dasha-widget .cta a { color: var(--gold-600); font-weight: 600; font-size: 0.85rem; }

/* ---------------- Forum landing hero (community / lounge) ---------------- */
.forum-hero {
  position: relative;
  padding: 64px 0 56px;
}
.forum-hero-stats {
  display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap;
}
.forum-hero-stats div strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem;
}
.forum-hero-stats div span { font-size: 0.8rem; }

.recent-topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .recent-topics-grid { grid-template-columns: 1fr; } }

.recent-topic-card {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.recent-topic-card:hover { border-color: var(--gold-600); transform: translateY(-2px); }
.recent-topic-card .title { font-weight: 700; color: var(--heading-color); margin-bottom: 4px; }
.recent-topic-card .meta { font-size: 0.8rem; color: var(--ink-600); }

/* Decorative orbiting dots around a central glyph — used sparingly
   as a signature element on forum landing pages */
.orbit-wrap {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto;
}
.orbit-ring {
  position: absolute; inset: 0;
  border: 1px dashed rgba(200,134,45,0.35);
  border-radius: 50%;
}
.orbit-ring.inner { inset: 24px; }
.orbit-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--indigo-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-600);
}

/* ---------------- Kundali generator result ---------------- */
.kundali-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .kundali-result-grid { grid-template-columns: 1fr; } }

.kundali-chart-wrap {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.kundali-svg { width: 100%; height: auto; display: block; }

.planet-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) { .planet-input-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Trust stats strip (homepage) ---------------- */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .trust-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .trust-stats { grid-template-columns: repeat(2, 1fr); } }
.trust-tile {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 243, 233, 0.12);
  background: rgba(247, 243, 233, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.trust-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 243, 233, 0.3);
  background: rgba(247, 243, 233, 0.08);
}
.trust-tile .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--parchment-100);
  line-height: 1.1;
}
.trust-tile .lbl {
  display: block;
  font-size: 0.76rem;
  color: rgba(247, 243, 233, 0.68);
  margin-top: 4px;
}

/* ---------------- Live transit strip (homepage) ---------------- */
.transit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .transit-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .transit-strip { grid-template-columns: 1fr; } }

.transit-chip {
  display: flex;
  flex-direction: column;
  background: rgba(247, 243, 233, 0.06);
  border: 1px solid rgba(247, 243, 233, 0.14);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.transit-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 243, 233, 0.28);
}
.transit-chip-body { padding: 10px 8px 12px; display: flex; gap: 10px; align-items: center; }
.transit-glyph {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(122, 46, 46, 0.12);
  color: var(--maroon-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.transit-name { color: var(--parchment-100); font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; }
.transit-note { color: rgba(247,243,233,0.72); font-size: 0.7rem; margin-top: 2px; line-height: 1.4; }

/* ---------------- Animated planet visuals (Live Sky cards) ---------------- */
.planet-visual { display: block; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(200,134,45,0.25)); }
.planet-spin-slow { animation: planet-rotate 22s linear infinite; }
.planet-spin { animation: planet-rotate 14s linear infinite; }
.planet-pulse { animation: planet-glow-pulse 3.2s ease-in-out infinite; }

@keyframes planet-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes planet-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(200,134,45,0.25)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 12px rgba(200,134,45,0.5)); transform: scale(1.06); }
}

/* ---------------- Ambient moving-planets background ----------------
   A small, fixed-position field of slowly drifting planet glyphs and
   stars, layered behind all page content. Deliberately subtle: low
   opacity, slow motion, never intercepts clicks (pointer-events: none).
   Respects prefers-reduced-motion via the rule already in style.css. */
.cosmic-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cosmic-field .body {
  position: absolute;
  opacity: 0.18;
  color: var(--maroon-700);
  font-size: 22px;
  animation: cosmic-drift linear infinite;
}
.cosmic-field .body.dim { opacity: 0.12; color: var(--indigo-700); font-size: 14px; }
.cosmic-field .body.bright { opacity: 0.26; }
.cosmic-field .body.teal { color: var(--cosmic-teal); }
.cosmic-field .body.pink { color: var(--nebula-pink); }
.cosmic-field .body.purple { color: var(--nebula-purple); }

.cosmic-field .twinkle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--parchment-100);
  animation: cosmic-twinkle ease-in-out infinite;
}

@keyframes cosmic-twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

@keyframes cosmic-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(18px, -14px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Ensure real content always sits above the cosmic field */
.services-topbar, .hero, .section, .section-alt, .section-dark, .forum-hero, .site-footer, .celestial-band, .main-content {
  position: relative;
  z-index: 1;
}

/* Header wrapper sits above page sections (dropdowns must not be clipped) */
.site-header-wrap {
  z-index: 100;
}

/* ---------------- Services top bar (horizontal, below header) ---------------- */
.services-topbar {
  background: var(--indigo-900);
  border-bottom: 1px solid rgba(247,243,233,0.10);
  position: relative;
  z-index: 10;
}
.services-topbar .container {
  padding-top: 0;
  padding-bottom: 0;
}
.services-divider {
  width: 1px;
  background: rgba(247,243,233,0.15);
  align-self: stretch;
  flex-shrink: 0;
  margin: 6px 4px;
}

.main-content { min-width: 0; }

/* Legacy sidebar styles kept minimal for other pages */
.page-with-sidebar {
  display: block;
}
.main-with-sidebar { min-width: 0; }

.services-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  align-items: center;
}
.service-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(247,243,233,0.07);
  border: 1px solid rgba(247,243,233,0.14);
  border-radius: 30px;
  padding: 6px 16px 6px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(247,243,233,0.85);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.service-chip:hover {
  background: rgba(247,243,233,0.13);
  border-color: var(--gold-600);
  color: var(--parchment-100);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.5);
}
.service-chip .glyph {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(247,243,233,0.16);
  color: var(--parchment-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(247,243,233,0.12), 0 2px 6px rgba(0,0,0,0.35);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.service-chip:hover .glyph {
  box-shadow: 0 0 10px 2px rgba(247,243,233,0.35), 0 0 0 1px rgba(247,243,233,0.18);
  transform: scale(1.08);
}

/* ---------------- Kundali results responsive grid ---------------- */
@media (max-width: 720px) {
  .kundali-result-split { grid-template-columns: 1fr !important; }
  .consult-features-grid { grid-template-columns: 1fr !important; }
}

/* ---------------- Learning page ---------------- */
.learning-tier-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tier-nav-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--indigo-900);
  color: var(--parchment-100);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.tier-nav-link:hover { background: var(--indigo-800); }
.tier-nav-link .glyph { color: var(--decor-text-dark); font-size: 0.95rem; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .course-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.course-card:hover { border-color: var(--gold-600); transform: translateY(-2px); }
.course-card .tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon-700);
  font-weight: 600;
}
.course-card h3 { margin-top: 8px; margin-bottom: 6px; font-size: 1.1rem; }
.course-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------------- Panchang page ---------------- */
.panchang-live {
  background: var(--indigo-950);
  color: var(--parchment-100);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #5fd67a;
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(95,214,122,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(95,214,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,214,122,0); }
}

/* ---------------- Loading: spinner + skeleton placeholders ---------------- */
@keyframes kc-spin { to { transform: rotate(360deg); } }
@keyframes kc-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.kc-skeleton {
  display: block;
  background-size: 400% 100%;
  animation: kc-shimmer 1.4s ease infinite;
}
.kc-skeleton--light {
  background-image: linear-gradient(90deg, rgba(34,28,20,0.07) 25%, rgba(34,28,20,0.13) 37%, rgba(34,28,20,0.07) 63%);
}
.kc-skeleton--dark {
  background-image: linear-gradient(90deg, rgba(247,243,233,0.06) 25%, rgba(247,243,233,0.14) 37%, rgba(247,243,233,0.06) 63%);
}
.panchang-live .live-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247,243,233,0.75); font-weight: 700;
  white-space: nowrap;
}
.panchang-live .live-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(247,243,233,0.08);
  border: 1px solid rgba(247,243,233,0.16);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: rgba(247,243,233,0.9);
}
.panchang-live .live-chip strong { color: var(--parchment-100); }
.panchang-live .live-chip.warn { border-color: rgba(224,110,110,0.55); background: rgba(224,110,110,0.14); color: #ffd4d4; }
.panchang-live .live-chip.good { border-color: rgba(95,214,122,0.5); background: rgba(95,214,122,0.12); color: #bdf0c8; }

/* Five-limbs / stat tiles */
.panchang-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .panchang-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .panchang-tiles { grid-template-columns: 1fr; } }
.panchang-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface-color);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.panchang-tile:hover { border-color: rgba(122, 46, 46, 0.3); transform: translateY(-2px); }
.panchang-tile .tile-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--decor-text-light); font-weight: 700; margin-bottom: 8px;
}
.panchang-tile .tile-value {
  font-family: var(--font-display); font-size: 1.12rem; color: var(--heading-color); font-weight: 700;
}
.panchang-tile .tile-sub { font-size: 0.8rem; color: var(--ink-600); margin-top: 3px; }

.panchang-meter {
  height: 6px;
  border-radius: 4px;
  background: var(--surface-alt-color);
  margin-top: 10px;
  overflow: hidden;
}
.panchang-meter > div {
  height: 100%;
  background: var(--maroon-700);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Sun / Moon stat row */
.sunmoon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .sunmoon-grid { grid-template-columns: 1fr 1fr; } }
.sunmoon-tile {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface-color);
}
.sunmoon-tile .glyph {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-alt-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
}
.sunmoon-tile .label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-600); font-weight: 700; }
.sunmoon-tile .value { font-family: var(--font-display); font-weight: 700; color: var(--heading-color); font-size: 1.02rem; }

/* Kala Times chips */
.kala-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 600px) { .kala-grid { grid-template-columns: 1fr; } }
.kala-chip {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-color);
  position: relative;
}
.kala-chip.inauspicious { border-left: 4px solid var(--maroon-700); }
.kala-chip.auspicious { border-left: 4px solid #1f5c33; }
.kala-chip.active { border-color: var(--gold-600); box-shadow: 0 0 0 2px rgba(200,134,45,0.2); }
.kala-chip .glyph {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.kala-chip.inauspicious .glyph { background: rgba(122,46,46,0.12); color: var(--maroon-700); }
.kala-chip.auspicious .glyph { background: rgba(31,92,51,0.12); color: #1f5c33; }
.kala-chip .name { font-weight: 700; color: var(--heading-color); font-size: 0.92rem; }
.kala-chip .time { font-size: 0.82rem; color: var(--ink-600); margin-top: 2px; }
.now-badge {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold-600); color: var(--indigo-950);
  padding: 2px 8px; border-radius: 20px;
}

/* ---------------- Transits page ---------------- */
.transit-detail-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 520px) {
  .transit-detail-card { grid-template-columns: 1fr; padding: 16px 16px; }
}

/* ---------------- Vastu page ---------------- */
.vastu-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 52px auto 0;
  max-width: 680px;
}
@media (max-width: 640px) { .vastu-hero-stats { grid-template-columns: repeat(2, 1fr); } }

.room-analysis-row {
  display: grid;
  grid-template-columns: 200px 160px 80px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 700px) { .room-analysis-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------------- Compatibility page — Ashtakoot rows ---------------- */
.koota-row {
  display: grid;
  grid-template-columns: 200px 80px 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
@media (max-width: 600px) { .koota-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------------- Western Astrology page — aspects rows ---------------- */
.aspect-row {
  display: grid;
  grid-template-columns: 150px 52px 1fr;
  align-items: center;
  gap: 14px;
}
@media (max-width: 640px) { .aspect-row { grid-template-columns: 1fr; gap: 6px; } }

/* Choghadiya / Hora period cards */
.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 760px) { .period-grid { grid-template-columns: repeat(2, 1fr); } }
.period-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.period-card.active {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 2px rgba(200,134,45,0.25);
}
.period-card .p-name { font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.period-card .p-time { font-size: 0.76rem; color: var(--ink-600); margin-top: 3px; }
.period-subhead {
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-600); font-weight: 700; margin: 18px 0 10px;
}
.period-subhead:first-child { margin-top: 0; }
