/* Ancient sundials gateway — styles beyond landing.css (hero dial, explore cards, supplements, language switch). */

.mast nav a.lang-switch {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.12rem 0.55rem;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.mast nav a.lang-switch:hover { background: var(--gold); color: var(--oxford-deep); }

/* ---------------------------------------------------------------- hero dial */
.hero-stage {
  margin: 1.8rem 0 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--oxford);
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
}
.hero-stage .fig { padding: 0; }
.sd-hero { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 1.6rem; padding: 1.2rem 1.4rem 1.3rem; align-items: center; }
.sd-fig { width: 100%; max-width: 600px; margin: 0 auto; }
.sd-fig svg { display: block; width: 100%; height: auto; }
.sd-lbl { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.sd-hour { font-family: var(--display); font-size: 12px; fill: var(--oxford-soft); font-style: italic; }
.sd-side { font-family: var(--sans); }
.sd-ctrl { margin: 0 0 0.85rem; }
.sd-ctrl label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.2rem; }
.sd-ctrl label b { color: var(--oxford); font-weight: 650; font-variant-numeric: tabular-nums; }
.sd-ctrl select {
  width: 100%; font: inherit; font-size: 0.9rem; padding: 0.4rem 0.5rem;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 2px;
}
.sd-ctrl input[type="range"] { width: 100%; accent-color: var(--oxford); margin: 0; }
.sd-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 1rem; }
.sd-quick button {
  font-family: var(--sans); font-size: 0.82rem; padding: 0.3rem 0.7rem; cursor: pointer;
  background: #fff; color: var(--oxford); border: 1px solid var(--line-strong); border-radius: 2px;
}
.sd-quick button:hover { border-color: var(--oxford); }
.sd-quick button.on, .sd-quick button.play { background: var(--oxford); color: #fff; border-color: var(--oxford); }
.sd-quick button.play { margin-left: auto; min-width: 5.4rem; }
.sd-read { border-top: 1px solid var(--line); padding-top: 0.7rem; font-size: 0.86rem; line-height: 1.4; }
.sd-read p { margin: 0 0 0.4rem; }
.sd-read b { color: var(--oxford); font-weight: 650; }
.sd-hint { color: var(--muted); font-size: 0.78rem; }
.sd-qbar { margin: 0 0 0.6rem; }

/* ---------------------------------------------------------------- bands with a figure */
.band-fig { margin: 0.4rem 0 0.4rem; }
.band-body > p { max-width: 46rem; color: var(--muted); }

/* ---------------------------------------------------------------- explore cards */
.xcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.4rem; }
.xcard {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.xcard:hover { border-color: var(--oxford); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 33, 71, 0.12); color: var(--ink); }
.xcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand-deep); }
.xb { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.8rem 0.9rem 0.9rem; flex: 1; }
.xt { font-family: var(--display); font-weight: 560; color: var(--oxford); font-size: 1.02rem; line-height: 1.25; }
.xh { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.chip { font-family: var(--sans); font-size: 0.74rem; padding: 0.08rem 0.45rem; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--ink); }
.chip.grade-A { background: var(--oxford); color: #fff; border-color: var(--oxford); }
.chip.grade-B { background: #dbe6ec; border-color: #9fb8c4; }
.chip.grade-C { background: #f1dcd5; border-color: #cda192; }
.chip.phi { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-deep); font-weight: 650; }
.chip.phi em { font-style: normal; font-weight: 400; }
.xgo { margin-top: auto; padding-top: 0.4rem; font-family: var(--sans); font-size: 0.8rem; color: var(--gold-deep); font-weight: 650; }
.xcard:hover .xgo { color: var(--oxford); }

/* ---------------------------------------------------------------- supplements */
.supps { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.2rem; }
.supp { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.8rem; background: var(--paper); border: 1px solid var(--line); padding: 0.85rem 0.95rem; }
.supp .sn { font-family: var(--display); font-weight: 560; font-size: 1.7rem; line-height: 1; color: var(--gold-deep); letter-spacing: -0.03em; }
.supp h3 { margin: 0; font-family: var(--display); font-weight: 560; font-size: 1.02rem; line-height: 1.25; }
.supp h3 a { text-decoration: none; }
.supp h3 a:hover { text-decoration: underline; }
.supp .sub { margin: 0.2rem 0 0; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.supp .sup { margin: 0.45rem 0 0; font-family: var(--sans); font-size: 0.8rem; }
.supp .sup b { color: var(--oxford); }
.supp details { margin-top: 0.4rem; font-family: var(--sans); font-size: 0.82rem; }
.supp summary { cursor: pointer; color: var(--gold-deep); font-weight: 650; }
.supp details p { margin: 0.35rem 0 0; line-height: 1.4; }

@media (max-width: 1020px) {
  .sd-hero { grid-template-columns: 1fr; }
  .xcards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .xcards, .supps { grid-template-columns: 1fr; }
  .sd-hero { padding: 0.8rem; }
  .mast nav a.lang-switch { margin-left: 0; }
}
