/* BH.BA Academy — portal styles.
   PALETTE SOURCE: live academy stylesheet (Drive › BHBA Academy › style.css, 24 Nov 2026):
   --green #1f9d55, --green-d #14753e, --orange #f47b20, --black #111, --gray #f4f6f5.
   Note: the buyer site (BHBA Buying House › assets/site.css) uses #1f7a4d / #f07a1a. Confirm which set is the
   approved brand palette, then change only the four tokens below.
   FONT: Hind Siliguri is the academy font. It is not bundled (no external font CDN in local review); add the
   font files to /public/fonts and the @font-face below to make it exact. Until then the system fallback is used. */
:root {
  --green: #1f9d55; --green-d: #14753e; --orange: #f47b20; --black: #111111;
  --gray: #f4f6f5; --white: #fff;
  --ink: #16201b; --ink-2: #4a5a52; --line: #e1e7e3; --bg: #f7f8f6; --orange-d: #c95f0d; --orange-tint: #fff3e8; --green-tint: #e7f5ed;
  --red: #b42318; --red-tint: #fdecea; --radius: 10px; --shadow: 0 1px 2px rgba(17,17,17,.06), 0 4px 16px rgba(17,17,17,.05);
  --font: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --nav-w: 252px;
}
/* @font-face { font-family: 'Hind Siliguri'; src: url('/fonts/HindSiliguri-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; } */
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg) }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 700 }
h1 { font-size: clamp(1.45rem, 2.6vw, 1.9rem) } h2 { font-size: 1.2rem } h3 { font-size: 1.02rem }
p { margin: 0 0 .7em }
a { color: var(--green-d) }
button, input, select, textarea { font: inherit; color: inherit }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9d3cd; border-radius: 8px; background: #fff }
textarea { resize: vertical }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green) }
img { max-width: 100%; display: block }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.muted { color: var(--ink-2) } .small, small { font-size: .85rem } .mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem } .center { text-align: center } .right { text-align: right } .nowrap { white-space: nowrap }
.plain { list-style: none; padding: 0; margin: 0 } .plain li { padding: 6px 0; border-bottom: 1px solid var(--line) } .plain li:last-child { border: 0 }
.spread { display: flex; justify-content: space-between; gap: 12px }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px } .skip:focus { left: 8px }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; background: var(--orange); color: #fff; border: 1px solid var(--orange); padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap }
.btn:hover { background: var(--orange-d); border-color: var(--orange-d) }
.btn:disabled { opacity: .55; cursor: not-allowed }
.btn.ghost { background: #fff; color: var(--ink); border-color: #c9d3cd } .btn.ghost:hover { border-color: var(--green); color: var(--green-d) }
.btn.sm { padding: 6px 12px; font-size: .9rem } .btn.lg { padding: 14px 26px; font-size: 1.08rem } .btn.full { width: 100% }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: inherit; position: relative; font-size: 1.15rem; text-decoration: none }
.icon-btn:hover { background: rgba(0,0,0,.06) } .icon-btn:disabled { opacity: .35; cursor: default }
.link-btn { border: 0; background: none; color: var(--green-d); font-weight: 600; cursor: pointer; text-decoration: underline; padding: 4px }
.link { color: var(--green-d); font-weight: 600; text-decoration: none } .link:hover { text-decoration: underline }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; margin-bottom: 12px } .back:hover { color: var(--green-d) }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gray); color: var(--ink-2); white-space: nowrap; vertical-align: middle }
.badge.ok { background: var(--green-tint); color: var(--green-d) } .badge.open { background: #e8f1ff; color: #1d4f91 } .badge.lock { background: #eceeed; color: #4c5550 }
.badge.warn { background: var(--orange-tint); color: #9a4708 } .badge.muted { background: #eef1ef; color: #5d6a63 }
.chips { display: flex; gap: 6px; flex-wrap: wrap }
.chip { border: 1px solid #c9d3cd; background: #fff; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-weight: 600; font-size: .9rem }
.chip.on { background: var(--black); color: #fff; border-color: var(--black) }
.kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--gray); color: var(--ink-2) }
.kind.ex, .kind.question { background: var(--orange-tint); color: #9a4708 } .kind.qa, .kind.update { background: var(--green-tint); color: var(--green-d) } .kind.masterclass { background: var(--black); color: #fff }

/* layout shell */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh }
.sidenav { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--black); color: #e9efeb; display: flex; flex-direction: column; padding: 14px 12px }
.sidenav-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 14px; border-bottom: 1px solid #262b28; margin-bottom: 12px }
.sidenav .icon-btn:hover { background: #222 } .sidenav .close { display: none }
.side-logo { text-decoration: none; color: inherit }
.wordmark { font-weight: 800; letter-spacing: .02em; font-size: 1.35rem; color: #fff; display: inline-flex; align-items: baseline; gap: 1px }
.wordmark i { color: var(--orange); font-style: normal } .wordmark small { font-size: .72rem; font-weight: 600; color: var(--green); margin-left: 8px; letter-spacing: .14em; text-transform: uppercase }
.wordmark.sm { font-size: 1.1rem }
.logo-img { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px } .logo-img.sm { height: 30px }
nav { display: flex; flex-direction: column; flex: 1 }
.nav-search { display: flex; align-items: center; gap: 10px; width: 100%; background: #1d211f; border: 1px solid #2c322f; color: #c8d1cc; border-radius: 8px; padding: 8px 10px; cursor: pointer; margin-bottom: 10px }
.nav-search kbd { margin-left: auto; font-size: .7rem; border: 1px solid #3a413d; padding: 1px 5px; border-radius: 4px }
.nav-list { list-style: none; padding: 0; margin: 0 }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 8px; color: #dfe7e2; text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 600; text-align: left; position: relative }
.nav-item svg { font-size: 1.15rem; flex-shrink: 0 }
.nav-item:hover { background: #1d211f; color: #fff }
.nav-item.active { background: #1a2a21; color: #fff; box-shadow: inset 3px 0 0 var(--orange) }
.nav-item.active-group { color: #fff } .nav-item.staff { color: #ffd2ad }
.chev { margin-left: auto; display: inline-flex }
.nav-sub { list-style: none; margin: 2px 0 6px 34px; padding: 0; border-left: 1px solid #2c322f }
.nav-subitem { display: flex; align-items: center; gap: 8px; padding: 6px 12px; color: #b9c4be; text-decoration: none; font-size: .93rem; border-radius: 0 6px 6px 0 }
.nav-subitem:hover { color: #fff } .nav-subitem.active { color: #fff; box-shadow: inset 2px 0 0 var(--green); background: #1a2a21 }
.dot-count { margin-left: auto; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 18px }
.nav-foot { margin-top: auto; border-top: 1px solid #262b28; padding-top: 10px }
.nav-user { padding: 8px 10px } .nav-user b { display: block; font-size: .92rem } .nav-user small { color: #9fb0a7; text-transform: capitalize }
.main { min-width: 0; padding: 0 28px 48px; outline: none }
.review-strip { margin: 0 -28px 20px; padding: 5px 28px; background: var(--orange-tint); color: #8a3f06; font-size: .78rem; font-weight: 600; letter-spacing: .02em }
.topbar { display: none }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40 }

/* collapsed rail on lesson pages (unpinned) */
.app.nav-collapsed { grid-template-columns: 68px 1fr }
.nav-collapsed .sidenav { padding: 14px 8px; overflow: visible }
.nav-collapsed .nav-label, .nav-collapsed .nav-sub, .nav-collapsed .chev, .nav-collapsed .nav-user { display: none }
.nav-collapsed .sidenav-head { flex-direction: column }
.nav-collapsed .nav-item, .nav-collapsed .nav-search { justify-content: center; padding: 10px 0 }
.nav-collapsed .dot-count { position: absolute; top: 2px; right: 6px; padding: 0 5px }

/* banners */
.banner { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(120deg, var(--black) 45%, var(--green-d)); color: #fff; padding: 22px 26px; margin-bottom: 22px }
.banner-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.banner-body { position: relative; display: flex; gap: 16px; align-items: center }
.banner-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--orange); font-size: 1.4rem; flex-shrink: 0 }
.banner h1 { margin: 0 } .banner .eyebrow { color: var(--orange); margin: 0 0 2px } .banner-sub { margin: 4px 0 0; color: #cfdcd5 }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); margin: 0 0 6px }

/* cards & content */
.page { max-width: 1240px } .page.narrow { max-width: 820px }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px }
.card h2 { margin-bottom: .5em }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 22px 0 12px }
.section-head h2 { margin: 0 } .section-head p { margin: 0 }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.bar { height: 8px; background: #e6ebe8; border-radius: 99px; overflow: hidden; margin: 6px 0 } .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-d)); border-radius: 99px; transition: width .3s }
.notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius); background: #eef3f0; border-left: 4px solid var(--green); margin-bottom: 16px }
.notice p { margin: 0; flex: 1 1 260px } .notice.warn { background: var(--orange-tint); border-color: var(--orange) } .notice.error { background: var(--red-tint); border-color: var(--red) } .notice.ok { background: var(--green-tint); border-color: var(--green) }
.notice > svg { color: var(--green-d); font-size: 1.3rem }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); background: #fff; border: 1px dashed #cdd6d1; border-radius: var(--radius) }
.loading { display: flex; gap: 10px; align-items: center; padding: 40px; color: var(--ink-2); justify-content: center }
.spinner { width: 18px; height: 18px; border: 3px solid #d6ded9; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--black); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow) } .toast.err { background: var(--red) }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0 }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px }
.stats > * { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: left; font: inherit; color: inherit }
.stats button { cursor: pointer } .stats button:hover { border-color: var(--green) }
.stats small { display: block; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink-2); font-size: .72rem }
.stats b { display: block; font-size: 1.7rem; line-height: 1.2 } .stats span { color: var(--ink-2); font-size: .88rem }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px }
.toolbar label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600 } .toolbar select { width: auto }
.search-field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c9d3cd; border-radius: 8px; padding: 0 10px; min-width: 240px }
.search-field input { border: 0; padding: 9px 0; outline: none } .search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31,157,85,.2) } .search-field.wide { max-width: 560px; margin-bottom: 14px }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius) }
.table { width: 100%; border-collapse: collapse; font-size: .93rem } .table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: #fafbfa } .table input, .table select { padding: 5px 8px; min-width: 120px }
.field { margin-bottom: 12px } .field label, form > label { display: block; font-weight: 600; margin: 0 0 4px; font-size: .93rem }
.hint { font-size: .84rem; color: var(--ink-2); margin: 6px 0 } .form-error { color: var(--red); font-weight: 600; margin: 8px 0 }
.check { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; margin: 8px 0 } .check input { width: auto }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap }
.tabs button.on { color: var(--ink); border-color: var(--orange) }

/* classroom */
.classroom-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start }
.col-side { position: sticky; top: 16px }
.live-card { border-left: 4px solid var(--green) } .live-card.is-live { border-left-color: var(--orange); background: linear-gradient(90deg, #fff7f0, #fff) }
.live-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px }
.live-pill { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d) }
.live-pill.on { color: #fff; background: var(--orange); padding: 3px 10px; border-radius: 99px; animation: pulse 2s infinite }
@keyframes pulse { 50% { opacity: .75 } }
.live-when { font-weight: 600 } .live-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.review-tools { margin: 10px 0 0; font-size: .8rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px }
.resume-card h2 { margin-bottom: 2px } .resume-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem }
.program { margin-bottom: 18px } .program-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px }
.program-pct { text-align: right; display: flex; flex-direction: column } .program-pct b { font-size: 1.5rem; line-height: 1.1 } .program-pct small { color: var(--ink-2) }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s }
.course-card:hover { transform: translateY(-2px); border-color: var(--green) } .course-card.is-locked .course-art { filter: grayscale(.6) brightness(.85) }
.course-art { aspect-ratio: 300/170; background: var(--black); overflow: hidden } .course-art svg, .course-art img { width: 100%; height: 100%; object-fit: cover; display: block }
.cc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1 } .cc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px } .cc-top h3 { margin: 0 }
.cc-body > p.muted { font-size: .88rem; flex: 1 } .cc-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); margin: 0; gap: 8px }
.snapshot dl { margin: 0 } .snapshot dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line) }
.snapshot dt { text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; font-weight: 700; color: var(--ink-2) } .snapshot dd { margin: 0; font-weight: 800; font-size: 1.15rem }
.snap-label { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; margin: 12px 0 0 }

/* course */
.course-hero { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; margin-bottom: 26px }
.course-hero .course-art { border-radius: var(--radius) }
.dual-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0 } .dual-progress small { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-size: .72rem } .dual-progress span { font-size: .85rem; color: var(--ink-2) }
.outline { list-style: none; padding: 0 } .outline-mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px }
.outline-mod h3 { display: flex; gap: 10px; align-items: center; margin: 0 } .num { color: var(--orange-d); font-weight: 800 }
.outline-mod ul { list-style: none; padding: 0; margin: 8px 0 0 }
.outline-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line) } .outline-row a { color: inherit; text-decoration: none; flex: 1 } .outline-row a:hover { color: var(--green-d) }
.outline-row > span:not(.kind):not(.dur):not(.badge) { flex: 1; color: #7d8a83 } .dur { color: var(--ink-2); font-size: .85rem }
.st { flex-shrink: 0; font-size: 1.05rem } .st.done { color: var(--green) } .st.prog { color: var(--orange) } .st.lock { color: #9aa59f } .st.avail { color: #7d8a83 }
.locked-panel { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 24px; margin-top: 30px } .locked-panel .big { font-size: 2.4rem; color: var(--ink-2) } .locked-panel .row { justify-content: center }

/* lesson */
.lesson-page { max-width: 1400px }
.lesson-banner { display: flex; align-items: center; gap: 14px; border-radius: 14px; background: linear-gradient(120deg, var(--black) 50%, var(--green-d)); color: #fff; padding: 16px 22px; margin-bottom: 16px }
.lesson-banner > div { flex: 1 } .lesson-banner h1 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem) } .lesson-banner .eyebrow { color: var(--orange); margin: 0 } .lesson-banner .icon-btn { color: #fff } .lesson-banner .icon-btn:hover { background: rgba(255,255,255,.1) }
.rail-toggle-mobile { display: none }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start } .lesson-layout.rail-hidden { grid-template-columns: 1fr } .lesson-layout.rail-hidden .rail { display: none }
.player { background: #000; border-radius: 12px; overflow: hidden } .player video { width: 100%; aspect-ratio: 16/9; display: block; background: #000 }
.player-meta { margin: 0; padding: 8px 12px; background: #151917; color: #cfdcd5; font-size: .85rem; display: flex; justify-content: space-between; gap: 8px; align-items: center }
.player-empty { aspect-ratio: 16/9; display: grid; place-content: center; text-align: center; gap: 8px; background: #151917; color: #cfdcd5; border-radius: 12px; font-size: 1rem } .player-empty svg { margin: 0 auto; font-size: 2rem; color: var(--orange) }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line) }
.status-pill { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--gray); color: var(--ink-2); padding: 4px 12px; border-radius: 99px; text-align: center }
.status-pill.ok { background: var(--green-tint); color: var(--green-d) }
.qa-complete { margin: 8px 0 }
.notes, .discussion, .exercise { margin-top: 16px }
.resources { list-style: none; padding: 0; margin: 0 } .resources li { display: flex; gap: 8px; align-items: center; padding: 6px 0 }
.sample { background: var(--gray); border-left: 4px solid var(--orange); padding: 12px 14px; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; border-radius: 6px }
.exercise h2 { display: flex; gap: 8px; align-items: center } .exercise textarea { margin: 6px 0 10px }
.comment-form { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 } .comment-form textarea { flex: 1 } .comment-form.reply { margin-left: 42px }
.comments { list-style: none; padding: 0; margin: 0 } .comments > li { border-top: 1px solid var(--line); padding: 10px 0 }
.replies { list-style: none; padding: 0; margin: 4px 0 0 42px }
.comment { display: flex; gap: 10px } .comment p { margin: 0 0 2px }
.comment-actions { display: flex; gap: 14px; margin-top: 4px } .comment-actions button { border: 0; background: none; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; padding: 2px 0 }
.comment-actions button:hover, .comment-actions button[aria-pressed="true"] { color: var(--orange-d) }
.rail { background: #fff; border: 1px solid var(--line); border-radius: 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto }
.rail-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0 } .rail-head .back { margin: 0 } .rail-close { display: none }
.path { padding: 10px 14px 16px } .path .search-field { min-width: 0; margin-bottom: 10px }
.path-progress { background: var(--orange-tint); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px } .path-progress > div { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em } .path-progress small { color: var(--ink-2); display: block }
.path-progress .pp { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f0c9a6 }
.path-mod h3 { font-size: .88rem; margin: 12px 0 4px; padding: 8px 10px; background: var(--gray); border-radius: 6px }
.path-mod ul { list-style: none; padding: 0; margin: 0 }
.path-row { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: inherit; font-size: .9rem } .path-row > span:first-of-type { flex: 1 }
a.path-row:hover { background: var(--gray) } .current .path-row { background: var(--green-tint); color: var(--green-d); font-weight: 700 } .s-locked .path-row { color: #8c9791 } .path-row .st { margin-top: 3px }

/* account & community */
.profile-top { display: flex; gap: 16px; align-items: center; margin-bottom: 10px } .profile-top p { margin: 0 }
.mini-progress { margin-bottom: 12px } .mini-progress p { display: flex; justify-content: space-between; margin: 0 }
.booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px } .booking-head h2, .booking-head h3 { margin: 0 }
.timeline { display: flex; list-style: none; padding: 0; margin: 14px 0; counter-reset: s }
.timeline li { flex: 1; font-size: .8rem; font-weight: 600; color: var(--ink-2); border-top: 4px solid var(--line); padding-top: 6px; margin-right: 4px }
.timeline li.done { border-color: var(--green); color: var(--green-d) } .timeline li.on { border-color: var(--orange); color: var(--ink) }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 12px 0 0 } .kv dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700 } .kv dd { margin: 0 }
.notif-list { list-style: none; padding: 0; margin: 12px 0 } .notif-list a { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; text-decoration: none; color: inherit }
.notif-list .unread a { border-left: 4px solid var(--orange) } .notif-list small { color: var(--ink-2) }
.reply-box { background: var(--gray); padding: 8px 12px; border-radius: 6px; margin: 6px 0 } .ticket p { margin-bottom: 6px }
.feed { list-style: none; padding: 0; max-width: 760px } .post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px } .post-head > div { flex: 1 } .post-head a { color: inherit; text-decoration: none }
.composer { max-width: 760px } .composer select { width: auto; margin-bottom: 8px } .composer input, .composer textarea { margin-bottom: 8px }
.convo { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start }
.convo-list { list-style: none; padding: 0; margin: 0 } .convo-list button { width: 100%; text-align: left; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-weight: 600 }
.convo-list button.on { border-color: var(--green); background: var(--green-tint) } .convo-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: auto }
.msgs { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto }
.msgs li { max-width: 78%; background: var(--gray); padding: 8px 12px; border-radius: 10px } .msgs li.mine { align-self: flex-end; background: var(--green-tint) } .msgs p { margin: 0 } .msgs small { color: var(--ink-2) }
.member { display: flex; gap: 12px; text-decoration: none; color: inherit } .member p { margin: 0; color: var(--ink-2); font-size: .9rem } .member:hover { border-color: var(--green) }
.board { list-style: none; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 18px }
.board li { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line) } .board li:last-child { border: 0 }
.board .me { background: var(--orange-tint); box-shadow: inset 4px 0 0 var(--orange) } .rank { width: 36px; font-weight: 800; color: var(--ink-2) } .board .name { flex: 1; font-weight: 600 }
.event h3 { margin-top: 8px }

/* admin */
.admin-tabs { margin-top: -4px } .admin-mod h3 { margin-bottom: 8px }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px } .inline-form input, .inline-form select { width: auto; min-width: 180px; flex: 1 } .inline-form label { display: flex; flex-direction: column; font-weight: 600; font-size: .85rem; gap: 2px }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px } .form-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem } .form-grid .check { flex-direction: row } .span2 { grid-column: span 2 }
.mod-row { list-style: none }

/* search modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px }
.modal { background: #fff; border-radius: 12px; width: min(640px, 100%); padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25) }
.search-input { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px } .search-input input { border: 0; outline: none; font-size: 1.05rem }
.search-results { max-height: 50vh; overflow-y: auto; padding-top: 6px } .search-results h4 { margin: 10px 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2) }
.search-results button { display: flex; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; align-items: baseline } .search-results button:hover { background: var(--gray) } .search-results small { margin-left: auto; color: var(--ink-2) }

/* public pages */
.public { background: #fff; min-height: 100vh }
.pub-header { display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(16px, 4vw, 48px); background: var(--black); position: sticky; top: 0; z-index: 20 }
.pub-header nav { flex-direction: row; gap: 20px; align-items: center; flex: 0 } .pub-header nav a:not(.btn) { color: #dfe7e2; text-decoration: none; font-weight: 600; white-space: nowrap } .pub-logo { text-decoration: none }
.pub-header .btn.ghost { background: transparent; color: #fff; border-color: #555 }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px); background: linear-gradient(130deg, var(--black) 55%, var(--green-d)); color: #fff }
.hero h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.15 } .hero h1 span { color: var(--orange); display: block } .hero .eyebrow { color: var(--green) }
.lead { font-size: 1.12rem; color: #d7e2dc; max-width: 640px }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px } .facts li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap } .facts svg { color: var(--orange) }
.hero-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap } .price { font-size: 1.7rem; font-weight: 800 } .price small { font-size: .85rem; font-weight: 500; color: #cfdcd5 }
.hero-note { margin-top: 12px } .hero-card svg { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.4) }
.pub-section { padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 48px); max-width: 1120px; margin: 0 auto } .pub-section h2 { font-size: 1.6rem; text-align: center; margin-bottom: 18px }
.pub-section.alt { max-width: none; background: var(--gray) } .pub-section.alt > * { max-width: 1020px; margin-left: auto; margin-right: auto }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px } .grid-3 .card { border-top: 4px solid var(--green) }
.curriculum { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px } .curriculum > li { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line) }
.curriculum .num { font-size: 1.6rem; line-height: 1 } .curriculum ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem }
.instructor { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; max-width: 820px; margin: 0 auto }
.photo-ph { aspect-ratio: 1; border-radius: 16px; background: linear-gradient(135deg, var(--green-d), var(--black)); color: #fff; display: grid; place-content: center; text-align: center; font-size: 3rem; font-weight: 800; border: 4px solid var(--orange) } .photo-ph small { font-size: .7rem; font-weight: 500; padding: 0 12px; color: #cfdcd5 }
.role { color: var(--green-d); font-weight: 700 }
.agenda { list-style: none; padding: 0; max-width: 600px; margin: 0 auto } .agenda li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d8e0db } .agenda b { width: 48px; color: var(--orange-d) }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px } .steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center }
.steps span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin: 0 auto 8px }
.faq { max-width: 760px } .faq details { border-bottom: 1px solid #d8e0db; padding: 12px 0 } .faq summary { cursor: pointer; font-weight: 700 } .faq details p { margin: 8px 0 0; color: var(--ink-2) }
.pub-section .faq { margin: 0 auto }
.pub-cta { text-align: center; padding: 48px 16px; background: var(--black); color: #fff }
.pub-footer { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 18px; background: #000; color: #8fa097; font-size: .85rem }
.narrow-page .auth-wrap, .book { max-width: 640px; margin: 32px auto; padding: 0 16px }
.auth-wrap h1 { text-align: center } .auth { padding: 0 20px 20px } .auth .tabs button { flex: 1 }
.demo-logins { margin-top: 16px; background: #fff; border: 1px dashed #cdd6d1; border-radius: 8px; padding: 10px 14px } .demo-logins summary { cursor: pointer; font-weight: 700 }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 18px; gap: 4px } .stepper li { flex: 1; border-top: 4px solid var(--line); padding-top: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-2) }
.stepper li.on { border-color: var(--orange); color: var(--ink) } .stepper li.done { border-color: var(--green); color: var(--green-d) }
.summary { display: flex; gap: 14px } .summary > svg { font-size: 1.8rem; color: var(--orange); flex-shrink: 0 } .summary h2 { margin: 0 }
.pay-options { display: grid; gap: 14px }
.gateway { min-height: 100vh; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #eceeed, #eceeed 12px, #f4f5f4 12px, #f4f5f4 24px); padding: 16px }
.gateway-card { background: #fff; border-radius: 14px; padding: 28px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.12); border: 2px dashed #9aa59f }
.gateway-flag { background: #fffbe6; color: #7a5b00; border: 1px solid #f0d97a; font-weight: 800; letter-spacing: .08em; font-size: .78rem; padding: 6px; border-radius: 6px }
.gateway-card h1 { font-size: 2.4rem; margin: 10px 0 0 } .gateway-actions { display: grid; gap: 8px; margin-top: 16px } .gateway-card .notice { text-align: left; display: block }

/* responsive */
@media (max-width: 1100px) {
  .classroom-grid { grid-template-columns: 1fr } .col-side { position: static }
  .lesson-layout { grid-template-columns: 1fr }
  .rail { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); max-height: none; border-radius: 0; z-index: 60; transform: translateX(105%); transition: transform .2s; box-shadow: -10px 0 40px rgba(0,0,0,.2) }
  .rail.open { transform: none } .lesson-layout.rail-hidden .rail { display: block }
  .rail-close { display: inline-grid } .rail-toggle-mobile { display: inline-flex } .rail-toggle-desktop { display: none }
  .course-hero { grid-template-columns: 1fr } .course-hero .course-art { max-width: 520px }
}
@media (max-width: 860px) {
  .app, .app.nav-collapsed { grid-template-columns: 1fr }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; background: var(--black); color: #fff; padding: 6px 10px } .topbar .icon-btn:hover { background: #222 }
  .topbar-logo { text-decoration: none } .topbar-actions { margin-left: auto; display: flex }
  .topbar .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange) }
  .sidenav, .nav-collapsed .sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-105%); transition: transform .2s; padding: 14px 12px }
  .sidenav.open { transform: none } .sidenav .close { display: inline-grid } .sidenav .pin { display: none }
  .nav-collapsed .nav-label, .nav-collapsed .chev, .nav-collapsed .nav-user { display: initial } .nav-collapsed .nav-sub { display: block }
  .nav-collapsed .nav-item, .nav-collapsed .nav-search { justify-content: flex-start; padding: 9px 10px } .nav-collapsed .sidenav-head { flex-direction: row }
  .main { padding: 0 14px 40px } .review-strip { margin: 0 -14px 14px; padding: 5px 14px }
  .two-col, .grid-3, .curriculum, .steps, .convo, .form-grid, .dual-progress, .kv { grid-template-columns: 1fr } .span2 { grid-column: auto }
  .hero { grid-template-columns: 1fr } .hero-card { display: none } .instructor { grid-template-columns: 1fr; text-align: center } .photo-ph { max-width: 180px; margin: 0 auto }
  .pub-header nav a:not(.btn) { display: none }
  .banner { padding: 16px } .banner-icon { display: none }
  .program-head { flex-direction: column; align-items: flex-start } .program-pct { text-align: left }
  .lesson-nav .status-pill { display: none } .comment-form { flex-direction: column } .comment-form .btn { align-self: flex-end } .comment-form.reply, .replies { margin-left: 18px }
  .search-field { min-width: 0; flex: 1 } .toolbar { align-items: stretch }
  .table th, .table td { padding: 8px } .msgs li { max-width: 92% }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
.upload-btn { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--green-d); cursor: pointer; text-decoration: underline }
.upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0 }
.upload-btn:focus-within { outline: 2px solid var(--orange) }

.pub-nav-link { background: none; border: 0; color: #dfe7e2; font-weight: 600; cursor: pointer; padding: 0 }
.pub-nav-link:hover { color: #fff }
@media (max-width: 860px) { .pub-nav-link { display: none } }
