/* 27 Nakshatra encyclopedia */

.nk-page {
  --nk-ink: #0f172a;
  --nk-muted: #475569;
  --nk-line: rgba(15, 23, 42, 0.12);
  --nk-deep: #1e3a5f;
  --nk-accent: #0f766e;
  --nk-on-dark: #f8fafc;
  --nk-on-dark-muted: #cbd5e1;
  --nk-display: Fraunces, "Noto Serif Devanagari", Georgia, serif;
  --nk-body: Outfit, "Noto Sans Devanagari", system-ui, sans-serif;
  background: linear-gradient(180deg, #090A0F 0%, #090A0F 2rem, #eef2f7 2rem, #e8edf4 100%);
  font-family: var(--nk-body);
  color: var(--nk-ink);
}

.nk-wrap { max-width: 52rem; }

.nk-sky-inner { position: relative; z-index: 1; }

/* Bright type on starfield */
.nk-sky-band,
.nk-sky-band .bk-lede,
.nk-sky-band .bk-crumb,
.nk-sky-band .om-guide-disclaimer,
.nk-sky-band .om-guide-disclaimer p,
.nk-sky-band .om-guide-disclaimer-label,
.nk-sky-band .om-guide-disclaimer strong,
.nk-sky-band .om-guide-lang,
.nk-sky-band .om-guide-lang a,
.nk-sky-band .om-guide-lang span,
.nk-sky-band .bk-lang,
.nk-sky-band .bk-lang a,
.nk-sky-band .social-share,
.nk-sky-band .social-share a,
.nk-sky-band .social-share span,
.nk-sky-band label,
.nk-sky-band p {
  color: var(--nk-on-dark) !important;
}

.nk-sky-band .bk-crumb a,
.nk-sky-band .om-guide-lang a,
.nk-sky-band .bk-lang a,
.nk-sky-band .social-share a {
  color: #fde68a !important;
}

.nk-sky-band .bk-eyebrow,
.nk-detail-hero .bk-eyebrow {
  color: #fde68a !important;
}

.nk-sky-band h1,
.nk-hero h1,
.nk-detail-hero h1 {
  font-family: var(--nk-display);
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nk-sky-band .bk-lede {
  color: #e2e8f0 !important;
}

.nk-detail-sanskrit {
  font-family: "Noto Serif Devanagari", Fraunces, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fde68a !important;
  margin: 0.35rem 0 0;
}

.nk-sky-band .bk-lang-btn {
  color: #f8fafc !important;
  border-color: rgba(253, 230, 138, 0.45) !important;
  background: rgba(15, 23, 42, 0.4) !important;
}

.nk-sky-band .bk-lang-btn.is-active {
  color: #0f172a !important;
  background: #fde68a !important;
  border-color: #fde68a !important;
}

/* Jyotiṣa guide note — solid dark panel (overrides cream guide-system card) */
.nk-sky-band .om-guide-disclaimer {
  margin-top: 1.25rem !important;
  padding: 1.05rem 1.2rem !important;
  border: 1px solid rgba(253, 230, 138, 0.45) !important;
  border-radius: 0.5rem;
  background: #0b1220 !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nk-sky-band .om-guide-disclaimer-label,
.nk-sky-band .om-guide-disclaimer p.om-guide-disclaimer-label {
  color: #fde68a !important;
  letter-spacing: 0.12em;
}

.nk-sky-band .om-guide-disclaimer p:not(.om-guide-disclaimer-label) {
  color: #f1f5f9 !important;
  line-height: 1.7 !important;
}

.nk-body {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.nk-section-lede {
  color: var(--nk-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.nk-wheel-section,
.nk-finder,
.nk-catalog,
.nk-block {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nk-line);
}

.nk-wheel-section--sky {
  border-top-color: rgba(255, 255, 255, 0.14);
  margin-top: 1.75rem;
}

.nk-wheel-section--sky h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.nk-wheel-section--sky .nk-section-lede {
  color: #cbd5e1 !important;
}

.nk-wheel-section--sky .nk-wheel-svg {
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.55));
}

.nk-wheel-section h2,
.nk-finder h2,
.nk-catalog h2,
.nk-block h2 {
  font-family: var(--nk-display);
  font-size: 1.55rem;
  color: var(--nk-deep);
  margin: 0 0 0.5rem;
}

.nk-wheel-figure {
  position: relative;
  margin: 1.25rem auto 0;
  max-width: min(100%, 34rem);
}

.nk-wheel-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(2, 6, 23, 0.18));
}

.nk-wheel-spin {
  transform-origin: 260px 260px;
  animation: nk-spin 120s linear infinite;
}

.nk-wheel-figure:hover .nk-wheel-spin,
.nk-wheel-figure:focus-within .nk-wheel-spin {
  animation-play-state: paused;
}

@keyframes nk-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nk-wheel-spin { animation: none; }
}

.nk-wheel-slice {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.nk-wheel-slice-link:hover .nk-wheel-slice,
.nk-wheel-slice-link:focus-visible .nk-wheel-slice {
  filter: brightness(1.22) saturate(1.08);
  outline: none;
}

.nk-wheel-num {
  fill: #ffffff;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(15, 23, 42, 0.55);
  stroke-width: 2.5px;
}

.nk-wheel-short {
  fill: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(15, 23, 42, 0.65);
  stroke-width: 2.75px;
}

.nk-wheel-tip {
  position: absolute;
  z-index: 5;
  min-width: 11rem;
  max-width: 16rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 0.75rem));
}

.nk-wheel-tip strong {
  display: block;
  font-family: var(--nk-display);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.nk-wheel-tip span {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.nk-wheel-center-label {
  fill: #0f172a;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--nk-display);
}

.nk-wheel-center-sub {
  fill: #334155;
  font-size: 16px;
  font-weight: 700;
}

.nk-finder-controls {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .nk-finder-controls { grid-template-columns: 1.4fr 1fr; }
}

.nk-finder-controls label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--nk-muted);
}

.nk-finder-controls select,
.nk-search input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--nk-line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  color: var(--nk-ink);
}

.nk-finder-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.1rem;
  background: linear-gradient(160deg, #0b1220, #1e293b);
  border-radius: 0.75rem;
  color: #e2e8f0;
}

@media (min-width: 720px) {
  .nk-finder-panel { grid-template-columns: 240px 1fr; align-items: start; }
}

.nk-star-chart {
  width: 100%;
  max-width: 240px;
  background: radial-gradient(circle at 40% 35%, #1e3a5f, #020617 70%);
  border-radius: 0.5rem;
}

.nk-star-chart--lg { max-width: 280px; }

.nk-finder-kicker {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nk-finder-copy h3 {
  font-family: var(--nk-display);
  margin: 0.25rem 0 0.5rem;
  color: #f8fafc;
}

.nk-finder-stars {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.nk-finder-link {
  color: #fde68a;
  font-weight: 600;
  text-decoration: none;
}

.nk-finder-link:hover { text-decoration: underline; }

.nk-search-row { margin: 0.85rem 0 1rem; }

.nk-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .nk-grid { grid-template-columns: 1fr 1fr; }
}

.nk-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--nk-accent, #0f766e);
  border-radius: 0 0.45rem 0.45rem 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nk-card.is-hidden { display: none; }

.nk-card-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nk-accent);
}

.nk-card-sanskrit {
  font-family: "Noto Serif Devanagari", serif;
  color: var(--nk-muted);
  font-size: 1.05rem;
}

.nk-card h3 {
  font-family: var(--nk-display);
  margin: 0;
  font-size: 1.2rem;
  color: var(--nk-deep);
}

.nk-card-tag {
  margin: 0;
  font-size: 0.88rem;
  color: var(--nk-muted);
  line-height: 1.45;
}

.nk-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--nk-muted);
}

.nk-card-star {
  font-size: 0.78rem;
  color: #0f766e;
  font-weight: 600;
}

.nk-stat-strip {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .nk-stat-strip { grid-template-columns: repeat(3, 1fr); }
}

.nk-stat-strip > div {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.4rem;
  border-top: 3px solid var(--nk-accent);
}

.nk-stat-strip span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nk-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nk-stat-strip strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.nk-stat-strip a { color: var(--nk-accent); }

/* On starfield — after base strip rules so cascade wins */
.nk-sky-band .nk-stat-strip--on-dark > div {
  background: #0b1220 !important;
  border-top-color: #fde68a !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.nk-sky-band .nk-stat-strip--on-dark span {
  color: #94a3b8 !important;
}

.nk-sky-band .nk-stat-strip--on-dark strong,
.nk-sky-band .nk-stat-strip--on-dark a {
  color: #f8fafc !important;
}

.nk-sky-band .nk-stat-strip--on-dark a:hover {
  color: #fde68a !important;
}

.nk-muted { color: var(--nk-muted); }

.nk-two-col {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .nk-two-col { grid-template-columns: 1fr 1fr; }
}

.nk-pada-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .nk-pada-grid { grid-template-columns: 1fr 1fr; }
}

.nk-pada {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0.4rem;
  border-left: 3px solid var(--nk-accent);
}

.nk-pada h3 { margin: 0 0 0.35rem; font-family: var(--nk-display); font-size: 1.05rem; }

.nk-sky-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

@media (min-width: 700px) {
  .nk-sky-grid { grid-template-columns: 280px 1fr; }
}

.nk-star-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--nk-muted);
}

.nk-star-list li { margin-bottom: 0.55rem; }
.nk-star-list strong { color: var(--nk-ink); display: block; }
.nk-star-list em { display: block; font-size: 0.85rem; }

.nk-mantra {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
  white-space: pre-line;
  padding: 0.85rem 1rem;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 0.4rem;
}

.nk-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nk-line);
}

.nk-pager a {
  color: var(--nk-accent);
  font-weight: 600;
  text-decoration: none;
}

.nk-pager a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Light text on dark hero only — after hero, body sections sit on light band */
.nk-page .guide-related {
  position: relative;
  z-index: 1;
}
