/* Venue detail — /courts/<city>/<venue>, generated from
   partials/venue-detail-template.html.

   Deliberately small. Everything a venue page shows that a city page already
   showed — .stat-chip, .rating-pill, .level-badge, .book-btn, .crumbs,
   .mini-venue-list, .vote-actions and the whole 5-ball rate panel (.crp-*) —
   is style.css's, and is reused rather than restyled: a court's Surface pill
   must not read one way on the card and another way on its own page. What is
   here is only the two-column shell, the facts list the card has no room for,
   and the verification rail. */

/* ---------- Hero ---------- */

.page-hero--venue h1 {
  /* A venue name is the title of the page the way a city name is on
     .page-hero--city — but venue names run long ("Goldman Tennis Center at
     Golden Gate Park"), so this tops out below the city scale. */
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
}

.vd-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.vd-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  margin: 0.6rem 0 0;
}

.vd-addr-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.vd-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

/* style.css's chip row is scoped to `.venue-card .facts`, so the hero restates
   it — including the wrap-inside-a-chip rule a long hours or price string needs
   at 375px (see the note beside .venue-card .facts .stat-chip). */
.vd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

/* .stat-chip is nowrap by default; an hours or price chip in the hero runs
   long enough to leave the viewport at 375px, so it wraps inside itself here
   the same way it does on a card. */
.vd-chip {
  white-space: normal;
}

/* ---------- Two-column shell ---------- */

.vd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-3) 3rem;
  align-items: start;
}

.vd-main {
  min-width: 0;
}

.vd-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body-ink);
  max-width: 62ch;
  margin: 0;
}

.vd-head {
  font-size: 1.25rem;
  margin: var(--space-3) 0 0.85rem;
}

.vd-pills {
  margin: 0;
}

/* ---------- Facts ---------- */

/* A <dl> rather than a table: these are name/value pairs, not a grid the
   reader compares across rows. The label column is fixed so the values line
   up, and collapses on a phone where 8rem of label leaves no room for a
   sourced hours note. */
.vd-facts {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
}

.vd-fact {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 0.7rem 1rem;
}

.vd-fact + .vd-fact {
  border-top: 1px solid var(--rule-08);
}

.vd-fact dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.15rem;
}

.vd-fact dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.vd-book {
  margin-top: var(--space-2);
}

.vd-rate-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: -0.35rem 0 1rem;
}

/* ---------- Verification rail ---------- */

.vd-verify {
  background: var(--bay-tint);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

.vd-verify .eyebrow {
  color: var(--bay-deep);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.vd-verify p {
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.vd-verify-line + .vd-sources,
.vd-sources + .vd-verify-foot,
.vd-verify-line + .vd-verify-foot {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-12);
}

.vd-sources {
  color: var(--ink-soft) !important;
}

/* ---------- Other courts in this city ---------- */

.vd-siblings-lede {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0.35rem 0 0;
}

/* Scoped to its own class rather than `.mini-venue-row .mv-name a`: both of
   those are style.css's, and redefining a shared component's class in a page
   sheet is a load-order dependency nothing states at the call site (see
   KNOWN_COLLISIONS in scripts/check-consistency.mjs). */
.vd-sibling-link {
  color: var(--ink);
  text-decoration-color: var(--rule-30);
}

.vd-sibling-link:hover {
  color: var(--bay-deep);
}

/* ---------- Narrow ---------- */

@media (max-width: 900px) {
  /* The rail stops being a rail. It carries the verification date, which is a
     footnote to the facts above it, so it belongs after them in the stack —
     which is already the DOM order. */
  .vd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-verify {
    position: static;
  }
}

@media (max-width: 560px) {
  .vd-fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}
