/* Bus: alleen tokens uit tokens.css (huisregel 4). Mobile-first: eerst 360–430 px, daarna breder. */
.bh-bus { background: var(--bh-bg); color: var(--bh-ink); padding-bottom: 48px; }
.bh-bus a { color: inherit; }
.bh-bus-test { margin: 0; padding: 10px var(--bh-gutter); background: var(--bh-accent); color: var(--bh-ink); text-align: center; font-size: 15px; }

/* ---------- Kop ---------- */
.bh-bus-kop { background: var(--bh-sky); padding: 14px 0 18px; }
.bh-bus-kop__inner { display: flex; flex-direction: column; gap: 12px; }
.bh-bus-kruimel { margin: 0; font-size: 14px; color: var(--bh-ink-3); }
.bh-bus-titel { margin: 0; font-size: clamp(30px, 8vw, 40px); letter-spacing: var(--bh-tracking-tight); }
.bh-bus-intro { margin: 0; max-width: 560px; color: var(--bh-ink-3); font-size: 16px; line-height: 1.5; }
.bh-bus-wissel { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.bh-bus-wissel__icoon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px 3px 14px 3px; background: var(--bh-ink); color: var(--bh-accent); display: flex; align-items: center; justify-content: center; }
.bh-bus-wissel__tekst { display: flex; flex-direction: column; min-width: 0; }
.bh-bus-wissel__label { font-size: 12px; font-weight: 700; color: var(--bh-ink-3); }
.bh-bus-wissel__naam { margin: 0; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.bh-bus-wissel__pijl { margin-left: auto; display: flex; }
.bh-bus-omschrijving { margin: 0; font-size: 14px; color: var(--bh-ink-3); }

/* Kant kiezen: twee knoppen van minstens 44 px hoog (met één hand te bedienen). */
.bh-bus-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--bh-white); padding: 5px; border-radius: 16px 16px 16px 4px; }
.bh-bus-tabs[hidden] { display: none; }
.bh-bus-tabs button { font: inherit; font-size: 14px; font-weight: 800; min-height: 48px; padding: 4px 8px; border: 0; border-radius: var(--bh-radius-btn); background: transparent; color: var(--bh-ink); cursor: pointer; }
.bh-bus-tabs button[aria-selected="true"] { background: var(--bh-ink); color: var(--bh-white); }
.bh-bus-tabs button:focus-visible, .bh-bus-ververs:focus-visible, .bh-bus-knop-groot:focus-visible, .bh-bus a:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: 2px; }

.bh-bus-inhoud { padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Lijnlabels ---------- */
.bh-lijn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 7px; border-radius: var(--bh-radius-badge); font-weight: 800; font-size: 14px; line-height: 1; flex: 0 0 auto; }
.bh-lijn--geel { background: var(--bh-accent); color: var(--bh-ink); }
.bh-lijn--groen { background: var(--bh-green); color: var(--bh-white); }
.bh-lijn--paars { background: var(--bh-line-purple); color: var(--bh-white); }
.bh-lijn--donker { background: var(--bh-ink); color: var(--bh-white); box-shadow: inset 0 0 0 2px var(--bh-white); }
.bh-lijn--neutraal { background: var(--bh-dry); color: var(--bh-ink); }

/* ---------- Eerstvolgende bus, groot ---------- */
.bh-bus-kantkop { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bh-ink-3); }
.bh-bus-kantkop small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.bh-bus-groot { background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-block); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bh-bus-groot__kop { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.bh-bus-groot__kop .bh-lijn { height: 32px; min-width: 44px; font-size: 18px; }
.bh-bus-groot__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--bh-live-on-dark); }
.bh-bus-groot__tijd { display: flex; align-items: flex-end; gap: 10px; }
.bh-bus-groot__getal { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; }
.bh-bus-groot__getal--klok { font-size: 48px; letter-spacing: -0.03em; }
.bh-bus-groot__getal small { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.bh-bus-groot__nacht { display: flex; flex-direction: column; gap: 4px; }
.bh-bus-groot__nacht strong { font-size: 24px; letter-spacing: -0.02em; }
.bh-bus-groot__nacht span { font-size: 18px; color: var(--bh-on-dark-muted); }
.bh-bus-groot__eenheid { font-size: 20px; font-weight: 700; padding-bottom: 4px; }
.bh-bus-groot__rechts { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.bh-bus-groot__rechts strong { font-size: 20px; }
.bh-bus-groot__via { font-size: 13px; color: var(--bh-on-dark-muted); }
.bh-bus-groot .bh-bus-status { color: var(--bh-live-on-dark); }
.bh-bus-groot .bh-bus-status--later { color: var(--bh-accent); }
.bh-bus-groot .bh-bus-status--rooster, .bh-bus-groot .bh-bus-status--eerder { color: var(--bh-on-dark-muted); }
.bh-bus-groot .bh-bus-status--vervalt { color: var(--bh-tint-3); }

.bh-bus-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bh-live); animation: bh-bus-puls 2s infinite; }
@keyframes bh-bus-puls { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(47, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); } }
@media (prefers-reduced-motion: reduce) { .bh-bus-live { animation: none; } }

/* ---------- Daarna ---------- */
.bh-bus-kopje { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bh-muted); }
.bh-bus-lijst { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bh-bus-regel { background: var(--bh-white); border-radius: var(--bh-radius-card); padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--bh-shadow-card); }
.bh-bus-regel__tekst { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bh-bus-regel__tekst strong { font-size: 15px; overflow-wrap: anywhere; }
.bh-bus-regel__tijd { text-align: right; display: flex; flex-direction: column; flex: 0 0 auto; }
.bh-bus-regel__tijd strong { font-size: 17px; }
.bh-bus-regel__tijd span { font-size: 12px; color: var(--bh-muted); }
.bh-bus-regel--vervalt { opacity: 0.8; }
.bh-bus-status { font-size: 12px; font-weight: 700; color: var(--bh-muted); display: inline-flex; align-items: center; gap: 6px; }
.bh-bus-status--optijd { color: var(--bh-green); }
.bh-bus-status--later { color: var(--bh-late); }
.bh-bus-status--vervalt { color: var(--bh-alert-ink); font-weight: 800; }
.bh-bus-doorgestreept { text-decoration: line-through; color: var(--bh-muted); }
.bh-bus-leeg { margin: 0; padding: 16px; background: var(--bh-white); border-radius: var(--bh-radius-card); color: var(--bh-ink-3); }

/* ---------- Laatste bus, storing, regen, melding ---------- */
.bh-bus-laatste { margin-top: 12px; background: var(--bh-ink); color: var(--bh-white); border-radius: var(--bh-radius-block-alt); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bh-bus-laatste__kop { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bh-on-dark-muted); }
.bh-bus-storingen { display: flex; flex-direction: column; gap: 10px; }
.bh-bus-storing { background: var(--bh-tint-3); color: var(--bh-ink); border-radius: var(--bh-radius-block); padding: 14px 16px; display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.bh-bus-storing > svg { flex: 0 0 auto; color: var(--bh-alert-ink); margin-top: 2px; }
.bh-bus-storing > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bh-bus-storing strong { color: var(--bh-alert-ink); }
.bh-bus-storing a { font-weight: 800; text-decoration: underline; }
.bh-bus-regen, .bh-bus-melding { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--bh-radius-card); font-size: 14px; }
.bh-bus-regen { background: var(--bh-rain-bg); }
.bh-bus-regen > svg { color: var(--bh-rain); flex: 0 0 auto; }
.bh-bus-melding { background: var(--bh-tint-1); }

/* ---------- Voet ---------- */
.bh-bus-voet { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--bh-muted); }
.bh-bus-ververs { width: 48px; height: 48px; border: 0; border-radius: var(--bh-radius-btn); background: var(--bh-white); box-shadow: var(--bh-shadow-card); color: var(--bh-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bh-bus-ververs[hidden] { display: none; }
.bh-bus-hint { margin: -8px 0 0; font-size: 12px; color: var(--bh-muted); }
.bh-bus-kaartje { background: var(--bh-white); border-radius: var(--bh-radius-card); padding: 18px 20px; box-shadow: var(--bh-shadow-card); }
.bh-bus-kaartje h2 { margin: 0 0 6px; font-size: 15px; }
.bh-bus-kaartje p, .bh-bus-kaartje li { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--bh-ink-3); }
.bh-bus-kaartje ul { margin: 0; padding-left: 18px; }
.bh-bus-bron { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--bh-muted); }

/* ---------- Breder ---------- */
@media (min-width: 768px) {
	.bh-bus-inhoud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
	.bh-bus-inhoud > :not(.bh-bus-kant) { grid-column: 1 / -1; }
	.bh-bus-tabs { display: none !important; }
	.bh-bus--js .bh-bus-kant { display: block !important; }
}
.bh-bus-links { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* ---------- Gedeeld door overzicht, lijn, planner en kaart ---------- */
.bh-bus-link { font-size: 14px; font-weight: 800; text-decoration: underline; }
.bh-bus-sectiekop { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.bh-bus-knop-klein { font: inherit; font-size: 14px; font-weight: 800; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--bh-radius-btn); background: var(--bh-white); box-shadow: var(--bh-shadow-card); color: var(--bh-ink); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.bh-bus-knop-klein[hidden] { display: none; }
.bh-bus-pijl { font-weight: 800; color: var(--bh-muted); }

/* De kleur van een lijn, voor randjes en routestrepen: .bh-lijnkleur--geel enz. zet --bh-lijn. */
.bh-lijnkleur--geel { --bh-lijn: var(--bh-accent); }
.bh-lijnkleur--groen { --bh-lijn: var(--bh-green); }
.bh-lijnkleur--paars { --bh-lijn: var(--bh-line-purple); }
.bh-lijnkleur--donker { --bh-lijn: var(--bh-ink); }
.bh-lijnkleur--neutraal { --bh-lijn: var(--bh-muted); }

/* Het bordje voorop de bus: lijnnummer + bestemming op donkerblauw. */
.bh-bus-bord { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--bh-ink); color: var(--bh-white); padding: 4px 12px 4px 4px; border-radius: var(--bh-radius-badge); font-size: 15px; font-weight: 800; line-height: 1.2; }
.bh-bus-bord .bh-lijn { height: 26px; min-width: 30px; font-size: 13px; }
.bh-bus-bord .bh-lijn--donker { box-shadow: inset 0 0 0 2px var(--bh-white); }

/* Lijst met doorklik-regels (snelkoppelingen, andere lijnen). */
.bh-bus-snel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bh-bus-snel a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); text-decoration: none; }
.bh-bus-snel a > span:not(.bh-bus-pijl):not(.bh-lijn) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bh-bus-snel strong { font-size: 15px; }
.bh-bus-snel a > span > span { font-size: 13px; color: var(--bh-muted); }
.bh-bus-snel li[class*="bh-lijnkleur--"] a { border-top: 4px solid var(--bh-lijn); }
