/* TheatresDB best.css (v11.72.0)
 * "Best [format] in [city]" pages, the /best/ hub, and the shared link blocks
 * shown on city, theatre and screen pages. Uses brand.css tokens only, so the
 * light theme works without overrides. Amber = actionable, blue = premium format.
 */

/* ── Shared link blocks ─────────────────────────────────────── */
.ht-best-links { margin: 32px 0; }
.ht-best-links__title { font: 600 1.05rem/1.3 var(--font-body); color: var(--text); margin: 0 0 12px; }
.ht-best-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ht-best-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card);
    color: var(--text); font: 500 .88rem var(--font-body); text-decoration: none;
    transition: border-color .15s, color .15s;
}
.ht-best-chip:hover { border-color: var(--gold); color: var(--gold); }
.ht-best-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ht-best-chip__n { font: 500 .75rem var(--font-mono); color: var(--text-muted); }

.ht-best-related { margin: 32px 0; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.ht-best-related .ht-best-links { margin: 20px 0 0; }
.ht-best-related__lede { color: var(--text-muted); margin: -4px 0 14px; font-size: .9rem; }
.ht-best-related__lede a { color: var(--gold); }
.ht-best-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ht-best-related__list a {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); text-decoration: none; background: var(--bg);
}
.ht-best-related__list a:hover { border-color: var(--gold); }
.ht-best-related__list span { color: var(--text-muted); font-size: .82rem; }

/* ── Page shell ─────────────────────────────────────────────── */
.hb-hero { padding: 32px 0 28px; border-bottom: 1px solid var(--border); background: var(--bg); }
.hb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-muted); margin-bottom: 14px; }
.hb-crumbs a { color: var(--gold); text-decoration: none; font-weight: 600; }
.hb-crumbs a:hover { text-decoration: underline; }
.hb-title { font: 700 clamp(1.7rem, 4.2vw, 2.6rem)/1.15 var(--font-body); color: var(--text); margin: 0; letter-spacing: -.01em; }
.hb-fmt { color: var(--premium); }
.hb-lede { color: var(--text-muted); max-width: 680px; margin: 12px 0 0; line-height: 1.6; }
.hb-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; padding: 0; color: var(--text-muted); font-size: .9rem; }
.hb-facts b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }

.hb-body { padding-top: 28px; padding-bottom: 72px; }
.hb-body h2 { font: 600 1.3rem/1.3 var(--font-body); color: var(--text); margin: 40px 0 14px; }
.hb-intro { max-width: 760px; }
.hb-intro p { color: var(--text); line-height: 1.7; margin: 0 0 12px; }
.hb-intro .hb-about { color: var(--text-muted); font-size: .92rem; }
.hb-muted { color: var(--text-muted); font-weight: 400; font-size: .85em; }

.hb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.hb-head h2 { margin: 0; }
.hb-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 100px;
    background: var(--gold); color: var(--on-gold); font: 600 .9rem var(--font-body); text-decoration: none;
}
.hb-btn:hover { filter: brightness(1.06); color: var(--on-gold); }
.hb-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── Ranked cards ───────────────────────────────────────────── */
.hb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hb-card {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 16px; align-items: start;
    padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
}
.hb-rank { font: 500 1.4rem/1 var(--font-mono); color: var(--text-muted); padding-top: 2px; }
.hb-card:first-child .hb-rank { color: var(--gold); }
.hb-card__title { font: 600 1.08rem/1.3 var(--font-body); margin: 0; }
.hb-card__title a { color: var(--text); text-decoration: none; }
.hb-card__title a:hover { color: var(--gold); }
.hb-card__where { margin: 2px 0 10px; color: var(--text-muted); font-size: .9rem; }
.hb-card__where a { color: var(--text-muted); }
.hb-card__where a:hover { color: var(--gold); }
.hb-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-specs li {
    font: 500 .76rem var(--font-mono); color: var(--text); padding: 4px 10px; border-radius: 8px;
    background: var(--bg-card2); border: 1px solid var(--border);
}
.hb-specs li:first-child { color: var(--premium); border-color: color-mix(in srgb, var(--premium) 40%, var(--border)); }
.hb-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: .8rem; color: var(--text-muted); }
.hb-card__go { align-self: center; color: var(--gold); font: 600 .88rem var(--font-body); text-decoration: none; white-space: nowrap; }
.hb-card__go:hover { text-decoration: underline; }

/* ── Table ──────────────────────────────────────────────────── */
.hb-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.hb-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hb-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .88rem; }
.hb-table th, .hb-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.hb-table thead th { font: 600 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--bg-card); }
.hb-table tbody tr:last-child > * { border-bottom: 0; }
.hb-table tbody th { font-weight: 600; }
.hb-table tbody th a { color: var(--text); text-decoration: none; }
.hb-table tbody th a:hover { color: var(--gold); }
.hb-table tbody th span { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }

/* ── Q&A, method, footer links ──────────────────────────────── */
.hb-qa dl { margin: 0; max-width: 760px; }
.hb-qa dt { font-weight: 600; color: var(--text); margin-top: 16px; }
.hb-qa dd { margin: 4px 0 0; color: var(--text-muted); line-height: 1.6; }
.hb-method { margin: 40px 0; padding: 18px 20px; border-left: 3px solid var(--border-hi); background: var(--bg-card); border-radius: 0 12px 12px 0; max-width: 760px; }
.hb-method h2 { margin: 0 0 6px; font-size: 1rem; }
.hb-method p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .9rem; }
.hb-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; }
.hb-foot a { color: var(--gold); font-weight: 600; text-decoration: none; }
.hb-foot a:hover { text-decoration: underline; }

/* ── Hub ────────────────────────────────────────────────────── */
.hb-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 28px; }
.hb-format h3, .hb-city h3 { font: 600 1rem var(--font-body); color: var(--text); margin: 0 0 10px; }
.hb-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hb-city { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.hb-city h3 a { color: var(--text); text-decoration: none; }
.hb-city h3 a:hover { color: var(--gold); }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hb-card { grid-template-columns: 32px 1fr; padding: 16px; }
    .hb-card__go { grid-column: 2; justify-self: start; margin-top: 8px; }
    .hb-rank { font-size: 1.15rem; }
    .hb-cities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ht-best-chip { transition: none; }
}
