/* Testimonial globe — reuses HCN atlas shell; only layout glue lives here. */
.tst-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 18px; align-items: stretch; margin-top: 14px; }
@media (max-width: 900px) { .tst-grid { grid-template-columns: 1fr; } }
/* v3.1: HCN absolutely positions .atlas-head/.atlas-foot for its hero overlay; in the
   testimonial block they must take part in the column flow, or they sit on the globe. */
.tst-block .atlas-head, .tst-block .atlas-foot {
  position: static; left: auto; right: auto; top: auto; bottom: auto; width: auto;
}
.tst-block .atlas { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.tst-block .atlas-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.tst-block .atlas-head select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 13px; padding: 4px 8px; max-width: 60%; }
.tst-block .globe-stage { position: relative; flex: 0 0 340px; }
#tst-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tst-block .atlas-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 8px 12px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tst-block .camera { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tst-block .camera output { min-width: 34px; text-align: center; }
.tst-block .camera button { flex: 0 0 auto; width: auto; white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 3px 10px; min-width: 30px; margin-left: 2px; font-family: var(--mono); font-size: 11px; }
.tst-block .camera button:hover, .tst-block .camera button:focus-visible { border-color: var(--ink); }
.tst-card { border: 1px solid var(--line); background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tst-card .tst-city { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; color: var(--muted); }
.tst-card h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.tst-card p { margin: 0; color: var(--sub); max-width: 52ch; }
.tst-facts { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 10px; margin: auto 0 0; }
.tst-facts div { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tst-facts b { display: block; font-family: var(--sans); font-size: 17px; color: var(--ink); font-weight: 600; }
.tst-note { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tst-ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }

@media (max-width: 520px) { .tst-block .camera button { padding: 3px 8px; } }

/* v3.1: square stage on phones so the sphere is not clipped by the foot bar. */
@media (max-width: 520px) { .tst-block .globe-stage { flex-basis: 320px; } }

/* v3.1: HCN's mobile block fixes .atlas at clamp(230px,66vw,340px) with order:1 and
   absolutely positioned head/foot. Inside the testimonial block the panel must size to
   its head + stage + foot, and the globe leads. */
@media (max-width: 760px) {
  .tst-block .atlas { height: auto; min-height: 0; flex: none; order: 0; }
  .tst-block .atlas-head, .tst-block .atlas-foot { top: auto; bottom: auto; left: auto; right: auto; }
}
