:root {
  --paper: #f8f7f2;
  --white: #fff;
  --forest: #214d40;
  --deep: #173c32;
  --gold: #a68750;
  --gold-ink: #7c6335;
  --ink: #253c33;
  --muted: #657168;
  --line: #e1e5dc;
  --tint: #edf1e9;
  --serif: "Amiri", "Traditional Arabic", serif;
  --sans: "Noto Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { background: #d7e4d4; color: var(--deep); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .65; cursor: wait; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { text-wrap: pretty; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
h3 { line-height: 1.9; }
.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.icon { flex-shrink: 0; display: inline-block; width: 21px; height: 21px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; right: 24px; background: var(--deep); color: var(--white); z-index: 20; padding: 10px 20px; border-radius: 8px; }
.skip:focus { top: 10px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.nav-wrap { position: sticky; top: 0; z-index: 10; background: rgba(248,247,242,.96); border-bottom: 1px solid var(--line); }
.nav { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-icon { width: 46px; height: 46px; border: 1px solid #bccbb9; display: grid; place-items: center; border-radius: 14px 14px 14px 3px; color: var(--forest); background: var(--tint); }
.brand-icon .icon { width: 27px; height: 27px; }
.brand strong { font-family: var(--serif); display: block; font-size: 24px; line-height: 1.4; }
.brand small { font-size: 10px; letter-spacing: .2px; color: var(--muted); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 13px; padding: 12px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 1px; background: var(--forest); transform: scaleX(0); transition: transform .18s; }
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { transform: scaleX(1); }
.quiet-button { background: transparent; color: var(--forest); border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; }
.quiet-button:hover { background: var(--tint); border-color: #bdcabb; }
.saved-count { background: var(--tint); border-radius: 4px; padding: 0 6px; font-size: 11px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 76px; align-items: center; padding-block: 62px 70px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold-ink); font-size: 11px; font-weight: 600; margin-bottom: 18px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 5.5vw, 78px); font-weight: 700; line-height: 1.3; margin: 0 0 21px; letter-spacing: -.5px; }
.hero h1 span { color: var(--forest); }
.deck { font-size: 14px; line-height: 2.2; max-width: 440px; color: var(--muted); margin-bottom: 22px; }
.hero-link, .text-link { color: var(--forest); font-weight: 600; display: inline-flex; align-items: center; gap: 13px; font-size: 12px; }
.hero-link { border-bottom: 1px solid #b7c5b3; padding-block: 5px; }
.hero-link .icon, .text-link .icon { width: 18px; height: 18px; transition: transform .18s; }
.hero-link:hover .icon, .text-link:hover .icon { transform: translateX(-4px); }
.hero-stats { display: flex; align-items: center; margin-top: 32px; gap: 24px; }
.hero-stats > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 31px; line-height: 1.4; color: var(--forest); font-weight: 700; }
.hero-stats span { font-size: 11px; color: var(--muted); }
.hero-stats .source-stat { display: flex; align-items: center; gap: 10px; line-height: 1.9; }
.source-stat .icon { color: var(--gold); width: 29px; height: 29px; }
.source-stat b { font-weight: 500; color: var(--forest); }
.hero-art { height: 430px; position: relative; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; width: 370px; height: 370px; border-radius: 50%; background: radial-gradient(circle, #e4e8da 0, #eef0e7 58%, transparent 70%); z-index: -1; }
.portrait-frame { width: 316px; height: 372px; overflow: hidden; border-radius: 170px 170px 10px 10px; background: #dae2dc; box-shadow: 12px 16px 0 #e9ebdf; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.arch-outline { position: absolute; width: 344px; height: 395px; border: 1px solid #b5bd9f; border-radius: 180px 180px 12px 12px; transform: translate(5px,-4px); z-index: -1; }
.portrait-caption { position: absolute; bottom: 34px; right: -2px; min-width: 260px; background: var(--deep); color: var(--white); padding: 17px 21px; display: flex; gap: 15px; align-items: center; border-radius: 10px; box-shadow: 0 9px 24px #173c3214; }
.portrait-caption strong { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.5; }
.portrait-caption span:not(.caption-mark) { font-size: 10px; color: #cad9c7; }
.caption-mark { color: #d0bc87; border: 1px solid #6c8065; border-radius: 50%; width: 43px; height: 43px; display: grid; place-items: center; }
.portrait-credit { position: absolute; bottom: -7px; color: var(--muted); font-size: 9px; margin: 0; }
.art-spark { position: absolute; font-family: Georgia,serif; color: var(--gold); font-size: 55px; line-height: 1; }
.spark-one { top: 42px; left: 14px; }
.spark-two { bottom: 61px; left: 10px; font-size: 30px; }
.search-section { position: relative; }
.ask { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 30px #253c3305, 0 2px 5px #253c3303; padding: 27px 32px 17px; scroll-margin-top: 110px; }
.search-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.section-icon { width: 42px; height: 42px; color: var(--forest); background: var(--tint); border-radius: 11px; display: grid; place-items: center; }
.search-heading .eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 2px; font-weight: 400; }
.search-heading h2 { font-size: 27px; margin: 0; }
.source-badge { margin-inline-start: auto; font-size: 9px; color: var(--forest); background: var(--tint); border: 1px solid #dce5d7; border-radius: 5px; padding: 4px 9px; display: flex; align-items: center; gap: 5px; }
.source-badge .icon { width: 13px; height: 13px; }
.search-field { display: flex; align-items: center; gap: 14px; padding: 9px; padding-inline-start: 20px; border: 1px solid #d8dfd3; border-radius: 10px; background: #fafbf8; transition: border-color .18s, box-shadow .18s; }
.search-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #214d400c; }
textarea { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 9px 0; min-height: 42px; height: 42px; max-height: 140px; resize: vertical; line-height: 1.7; font-size: 13px; }
textarea:focus { outline: none; }
textarea::placeholder { color: #848d82; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; background: var(--forest); color: var(--white); padding: 13px 22px; font-size: 12px; font-weight: 500; border: 1px solid var(--forest); border-radius: 8px; transition: background .18s, transform .18s; min-height: 47px; }
.primary-button:hover { background: var(--deep); }
.primary-button:active { transform: translateY(1px); }
.primary-button .icon { width: 18px; height: 18px; }
.search-examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; font-size: 10px; color: var(--muted); }
.search-examples > span { margin-inline-end: 4px; }
.example { border: 1px solid var(--line); color: var(--muted); border-radius: 6px; display: inline-flex; align-items: center; gap: 12px; padding: 4px 10px; transition: background .18s; }
.example .icon { width: 13px; height: 13px; }
.example:hover { background: var(--tint); color: var(--forest); }
.search-help { color: var(--muted); margin: 13px 0 0; font-size: 11px; }
.disclaimer { display: flex; justify-content: center; align-items: flex-start; gap: 8px; padding: 19px 0; color: var(--muted); font-size: 11px; }
.disclaimer .icon { width: 15px; height: 15px; margin-top: 3px; }
.disclaimer p { margin: 0; }
.path-section { margin-top: 36px; padding-block: 48px 42px; background: var(--tint); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-description { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.tiny-label { color: var(--muted); font-size: 10px; }
.path, .index, .hits { list-style: none; margin: 0; padding: 0; }
.path { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.path li { min-width: 0; }
.path a { display: flex; flex-direction: column; height: 100%; min-height: 174px; border: 1px solid #d8dfd1; border-radius: 11px; background: #f8faf5; padding: 17px 19px 15px; transition: border-color .18s, background .18s; }
.path a:hover { background: var(--white); border-color: var(--forest); }
.path-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.path-top > .icon { width: 15px; height: 15px; color: #8c9d89; }
.step { background: #e7eddf; border: 1px solid #d8e1ce; color: var(--forest); width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; line-height: 1; }
.path li:first-child .step { background: var(--forest); border-color: var(--forest); color: var(--white); }
.path h3 { font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.step-count { margin-top: auto; color: var(--muted); font-size: 11px; }
.path-note { color: var(--muted); font-size: 11px; margin: 19px 0 0; }
.catalog-section { padding-block: 65px; }
.catalog-total { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--forest); }
.catalog-total .icon { width: 17px; height: 17px; }
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.series-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .18s, transform .18s; }
.series-card:hover { border-color: #b5c2ae; transform: translateY(-3px); }
.series-cover { position: relative; aspect-ratio: 1.94; overflow: hidden; background: var(--tint); }
.series-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #173c3270, transparent 55%); pointer-events: none; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-label { position: absolute; right: 12px; bottom: 10px; z-index: 1; background: #fffef4ed; color: var(--forest); padding: 3px 8px; border-radius: 4px; font-size: 9px; }
.cover-label .icon { width: 10px; height: 10px; margin-inline-end: 5px; }
.cover-arrow { position: absolute; left: 13px; bottom: 12px; z-index: 1; color: var(--white); }
.cover-arrow .icon { width: 18px; height: 18px; }
.series-card-body { position: relative; padding: 20px 19px 17px; }
.series-card h3 { margin: 0 0 10px; padding-inline-end: 20px; font-size: 14px; font-weight: 600; min-height: 53px; }
.card-index { position: absolute; top: 23px; left: 18px; font-size: 10px; color: #a4aea0; }
.series-card-body p { margin: 0; font-size: 10px; color: var(--forest); display: flex; justify-content: space-between; gap: 10px; }
.series-card-body p span { color: var(--muted); font-size: 9px; }
.catalog-directory { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 27px; }
.directory-heading { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin-bottom: 18px; }
.directory-heading h3, .directory-heading h2 { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.filter-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 7px 13px; background: var(--white); border-radius: 7px; width: 290px; }
.filter-field .icon { width: 17px; height: 17px; color: var(--muted); }
.filter-field input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 11px; color: var(--ink); }
.filter-field:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.filter-field input:focus-visible { outline: none; }
.catalog-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 35px; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 28px minmax(0,1fr) auto 16px; align-items: center; gap: 14px; padding: 18px 3px; }
.index a:hover .name { color: var(--gold-ink); }
.idx { font-size: 11px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.name { font-size: 13px; transition: color .18s; overflow-wrap: anywhere; }
.count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.index a > .icon { width: 14px; height: 14px; color: #8c9d89; }
.more-button { display: flex; justify-content: center; align-items: center; gap: 10px; background: transparent; color: var(--forest); padding: 12px 20px; font-size: 11px; border: 1px solid var(--line); border-radius: 7px; margin: 25px auto 0; }
.more-button:hover { background: var(--tint); border-color: #bdcabb; }
.more-button .icon { width: 16px; height: 16px; }
.filter-empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.filter-status { font-size: 10px; margin: 0 0 5px; }
.filter-status:empty { display: none; }
.source-section { padding: 34px; border: 1px solid #dce3d4; border-radius: 14px; background: #eef1e6; display: flex; align-items: center; gap: 27px; margin-bottom: 70px; }
.source-symbol { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #cdd5bd; border-radius: 50%; flex-shrink: 0; color: var(--forest); }
.source-symbol .icon { width: 30px; height: 30px; }
.source-section .eyebrow { margin-bottom: 0; }
.source-section h2 { font-size: 32px; margin-bottom: 4px; }
.source-section p:not(.eyebrow) { font-size: 11px; color: var(--muted); margin: 0; max-width: 540px; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; border: 1px solid #bccbb9; border-radius: 7px; padding: 11px 17px; color: var(--forest); flex-shrink: 0; }
.outline-button .icon { width: 16px; height: 16px; }
.outline-button:hover { background: var(--white); border-color: var(--forest); }
.colophon { background: var(--deep); color: #d6dfd4; padding: 42px 0 19px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-brand { font-family: var(--serif); color: var(--white); font-size: 29px; font-weight: 700; }
.colophon p { font-size: 10px; color: #bdcdbb; margin: 7px 0; }
.footer-grid > div:last-child > a { font-size: 11px; }
.colophon .icon { width: 14px; height: 14px; margin-inline-start: 8px; }
.footer-bottom { border-top: 1px solid #ffffff1c; margin-top: 26px; padding-top: 17px; display: flex; justify-content: space-between; gap: 25px; font-size: 9px; color: #bdcdbb; }
.footer-bottom details { max-width: 650px; }
.footer-bottom summary { cursor: pointer; }
.search-intro { padding-top: 40px; padding-bottom: 22px; }
.search-intro h1 { font-family: var(--serif); font-size: 44px; margin: 9px 0 5px; line-height: 1.5; }
.search-intro > p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.result { padding-block: 48px 65px; max-width: 1000px; scroll-margin-top: 112px; }
.result .section-heading { margin-bottom: 24px; }
.result-count { font-size: 11px; background: var(--tint); padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.resource-answer { display: flex; align-items: flex-start; gap: 16px; background: var(--tint); border: 1px solid #d8e1d1; padding: 22px 25px; border-radius: 12px; margin-bottom: 25px; }
.resource-answer > .icon { margin-top: 6px; color: var(--forest); }
.resource-answer h3 { font-size: 13px; margin: 0 0 8px; }
.resource-answer p { margin: 0; font-size: 14px; }
.resource-answer a { color: var(--forest); font-weight: 700; text-decoration: underline; }
.resource-answer .resource-limit { font-size: 12px; color: var(--muted); margin-top: 12px; }
.resource-limit { color: var(--muted); font-size: 11px; }
.result-card { display: flex; align-items: flex-start; gap: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--white); margin-top: 14px; scroll-margin-top: 115px; }
.citation-number { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; color: var(--forest); background: var(--tint); border-radius: 7px; font-size: 12px; }
.result-copy { flex: 1; min-width: 0; }
.hit-meta { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.result-card h3 { font-size: 18px; margin: 0 0 15px; }
.hit:hover { color: var(--gold-ink); }
.result-links { display: flex; align-items: center; gap: 25px; }
.watch { color: var(--forest); font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
.watch .icon { width: 15px; height: 15px; }
.window-note { font-size: 11px; color: var(--muted); display: flex; gap: 10px; }
.window-note .icon { width: 17px; height: 17px; }
.empty-state { text-align: center; padding: 42px 25px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.empty-state .eyebrow { justify-content: center; margin: 20px 0 8px; }
.empty-state p { font-size: 12px; color: var(--muted); }
.empty-state h1, .empty-state h2 { font-family: var(--serif); font-size: 36px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); margin-inline: auto; }
.empty-icon .icon { width: 30px; height: 30px; color: var(--forest); }
.empty-state .text-link { margin-top: 14px; }
.sheet { padding-top: 30px; padding-bottom: 60px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: 10px; color: var(--muted); margin-bottom: 34px; }
.breadcrumbs a:hover { color: var(--forest); text-decoration: underline; }
.series-heading { display: grid; grid-template-columns: 1fr 220px; gap: 65px; align-items: center; padding-block: 20px 40px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.sheet h1 { font-family: var(--serif); font-size: clamp(30px,3.2vw,47px); line-height: 1.6; margin: 0 0 14px; }
.series-heading .primary-button { margin-top: 23px; }
.series-heading-art { background: var(--tint); border: 1px solid #d5dfcc; border-radius: 110px 110px 12px 12px; text-align: center; padding: 30px 20px; color: var(--forest); }
.series-heading-art > .icon { width: 40px; height: 40px; display: block; margin: 0 auto 5px; color: var(--gold); }
.series-heading-art span { font-family: var(--serif); font-size: 53px; line-height: 1.6; }
.series-heading-art p { font-size: 10px; color: var(--muted); margin: 0; }
.lesson-directory { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 25px; }
.lesson-row { display: flex; align-items: center; gap: 18px; }
.lesson-row > a { flex: 1; grid-template-columns: 35px minmax(0,1fr) 26px; }
.lesson-row .name { font-size: 13px; }
.lesson-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--forest); }
.lesson-play .icon { width: 13px; height: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: transparent; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; }
.icon-button:hover { background: var(--tint); border-color: #b5c2ae; }
.icon-button[aria-pressed="true"] { background: var(--tint); border-color: #aabda3; }
.icon-button[aria-pressed="true"] .icon { fill: #bccfb5; }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 42px; align-items: start; }
.lesson-content { min-width: 0; }
.lesson-content > .eyebrow { margin-bottom: 5px; }
.lesson-content h1 { font-size: clamp(27px,2.5vw,38px); }
.player { overflow: hidden; background: var(--deep); border-radius: 11px; margin: 23px 0; aspect-ratio: 16/9; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.lesson-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lesson-actions .muted { margin-inline-start: auto; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.lesson-actions .muted .icon { width: 14px; height: 14px; }
.lesson-source-note { display: flex; gap: 12px; border: 1px solid var(--line); background: var(--tint); padding: 15px; border-radius: 8px; margin-block: 25px; color: var(--muted); }
.lesson-source-note .icon { width: 17px; height: 17px; margin-top: 3px; }
.lesson-source-note p { font-size: 12px; margin: 0; }
.lesson-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lesson-pagination a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: var(--white); }
.lesson-pagination a:hover { border-color: var(--forest); }
.lesson-pagination span { color: var(--muted); font-size: 10px; display: flex; gap: 8px; align-items: center; }
.lesson-pagination .icon { width: 14px; height: 14px; }
.lesson-pagination strong { font-size: 11px; line-height: 1.8; display: block; font-weight: 500; margin-top: 5px; }
.lesson-sidebar { margin-top: 6px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.lesson-sidebar .eyebrow { margin-bottom: 8px; }
.series-name { font-family: var(--sans); font-size: 15px; line-height: 2; margin-bottom: 12px; }
.muted { color: var(--muted); }
.lesson-sidebar > .muted { font-size: 10px; }
.lesson-sidebar ol { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.lesson-sidebar li a { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 15px 3px; font-size: 12px; color: var(--muted); }
.lesson-sidebar li .icon { width: 15px; height: 15px; margin-top: 4px; }
.lesson-sidebar a[aria-current="page"] { color: var(--forest); font-weight: 600; background: #f5f7f1; }
.lesson-sidebar .text-link { font-size: 10px; }
.saved-dialog { width: min(620px,calc(100% - 32px)); max-height: 82dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); padding: 27px; color: var(--ink); }
.saved-dialog::backdrop { background: #173c3266; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-heading .eyebrow { margin-bottom: 0; }
.dialog-heading h2 { font-size: 32px; }
.saved-dialog > .muted { font-size: 11px; }
.saved-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.saved-item > a { font-size: 14px; font-weight: 500; flex: 1; }
.saved-item > a:hover { color: var(--gold-ink); }
.saved-empty { border: 1px dashed #c6d1bf; border-radius: 10px; padding: 32px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 9px; background: var(--deep); color: var(--white); font-size: 11px; z-index: 30; box-shadow: 0 5px 20px #173c3222; }
@media (min-width: 1450px) { .hero { padding-block: 78px 80px; } }
@media (max-width: 1050px) {
  .container { width: calc(100% - 48px); }
  .hero { gap: 32px; }
  .hero-art { height: 400px; }
  .portrait-frame { width: 280px; height: 340px; }
  .arch-outline { width: 305px; height: 365px; }
  .portrait-caption { right: -10px; min-width: 235px; bottom: 30px; padding: 14px; }
  .path { gap: 10px; }
  .path a { padding: 14px; }
  .path h3 { font-size: 12px; }
  .lesson-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 25px; }
  .source-section { gap: 20px; padding: 25px; flex-wrap: wrap; }
  .source-section > div:nth-child(2) { flex: 1; }
  .source-section .outline-button { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .container { width: calc(100% - 36px); }
  .nav { min-height: 78px; gap: 15px; flex-wrap: wrap; padding-block: 13px 9px; }
  .brand { gap: 9px; }
  .brand-icon { width: 37px; height: 37px; border-radius: 10px 10px 10px 2px; }
  .brand-icon .icon { width: 23px; height: 23px; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 8px; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: center; gap: 34px; padding-top: 6px; border-top: 1px solid var(--line); }
  .nav-links a { padding: 4px 0; font-size: 11px; }
  .quiet-button { padding: 8px 10px; font-size: 10px; gap: 6px; }
  .quiet-button .icon { width: 16px; height: 16px; }
  .saved-count { padding-inline: 4px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 15px; padding-block: 35px 30px; }
  .hero .eyebrow { font-size: 9px; gap: 6px; margin-bottom: 12px; }
  .eyebrow-line { width: 15px; }
  .hero h1 { font-size: 47px; line-height: 1.35; margin-bottom: 15px; }
  .deck { font-size: 11px; margin-bottom: 12px; }
  .hero-link { font-size: 10px; }
  .hero-stats { flex-wrap: wrap; gap: 15px; margin-top: 20px; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats > div + div { padding-inline-start: 15px; }
  .hero-stats .source-stat { display: none; }
  .hero-stats span { font-size: 9px; }
  .hero-art { height: 310px; }
  .hero-art::before { width: 250px; height: 250px; }
  .portrait-frame { width: 220px; height: 270px; border-radius: 120px 120px 8px 8px; box-shadow: 6px 9px 0 #e9ebdf; }
  .arch-outline { width: 238px; height: 285px; }
  .portrait-caption { min-width: 0; width: 220px; right: auto; bottom: 13px; padding: 12px; gap: 10px; }
  .portrait-caption strong { font-size: 19px; }
  .portrait-caption span:not(.caption-mark) { font-size: 8px; }
  .caption-mark { width: 31px; height: 31px; }
  .caption-mark .icon { width: 17px; height: 17px; }
  .portrait-credit { display: none; }
  .spark-one { left: -5px; font-size: 35px; top: 10px; }
  .spark-two { display: none; }
  .ask { padding: 21px; }
  .search-heading { gap: 10px; margin-bottom: 16px; }
  .source-badge { display: none; }
  .search-heading h2 { font-size: 25px; }
  .search-field { gap: 8px; padding: 7px 12px; flex-wrap: wrap; }
  textarea { font-size: 12px; }
  .primary-button { gap: 15px; padding: 11px 16px; font-size: 11px; }
  .search-field .primary-button { width: 100%; }
  .search-examples { font-size: 9px; gap: 6px; }
  .example { padding: 4px 8px; gap: 5px; }
  .search-help { font-size: 10px; }
  .disclaimer { font-size: 10px; padding-block: 16px; }
  .path-section { margin-top: 20px; padding-block: 30px; }
  .section-heading { gap: 16px; margin-bottom: 22px; }
  h2 { font-size: 32px; }
  .section-description { font-size: 11px; }
  .tiny-label { display: none; }
  .path { grid-template-columns: repeat(3,1fr); }
  .path a { min-height: 170px; }
  .catalog-section { padding-block: 38px; }
  .featured-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .series-card-body { padding: 15px 13px; }
  .series-card h3 { font-size: 12px; min-height: 49px; }
  .card-index { top: 18px; left: 12px; font-size: 9px; }
  .series-card-body p { font-size: 9px; }
  .series-card-body p span { display: none; }
  .catalog-index { grid-template-columns: 1fr; }
  .directory-heading { gap: 12px; flex-wrap: wrap; }
  .directory-heading h3 { font-size: 14px; }
  .filter-field { width: 100%; padding: 9px 12px; }
  .source-section { margin-bottom: 38px; }
  .source-symbol { width: 47px; height: 47px; }
  .source-section > div:nth-child(2) { flex-basis: calc(100% - 70px); }
  .source-section .outline-button { margin-inline-start: 0; }
  .source-section h2 { font-size: 28px; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-bottom { flex-wrap: wrap; gap: 15px; }
  .search-intro { padding-top: 25px; }
  .search-intro h1 { font-size: 34px; }
  .result { padding-block: 30px 45px; }
  .result .section-heading h2 { font-size: 28px; }
  .result-card { gap: 12px; padding: 17px; }
  .result-card h3 { font-size: 15px; }
  .result-links { gap: 15px; }
  .resource-answer { padding: 18px; gap: 11px; }
  .resource-answer p { font-size: 13px; }
  .resource-answer .resource-limit { font-size: 11px; }
  .empty-state { padding: 30px 18px; }
  .empty-state h2 { font-size: 30px; }
  .sheet { padding-top: 22px; }
  .breadcrumbs { font-size: 9px; gap: 9px; margin-bottom: 20px; }
  .series-heading { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .series-heading-art { display: none; }
  .series-heading h1 { font-size: 34px; }
  .lesson-directory { padding: 17px; }
  .lesson-row { gap: 9px; }
  .lesson-row > a { grid-template-columns: 25px minmax(0,1fr); gap: 8px; }
  .lesson-row .name { font-size: 13px; }
  .lesson-play { display: none; }
  .icon-button { width: 44px; height: 44px; padding: 10px; }
  .icon-button .icon { width: 18px; height: 18px; }
  .lesson-layout { grid-template-columns: 1fr; gap: 22px; }
  .lesson-pagination { gap: 12px; }
  .lesson-pagination a { padding: 12px; }
  .lesson-actions .muted { margin-inline-start: 0; }
  .lesson-sidebar { padding: 20px; }
  .saved-dialog { padding: 20px; }
}
@media (max-width: 480px) {
  .hero { grid-template-columns: 1fr; padding-top: 115px; gap: 0; position: relative; }
  .hero-copy { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero h1 { font-size: 47px; }
  .deck { font-size: 12px; max-width: 340px; margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-art { height: 78px; width: 78px; margin: 0; position: absolute; top: 25px; left: calc(50% - 39px); }
  .hero-art::before { display: none; }
  .portrait-frame { width: 72px; height: 72px; border-radius: 50%; box-shadow: none; }
  .portrait-frame img { object-position: center 25%; }
  .arch-outline { width: 80px; height: 80px; border-radius: 50%; transform: none; }
  .portrait-caption, .spark-one { display: none; }
  .search-heading h2 { font-size: 23px; }
  .ask { padding: 18px; }
  .section-icon { width: 35px; height: 35px; }
  .search-examples > span { flex-basis: 100%; }
  .path { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path a { min-height: 164px; }
  .path li:last-child { grid-column: 1/-1; }
  .path li:last-child a { min-height: 130px; }
  .featured-grid { gap: 11px; }
  .cover-label { right: 7px; bottom: 6px; font-size: 8px; padding: 1px 5px; }
  .cover-arrow { display: none; }
  .series-card h3 { font-size: 12px; min-height: 64px; padding-inline-end: 7px; }
  .card-index { display: none; }
  .catalog-total { font-size: 9px; gap: 5px; }
  .catalog-section .section-heading { align-items: flex-start; }
  .catalog-total { margin-top: 31px; white-space: nowrap; }
  .index a { grid-template-columns: 23px minmax(0,1fr) auto 13px; gap: 9px; }
  .source-section { padding: 20px; gap: 15px; }
  .source-section .eyebrow { font-size: 9px; }
  .source-section p:not(.eyebrow) { font-size: 10px; }
  .result .section-heading { gap: 10px; }
  .result .section-heading h2 { font-size: 25px; }
  .result-count { font-size: 9px; padding: 4px 8px; }
  .result-card { gap: 9px; padding: 14px; }
  .citation-number { width: 24px; height: 24px; }
  .result-card h3 { font-size: 14px; }
  .hit-meta { font-size: 11px; }
  .result-card > .icon-button { width: 40px; height: 44px; }
  .result-links .text-link, .result-links .watch { font-size: 10px; }
  .lesson-pagination { grid-template-columns: 1fr; }
  .lesson-pagination > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Shared reading system and language-aware navigation. */
/* The AI companion is the primary study workspace; title search remains available below. */
.study-section { padding-block: 0 28px; scroll-margin-top: 145px; }
.recording-header { max-width: 900px; padding-block: 22px; }
.recording-header h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.65; }
.recording-notice { color: var(--muted); font-size: 14px; line-height: 1.9; }
.recording-player { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-block: 15px 35px; scroll-margin-top: 125px; }
.recording-player audio { width: 100%; margin-block: 10px; }
.recording-source-links { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; color: var(--forest); }
.recording-source-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: underline; }
.recording-source-links .icon { width: 15px; height: 15px; }
.transcript-lines { padding: 0; list-style: none; max-width: 960px; margin-top: 25px; }
.transcript-lines li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.transcript-lines a { color: var(--forest); font-size: 13px; padding-top: 4px; text-decoration: underline; }
.transcript-lines p { font-family: var(--arabic-sans); font-size: 17px; line-height: 2; margin: 0; }
.recording-index { margin-block: 0 30px; }
.recording-index a { display: flex; align-items: center; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.recording-index strong { flex: 1; font-size: 17px; }
.recording-index span { font-size: 12px; color: var(--muted); }
@media(max-width: 640px) { .recording-index a { flex-wrap: wrap; gap: 8px; } .recording-index strong { flex-basis: 100%; } .transcript-lines li { grid-template-columns: 46px minmax(0,1fr); gap: 10px; } .transcript-lines p { font-size: 16px; } }
.study-workspace { border: 1px solid #bccbb9; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px #214d4006; }
.study-heading { padding: 27px 32px 23px; background: var(--deep); color: var(--white); display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.study-heading .eyebrow { color: #d6c69f; margin-bottom: 7px; }
.study-heading h2 { font-size: 33px; margin-bottom: 9px; }
.study-heading > div > p:last-child { color: #d9e3d6; font-size: 14px; margin: 0; }
.study-badge { font-size: 11px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; border: 1px solid #617e67; padding: 5px 10px; border-radius: 6px; margin-top: 5px; }
.study-badge .icon { width: 15px; height: 15px; }
.study-thread:empty { display: none; }
.study-thread { padding: 24px 32px 0; max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.study-user-question { background: var(--tint); color: var(--forest); padding: 14px 19px; border-radius: 12px; margin-block-end: 18px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.study-response { padding-block: 3px 25px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.study-response-heading { color: var(--gold-ink); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.study-answer-paragraph { font-size: 16px; line-height: 2.1; margin-bottom: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.study-inline-cite { display: inline; color: var(--forest); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.study-evidence { border: 1px solid var(--line); border-radius: 9px; margin-block: 20px 12px; background: #fafbf8; }
.study-evidence > summary { min-height: 46px; padding: 11px 15px; font-size: 13px; color: var(--forest); cursor: pointer; }
.study-source { padding: 18px; border-top: 1px solid var(--line); scroll-margin-top: 145px; }
.study-source h4 { font-family: var(--arabic-sans); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.study-source blockquote { font-family: var(--arabic-sans); font-size: 14px; margin: 0 0 12px; line-height: 2; color: var(--muted); }
.study-source-link { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--forest); padding-block: 6px; display: inline-block; }
.study-answer-note { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.study-prompts { padding: 23px 32px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.study-prompts > span { font-size: 12px; color: var(--muted); margin-inline-end: 5px; }
.study-prompt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #d2ddcb; border-radius: 7px; color: var(--forest); background: #f7f9f3; font-size: 12px; }
.study-prompt:hover { background: var(--tint); border-color: var(--forest); }
.study-prompt .icon { width: 15px; height: 15px; }
.study-form { margin: 23px 32px 0; padding: 16px; border: 1px solid #b2c2aa; border-radius: 11px; background: #fafbf8; }
.study-form:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #214d400a; }
.study-form textarea { display: block; width: 100%; min-height: 78px; border: 0; background: transparent; resize: vertical; color: var(--ink); padding: 5px; font-size: 16px; line-height: 1.9; }
.study-form textarea:focus-visible { outline-offset: 2px; outline: 1px solid var(--forest); }
.study-form-actions { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.study-source-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.study-source-filter select { font: inherit; color: var(--forest); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: var(--white); max-width: 190px; }
.study-form-actions [role="status"] { font-size: 11px; color: var(--muted); margin-inline-end: auto; }
.study-form-actions .primary-button { font-size: 13px; }
.study-footnote { padding: 13px 32px 17px; display: flex; gap: 15px; justify-content: space-between; align-items: start; }
.study-footnote p { font-size: 11px; color: var(--muted); margin: 0; max-width: 740px; }
.study-reset { color: var(--forest); background: transparent; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
.study-coverage { border-top: 1px solid var(--line); padding: 12px 32px; color: var(--muted); background: #f7f8f3; font-size: 12px; }
.study-coverage > summary { cursor: pointer; padding-block: 5px; min-height: 32px; color: var(--forest); }
.study-coverage > p { margin-top: 12px; max-width: 800px; }
.study-coverage .text-link { font-size: 12px; margin-bottom: 10px; }
.study-error, .study-waiting { font-size: 14px; color: var(--muted); }
html[lang="en"] .study-heading h2 { font-size: 32px; }
html[lang="en"] .study-answer-paragraph { line-height: 1.85; }
@media (max-width: 760px) {
  .study-heading { padding: 23px 20px; }
  .study-heading h2, html[lang="en"] .study-heading h2 { font-size: 27px; }
  .study-heading > div > p:last-child { font-size: 13px; }
  .study-badge { display: none; }
  .study-thread { padding: 20px 18px 0; }
  .study-prompts { padding: 18px 18px 0; }
  .study-prompts > span { flex-basis: 100%; }
  .study-prompt { font-size: 11px; gap: 6px; }
  .study-form { margin: 18px 18px 0; padding: 12px; }
  .study-form-actions { flex-wrap: wrap; }
  .study-form-actions [role="status"]:not(:empty) { flex-basis: 100%; }
  .study-form-actions .primary-button { margin-inline-start: auto; }
  .study-footnote { padding-inline: 18px; flex-wrap: wrap; }
  .study-coverage { padding-inline: 18px; }
  .study-answer-paragraph { font-size: 15px; }
  .study-source { padding: 14px; }
}
:root { --arabic-serif: "Amiri", "Traditional Arabic", serif; --arabic-sans: "Noto Sans Arabic", Tahoma, sans-serif; }
body { font-size: 16px; }
.nav-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid #cbd5c5; border-radius: 9px; background: #eef1e9; }
.language-switch a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 4px 11px; font-size: 12px; line-height: 1.5; border-radius: 6px; }
.language-switch a[aria-current="true"] { background: var(--forest); color: white; }
.language-switch a:hover:not([aria-current]) { background: var(--white); }
.language-switch a:focus-visible { outline-offset: 2px; }
.hero-journeys { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero .deck { font-size: 16px; line-height: 2; }
.nav-links a, .quiet-button, .primary-button, .outline-button, .hero-link, .text-link { font-size: 13px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.quiet-button, .primary-button, .outline-button, .more-button, .example { min-height: 44px; }
.eyebrow { font-size: 12px; }
.hero-stats span, .path-note, .section-description, .search-help, .disclaimer { font-size: 13px; }
.search-heading .eyebrow, .source-badge, .search-examples { font-size: 11px; }
textarea, .filter-field input { font-size: 16px; }
.filter-field { min-height: 48px; }
.series-card h3, .path h3, .index .name, .lesson-row .name { font-size: 15px; }
.series-card-body p, .count, .step-count, .breadcrumbs, .colophon p, .footer-grid > div:last-child > a { font-size: 12px; }
.lesson-source-note p, .resource-answer .resource-limit, .result-links .watch, .lesson-pagination strong, .lesson-sidebar li a { font-size: 13px; }
.lesson-pagination span, .lesson-actions .muted, .lesson-sidebar .text-link { font-size: 12px; }
.source-section p:not(.eyebrow) { font-size: 13px; }
.original-title { font-family: var(--arabic-sans); unicode-bidi: isolate; overflow-wrap: anywhere; }
h1.original-title, h2.original-title { font-family: var(--arabic-serif); }
.original-title.series-name { font-family: var(--arabic-sans); }
.books-section { padding-block: 10px 64px; scroll-margin-top: 120px; }
.books-section .section-heading { flex-wrap: wrap; align-items: flex-end; }
.books-section .section-description { max-width: 680px; }
.book-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.book-grid li { border-block-end: 1px solid var(--line); }
.book-grid a { display: flex; align-items: flex-start; gap: 20px; padding: 24px 16px; height: 100%; border-radius: 8px; transition: background .18s; }
.book-grid a:hover { background: var(--tint); }
.book-grid a > div { min-width: 0; }
.book-grid h3 { font-size: 16px; line-height: 1.9; font-weight: 500; margin: 0 0 8px; }
.book-grid p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.book-number { color: var(--gold-ink); font-family: Georgia,serif; font-size: 20px; flex-shrink: 0; min-width: 22px; }
.book-source { color: var(--forest); font-size: 12px; display: inline-flex; gap: 8px; align-items: center; }
.book-source .icon { width: 14px; height: 14px; }
html[lang="en"] { --serif: Georgia, "Times New Roman", serif; --sans: "Segoe UI", "Noto Sans Arabic", sans-serif; }
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] .brand strong { font-size: 24px; }
html[lang="en"] .brand small { font-size: 10px; }
html[lang="en"] .hero { grid-template-columns: 1.2fr 1fr; gap: 40px; }
html[lang="en"] .hero h1 { font-size: clamp(40px,4.2vw,58px); line-height: 1.12; letter-spacing: -1.8px; }
html[lang="en"] .hero .deck { font-size: 17px; line-height: 1.8; max-width: 460px; }
html[lang="en"] .hero-stats strong { font-size: 34px; }
html[lang="en"] .hero-stats { gap: 18px; }
html[lang="en"] .hero-stats > div + div { padding-inline-start: 18px; }
html[lang="en"] .hero-stats span { font-size: 12px; }
html[lang="en"] .portrait-caption { right: auto; left: 0; }
html[lang="en"] .portrait-caption strong { font-size: 23px; }
html[lang="en"] .search-heading h2 { font-size: 28px; line-height: 1.3; }
html[lang="en"] h2 { line-height: 1.3; }
html[lang="en"] .icon-arrow { transform: scaleX(-1); }
html[lang="en"] .hero-link:hover .icon-arrow, html[lang="en"] .text-link:hover .icon-arrow { transform: scaleX(-1) translateX(-4px); }
html[lang="en"] .brand-icon { border-radius: 14px 14px 3px 14px; }
html[lang="en"] .cover-label { right: auto; left: 15px; }
html[lang="en"] .cover-arrow { left: auto; right: 13px; }
html[lang="en"] .card-index { left: auto; right: 16px; }
html[lang="en"] .series-card h3 { padding-inline: 20px 0; }
html[lang="en"] .section-heading h2 { margin-bottom: 12px; }
html[lang="en"] .search-intro h1 { line-height: 1.2; }
html[lang="en"] .book-grid h3 { text-align: right; }
html[lang="en"] .original-title.name { text-align: right; }
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; gap: 12px 24px; padding-block: 12px; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: center; gap: 36px; border-top: 1px solid var(--line); }
  .nav-links a { padding-block: 6px; }
  html { scroll-padding-top: 150px; }
  .hero { gap: 28px; }
  html[lang="en"] .hero { gap: 22px; }
  html[lang="en"] .hero h1 { font-size: 46px; }
}
@media (max-width: 760px) {
  .nav { gap: 10px; padding-block: 10px 4px; }
  .nav-tools { gap: 7px; }
  .language-switch a { min-height: 38px; padding-inline: 8px; font-size: 11px; }
  .saved-trigger { width: 44px; height: 44px; padding: 10px; }
  .saved-trigger > span { display: none; }
  .nav-links { padding-top: 0; gap: 30px; }
  .nav-links a { font-size: 12px; padding-block: 6px; }
  .brand small { display: none; }
  .brand strong, html[lang="en"] .brand strong { font-size: 21px; }
  .brand-icon { width: 32px; height: 36px; }
  .brand { gap: 7px; }
  .hero .deck, html[lang="en"] .hero .deck { font-size: 15px; line-height: 1.9; }
  .hero-journeys { gap: 16px; }
  .hero-journeys .primary-button { font-size: 12px; }
  .section-description, .search-help, .disclaimer, .path-note { font-size: 12px; }
  .search-heading .eyebrow { font-size: 10px; }
  .search-examples { font-size: 11px; }
  .search-heading h2, html[lang="en"] .search-heading h2 { font-size: 25px; line-height: 1.5; }
  .search-field textarea { min-height: 58px; }
  .path h3, .series-card h3 { font-size: 14px; }
  .path a { min-height: 185px; }
  .book-grid { grid-template-columns: 1fr; }
  .books-section { padding-bottom: 40px; }
  .book-grid a { padding-inline: 4px; }
  .source-section p:not(.eyebrow), .colophon p { font-size: 12px; }
  .index .count { font-size: 11px; }
  .result-links .text-link, .result-links .watch { font-size: 12px; }
  html[lang="en"] .hero { grid-template-columns: 1fr 1fr; }
  html[lang="en"] .hero h1 { font-size: 39px; }
  html[lang="en"] .cover-label { left: 7px; }
  html[lang="en"] .section-heading h2 { font-size: 31px; }
}
@media (max-width: 540px) {
  .hero, html[lang="en"] .hero { grid-template-columns: 1fr; padding-top: 125px; gap: 0; position: relative; }
  .hero-copy { text-align: center; }
  .hero .eyebrow, .hero-journeys, .hero-stats { justify-content: center; }
  .hero-art { height: 78px; width: 78px; position: absolute; top: 25px; left: calc(50% - 39px); }
  .hero-art::before, .portrait-caption, .spark-one, .spark-two { display: none; }
  .portrait-frame { width: 72px; height: 72px; border-radius: 50%; box-shadow: none; }
  .portrait-frame img { object-position: center 25%; }
  .arch-outline { width: 80px; height: 80px; border-radius: 50%; transform: none; }
  .hero .deck { margin-inline: auto; }
  html[lang="en"] .hero h1 { font-size: 41px; letter-spacing: -1.2px; }
  .path { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path li:last-child { grid-column: 1/-1; }
  .path li:last-child a { min-height: 130px; }
  .hero-stats strong, html[lang="en"] .hero-stats strong { font-size: 30px; }
  .hero-stats span, html[lang="en"] .hero-stats span { font-size: 12px; }
}
@media (max-width: 370px) {
  .nav .brand { margin-inline: auto; }
  .nav-tools { width: 100%; justify-content: space-between; }
  .language-switch a { min-height: 40px; padding-inline: 16px; }
  .nav-links { gap: 24px; }
  html { scroll-padding-top: 185px; }
  html[lang="en"] .hero h1 { font-size: 36px; }
  .hero-journeys { gap: 10px; }
  .hero-stats { gap: 14px; }
}
