
@font-face { font-family: "Noto Sans Bengali"; src: url("../fonts/NotoSansBengali-text.woff2") format("woff2"), url("../fonts/NotoSansBengali.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Serif Bengali"; src: url("../fonts/NotoSerifBengali-600.woff2") format("woff2"), url("../fonts/NotoSerifBengali.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Scheherazade New"; src: url("../fonts/ScheherazadeNew-Regular.woff2") format("woff2"), url("../fonts/ScheherazadeNew-Regular.ttf") format("truetype"); font-display: swap; unicode-range: U+FDFA, U+060C, U+061B, U+061F; }
:root {
color-scheme: light;
--night: #231A14;  --night-2: #2C2119;  --night-3: #36291F;
--on-night: #F4EDE3;
--on-night-muted: #CBBFAF;
--night-line: rgb(246 185 77 / 0.22);
--saffron: #F6B94D;
--saffron-bright: #FFD27F;
--saffron-deep: #E09A2A;
--saffron-gradient: linear-gradient(180deg, #F8C366 0%, #F2A93B 100%);
--ink-on-saffron: #211915;
--bg: #FBF8F2; --surface: #FFFFFF; --surface-2: #F4EDE1;
--text: #211915;
--muted: #5C5048;
--accent: #8F4300;
--accent-2: #8F4300;
--brand-1: #E59B28; --brand-2: #9A4D08;
--primary: #F6B94D;
--primary-edge: #C98A2B;
--line: #E8DFD0;
--line-strong: #8C7D70;
--sahih: #2E6B3F; --hasan: #8F4300; --quran: #7A4A00;
--on-accent: #FFFFFF;
--shadow-ink: 33 25 21;
--photo-filter: none;
--font-latin-display: "Source Serif 4", Georgia, serif, "Scheherazade New";
--font-latin: "Manrope", system-ui, sans-serif, "Scheherazade New";
--font-bn-display: "Noto Serif Bengali", serif, "Scheherazade New";
--font-bn: "Noto Sans Bengali", sans-serif, "Scheherazade New";
--font-quran: "UthmanicHafs", "Scheherazade New", serif;
--font-arabic: "UthmanicHafs", "Scheherazade New", serif;
--font-saw: "Scheherazade New", serif;
--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
--gutter: clamp(16px, 4vw, 40px);
--page: 1200px;
--r-1: 8px; --r-2: 12px; --r-3: 16px; --r-pill: 999px;
--shadow-1: 0 1px 2px rgb(var(--shadow-ink) / .06), 0 8px 24px -12px rgb(var(--shadow-ink) / .18);
--shadow-2: 0 2px 4px rgb(var(--shadow-ink) / .06), 0 24px 48px -20px rgb(var(--shadow-ink) / .32);
--t-press: 120ms; --t-state: 220ms; --t-reveal: 700ms; --t-slow: 1400ms;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="day"]) {
color-scheme: dark;
--bg: #15100D; --surface: #1F1813; --surface-2: #2A211A;
--text: #F4EDE3; --muted: #CBBFAF; --accent: #F6B94D; --accent-2: #F6B94D; --brand-1: #FFD27F; --brand-2: #DE9224;
--line: #3A2E25; --line-strong: #8E7F70; --sahih: #8FCB9B; --hasan: #F0A868; --quran: #F6B94D; --on-accent: #15100D;
--shadow-ink: 0 0 0; --photo-filter: brightness(.92);
}
}
:root[data-theme="night"] {
color-scheme: dark;
--bg: #15100D; --surface: #1F1813; --surface-2: #2A211A;
--text: #F4EDE3; --muted: #CBBFAF; --accent: #F6B94D; --accent-2: #F6B94D; --brand-1: #FFD27F; --brand-2: #DE9224;
--line: #3A2E25; --line-strong: #8E7F70; --sahih: #8FCB9B; --hasan: #F0A868; --quran: #F6B94D; --on-accent: #15100D;
--shadow-ink: 0 0 0; --photo-filter: brightness(.92);
}
.on-night {
--bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3);
--text: var(--on-night); --muted: var(--on-night-muted); --accent: var(--saffron); --accent-2: var(--saffron); --brand-1: #FFD27F; --brand-2: #DE9224;
--line: var(--night-line); --line-strong: #8E7F70; --sahih: #8FCB9B; --hasan: #F0A868; --quran: var(--saffron); --on-accent: var(--ink-on-saffron);
color-scheme: dark;
}
:root:lang(en), [lang="en"] {
--btn-fs: 16px; --btn2-fs: 14px;
--fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-base: 16px; --fs-read: 18.5px; --fs-lg: 18px; --fs-xl: 21px;
--fs-2xl: clamp(24px, 2.2vw, 28px); --fs-3xl: clamp(28px, 3.2vw, 40px); --fs-hero: clamp(34px, 4.6vw, 60px);
--lh-read: 1.65; --lh-ui: 1.5; --lh-display: 1.15;
--font-display: var(--font-latin-display); --font-ui: var(--font-latin); --font-read: var(--font-latin);
--display-weight: 600;
}
:root:lang(bn), [lang="bn"] {
--btn-fs: 16px; --btn2-fs: 15px;
--fs-xs: 15px; --fs-sm: 15px; --fs-md: 15.5px; --fs-base: 16.5px; --fs-read: 18.5px; --fs-lg: 19px; --fs-xl: 22px;
--fs-2xl: clamp(24px, 2.2vw, 28px); --fs-3xl: clamp(28px, 3.1vw, 38px); --fs-hero: clamp(32px, 4.2vw, 54px);
--lh-read: 1.8; --lh-ui: 1.6; --lh-display: 1.35;
--font-display: var(--font-bn-display); --font-ui: var(--font-bn); --font-read: var(--font-bn);
--display-weight: 600;
}
*, *::before, *::after { box-sizing: border-box; }
.is-theme-switching *, .is-theme-switching *::before, .is-theme-switching *::after { transition: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--bg); --header-h: 64px; }
@media (max-width: 640px) { html { --header-h: 56px; scroll-padding-top: 72px; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: var(--fs-base); line-height: var(--lh-ui);
font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; filter: var(--photo-filter); }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
ol, ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: var(--lh-display); text-wrap: balance; }
[hidden] { display: none !important; }
.on-night { background: var(--bg); color: var(--text); }
[lang="ar"] { font-family: var(--font-arabic); letter-spacing: 0 !important; font-style: normal; }
.saw { font-family: var(--font-saw); font-weight: 400; font-size: .78em; line-height: 1; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--primary); color: var(--ink-on-saffron); padding: 12px 18px; border-radius: var(--r-1); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.kicker:lang(en) { text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); }
.title-xl { font-size: var(--fs-hero); letter-spacing: -0.01em; }
.title-l { font-size: var(--fs-3xl); }
.title-m { font-size: var(--fs-2xl); }
:is(.title-xl, .title-l, .title-m):lang(bn) { letter-spacing: 0; }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); max-width: 52ch; }
.lede:lang(bn) { font-size: var(--fs-lg); line-height: 1.75; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 8px; height: calc(var(--header-h) - 1px); }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); min-height: 44px; margin-right: auto; }
.brand__mark { width: 22px; height: 26.4px; flex: none; }
.brand__word { font-family: var(--font-latin-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1; display: inline-flex; align-items: baseline; }
.brand__word b { position: relative; font-weight: 700; color: var(--accent); background: linear-gradient(180deg, #B8610E 0%, #7C3600 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__word b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="day"]) .brand__word b { background: linear-gradient(180deg, #FFD685 0%, #EAA02E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
:root[data-theme="night"] .brand__word b { background: linear-gradient(180deg, #FFD685 0%, #EAA02E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > :last-child { margin-inline-end: -10px; }
.nav__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--r-2); color: var(--text); text-decoration: none; font-size: var(--fs-md); font-weight: 600; }
.nav__link:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nav__link[aria-current="page"] { color: var(--accent); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; text-decoration: none; transition: background-color var(--t-state); }
.icon-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--lang { width: auto; min-width: 44px; padding: 0 11px; gap: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-md); font-family: var(--font-latin); }
.icon-btn--lang::before { content: ""; position: absolute; inset: 4px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-strong); opacity: .55; pointer-events: none; transition: opacity var(--t-state), box-shadow var(--t-state); }
.icon-btn--lang:hover { background: none; }
.icon-btn--lang:hover::before { opacity: 1; background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.icon-btn--lang svg { width: 17px; height: 17px; }
body[data-page="home"] .nav__continue, body[data-page="path"] .nav__continue { display: none; }
@media (max-width: 640px) { .nav .nav__continue { display: none; } }
@media (max-width: 380px) {
.brand__word { font-size: 19px; } .brand { gap: 5px; } .brand__mark { width: 19px; height: 22.8px; }
.nav { gap: 4px; } .nav__link { padding: 0 8px; min-width: 44px; }
.icon-btn--lang { min-width: 44px; padding: 0 8px; gap: 0; }
.icon-btn--lang svg { display: none; }
}
@media (max-width: 359px) { .brand__word { font-size: 18px; } .brand { gap: 5px; } .brand__mark { width: 18px; height: 21.6px; } }
.readline { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.readline span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: var(--accent); }
body:not([data-page="lesson"]) .readline { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-2); border: 0; cursor: pointer; text-decoration: none;
font-family: var(--font-ui); font-size: var(--btn-fs); font-weight: 600; color: var(--ink-on-saffron); background: var(--saffron-gradient);
box-shadow: inset 0 0 0 1px var(--primary-edge), 0 6px 16px -10px rgb(201 138 43 / .9);
transition: filter var(--t-state), transform var(--t-press) var(--ease-out), box-shadow var(--t-state); }
.btn:hover { filter: brightness(1.04) saturate(1.05); box-shadow: inset 0 0 0 1px var(--primary-edge), 0 10px 22px -10px rgb(201 138 43 / .95); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-state) var(--ease-out); }
.btn:hover:not(:disabled) svg { transform: translateX(3px); }
.btn--ghost { min-height: 44px; font-size: var(--btn2-fs); background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn--small { min-height: 44px; padding: 0 14px; font-size: var(--btn2-fs); }
.btn--block { width: 100%; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-2); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-family: var(--font-ui); font-size: var(--btn2-fs); font-weight: 600; line-height: 1.2; cursor: pointer; transition: box-shadow var(--t-state), color var(--t-state); }
.mini-btn:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); }
.mini-btn svg { width: 16px; height: 16px; }
.mini-btn.is-done { color: var(--sahih); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--text); background: var(--surface-2); }
.refs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 4px; }
.refs__label { font-size: var(--fs-sm); color: var(--muted); margin-right: 2px; }
.pill-ref { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text); font-size: var(--fs-sm); white-space: nowrap; }
.pill-ref__in { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 11px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-state), color var(--t-state); }
.pill-ref:hover .pill-ref__in { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); }
.pill-ref--again .pill-ref__in { background: none; box-shadow: none; color: var(--muted); padding-inline: 6px; }
.pill-ref:focus-visible { outline: none; }
.pill-ref:focus-visible .pill-ref__in { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-ref__mark { width: 8px; height: 8px; flex: none; background: var(--g, var(--muted)); clip-path: var(--shape, circle(50%)); display: inline-block; }
.g-sahih { --g: var(--sahih); --shape: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.g-hasan { --g: var(--hasan); --shape: circle(50%); }
.g-quran { --g: var(--quran); --shape: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ref-help { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; transition: opacity var(--t-state), color var(--t-state); }
.help-seen .ref-help:not([aria-expanded="true"]) { opacity: .42; }
.help-seen .ref-help:hover, .help-seen .ref-help:focus-visible { opacity: 1; }
.ref-help__in { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.ref-help svg { width: 18px; height: 18px; }
.ref-help:hover { color: var(--accent); }
.site-footer { background: var(--surface-2); color: var(--text); border-top: 1px solid var(--line); padding-block: 52px 36px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 32px 64px; align-items: start; }
.site-footer__top > div:not(:first-child) { padding-top: 6px; }
@media (max-width: 640px) { .site-footer__top { grid-template-columns: 1fr; gap: 28px; } .site-footer__top > div:not(:first-child) { padding-top: 0; } }
.site-footer .brand__word { font-size: 24px; }
.site-footer .brand__mark { width: 25px; height: 30px; }
.site-footer p { color: var(--muted); max-width: 54ch; margin-top: 14px; line-height: 1.7; }
.site-footer h2 { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.site-footer h2:lang(en) { text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); }
.site-footer ul { list-style: none; }
.site-footer li a { display: grid; gap: 2px; align-content: center; min-height: 44px; min-width: 44px; padding-block: 4px; color: var(--text); font-weight: 600; text-decoration: none; font-size: var(--fs-base); }
.site-footer li a:hover { color: var(--accent); }
.site-footer__sub { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.site-footer .site-footer__foot { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); opacity: 0; translate: 0 8px; pointer-events: none; transition: opacity var(--t-state), translate var(--t-state) var(--ease-out); }
.to-top.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { body[data-page="lesson"] .to-top { display: none; } }
@media (max-width: 1000px) { body[data-page="path"] .to-top { display: none; } }
@media (min-width: 1001px) { body[data-page="path"] .to-top { bottom: 24px; } }
@media (min-width: 1101px) { body[data-page="lesson"] .to-top { bottom: 24px; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 350ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
html.js:not([data-calm]) [data-reveal]:not(.is-in) { opacity: 0; translate: 0 12px; }
html.js:not([data-calm]) [data-reveal] { transition: opacity 350ms var(--ease-out), translate 350ms var(--ease-out); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
html[data-calm] *, html[data-calm] *::before, html[data-calm] *::after { animation: none !important; transition: none !important; }
html[data-calm] ::view-transition-group(*), html[data-calm] ::view-transition-old(*), html[data-calm] ::view-transition-new(*) { animation: none !important; }
:root { --section-y: clamp(48px, 8vw, 96px); --head-gap: clamp(28px, 4vw, 48px); --grid-gap: clamp(16px, 2vw, 24px); --card-pad: clamp(20px, 2vw, 24px);
--arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V34C0 17 21 6 50 0c29 6 50 17 50 34v66z'/%3E%3C/svg%3E"); }
.bismillah { font-family: var(--font-quran); font-size: 22px; line-height: 40px; height: 40px; overflow: visible; color: var(--accent); width: fit-content; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--surface-2); }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: var(--head-gap); }
.section-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: var(--head-gap); }
.section-row .section-head { margin-bottom: 0; }
.lattice { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--accent); opacity: .06;
-webkit-mask: url("../img/pattern-12.svg") 0 0 / 88px auto repeat, radial-gradient(55% 75% at 100% 0%, #000 0%, transparent 75%); -webkit-mask-composite: source-in;
mask: url("../img/pattern-12.svg") 0 0 / 88px auto repeat, radial-gradient(55% 75% at 100% 0%, #000 0%, transparent 75%); mask-composite: intersect; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .lattice { opacity: .035; } }
:root[data-theme="night"] .lattice { opacity: .035; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-3); background: var(--surface-2); box-shadow: var(--shadow-2); isolation: isolate; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
img[data-focus] { object-position: var(--f, 50% 50%); }
.chapter__banner img[data-focus] { object-position: var(--f-banner, var(--f, 50% 50%)); }
@media (max-width: 640px) { .chapter__banner img[data-focus] { object-position: var(--f-banner-phone, var(--f-banner, var(--f, 50% 50%))); } }
.article__img img[data-focus] { object-position: var(--f-article, var(--f, 50% 50%)); }
.course-card__img img[data-focus] { object-position: var(--f-card, var(--f, 50% 50%)); }
.frame--arch { border-radius: 0; -webkit-mask: var(--arch) 0 0 / 100% 100% no-repeat; mask: var(--arch) 0 0 / 100% 100% no-repeat; box-shadow: none; }
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(50% 70% at 90% 10%, color-mix(in srgb, var(--saffron) 14%, transparent), transparent 70%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 64px; align-items: start; padding-block: 48px 56px; }
.hero__text { display: grid; gap: 16px; justify-items: start; padding-top: clamp(0px, 3vw, 40px); }
.hero__text .bismillah { margin-bottom: -4px; }
.hero__title { max-width: 15ch; }
.hero__title:lang(en) { max-width: 17ch; }
.hero__title:lang(bn) { max-width: none; }
@media (min-width: 901px) { .hero__title:lang(bn) .hl { white-space: nowrap; } }
.hero__title .saw { font-size: .74em; vertical-align: -.02em; }
.hero__title .hl { color: var(--accent); background: linear-gradient(var(--saffron), var(--saffron)) 0 100% / 100% .08em no-repeat; padding-bottom: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lede { max-width: 48ch; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__actions .btn--ghost { min-height: 48px; font-size: var(--btn-fs); }
.hero__media { margin: 0; filter: drop-shadow(0 18px 34px rgb(90 50 10 / .16)); }
.hero__media::after { content: ""; display: block; height: 2px; margin-top: 14px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--saffron) 42%, transparent) 20%, color-mix(in srgb, var(--saffron) 42%, transparent) 80%, transparent); }
.hero__frame { aspect-ratio: 4 / 4.2; max-height: 500px; }
.hero__frame img { object-position: 50% 30%; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="day"]) .hero__media { filter: none; }
:root:not([data-theme="day"]) .hero__frame img { filter: brightness(.72) contrast(1.06) saturate(1.04); }
:root:not([data-theme="day"]) .hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(21 16 13 / .20) 0%, rgb(21 16 13 / .14) 46%, rgb(21 16 13 / .52) 100%); }
:root:not([data-theme="day"]) .statsbar { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 65%, var(--surface)), var(--surface)); }
}
:root[data-theme="night"] .hero__media { filter: none; }
:root[data-theme="night"] .hero__frame img { filter: brightness(.72) contrast(1.06) saturate(1.04); }
:root[data-theme="night"] .hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(21 16 13 / .20) 0%, rgb(21 16 13 / .14) 46%, rgb(21 16 13 / .52) 100%); }
:root[data-theme="night"] .statsbar { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 65%, var(--surface)), var(--surface)); }
@media (max-width: 900px) {
.hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
.hero__frame { aspect-ratio: 16 / 10; max-height: none; }
.hero__text { padding-top: 0; }
}
@media (max-width: 520px) { .hero__actions { width: 100%; justify-self: stretch; } .hero__actions .btn { flex: 1 1 100%; width: 100%; } }
@media (max-width: 380px) {
.hero__grid { gap: 20px; padding-block: 20px 28px; }
.hero__text { gap: 0; }
.hero__text .bismillah { font-size: 18px; line-height: 26px; height: 26px; margin-bottom: 0; }
.hero__title { font-size: 28px; margin-top: 6px; }
.hero .lede { font-size: 15px; line-height: 1.55; margin-top: 16px; }
.hero__actions { margin-top: 20px; gap: 10px; }
}
.statsbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { display: grid; gap: 4px; justify-items: center; text-align: center; padding-block: 28px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-family: var(--font-latin-display); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--text); }
.stats b:lang(bn), :lang(bn) > .stats b { font-family: var(--font-bn-display); }
.stats span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats li { padding-block: 20px; } .stats li:nth-child(3) { border-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid var(--line); } }
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--font-ui); font-size: var(--fs-md); font-weight: 700; color: var(--text); margin: 0 0 16px; }
.group-title__years { font-weight: 600; color: var(--muted); font-size: var(--fs-sm); }
.timeline + .group-title { margin-top: 40px; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.all-card { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: end; gap: 6px; height: 100%; min-height: 240px; padding: 24px; border-radius: var(--r-3); text-decoration: none; color: var(--on-night); background: radial-gradient(120% 90% at 100% 0%, var(--night-3), var(--night) 70%); }
.all-card__n { font-family: var(--font-latin-display); font-size: 48px; font-weight: 700; line-height: 1; color: var(--saffron); }
.all-card__n:lang(bn), :lang(bn) > .all-card__n { font-family: var(--font-bn-display); }
.all-card__t { color: var(--on-night-muted); }
.all-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--btn2-fs); font-weight: 600; color: var(--saffron); }
.all-card__go svg { width: 16px; height: 16px; transition: transform var(--t-state); }
.all-card:hover .all-card__go svg { transform: translateX(3px); }
.course-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); transition: box-shadow var(--t-state), translate var(--t-state) var(--ease-out); }
.course-card:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.course-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.course-card:hover .course-card__img img { transform: scale(1.04); }
.course-card__body { display: grid; gap: 6px; align-content: start; padding: 16px 20px 18px; }
.course-card__level { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.course-card__level:lang(en), :lang(en) > .course-card__level { text-transform: uppercase; letter-spacing: .08em; }
.course-card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; }
.course-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta svg { width: 16px; height: 16px; }
.course-card__meta > svg:last-child { margin-left: auto; color: var(--muted); }
.row-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.row-card { display: grid; grid-template-columns: 112px 1fr 20px; gap: 16px; align-items: center; height: 100%; padding: 12px 16px 12px 12px; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); transition: box-shadow var(--t-state), translate var(--t-state) var(--ease-out); }
.row-card:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.row-card__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-2); }
.row-card__img img { width: 100%; height: 100%; object-fit: cover; }
.row-card__body { display: grid; gap: 4px; min-width: 0; }
.row-card .course-card__meta { margin: 0; padding: 0; border: 0; }
.row-card__go svg { width: 20px; height: 20px; color: var(--muted); }
@media (max-width: 1080px) { .row-cards { grid-template-columns: 1fr; } }
.timeline-dots { display: none; }
@media (max-width: 900px) {
.timeline { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 4px; position: relative; }
.timeline::-webkit-scrollbar { display: none; }
.tl-item { flex: 0 0 min(78%, 320px); scroll-snap-align: start; position: relative; }
.tl-item--dated::before { content: ""; position: absolute; top: -12px; left: 0; right: -12px; height: 2px; background: var(--line-strong); opacity: .5; }
.tl-item--dated::after { content: ""; position: absolute; top: -16px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron-deep); }
.timeline-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.timeline-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); opacity: .5; transition: width var(--t-state) var(--ease-out), background-color var(--t-state), opacity var(--t-state); }
.timeline-dots i.is-on { width: 20px; background: var(--saffron-deep); opacity: 1; }
}
@media (max-width: 560px) { .row-card { grid-template-columns: 72px 1fr 20px; gap: 12px; } }
.taste__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text quran" "more quran"; gap: 24px 64px; align-items: start; }
.taste__text { grid-area: text; display: grid; gap: 16px; justify-items: start; }
.taste__quran { grid-area: quran; }
.taste__more { grid-area: more; }
@media (max-width: 980px) { .taste__grid { grid-template-columns: 1fr; grid-template-areas: "text" "quran" "more"; gap: 28px; } .taste__more .btn { width: 100%; } }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: var(--fs-lg); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: rotate var(--t-state) var(--ease-out); }
.faq__item[open] summary svg { rotate: 180deg; }
.faq__item p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; line-height: 1.7; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 0; } }
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: 72px; border-top: 1px solid rgb(246 185 77 / .18); background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--saffron) 10%, var(--night)), var(--night) 72%); color: var(--on-night); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta__in > div { display: grid; gap: 12px; max-width: 640px; }
.cta .lede { color: var(--on-night-muted); }
@media (max-width: 560px) { .cta { padding-block: 48px; } .cta .btn { flex: 1 1 100%; } }
.stillness { position: relative; overflow: hidden; isolation: isolate; margin: 0; border-radius: var(--r-3); padding: 36px 40px; background: radial-gradient(120% 90% at 50% 0%, var(--night-3), var(--night) 72%); color: var(--on-night); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--night-line);
--text: var(--on-night); --muted: var(--on-night-muted); --surface: rgb(255 255 255 / .06); --line: var(--night-line); --line-strong: rgb(246 185 77 / .45); --accent: var(--saffron); --quran: var(--saffron); }
.stillness__in { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.stillness__label { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--saffron); text-align: center; }
.stillness__label:lang(en), :lang(en) > .stillness__label { text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); }
.stillness__label::before, .stillness__label::after { content: ""; width: 32px; height: 1px; background: var(--night-line); }
.stillness__ar { font-family: var(--font-quran); font-size: var(--ar-size, clamp(24px, 2.6vw, 30px)); line-height: 2.1; text-align: right; color: var(--on-night); text-wrap: balance; }
.ayah-run { display: inline-block; max-width: 100%; }
.ayah { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .12em; margin-inline-start: .1em; font-size: .6em; line-height: 1; vertical-align: .2em; color: var(--saffron); border: 1.5px solid var(--saffron); border-radius: 50%; font-family: var(--font-arabic); font-size: max(.64em, 15px); }
.stillness__meaning { font-size: var(--fs-read); line-height: var(--lh-read); padding-top: 16px; border-top: 1px solid var(--night-line); }
.stillness__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.stillness .mini-btn { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--night-line); color: var(--on-night); }
@media (max-width: 560px) { .stillness { padding: 28px 18px; } }
.series-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(50% 90% at 95% 0%, color-mix(in srgb, var(--saffron) 12%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.series-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; padding-block: 36px 36px; }
.series-hero__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; }
.series-hero__ar { font-family: var(--font-arabic); font-size: 44px; line-height: 1.4; color: var(--accent); }
.series-hero .lede { max-width: 62ch; }
.series-hero__cta { max-width: 100%; white-space: normal; text-align: start; padding-block: 10px; line-height: 1.4; }
.series-hero__meta { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.chapnav { position: sticky; top: calc(var(--header-h) - 1px); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.chapnav__in { position: relative; display: flex; align-items: center; gap: 8px 16px; min-height: 64px; }
.chapnav__label { flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.chapnav__list { list-style: none; display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chapnav__list::-webkit-scrollbar { display: none; }
.chapnav__sep { flex: none; width: 1px; height: 24px; margin-inline: 6px; background: var(--line-strong); opacity: .5; }
.chapnav__chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--btn2-fs); transition: background-color var(--t-state), color var(--t-state), box-shadow var(--t-state); }
.chapnav__chip:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.chapnav__chip.is-on { background: var(--saffron-gradient); color: var(--ink-on-saffron); box-shadow: inset 0 0 0 1px var(--primary-edge); }
.chapnav__now { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.chapnav__now:empty { display: none; }
.chapnav__search { flex: none; margin-left: auto; }
.chapnav__pick, .chapter__fold { display: none; }
.search { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 12px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); cursor: text; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.search__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.search__icon svg { width: 18px; height: 18px; flex: none; }
.search input { width: 220px; min-height: 44px; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__clear { display: none; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: var(--r-1); background: none; color: var(--muted); cursor: pointer; }
.search__clear:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.search__clear svg { width: 16px; height: 16px; }
.search:has(input:not(:placeholder-shown)) .search__clear { display: grid; }
.no-results { padding: 20px 24px; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.series-body.is-searching .thread__end, .series-body.is-searching .chapter__banner { display: none; }
.series-body.is-searching:has(.no-results:not([hidden])) { gap: 0; padding-block: 24px 36px; }
.series-body { display: grid; gap: 64px; padding-block: 48px 96px; }
.series-group { display: grid; gap: 24px; }
.series-group__title { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.series-group__title:lang(en), :lang(en) > .series-group__title { text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); }
.series-group__lede { margin-top: -12px; color: var(--muted); font-size: var(--fs-base); line-height: var(--lh-ui); max-width: 62ch; }
.series-group--person .chapter + .chapter { margin-top: 40px; }
.thread { position: relative; display: grid; gap: 48px; padding-left: 36px; }
.thread::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: linear-gradient(var(--saffron-deep), color-mix(in srgb, var(--saffron-deep) 35%, var(--line))); }
.thread__end { position: relative; margin: 0 0 -28px -36px; padding-left: 28px; font-size: var(--fs-sm); font-weight: 700; color: var(--text); line-height: 28px; }
.thread__end--to { margin-block: -28px 0; }
.thread__end::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--saffron-deep); }
.thread .chapter__head { position: relative; }
.thread .chapter__head::before { content: ""; position: absolute; left: -34px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron-deep); box-shadow: 0 0 0 4px var(--bg); }
.chapter { display: grid; gap: 20px; scroll-margin-top: calc(var(--header-h) + 80px); }
.chapter__banner { aspect-ratio: 3 / 1; }
.chapter__head { display: grid; gap: 6px; }
.chapter__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.chapter__years { font-weight: 600; color: var(--muted); }
.chapter__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-2xl); line-height: var(--lh-display); }
.chapter__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: var(--fs-sm); color: var(--muted); }
.chapter__count { font-weight: 700; color: var(--sahih); }
.chapter__count:empty { display: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; margin-left: auto; border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-size: var(--btn2-fs); font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn svg { width: 16px; height: 16px; flex: none; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.episodes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 8px 16px; }
.ep__link { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 72px; height: 100%; padding: 10px 16px 10px 8px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); transition: box-shadow var(--t-state), background-color var(--t-state), translate var(--t-state) var(--ease-out); }
.ep__link:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); translate: 0 -1px; }
.ep__n { justify-self: center; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.ep__body { display: grid; gap: 2px; min-width: 0; }
.ep__title { font-weight: 600; line-height: 1.4; }
.ep__meta { font-size: var(--fs-sm); color: var(--muted); }
.ep__next { justify-self: start; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.ep__next:lang(en), :lang(en) > .ep__next { text-transform: uppercase; letter-spacing: .08em; }
.ep__check { display: grid; place-items: center; }
.ep .mark { opacity: 1; width: 22px; height: 22px; color: var(--line-strong); }
.ep:not(.is-read) .mark circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ep:not(.is-read) .mark path { opacity: 0; }
.ep.is-read .mark { color: var(--sahih); }
.ep.is-read .ep__n { color: var(--muted); }
.ep.is-next .ep__link { background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--saffron-deep); }
.ep.is-next .ep__n { color: var(--accent); }
.mark { width: 20px; height: 20px; color: var(--sahih); opacity: 0; transition: opacity var(--t-state); flex: none; }
.is-read .mark { opacity: 1; }
.is-hidden { display: none !important; }
@media (max-width: 900px) { .chapnav__now { display: none; } .chapnav__list { flex: 1 1 auto; } }
@media (max-width: 640px) {
.series-hero__in { padding-block: 28px 32px; gap: 14px; }
.series-hero__ar { font-size: 32px; }
.series-hero__actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.series-hero__tools { width: 100%; }
.series-hero__cta { width: 100%; max-width: 100%; min-width: 0; justify-content: center; }
.series-hero__cta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-tool { width: 100%; justify-content: center; }
.chapnav__in { min-height: 56px; gap: 8px; }
.chapnav__label { display: none; }
.chapnav__list { display: none; }
.chapnav__pick { display: block; flex: 1 1 auto; min-width: 0; }
.chapnav__pick > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); list-style: none; cursor: pointer; font-weight: 700; color: var(--text); }
.chapnav__pick > summary::-webkit-details-marker { display: none; }
.chapnav__pick > summary svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: rotate var(--t-state); }
.chapnav__pick[open] > summary svg { rotate: 180deg; }
.chapnav__pick-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapnav__menu { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 4px); z-index: 3; list-style: none; display: grid; gap: 2px; padding: 6px; max-height: min(70vh, 520px); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.chapnav__menu a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 52px; padding: 6px 10px; border-radius: var(--r-2); text-decoration: none; color: var(--text); }
.chapnav__menu a.is-on { background: color-mix(in srgb, var(--saffron) 16%, transparent); }
.chapnav__menu-n { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 800; }
.chapnav__menu a.is-on .chapnav__menu-n { background: var(--saffron-gradient); color: var(--ink-on-saffron); }
.chapnav__menu-t { font-weight: 600; line-height: 1.35; }
.chapnav__menu-y { grid-column: 2; font-size: var(--fs-sm); color: var(--muted); }
.chapter__fold { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: var(--btn2-fs); color: var(--accent); }
.chapter__fold svg { flex: none; width: 18px; height: 18px; transition: rotate var(--t-state); }
.chapter__fold[aria-expanded="true"] svg { rotate: 180deg; }
.chapter.is-folded .episodes { display: none; }
.chapter.is-folded .chapter__banner { aspect-ratio: 3 / 1; }
.series-body.is-searching .chapter__fold { display: none; }
.series-body.is-searching .chapter.is-folded .episodes { display: grid; }
.chapnav__search { width: 44px; padding: 0; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.chapnav__search .search__icon { width: 44px; height: 44px; }
.chapnav__search input { width: 0; padding: 0; position: absolute; opacity: 0; }
.chapnav__search:focus-within, .chapnav__search:has(input:not(:placeholder-shown)) { position: absolute; left: var(--gutter); right: var(--gutter); top: 6px; width: auto; padding: 0 4px 0 12px; justify-content: start; z-index: 2; box-shadow: inset 0 0 0 2px var(--accent); }
.chapnav__search:focus-within .search__icon, .chapnav__search:has(input:not(:placeholder-shown)) .search__icon { width: auto; height: auto; }
.chapnav__search:focus-within input, .chapnav__search:has(input:not(:placeholder-shown)) input { position: static; width: 100%; min-width: 0; opacity: 1; }
.chapnav__search:focus-within .search__clear, .chapnav__search:has(input:not(:placeholder-shown)) .search__clear { display: grid; }
.series-body { gap: 48px; padding-block: 32px 80px; }
.thread { padding-left: 24px; gap: 40px; }
.thread::before { left: 5px; }
.thread__end { margin: 0 0 -24px -24px; padding-left: 22px; }
.thread__end--to { margin-block: -24px 0; }
.thread__end::before { left: 0; }
.thread .chapter__head::before { left: -23px; }
.chapter { gap: 16px; scroll-margin-top: calc(var(--header-h) + 72px); }
.chapter__banner { aspect-ratio: 16 / 9; }
.link-btn { margin-left: 0; }
.ep__link { grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 10px; padding: 10px 12px 10px 4px; }
.ep__n { font-size: 26px; }
}
.lesson-layout { display: grid; grid-template-columns: minmax(256px, 320px) minmax(0, 680px) minmax(176px, 200px); justify-content: space-between; gap: 40px; padding-block: 32px 96px; }
@media (min-width: 1320px) { .lesson-layout.wrap { max-width: calc(1280px + 2 * var(--gutter)); } }
.outline { min-width: 0; }
.outline__sticky { position: sticky; top: calc(var(--header-h) + 16px); max-height: var(--outline-max, calc(100vh - var(--header-h) - 32px)); display: flex; flex-direction: column; overflow: hidden; }
.outline__scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 6px 24px 0; scrollbar-width: thin; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(180deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
.outline__tools { display: none; flex: none; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1319px) { .outline__tools { display: grid; gap: 8px; } }
@media (min-width: 1320px) { .outline .outline__heads { display: none; } }
.outline__back { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 700; }
.outline__back svg { width: 16px; height: 16px; }
.outline__back:hover { color: var(--accent); }
.outline__levels { list-style: none; display: grid; gap: 4px; }
.outline__level > summary { position: sticky; top: 0; z-index: 2; background: var(--bg); box-shadow: 0 8px 12px -4px var(--bg); margin-bottom: 4px; }
.outline__level summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 18px; gap: 8px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: var(--r-1); cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: var(--text); }
.outline__level summary::-webkit-details-marker { display: none; }
.outline__level summary:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.outline__level summary svg { width: 18px; height: 18px; color: var(--muted); transition: rotate var(--t-state); }
.outline__level[open] > summary svg { rotate: 180deg; }
.outline__ln { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); color: var(--accent); font-size: 15px; font-weight: 800; }
.outline__lt { line-height: 1.35; }
.outline__count { font-size: 15px; color: var(--sahih); font-weight: 700; }
.outline__lessons { list-style: none; display: grid; gap: 2px; margin: 4px 0 8px 20px; border-left: 1px solid var(--line); }
.outline__lessons > li > a { position: relative; display: grid; grid-template-columns: 22px 1fr 18px; gap: 6px; align-items: start; min-height: 44px; padding: 8px 8px 8px 12px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--text); font-size: 15px; line-height: 1.45; border-radius: 0 8px 8px 0; transition: background-color var(--t-state); }
.outline__lessons > li > a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.outline__n { color: var(--muted); font-weight: 700; }
.outline__lessons .mark { width: 16px; height: 16px; margin-top: 3px; }
.outline__lessons > .is-current > a { color: var(--accent); font-weight: 700; border-left-color: var(--accent); background: color-mix(in srgb, var(--saffron) 16%, transparent); }
.outline__heads { list-style: none; display: grid; margin: 2px 0 6px 34px; }
.outline__heads a { display: flex; align-items: center; min-height: 44px; padding: 4px 8px; font-size: 15px; color: var(--muted); text-decoration: none; border-radius: 6px; line-height: 1.4; }
.outline__heads a:hover, .outline__heads a.is-on { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.article { min-width: 0; }
.article__head { display: grid; gap: 10px; justify-items: start; margin-bottom: 28px; }
.article__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.article__chapter { font-weight: 600; color: var(--muted); }
.article__chapter::before { content: "·"; margin-right: 8px; color: var(--muted); }
@media (max-width: 440px) { .article__chapter::before { display: none; } }
.article__title { font-size: var(--fs-3xl); line-height: var(--lh-display); }
.article__meta { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; max-width: 100%; font-size: var(--fs-sm); color: var(--muted); }
.meta-when { font-weight: 600; color: var(--text); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.meta-item svg { width: 16px; height: 16px; }
.meta-item--places { display: inline-block; }
.meta-item--places::before { content: ""; display: inline-block; vertical-align: -2px; margin-right: 6px; width: 11px; height: 13px; background: var(--saffron-deep); -webkit-mask: var(--arch) 0 0 / 100% 100%; mask: var(--arch) 0 0 / 100% 100%; }
.article__img { width: 100%; aspect-ratio: 21 / 9; margin-top: 8px; }
@media (max-width: 640px) { .article__img { aspect-ratio: 4 / 1; } }
.read { --rs: var(--read-scale, 1); }
.story-p { font-family: var(--font-read); font-size: calc(var(--fs-read) * var(--rs)); line-height: var(--lh-read); color: var(--text); }
.block { margin-bottom: 26px; }
.block--run { margin-bottom: 18px; }
.lesson-h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: calc(var(--fs-xl) * var(--rs)); margin: 36px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.lesson-h2:target { color: var(--accent); }
.h-anchor { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; align-self: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: var(--r-1); color: var(--muted); text-decoration: none; font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600; line-height: 1; opacity: .45; transition: opacity var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), background var(--t-state) var(--ease-out); }
@media (hover: hover) { .h-anchor { opacity: 0; } .lesson-h2:hover .h-anchor, .lesson-h2:focus-within .h-anchor, .h-anchor:focus-visible, .h-anchor.is-done { opacity: 1; } }
.h-anchor:hover, .h-anchor:focus-visible, .h-anchor.is-done { opacity: 1; color: var(--accent); background: var(--surface-2); }
.h-anchor svg { width: 16px; height: 16px; flex: none; }
.h-anchor svg:nth-of-type(2) { display: none; }
.h-anchor.is-done svg:nth-of-type(1) { display: none; }
.h-anchor.is-done svg:nth-of-type(2) { display: block; }
.h-anchor__tip:empty { display: none; }
.read .block--para:first-of-type .story-p:lang(en)::first-letter { float: left; font-family: var(--font-display); font-size: 3.2em; line-height: .85; margin: .06em .1em 0 0; font-weight: 700; color: var(--accent); }
q.pw { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--saffron-deep) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-skip-ink: auto; }
q.pw::before, q.pw::after { content: none; }
.ref-help-pop { margin: 12px 0 0; padding: 16px 18px; border-radius: var(--r-2); background: var(--surface-2); font-size: var(--fs-sm); color: var(--muted); display: grid; gap: 10px; justify-items: start; }
.ref-help-pop ul { list-style: none; display: grid; gap: 6px; }
.ref-help-pop .pill-ref__mark { margin-right: 2px; }
.ref-help-pop li { display: grid; grid-template-columns: 10px auto 1fr; gap: 8px; align-items: baseline; }
.ref-help-pop li:last-child { grid-template-columns: 1fr; }
.ref-help-pop b { color: var(--text); }
.historians { margin: 0 0 28px; padding: 16px 20px 16px 23px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--line-strong); color: var(--muted); }
.historians__label { font-size: var(--fs-xs); font-weight: 700; margin-bottom: 8px; }
.historians__label:lang(en), :lang(en) > .historians__label { text-transform: uppercase; letter-spacing: .1em; }
.historians__text { font-size: calc(var(--fs-md) * var(--rs)); line-height: var(--lh-read); }
.historians__text:lang(en), :lang(en) > .historians__text { font-style: italic; }
.historians__source { margin-top: 8px; font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.historians__why { margin-top: 4px; font-size: var(--fs-xs); }
.read .stillness { margin: 8px 0 36px; }
.panel { margin: 8px 0 28px; padding: var(--card-pad); border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.panel > .panel__title { margin-bottom: 12px; }
.points { list-style: none; display: grid; gap: 16px; }
.point { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.point + .point { padding-top: 16px; border-top: 1px solid var(--line); }
.point__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-weight: 800; font-size: 15px; }
.point p { font-size: calc(var(--fs-read) * var(--rs)); line-height: var(--lh-read); }
.point .refs { margin-top: 8px; }
[data-review] > .lesson-h2 { margin: 0 0 16px; }
.qs { list-style: none; display: grid; gap: 16px; }
.q__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.q__prompt { display: grid; gap: 8px; padding: 0; margin-bottom: 16px; font-weight: 600; font-size: var(--fs-base); line-height: 1.5; }
.q__top { display: flex; align-items: center; gap: 12px; }
.q__n { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.q__dots { display: inline-flex; gap: 6px; }
.q__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.q__dots i.is-on { background: var(--saffron-deep); width: 20px; border-radius: 4px; }
.q__opts { display: grid; gap: 8px; }
.opt { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: var(--r-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--t-state), background-color var(--t-state); }
.opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt__mark { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: box-shadow var(--t-state); }
.opt input:checked ~ .opt__mark { box-shadow: inset 0 0 0 6px var(--accent); }
.opt input:focus-visible ~ .opt__mark { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt.is-right { background: color-mix(in srgb, var(--sahih) 10%, var(--bg)); box-shadow: inset 0 0 0 1.5px var(--sahih); }
.opt.is-right .opt__mark { box-shadow: none; background: var(--sahih); }
.opt.is-right .opt__mark::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt.is-other { background: color-mix(in srgb, var(--saffron) 14%, var(--bg)); }
.opt.is-dim { opacity: .5; }
.q__answer { margin-top: 12px; }
.q__answer summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--btn2-fs); font-weight: 600; color: var(--accent); }
.q__explain { display: grid; gap: 8px; padding-top: 4px; font-size: var(--fs-md); line-height: var(--lh-read); }
.q__verdict { font-weight: 700; }
html.js .q__answer summary { display: none; }
.review__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; }
.review__nav [data-q-prev][disabled] { visibility: hidden; }
.review__done { margin-top: 16px; padding: 16px 20px; border-radius: var(--r-2); background: color-mix(in srgb, var(--sahih) 10%, var(--surface)); font-weight: 700; }
@media (max-width: 520px) { .review__nav .btn { flex: 1 1 auto; } }
.endbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 32px 0 20px; padding: 8px; border-block: 1px solid var(--line); color: var(--muted); min-width: 0; }
.endbar__sep { color: var(--muted); }
.endbar__done, .endbar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-2); border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: var(--btn2-fs); color: var(--text); }
.endbar__done:hover, .endbar__btn:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent); }
.endbar__btn svg { width: 16px; height: 16px; }
.endbar__check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: #fff; }
.endbar__check svg { width: 14px; height: 14px; stroke-dasharray: 1; stroke-dashoffset: 1; }
.endbar__done[aria-pressed="true"] { color: var(--sahih); }
.endbar__done[aria-pressed="true"] .endbar__check { background: var(--sahih); box-shadow: none; }
.endbar__done[aria-pressed="true"] .endbar__check svg { stroke-dashoffset: 0; transition: stroke-dashoffset 300ms var(--ease-out); }
.endbar__btn.is-done { color: var(--sahih); }
@media (max-width: 520px) {
.endbar { flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 6px 4px; }
.endbar__done, .endbar__btn { padding: 0 8px; gap: 6px; white-space: nowrap; }
}
@media (max-width: 400px) {
.endbar__sep { display: none; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager__next, .pager__prev { display: grid; gap: 4px; align-content: start; padding: 16px 20px; border-radius: var(--r-3); text-decoration: none; transition: translate var(--t-state) var(--ease-out), box-shadow var(--t-state), filter var(--t-state); }
.pager__next { grid-column: 2; grid-row: 1; background: var(--saffron-gradient); color: var(--ink-on-saffron); box-shadow: inset 0 0 0 1px var(--primary-edge); text-align: right; justify-items: end; }
.pager__next:hover { filter: brightness(1.04); translate: 0 -2px; }
.pager__prev { grid-column: 1; grid-row: 1; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pager__prev:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); translate: 0 -2px; }
.pager__label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--btn2-fs); font-weight: 600; }
.pager__prev .pager__label { color: var(--accent); }
.pager__label svg { width: 16px; height: 16px; }
.pager__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.4; }
.pager__meta { font-size: var(--fs-xs); opacity: .8; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager__next { grid-column: 1; grid-row: 1; text-align: left; justify-items: start; } .pager__prev { grid-row: 2; } }
.rail { min-width: 0; }
.rail__sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 10px; }
.rail__title { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); margin-top: 8px; }
.rail__title:lang(en), :lang(en) > .rail__title { text-transform: uppercase; letter-spacing: .1em; }
.rail__list { list-style: none; display: grid; border-left: 1px solid var(--line); }
.rail__list a { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.rail__list a:hover { color: var(--text); }
.rail__list a.is-on { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.rail__row, .size-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.size-tools .mini-btn { min-width: 52px; justify-content: center; font-family: var(--font-latin); font-size: 14px; }
.rail .size-tools { display: grid; grid-template-columns: 1fr 1fr; }
.rail .rail__row { display: grid; grid-template-columns: 1fr; }
.rail .mini-btn { justify-content: center; }
.rail__map { margin-top: 6px; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 13px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); text-decoration: none; font-size: var(--btn2-fs); font-weight: 700; transition: background-color var(--t-state), box-shadow var(--t-state), transform var(--t-state); }
.rail__map span { flex: 1 1 auto; text-align: left; }
.rail__map svg { width: 16px; height: 16px; flex: none; }
.rail__map:hover { background: color-mix(in srgb, var(--saffron) 22%, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--accent); }
.sheet .rail__map { margin-top: 14px; }
@media (max-width: 1319px) { .lesson-layout { grid-template-columns: 256px minmax(0, 680px); justify-content: start; gap: 56px; } .rail { display: none; } }
@media (max-width: 1100px) { .lesson-layout { grid-template-columns: minmax(0, 680px); justify-content: center; padding-top: 24px; } .outline { display: none; } }
.reader-bar { display: none; }
@media (max-width: 1100px) {
.reader-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px 52px; align-items: center; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: translate var(--t-state) var(--ease-out); }
.reader-bar.is-hidden-bar { translate: 0 110%; }
.reader-bar__btn, .reader-bar__mid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-2); border: 0; background: none; color: var(--text); text-decoration: none; cursor: pointer; font-weight: 700; }
.reader-bar__btn svg, .reader-bar__mid svg { width: 20px; height: 20px; flex: none; }
.reader-bar__btn.is-off { opacity: .3; }
.reader-bar__mid { background: var(--surface-2); min-width: 0; white-space: nowrap; overflow: hidden; padding: 0 10px; gap: 6px; }
.reader-bar__short { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .reader-bar__full { display: none; } .reader-bar__short { display: inline; } }
.reader-bar__next { background: var(--saffron-gradient); color: var(--ink-on-saffron); }
body[data-page="lesson"] .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.sheet { width: 100%; max-width: 560px; max-height: 80vh; margin: auto auto 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: var(--bg); color: var(--text); box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .4); overflow: auto; }
.sheet::backdrop { background: rgb(21 16 13 / .45); }
.sheet__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; background: var(--bg); z-index: 1; }
.sheet__title { font-weight: 800; font-size: var(--fs-base); }
.sheet__title--sub { margin: 16px 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.sheet__grade { margin: 4px 0 16px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.sheet .outline__lessons > li > a { font-size: 15.5px; }
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: sheet-in 260ms var(--ease-out); } }
@keyframes sheet-in { from { translate: 0 40px; opacity: 0; } }
.series-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; }
.series-hero__actions .series-hero__cta { margin-top: 0; }
.series-hero__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.series-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); text-decoration: none; font-size: var(--btn2-fs); font-weight: 600; transition: box-shadow var(--t-state), color var(--t-state), background-color var(--t-state); }
.series-tool svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.series-tool:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.meta-map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--accent); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; transition: background-color var(--t-state); }
.meta-map-link svg { width: 14px; height: 14px; flex: none; }
.meta-map-link:hover { background: color-mix(in srgb, var(--saffron) 22%, var(--surface-2)); }
.viz { margin: 28px 0 32px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 16px; }
.viz__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.viz__kicker { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.viz__kicker:lang(en) { text-transform: uppercase; letter-spacing: .1em; }
.viz__title { font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.3; width: 100%; }
.viz__note { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.viz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.viz__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-2); background: var(--surface-2); color: var(--accent); text-decoration: none; font-size: var(--btn2-fs); font-weight: 700; transition: background-color var(--t-state); }
.viz__link svg { width: 15px; height: 15px; }
.viz__link:hover { background: color-mix(in srgb, var(--saffron) 22%, var(--surface-2)); }
.viz-qiblah__grid { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 20px 26px; align-items: center; }
.viz-qiblah__dial { width: 100%; max-width: 260px; margin-inline: auto; }
.viz-qiblah__facts { display: grid; gap: 12px; }
.viz-qiblah__row { padding: 12px 14px; border-radius: var(--r-2); background: var(--surface-2); display: grid; gap: 3px; }
.viz-qiblah__row--now { background: color-mix(in srgb, var(--saffron) 14%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent); }
.viz-qiblah__tag { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.viz-qiblah__val { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; color: var(--text); }
.viz-qiblah__sub { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 620px) { .viz-qiblah__grid { grid-template-columns: 1fr; } }
.viz-route__svg-wrap { border-radius: var(--r-2); background: var(--surface-2); padding: 14px 12px 10px; overflow: hidden; }
.viz-route__svg { width: 100%; height: auto; display: block; }
.viz-route__path { stroke-dasharray: 620; stroke-dashoffset: 0; }
.viz-route__path--recon { stroke-dasharray: 8 6; }
.viz-route__path--endpoints { stroke-dasharray: 4 6; }
.viz-route__stops { list-style: none; display: none; flex-wrap: wrap; gap: 6px 8px; }
@media (max-width: 440px) { .viz-route__stops { display: flex; } }
.viz-route__stops li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.viz-route__stops li b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.viz-route__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--saffron) 16%, var(--surface-2)); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.viz-lineage__tiers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: var(--r-2); background: color-mix(in srgb, var(--saffron) 12%, var(--surface-2)); }
.viz-lineage__tier { display: inline-flex; flex-direction: column; align-items: center; padding: 7px 12px; border-radius: var(--r-1); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.viz-lineage__tier strong { font-size: var(--fs-sm); color: var(--text); }
.viz-lineage__tier span { font-size: 14px; color: var(--accent); }
.viz-lineage__tier--prophet { background: var(--night); box-shadow: inset 0 0 0 1px var(--saffron); }
.viz-lineage__tier--prophet strong { color: var(--on-night); }
.viz-lineage__tier--prophet span { color: var(--saffron); }
.viz-lineage__arrow { color: var(--accent); font-weight: 700; font-size: 15px; }
.viz-lineage__details summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-2); background: var(--surface-2); color: var(--accent); font-size: var(--btn2-fs); font-weight: 700; cursor: pointer; list-style: none; }
.viz-lineage__details summary::-webkit-details-marker { display: none; }
.viz-lineage__details summary svg { width: 17px; height: 17px; transition: rotate var(--t-state); }
.viz-lineage__details[open] summary svg { rotate: 180deg; }
.viz-spine { list-style: none; position: relative; margin: 16px 0 8px 14px; padding-left: 24px; border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); display: grid; gap: 10px; }
.viz-spine__node { position: relative; display: grid; gap: 2px; padding: 8px 12px; border-radius: var(--r-1); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.viz-spine__node::before { content: ""; position: absolute; left: -31px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.viz-spine__node--prophet { background: var(--night); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--saffron); }
.viz-spine__node--prophet::before { background: var(--saffron); border-color: var(--night); }
.viz-spine__node--milestone { background: color-mix(in srgb, var(--saffron) 10%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--line)); }
.viz-spine__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.viz-spine__name { font-weight: 700; font-size: var(--fs-md); }
.viz-spine__ar { font-size: 16px; color: var(--accent); }
.viz-spine__node--prophet .viz-spine__ar { color: var(--saffron); }
.viz-spine__branch { font-size: var(--fs-xs); color: var(--muted); padding-top: 2px; }
.viz-spine__boundary { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-1); border: 1px dashed var(--line-strong); font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.viz-letters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.viz-letter { padding: 14px; border-radius: var(--r-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; }
.viz-letter__km { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.viz-letter__ruler { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; line-height: 1.35; }
.viz-letter__envoy { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.viz-letter__out { font-size: var(--fs-sm); line-height: 1.55; color: var(--text); }
@media (max-width: 720px) { .viz-letters__grid { grid-template-columns: 1fr; } }
