/* Hakikat Books - book chapters pilot. Palette from the main site (deep green, gold, cream paper). Logical properties only. */
:root {
  --paper: #f7f4ec; --surface: #fffdf8; --ink: #1b2a22; --muted: #59655d; --line: #e3dccb;
  --cobalt: #1f4d36; --cobalt-ink: #ffffff; --turq: #9a7a2c; --turq-soft: #f2e9cf;
  --deep: #0f2a1d; --deep-2: #163b29; --gold: #d4b25c; --cream: #f4efe1;
  --notice-bg: #fff3bf; --notice-ink: #4a3a00; --notice-line: #d9b92e;
  --serif: 'Noto Serif', Georgia, serif;
  --serif-ar: 'Noto Serif', 'Noto Naskh Arabic', 'Amiri', Georgia, serif;
  --thaana: 'MV Faseyha', 'Faruma', 'Noto Sans Thaana', 'MV Boli', 'Noto Naskh Arabic', 'Amiri', sans-serif;
  --sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px; --measure: 68ch; --fz: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0c1610; --surface: #122019; --ink: #ece6d6; --muted: #a8b2a9; --line: #24372c;
    --cobalt: #d4b25c; --cobalt-ink: #0c1610; --turq: #d4b25c; --turq-soft: #2b2a17;
    --notice-bg: #3d3410; --notice-ink: #ffeaa0; --notice-line: #8a7425; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0c1610; --surface: #122019; --ink: #ece6d6; --muted: #a8b2a9; --line: #24372c;
  --cobalt: #d4b25c; --cobalt-ink: #0c1610; --turq: #d4b25c; --turq-soft: #2b2a17;
  --notice-bg: #3d3410; --notice-ink: #ffeaa0; --notice-line: #8a7425; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 4.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-block-start: 1.6em; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.page { padding-block: 8px 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -60px; background: var(--gold); color: #1b2a22; padding: 10px 16px; border-radius: var(--radius); z-index: 100; font-weight: 600; }
.skip:focus { inset-block-start: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--muted); padding-block: 16px 8px; }
.crumbs a { color: var(--muted); }
.notice { background: var(--notice-bg); color: var(--notice-ink); border: 1px solid var(--notice-line); border-inline-start-width: 6px; padding: 10px 14px; border-radius: var(--radius); margin-block: 8px 16px; font-weight: 600; }
.eyebrow { margin: 8px 0 4px; font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.lead { font-size: 1.15rem; }
.btn { display: inline-block; background: var(--cobalt); color: var(--cobalt-ink); padding: 9px 16px; border-radius: var(--radius); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: var(--cobalt); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0 0 4px; }
.toc { padding-inline-start: 2.6em; line-height: 1.5; }
.toc li { padding-block: 4px; }
.toc-grup { margin-block: 1.1em .3em; font-size: 1.05rem; }
.toc-g li.nonum { list-style: none; }
.toc li:not(.toc-extra) + li.toc-extra { margin-block-start: .8em; padding-block-start: .8em; border-block-start: 1px solid rgba(128,128,128,.35); }
.ed-title { margin-block-start: .3em; }

/* chapter navigation */
.chnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 12px; align-items: stretch; margin-block: 12px; }
.chnav a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.chnav a:hover { border-color: var(--cobalt); }
.chnav .next { text-align: end; }
.chnav .prev { text-align: start; }
.chnav .ct { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chnav .toc-link { align-items: center; justify-content: center; }
@media (max-width: 560px) { .chnav { grid-template-columns: 1fr 1fr; } .chnav .toc-link { grid-column: 1 / -1; order: 3; } }
html[dir='rtl'] .dir-l { unicode-bidi: plaintext; }

/* toolbar */
.toolbar { position: sticky; inset-block-start: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--paper); border-block: 1px solid var(--line); padding-block: 8px; margin-block: 8px 16px; }
.toolbar button, .toolbar select { font: inherit; font-size: .9rem; min-height: 38px; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.toolbar button[aria-pressed='true'] { background: var(--cobalt); color: var(--cobalt-ink); border-color: var(--cobalt); }
.toolbar button:hover { border-color: var(--cobalt); }

/* reading text */
.text { max-width: var(--measure); margin-inline: auto; font-family: var(--serif-ar); font-size: calc(1.125rem * var(--fz)); line-height: 1.75; overflow-wrap: break-word; }
html.wide .text { max-width: 92ch; }
.text:lang(dv) { font-family: var(--thaana); line-height: 2; font-size: calc(1.25rem * var(--fz)); }
.text p, .text h3 { position: relative; margin: 0 0 1em; }
.text h3 { font-size: 1.15em; margin-block: 1.6em .6em; }
.text p:target, .text h3:target, .alt:target { background: var(--turq-soft); box-shadow: -8px 0 0 var(--turq-soft), 8px 0 0 var(--turq-soft); }
.text .poem { margin-inline-start: 1.2em; padding-inline-start: .8em; border-inline-start: 3px solid var(--gold); font-style: normal; }
.text sup.fn { font-size: .7em; line-height: 0; font-family: var(--sans); font-weight: 600; margin-inline-start: .1em; unicode-bidi: isolate; }
.text sup.fn a { color: var(--cobalt); text-decoration: none; padding: 0 .15em; }
.text sup.fn a:hover, .text sup.fn a:focus-visible { text-decoration: underline; }
.text sup.fn:target, .text .fn-list li:target { background: var(--turq-soft); }
.text .fnotes { margin-block-start: 2.4em; padding-block-start: .4em; border-block-start: 1px solid var(--line); font-size: .9em; line-height: 1.6; }
.text .fnotes .fn-h { font-size: 1em; margin-block: .6em .5em; font-family: var(--sans); color: var(--muted); text-transform: none; }
.text .fn-list { margin: 0; padding-inline-start: 1.8em; }
.text .fn-list li { margin-block-end: .5em; }
.text .fn-back { margin-inline-start: .3em; text-decoration: none; font-family: var(--sans); }
.text.sbs > .fnotes { grid-column: 1 / -1; }
.text b { font-weight: 700; } .text i { font-style: italic; }
.ar, .text [lang='ar'] { font-family: 'Noto Naskh Arabic', 'Amiri', serif; }

/* side by side */
.text.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 1120px; }
.text.sbs > .alt, .text.sbs > p, .text.sbs > h3 { min-width: 0; }
.alt { position: relative; margin: 0 0 1em; padding-inline-start: 14px; border-inline-start: 2px solid var(--line); }
.alt.h3 { font-weight: 600; margin-block-start: 1.6em; }
.alt:lang(dv) { font-family: var(--thaana); line-height: 2; font-size: 1.1em; }
.alt:not(:lang(dv)) { font-family: var(--serif-ar); }
.alt.poem { border-inline-start-color: var(--gold); }
.sbs-msg { grid-column: 1 / -1; color: var(--muted); font-family: var(--sans); font-size: .9rem; }
@media (max-width: 719px) {
  .text.sbs { display: block; }
  .alt { margin-block-start: -.4em; color: var(--muted); }
}

/* paragraph tools (added by JS) */
.pt { position: absolute; inset-inline-end: 0; inset-block-start: -1.15em; z-index: 5; display: flex; flex-direction: row; gap: 4px; align-items: center; font-family: var(--sans); font-size: 14px; line-height: 1; direction: ltr; }
.pt-bar { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.12); opacity: 0; visibility: hidden; }
.text p:hover > .pt .pt-bar, .text h3:hover > .pt .pt-bar, .pt:focus-within .pt-bar, .pt.open .pt-bar { opacity: 1; visibility: visible; }
.pt-bar a, .pt-bar button, .pt-more { font: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 6px; padding: 6px 9px; text-decoration: none; cursor: pointer; min-height: 30px; display: inline-flex; align-items: center; }
.pt-bar a:hover, .pt-bar button:hover { background: var(--turq-soft); }
.pt-more { background: var(--surface); border: 1px solid var(--line); min-width: 30px; justify-content: center; font-weight: 700; opacity: 0; }
.text p:hover > .pt .pt-more, .pt:focus-within .pt-more, .pt.open .pt-more { opacity: 1; }
@media (hover: none), (pointer: coarse) { .pt-more { opacity: .75; min-width: 36px; min-height: 36px; } }
.pt { unicode-bidi: isolate; }

.other-langs, .share { max-width: var(--measure); margin-inline: auto; }
.share .chip, .other-langs .chip { min-height: 40px; }

/* ======================= Faz 2: site shell ======================= */
.site-head { background: var(--deep); color: var(--cream); border-block-end: 1px solid rgba(212,178,92,.25); position: relative; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--cream); text-decoration: none; white-space: nowrap; }
.brand:focus-visible, .nav a:focus-visible, .hbtn:focus-visible, .uisel:focus-visible { outline-color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-inline-start: 12px; }
.nav a { color: var(--cream); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a[aria-current] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.head-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.uisel { max-width: 150px; font: inherit; font-size: .875rem; min-height: 38px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(212,178,92,.5); background: #14301f; color: var(--cream); }
.hbtn { font: inherit; min-width: 40px; min-height: 40px; border-radius: 6px; border: 1px solid rgba(212,178,92,.5); background: transparent; color: var(--cream); cursor: pointer; }
.hbtn:hover { background: rgba(255,255,255,.1); }
.uilink { color: var(--cream); font-size: .875rem; }
.js .uilink { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .js .menu-btn { display: inline-block; }
  .js .nav { display: none; width: 100%; order: 5; margin: 0; flex-direction: column; padding-block: 6px 10px; }
  .js .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .uisel { max-width: 120px; }
}
.site-foot { background: var(--deep); color: var(--cream); margin-block-start: 56px; padding-block: 28px; font-size: .9rem; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot p { margin: 0; max-width: 70ch; color: #cfd8cf; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--gold); }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .nojs-only { display: none; }
.card-link { text-decoration: none; color: inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cobalt); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: 8px 18px; }
.btn:hover { filter: brightness(1.1); }
.btn.line { background: transparent; color: var(--cobalt); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0f2a1d; }
.btn.line[aria-pressed='true'] { background: var(--cobalt); color: var(--cobalt-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }

/* generic layout */
.sec { padding-block: 36px 8px; }
.sec > h2:first-child { margin-block-start: 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ed a, .wk a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; color: var(--ink); }
.ed img, .wk img, .cover { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1309; object-fit: cover; background: var(--turq-soft); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ed a:hover img, .wk a:hover img { box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ed-t, .wk-t { font-family: var(--serif); font-weight: 600; line-height: 1.3; font-size: .95rem; overflow-wrap: anywhere; }
.ed-l, .wk-a { color: var(--muted); font-size: .85rem; }
.ed:focus-within img, .wk:focus-within img { outline: 3px solid var(--turq); outline-offset: 2px; }
.cardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cardlist .card a { text-decoration: none; display: block; color: inherit; }
.cardlist .card:hover { border-color: var(--cobalt); }
.card .nat { font-size: 1.05rem; }
.hide { display: none !important; }

/* hero */
.hero { background: var(--deep); color: var(--cream); background-image: radial-gradient(1200px 400px at 85% -10%, rgba(212,178,92,.18), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-block: 48px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-block-end: .4em; }
.hero .kicker { color: var(--gold); font-weight: 600; letter-spacing: .04em; margin: 0 0 8px; }
.hero .lead { color: #dfe6dc; max-width: 54ch; }
.hero .btn { border-color: var(--gold); }
.hero .btn.line { color: var(--cream); border-color: rgba(212,178,92,.6); }
.hero-covers { display: flex; justify-content: center; padding-inline-start: 0; }
.hero-covers img { width: 30%; max-width: 150px; aspect-ratio: 900/1309; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.45); margin-inline-start: -7%; transform: translateY(var(--dy, 0)); background: #163b29; }
.hero-covers img:first-child { margin-inline-start: 0; }
.hero-covers img:nth-child(2n) { --dy: 14px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 32px; } .hero-covers { order: -1; } .hero-covers img { max-width: 90px; } }
.banner { background: var(--turq-soft); border-block-end: 1px solid var(--line); padding-block: 10px; font-size: .95rem; }
.banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

.paths3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pathcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink); }
.pathcard:hover { border-color: var(--cobalt); }
.pathcard b { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.pathcard span { color: var(--cobalt); font-weight: 600; }
.qlist { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }

.langcards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); list-style: none; margin: 0; padding: 0; }
.langcard a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.langcard a:hover { border-color: var(--cobalt); }
.langcard .stack { display: flex; height: 76px; margin-block-end: 10px; }
.langcard .stack img { height: 100%; width: auto; aspect-ratio: 900/1309; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.3); margin-inline-start: -22px; background: var(--turq-soft); }
.langcard .stack img:first-child { margin-inline-start: 0; }
.langcard b { display: block; font-family: var(--serif); }
.langcard small { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; text-align: center; padding-block: 28px; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--cobalt); line-height: 1.1; }
.stats span { color: var(--muted); }
.maptease { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; }
.maptease img { display: block; width: 100%; height: auto; aspect-ratio: 1000/520; }
.maptease span { display: block; padding: 12px 16px; font-weight: 600; }

/* work / edition */
.bookhead { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 28px; align-items: start; padding-block: 8px 12px; }
.bookhead .cover { max-width: 260px; }
@media (max-width: 640px) { .bookhead { grid-template-columns: 1fr; } .bookhead .cover { max-width: 190px; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.who { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-block: 12px; }
.who p { margin: 4px 0; }
.qr { display: flex; gap: 14px; align-items: center; margin-block: 14px; }
.qr img { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.usenote { color: var(--muted); font-size: .9rem; max-width: 70ch; }
.chip.on { background: var(--cobalt); color: var(--cobalt-ink); border-color: var(--cobalt); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-block: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.filters select, .filters input[type=search], .field { font: inherit; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 170px; }
.filters .grow { flex: 1 1 260px; }
.filters .grow input { width: 100%; }
.count { color: var(--muted); margin-inline-start: auto; align-self: center; }
.worksec h2 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.worksec h2 a { color: var(--ink); text-decoration: none; }
.worksec h2 a:hover { text-decoration: underline; }

/* map */
.mapbox { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mapbox svg, .mapbox img { display: block; width: 100%; height: auto; aspect-ratio: 1000/520; }
.mapbox svg path { fill: #d9d2bf; stroke: var(--surface); stroke-width: .4; vector-effect: non-scaling-stroke; }
.mapbox svg path.has { fill: var(--cobalt); cursor: pointer; }
.mapbox svg path.has:hover, .mapbox svg path.has:focus { fill: var(--gold); outline: none; }
.mapbox svg path.sel { fill: var(--gold); }
:root[data-theme='dark'] .mapbox svg path { fill: #2a3a30; }
:root[data-theme='dark'] .mapbox svg path.has { fill: #d4b25c; }
:root[data-theme='dark'] .mapbox svg path.has:hover { fill: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mapbox svg path { fill: #2a3a30; } :root:not([data-theme='light']) .mapbox svg path.has { fill: #d4b25c; } }
.maplegend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-block: 8px; }
.maplegend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-inline-end: 6px; vertical-align: -1px; }
.maptip { position: absolute; pointer-events: none; background: var(--deep); color: var(--cream); padding: 4px 10px; border-radius: 6px; font-size: .85rem; z-index: 5; transform: translate(-50%, -140%); white-space: nowrap; }
.soon { columns: 3 220px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.soon li { break-inside: avoid; padding-block: 4px; border-block-end: 1px dotted var(--line); font-size: .95rem; }
.soon a { font-size: .8rem; margin-inline-start: 6px; }

/* paths */
.pathsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-block: 18px; }
.pathsec h2 { margin-block-start: 0; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.steps li a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.steps img { width: 64px; height: auto; aspect-ratio: 900/1309; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.steps small { color: var(--cobalt); font-weight: 600; display: block; }

/* search */
.sresults { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.sresults a { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.sresults a:hover { border-color: var(--cobalt); }
.sresults small { color: var(--muted); min-width: 7em; }
.field-lg { width: 100%; font-size: 1.1rem; min-height: 52px; }

/* reader page */
.oku-frame { width: 100%; height: min(78vh, 900px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose { max-width: 70ch; }
.prose p { margin-block: 0 1em; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.svlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.svlist li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.svlist img { width: 56px; height: auto; aspect-ratio: 900/1309; object-fit: cover; border-radius: 3px; }
.svlist .grow { flex: 1; min-width: 0; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.rtl-num { unicode-bidi: plaintext; }
.use-h { font-size: 1rem; margin: 18px 0 8px; color: var(--muted); font-family: var(--sans); text-transform: none; }
.chip small { color: var(--muted); margin-inline-start: 6px; }
.cc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.langrow { padding-block: 12px; border-block-end: 1px solid var(--line); }
.langrow h3 { margin: 0 0 6px; font-size: 1.1rem; }
.langrow h3 a { text-decoration: none; }
.langrow h3 small { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.crumbs { padding-block: 14px 6px; }
html[dir='rtl'] .arr { display: inline-block; transform: scaleX(-1); }
.chooser { columns: 4 200px; column-gap: 20px; list-style: none; padding: 0; margin: 20px 0; }
.chooser li { padding-block: 5px; break-inside: avoid; }
.chooser a { text-decoration: none; font-size: 1.1rem; }
.suggest { background: var(--turq-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-block: 16px; font-size: 1.15rem; }
.print-hide { }

/* fixes after first visual review */
.hero-covers { align-items: center; max-height: 340px; }
.hero-covers img { width: auto; height: 300px; max-width: none; flex: 0 0 auto; }
@media (max-width: 760px) { .hero-covers img { height: 160px; } .hero-covers { max-height: 180px; } }
.pathcard > a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.pathcard > a b { color: var(--ink); }
.pathcard .chips { margin-block-start: 4px; }
.maptease img { background: var(--surface); min-height: 120px; }
.hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-covers { overflow: hidden; min-width: 0; }
.hero-covers img { flex: 0 1 auto; min-width: 0; }
.maptease span { display: block; }

/* cover placeholder (edition without its own cover) */
.cover.ph { aspect-ratio: 900 / 1309; background: #0f2a1d; color: var(--cream); display: flex; align-items: center; justify-content: center; text-align: center; padding: 14%; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.35; border-radius: 4px; box-shadow: inset 0 0 0 7px #0f2a1d, inset 0 0 0 9px var(--gold), 0 2px 8px rgba(0,0,0,.18); overflow: hidden; overflow-wrap: anywhere; }
.cover.ph:lang(dv) { font-family: var(--thaana); line-height: 2; }
.cover.phc { font-size: .95rem; padding: 12%; }

/* chapter-by-chapter visibility */
.badge { display: inline-block; align-self: flex-start; background: var(--gold); color: #0f2a1d; border-radius: 999px; font-size: .75rem; font-weight: 600; padding: 1px 9px; text-decoration: none; line-height: 1.5; }
.worksec h2 a.badge { color: #0f2a1d; font-family: var(--sans); }
.worksec h2 a.badge:hover { text-decoration: underline; }
.chcard { display: flex; gap: 14px; align-items: flex-start; }
.chcard img { width: 64px; height: auto; aspect-ratio: 900/1309; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.25); flex: none; }
.chcard h3 { margin: 0 0 8px; }
.chlist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0f2a1d; }

/* ---- Keşfet (topics, concepts, concept map) ---- */
.notice.soft { font-weight: 400; }
.kf h1 { overflow-wrap: anywhere; }
.kf blockquote { margin-inline: 0; padding: 10px 16px; border-inline-start: 4px solid var(--gold); background: var(--surface); border-radius: var(--radius); }
.kf-card h3 { margin-block: 0 4px; }
.kf-card .chips { margin-block: 8px 0; }
.kf-mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kf-mini .card-link h3 { margin-block: 0 4px; font-size: 1.05rem; }
.kf-hits { list-style: none; padding: 0; display: grid; gap: 14px; }
.kf-hit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.kf-hit-h { margin-block: 0 6px; color: var(--muted); font-size: .92rem; }
.kf-hit blockquote { margin-block: 0 8px; border-inline-start-color: var(--cobalt); }
mark { background: var(--notice-bg); color: inherit; border-radius: 3px; padding-inline: 1px; }
.kf-rels { list-style: none; padding: 0; display: grid; gap: 16px; }
.kf-rel-t { color: var(--cobalt); padding-inline: 4px; }
.kf-article { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; background: var(--surface); margin-block: 10px; }
.kf-list ul { padding-inline-start: 1.2em; }
.kf-list > li { margin-block: 10px; }
.kfmap-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kfmap { display: block; width: 100%; min-width: 1100px; height: auto; font-size: 13px; }
.kfmap text { fill: var(--ink); font-family: inherit; }
.kfmap a { cursor: pointer; }
.kfmap a:hover text, .kfmap a:focus text { text-decoration: underline; }
.kfmap a:focus { outline: none; }
.kfmap a:focus circle { stroke: var(--gold); stroke-width: 3; }
.kfm-e { fill: none; stroke: var(--line); stroke-width: 1.2; }
.kfm-c0 { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; }
.kfm-g0 { fill: var(--ink); }
.kfm-t0 { fill: var(--cobalt); }
.kfm-s { fill: var(--surface); stroke: var(--cobalt); stroke-width: 1.5; }
.kfm-g text { font-weight: 700; }
.kfm-t text { font-weight: 600; }
.kfm-has circle { stroke: var(--gold); stroke-width: 3; }
.kfm-rel { fill: none; stroke: var(--gold); stroke-width: 2; }
.kfm-ah { fill: var(--gold); }
.kfm-rl { fill: var(--muted); font-size: 12px; font-style: italic; }
.kf-legend i { border-radius: 50%; }
.kfm-key-g { background: var(--deep); } .kfm-key-t { background: var(--cobalt); }
.kfm-key-s { background: var(--surface); border: 1.5px solid var(--cobalt); } .kfm-key-c { background: var(--gold); }
.kfm-key-r { background: var(--gold); border-radius: 0 !important; height: 3px !important; vertical-align: 3px !important; width: 18px !important; }
.kfm-key-h { background: transparent; border: 3px solid var(--gold); box-sizing: border-box; }
/* map: highlighted countries, mini maps, fallback */
.mapbox.mini { max-width: 760px; }
.mapfallback { display: block; padding: 28px 16px; text-align: center; color: var(--muted); aspect-ratio: 1000/520; box-sizing: border-box; }
.mapbox svg path.sel { fill: var(--gold); stroke: var(--deep); stroke-width: 1; }
.mapbox svg path:focus { outline: none; stroke: var(--ink); stroke-width: 1.6; }
:root[data-theme='dark'] .mapbox svg path.sel { fill: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mapbox svg path.sel { fill: #fff; } }
/* search modes + in-book hits */
.smodes { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.smodes label { display: inline-flex; gap: 6px; align-items: center; }
.bk-hit a { display: block; }
.bk-hit small { display: block; margin-block-end: 4px; min-width: 0; }
.bk-hit mark { font-weight: 600; }
.kf { min-width: 0; max-width: 100%; box-sizing: border-box; }
.maplegend { flex-wrap: wrap; }

/* ---- questions ---- */
.qbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; margin-block: 8px 14px; }
.qbox summary { cursor: pointer; font-weight: 600; }
.qbox ol { padding-inline-start: 1.4em; margin-block: 8px 4px; }
.qbox li { margin-block: 6px; }
.text p.qhl { background: var(--notice-bg); box-shadow: -8px 0 0 var(--notice-bg), 8px 0 0 var(--notice-bg); border-radius: 3px; }
.qm { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-inline-start: 6px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: var(--notice-bg); color: var(--notice-ink); font: 700 .75rem/1 inherit; cursor: pointer; vertical-align: 2px; }
.qtip { position: absolute; z-index: 60; max-width: min(420px, calc(100vw - 16px)); background: var(--deep); color: var(--cream); border-radius: 8px; padding: 8px 12px; font-size: .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.qtip p { margin: 4px 0; }
.qwork h2 { margin-block-end: 6px; }
.qchap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px 14px; margin-block: 6px; }
.qchap summary { cursor: pointer; font-weight: 600; }
.qlist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.qq { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.qq:hover, .qq:focus-visible { background: var(--turq-soft); outline: none; }
.qq::before { content: '+ '; color: var(--cobalt); font-weight: 700; }
.qq[aria-expanded='true']::before { content: '\2212 '; }
.qans { margin: 4px 10px 10px; padding: 8px 14px; border-inline-start: 4px solid var(--cobalt); border-radius: 6px; }
.qtopic { padding-inline-start: 1.2em; }
.qtopic li { margin-block: 6px; }

/* ======================= Faz 2b ======================= */
/* pastel shelf colours (raf) with darker ink companions */
:root {
  --hero-bg: var(--deep); --hero-h: #fff; --hero-k: var(--gold); --hero-lead: #dfe6dc; --hero-line: rgba(212,178,92,.6);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.11' stroke-width='1'%3E%3Cg id='s'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3Ccircle cx='24' cy='24' r='4'/%3E%3C/g%3E%3Cuse href='%23s' x='-24' y='-24'/%3E%3Cuse href='%23s' x='24' y='-24'/%3E%3Cuse href='%23s' x='-24' y='24'/%3E%3Cuse href='%23s' x='24' y='24'/%3E%3C/g%3E%3C/svg%3E");
}
.raf-gok { --c1: #DCEEFB; --ink2: #123a57; --dot: #4a97cf; }
.raf-nane { --c1: #DFF0E5; --ink2: #1c4a30; --dot: #4a9f6a; }
.raf-lavanta { --c1: #EAE4F8; --ink2: #3b2f6b; --dot: #8470c4; }
.raf-kum { --c1: #FBF0D4; --ink2: #5c4308; --dot: #c9a13a; }
.raf-seftali { --c1: #FDE8D7; --ink2: #7a3510; --dot: #e08a50; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--dot, var(--gold)); margin-inline-end: .5em; flex: none; }

/* textless cover with real-text title */
.bcover { --bc-ink: var(--ink2, #1b2a22); position: relative; aspect-ratio: 2 / 3; width: 100%; border-radius: 10px; overflow: hidden; container-type: inline-size; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12% 9% 16%;
  background: var(--star) center / 48px 48px, linear-gradient(160deg, var(--c1, #eee), color-mix(in srgb, var(--c1, #eee) 55%, #fff)); background-color: var(--c1, #eee);
  color: var(--bc-ink); box-shadow: 0 2px 10px rgba(0,0,0,.16); border: 1px solid rgba(0,0,0,.06); }
.bcover.has-img { background: #000; }
.bc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcover.dark { --bc-ink: #fff; }
.bcover.dark.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.55)); }
.bc-t, .bc-s { position: relative; z-index: 1; }
.bc-t { font-family: var(--serif-ar); font-weight: 700; line-height: 1.25; font-size: 10cqw; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.bcover.s1 .bc-t { font-size: 14cqw; } .bcover.s2 .bc-t { font-size: 11.5cqw; } .bcover.s3 .bc-t { font-size: 9.5cqw; } .bcover.s4 .bc-t { font-size: 8cqw; }
.bcover:lang(dv) .bc-t { font-family: var(--thaana); line-height: 1.8; }
.bcover.dark .bc-t { text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.bc-s { position: absolute; inset-inline: 8%; inset-block-end: 5%; font-size: max(.62rem, 5.2cqw); line-height: 1.2; font-family: var(--sans); font-weight: 600; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcover.dark .bc-s { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.bcover.big { max-width: 240px; }

/* booklet cards and shelves */
.shelf { margin-block: 18px 22px; }
.shelf h3 { display: inline-flex; align-items: center; background: var(--c1); color: var(--ink2); font-family: var(--sans); font-size: 1rem; padding: 4px 16px 4px 12px; border-radius: 999px; margin: 0 0 12px; }
.shelf h3 .dot { margin-inline-end: .5em; }
.bkgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shelf .bkgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .shelf .bkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bkcard a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; color: var(--ink); }
.bkcard a:hover .bcover { box-shadow: 0 5px 16px rgba(0,0,0,.28); }
.bkcard a:focus-visible .bcover { outline: 3px solid var(--turq); outline-offset: 2px; }
.bk-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-m { display: flex; align-items: center; font-size: .88rem; font-weight: 600; }
.bk-src { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.bk-head { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 28px; align-items: start; padding-block: 8px 12px; }
@media (max-width: 640px) { .bk-head { grid-template-columns: 1fr; } .bk-head .bcover.big { max-width: 190px; } }
.bk-info .eyebrow { display: flex; align-items: center; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.bk-min { font-weight: 600; }
.bk-topic { margin-block: 8px; }
.bk-toc .toc { max-width: 60ch; }
.text h2.bk-ch-h { font-family: var(--serif); font-size: 1.45em; margin-block: 2.2em .8em; padding-block-start: .8em; border-block-start: 1px solid var(--line); position: relative; }
.text h2.bk-ch-h:first-child { border: 0; padding: 0; margin-block-start: .4em; }
.text.sbs > h2 { grid-column: 1 / -1; }
.bkpage .text { margin-block-start: 8px; }

/* home: compact top, search, core books */
.hero-compact .wrap { display: block; max-width: 880px; padding-block: 30px 26px; }
.hero { background: var(--hero-bg); color: var(--cream); }
.hero h1 { color: var(--hero-h); } .hero .kicker { color: var(--hero-k); } .hero .lead { color: var(--hero-lead); }
.hero .btn.line { border-color: var(--hero-line); color: var(--hero-h); }
.hero-compact h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.homesearch { display: flex; gap: 8px; margin-block: 14px 8px; align-items: stretch; }
.homesearch .field { flex: 1 1 auto; min-width: 0; }
.homesearch .btn { border: 0; font: inherit; cursor: pointer; padding-inline: 22px; }
.where { margin: 0 0 4px; }
.where a { color: var(--hero-k); font-weight: 600; }
.hero .use-h { color: var(--hero-lead); margin-block: 14px 8px; }
.paths3.compact { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.pathcard.compact { padding: 0; flex-direction: row; }
.pathcard.compact > a { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; width: 100%; }
.pathcard.compact b { font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.pathcard.compact .arr { color: var(--cobalt); font-weight: 700; }
.corelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.corecard { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: flex-start; }
.core-cover { flex: 0 0 104px; display: block; }
.core-cover img, .core-cover .cover { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1309; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.core-cover .cover.ph { font-size: .72rem; padding: 10%; box-shadow: inset 0 0 0 4px #0f2a1d, inset 0 0 0 5px var(--gold), 0 2px 8px rgba(0,0,0,.2); }
.core-body { min-width: 0; flex: 1; }
.core-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.core-body h3 a { color: var(--ink); text-decoration: none; }
.core-body h3 a:hover { text-decoration: underline; }
.core-who { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.core-chl { margin: 0 0 4px; }
.core-body .chips .chip { padding: 2px 10px; font-size: .85rem; }
.core-body .actions { margin-block: 10px 0; gap: 8px; }
.core-body .btn { padding: 6px 12px; font-size: .9rem; }
.statsline { text-align: center; font-family: var(--serif); font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 600; color: var(--cobalt); padding-block: 30px 6px; margin: 0; }
.cover.tiny.ph, .steps .cover.ph { width: 64px; aspect-ratio: 900/1309; border-radius: 3px; padding: 0; box-shadow: inset 0 0 0 3px #0f2a1d, inset 0 0 0 4px var(--gold); }
.cover.tiny.ph span, .steps .cover.ph span { display: none; }
.chip.on { background: var(--cobalt); color: var(--cobalt-ink); border-color: var(--cobalt); }

/* skin switch + preview ribbon */
.pv-ribbon { background: #fff3bf; color: #4a3a00; font-size: .85rem; border-block-end: 1px solid #d9b92e; padding-block: 4px; position: relative; z-index: 60; }
.pv-ribbon .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.skin-sw { display: inline-flex; align-items: center; gap: 6px; }
.skin-sw button { font: inherit; font-weight: 700; min-width: 34px; min-height: 28px; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 6px; cursor: pointer; }
.skin-sw button[aria-pressed='true'] { background: #4a3a00; color: #fff3bf; border-color: #4a3a00; }
.site-foot .skin-sw button[aria-pressed='true'] { background: var(--gold); color: #0f2a1d; border-color: var(--gold); }
.site-foot .skin-sw button { color: var(--cream); }
.site-foot .skin-sw button[aria-pressed='true'] { color: #0f2a1d; }

/* ---------- skin B: light pastel ---------- */
:root[data-skin='b'] { --paper: #FAF8F5; --surface: #ffffff; --line: #ece6da; --turq-soft: #f5efe0; --radius: 18px; --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --hero-bg: #FAF8F5; --hero-h: #14301f; --hero-k: #7a5b10; --hero-lead: #3d4a42; --hero-line: #1f4d36; }
@media (prefers-color-scheme: dark) { :root[data-skin='b']:not([data-theme='light']) { --paper: #0c1610; --surface: #122019; --line: #24372c; --turq-soft: #2b2a17;
  --hero-bg: #0c1610; --hero-h: #fff; --hero-k: #d4b25c; --hero-lead: #dfe6dc; --hero-line: rgba(212,178,92,.6); } }
:root[data-skin='b'][data-theme='dark'] { --paper: #0c1610; --surface: #122019; --line: #24372c; --turq-soft: #2b2a17;
  --hero-bg: #0c1610; --hero-h: #fff; --hero-k: #d4b25c; --hero-lead: #dfe6dc; --hero-line: rgba(212,178,92,.6); }
[data-skin='b'] h1, [data-skin='b'] h2, [data-skin='b'] h3, [data-skin='b'] .brand, [data-skin='b'] .statsline, [data-skin='b'] .stats b { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
[data-skin='b'] .text h2, [data-skin='b'] .text h3, [data-skin='b'] .ch-title, [data-skin='b'] .bc-t { font-family: var(--serif); }
[data-skin='b'] .text h2.bk-ch-h { font-family: var(--serif); }
[data-skin='b'] .hero { background-image: radial-gradient(700px 320px at 12% 0%, #DCEEFB 0%, transparent 70%), radial-gradient(640px 300px at 88% 10%, #EAE4F8 0%, transparent 70%), radial-gradient(700px 360px at 60% 110%, #FDE8D7 0%, transparent 70%), radial-gradient(500px 260px at 0% 100%, #DFF0E5 0%, transparent 70%); }
@media (prefers-color-scheme: dark) { :root[data-skin='b']:not([data-theme='light']) .hero { background-image: none; } }
:root[data-skin='b'][data-theme='dark'] .hero { background-image: none; }
[data-skin='b'] .card, [data-skin='b'] .corecard, [data-skin='b'] .langcard a, [data-skin='b'] .pathcard, [data-skin='b'] .kf-article, [data-skin='b'] .kf-hit, [data-skin='b'] .chnav a { border-radius: 18px; box-shadow: 0 2px 14px rgba(40,30,10,.07); border-color: var(--line); }
[data-skin='b'] .btn, [data-skin='b'] .chip, [data-skin='b'] .field, [data-skin='b'] .filters select { border-radius: 999px; }
[data-skin='b'] .field-lg { border-radius: 999px; padding-inline: 20px; }
[data-skin='b'] .notice { border-radius: 14px; }
[data-skin='b'] .bcover, [data-skin='b'] .ed img, [data-skin='b'] .wk img, [data-skin='b'] .cover, [data-skin='b'] .core-cover img { border-radius: 14px; }
[data-skin='b'] .shelf { background: color-mix(in srgb, var(--c1) 55%, #fff); border-radius: 22px; padding: 16px 18px 20px; }
[data-skin='b'] .shelf h3 { background: #fff; }
@media (prefers-color-scheme: dark) { :root[data-skin='b']:not([data-theme='light']) .shelf { background: var(--surface); } :root[data-skin='b']:not([data-theme='light']) .shelf h3 { background: var(--c1); } }
:root[data-skin='b'][data-theme='dark'] .shelf { background: var(--surface); }
:root[data-skin='b'][data-theme='dark'] .shelf h3 { background: var(--c1); }
.shelf .bkgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 170px)); }
@media (max-width: 640px) { .shelf .bkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-compact .wrap { max-width: 1120px; }
.hero-compact .wrap > * { max-width: 820px; }
/* light photo covers: soft white veil + plate so the title stays readable on busy images */
.bcover.has-img:not(.dark)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.55)); }
.bcover.has-img .bc-t { padding: .25em .45em; border-radius: 8px; }
.bcover.has-img:not(.dark) .bc-t { background: rgba(255,255,255,.78); text-shadow: none; }
.bcover.has-img.dark .bc-t { background: rgba(0,0,0,.32); }

/* ---------- home doors + 5-minute reads ---------- */
.doors { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.hero-compact .wrap > .doors { max-width: 820px; }
.door { position: relative; display: flex; flex-direction: column; background: var(--c1); color: var(--ink2); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--dot) 35%, transparent); min-width: 0; }
.door-a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; padding: 10px 6px 8px; color: inherit; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: .88rem; line-height: 1.2; text-align: center; border-radius: 14px; min-height: 64px; overflow-wrap: anywhere; }
.door-a:hover span { text-decoration: underline; }
.door-ico { flex: none; color: var(--ink2); }
.door-2 { display: block; padding: 0 6px 7px; text-align: center; font-size: .75rem; color: var(--ink2); text-decoration: underline; font-family: var(--sans); overflow-wrap: anywhere; }
.door a:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
@media (max-width: 640px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .door-a { font-size: .8rem; min-height: 58px; padding: 8px 4px 6px; } .door-ico { width: 22px; height: 22px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .door { background: var(--surface); color: var(--ink); border-color: var(--line); } :root:not([data-theme='light']) .door-ico, :root:not([data-theme='light']) .door-2 { color: var(--dot); } }
:root[data-theme='dark'] .door { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme='dark'] .door-ico, :root[data-theme='dark'] .door-2 { color: var(--dot); }
.srlist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sr-i { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.sr-i a { color: var(--ink); font-weight: 600; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.sr-i a:hover { text-decoration: underline; }
.sr-m { flex: none; font-size: .88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sr-work h2 small { font-weight: 400; }
.sr-langs { margin-block: 12px 6px; }
.sr-rnd { margin-block: 10px 0; border: 0; font: inherit; cursor: pointer; padding: 8px 18px; }
[data-skin='b'] .sr-i, [data-skin='b'] .door { border-radius: 14px; }
.sr-card h3 { font-size: 1.02rem; }
/* nine nav links do not fit next to brand + tools: nav gets its own row on desktop (mobile keeps the menu button) */
@media (min-width: 901px) { .site-head .wrap { row-gap: 0; } .site-head .head-tools { order: 2; } .site-head .nav { order: 3; width: 100%; margin: 0 0 4px; } }

/* in-chapter sub-headings (numbered items the book lists in its contents) */
.subtoc{margin:.6rem 0 1rem;padding:.6rem .9rem;border-inline-start:3px solid var(--gold,#c9a54a);background:rgba(0,0,0,.025);border-radius:8px}
.subtoc p{margin:0 0 .3rem}
.subtoc ol{margin:0;padding-inline-start:1.2rem}
.subtoc li{margin:.15rem 0}
.bk-toc ol ol{margin:.2rem 0 .4rem;font-size:.92em}
/* v33: one language choice — labelled "not yet in this language — other languages" blocks */
.notyet .notyet-h { margin: 0 0 6px; }
.notyet .chips { margin-block-start: 4px; }
.notyet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.notyet-list li > a { text-decoration: none; }
.notyet-list .chips { margin-block-start: 6px; }
p.notyet { margin: 4px 0 8px; }
.lib-lang { margin-block: 0 8px; }
.bk-other h3 { font-size: 1.05rem; }
.bk-lang-list { columns: 2 18rem; padding-inline-start: 1.2em; }
.sresults .s-other-h { list-style: none; border: 0; background: none; padding: 0; }
.sresults .s-other-h h2 { font-size: 1.05rem; margin: 18px 0 6px; }

/* ---------- v34: welcome home, start path, «Müslüman olmak», error report, draft mark (mobile first) ---------- */
.hero-welcome h1 { max-width: 24ch; }
.hero-welcome .lead { max-width: 62ch; }
.hero-welcome .homesearch { max-width: 680px; flex-wrap: wrap; }
.hero-welcome .homesearch .field { flex: 1 1 220px; }
.startpath > h2, #musluman-olmak h2 { margin-block-end: 4px; }
.stps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 760px) { .stps:not(.full) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stps:not(.full) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stp { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; min-width: 0; }
.stp-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #0f2a1d; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.stp-b { min-width: 0; flex: 1; }
.stp-t { margin: 2px 0 4px; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; text-transform: none; }
.stp-q { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.stp-q a { color: var(--ink); }
.stp-x { margin: 0 0 8px; color: var(--muted); font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.stp-l { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: .92rem; }
.stp-more { font-weight: 600; }
.stp-all { margin-block: 14px 0; }
.stps.full .stp { padding: 18px 16px; }
.stps.full .stp-q { font-size: 1.15rem; }
.stp-ans { font-family: var(--serif); font-size: calc(1.02rem * var(--fz)); line-height: 1.75; }
.stp-ans p { margin: 0 0 .8em; }
.stp-ans:lang(ar), .stp-ans:lang(dv) { font-family: var(--serif-ar); }
.qrep { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.qrep:hover { color: var(--ink); }
.qbox li .qrep { margin-inline-start: 6px; }
.qmore { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.dr-tag { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.6; vertical-align: middle; font-family: var(--sans); }
.mo-card { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; background: var(--surface); border: 1px solid var(--line); border-inline-start: 6px solid var(--gold); border-radius: var(--radius); padding: 18px 16px; }
@media (min-width: 760px) { .mo-card { grid-template-columns: 1.2fr 1fr; padding: 22px 24px; } }
.mo-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 0; }
.mo-sh { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 14px 10px; min-width: 0; }
.sh-ar { font-family: 'Amiri', 'Noto Naskh Arabic', 'Scheherazade New', var(--serif-ar); font-size: clamp(1.35rem, 5.4vw, 1.9rem); line-height: 1.9; margin: 0 0 6px; overflow-wrap: anywhere; }
.sh-tl { font-style: italic; margin: 0; overflow-wrap: anywhere; }
.sh-tl:lang(dv) { font-style: normal; font-family: var(--thaana); }
.sh-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.sh-lab { margin: 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.sh-box .sh-ar { margin-block-end: 12px; }
.sh-mean { font-family: var(--serif); line-height: 1.75; }
.sh-mean:lang(dv) { font-family: var(--thaana); }
.mo-contact { border-block-start: 1px solid var(--line); margin-block-start: 24px; }
.bkrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .bkrow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lib-more { margin-block: 16px 0; }
[data-skin='b'] .stp, [data-skin='b'] .mo-card, [data-skin='b'] .sh-box { border-radius: 18px; box-shadow: 0 2px 14px rgba(40,30,10,.07); }
[data-skin='b'] .mo-card { border-inline-start-width: 6px; }
@media (max-width: 639px) {
  .stps:not(.full) .stp-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  #kitapciklar .bkrow > li:nth-child(n+5) { display: none; }
}
.sh-box + h3 { margin-block-start: 22px; }

/* ---- v36: answer-first search, ask us, share card, question pages, term tooltips, printed-book request */
.qs-sec { margin-block: 14px 6px; }
.qs-sec h2 { font-size: 1.1rem; margin: 0 0 8px; }
.qs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qs-i a { display: grid; gap: 4px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.qs-i a:hover, .qs-i a:focus-visible { border-color: var(--cobalt); }
.qs-i b { font-size: 1.04rem; line-height: 1.35; }
.qs-a { color: var(--ink); opacity: .86; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qs-w { color: var(--muted); font-size: .82rem; }
.qs-bk a { border-inline-start-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 6%, var(--surface)); }
.qs-k { color: var(--cobalt); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.hres { text-align: start; margin-block: 10px 4px; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); }
.hres[hidden] { display: none; }
.hres-more { margin: 10px 0 4px; }
.hres .ask { margin: 6px 0 0; }
.ask { margin-block: 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.ask-h { font-weight: 600; }
.ask-l { font-weight: 600; }
.ask-n { display: block; margin-top: 2px; }
.shr { position: relative; display: inline-block; }
.shr-b { font: inherit; font-size: .9rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--cobalt); cursor: pointer; min-height: 32px; }
.shr-b::before { content: '↗ '; }
.shr-m { position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 6px); display: grid; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px; }
.shr-m[hidden] { display: none; }
.shr-m a, .shr-m button { display: block; text-align: start; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.shr-m a:hover, .shr-m button:hover { background: var(--turq-soft); }
.qapage .qa-q { font-size: 1.6rem; line-height: 1.3; }
.qa-ans { font-family: var(--serif); font-size: calc(1.08rem * var(--fz)); line-height: 1.75; }
.qa-ans[dir='rtl'] { font-family: var(--serif-ar); }
.qa-ans[lang='dv'] { font-family: var(--thaana); }
.qa-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qa-rel-l { padding-inline-start: 1.2em; }
.qa-rel-l li { margin-block: 6px; }
.js .nojs-only.qa-chips { display: none; }
.qpl { margin-inline-start: 8px; }
button.gl { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--turq); text-underline-offset: 3px; text-decoration-thickness: 1.5px; display: inline; line-height: inherit; letter-spacing: inherit; }
button.gl:hover, button.gl[aria-expanded='true'] { background: var(--turq-soft); border-radius: 3px; }
.glpop { position: absolute; z-index: 60; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 12px 34px 10px 14px; font-size: .95rem; line-height: 1.5; }
.glpop[dir='rtl'] { padding: 12px 14px 10px 34px; }
.glpop[hidden] { display: none; }
.glpop p { margin: 0 0 6px; }
.glpop .gls { font-size: .8rem; color: var(--muted); margin: 0; }
.glpop .glx { position: absolute; top: 4px; inset-inline-end: 6px; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 6px; }
.glpop[lang='dv'] { font-family: var(--thaana); }
.breq-f .fld { margin-block: 10px; display: grid; gap: 4px; }
.breq-f fieldset.fld { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.breq-f legend { font-weight: 600; padding-inline: 4px; }
.breq-f label { font-weight: 600; }
.breq-f .chk, .breq-f .rad { display: flex; gap: 8px; align-items: center; font-weight: 400; padding-block: 3px; }
.breq-f .field { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.breq-f .field.sm { max-width: 9em; }
.breq-f .privacy { margin-top: 14px; }
.breq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 12px; margin-block: 12px 24px; }

/* v39: şehâdet recitation button */
.sh-pl { margin: 2px 0 10px; }
.sh-play { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gold, #b08d3c); background: transparent; color: inherit; cursor: pointer; min-height: 44px; }
.sh-play:hover, .sh-play[aria-pressed='true'] { background: var(--gold, #b08d3c); color: #1b2a22; }
.sh-play:focus-visible { outline: 2px solid var(--gold, #b08d3c); outline-offset: 2px; }
.sh-ic { font-size: .85em; min-width: 1.1em; text-align: center; }
