/* BAIO Courses page. Builds on home.css (.bh tokens and buttons). */
body.baio-courses-page { background: #fbf7ee; }

.bc-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.bh .bc-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; line-height: 1.35; }
.bc-head .bh-lead { margin-top: 12px !important; max-width: 52ch; }

/* Filters */
.bc-filters { margin-top: 28px; padding: 6px 0; border-top: 2px solid var(--bh-ink); border-bottom: 1px solid var(--bh-rule); }
.bc-filter { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
.bc-filter[hidden] { display: none; }
.bc-filter + .bc-filter { border-top: 1px dashed var(--bh-rule); }
.bc-filter-name { font-family: var(--bh-serif); font-weight: 600; font-size: 1.05rem; padding-top: 7px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip { font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.4; min-height: 42px; padding: 7px 16px; color: var(--bh-ink); background: var(--bh-sheet); border: 1px solid #c9bb9c; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bc-chip[hidden] { display: none; }
.bc-chip:hover { border-color: var(--bh-ink); }
.bc-chip[aria-pressed="true"] { background: var(--bh-ink); border-color: var(--bh-ink); color: #fff; font-weight: 600; }
.bc-chip:focus-visible { outline: 3px solid var(--bh-rust); outline-offset: 2px; }

/* List */
.bc-list { padding: 8px 0 clamp(48px, 7vw, 88px); }
.bc-count { min-height: 1.75em; color: var(--bh-ink-soft); font-size: .95rem; margin-bottom: 14px !important; }
.bc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bc-card { display: flex; flex-direction: column; background: var(--bh-sheet); border: 1px solid var(--bh-ink); box-shadow: 6px 6px 0 var(--bh-rule); }
.bc-interview .bc-card { box-shadow: 6px 6px 0 rgba(255, 255, 255, .14); }
.bc-card[hidden] { display: none; }
.bc-card-thumb { display: block; border-bottom: 1px solid var(--bh-ink); background: var(--bh-rule); }
/* Course banners are square (1:1): show the whole banner, never crop it. */
.bc-card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--bh-sheet); }
.bc-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.bc-card-tags { color: var(--bh-rust); font-size: .86rem; font-weight: 600; line-height: 1.5; }
.bh .bc-card h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.45; margin-top: 6px; }
.bc-card h3 a:hover { color: var(--bh-rust); }
.bc-card-subjects { color: var(--bh-ink-soft); font-size: .92rem; margin-top: 6px !important; }

.bc-pay { margin: 16px 0 18px !important; border-top: 1px solid var(--bh-rule); }
.bc-pay li { border-bottom: 1px solid var(--bh-rule); }
.bc-pay a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 2px; }
.bc-pay-label { font-size: .92rem; color: var(--bh-ink-soft); }
.bc-pay-price { font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.bc-pay-price del { font-weight: 400; font-size: .88rem; color: #7a8296; margin-left: 4px; }
.bc-pay a:hover .bc-pay-price { color: var(--bh-rust); }
.bc-card-btn { margin-top: auto; align-self: stretch; }

.bc-empty { margin-top: 8px; padding: clamp(28px, 5vw, 48px); background: var(--bh-sheet); border: 1px dashed #b9ab8c; text-align: left; }
.bc-empty[hidden] { display: none; }
.bh .bc-empty h2 { font-size: 1.5rem; }
.bc-empty p { color: var(--bh-ink-soft); margin: 10px 0 20px; max-width: 52ch; }

/* Interview: its own section */
.bc-interview { padding: clamp(44px, 6vw, 76px) 0; background: var(--bh-deep); }
.bh .bc-interview h2 { color: #fff; }
.bc-interview .bh-section-lead { color: #c5cde0; }
.bc-interview .bc-grid { margin-top: 26px; }

@media (max-width: 980px) {
	.bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.bc-grid { grid-template-columns: 1fr; gap: 18px; }
	.bc-filter { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
	.bc-filter-name { padding-top: 0; }
	.bc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.bc-chip { flex: none; }
}
