/* --- the Vedic chart ------------------------------------------------------------
   Two square layouts on a 600 box rather than the wheels' 1000, so the
   planets written in the small triangles stay readable on a phone. Each
   house takes the element tone of its sign, as every sign does on the site;
   gold is the house being read.
   ------------------------------------------------------------------------- */

.vedic { margin: 0; display: grid; gap: 1rem; justify-items: center; }
.vedic__box { width: min(100%, 34rem); overflow-x: auto; }
.vedic__svg { width: 100%; min-width: 20rem; height: auto; display: block; }
.vedic__svg:focus { outline: none; }
.vedic__svg:focus-visible { outline: 2px solid var(--sol-lift); outline-offset: 4px; }
.vedic figcaption {
  font-size: var(--step--1);
  color: var(--paper-mute);
  text-align: center;
  max-width: 60ch;
}

/* the chart's own lines are the houses' edges, drawn a step brighter than
   the hairline of a wheel's sectors because here they carry the layout */
.vedic__house { stroke: var(--line-field); stroke-width: 1.5; cursor: pointer; }
.vedic__lit { fill: none; stroke: var(--sol); stroke-width: 3; stroke-linejoin: round; }

.vedic__token {
  fill: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.vedic__signnum {
  fill: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.vedic__signname {
  fill: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 15px;
}
.vedic__housenum {
  fill: var(--paper-mute);
  font-family: var(--font-body);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.vedic__lagnamark { stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; }
.vedic__centrename {
  fill: var(--paper);
  font-family: var(--font-display);
  font-size: 40px;
}
.vedic__centreline {
  fill: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

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

.vedic__note:empty { display: none; }

.vedic__tablewrap { overflow-x: auto; }
.vedic__table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.vedic__table th,
.vedic__table td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-top: var(--rule);
  text-align: start;
  vertical-align: top;
}
.vedic__table thead th {
  border-top: 0;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--paper-mute);
}
.vedic__table tbody th { font-weight: 400; color: var(--paper); }
.vedic__table td { color: var(--paper-dim); }
.vedic__num { text-align: end; }
.vedic__table tr.is-lagna th,
.vedic__table tr.is-lagna td { color: var(--paper); }
