/* Imam & Science. — site styles v2
   Clean, flat, iOS-like: hairlines and soft grouped panels instead of shadows.
   Colour modes: light (default), paper (sepia), gray, dark. */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Instrument+Serif:ital,wght@0,400;1,400&display=swap");

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/literata-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(../fonts/literata-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/amiri-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IS Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/amiri-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IS Al Majeed Quranic"; font-display: swap; src: url(../fonts/x-al-majeed-quranic-font-shiped.woff2) format("woff2"); }

/* Tokens ----------------------------------------------------------------- */
:root {
	--font-ui: "Manrope", "IS Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-bebas: "Bebas Neue", "Manrope", sans-serif;
	--font-serif: "Literata", "IS Arabic", Georgia, "Times New Roman", serif;
	--font-inst: "Instrument Serif", "Literata", Georgia, serif;
	--font-majeed: "IS Al Majeed Quranic", "IS Arabic", serif;
	--font-book: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "IS Arabic", serif;
	--font-easy: "Atkinson Hyperlegible", "IS Arabic", ui-sans-serif, system-ui, sans-serif;
	--font-ar: "IS Arabic", "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;

	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
	--hh: 60px;
	--r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
	--ease: cubic-bezier(.25, .8, .25, 1);
	--spring: cubic-bezier(.32, .72, 0, 1);
	--dim: 0;

	color-scheme: light;
	--bg: #ffffff; --bg-alt: #f5f5f7; --surface: #ffffff;
	--fill: #f2f2f7; --fill-2: #e8e8ed; --fill-3: #dcdce1;
	--ink: #0b0b0c; --text: #1d1d1f; --muted: #6e6e73; --faint: #8e8e93;
	--hair: rgba(60, 60, 67, .13); --hair-2: rgba(60, 60, 67, .26);
	--green: #111113; --green-ink: #111113; --green-soft: rgba(0, 0, 0, .06); --on-green: #ffffff;
	--glow: rgba(0, 0, 0, .06);
	--float: 0 12px 40px -8px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06);
	--overlay: rgba(0, 0, 0, .32);
	--bar: rgba(255, 255, 255, .78);
	--thumb-bg: #141416;
	--thumb-paper: url("../img/thumb-paper-light.webp");
	--thumb-ink: #0b0b0c;
	--thumb-brand-ink: #1a1a1c;
	--thumb-tag-bg: rgba(0, 0, 0, .07);
	--thumb-tag-border: rgba(0, 0, 0, .08);
	--thumb-tag-ink: #0b0b0c;
	--thumb-foot: rgba(20, 20, 24, .64);
	--thumb-line: linear-gradient(90deg, rgba(0, 0, 0, .32), transparent);
}
[data-mode="paper"] {
	color-scheme: light;
	--bg: #f8f1e3; --bg-alt: #f2e8d5; --surface: #fbf6ea;
	--fill: #efe5d0; --fill-2: #e7dbc2; --fill-3: #dccdb0;
	--ink: #2a2118; --text: #3a2e22; --muted: #74644f; --faint: #978772;
	--hair: rgba(70, 45, 15, .13); --hair-2: rgba(70, 45, 15, .24);
	--green: #2a2118; --green-ink: #2a2118; --green-soft: rgba(42, 33, 24, .08); --on-green: #fbf6ea;
	--glow: rgba(42, 33, 24, .06);
	--overlay: rgba(40, 28, 14, .3);
	--bar: rgba(248, 241, 227, .82);
	--thumb-bg: #211c16;
	--thumb-paper: url("../img/thumb-paper-light.webp");
	--thumb-ink: #2a2118;
	--thumb-brand-ink: #2a2118;
	--thumb-tag-bg: rgba(42, 33, 24, .08);
	--thumb-tag-border: rgba(42, 33, 24, .1);
	--thumb-tag-ink: #2a2118;
	--thumb-foot: rgba(42, 33, 24, .68);
	--thumb-line: linear-gradient(90deg, rgba(42, 33, 24, .35), transparent);
}
[data-mode="gray"] {
	color-scheme: dark;
	--bg: #3a3a3c; --bg-alt: #333335; --surface: #444446;
	--fill: #48484a; --fill-2: #545456; --fill-3: #636366;
	--ink: #ffffff; --text: #e5e5ea; --muted: #aeaeb2; --faint: #8e8e93;
	--hair: rgba(255, 255, 255, .1); --hair-2: rgba(255, 255, 255, .18);
	--green: #ffffff; --green-ink: #ffffff; --green-soft: rgba(255, 255, 255, .12); --on-green: #111113;
	--glow: rgba(255, 255, 255, .08);
	--float: 0 14px 44px -10px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .08);
	--overlay: rgba(0, 0, 0, .45);
	--bar: rgba(58, 58, 60, .82);
	--thumb-bg: #222224;
	--thumb-paper: url("../img/thumb-paper-dark.webp");
	--thumb-ink: #ffffff;
	--thumb-brand-ink: #ffffff;
	--thumb-tag-bg: rgba(255, 255, 255, .14);
	--thumb-tag-border: rgba(255, 255, 255, .14);
	--thumb-tag-ink: #ffffff;
	--thumb-foot: rgba(255, 255, 255, .72);
	--thumb-line: linear-gradient(90deg, rgba(255, 255, 255, .65), transparent);
}
[data-mode="dark"] {
	color-scheme: dark;
	--bg: #000000; --bg-alt: #0c0c0d; --surface: #111113;
	--fill: #1c1c1e; --fill-2: #2c2c2e; --fill-3: #3a3a3c;
	--ink: #ffffff; --text: #ececf0; --muted: #a1a1a6; --faint: #7c7c80;
	--hair: rgba(255, 255, 255, .1); --hair-2: rgba(255, 255, 255, .18);
	--green: #ffffff; --green-ink: #ffffff; --green-soft: rgba(255, 255, 255, .12); --on-green: #000000;
	--glow: rgba(255, 255, 255, .08);
	--float: 0 14px 44px -10px rgba(0, 0, 0, .8), 0 0 0 .5px rgba(255, 255, 255, .1);
	--overlay: rgba(0, 0, 0, .6);
	--bar: rgba(10, 10, 11, .78);
	--thumb-bg: #141416;
	--thumb-paper: url("../img/thumb-paper-dark.webp");
	--thumb-ink: #ffffff;
	--thumb-brand-ink: #ffffff;
	--thumb-tag-bg: rgba(255, 255, 255, .14);
	--thumb-tag-border: rgba(255, 255, 255, .14);
	--thumb-tag-ink: #ffffff;
	--thumb-foot: rgba(255, 255, 255, .72);
	--thumb-line: linear-gradient(90deg, rgba(255, 255, 255, .65), transparent);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 20px); background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; -webkit-tap-highlight-color: transparent; }
body {
	margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
	font: 400 16px/1.6 var(--font-ui); letter-spacing: -.006em;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.14; letter-spacing: -.028em; font-weight: 760; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--green-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[lang="ar"], [lang="ur"], .ar { font-family: var(--font-ar); }
[lang="ur"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", var(--font-ar); }

/* Brightness dimmer (reader setting, applies everywhere) */
.dimmer { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: #000; opacity: var(--dim); transition: opacity .2s; }
.warm .dimmer { background: #2b1300; opacity: calc(var(--dim) + .12); mix-blend-mode: multiply; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15.5px; letter-spacing: -.012em; transition: background-color .2s, color .2s, transform .15s var(--ease), opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--green-ink); }
.btn--ghost { background: var(--fill); color: var(--ink); }
.btn--ghost:hover { background: var(--fill-2); }
.btn--light { background: #fff; color: #111113; }
.btn--light:hover { background: #f2f2f7; }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn--icon { width: 46px; padding: 0; }
.btn--icon[aria-pressed="true"] { color: var(--green-ink); background: var(--green-soft); }
.btn--icon[aria-pressed="true"] .icon { fill: currentColor; }
.btn .icon { width: 18px; height: 18px; }
.pillbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fill); color: var(--ink); font-weight: 700; font-size: 14.5px; transition: background-color .2s; }
.pillbtn:hover { background: var(--fill-2); }
.pillbtn[aria-pressed="true"] { background: var(--green-soft); color: var(--green-ink); }
.pillbtn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.linkbtn { display: block; margin: 18px auto 0; color: var(--green-ink); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.linkbtn:hover { background: var(--green-soft); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pill .icon { width: 16px; height: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot--live { box-shadow: 0 0 0 3px var(--green-soft); }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.kicker .icon { width: 15px; height: 15px; }

/* Header ----------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 60; height: var(--hh); background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: .5px solid var(--hair-2); transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .3s; }
.header.is-hidden { transform: translateY(-102%); }
.header__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 17px; letter-spacing: -.03em; color: var(--ink); flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand span b { color: var(--green); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.02; }
.brand__txt small { display: block; margin-top: 1.5px; font-family: inherit; font-style: normal; font-weight: 550; font-size: 11.5px; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.nav { margin-inline: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 650; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.nav a.nav__app { color: var(--ink); background: var(--fill); margin-left: 8px; padding: 0 12px 0 6px; }
.nav a.nav__app img { width: 24px; height: 24px; border-radius: 7px; }
.tools { display: flex; align-items: center; gap: 2px; flex: none; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); transition: color .2s, background-color .2s; flex: none; }
.iconbtn:hover { color: var(--ink); background: var(--fill); }
.iconbtn .icon { width: 21px; height: 21px; }

/* Theme Toggle Switch (pill showing all 4 modes: Light, Sepia, Gray, Dark) */
/* Theme Toggle Switch (pill showing all 4 modes: Light, Sepia, Gray, Dark) */
.theme-switch { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; flex: none; margin-inline: 4px; }
.theme-switch__track {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--fill-2);
	border: 1px solid var(--hair-2);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
	transition: background-color .25s var(--ease), border-color .25s;
}
.theme-switch:hover .theme-switch__track {
	background: var(--fill-3);
	border-color: var(--hair-3);
}
.theme-switch__btn {
	position: relative;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 27px;
	height: 27px;
	border: 0;
	padding: 0;
	background: transparent;
	border-radius: 50%;
	color: var(--muted);
	cursor: pointer;
	transition: color .2s var(--ease), transform .15s;
	outline-offset: 2px;
}
.theme-switch__btn:hover { color: var(--ink); }
.theme-switch__btn:active { transform: scale(.92); }
.theme-switch__btn .icon { width: 14.5px; height: 14.5px; }

.theme-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: 0 1.5px 5px rgba(0, 0, 0, .18), 0 0 0 .5px var(--hair-2);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1), background-color .25s, box-shadow .25s;
	z-index: 1;
	pointer-events: none;
}

/* 4 sliding positions and active icon colors */
[data-mode="light"] .theme-switch__thumb { transform: translateX(0); background: #ffffff; }
[data-mode="light"] .theme-switch__btn--light { color: #111113; }

[data-mode="paper"] .theme-switch__thumb { transform: translateX(29px); background: #fbf6ea; }
[data-mode="paper"] .theme-switch__btn--paper { color: #2a2118; }

[data-mode="gray"] .theme-switch__thumb { transform: translateX(58px); background: #3e3e42; }
[data-mode="gray"] .theme-switch__btn--gray { color: #ffffff; }

[data-mode="dark"] .theme-switch__thumb { transform: translateX(87px); background: #262628; }
[data-mode="dark"] .theme-switch__btn--dark { color: #ffffff; }

@media (max-width: 480px) {
	.theme-switch__track { gap: 1.5px; padding: 2.5px; }
	.theme-switch__btn { width: 25px; height: 25px; }
	.theme-switch__btn .icon { width: 13.5px; height: 13.5px; }
	.theme-switch__thumb { top: 2.5px; left: 2.5px; width: 25px; height: 25px; }
	[data-mode="light"] .theme-switch__thumb { transform: translateX(0); }
	[data-mode="paper"] .theme-switch__thumb { transform: translateX(26.5px); }
	[data-mode="gray"] .theme-switch__thumb { transform: translateX(53px); }
	[data-mode="dark"] .theme-switch__thumb { transform: translateX(79.5px); }
}

@media (max-width: 360px) {
	.theme-switch__track { gap: 1px; padding: 2px; }
	.theme-switch__btn { width: 22px; height: 22px; }
	.theme-switch__btn .icon { width: 12px; height: 12px; }
	.theme-switch__thumb { top: 2px; left: 2px; width: 22px; height: 22px; }
	[data-mode="light"] .theme-switch__thumb { transform: translateX(0); }
	[data-mode="paper"] .theme-switch__thumb { transform: translateX(23px); }
	[data-mode="gray"] .theme-switch__thumb { transform: translateX(46px); }
	[data-mode="dark"] .theme-switch__thumb { transform: translateX(69px); }
}

.mode-i { display: none; }
[data-mode="light"] .mode-i--light, [data-mode="dark"] .mode-i--dark, [data-mode="paper"] .mode-i--paper, [data-mode="gray"] .mode-i--gray { display: block; }
.burger { display: none; }
@media (max-width: 1080px) {
	.nav { display: none; }
	.header__search-btn { display: none !important; }
	.burger { display: inline-grid; }
	.tools { margin-left: auto; }
}
@media (max-width: 400px) { .brand { font-size: 15.5px; } .brand img { width: 30px; height: 30px; } .tools .iconbtn { width: 36px; } }

/* Mobile menu (sheet from the right) */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--overlay); opacity: 0; transition: opacity .3s; }
.menu.is-open { opacity: 1; }
.menu__panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 100%); background: var(--bg-alt); display: flex; flex-direction: column; gap: 14px; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .45s var(--spring); overflow-y: auto; }
.menu.is-open .menu__panel { transform: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 50px; }

/* Mobile menu search */
.menu__search { padding: 2px 0 4px; }
.menu__search-btn {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--hair-2);
	color: var(--muted);
	font-family: var(--font-ui);
	font-size: 14.5px;
	font-weight: 550;
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	transition: background-color .18s, border-color .18s, color .18s, transform .15s;
}
.menu__search-btn:hover, .menu__search-btn:focus-visible {
	background: var(--fill);
	border-color: var(--ink);
	color: var(--ink);
	outline: none;
}
.menu__search-btn:active {
	transform: scale(.98);
}
.menu__search-btn .icon {
	width: 19px;
	height: 19px;
	color: var(--ink);
	flex: none;
}
.menu__search-btn span {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.menu__search-btn kbd {
	margin-left: auto;
	flex: none;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--fill-2);
	color: var(--muted);
	border: 1px solid var(--hair-2);
}

.menu__list { list-style: none; }
.menu__list a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; font-size: 17px; font-weight: 650; color: var(--ink); }
.menu__list a .icon { color: var(--green); }
.menu__list a[aria-current="page"] { color: var(--green-ink); }
.menu__app { display: flex; gap: 14px; align-items: center; padding: 14px; color: var(--ink); }
.menu__app > .icon { margin-left: auto; color: var(--faint); }
.menu__app img { width: 44px; height: 44px; border-radius: 11px; }
.menu__app strong { display: block; }
.menu__app span span { font-size: 13.5px; color: var(--muted); }
.menu__modes { margin-top: auto; }
.menu__modes p { font-size: 13px; font-weight: 600; color: var(--faint); margin: 0 0 8px 6px; text-transform: uppercase; letter-spacing: .04em; }

/* iOS grouped list */
.group { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.group > * + *, .group > li + li { border-top: .5px solid var(--hair); }
.menu .group { background: var(--surface); }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill-2); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: var(--text); transition: background-color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
[data-mode="dark"] .seg button[aria-pressed="true"], [data-mode="dark"] .seg button[aria-selected="true"], [data-mode="gray"] .seg button[aria-pressed="true"], [data-mode="gray"] .seg button[aria-selected="true"] { background: var(--fill-3); }
.seg .icon { width: 16px; height: 16px; }
.seg--tabs { margin-bottom: 18px; }
.seg--sm button { height: 30px; font-size: 13px; }

/* Chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 650; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Sections ---------------------------------------------------------------- */
.sec { padding-block: clamp(48px, 6.5vw, 84px); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: clamp(30px, 4.5vw, 52px); }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 2.6vw, 30px); flex-wrap: wrap; }
.shead h2 { font-size: clamp(26px, 3.3vw, 38px); margin-top: 6px; }
.shead p { color: var(--muted); margin-top: 6px; max-width: 560px; font-size: 16px; }
.shead__link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--green-ink); font-size: 15px; }
.shead__link .icon { width: 17px; height: 17px; transition: transform .2s; }
.shead__link:hover .icon { transform: translateX(2px); }
.shead--center { justify-content: center; text-align: center; }
.shead--center p { margin-inline: auto; }
.ssub { font-size: 21px; margin-bottom: 14px; }

/* Hero (home) ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 5.5vw, 70px) 0 clamp(40px, 5.5vw, 64px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 760px; z-index: -1; background: radial-gradient(42% 46% at 50% 34%, var(--glow), transparent 72%); }
.hero::after { display: none; }
.hero__logo { width: clamp(92px, 11vw, 120px); aspect-ratio: 1; margin: 0 auto 20px; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 .5px var(--hair-2), 0 18px 40px -18px rgba(0,0,0,.45); }
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.hero__title { font-family: var(--font-bebas); font-size: clamp(46px, 8.5vw, 92px); line-height: 0.96; letter-spacing: .025em; font-weight: 400; max-width: 15ch; margin: 16px auto 0; text-wrap: balance; text-transform: uppercase; }
.grad-text { color: var(--green); }
.hero__lede { max-width: 620px; margin: 18px auto 0; font-size: clamp(17px, 1.9vw, 19.5px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero__cta .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin: 30px auto 0; padding: 0; list-style: none; }
.hero__stats li { display: flex; align-items: baseline; gap: 7px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.hero__stats strong { font-size: 21px; font-weight: 790; color: var(--ink); letter-spacing: -.03em; }
.hero__app { display: flex; align-items: center; gap: 14px; max-width: 540px; margin: 30px auto 0; padding: 12px 14px 12px 12px; text-align: left; border-radius: 20px; background: var(--fill); transition: background-color .2s; }
.hero__app:hover { background: var(--fill-2); }
.hero__app img { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.hero__app-txt { flex: 1; min-width: 0; }
.hero__app-txt small { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.hero__app-txt strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: -.02em; margin-top: 2px; }
.hero__app-txt span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.hero__app-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--ink); flex: none; }
@media (max-width: 520px) {
	.hero__cta .btn { flex: 1 1 100%; }
	.hero__app { align-items: flex-start; }
	.hero__app-go { display: none; }
	.hero__stats { gap: 6px 16px; }
	.hero__stats strong { font-size: 18px; }
}

/* Carousel & Grid layouts */
.shead__actions { display: flex; align-items: center; gap: 14px; }
.carousel__nav { display: inline-flex; align-items: center; gap: 6px; }
.carousel__btn { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--ink); display: inline-grid; place-items: center; transition: background-color .2s, opacity .2s, transform .15s; }
.carousel__btn:hover { background: var(--fill-2); }
.carousel__btn:disabled { opacity: .35; cursor: not-allowed; }
.carousel__btn .icon { width: 17px; height: 17px; }

.carousel {
	display: flex;
	gap: clamp(16px, 2.2vw, 24px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 14px;
	margin-inline: calc(var(--pad) * -0.5);
	padding-inline: calc(var(--pad) * 0.5);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card {
	flex: 0 0 clamp(290px, 30vw, 360px);
	scroll-snap-align: start;
	min-width: 0;
}
.carousel .bcard {
	flex: 0 0 clamp(160px, 18vw, 200px);
	scroll-snap-align: start;
	min-width: 0;
}
@media (max-width: 860px) {
	.carousel .card { flex: 0 0 clamp(260px, 70vw, 330px); }
	.carousel .bcard { flex: 0 0 clamp(140px, 32vw, 175px); }
}
@media (max-width: 520px) {
	.carousel .card { flex: 0 0 82vw; }
	.carousel .bcard { flex: 0 0 clamp(130px, 44vw, 160px); }
}

.grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: 0 0 0 .5px var(--hair-2); }
.card__body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 600; color: var(--faint); }
.card__meta .icon { width: 14px; height: 14px; }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__title { font-size: 19px; letter-spacing: -.022em; line-height: 1.26; font-weight: 730; }
.card__ex { color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* The one cover design used for every article. */
.thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	padding: clamp(14px, 2vw, 20px);
	background-color: var(--fill);
	background-image: var(--thumb-paper);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: var(--thumb-ink);
	overflow: hidden;
	isolation: isolate;
	container-type: inline-size;
}
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 95% at 100% 0%, rgba(255, 255, 255, .15), transparent 70%); pointer-events: none; }
.thumb__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 750; }
.thumb__brand { display: inline-flex; align-items: center; gap: 7px; color: var(--thumb-brand-ink); }
.thumb__brand img { width: 24px; height: 24px; border-radius: 6px; }
.thumb__tag { padding: 3px 9px; border-radius: 999px; background: var(--thumb-tag-bg); border: 1px solid var(--thumb-tag-border); color: var(--thumb-tag-ink); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.thumb__title { display: -webkit-box; color: var(--thumb-ink); font-weight: 780; letter-spacing: -.038em; line-height: 1.04; font-size: clamp(22px, 10.2cqi, 50px); -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.thumb--md .thumb__title { font-size: clamp(20px, 8.4cqi, 42px); }
.thumb--lg .thumb__title { font-size: clamp(18px, 7cqi, 34px); }
.thumb__foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--thumb-foot); }
.thumb__foot i { flex: 1; height: 1.5px; border-radius: 2px; background: var(--thumb-line); font-style: normal; }

/* Book cover (EPUB without its own cover) */
.cover { position: relative; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 16px 18px; background: var(--thumb-bg); color: #fff; overflow: hidden; isolation: isolate; container-type: inline-size; border-radius: 6px 12px 12px 6px; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(90deg, rgba(0,0,0,.35), transparent 7%, rgba(255,255,255,.06) 8%, transparent 10%); }
.cover__top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cover__top img { width: 22px; height: 22px; border-radius: 6px; }
.cover__title { font-size: clamp(18px, 13cqi, 44px); font-weight: 790; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cover--md .cover__title { font-size: clamp(16px, 10.5cqi, 36px); }
.cover--lg .cover__title { font-size: clamp(15px, 8.5cqi, 30px); }
.cover__author { font-size: clamp(11px, 6cqi, 15px); font-weight: 650; color: rgba(255,255,255,.75); }

/* Library */
.bgrid { display: grid; gap: clamp(18px, 2.6vw, 30px) clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 520px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bcard { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bcard .cover, .bcard__img { box-shadow: 0 0 0 .5px var(--hair-2), 0 10px 24px -14px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.bcard__img { display: block; aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; overflow: hidden; background: var(--fill); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; }
.bcard:hover .cover, .bcard:hover .bcard__img { transform: translateY(-3px); }
.bcard__title { font-size: 15.5px; line-height: 1.3; letter-spacing: -.015em; font-weight: 720; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Book detail page */
.bk { padding: clamp(24px, 4vw, 48px) 0 8px; }
.bk .crumbs { justify-content: flex-start; margin-bottom: 22px; }
.bk__grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(22px, 4vw, 52px); align-items: start; }
.bk__cover img, .bk__cover .cover { width: 100%; border-radius: 6px 14px 14px 6px; box-shadow: 0 0 0 .5px var(--hair-2), 0 24px 50px -24px rgba(0,0,0,.55); }
.bk__cover .cover { padding: 22px; }
.bk__title { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.045em; margin-top: 10px; text-wrap: balance; }
.bk__author { font-size: 18px; font-weight: 650; color: var(--muted); margin-top: 8px; }
.bk__desc { font-size: 17px; line-height: 1.65; margin-top: 16px; max-width: 620px; color: var(--text); }
.bk__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 18px; }
.bk__chips li { padding: 5px 12px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 650; color: var(--muted); }
.bk__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bk__resume { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.bk__resume strong { color: var(--ink); }
@media (max-width: 640px) {
	.bk__grid { grid-template-columns: 1fr; }
	.bk__cover { max-width: 210px; margin-inline: auto; }
	.bk__info { text-align: center; }
	.bk__chips, .bk__btns { justify-content: center; }
	.bk__btns .btn:not(.btn--icon) { flex: 1 1 auto; }
	.bk .crumbs { justify-content: center; }
}
.bk-sec .ilist, .bk-sec .sample { max-width: 760px; }
.sample { font-family: var(--font-serif); font-size: 18px; line-height: 1.8; color: var(--ink); padding: 24px 28px; border-radius: var(--r-lg); background: var(--bg-alt); border: 1px solid var(--hair); position: relative; font-style: normal; }
.sample[dir="rtl"] { font-family: var(--font-ar); font-size: 21px; line-height: 2; }

/* iOS-style list rows (chapters, saved, history) */
.ilist { list-style: none; background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 .5px var(--hair-2); overflow: hidden; }
.ilist > li + li { border-top: .5px solid var(--hair); }
.ilist a, .ilist .irow { display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 56px; }
.ilist a:hover { background: var(--fill); }
.ilist a > .icon { color: var(--faint); margin-left: auto; width: 18px; height: 18px; }
.ilist__n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--fill); font-size: 13px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.ilist__t { flex: 1; min-width: 0; font-weight: 650; color: var(--ink); }
.ilist__t small { display: block; font-weight: 550; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.ilist__m { flex: none; font-size: 13.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ilist .is-read .ilist__n { background: var(--green-soft); color: var(--green-ink); }
.ilist--toc li.l2 a { padding-left: 34px; }
.ilist--toc li.l3 a { padding-left: 52px; font-size: 15px; }
.ilist__thumb { width: 42px; flex: none; }
.ilist__thumb img, .ilist__thumb .cover { width: 42px; aspect-ratio: 2/3; height: auto; border-radius: 3px 6px 6px 3px; object-fit: cover; padding: 0; }
.ilist__thumb .cover > * { display: none; }
.ilist__bar { display: block; height: 3px; border-radius: 3px; background: var(--fill-2); margin-top: 6px; max-width: 220px; overflow: hidden; }
.ilist__bar i { display: block; height: 100%; background: var(--green); }
.ilist__del { margin-left: auto; color: var(--faint); }
.ilist__del:hover { color: #d70015; background: transparent; }
.ilist .empty { border: 0; padding: 36px 20px; }

/* Continue reading strip (home) */
.continue { padding-top: 4px; }
.continue__in { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--fill); }
.continue__in > .icon { color: var(--green); }
.continue__txt { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.continue__txt a { display: block; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.continue__bar { height: 3px; border-radius: 3px; background: var(--fill-3); overflow: hidden; margin-top: 6px; max-width: 260px; }
.continue__bar span { display: block; height: 100%; background: var(--green); }

/* Recitations ------------------------------------------------------------- */
.rlist { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .rlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rlist { grid-template-columns: 1fr; } }
.rcard { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hair-2); text-align: left; width: 100%; transition: background-color .2s; }
.sec--alt .rcard { background: var(--surface); }
.rcard:hover { background: var(--fill); }
.rcard.is-playing { box-shadow: 0 0 0 1.5px var(--green); }
.rcard__cover { position: relative; width: 66px; height: 66px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--thumb-bg); color: #fff; overflow: hidden; isolation: isolate; }
.rcard__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 100% 0%, rgba(255, 255, 255, .18), transparent 65%); }
.rcard__cover span { font-family: var(--font-majeed); font-size: 20px; line-height: 1.1; padding: 4px; text-align: center; direction: rtl; }
.rcard__txt { flex: 1; min-width: 0; }
.rcard__txt strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__txt span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--on-green); flex: none; margin-right: 4px; }
.rcard__play .icon { width: 16px; height: 16px; }
.rcard .i-pause { display: none; }
.rcard.is-playing .i-pause { display: block; }
.rcard.is-playing .i-play { display: none; }
.player { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; width: min(640px, calc(100% - 20px)); transform: translate(-50%, calc(100% + 50px + env(safe-area-inset-bottom, 0px))); transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 20px; background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: var(--float); }
.player.is-on { transform: translate(-50%, 0); }
.player.is-hidden { transform: translate(-50%, calc(100% + 50px + env(safe-area-inset-bottom, 0px))) !important; opacity: 0; pointer-events: none; }
.player .rcard__cover { width: 48px; height: 48px; border-radius: 11px; }
.player .rcard__cover span { font-size: 15px; }
.player__txt { flex: 1; min-width: 0; }
.player__txt strong { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { position: relative; height: 4px; border-radius: 4px; background: var(--fill-3); margin-top: 8px; cursor: pointer; }
.player__bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--green); }
.player__time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: 4px; }

/* Feature cards ----------------------------------------------------------- */
.pillars { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 22px; border-radius: var(--r-lg); background: var(--fill); }
.sec--alt .pillar { background: var(--surface); }
.pillar__i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--surface); color: var(--green-ink); margin-bottom: 16px; }
.sec--alt .pillar__i { background: var(--fill); }
.pillar__i .icon { width: 24px; height: 24px; }
.pillar h3 { font-size: 18px; margin-bottom: 7px; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.58; }

.twoup { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .twoup { grid-template-columns: 1fr; } }
.panel { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--fill); overflow: hidden; }
.panel h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 10px 0 10px; }
.panel p { color: var(--muted); font-size: 16px; line-height: 1.62; }
.panel .btn { margin-top: 20px; }
.panel--dark { background: var(--thumb-bg); color: rgba(255,255,255,.78); isolation: isolate; }
.panel--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 100% 0%, rgba(255,255,255,.14), transparent 65%); }
.panel--dark h2 { color: #fff; }
.panel--dark p { color: rgba(255,255,255,.72); }
.panel .panel__num { font-size: clamp(54px, 7.5vw, 86px); font-weight: 800; letter-spacing: -.06em; line-height: .95; color: #fff; }
.meter { margin-top: 20px; }
.meter__bar { height: 8px; border-radius: 8px; background: var(--fill-3); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: 8px; background: var(--green); }
.meter__label { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }

.mimber { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(26px, 4.5vw, 52px); border-radius: var(--r-xl); background: var(--thumb-bg); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.mimber::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 0%, rgba(255,255,255,.14), transparent 65%); }
.mimber__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mimber__head img { width: 56px; height: 56px; border-radius: 15px; }
.mimber__head small { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffffff; }
.mimber__head strong { font-size: 21px; letter-spacing: -.03em; }
.mimber h2 { color: #fff; font-size: clamp(27px, 3.6vw, 42px); }
.mimber p { color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.6; margin-top: 12px; max-width: 520px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 13px; background: rgba(255,255,255,.09); font-weight: 700; font-size: 15px; }
.store small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.store svg { width: 20px; height: 22px; }
.mimber__feats { list-style: none; display: grid; gap: 8px; }
.mimber__feats li { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; background: rgba(255,255,255,.07); font-weight: 650; }
.mimber__feats .icon { color: #ffffff; }
@media (max-width: 860px) { .mimber { grid-template-columns: 1fr; } }

/* Page head (inner pages) ------------------------------------------------- */
.phead { position: relative; text-align: center; padding: clamp(38px, 5.5vw, 68px) 0 clamp(22px, 3.5vw, 34px); isolation: isolate; }
.phead::before { content: ""; position: absolute; inset: -40% 0 auto; height: 520px; z-index: -1; background: radial-gradient(42% 46% at 50% 40%, var(--glow), transparent 72%); }
.phead h1 { font-size: clamp(34px, 5.6vw, 60px); letter-spacing: -.046em; max-width: 18ch; margin: 14px auto 0; text-wrap: balance; }
.phead p { max-width: 600px; margin: 14px auto 0; color: var(--muted); font-size: clamp(16.5px, 1.8vw, 18.5px); text-wrap: pretty; }
.phead--left { text-align: left; }
.phead--left .wrap { max-width: calc(760px + var(--gutter) * 2); }
.phead--left h1, .phead--left p { margin-left: 0; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--faint); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a:hover { color: var(--green-ink); }

.ltools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.field { position: relative; flex: 1 1 300px; max-width: 440px; }
.field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.field input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 0; background: var(--fill); font-size: 16px; outline: none; transition: box-shadow .2s; }
.field input:focus { box-shadow: 0 0 0 2px var(--green); }
.lcount { font-size: 14px; font-weight: 650; color: var(--faint); }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); border-radius: var(--r-lg); background: var(--bg-alt); }

/* About ------------------------------------------------------------------- */
.pledge { position: relative; max-width: 900px; margin-inline: auto; padding: clamp(26px, 5vw, 52px); border-radius: var(--r-xl); background: var(--thumb-bg); color: #fff; overflow: hidden; isolation: isolate; text-align: center; }
.pledge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 0%, rgba(255,255,255,.14), transparent 70%); }
.pledge__mark { width: 40px; height: 40px; margin: 0 auto 16px; color: #ffffff; }
.pledge blockquote { margin: 0; font-size: clamp(19px, 2.3vw, 25px); line-height: 1.5; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.pledge__by { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-align: left; }
.pledge__av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); font-weight: 800; }
.pledge__by strong { display: block; }
.pledge__by span { font-size: 14px; color: rgba(255,255,255,.7); }
.pledge__by a { color: #ffffff; }
.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(22px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 16px; }
.story p { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { padding: 18px; border-radius: var(--r); background: var(--surface); }
.stats dt { font-size: 13px; font-weight: 650; color: var(--faint); }
.stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 790; letter-spacing: -.04em; color: var(--ink); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: var(--fill); }
.cta h2 { font-size: clamp(23px, 2.8vw, 32px); }
.cta p { color: var(--muted); margin-top: 6px; max-width: 520px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact ----------------------------------------------------------------- */
.ccards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .ccards { grid-template-columns: 1fr; } }
.ccard { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3.2vw, 34px); border-radius: var(--r-xl); background: var(--fill); }
.ccard--ig { background: var(--thumb-bg); color: rgba(255,255,255,.76); position: relative; overflow: hidden; isolation: isolate; }
.ccard--ig::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 100% 0%, rgba(255,255,255,.14), transparent 65%); }
.ccard--ig h2 { color: #fff; }
.ccard__i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface); color: var(--green-ink); margin-bottom: 18px; }
.ccard--ig .ccard__i { background: rgba(255,255,255,.1); color: #ffffff; }
.ccard__i .icon { width: 28px; height: 28px; }
.ccard__badge { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.ccard--ig .ccard__badge { color: #ffffff; }
.ccard h2 { font-size: clamp(22px, 2.5vw, 27px); margin: 6px 0 8px; }
.ccard p { font-size: 15.5px; line-height: 1.6; }
.ccard__handle { margin-top: 12px; font-weight: 800; font-size: 17px; color: var(--ink); word-break: break-all; }
.ccard--ig .ccard__handle { color: #fff; }
.ccard .btn { margin-top: 20px; }

/* Footer ------------------------------------------------------------------ */
.footer {
	margin-top: clamp(36px, 5vw, 70px);
	background: #111113;
	color: rgba(255, 255, 255, .72);
	padding-top: clamp(40px, 5.5vw, 64px);
	border-radius: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) 0 0;
	border-top: .5px solid rgba(255, 255, 255, .12);
	box-shadow: none;
	overflow: hidden;
}
.footer .brand__txt span { color: #ffffff; }
.footer .brand__txt small { color: rgba(255, 255, 255, .55); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
.footer__about p { margin-top: 14px; max-width: 380px; line-height: 1.65; font-size: 15px; color: rgba(255, 255, 255, .72); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #ffffff; transition: background-color .2s; }
.social a:hover { background: rgba(255, 255, 255, .2); }
.footer h2 { color: #ffffff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; font-weight: 750; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: 15px; color: rgba(255, 255, 255, .7); transition: color .2s; }
.footer ul a:hover { color: #ffffff; }
.footer__orn .orn { max-width: 100%; color: rgba(255, 255, 255, .18); }
.footer__base { margin-top: 18px; padding-block: 8px calc(24px + env(safe-area-inset-bottom)); border-top: none; display: grid; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.footer__base a { color: #ffffff; font-weight: 700; }
.footer__note { font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .45); }
.footer__note p + p { margin-top: 6px; }

[data-mode="paper"] .footer {
	background: #1e1914;
	border-top-color: rgba(255, 255, 255, .1);
}

/* Light footer on Dark and Gray themes */
[data-mode="dark"] .footer,
[data-mode="gray"] .footer {
	background: #f4f4f6;
	color: #52525b;
	border-top: .5px solid rgba(0, 0, 0, .08);
	box-shadow: none;
}
[data-mode="dark"] .footer .brand__txt span,
[data-mode="gray"] .footer .brand__txt span {
	color: #111113;
}
[data-mode="dark"] .footer .brand__txt small,
[data-mode="gray"] .footer .brand__txt small {
	color: #71717a;
}
[data-mode="dark"] .footer__about p,
[data-mode="gray"] .footer__about p {
	color: #52525b;
}
[data-mode="dark"] .footer .social a,
[data-mode="gray"] .footer .social a {
	background: rgba(0, 0, 0, .07);
	color: #111113;
}
[data-mode="dark"] .footer .social a:hover,
[data-mode="gray"] .footer .social a:hover {
	background: rgba(0, 0, 0, .14);
}
[data-mode="dark"] .footer h2,
[data-mode="gray"] .footer h2 {
	color: #111113;
}
[data-mode="dark"] .footer ul a,
[data-mode="gray"] .footer ul a {
	color: #52525b;
}
[data-mode="dark"] .footer ul a:hover,
[data-mode="gray"] .footer ul a:hover {
	color: #111113;
}
[data-mode="dark"] .footer__orn .orn,
[data-mode="gray"] .footer__orn .orn {
	color: rgba(0, 0, 0, .14);
}
[data-mode="dark"] .footer__base,
[data-mode="gray"] .footer__base {
	border-top: none;
	color: #71717a;
}
[data-mode="dark"] .footer__base a,
[data-mode="gray"] .footer__base a {
	color: #111113;
}
[data-mode="dark"] .footer__note,
[data-mode="gray"] .footer__note {
	color: #8e8e93;
}

/* Search ------------------------------------------------------------------ */
.search { position: fixed; inset: 0; z-index: 95; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 100px) 12px 12px; opacity: 0; transition: opacity .25s; }
.search.is-open { opacity: 1; }
.search__box { width: min(640px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 20px; box-shadow: var(--float); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform .4s var(--spring); }
.search.is-open .search__box { transform: none; }
.search__field { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-bottom: .5px solid var(--hair-2); }
.search__field > .icon { color: var(--faint); }
.search__field input { flex: 1; height: 58px; border: 0; outline: none; background: transparent; font-size: 17px; font-weight: 550; min-width: 0; }
.search__close { color: var(--green-ink); font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.search__res { overflow-y: auto; padding: 6px; }
.search__res a { display: block; padding: 11px 12px; border-radius: 12px; }
.search__res a:hover, .search__res a:focus, .search__res a.is-sel { background: var(--fill); outline: none; }
.search__res strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.search__res .k { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); margin-right: 6px; }
.search__res span { font-size: 13.5px; color: var(--muted); }
.search__res p { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__res mark { background: var(--green-soft); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.search__res .empty { background: none; padding: 26px; }
.search__hint { padding: 14px 12px; font-size: 13.5px; color: var(--faint); }

/* Sheets (bottom on phones, centred card on desktop) ---------------------- */
.sheet { position: fixed; inset: 0; z-index: 96; display: flex; align-items: flex-end; justify-content: center; background: var(--overlay); opacity: 0; transition: opacity .3s; }
.sheet.is-open { opacity: 1; }
.sheet__panel { position: relative; width: min(440px, 100%); max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-alt); border-radius: 26px 26px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .5s var(--spring); box-shadow: var(--float); scrollbar-width: none; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel--tall { height: 80vh; }
.sheet__grab { display: block; width: 38px; height: 5px; border-radius: 5px; background: var(--fill-3); margin: 2px auto 10px; }
.sheet__p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.sheet__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet__btns .btn { flex: 1 1 auto; }
.sheet__small { font-size: 13px; color: var(--faint); margin-top: 10px; }
.ta { width: 100%; border: 0; border-radius: 14px; background: var(--surface); padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; outline: none; }
.ta:focus { box-shadow: 0 0 0 2px var(--green); }
@media (min-width: 700px) {
	.sheet { align-items: center; }
	.sheet__panel { border-radius: 26px; padding-bottom: 18px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .45s var(--spring), opacity .25s; }
	.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
	.sheet__grab { display: none; }
	.sheet__panel--tall { height: min(720px, 86vh); }
}

/* Toasts / back to top ---------------------------------------------------- */
.toasts { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translateX(-50%); z-index: 320; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 11px 18px; border-radius: 999px; background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); color: var(--ink); font-weight: 650; font-size: 14.5px; box-shadow: var(--float); animation: toast .45s var(--spring); text-align: center; }
@keyframes toast { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); box-shadow: var(--float); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .4s var(--spring); }
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
body.is-reader .totop { display: none; }
.totop[data-tip] { position: fixed; }
.totop:hover { background: var(--green); color: var(--on-green); }
.totop .icon { width: 20px; height: 20px; }

.nf { text-align: center; padding: clamp(56px, 10vw, 110px) 0; }
.nf b { display: block; font-size: clamp(88px, 17vw, 170px); font-weight: 800; letter-spacing: -.07em; line-height: 1; }

/* Page transitions between pages (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
html:active-view-transition-type(forward)::view-transition-old(root) { animation: vt-out-left .38s var(--spring) both; }
html:active-view-transition-type(forward)::view-transition-new(root) { animation: vt-in-right .38s var(--spring) both; }
html:active-view-transition-type(back)::view-transition-old(root) { animation: vt-out-right .38s var(--spring) both; }
html:active-view-transition-type(back)::view-transition-new(root) { animation: vt-in-left .38s var(--spring) both; }
@keyframes vt-out-left { to { transform: translateX(-28%); opacity: 0; } }
@keyframes vt-in-right { from { transform: translateX(28%); opacity: 0; } }
@keyframes vt-out-right { to { transform: translateX(28%); opacity: 0; } }
@keyframes vt-in-left { from { transform: translateX(-28%); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	@view-transition { navigation: none; }
}
@media print {
	.header, .footer, .rbar, .progress, .totop, .sheet, .dimmer { display: none !important; }
	body { background: #fff; color: #000; }
}
.hero::before, .phead::before, .thumb::before, .cover::before, .panel--dark::before, .mimber::before, .pledge::before, .ccard--ig::before, .rcard__cover::before { pointer-events: none; }

/* =========================================================================
   Craft details (v3): texture, ornament, tactile controls, clear feedback
   ========================================================================= */
:root {
	/* fine paper grain, used on the dark "printed" surfaces and homepage */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	/* the eight-pointed star (khatam), the site's one ornament */
	--star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 14.9 5.9 20 4.6 18.7 9.7 22.5 12 18.7 14.3 20 19.4 14.9 18.1 12 22.5 9.1 18.1 4 19.4 5.3 14.3 1.5 12 5.3 9.7 4 4.6 9.1 5.9Z' fill='black'/%3E%3C/svg%3E");
	--gilt: #d8bb78;
	--press: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.14);
	--t-fast: .16s; --t: .28s;
}

/* Theme changes fade instead of snapping */
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }

/* Buttons feel physical: a lit top edge, a shaded bottom, a small press */
.btn--primary { box-shadow: var(--press); background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.05)); }
.btn--primary:active { box-shadow: inset 0 1px 2px rgba(0,0,0,.25); transform: translateY(1px) scale(.985); }
.btn--ghost { box-shadow: inset 0 0 0 .5px var(--hair-2); }
.btn--light { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 2px rgba(0,0,0,.2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; margin-top: 14px; }
.btn .icon, .shead__link .icon, .pillbtn .icon { transition: transform var(--t) var(--spring); }
.btn:hover .icon[class*="arrow"], .btn:hover > .icon:last-child:not(:first-child) { transform: translateX(2px); }
.btn.is-busy { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-green) transparent var(--on-green) transparent; animation: spin .8s linear infinite; }
.btn--ghost.is-busy::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn:active, .rbar button:active, .tile:active .tile__b, .chip:active, .pillbtn:active { transform: scale(.92); }
.iconbtn, .chip, .pillbtn { transition: transform var(--t-fast) var(--ease), background-color .2s, color .2s; }

/* Tooltips: every icon-only button says what it does (mouse and keyboard) */
[data-tip] { position: relative; }
@media (hover: hover) {
	[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); z-index: 120; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 12.5px/1.2 var(--font-ui); letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .2s var(--ease); transition-delay: 0s; }
	[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
	[data-tip-up]::after { top: auto; bottom: calc(100% + 8px); transform: translate(-50%, 4px); }
	[data-tip-left]::after { left: auto; right: 0; transform: translate(0, -4px); }
	[data-tip-left]:hover::after { transform: none; }
}

/* Links read as links, with a calm underline that draws in */
.footer ul a, .crumbs a, .bk__author a, .sheet__p a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 1px; }
.footer ul a:hover, .crumbs a:hover, .sheet__p a:hover { background-size: 100% 1px; }
.footer ul a[target="_blank"]::after { content: " ↗"; font-size: .85em; opacity: .6; }

/* Header: the current page gets a small dot under its name */
.nav a[aria-current="page"] { background: transparent; position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.nav a.nav__app[aria-current="page"]::after { display: none; }
.brand img { transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }

/* Ornament: the eight-pointed star, used sparingly */
.orn { display: flex; align-items: center; gap: 14px; color: var(--faint); margin: 0 auto; max-width: 240px; }
.orn::before, .orn::after { content: ""; flex: 1; height: .5px; background: currentColor; opacity: .6; }
.orn i { width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; opacity: .8; }
.kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.kicker .icon { display: none; }

/* Printed surfaces: grain + a faint star watermark */
.thumb::after, .cover::after, .panel--dark::after, .mimber::after, .pledge::after, .ccard--ig::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; }

/* Entire Homepage Grain Overlay */
.page-home::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
	background-image: var(--grain);
	opacity: .14;
	mix-blend-mode: overlay;
}
[data-mode="light"] .page-home::before {
	opacity: .13;
	mix-blend-mode: multiply;
}
[data-mode="paper"] .page-home::before {
	opacity: .17;
	mix-blend-mode: multiply;
}
[data-mode="dark"] .page-home::before,
[data-mode="gray"] .page-home::before {
	opacity: .16;
	mix-blend-mode: overlay;
}
.thumb__title { position: relative; }
.thumb__foot { position: static; }
/* book covers get a gilt frame like a hand-bound book */
.cover { outline: 1px solid rgba(216, 187, 120, .42); outline-offset: -9px; }
.cover__top, .cover__title, .cover__author { position: relative; z-index: 1; }
.cover__title::before { content: ""; display: block; width: 18px; height: 18px; margin-bottom: 10px; background: var(--gilt); opacity: .8; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* Cards: clean, flat hairline without hover shadows */
.card { transition: none; }
.card .thumb { transition: none; }
@media (hover: hover) { .card:hover { box-shadow: 0 0 0 .5px var(--hair-2); } .card:hover .thumb { transform: none; } }
.card:focus-within { box-shadow: 0 0 0 2px var(--green); }
.card__link:focus-visible { outline: none; }
.bcard:focus-within .cover, .bcard:focus-within .bcard__img { box-shadow: 0 0 0 2px var(--green); }
.bcard__img, .bcard .cover { position: relative; }
.bcard__prog { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; z-index: 2; }
.bcard__prog i { display: block; height: 100%; background: #ffffff; }
.bcard__badge { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 750; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Toasts carry an icon and, when useful, one action (Undo) */
.toasts { pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; text-align: left; pointer-events: auto; padding: 10px 12px 10px 14px; }
.toast .icon { width: 18px; height: 18px; color: var(--green); flex: none; }
.toast--warn .icon { color: #d97706; }
.toast__act { margin-left: 6px; padding: 5px 11px; border-radius: 999px; background: var(--fill-2); color: var(--ink); font-weight: 750; font-size: 13.5px; }
.toast__bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.toast__bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .25s; }
.toast { position: relative; }

/* Loading placeholders */
.skel { height: 54px; margin: 6px; border-radius: 12px; background: linear-gradient(90deg, var(--fill) 0, var(--fill-2) 40%, var(--fill) 80%) 0 0 / 300% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { to { background-position: -150% 0; } }

/* Empty states have a mark, a sentence and a way forward */
.empty { display: grid; justify-items: center; gap: 10px; }
.empty::before { content: ""; width: 34px; height: 34px; background: var(--fill-3); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.search__res .empty::before { width: 26px; height: 26px; }

/* Pagination / Load more */
.pager { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; margin-bottom: 24px; width: 100%; }
.pager__btn--more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 175px;
	height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--hair-2);
	color: var(--ink);
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 14.5px;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.pager__btn--more:hover {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.pager__btn--more:active {
	transform: translateY(0);
}
.pager__btn--more.is-loading {
	opacity: .75;
	pointer-events: none;
	cursor: default;
}
.pager__btn--more .icon {
	transition: transform .2s ease;
}
.pager__btn--more:hover .icon {
	transform: translateY(2px);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.search__res--page { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 .5px var(--hair-2); padding: 6px; }

/* Search: type filter + keyboard hints */
.search__kinds { display: flex; gap: 6px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.search__kinds .chip { height: 30px; font-size: 13px; padding: 0 12px; flex: none; }
.search__keys { display: none; gap: 14px; padding: 10px 14px; border-top: .5px solid var(--hair); font-size: 12px; color: var(--faint); }
@media (hover: hover) and (min-width: 700px) { .search__keys { display: flex; } }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--fill); box-shadow: inset 0 -1px 0 var(--hair-2); font: 700 11.5px var(--font-ui); color: var(--muted); }

/* Recitation "now playing" bars */
.rcard__play { position: relative; }
.rcard.is-playing .rcard__play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }

/* Shortcuts sheet */
.keys { list-style: none; display: grid; gap: 2px; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14.5px; }
.keys li span { display: flex; gap: 4px; }

/* Bookmark "pop" when saved */
.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* Focus states are always visible for keyboard users */
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }
.btn:focus-visible, .chip:focus-visible, .pillbtn:focus-visible { outline-offset: 3px; }

/* Long pages render faster: parts below the screen are drawn when needed */
.footer, .more, .bk-sec, .sec--alt { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* Selection and caret in brand colour */
input, textarea { caret-color: var(--green); }

.footer__orn { margin-top: 36px; }
.footer__base { margin-top: 18px; }
.footer__orn .orn { max-width: 100%; }

/* Featured read-along cards on the Recitations page */
.dgrid { display: grid; gap: 14px; margin-bottom: 26px; }
.dcard { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--r-xl); background: var(--thumb-bg); color: #fff; overflow: hidden; isolation: isolate; transition: transform .35s var(--spring); }
.dcard::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 120% at 0% 50%, rgba(255,255,255,.14), transparent 65%); }
.dcard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; }
.dcard:hover { transform: translateY(-2px); }
.dcard:active { transform: scale(.99); }
.dcard__ar { font-family: var(--font-majeed); font-size: clamp(34px, 6vw, 52px); line-height: 1.4; color: #ffffff; direction: rtl; padding: 0 6px; }
.dcard__body { display: grid; gap: 3px; min-width: 0; }
.dcard .kicker { color: #ffffff; }
.dcard__t { font-size: clamp(21px, 2.6vw, 26px); letter-spacing: -.03em; }
.dcard__s { color: rgba(255,255,255,.78); font-size: 15px; }
.dcard__meta { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 2px; }
.dcard__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #000000; }
@media (max-width: 600px) {
	.dcard { grid-template-columns: 1fr auto; }
	.dcard__ar { grid-column: 1 / -1; text-align: right; }
}

/* Sheets close button (mobile bottom sheet & desktop modal / side) */
.sheet__x { display: grid; place-items: center; position: absolute; top: 12px; right: 14px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--muted); border: 0; cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--spring); }
.sheet__x:hover { background: var(--fill-2); color: var(--ink); transform: rotate(90deg); }
.sheet__x:active { transform: scale(.92); }

@media (min-width: 1000px) {
	:root { --side-w: 380px; }
	.sheet--side { top: var(--side-top, 0px); bottom: var(--side-bot, 0px); background: transparent; pointer-events: none; justify-content: flex-end; align-items: stretch; opacity: 1; transition: none; z-index: 59; }
	.sheet--side .sheet__panel, .sheet--side.cc .sheet__panel { pointer-events: auto; width: var(--side-w); height: 100%; max-height: none; border-radius: 0; padding: 18px 18px 28px; background: var(--bg-alt); border-left: .5px solid var(--hair-2); box-shadow: none; opacity: 1; transform: translate3d(100%, 0, 0); transition: transform .55s var(--spring), box-shadow .4s var(--ease); scrollbar-width: thin; }
	.sheet--side.is-open .sheet__panel { transform: none; box-shadow: none; }
	.sheet--side .sheet__panel--tall { height: 100%; }
	.sheet--side .sheet__x { top: 14px; right: 14px; width: 34px; height: 34px; }
	.sheet--side .cc__label { margin-top: 6px; }
	.sheet--side .tocl li a { transition: background-color .2s, color .2s; }
	/* the page makes room instead of being covered */
	main, .footer, .header { transition: padding-right .55s var(--spring), transform .35s var(--spring), background-color .3s; }
	html.side-open:not(.is-paged) main:not(.pv), html.side-open .footer, html.side-open .header { padding-right: var(--side-w); }
	/* the panel sits between the header and the footer, never over them */
	html.side-instant .sheet--side .sheet__panel, html.side-instant main, html.side-instant .header, html.side-instant .footer, html.side-instant .pv { transition: none !important; }
	.pv, .is-paged .rd { transition: right .55s var(--spring); }
	html.side-open .pv, html.side-open.is-paged .rd { right: var(--side-w); }
	.rbar, .vbar, .totop { transition: transform .45s var(--spring), opacity .3s, left .55s var(--spring), right .55s var(--spring); }
	html.side-open .rbar, html.side-open .vbar, html.side-open .dplayer { left: calc(50% - var(--side-w) / 2); }
	.dplayer { transition: left .55s var(--spring); }
	html.side-open .totop { right: calc(16px + var(--side-w)); }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
	.sheet--side .sheet__panel, main, .header, .footer, .rbar { transition: none; }
}

/* Recitations page: one calm column, grouped list ------------------------- */
.recpage__in { max-width: calc(820px + var(--gutter) * 2); }
.recpage__h { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 4px 12px; }
.recpage .dgrid + .recpage__h { margin-top: 36px; }
.recpage .dcard { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 .5px var(--hair-2); padding: 18px 20px; }
.recpage .dcard::before, .recpage .dcard::after { display: none; }
.recpage .dcard:hover { transform: none; background: var(--fill); }
.recpage .dcard .kicker { display: none; }
.recpage .dcard__ar { color: var(--green-ink); }
.recpage .dcard__t { color: var(--ink); }
.recpage .dcard__s, .recpage .dcard__meta { color: var(--muted); }
.recpage .dcard__go { background: var(--green); color: var(--on-green); }
.recpage .rlist { display: block; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 .5px var(--hair-2); overflow: hidden; }
.recpage .rcard { border-radius: 0; box-shadow: none; padding: 12px 16px; gap: 14px; background: transparent; }
.recpage .rcard + .rcard { border-top: .5px solid var(--hair); }
.recpage .rcard:hover { background: var(--fill); }
.recpage .rcard.is-playing { background: var(--green-soft); box-shadow: none; }
.recpage .rcard__cover { width: 46px; height: 46px; border-radius: 11px; background: var(--fill); color: var(--green-ink); }
.recpage .rcard__cover::before { display: none; }
.recpage .rcard__cover span { font-size: 15px; }
.recpage .rcard__play { width: 36px; height: 36px; background: transparent; color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--green-soft); }
.recpage .rcard:hover .rcard__play, .recpage .rcard.is-playing .rcard__play { background: var(--green); color: var(--on-green); box-shadow: none; }
.recpage__more { margin: 26px 4px 0; font-size: 14.5px; color: var(--muted); }
.recpage__more a { color: var(--green-ink); font-weight: 700; }
.recpage__more a::after { content: " ↗"; font-size: .85em; opacity: .6; }
@media (min-width: 1000px) { .sheet--side .sheet__panel > .seg { margin-right: 44px; } }

/* =========================================================================
   Home hero: books & wisdom artwork (boxed, image left, text right)
   ========================================================================= */
.hero--orbit { padding: clamp(8px, 1.6vw, 18px) 0 clamp(28px, 4vw, 48px); text-align: left; overflow: visible; }
.hero--orbit::before { display: none; }
.orbit {
	--o-bg: #141210; --o-ink: #fcf8f2; --o-muted: rgba(240, 230, 218, .78); --o-gold: #f6cf78;
	--o-glass: rgba(255, 255, 255, .08); --o-glass-2: rgba(255, 255, 255, .14); --o-line: rgba(255, 255, 255, .16);
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(0, .66fr); align-items: stretch;
	min-height: clamp(580px, 80svh, 720px);
	border-radius: clamp(22px, 3vw, 34px);
	background: radial-gradient(65% 75% at 15% 30%, #201a14 0%, transparent 70%), var(--o-bg);
	box-shadow: none;
	color: var(--o-ink);
}
.orbit__art {
	position: relative;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	grid-column: 2;
	grid-row: 1;
	display: flex;
}
.orbit__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	display: block;
}
.orbit__fade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(270deg, transparent 0%, transparent 45%, rgba(20, 18, 16, .75) 80%, var(--o-bg) 100%),
		linear-gradient(180deg, rgba(20, 18, 16, .35) 0%, transparent 18%, transparent 78%, rgba(20, 18, 16, .6) 100%);
}
.orbit__content {
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 5vw, 64px) clamp(16px, 2.5vw, 28px) clamp(36px, 5vw, 64px) clamp(32px, 4.5vw, 64px);
}

.orbit .pill { background: var(--o-glass); color: var(--o-ink); box-shadow: inset 0 0 0 .5px var(--o-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); width: fit-content; }
.orbit .pill .icon { color: #ffffff; }
.orbit .dot { background: #ffffff; }
.orbit .dot--live { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); animation: orbitPulse 2.6s ease-in-out infinite; }
@keyframes orbitPulse { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); } }
.orbit .hero__title { font-family: var(--font-bebas); color: var(--o-ink); margin: 16px 0 0; max-width: none; font-size: clamp(42px, 5.8vw, 80px); line-height: 0.98; letter-spacing: .025em; font-weight: 400; text-transform: uppercase; }
.orbit .hero__line { display: block; white-space: nowrap; }
.orbit .hero__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 14px 4px 14px;
	margin-top: 6px;
	border-radius: 0;
	background: #ffffff;
	border: none;
	box-shadow: none;
	color: #000000;
	font-family: var(--font-bebas);
	font-style: normal;
	font-weight: 400;
	font-size: inherit;
	letter-spacing: inherit;
	line-height: 1;
	text-transform: uppercase;
}
.orbit .ar-as {
	font-family: var(--font-majeed);
	font-weight: 400;
	font-style: normal;
	font-size: 0.82em;
	line-height: 1;
	color: #000000;
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
}
.orbit .grad-text { color: #ffffff; }
.orbit .hero__lede { color: var(--o-muted); margin: 18px 0 0; max-width: 480px; }
.orbit .hero__cta { justify-content: flex-start; }
.orbit .btn--primary { background-color: #ffffff; color: #000000; box-shadow: var(--press), 0 12px 28px -14px rgba(0, 0, 0, .8); }
.orbit .btn--primary:hover { background-color: #e4e4e7; }
.orbit .btn--ghost { background: var(--o-glass); color: var(--o-ink); box-shadow: inset 0 0 0 .5px var(--o-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.orbit .btn--ghost:hover { background: var(--o-glass-2); }
.orbit .hero__app { margin: 30px 0 0; max-width: 480px; background: var(--o-glass); box-shadow: inset 0 0 0 .5px var(--o-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.orbit .hero__app:hover { background: var(--o-glass-2); }
.orbit .hero__app-txt small { color: #ffffff; }
.orbit .hero__app-txt strong { color: var(--o-ink); }
.orbit .hero__app-txt span { color: rgba(222, 240, 238, .7); }
.orbit .hero__app-go { background: rgba(255, 255, 255, .1); color: var(--o-ink); }
.orbit :focus-visible { outline-color: #ffffff; }

/* Narrow screens: unified single box with subtle painting in background on the right */
@media (max-width: 860px) {
	.orbit {
		position: relative;
		display: block;
		min-height: 0;
		background: var(--o-bg);
		overflow: hidden;
	}
	.orbit__art {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		grid-column: unset;
		grid-row: unset;
		pointer-events: none;
		opacity: 0.38;
		z-index: 1;
		display: block;
	}
	.orbit__img {
		position: absolute;
		right: -5%;
		bottom: 0;
		width: auto;
		height: 100%;
		min-width: 75%;
		object-fit: cover;
		object-position: right bottom;
	}
	.orbit__fade {
		position: absolute;
		inset: 0;
		background:
			radial-gradient(ellipse at 85% 55%, transparent 0%, rgba(20, 18, 16, .45) 50%, var(--o-bg) 95%),
			linear-gradient(180deg, rgba(20, 18, 16, .35) 0%, transparent 20%, transparent 75%, rgba(20, 18, 16, .85) 100%);
	}
	.orbit__content {
		position: relative;
		z-index: 2;
		grid-column: unset;
		grid-row: unset;
		margin: 0;
		padding: clamp(36px, 7.5vw, 60px) clamp(18px, 5vw, 32px);
		text-align: center;
		align-items: center;
	}
	.orbit .pill { margin-inline: auto; }
	.orbit .hero__title, .orbit .hero__lede, .orbit .hero__app { margin-left: auto; margin-right: auto; }
	.orbit .hero__title { max-width: none; font-size: clamp(34px, 7.5vw, 56px); line-height: 1.02; }
	.orbit .hero__cta { justify-content: center; }
}
@media (max-width: 520px) {
	.orbit .hero__title { font-size: clamp(28px, 8.5vw, 42px); line-height: 1.04; }
	.orbit .hero__line { white-space: normal; }
	.orbit .hero__badge { padding: 3px 12px 4px; margin-top: 6px; }
	.orbit__art { opacity: 0.42; }
	.orbit__img { right: -12%; min-width: 90%; }
}
@media (max-width: 380px) {
	.orbit .hero__title { font-size: clamp(25px, 8vw, 32px); }
	.orbit .hero__badge { padding: 2px 8px 3px; }
}
@media (prefers-reduced-motion: reduce) { .orbit .dot--live { animation: none; } }

/* =========================================================================
   Recitations: cards with the Arabic title matching reading thumbnails
   ========================================================================= */
.rgrid { display: grid; gap: clamp(18px, 2.6vw, 28px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.thumb--rec { display: flex; flex-direction: column; justify-content: space-between; }
.thumb__title--ar {
	font-family: var(--font-majeed);
	font-size: clamp(28px, 8.5cqi, 44px);
	line-height: 1.35;
	text-align: center;
	direction: rtl;
	font-weight: 700;
	color: var(--thumb-ink);
	margin: auto 0;
	display: block;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rphead p { max-width: 620px; margin-inline: auto; }
.recpage .recpage__more { margin-top: 28px; text-align: center; }
/* home page rows link to the read-along pages */
.rcard--link { text-decoration: none; color: inherit; }
.rcard--link .rcard__play .icon { width: 16px; height: 16px; }
@media (max-width: 600px) {
	.rgrid { grid-template-columns: 1fr; gap: 14px; }
}

/* Book page: Contents in its own column on the right ------------------------ */
.bk__toc { min-width: 0; }
.bk__toc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk__toc-h .icon { width: 18px; height: 18px; }
.bk__toc .ilist { max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bk__toc .ilist a { min-height: 46px; padding: 10px 14px; }
@media (min-width: 1100px) {
	.bk__grid--toc { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(280px, 340px); }
	.bk__grid--toc .bk__toc { position: sticky; top: calc(var(--hh) + 16px); }
}
@media (max-width: 1099px) {
	.bk__grid--toc .bk__toc { grid-column: 1 / -1; margin-top: 8px; }
	.bk__toc .ilist { max-height: none; }
}
