/* Self-hosted fonts (SIL Open Font License) — no requests to Google. Variable fonts: one file covers all weights. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/atkinson-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/atkinson-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/caveat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/caveat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* FIRST Academy — "Atölye netliği" design system */
:root {
  /* Bordo & white (redesign 29 Oct 2026) */
  --maroon: #7A0E18;
  --maroon-dark: #5E0A12;
  --maroon-tint: #FBF1F1;
  --deep: #4A0710;
  --indigo: #4A0710;
  --indigo-dark: #2E040A;
  --indigo-tint: #FBF1F1;
  --amber: #FFFFFF;
  --amber-tint: #FBF1F1;
  --amber-ink: #7A0E18;
  --ink: #1C1214;
  --ink-2: #4E3B3E;
  --ink-3: #6E5A5D;
  --ground: #FFFFFF;
  --ground-2: #FBF1F1;
  --surface: #FFFFFF;
  --hairline: #EFD9DA;
  --divider: #E2C7CA;
  --control: #B88D91;
  --placeholder: #F3E1E2;
  --on-dark: #F6DCDE;
  --on-dark-2: #F0D3D6;
  --success: #1E6B45; --success-tint: #E3F1E8;
  --warning: #7A4B00; --warning-tint: #FDF0D5;
  --error: #B42318;   --error-tint: #FCE8E6;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.25; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
button { font-family: inherit; }
*:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.muted { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 14px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--ground); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.navlink { padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.navlink { border-radius: 999px; }
.navlink:hover { background: var(--ground-2); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--maroon); color: #fff; font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn.menu-toggle { display: none; margin-left: auto; }
.mobile-nav { display: none; border-top: 1px solid var(--hairline); padding: 8px 24px 20px; flex-direction: column; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 8px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.mobile-nav a[aria-current="page"] { color: var(--maroon); font-weight: 700; }
.mobile-nav a.btn { margin-top: 8px; justify-content: center; border-bottom: 1px solid var(--divider); }
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .btn.menu-toggle { display: inline-flex; }
  .brand img { height: 36px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 20px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; font-weight: 700; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--divider); }
.btn-secondary:hover { background: var(--ground-2); border-color: #B9AC95; color: var(--ink); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--deep); color: #fff; }
.btn-white { background: #fff; color: var(--maroon); }
.btn-white:hover { background: var(--ground-2); color: var(--maroon-dark); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.10); color: #fff; }
.btn[disabled] { background: var(--hairline); color: var(--ink-2); cursor: progress; }
.btn-block { width: 100%; }
.link-btn { border: 0; background: transparent; padding: 8px 0; color: var(--indigo); font-weight: 700; font-size: 15px; text-decoration: underline; cursor: pointer; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border: 1.5px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--maroon); }
.input-wrap:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 17px; color: var(--ink); }
.input-wrap.lg { height: 60px; padding: 0 22px; }
.input-wrap.lg input { font-size: 18px; }
.kbd { font-size: 13px; color: var(--ink-3); padding: 3px 8px; border: 1px solid var(--hairline); border-radius: 6px; font-weight: 400; }
.text-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--control); font-family: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.text-input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.text-input[aria-invalid="true"] { border: 2px solid var(--error); }
select.select { height: 48px; padding: 0 16px; border: 1.5px solid var(--control); border-radius: 999px; background: #fff; font-family: inherit; font-size: 16px; color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--maroon); margin: 0; }
.check .hint { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.field-error { display: flex; gap: 8px; align-items: flex-start; color: var(--error); font-size: 15px; line-height: 21px; font-weight: 600; }

/* Chips (toggle buttons) */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; text-align: left;
  border: 1.5px solid var(--control); background: var(--surface); color: var(--ink);
}
.chip:hover { border-color: var(--maroon); }
.chip[aria-pressed="true"] { border: 2px solid var(--maroon); background: var(--maroon); color: #fff; font-weight: 700; }
.chip.pill { border-radius: 999px; min-height: 44px; padding: 0 16px; }
.chip.indigo:hover { border-color: var(--maroon); }
.chip.indigo[aria-pressed="true"] { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.chip .chip-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ground-2); color: var(--ink-2); }
.chip[aria-pressed="true"] .chip-icon { background: #fff; color: var(--maroon); }
.chip.start { justify-content: flex-start; padding: 8px 12px; min-height: 52px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--control); border-radius: 999px; overflow: hidden; }
.segmented button { min-height: 48px; border: 0; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.segmented button + button { border-left: 1.5px solid var(--control); }
.segmented button[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px; border: 0; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; line-height: 18px; }
.tag-dark { background: var(--deep); color: #fff; }
.tag-outline { border: 1px solid var(--deep); color: var(--deep); }
.tag-cat { padding: 4px 12px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 13px; }
.tag-soft { padding: 3px 10px; border-radius: 999px; background: var(--ground-2); color: var(--maroon); font-size: 13px; }
.tag-success { background: var(--success-tint); color: var(--success); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); }
.card-link { color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.card-link:hover { color: var(--ink); border-color: #C9A1A5; box-shadow: 0 10px 28px rgba(74, 7, 16, .10); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }

.lesson-card { display: flex; flex-direction: column; overflow: hidden; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--placeholder); display: flex; align-items: center; justify-content: center; color: var(--ink-3); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag-cat { position: absolute; left: 12px; top: 12px; }
.thumb .duration { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--deep); font-weight: 700; font-size: 13px; }
.thumb-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lesson-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lesson-card .title { font-family: var(--font-head); font-size: 18px; line-height: 24px; font-weight: 700; }
.lesson-card .team { font-size: 14px; color: var(--ink-2); }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 24px; border: 1.5px dashed var(--divider); border-radius: 24px; background: var(--ground-2); }
.empty-state .bubble, .icon-bubble { width: 56px; height: 56px; border-radius: 18px; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; }
.icon-bubble.sm { width: 48px; height: 48px; border-radius: 12px; }
.bubble-maroon { background: var(--maroon) !important; color: #fff !important; }
.bubble-indigo { background: var(--deep) !important; color: #fff !important; }
.bubble-amber { background: #fff !important; color: var(--maroon) !important; border: 2px solid var(--maroon); box-sizing: border-box; }
.empty-state h3 { font-size: 22px; }
.empty-state p { max-width: 460px; color: var(--ink-2); }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 18px; font-size: 16px; line-height: 25px; }
.notice-info { background: var(--indigo-tint); }
.notice-info > .icon { color: var(--maroon); }
.notice-success { background: var(--success-tint); }
.notice-success > .icon { color: var(--success); }
.notice-warning { background: var(--warning-tint); }
.notice-warning > .icon { color: var(--warning); }
.notice-error { background: var(--error-tint); }
.notice-error > .icon { color: var(--error); }

.step-num { flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-num.amber { background: #fff; color: var(--deep); font-weight: 800; }
.step-num.sm { width: 26px; height: 26px; font-size: 14px; }

.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.page-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.page-head h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.page-head p { font-size: 19px; line-height: 30px; color: var(--ink-2); }
.page-main { padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.breadcrumb .sep { color: var(--ink-3); }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.two-col > .side { flex: 1 1 260px; }
.two-col > .primary { flex: 999 1 560px; min-width: 0; }
@media (max-width: 1000px) { .two-col > .side { max-width: none !important; } }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-size: 58px; line-height: 62px; letter-spacing: -.02em; text-wrap: balance; }
.hero .lead { font-size: 20px; line-height: 31px; color: var(--ink-2); max-width: 540px; }
.dots { display: flex; gap: 4px; }
.dots span { width: 8px; height: 8px; border-radius: 99px; }
.finder { background: #fff; border: 1px solid var(--hairline); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 1px 2px rgba(20,23,43,.04), 0 12px 32px rgba(20,23,43,.06); }
.section-white { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-dark { background: var(--deep); color: #fff; }
.section-sand { background: var(--ground-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-pad { padding-top: 88px; padding-bottom: 88px; }
.h2 { font-size: 36px; line-height: 44px; letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; }
.path-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: #fff; }
.path-card .t { font-family: var(--font-head); font-size: 23px; line-height: 29px; font-weight: 700; }
.path-card .d { color: var(--ink-2); }
.path-card .go { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.steps h3 { font-size: 20px; line-height: 28px; }
.dark-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dark-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.dark-steps h3 { font-size: 19px; line-height: 26px; }
.dark-steps p { color: var(--on-dark-2); }
.glossary { margin: 0; overflow: hidden; }
.glossary div { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.glossary div:last-child { border-bottom: 0; background: var(--ground); }
.glossary dt { flex: none; width: 116px; font-weight: 700; }
.glossary dd { margin: 0; color: var(--ink-2); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; text-align: left; cursor: pointer; border-radius: 8px; }
.faq-q:hover { background: var(--ground-2); }
.faq-q .icon { transition: transform .15s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-a { padding: 0 12px 22px; color: var(--ink-2); max-width: 700px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 32px; background: var(--maroon); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-dark-2); }
.site-footer .inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h2 { font-family: inherit; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-grid a { color: var(--on-dark-2); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-logo { display: inline-flex; align-self: flex-start; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #E2B9BD; }
.footer-bottom a { color: #E2B9BD; }

/* ---------- Lesson page ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--deep); color: #fff; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: #D3D5E2; }
.player .play-big { width: 84px; height: 84px; border-radius: 999px; background: #fff; color: var(--maroon); display: flex; align-items: center; justify-content: center; }
.chapters ol { list-style: none; margin: 0; padding: 6px; }
.chap { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 16px; color: var(--ink); cursor: pointer; }
.chap:hover { background: var(--ground-2); }
.chap .time { flex: none; width: 54px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chap[aria-current="true"] { background: var(--maroon); color: #fff; font-weight: 700; }
.chap[aria-current="true"] .time { color: inherit; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 24px; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { color: var(--success); margin-top: 3px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mini-lesson { display: flex; gap: 12px; padding: 10px; }
.mini-lesson .mini-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--placeholder); overflow: hidden; }
.team-logo { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--ground-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: var(--maroon); overflow: hidden; }
.team-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Mentor ---------- */
.score-bar { position: relative; width: 160px; height: 8px; border-radius: 99px; background: var(--hairline); }
.score-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--maroon); }
.mentor-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; font-size: 15px; }
.mentor-facts div { display: flex; flex-direction: column; gap: 4px; }
.mentor-facts dt { color: var(--ink-2); }
.mentor-facts dd { margin: 0; font-weight: 600; }

/* ---------- Teams ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--hairline); }
.tab { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 16px; cursor: pointer; }
.tab .count { padding: 1px 8px; border-radius: 99px; background: var(--ground-2); font-size: 13px; }
.tab[aria-selected="true"] { color: var(--maroon); border-bottom-color: var(--maroon); font-weight: 700; }
.tab[aria-selected="true"] .count { background: var(--maroon); color: #fff; }
.team-card { display: flex; flex-direction: column; overflow: hidden; }
.team-banner { height: 110px; background: var(--maroon); }
.team-card .body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.team-card .avatar { margin-top: -32px; width: 64px; height: 64px; border-radius: 999px; border: 3px solid #fff; }
.profile-banner { height: 220px; background: var(--maroon); }
.profile-avatar { margin-top: -56px; width: 112px; height: 112px; border-radius: 999px; border: 4px solid #fff; font-size: 34px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; display: flex; gap: 10px; align-items: center; transition: opacity .2s ease, transform .2s ease; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; gap: 36px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .page-head h1 { font-size: 34px; line-height: 40px; }
  .page-head p { font-size: 17px; line-height: 27px; }
  .h2 { font-size: 28px; line-height: 35px; }
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .finder { padding: 20px; }
  .cta-band { padding: 28px; }
  .glossary dt { width: 92px; }
  .profile-banner { height: 140px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Bordo redesign additions ---------- */
.hand { font-family: var(--font-hand); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--maroon); margin: 0; }
.hand.light { color: #FFD9DC; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--maroon); }
.page-band { background: var(--maroon); color: #fff; }
.page-band .page-head { max-width: 760px; }
.page-band .meta, .page-band .muted { color: var(--on-dark); }
.page-band .page-head > p { color: var(--on-dark); max-width: 720px; }
.page-band h1 { color: #fff; }
.band-search { margin-top: 10px; max-width: 760px; }
.band-search .input-wrap { border-color: #fff; }
.hero-band { background: var(--maroon); color: #fff; overflow: hidden; }
.hero-band .hero { padding-top: 80px; padding-bottom: 96px; }
.hero-band .lead { color: var(--on-dark); }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 540px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; color: var(--maroon); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 17px; color: var(--ink); }
.collage { position: relative; min-height: 440px; }
.polaroid { margin: 0; position: absolute; background: #fff; padding: 12px 12px 46px; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.25); box-sizing: border-box; }
.polaroid .photo { width: 100%; height: 100%; border-radius: 3px; background: var(--placeholder); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--maroon); }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .caption { position: absolute; left: 16px; bottom: 8px; font-family: var(--font-hand); font-weight: 700; font-size: 24px; color: var(--deep); margin: 0; }
.polaroid.one { left: 4%; top: 0; width: 62%; aspect-ratio: 1.15 / 1; transform: rotate(-3deg); }
.polaroid.two { right: 0; top: 34%; width: 50%; aspect-ratio: 1 / 1; transform: rotate(4deg); }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.cat-tile .icon { width: 30px; height: 30px; color: var(--maroon); }
.cat-tile strong { font-family: var(--font-head); font-size: 21px; }
.cat-tile span { font-size: 15px; color: var(--ink-2); }
.offer-card { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 24px; }
.offer-card h3 { font-size: 26px; }
@media (max-width: 760px) {
  .collage { min-height: 320px; }
  .hero-band .hero { padding-top: 48px; padding-bottom: 64px; }
}
.page-band .card .muted { color: var(--ink-2); }

/* Text lessons */
.lead-desc { font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 720px; }
.lesson-text { max-width: 720px; display: flex; flex-direction: column; gap: 36px; }
.lesson-text section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.lesson-text h2 { font-size: 24px; line-height: 32px; }
.lesson-text p, .lesson-text li { font-size: 17px; line-height: 28px; color: #2C3048; }
.lesson-text ul, .lesson-text ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.lesson-text code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--ground-2); padding: 1px 6px; border-radius: 5px; }
.lesson-text pre.code { margin: 0; background: #1E2140; color: #E6E8F2; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 22px; }
.lesson-text pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.callout { border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid; }
.callout p { margin: 0; }
.callout-tip { background: #E8F4EC; border-color: #2F7D4F; }
.callout-warn { background: var(--warning-tint); border-color: var(--warning); }
.lesson-toc a.chap { text-decoration: none; color: inherit; }

.lesson-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; display: block; background: var(--deep); }
