/* =========================================================
   Loft theme: warm plaster, terracotta, sage, soft charcoal
   ========================================================= */
:root {
    --bg: #f5f1ea;
    --bg-soft: #efe9df;
    --surface: #fffcf7;
    --surface-2: #f3ede4;
    --ink: #2a2521;
    --ink-2: #4a423c;
    --muted: #857a70;
    --line: #e5ddd1;
    --line-strong: #d6cbbb;
    --accent: #b8613f;
    --accent-hover: #9c4f31;
    --accent-soft: #f6e4da;
    --sage: #7f8f72;
    --sage-soft: #e6ebdf;
    --sand: #ead9c2;
    --charcoal: #2f2b28;
    --green: #5f7d4f;
    --green-soft: #e4ecdc;
    --red: #b4483c;
    --red-soft: #f6e0dc;
    --glass: rgba(255, 252, 247, .72);
    --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06);
    --shadow: 0 1px 2px rgba(60, 40, 20, .04), 0 14px 36px -12px rgba(60, 40, 20, .14);
    --shadow-lg: 0 30px 70px -20px rgba(60, 40, 20, .28);
    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Fraunces", Georgia, serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    color-scheme: light;
    interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #171513; --bg-soft: #1d1a17; --surface: #221f1c; --surface-2: #2a2622;
        --ink: #f2ece4; --ink-2: #d6cec4; --muted: #a0958a; --line: #35302b; --line-strong: #463f38;
        --accent: #e08b67; --accent-hover: #eba283; --accent-soft: #3a2820;
        --sage: #a8b897; --sage-soft: #283024; --sand: #3a3128; --charcoal: #0f0e0d;
        --green: #9cc28a; --green-soft: #253021; --red: #e48a7d; --red-soft: #3a221e;
        --glass: rgba(34, 31, 28, .72);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -12px rgba(0, 0, 0, .5);
        --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #171513; --bg-soft: #1d1a17; --surface: #221f1c; --surface-2: #2a2622;
    --ink: #f2ece4; --ink-2: #d6cec4; --muted: #a0958a; --line: #35302b; --line-strong: #463f38;
    --accent: #e08b67; --accent-hover: #eba283; --accent-soft: #3a2820;
    --sage: #a8b897; --sage-soft: #283024; --sand: #3a3128; --charcoal: #0f0e0d;
    --green: #9cc28a; --green-soft: #253021; --red: #e48a7d; --red-soft: #3a221e;
    --glass: rgba(34, 31, 28, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-header { view-transition-name: site-header; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before {
    transition: background-color .45s var(--ease), border-color .45s var(--ease), color .3s var(--ease) !important;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.02em; color: var(--ink); }
h1 { font: 600 clamp(2rem, 4.4vw, 3rem)/1.08 var(--serif); letter-spacing: -.03em; }
h2 { font: 600 clamp(1.6rem, 3.2vw, 2.3rem)/1.12 var(--serif); letter-spacing: -.025em; }
h3 { font-size: 1.12rem; font-weight: 700; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--accent); }
.center { text-align: center; }
.inline { display: inline; }
.right { text-align: right; }
.danger { color: var(--red) !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 48px; padding-bottom: 88px; min-height: 62vh; }
.narrow { max-width: 780px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 8px; }
.section-intro { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.in > * { opacity: 1; transform: none; }
.js .reveal-group.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-group.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-group.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-group.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-group.in > *:nth-child(6) { transition-delay: .35s; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.header-pill {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 62px; padding: 0 10px 0 18px; border-radius: 999px;
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), #d4875f); color: #fff; font: 700 .8rem var(--mono);
    box-shadow: 0 6px 14px -6px var(--accent); transition: transform .4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
    cursor: pointer; color: var(--ink); place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* Segmented language switch with sliding indicator */
.seg {
    --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 38px);
    padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg-indicator {
    position: absolute; top: 3px; left: 3px; width: 38px; height: calc(100% - 6px); border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease);
}
.seg a { position: relative; z-index: 1; text-align: center; font: 700 .7rem/26px var(--font); letter-spacing: .04em; color: var(--muted); border-radius: 999px; transition: color .3s; }
.seg a.active, .seg a:hover { color: var(--ink); }

/* Theme switch */
.theme-switch {
    position: relative; width: 56px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface-2); cursor: pointer; padding: 0; flex: none; transition: background .4s var(--ease);
}
.theme-switch .knob {
    position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); display: grid; place-items: center;
    transition: transform .5s var(--ease), background .4s;
}
.theme-switch svg { width: 14px; height: 14px; position: absolute; transition: opacity .35s, transform .5s var(--ease); }
.theme-switch .sun { color: #d08a3c; }
.theme-switch .moon { color: #c9b8ff; opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-switch .knob { transform: translateX(24px); background: #3b3632; }
[data-theme="dark"] .theme-switch .sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-switch .moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-switch .knob { transform: translateX(24px); background: #3b3632; }
    :root:not([data-theme]) .theme-switch .sun { opacity: 0; }
    :root:not([data-theme]) .theme-switch .moon { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font: 650 .93rem var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-link { background: none; border: 0; color: var(--muted); padding: 6px 10px; }
.btn-link:hover { color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob.b1 { width: 460px; height: 460px; background: var(--sand); top: -120px; right: 4%; }
.blob.b2 { width: 360px; height: 360px; background: var(--accent-soft); top: 180px; right: 32%; animation-delay: -6s; }
.blob.b3 { width: 320px; height: 320px; background: var(--sage-soft); top: 60px; left: -100px; animation-delay: -12s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 25px) scale(.96); }
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.status-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2);
    box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: .35; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .25em; }
.hero h1 .hello { display: block; font: 500 .42em var(--font); letter-spacing: 0; color: var(--muted); margin-bottom: .35em; }
.hero-role { font-size: 1.2rem; font-weight: 700; color: var(--ink-2); margin-bottom: .9em; }
.hero-role span { color: var(--accent); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; max-width: 150px; }
.hero-meta strong { font: 600 1.7rem/1.1 var(--serif); color: var(--ink); }
.hero-meta span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; }
.code-window {
    border-radius: 22px; background: #1f1c1a; box-shadow: var(--shadow-lg); overflow: hidden;
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease);
    border: 1px solid rgba(255, 255, 255, .06);
}
.hero-visual:hover .code-window { transform: perspective(1200px) rotateY(0) rotateX(0); }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #282421; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0715a; }
.code-bar i:nth-child(2) { background: #e6b450; }
.code-bar i:nth-child(3) { background: #8fb573; }
.code-bar span { margin-left: 10px; font: 500 .75rem var(--mono); color: #9b8f84; }
.code-window pre { margin: 0; }
.code-window code { display: block; font: .83rem/1.7 var(--mono); padding: 22px 24px !important; background: transparent !important; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px;
    background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; color: var(--ink);
    animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-card .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 .8rem var(--mono); color: #fff; }
.fc1 { left: -34px; bottom: -26px; }
.fc1 .ic { background: var(--accent); }
.fc2 { right: -18px; top: -22px; animation-delay: -3s; }
.fc2 .ic { background: var(--sage); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Bento (about) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 18px; }
.tile {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-bio { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.tile-bio p { color: var(--ink-2); }
.avatar {
    width: 64px; height: 64px; border-radius: 20px; margin-bottom: 22px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #d9a07a); color: #fff; font: 600 1.6rem var(--serif);
    box-shadow: 0 12px 24px -10px var(--accent);
}
.tile-stat { display: flex; flex-direction: column; justify-content: space-between; }
.tile-stat strong { font: 600 3rem/1 var(--serif); color: var(--ink); letter-spacing: -.03em; }
.tile-stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.tile-stat.tone-accent { background: var(--accent); border-color: transparent; }
.tile-stat.tone-accent strong, .tile-stat.tone-accent span { color: #fff; }
.tile-stat.tone-sage { background: var(--sage-soft); }
.tile-now { background: var(--charcoal); border-color: transparent; color: #efe7dd; display: flex; flex-direction: column; justify-content: space-between; }
.tile-now small { color: #a99d91; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.tile-now strong { font: 600 1.35rem/1.2 var(--serif); color: #fff; }
.tile-skills { grid-column: span 4; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.skill-group h4 { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
    font-size: .84rem; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chips span:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 179px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 22px 0; }
.timeline li::before {
    content: ""; position: absolute; left: 173px; top: 30px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg-soft); border: 2.5px solid var(--accent); transition: transform .3s var(--ease), background .3s;
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline li:hover::before { transform: scale(1.25); }
.timeline-period { font: 600 .82rem var(--mono); color: var(--muted); padding-top: 4px; text-align: right; }
.timeline h3 { margin-bottom: .3em; font-size: 1.2rem; }
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.timeline li:hover .timeline-card { box-shadow: var(--shadow); transform: translateX(4px); }
.timeline-card p { margin: 0; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.course-card, .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px;
}
.course-card { --tone: var(--sage); --tone-soft: var(--sage-soft); display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.course-card:nth-child(2) { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card-head { position: relative; padding: 30px 30px 22px; background: var(--tone-soft); }
.course-card-head .duration { position: absolute; right: 26px; top: 18px; text-align: right; line-height: 1; }
.course-card-head .duration strong { display: block; font: 600 3.4rem/1 var(--serif); color: var(--tone); letter-spacing: -.04em; }
.course-card-head .duration span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--tone); }
.course-card-head .level { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--tone); }
.course-card-head h3 { font: 600 1.7rem var(--serif); margin: 10px 0 10px; letter-spacing: -.02em; padding-right: 80px; }
.course-card-head p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.course-card .month-list { padding: 14px 30px 0; }
.course-card-foot { display: flex; gap: 10px; margin-top: auto; padding: 22px 30px 28px; }
.month-list { list-style: none; padding: 0; margin: 8px 0 0; }
.month-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; font-weight: 500; }
.month-list li:last-child { border-bottom: 0; }
.month-no {
    display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px;
    background: var(--surface-2); color: var(--ink-2); font: 600 .75rem var(--mono); border: 1px solid var(--line);
}
.course-admin-card { color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.course-admin-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }

.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2);
    color: var(--ink-2); font-size: .74rem; font-weight: 700; margin-right: 4px; white-space: nowrap; border: 1px solid var(--line);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge-muted { opacity: .6; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no { display: block; font: 600 2.6rem/1 var(--serif); color: var(--line-strong); margin-bottom: 18px; transition: color .4s; }
.step:hover .step-no { color: var(--accent); }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; font-size: .93rem; }

/* ---------- CTA ---------- */
.cta-panel {
    position: relative; overflow: hidden; border-radius: 32px; padding: 64px 56px; background: var(--charcoal); color: #efe7dd;
    display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-panel::before, .cta-panel::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.cta-panel::before { width: 340px; height: 340px; background: var(--accent); right: -80px; top: -140px; }
.cta-panel::after { width: 260px; height: 260px; background: var(--sage); left: 30%; bottom: -180px; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { color: #fff; margin-bottom: .3em; }
.cta-panel p { color: #b8ada2; margin: 0; max-width: 520px; }
.cta-panel .btn-primary { background: #fff; color: var(--charcoal); }
.cta-panel .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-box { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--accent-soft); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.post-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card a { color: var(--ink); display: block; height: 100%; }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sand), var(--accent-soft)) center / cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.post-card:hover .post-cover { background-size: 106%; }
.post-cover { transition: background-size .8s var(--ease); background-size: 100%; }
.post-cover-placeholder { color: var(--accent); font: 600 2.4rem var(--serif); opacity: .8; }
.post-body { padding: 20px 22px 24px; }
.post-body h3 { font: 600 1.25rem/1.25 var(--serif); letter-spacing: -.01em; }
.post-body p { font-size: .92rem; margin: 0; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.post-title { margin-top: 18px; font-size: clamp(2rem, 4.5vw, 3rem); }
.post-hero-img { width: 100%; border-radius: var(--radius); margin: 20px 0 32px; box-shadow: var(--shadow); }
.filter-tabs { display: inline-flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.filter-tabs a { padding: 6px 16px; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 600; transition: background .3s, color .3s; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 40px; }
.link-back, .link-arrow { font-weight: 700; font-size: .9rem; }
.empty { padding: 36px 0; text-align: center; }

/* ---------- Markdown ---------- */
.prose { font-size: 1.06rem; line-height: 1.8; overflow-wrap: break-word; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3 { color: var(--ink); }
.prose h2 { margin-top: 1.8em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.5em; font: 600 1.3rem var(--serif); }
.prose img { border-radius: 14px; margin: 12px 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose pre { border-radius: 14px; overflow-x: auto; margin: 1.4em 0; background: #1f1c1a; }
.prose pre code { font: .87rem/1.65 var(--mono); padding: 20px !important; display: block; background: transparent !important; }
.prose :not(pre) > code { font: .86em var(--mono); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--accent); border: 1px solid var(--line); }
.prose blockquote { margin: 1.4em 0; padding: 6px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }

/* ---------- Course syllabus ---------- */
.page-head { margin-bottom: 36px; }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head-row h1 { margin: 0; }
.syllabus { display: flex; flex-direction: column; gap: 12px; }
.month {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: box-shadow .4s var(--ease), border-color .4s;
}
.month:hover { box-shadow: var(--shadow); }
.month[open] { border-color: var(--line-strong); }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
details[open]::details-content { block-size: auto; }
.month summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.month summary::-webkit-details-marker { display: none; }
.month summary::after {
    content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); margin: 0 6px 4px 4px; transition: transform .4s var(--ease);
}
.month[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.month[open] .month-no { background: var(--accent); color: #fff; border-color: transparent; }
.month .month-no { width: 36px; height: 36px; border-radius: 12px; font-size: .85rem; transition: background .3s, color .3s; }
.month-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.month-title strong { font-size: 1.05rem; }
.month-title small { font-size: .86rem; }
.month-state { flex: none; }
.lesson-list { list-style: none; margin: 0; padding: 0 22px 16px 74px; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-list a, .lesson-list li > span { display: flex; align-items: center; gap: 12px; padding: 11px 8px; color: var(--ink); border-radius: 10px; transition: background .25s, padding .3s var(--ease); }
.lesson-list a:hover { background: var(--surface-2); padding-left: 14px; color: var(--ink); }
.lesson-list li.locked { color: var(--muted); }
.check { width: 18px; color: var(--green); font-weight: 800; text-align: center; flex: none; }
.progress-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.progress { flex: 1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; max-width: 420px; border: 1px solid var(--line); }
.progress div { height: 100%; background: linear-gradient(90deg, var(--sage), var(--accent)); border-radius: 99px; transition: width 1s var(--ease); }

/* ---------- Lesson page ---------- */
.lesson-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-top: 32px; padding-bottom: 88px; }
.lesson-nav {
    position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: .9rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.lesson-nav-course { display: block; font: 600 1.15rem var(--serif); color: var(--ink); margin-bottom: 16px; }
.lesson-nav-month { margin-bottom: 14px; }
.lesson-nav-month-title { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.lesson-nav ul { list-style: none; padding: 0; margin: 0; }
.lesson-nav li a, .lesson-nav li > span { display: flex; gap: 6px; padding: 6px 10px; border-radius: 9px; color: var(--ink-2); transition: background .25s; }
.lesson-nav li a:hover { background: var(--surface-2); }
.lesson-nav li a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.lesson-nav .check { width: 14px; }
.lesson-main { min-width: 0; max-width: 780px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0 32px; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.attachments { margin-top: 36px; }
.file {
    display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); margin-bottom: 8px; color: var(--ink); transition: border-color .3s, transform .3s var(--ease);
}
.file:hover { border-color: var(--accent); color: var(--ink); transform: translateX(4px); }
.lesson-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.pager { display: flex; gap: 8px; margin-left: auto; }
.big-icon { font: 600 4rem var(--serif); margin-bottom: 12px; color: var(--accent); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; margin: 28px 0; }
.dash-course { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.dash-course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dash-course-head { display: flex; justify-content: space-between; align-items: baseline; }
.next-lesson {
    display: flex; flex-direction: column; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); margin: 18px 0;
    transition: transform .3s var(--ease);
}
.next-lesson:hover { color: var(--ink); transform: translateX(4px); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form label, .form .field { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form-row-wide { grid-template-columns: 1fr 120px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=search], select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
    font: 500 .97rem var(--font); color: var(--ink); transition: border-color .25s, box-shadow .3s var(--ease), background .25s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; }
.input-lg { font: 600 1.3rem var(--serif) !important; }
.check-row { display: flex; flex-wrap: wrap; gap: 28px; }
.form .check-label { flex-direction: row; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }

/* iOS-style toggle switch for every checkbox in forms */
.check-label input[type=checkbox] {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 27px; margin: 0;
    border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background .35s var(--ease);
}
.check-label input[type=checkbox]::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .4s var(--ease);
}
.check-label input[type=checkbox]:checked { background: var(--green); }
.check-label input[type=checkbox]:checked::after { transform: translateX(19px); }
.check-label input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

.field-error { color: var(--red); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.auth { display: grid; place-items: start center; }
.auth .card { width: 100%; max-width: 440px; padding: 36px; box-shadow: var(--shadow); }
.auth h1 { font-size: 2rem; }
.narrow-form { max-width: 640px; }

.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 28px; text-align: center; cursor: pointer;
    color: var(--muted); font-weight: 600; background: var(--surface-2); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone.over { transform: scale(1.01); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-drop input[type=file] { display: none; }
.cover-drop img { max-height: 220px; border-radius: 10px; }

.alert { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); margin-bottom: 18px; border: 1px solid var(--line); animation: slideIn .5s var(--ease); }
.alert-success { background: var(--green-soft); color: var(--green); border-color: transparent; }
.alert-error { background: var(--red-soft); color: var(--red); border-color: transparent; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.credentials pre { font: .95rem var(--mono); background: var(--surface); padding: 14px; border-radius: 10px; margin: 10px 0; white-space: pre-wrap; color: var(--ink); }

/* ---------- Admin ---------- */
.admin-nav {
    position: relative; display: inline-flex; gap: 2px; flex-wrap: wrap; padding: 5px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 32px;
}
.admin-nav a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .88rem; transition: background .3s, color .3s; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat {
    display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.stat strong { font: 600 2.6rem/1.05 var(--serif); }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat-hot { background: var(--accent); border-color: transparent; }
.stat-hot strong, .stat-hot span { color: #fff; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search input { min-width: 280px; border-radius: 999px; padding-left: 18px; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr, .table > tr { transition: background .2s; }
.table tr:hover td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.narrow { width: 48px; }
.card > .table td { padding-left: 6px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; align-items: start; }
.enrollment { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 12px; background: var(--surface-2); }
.add-enrollment { border-top: 1px solid var(--line); padding-top: 18px; }
.progress-block { margin-bottom: 18px; }
.progress-block .progress-row strong { min-width: 140px; }
.month-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.month-admin { margin-bottom: 16px; }
.month-admin-head { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; margin-bottom: 8px; }
.month-admin-head::-webkit-details-marker { display: none; }
.month-admin details > .form { margin: 12px 0 20px; }
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.narrow-field { max-width: 180px; }
.inquiry-list { display: flex; flex-direction: column; gap: 14px; }
.inquiry-new { border-left: 4px solid var(--accent); }
.inquiry-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.inquiry-message { white-space: pre-wrap; background: var(--surface-2); padding: 14px; border-radius: 12px; }
.inquiry-form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.inquiry-form select { width: auto; }
.inquiry-form input { flex: 1; min-width: 200px; width: auto; }
section.card, .card + form { margin-bottom: 20px; }

.EasyMDEContainer { font-weight: 400; }
.EasyMDEContainer .CodeMirror {
    border-radius: 0 0 12px 12px; border-color: var(--line); font: .95rem/1.65 var(--mono);
    background: var(--surface); color: var(--ink);
}
.EasyMDEContainer .CodeMirror-cursor { border-color: var(--ink); }
.editor-toolbar { border-color: var(--line); border-radius: 12px 12px 0 0; background: var(--surface-2); opacity: 1; }
.editor-toolbar button { color: var(--ink-2) !important; }
.editor-toolbar button:hover, .editor-toolbar button.active { background: var(--surface) !important; border-color: var(--line) !important; }
.editor-preview, .editor-preview-side { background: var(--surface) !important; color: var(--ink); }
.editor-statusbar { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin: 12px 0 0; max-width: 360px; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.footer-links a {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
    font-size: .88rem; font-weight: 600; transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.footer-links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom { margin-top: 36px; font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner, .admin-grid, .lesson-layout { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 16px auto 0; width: 100%; }
    .fc1 { left: -8px; }
    .fc2 { right: -4px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile-skills { grid-column: span 2; }
    .skill-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr 1fr; }
    .lesson-nav { position: static; max-height: none; order: 2; }
    .nav-toggle { display: grid; }
    .nav {
        position: absolute; top: 84px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
        opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease);
    }
    .nav a { padding: 12px 16px; font-size: 1rem; }
    .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 620px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .hero { padding: 32px 0 64px; }
    .header-pill { padding: 0 8px 0 14px; height: 58px; }
    .logo > span:last-child { display: none; }
    .seg { grid-template-columns: repeat(3, 32px); }
    .seg-indicator { width: 32px; }
    .header-actions .btn { padding: 7px 12px; }
    .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tile { padding: 20px; }
    .tile-bio, .tile-skills { grid-column: span 2; }
    .tile-stat strong { font-size: 2.2rem; }
    .skill-grid { grid-template-columns: 1fr; gap: 18px; }
    .steps { grid-template-columns: 1fr; }
    .timeline::before { left: 6px; }
    .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
    .timeline li::before { left: 0; top: 26px; }
    .timeline-period { text-align: left; }
    .cta-panel { padding: 40px 26px; border-radius: 24px; }
    .lesson-list { padding-left: 22px; }
    .search input { min-width: 0; }
    .form-row-wide { grid-template-columns: 1fr; }
    .float-card { display: none; }
    .code-window { transform: none; }
    .course-card-head, .course-card .month-list, .course-card-foot { padding-left: 22px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
}

/* ---------- Certifications ---------- */
.certs-title { margin: 56px 0 18px; font: 600 1.4rem var(--serif); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert {
    display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert strong { display: block; font-size: .9rem; line-height: 1.3; }
.cert small { color: var(--muted); font-size: .82rem; }
.cert-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 .95rem var(--mono); }
.cert-logo.oracle { background: var(--accent); }
.cert-logo.gcp { background: var(--sage); }
@media (max-width: 980px) { .certs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .certs { grid-template-columns: 1fr; } }

/* ---------- Tutorials ---------- */
.teacher-guide { margin-top: 40px; border: 1.5px dashed var(--sage); border-radius: var(--radius); background: var(--sage-soft); }
.teacher-guide > summary { cursor: pointer; padding: 16px 22px; font-weight: 800; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.teacher-guide > summary::-webkit-details-marker { display: none; }
.teacher-guide > .prose { padding: 0 22px 22px; font-size: .97rem; }
.prose details { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose details > summary { cursor: pointer; padding: 10px 16px; font-weight: 700; color: var(--ink); }
.prose details > :not(summary) { padding: 0 16px; }
.prose details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.prose ol li, .prose ul li { margin: 4px 0; }
.prose hr { margin: 2.2em 0; }
