/* ===== Warm, friendly, polished design layer v2 ===== */
:root {
  --bg: #1b1511; --bg-2: #241c17; --card: #2a211b; --card-2: #31271f;
  --border: rgba(255,226,190,0.10); --border-strong: rgba(255,226,190,0.20);
  --text: #f8eee2; --body: #d9cbb9; --muted: #a8977f;
  --yellow: #f2a65a; --yellow-dim: #b98a55; --accent-2: #e8765a; --accent-soft: rgba(242,166,90,0.12);
  --green: #8fcf9f; --blue: #8db8e6; --red: #ee8f7a; --plum: #c7a0e8;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 30px -12px rgba(0,0,0,0.5);
  --serif: 'Fraunces', 'Newsreader', Georgia, serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --side-w: 288px;
}
html[data-theme="light"] {
  --bg: #fcf6ec; --bg-2: #f5ebdb; --card: #fffaf1; --card-2: #fff;
  --border: rgba(90,55,20,0.12); --border-strong: rgba(90,55,20,0.24);
  --text: #2e2118; --body: #4d3d30; --muted: #85705c;
  --yellow: #c2571a; --yellow-dim: #a8794a; --accent-2: #d9822b; --accent-soft: rgba(194,87,26,0.09);
  --green: #3f8a5c; --blue: #3b6ea8; --red: #b8452e; --plum: #7d4fa8;
  --shadow: 0 1px 0 #fff inset, 0 8px 24px -14px rgba(120,70,20,0.35);
}
::selection { background: var(--yellow); color: #1b1511; }
html { scroll-padding-top: 84px; }
body { font-size: 16px; background: var(--bg); color: var(--text); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 90% -5%, var(--accent-soft), transparent 70%), radial-gradient(ellipse 50% 35% at -5% 30%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 70%); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { letter-spacing: -0.015em; }

/* ---- Topbar ---- */
.nav, html[data-theme="light"] .nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1240px; padding: 10px 24px; gap: 18px; }
.brand { font-weight: 700; font-size: 0.98rem; gap: 11px; flex-shrink: 0; }
.brand em { color: var(--yellow); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, var(--accent-2), var(--yellow)); color: #2a160a; border: none; font-family: var(--serif); font-weight: 700; font-style: normal; font-size: 1.15rem; box-shadow: 0 6px 16px -6px var(--accent-2); }
.nav-links { gap: 6px; margin-left: auto; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-links a.active::after { display: none; }
.nav-cta { background: var(--text) !important; color: var(--bg) !important; border: none; padding: 7px 16px !important; border-radius: 999px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--yellow) !important; color: #1b1511 !important; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--body); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.tool-btn:hover { border-color: var(--yellow); color: var(--text); }
.tool-btn kbd { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.tool-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-toggle span { opacity: .5; padding: 0 1px; }
html[data-lang="en"] .lang-toggle [data-l="en"], html[data-lang="hi"] .lang-toggle [data-l="hi"] { opacity: 1; color: var(--yellow); }
.lang-toggle i { opacity: .3; font-style: normal; }
.side-toggle { display: none; }
.progress-bar { height: 3px; background: transparent; }
.progress-fill { background: linear-gradient(90deg, var(--yellow), var(--accent-2)); border-radius: 0 3px 3px 0; }

/* ---- Buttons ---- */
.btn { border-radius: 14px; font-weight: 700; font-size: 0.95rem; padding: 13px 24px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: linear-gradient(145deg, var(--yellow), var(--accent-2)); color: #2a160a; box-shadow: 0 10px 24px -10px var(--accent-2); }
html[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px var(--accent-2); }
.btn-ghost { background: var(--card); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--yellow); transform: none; }

/* ---- Home hero ---- */
.hero, html[data-theme="light"] .hero { background: transparent; border: none; padding: 72px 24px 40px; overflow: visible; }
.hero::before { display: none; }
.hero-inner { max-width: 1192px; text-align: left; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.kicker, html[data-theme="light"] .kicker { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--yellow); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.kicker::before { display: none; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.06; letter-spacing: -0.028em; margin-bottom: 22px; max-width: none; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.hl { color: var(--yellow); font-style: italic; }
.hero-sub { font-size: 1.12rem; line-height: 1.7; color: var(--body); max-width: 520px; margin: 0 0 30px; }
.hero-cta { justify-content: flex-start; margin-bottom: 0; }
.hero-prefs, .hero-stats { display: none; }
.hero-trust { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.hero-trust b { color: var(--text); font-family: var(--serif); font-size: 1.15rem; margin-right: 5px; }
.hero-aside { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.25)); }
.continue-card { display: block; background: var(--card); border: 1px solid var(--border-strong); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.continue-card:hover { transform: translateY(-2px); border-color: var(--yellow); }
.continue-eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.continue-title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 6px 0 4px; line-height: 1.25; }
.continue-meta { color: var(--muted); font-size: 0.85rem; display: flex; gap: 10px; align-items: center; }
.continue-bar { height: 6px; background: var(--bg-2); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.continue-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--accent-2)); border-radius: 99px; width: 0; transition: width .5s; }
.continue-go { float: right; color: var(--yellow); font-weight: 700; font-size: 0.9rem; }

/* ---- Roadmap ---- */
.section { max-width: 1192px; padding: 56px 24px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 10px 0 10px; letter-spacing: -0.022em; }
.section-head p { max-width: 520px; line-height: 1.65; }
.section-head > .kicker { font-size: 0.78rem; padding: 5px 12px; }
.progress-stats { display: none; }
.filter-row { gap: 10px; margin-top: 26px; border: none; flex-wrap: wrap; }
.filter-btn { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--body); display: inline-flex; align-items: center; gap: 8px; }
.filter-btn:hover { border-color: var(--yellow); color: var(--text); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-btn small { font-family: var(--mono); font-size: 0.7rem; opacity: .65; font-weight: 500; }
.path-section { margin-bottom: 44px; --tc: var(--yellow); }
.path-section[data-section="foundations"] { --tc: var(--green); }
.path-section[data-section="blocks"] { --tc: var(--yellow); }
.path-section[data-section="cases"] { --tc: var(--accent-2); }
.path-section[data-section="ai"] { --tc: var(--plum); }
.path-head { flex-direction: row; align-items: center; gap: 16px; padding: 0; border: none; margin-bottom: 18px; }
.path-step { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); border: none; border-radius: 12px; padding: 7px 13px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: .08em; font-weight: 700; margin: 0; flex-shrink: 0; }
.path-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.path-head p { margin-top: 2px; font-size: 0.92rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.topic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; column-gap: 14px; row-gap: 0; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; position: relative; overflow: hidden; }
.topic-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--yellow)); opacity: .55; }
.path-section .topic-card { --tc: inherit; }
.topic-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tc) 60%, var(--border)); background: var(--card); padding-left: 18px; }
.topic-card:hover::before { opacity: 1; }
.topic-card-top { display: contents; }
.topic-num { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--tc, var(--yellow)) 14%, transparent); color: var(--tc, var(--yellow)); font-family: var(--mono); font-weight: 700; font-size: 0.85rem; padding: 0; }
.topic-card h3 { grid-column: 2; grid-row: 1; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin: 2px 0 5px; letter-spacing: -0.01em; }
.topic-summary { grid-column: 2; grid-row: 2; margin: 0 0 12px; font-size: 0.88rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-meta { grid-column: 2; grid-row: 3; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.topic-check { grid-column: 3; grid-row: 1; width: 22px; height: 22px; border-width: 1.5px; border-color: var(--border-strong); font-size: 0.66rem; }
.topic-card.done .topic-check { background: var(--green); border-color: var(--green); color: #14281b; }
.topic-card.done h3 { color: var(--muted); }
.topic-card.done { opacity: .82; }
.chip { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 6px; }
.chip-b { background: color-mix(in srgb, var(--green) 16%, transparent) !important; color: var(--green); }
.chip-i { background: color-mix(in srgb, var(--blue) 16%, transparent) !important; color: var(--blue); }
.chip-a { background: color-mix(in srgb, var(--red) 16%, transparent) !important; color: var(--red); }
.chip-t { background: var(--bg-2) !important; color: var(--muted); }
.chip::before { display: none !important; }
.video-badge, .lab-chip { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--yellow); text-transform: none; letter-spacing: 0; }
.lab-chip::before { content: '\25B6\FE0E'; font-size: .6rem; margin-right: 5px; }

/* ---- Videos/reels/about ---- */
.video-card, .reel-card, .about-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.reel-card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.video-title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.video-link { color: var(--yellow); font-family: inherit; font-weight: 700; font-size: 0.86rem; }
.reel-thumb span { background: rgba(255,255,255,.92); color: #2a160a; border: none; }
.about-card { padding: 32px; max-width: 700px; }
.about-card p { color: var(--body); line-height: 1.75; }

/* ---- Lesson shell ---- */
.side { display: none; }
@media (min-width: 1000px) {
  body.has-side .side { display: flex; flex-direction: column; position: fixed; top: 59px; bottom: 0; left: 0; width: var(--side-w); background: color-mix(in srgb, var(--bg-2) 55%, var(--bg)); border-right: 1px solid var(--border); overflow-y: auto; padding: 18px 14px 40px; z-index: 40; }
  body.has-side main.lesson { margin-left: calc(var(--side-w) + (100vw - var(--side-w) - 720px) / 2); margin-right: 0; }
}
.side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 10px 14px; }
.side-head strong { font-family: var(--serif); font-size: 1.05rem; }
.side-head span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.side-bar { height: 5px; background: var(--card); border-radius: 99px; margin: 0 10px 18px; overflow: hidden; }
.side-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--accent-2)); border-radius: 99px; transition: width .4s; }
.side-sec { margin-bottom: 18px; --tc: var(--yellow); }
.side-sec[data-sec="foundations"] { --tc: var(--green); } .side-sec[data-sec="cases"] { --tc: var(--accent-2); } .side-sec[data-sec="ai"] { --tc: var(--plum); }
.side-sec h4 { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.side-sec h4::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.side-sec h4 em { margin-left: auto; font-style: normal; font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: .88rem; line-height: 1.35; color: var(--body); font-weight: 500; transition: background .15s; }
.side a:hover { background: var(--accent-soft); color: var(--text); }
.side a.cur { background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--text); font-weight: 700; }
.side a i { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .58rem; color: transparent; }
.side a.done i { background: var(--green); border-color: var(--green); color: #14281b; }
.side a.cur i { border-color: var(--tc); }
.side a span { flex: 1; min-width: 0; }
.side a b { font-size: .6rem; font-weight: 800; color: var(--yellow); background: var(--accent-soft); border-radius: 99px; padding: 1px 7px; letter-spacing: .04em; }
.side-backdrop { display: none; }

.lesson { max-width: 720px; padding: 44px 24px 100px; }
.breadcrumb { font-family: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); margin-bottom: 26px; letter-spacing: 0; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--yellow); }
.lesson-head { background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--accent-soft))); border: 1px solid var(--border); border-radius: 26px; padding: 34px 34px 26px; margin-bottom: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lesson-head::after { content: ''; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--yellow) 22%, transparent), transparent 70%); pointer-events: none; }
.lesson-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 12px; position: relative; }
.lesson-sub { font-family: inherit; font-style: normal; font-size: 1.12rem; line-height: 1.6; color: var(--body); margin-bottom: 18px; position: relative; }
.lesson-head .topic-meta { grid-column: auto; position: relative; }
.lesson-prefs { display: none; }
.lesson-body { counter-reset: sec; font-size: 1.04rem; }
.lesson-body p, .lesson-body ul, .lesson-body ol, html[data-theme="light"] .lesson-body p, html[data-theme="light"] .lesson-body ul, html[data-theme="light"] .lesson-body ol { color: var(--body); line-height: 1.8; }
.lesson-body h2 { counter-increment: sec; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.25; color: var(--text); margin: 56px 0 14px; padding: 0; border: none; letter-spacing: -0.02em; }
.lesson-body h2::before { content: counter(sec, decimal-leading-zero); display: inline-flex; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--yellow); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; margin: 0 0 12px; }
.lesson-body h2::before { display: flex; width: max-content; }
.lesson-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--text); margin: 28px 0 8px; }
.lesson-body strong, html[data-theme="light"] .lesson-body strong { color: var(--text); font-weight: 700; }
.lesson-body li::marker { color: var(--yellow); }
.lesson-body code { background: var(--accent-soft); border: none; border-radius: 6px; color: var(--yellow); padding: 2px 7px; font-size: .86em; }
html[data-theme="light"] .lesson-body code { color: #9b4210; }
.lesson-body pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: .84rem; line-height: 1.65; }
.lesson-body pre code { background: none; padding: 0; color: var(--body); }
.lesson-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0; font-size: .92rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.lesson-body th { text-align: left; font-family: inherit; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--bg-2); padding: 11px 14px; border: none; }
.lesson-body td { border-top: 1px solid var(--border); padding: 12px 14px; color: var(--body); vertical-align: top; }
.lesson-body blockquote { background: var(--accent-soft); border: none; border-radius: 14px; padding: 16px 20px; margin: 22px 0; font-family: var(--serif); font-size: 1.12rem; color: var(--text); }
.lesson-body figure svg { border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.lesson-body figcaption { font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.takeaway-box, .interview-box, .traps-box, html[data-theme="light"] .takeaway-box, html[data-theme="light"] .interview-box { border: 1px solid transparent; border-radius: 20px; padding: 22px 26px; margin-top: 34px; border-left: 1px solid transparent; }
.takeaway-box, html[data-theme="light"] .takeaway-box { background: color-mix(in srgb, var(--yellow) 11%, var(--card)); border-color: color-mix(in srgb, var(--yellow) 28%, transparent); }
.interview-box, html[data-theme="light"] .interview-box { background: color-mix(in srgb, var(--blue) 10%, var(--card)); border-color: color-mix(in srgb, var(--blue) 26%, transparent); }
.traps-box { background: color-mix(in srgb, var(--red) 10%, var(--card)); border-color: color-mix(in srgb, var(--red) 26%, transparent); }
.takeaway-box h3, .interview-box h3, .traps-box h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-transform: none; letter-spacing: -0.01em; margin: 0 0 12px; }
.takeaway-box h3 { color: var(--yellow); } .interview-box h3 { color: var(--blue); } .traps-box h3 { color: var(--red); }
.takeaway-box li, .traps-box li, html[data-theme="light"] .takeaway-box li, html[data-theme="light"] .traps-box li, .interview-box p, html[data-theme="light"] .interview-box p { color: var(--body); line-height: 1.7; }
.lesson-actions { margin: 44px 0 10px; text-align: center; padding: 28px; background: var(--card); border: 1px dashed var(--border-strong); border-radius: 22px; }
.lesson-actions::before { content: 'Finished this one? Tick it off and keep your streak going.'; display: block; color: var(--muted); font-size: .92rem; margin-bottom: 14px; font-weight: 600; }
.complete-btn.completed { background: color-mix(in srgb, var(--green) 20%, var(--card)); color: var(--green); border: 1px solid var(--green); box-shadow: none; }
.prev-next { gap: 14px; margin-top: 34px; border: none; }
.pn-link { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.pn-link:hover { border-color: var(--yellow); color: var(--text); transform: translateY(-2px); }
.pn-link span { font-family: inherit; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--yellow); }

/* TOC */
.toc { position: fixed; top: 110px; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2 + 380px); width: 200px; max-height: calc(100vh - 140px); overflow: auto; display: none; }
@media (min-width: 1420px) { .toc { display: block; } }
.toc-title { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: inherit; }
.toc a { border-left: 2px solid var(--border); padding: 6px 0 6px 14px; font-size: .82rem; font-weight: 500; }
.toc a.on { border-left-color: var(--yellow); color: var(--text); font-weight: 700; }
.read-progress { background: linear-gradient(90deg, var(--yellow), var(--accent-2)); height: 3px; }

/* ---- Labs ---- */
.lab, html .lab { background: linear-gradient(170deg, var(--card-2), var(--card)); border: 1px solid var(--border-strong); border-radius: 24px; padding: 26px 28px; margin: 38px -14px; box-shadow: var(--shadow); }
.lab::before { display: none; }
.lab-badge { background: linear-gradient(145deg, var(--yellow), var(--accent-2)); color: #2a160a; border: none; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: .68rem; letter-spacing: .08em; padding: 4px 12px; }
html[data-theme="light"] .lab-badge { color: #fff; }
.lab-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.lab-sub { line-height: 1.6; }
.lab-controls .btn { border-radius: 12px; padding: 8px 16px; font-size: .84rem; }
.lab-seg { border-radius: 14px; background: var(--bg-2); border-color: var(--border); }
.lab-stat strong { font-weight: 600; color: var(--text); font-size: 1.2rem; }
.lab-stat span { font-family: inherit; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lab-log { border-top: 1px dashed var(--border-strong); }
.lb-node-box, .lb-server, .cache-slot, .bucket-tokens { border-radius: 14px; background: var(--bg-2); }
.lb-lb-box { border-color: var(--yellow); background: var(--accent-soft); }
.lb-kill { border-radius: 10px; }
.seg { border-radius: 999px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); margin-top: 20px; background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.footer-inner { max-width: 1192px; }
.footer-warm { text-align: center; font-family: var(--serif); font-size: 1.15rem; color: var(--body); padding: 40px 20px 0; font-style: italic; }
.footer-note { font-family: inherit; font-size: .78rem; }

/* ---- Search palette ---- */
.pal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(15,10,6,.55); backdrop-filter: blur(6px); }
.pal.open { display: flex; }
.pal-box { width: min(620px, calc(100vw - 28px)); background: var(--card-2); border: 1px solid var(--border-strong); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow: hidden; }
.pal-box input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 18px 22px; font: inherit; font-size: 1.05rem; color: var(--text); outline: none; }
.pal-list { max-height: 50vh; overflow: auto; padding: 8px; }
.pal-list a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; color: var(--body); }
.pal-list a.sel, .pal-list a:hover { background: var(--accent-soft); color: var(--text); }
.pal-list a strong { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--text); display: block; }
.pal-list a small { color: var(--muted); font-size: .8rem; display: block; margin-top: 1px; }
.pal-list a em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--yellow); background: var(--accent-soft); border-radius: 8px; padding: 3px 7px; }
.pal-empty { padding: 22px; color: var(--muted); text-align: center; }

@media (max-width: 999px) {
  .side-toggle { display: inline-flex; }
  body.has-side .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--bg); border-right: 1px solid var(--border-strong); overflow-y: auto; padding: 70px 14px 40px; z-index: 120; transform: translateX(-102%); transition: transform .25s; }
  body.has-side.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,10,6,.5); z-index: 110; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { background: var(--bg); border-radius: 0 0 18px 18px; box-shadow: 0 20px 40px -20px #000; margin: 0; }
  .nav-links a { width: 100%; }
  .nav-tools .tool-btn.search-btn kbd, .nav-tools .tool-btn.search-btn .lbl { display: none; }
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .brand span:last-child { display: none; }
  .hero { padding: 44px 18px 24px; }
  .section { padding: 40px 18px; }
  .topic-grid { grid-template-columns: 1fr; }
  .lesson-head { padding: 24px 22px 20px; border-radius: 22px; }
  .lab { margin-left: 0; margin-right: 0; padding: 20px 18px; }
  .prev-next { flex-direction: column; }
  .nav-toggle { display: block; }
}
@media (max-width: 1100px) and (min-width: 721px) { .topic-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.toc a { display: block; }
.hero-inner { max-width: 1144px; }
.toc { width: 176px; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2 + 372px); }
@media (min-width: 1420px) and (max-width: 1499px) { .toc { display: none; } }
@media (min-width: 1500px) { .toc { display: block; } }

/* ---- Company interview questions ---- */
.iq-head { padding-bottom: 8px; }
.iq-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 18em; margin: 12px 0 16px; }
.iq-lead { color: var(--body); font-size: 1.1rem; line-height: 1.7; max-width: 640px; }
.iq-note { margin-top: 24px; max-width: 760px; background: color-mix(in srgb, var(--yellow) 11%, var(--card)); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); border-radius: 18px; padding: 16px 20px; color: var(--body); line-height: 1.65; font-size: .95rem; }
.iq-note strong { color: var(--yellow); }
.iq-sec { padding-top: 28px; padding-bottom: 28px; }
.iq-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.iq-top { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.iq-top:hover { transform: translateY(-3px); border-color: var(--yellow); }
.iq-top strong { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.iq-top span { color: var(--muted); font-size: .84rem; }
.iq-top em { font-style: normal; font-weight: 700; font-size: .82rem; color: var(--yellow); margin-top: 4px; }
.iq-cos { display: flex; flex-direction: column; gap: 28px; margin-top: 26px; }
.iq-co { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 26px 28px 8px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.iq-cohead { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.iq-logo { flex: 0 0 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, var(--yellow), var(--accent-2)); color: #2a160a; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
html[data-theme="light"] .iq-logo { color: #fff; }
.iq-cohead h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin-bottom: 6px; }
.iq-cohead p { color: var(--body); font-size: .95rem; line-height: 1.65; max-width: 680px; }
.iq-snsrc { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.iq-count { margin-left: auto; flex-shrink: 0; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.iq-list { list-style: none; margin: 0; padding: 0; }
.iq-q { border-top: 1px solid var(--border); padding: 16px 0; }
.iq-qh { display: flex; gap: 14px; align-items: flex-start; }
.iq-n { flex: 0 0 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--yellow); font-family: var(--mono); font-weight: 700; font-size: .78rem; display: flex; align-items: center; justify-content: center; }
.iq-qh h4 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin-bottom: 3px; }
.iq-qh p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.iq-tag { margin-left: auto; flex-shrink: 0; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); border-radius: 999px; padding: 3px 10px; }
.iq-meta { margin: 10px 0 0 50px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.iq-study { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; width: 100%; }
.iq-lbl { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.iq-src, .iq-les { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 3px 11px; transition: background .15s, color .15s; }
.iq-src { color: var(--body); border: 1px solid var(--border-strong); }
.iq-src::after { content: ' \2197'; opacity: .6; }
.iq-src:hover { border-color: var(--yellow); color: var(--yellow); }
.iq-les { color: var(--yellow); background: var(--accent-soft); }
.iq-les:hover { background: var(--yellow); color: #1b1511; }
.promo-band { max-width: 1144px; margin: 0 auto; padding: 0 24px; }
.promo { display: flex; gap: 28px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 16%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); border-radius: 26px; padding: 28px 32px; box-shadow: var(--shadow); }
.promo h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 6px; }
.promo p { color: var(--body); max-width: 560px; line-height: 1.6; }
.promo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.promo-chips span { font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); color: var(--body); }
@media (max-width: 720px) { .iq-co { padding: 20px 18px 4px; border-radius: 22px; } .iq-cohead { flex-wrap: wrap; } .iq-count { margin-left: 0; } .iq-qh { flex-wrap: wrap; } .iq-tag { margin-left: 50px; } .iq-meta { margin-left: 0; } .promo { flex-direction: column; align-items: flex-start; padding: 24px 22px; } }
.nav-links a { white-space: nowrap; }
.iq-top em span { color: inherit; }

/* v3: company questions polish */
.iq-src { color: var(--body); border: 1px solid var(--border); background: var(--bg-2); cursor: default; }
.iq-src::after { content: none; }
.iq-src:hover { border-color: var(--border); color: var(--body); }
.iq-tag { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 84px; padding: 6px 12px; border-radius: 14px; font-size: .78rem; letter-spacing: .06em; }
.iq-tag small { font-size: .62rem; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .85; margin-top: 1px; }
.iq-tag.iq-hld { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.iq-tag.iq-lld { color: var(--yellow); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent); }
.iq-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 22px; }
.iq-lg { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 18px; }
.iq-lg p { color: var(--body); font-size: .88rem; line-height: 1.55; margin: 0; }
.iq-typerow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 6px; }
.iq-co[data-empty="1"] { display: none !important; }
.iq-q { border-radius: 14px; padding: 16px 12px; transition: background .15s; }
.iq-q:hover { background: color-mix(in srgb, var(--yellow) 5%, transparent); }
@media (max-width: 720px) { .iq-qh { flex-wrap: wrap; } .iq-tag { margin-left: 50px; flex-direction: row; gap: 6px; min-width: 0; padding: 4px 10px; } }

/* v4: decluttered question rows */
.iq-q { padding: 14px 6px; }
.iq-qh { gap: 12px; align-items: baseline; }
.iq-n { flex: 0 0 28px; height: 28px; border-radius: 9px; font-size: .72rem; }
.iq-qh h4 { font-size: 1.05rem; margin-bottom: 2px; }
.iq-qh h4 .iq-tag { display: inline-block; vertical-align: middle; min-width: 0; margin: 0 0 0 6px; padding: 1px 8px; border-radius: 999px; font-family: var(--sans, inherit); font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1.6; position: relative; top: -1px; }
.iq-qh p { font-size: .88rem; }
.iq-meta { margin: 6px 0 0 40px; gap: 2px 0; display: block; font-size: .76rem; color: var(--muted); line-height: 1.7; }
.iq-meta .iq-lbl, .iq-study .iq-lbl { display: inline; font-size: .66rem; letter-spacing: .05em; font-weight: 700; margin-right: 6px; opacity: .8; }
.iq-meta .iq-src { display: inline; border: none; background: none; padding: 0; font-size: .76rem; font-weight: 500; color: var(--muted); }
.iq-meta .iq-src:not(:last-child)::after { content: ' \00b7 '; margin: 0 4px; opacity: .6; }
.iq-study { display: block; width: auto; margin: 0; }
.iq-les { display: inline; background: none; padding: 0; font-size: .76rem; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--yellow) 40%, transparent); text-underline-offset: 3px; }
.iq-les:hover { background: none; color: var(--yellow); }
.iq-study .iq-les:not(:last-child)::after { content: ' \00b7 '; margin: 0 4px; color: var(--muted); text-decoration: none; display: inline-block; }
.iq-snsrc .iq-src { display: inline; border: none; background: none; padding: 0; font-size: .76rem; color: var(--muted); }
.iq-snsrc .iq-src:not(:last-child)::after { content: ' \00b7 '; margin: 0 4px; opacity: .6; }
@media (max-width: 720px) {
  .iq-co { padding: 18px 14px 2px; }
  .iq-n { display: none; }
  .iq-meta { margin-left: 0; }
  .iq-cohead { gap: 12px; }
  .iq-logo { flex-basis: 42px; height: 42px; border-radius: 13px; }
  .iq-cohead h2 { font-size: 1.4rem; }
  .iq-cohead p { font-size: .88rem; }
  .iq-count { order: 3; }
  .iq-qh h4 { font-size: 1rem; }
}
.iq-meta .iq-src:not(:last-child)::after, .iq-snsrc .iq-src:not(:last-child)::after { content: none; }
.iq-src + .iq-src::before { content: '\00b7'; margin: 0 6px; opacity: .6; }
.iq-les + .iq-les::before { content: '\00b7'; margin: 0 6px; color: var(--muted); display: inline-block; text-decoration: none; }
.iq-study .iq-les:not(:last-child)::after { content: none; }
.iq-lg .iq-tag { margin: 0; flex: 0 0 auto; }
@media (max-width: 720px) { .iq-lg { gap: 12px; padding: 12px 14px; } .iq-lg p { font-size: .82rem; } }

/* v5: company + category color identity */
.iq-co { --co: var(--yellow); border-top: 3px solid var(--co); background: linear-gradient(180deg, color-mix(in srgb, var(--co) 9%, var(--card)), var(--card) 160px); }
.iq-co[data-co="google"] { --co: #4285F4; } .iq-co[data-co="amazon"] { --co: #FF9900; } .iq-co[data-co="microsoft"] { --co: #7FBA00; }
.iq-co[data-co="uber"] { --co: #1DB5A4; } .iq-co[data-co="tesla"] { --co: #8FA3BF; } .iq-co[data-co="meta"] { --co: #7C5CFF; } .iq-co[data-co="netflix"] { --co: #E50914; }
.iq-logo { background: #fff; border: 2px solid var(--co); box-shadow: 0 6px 16px color-mix(in srgb, var(--co) 28%, transparent); display: flex; align-items: center; justify-content: center; padding: 8px; }
.iq-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.iq-co .iq-count { color: var(--co); background: color-mix(in srgb, var(--co) 14%, transparent); border-color: color-mix(in srgb, var(--co) 30%, transparent); }
.iq-co .iq-n { background: color-mix(in srgb, var(--co) 16%, transparent); color: var(--co); }
.iq-co .iq-les { color: var(--co); text-decoration-color: color-mix(in srgb, var(--co) 45%, transparent); }
.iq-co .iq-les:hover { color: var(--text); }
.iq-co .iq-q:hover { background: color-mix(in srgb, var(--co) 7%, transparent); }
#iqFilter .filter-btn { display: inline-flex; align-items: center; gap: 8px; }
.pill-logo { width: 16px; height: 16px; background: #fff; border-radius: 5px; padding: 2px; object-fit: contain; }
#iqFilter .filter-btn[data-co="google"] { --co: #4285F4; } #iqFilter .filter-btn[data-co="amazon"] { --co: #FF9900; } #iqFilter .filter-btn[data-co="microsoft"] { --co: #7FBA00; }
#iqFilter .filter-btn[data-co="uber"] { --co: #1DB5A4; } #iqFilter .filter-btn[data-co="tesla"] { --co: #8FA3BF; } #iqFilter .filter-btn[data-co="meta"] { --co: #7C5CFF; } #iqFilter .filter-btn[data-co="netflix"] { --co: #E50914; }
#iqFilter .filter-btn[data-co]:not([data-co="all"]) { border-color: color-mix(in srgb, var(--co) 40%, var(--border)); }
#iqFilter .filter-btn[data-co]:not([data-co="all"]).active { background: var(--co); border-color: var(--co); color: #fff; }
html[data-theme="light"] .iq-logo { box-shadow: 0 4px 12px color-mix(in srgb, var(--co) 25%, transparent); }

/* categories */
:root { --c-found: #4FBF8B; --c-blocks: #F0A33C; --c-cases: #4C9BEA; --c-ai: #B27CF0; }
html[data-theme="light"] { --c-found: #1F9D69; --c-blocks: #D9820F; --c-cases: #2678CF; --c-ai: #8A4FD3; }
.path-section[data-section="foundations"], .side-sec[data-sec="foundations"], body[data-sec="foundations"] { --tc: var(--c-found); }
.path-section[data-section="blocks"], .side-sec[data-sec="blocks"], body[data-sec="blocks"] { --tc: var(--c-blocks); }
.path-section[data-section="cases"], .side-sec[data-sec="cases"], body[data-sec="cases"] { --tc: var(--c-cases); }
.path-section[data-section="ai"], .side-sec[data-sec="ai"], body[data-sec="ai"] { --tc: var(--c-ai); }
.path-step { background: var(--tc); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--tc) 30%, transparent); }
.path-head h2 { color: var(--text); }
.path-head h2::after { content: ''; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--tc); margin-top: 8px; }
.topic-card { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 8%, var(--card)), var(--card) 70%); }
.topic-card::before { opacity: 1; }
.topic-num { background: var(--tc); color: #fff; }
html[data-theme="light"] .topic-num { color: #fff; }
.filter-btn[data-filter="foundations"] { --fc: var(--c-found); } .filter-btn[data-filter="blocks"] { --fc: var(--c-blocks); }
.filter-btn[data-filter="cases"] { --fc: var(--c-cases); } .filter-btn[data-filter="ai"] { --fc: var(--c-ai); }
.filter-btn[data-filter]:not([data-filter="all"])::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--fc); margin-right: 8px; display: inline-block; }
.filter-btn[data-filter]:not([data-filter="all"]).active { background: var(--fc); border-color: var(--fc); color: #fff; }
.filter-btn[data-filter]:not([data-filter="all"]).active small { opacity: .85; }
.side-sec h4 { color: var(--tc); }
.side-sec h4::before { width: 10px; height: 10px; }
.side a.cur { background: color-mix(in srgb, var(--tc) 20%, transparent); box-shadow: inset 3px 0 0 var(--tc); }
body[data-sec] .read-progress { background: var(--tc); }
body[data-sec] .toc a.on { border-left-color: var(--tc); }
body[data-sec] .breadcrumb a:nth-of-type(2) { color: var(--tc); font-weight: 700; }
body[data-sec] .lesson-head { border-left: 4px solid var(--tc); padding-left: 18px; }
html[data-theme="light"] .iq-co[data-co="amazon"] { --co: #C77700; } html[data-theme="light"] .iq-co[data-co="microsoft"] { --co: #5E8A00; }
html[data-theme="light"] .iq-co[data-co="uber"] { --co: #0E8F82; } html[data-theme="light"] .iq-co[data-co="tesla"] { --co: #5F7694; }
html[data-theme="light"] #iqFilter .filter-btn[data-co="amazon"] { --co: #C77700; } html[data-theme="light"] #iqFilter .filter-btn[data-co="microsoft"] { --co: #5E8A00; }
html[data-theme="light"] #iqFilter .filter-btn[data-co="uber"] { --co: #0E8F82; } html[data-theme="light"] #iqFilter .filter-btn[data-co="tesla"] { --co: #5F7694; }

/* v6: tidy mobile menu */
@media (hover: none) { .nav-links a:not(.active):hover { background: transparent; color: var(--muted); } }
@media (max-width: 720px) {
  .nav-links { padding: 10px 12px 14px; gap: 2px; align-items: stretch; border: 1px solid var(--border); border-top: none; }
  .nav-links a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 14px; font-size: .98rem; position: relative; }
  .nav-links a.active { background: var(--accent-soft); color: var(--text); font-weight: 700; }
  .nav-links a.active::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--yellow); }
  .nav-links a.nav-cta { justify-content: center; margin-top: 10px; background: var(--text); color: var(--bg); font-weight: 700; }
  .nav-links a:not(.nav-cta) + a.nav-cta { border-top: none; }
  .nav-tools { gap: 6px; margin-left: auto; margin-right: 6px; }
}

/* v7: personal brand */
.byline { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 22px; padding: 7px 18px 7px 8px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.byline:hover { border-color: var(--yellow); }
.by-av, .id-av, .as-av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, var(--yellow), var(--accent-2)); color: #1b1511; font-family: var(--serif); font-weight: 700; }
html[data-theme="light"] .by-av, html[data-theme="light"] .id-av, html[data-theme="light"] .as-av { color: #fff; }
.by-av { width: 38px; height: 38px; font-size: .9rem; }
.by-txt { display: flex; flex-direction: column; line-height: 1.25; }
.by-txt strong { font-size: .95rem; color: var(--text); }
.by-txt small { font-size: .76rem; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.id-card { background: linear-gradient(160deg, color-mix(in srgb, var(--yellow) 10%, var(--card)), var(--card)); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.id-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.id-av { width: 64px; height: 64px; font-size: 1.4rem; box-shadow: 0 8px 20px color-mix(in srgb, var(--yellow) 30%, transparent); }
.id-top h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 2px; }
.id-top p { color: var(--muted); font-size: .86rem; margin: 0; }
.id-list { list-style: none; margin: 0; padding: 0; }
.id-list li { display: flex; flex-direction: column; gap: 1px; padding: 11px 0 11px 14px; border-top: 1px solid var(--border); border-left: 3px solid var(--yellow); margin-top: -1px; }
.id-list li:first-child { border-top: none; }
.id-list b { font-size: .92rem; color: var(--text); }
.id-list span { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.id-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; justify-content: start; margin-bottom: 22px; }
.id-stats div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 18px; }
.id-stats strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--yellow); line-height: 1.2; }
.id-stats span { font-size: .76rem; color: var(--muted); }
.about-copy p { color: var(--body); line-height: 1.8; font-size: 1.02rem; margin: 0 0 16px; max-width: 680px; }
.author-strip { max-width: 760px; margin: 40px auto 0; padding: 0 20px; }
.author-strip a { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px 20px; text-decoration: none; box-shadow: var(--shadow); }
.author-strip a:hover { border-color: var(--yellow); }
.as-av { width: 50px; height: 50px; font-size: 1.05rem; }
.author-strip strong { display: block; color: var(--text); font-size: 1rem; }
.author-strip small { color: var(--muted); font-size: .8rem; line-height: 1.45; display: block; }
.footer-by { color: var(--body); font-size: .86rem; margin-top: 10px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .id-stats { grid-template-columns: 1fr 1fr; } .id-stats div:last-child { grid-column: 1 / -1; } }
.footer-by { text-align: center; padding: 0 20px; }
.id-stats strong { font-size: 1.2rem; }
.id-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.id-stats div { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: .9rem; color: var(--body); line-height: 1.4; }
.id-stats strong { display: inline; font-family: var(--serif); font-size: 1rem; color: var(--yellow); }
@media (max-width: 860px) { .id-stats div:last-child { grid-column: auto; } .id-stats div { border-radius: 16px; } }
.by-av, .id-av, .as-av { position: relative; overflow: hidden; }
.by-av img, .id-av img, .as-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.id-av { width: 88px; height: 88px; border-radius: 50%; }
.li-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--card); font-size: .86rem; font-weight: 600; text-decoration: none; }
.li-btn:hover { border-color: #0a66c2; color: #0a66c2; }
.author-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.author-strip > a:first-child { flex: 1 1 320px; }
.author-strip .li-btn { margin-top: 0; }
.footer-by .li-foot { color: var(--yellow); text-decoration: none; }
.footer-by .li-foot:hover { text-decoration: underline; }
.footer .brand span:last-child { display: inline !important; }
.footer-by { padding: 4px 20px 28px; }
.footer { padding-bottom: 8px; }
.author-strip small { font-size: .78rem; }
.reel-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.reel-row:has(.reel-card:nth-child(n+4):not([hidden])), .reel-row { }
.reel-card[hidden] { display: none; }
.insta-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
@media (min-width: 1000px) and (max-width: 1339px) {
  .nav-links a { padding: 7px 10px; }
  .nav-links { gap: 2px; }
  .nav-inner { gap: 12px; }
  .nav-tools .tool-btn.search-btn kbd, .nav-tools .tool-btn.search-btn .lbl { display: none; }
}
@media (min-width: 1000px) and (max-width: 1279px) { .nav .brand span:last-child { display: none; } }
@media (min-width: 1000px) and (max-width: 1099px) { .nav-links a { padding: 7px 7px; } .nav-glabel { display: none; } .nav-group { padding-left: 4px; } .nav-inner { gap: 8px; padding: 10px 12px; } }
@media (min-width: 1340px) { .nav-inner { max-width: 1500px; } }

/* System Design group: always visible */
.nav-group { display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border: 1px solid var(--border); border-radius: 999px; margin-right: 6px; }
.nav-glabel { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .85; white-space: nowrap; margin-right: 4px; }
.nav-sub { display: flex; align-items: center; gap: 2px; }
.nav-group.has-active { border-color: color-mix(in srgb, var(--yellow) 40%, var(--border)); }
@media (max-width: 720px) {
  .nav-group { flex-direction: column; align-items: stretch; border: 0; border-radius: 0; padding: 6px 0 4px; margin: 0 0 4px; width: 100%; }
  .nav-glabel { padding: 0 16px 4px; margin: 0; }
  .nav-sub { flex-direction: column; align-items: stretch; margin-left: 14px; padding-left: 0; border-left: 2px solid var(--border); }
  .nav-sub a { min-height: 44px; }
  .nav-sub a.active::before { left: -2px !important; }
}
/* same font size for every menu entry */
.nav-glabel { font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 1; padding: 0 6px 0 2px; }
@media (max-width: 720px) { .nav-glabel { font-size: .98rem; padding: 0 16px 4px; min-height: 46px; display: flex; align-items: center; } .nav-sub a { font-size: .98rem; } }
@media (min-width: 1000px) and (max-width: 1499px) { .nav-glabel { display: none; } .nav-group { padding-left: 4px; } }
.hero h1 { text-wrap: balance; }
.hero-promise { display: block; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.tool-btn.side-toggle .lbl { white-space: nowrap; }
@media (max-width: 720px) { .nav-tools { gap: 6px; } .tool-btn.side-toggle { padding-left: 12px; padding-right: 14px; gap: 6px; } }
@media (max-width: 720px) { .nav-inner:has(.side-toggle) .brand { display: none; } .nav-inner:has(.side-toggle) { gap: 6px; } .nav-inner:has(.side-toggle) .nav-tools { margin-left: 0; } .tool-btn.side-toggle { padding-left: 10px; padding-right: 12px; } }
@media (max-width: 380px) { .nav-inner:has(.side-toggle) .nav-tools { gap: 4px; } .nav-inner:has(.side-toggle) .nav-tools .tool-btn:not(.side-toggle) { padding-left: 9px; padding-right: 9px; } .nav-inner:has(.side-toggle) .lang-toggle button { padding-left: 8px; padding-right: 8px; } .nav-inner:has(.side-toggle) .nav-toggle { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 380px) { .nav-inner:has(.side-toggle) { padding-left: 10px; padding-right: 10px; gap: 4px; } .cache-slot { max-width: 100%; box-sizing: border-box; } html, body { overflow-x: hidden; } }

.cl-hi { display: none; } html[data-lang="hi"] .cl-en { display: none; } html[data-lang="hi"] .cl-hi { display: inline; }
@media (min-width: 1000px) and (max-width: 1499px) { .nav-sub a::before { content: "SD "; font-weight: 700; color: var(--muted); } }
