/* --- the nakshatra ------------------------------------------------------------
   Twenty-seven sectors inside the sidereal signs, the Moon at birth and now,
   and the dashas as a lifeline. Gold is only ever what is being read or what
   is running now; the Moon keeps its own colour inside the drawings.
   ------------------------------------------------------------------------- */

.nak__sector {
  fill: var(--ink-deep);
  stroke: var(--line);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 140ms linear;
}
.nak__sector:hover { fill: var(--ink-mid); }

.nak__num {
  fill: var(--paper);
  font-family: var(--font-display);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.nak__lord {
  fill: var(--paper-mute);
  font-family: var(--font-body);
  font-size: 17px;
}
.nak__pada { fill: none; stroke: var(--line-field); stroke-width: 1; }

.nak__litring { fill: none; stroke: var(--sol); stroke-width: 3; stroke-linejoin: round; }
.nak__nowring {
  fill: none;
  stroke: var(--paper-dim);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  stroke-linejoin: round;
}

.nak__name {
  fill: var(--paper);
  font-family: var(--font-display);
  font-size: 50px;
}
.nak__line {
  fill: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 25px;
}
.nak__lordline { fill: var(--sol-lift); }
.nak__small {
  fill: var(--paper-mute);
  font-family: var(--font-body);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.nak__probe {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  font-size: var(--step-0);
  color: var(--paper);
  min-height: 1.6em;
}

/* a note that is filled by the script and has nothing to say yet takes no room */
.nak__note:empty { display: none; }

.nak__below { max-width: 42rem; margin-inline: auto; }

/* --- the dashas: a hundred and twenty years in one strip, scrolled inside
   its own box on a narrow screen rather than shrunk to nothing --------- */

.nak__dashas { margin: 0; display: grid; gap: 1rem; justify-items: center; }
.nak__dashas > div { width: 100%; overflow-x: auto; }
.nak__dashasvg { width: 100%; min-width: 40rem; height: auto; display: block; }
.nak__dashas figcaption {
  font-size: var(--step--1);
  color: var(--paper-mute);
  text-align: center;
  max-width: 60ch;
}

.nak__dasha { cursor: pointer; outline: none; }
.nak__dashabar { fill-opacity: 0.3; stroke-width: 1.5; stroke-opacity: 0.9; }
.nak__dasha.is-picked .nak__dashabar,
.nak__dasha:focus-visible .nak__dashabar { stroke: var(--sol-lift); stroke-width: 3; stroke-opacity: 1; }
.nak__dashaname {
  fill: var(--paper);
  font-family: var(--font-body);
  font-size: 21px;
}
.nak__dashatick { stroke: var(--line-field); stroke-width: 1; }
.nak__dashaage {
  fill: var(--paper-mute);
  font-family: var(--font-body);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.nak__dashanow { fill: none; stroke: var(--sol); stroke-width: 3; }
.nak__dashanowline { stroke: var(--sol); stroke-width: 2; }
.nak__dashanowlabel {
  fill: var(--sol-lift);
  font-family: var(--font-body);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .nak__sector { transition: none; }
}
