/* ============================================================================
   pages/astro.css — astro.php (Fáze 7B)
   ============================================================================ */

.page-astro {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-xl) 32px var(--space-3xl);
}
@media (max-width: 600px) {
  .page-astro { padding: var(--space-lg) 16px var(--space-2xl); }
}

.page-astro .page-hero { margin-bottom: var(--space-xl); }
.page-astro .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: var(--space-sm); flex-wrap: wrap;
}
.page-astro .breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.page-astro .breadcrumb a:hover { color: var(--blue); }
.page-astro .breadcrumb__sep { opacity: 0.5; }
.page-astro .breadcrumb__current { color: var(--ink); font-weight: 500; }
.page-astro .page-hero__title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}
.page-astro .page-hero__lead {
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.55;
  max-width: 72ch; margin: 0;
}

/* Grid summary karet (slunce/měsíc) */
.astro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.astro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.astro-card__label {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 500;
}
.astro-card__value {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.astro-card__meta {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Sekční obal */
.astro-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}
.astro-section h2 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

/* Dvojblok slunce/měsíc */
.astro-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
@media (max-width: 760px) {
  .astro-pair { grid-template-columns: 1fr; }
}
.astro-pair h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}
.astro-pair h3 img { width: 22px; height: 22px; border-radius: 4px; }

.kv2 {
  width: 100%;
  border-collapse: collapse;
}
.kv2 tr { border-bottom: 1px solid var(--line); }
.kv2 tr:last-child { border-bottom: 0; }
.kv2 th, .kv2 td { padding: 8px 10px; font-size: 14px; }
.kv2 th {
  width: 48%;
  color: var(--ink-muted);
  font-weight: 500;
  text-align: right;
}
.kv2 td { width: 52%; text-align: left; }
.kv2 td strong {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   Sky Ring — moderní obloha nad stanicí (vlastní canvas widget)
   ========================================================================== */
.sky-section { padding-top: 0; }
.sky-ring {
  background: linear-gradient(180deg, #0A1530 0%, #03081E 100%);
  border-radius: var(--radius-md, 18px);
  box-shadow: var(--shadow-md, 0 6px 28px rgba(5, 10, 28, .35));
  color: #E3E9F5;
  padding: 20px 22px 18px;
  position: relative;
  overflow: hidden;
}
.sky-ring::before {
  /* Decentní noc — rozptýlené hvězdičky v pozadí karty */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.5) 0, transparent 2px),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.35) 0, transparent 1.5px),
    radial-gradient(circle at 38% 72%, rgba(255,255,255,.4) 0, transparent 2px),
    radial-gradient(circle at 65% 58%, rgba(255,255,255,.28) 0, transparent 1.5px),
    radial-gradient(circle at 91% 82%, rgba(255,255,255,.35) 0, transparent 2px),
    radial-gradient(circle at 8% 88%, rgba(255,255,255,.22) 0, transparent 1.5px);
  pointer-events: none;
  opacity: .7;
}
.sky-ring__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.sky-ring__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.01em;
  color: #F2F5FB;
  margin: 0;
  line-height: 1.1;
}
.sky-ring__sub {
  font-size: 13px;
  color: rgba(200, 212, 235, .65);
  margin-top: 2px;
}
.sky-ring__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sky-ring__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 12.5px;
  color: #E0E7F5;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.sky-ring__chip .dot--now {
  width: 7px; height: 7px; border-radius: 50%;
  background: #66BC29;
  box-shadow: 0 0 0 3px rgba(102,188,41,.25);
  animation: skyDotPulse 2s ease-in-out infinite;
}
@keyframes skyDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(102,188,41,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(102,188,41,.08); }
}

.sky-ring__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  margin: 0 auto;
  z-index: 1;
}
#sky-ring-canvas {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.sky-ring__tip {
  position: absolute;
  padding: 4px 9px;
  font: 600 12px/1.3 Inter, system-ui, sans-serif;
  color: #0F1933;
  background: #F2F5FB;
  border-radius: 6px;
  pointer-events: none;
  transform: translate(0, -100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  white-space: nowrap;
  z-index: 3;
}

/* Time strip pod mapou */
.sky-ring__strip {
  margin: 16px 2px 10px;
  position: relative;
  z-index: 1;
}
.sky-strip__bar {
  position: relative;
  height: 10px;
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  overflow: visible;
}
.sky-strip__night {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a1230 0%, #15204a 50%, #0a1230 100%);
}
.sky-strip__day {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, #F9C770 0%, #FFE2A0 50%, #F9C770 100%);
  border-radius: 999px;
  transition: left .3s ease, width .3s ease;
}
.sky-strip__now {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px;
  background: #66BC29;
  box-shadow: 0 0 8px rgba(102,188,41,.8);
  border-radius: 2px;
  transition: left .3s ease;
}
.sky-strip__mark {
  position: absolute; top: -3px; bottom: -3px;
  width: 3px;
  border-radius: 3px;
}
.sky-strip__mark--rise { background: #FFC24F; }
.sky-strip__mark--set  { background: #E07A4F; }
.sky-strip__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(200,212,235,.5);
  font-variant-numeric: tabular-nums;
}

/* Legenda */
.sky-ring__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(210, 220, 240, .75);
  position: relative;
  z-index: 1;
}
.sky-ring__legend .leg { display: inline-flex; align-items: center; gap: 7px; }
.sky-ring__legend .leg--muted { color: rgba(180,192,215,.5); margin-left: auto; }
.leg__dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.leg__dot--sun  { background: #FFD25A; box-shadow: 0 0 8px rgba(255,210,90,.55); }
.leg__dot--moon { background: linear-gradient(90deg, #F0F2F5 0 50%, rgba(210,220,235,.25) 50% 100%); }
.leg__dot--star { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .sky-ring__head { flex-direction: column; gap: 6px; }
  .sky-ring__title { font-size: 24px; }
  .sky-ring__stage { max-height: 420px; }
  .sky-ring__legend .leg--muted { margin-left: 0; }
}
