:root {
  --bg: #faf7f1;
  --paper: #ffffff;
  --ink: #1d2530;
  --text: #36404d;
  --muted: #5f6977;
  --line: #e6dfd2;
  --teal: #16323a;
  --teal-2: #1f4a55;
  --accent: #0f6b74;
  --gold: #a87a1f;
  --gold-soft: #f5ead2;
  --radius: 16px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; font-size: 17px; overflow-x: hidden; }
h1, h2, h3 { font-family: "Frank Ruhl Libre", "Heebo", serif; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: #fff; padding: 8px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(22, 50, 58, .97); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Frank Ruhl Libre", serif; font-weight: 700; font-size: 1.35rem; }
.menu { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.menu a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:hover { color: #fff; }
.menu .cta { background: var(--gold); color: #fff; padding: .3em .9em; border-radius: 99px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; font: 700 1rem "Heebo", sans-serif; padding: .75em 1.5em; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { background: #0c5960; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { background: radial-gradient(900px 400px at 80% 0%, #2a5b66 0%, transparent 60%), var(--teal); color: #fff; padding: 64px 0 72px; }
.hero h1 { color: #fff; max-width: 820px; }
.kicker { color: #e9c77c; font-weight: 700; letter-spacing: .06em; margin: 0 0 8px; }
.lead { font-size: 1.15rem; max-width: 760px; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.block { padding: 56px 16px 8px; }
.approach { padding-bottom: 56px; }

/* Chart */
.chart { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.chart li { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; font-size: .95rem; }
.chart .lbl a { color: var(--ink); text-decoration: none; font-weight: 600; }
.chart .lbl a:hover { color: var(--accent); }
.chart .bar { background: #ece5d8; border-radius: 99px; height: 14px; overflow: hidden; }
.chart .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #3c9aa3); border-radius: 99px; }
.chart .val { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(22,50,58,.35); }
.card h3 { margin: 6px 0 0; }
.card .en { margin: 0; color: var(--muted); font-size: .85rem; direction: ltr; text-align: start; }
.card p { margin: 6px 0; font-size: .95rem; line-height: 1.6; }
.card .meta { margin-top: auto; font-size: .82rem; color: var(--gold); font-weight: 700; }
.sym { font-size: 2rem; line-height: 1; }
.sym.big { font-size: 3.4rem; }
.sym-img { display: block; width: 2.4rem; height: 2.4rem; object-fit: contain; }
.sym-img.big { width: 4rem; height: 4rem; }
.sym-sm { display: inline-block; vertical-align: -0.2em; }
img.sym-sm { width: 1.15em; height: 1.15em; object-fit: contain; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; }
table.cmp { border-collapse: collapse; min-width: 1100px; width: 100%; font-size: .9rem; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; line-height: 1.5; }
.cmp thead th { background: #f3eee4; font-family: "Heebo", sans-serif; color: var(--ink); position: sticky; top: 0; cursor: pointer; white-space: nowrap; }
.cmp thead th[aria-sort]::after { content: " ↕"; color: var(--muted); }
.cmp tbody th a { color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.cmp tbody tr:hover { background: #fbf8f2; }
/* tables written in the content (Markdown "| a | b |") */
table.mdt { border-collapse: collapse; min-width: 760px; width: 100%; font-size: .9rem; }
.mdt th, .mdt td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; line-height: 1.55; }
.mdt thead th { background: #f3eee4; font-family: "Heebo", sans-serif; white-space: nowrap; }
.mdt tbody th { font-weight: 700; width: 9rem; }
@media (max-width: 700px) {  /* phones: one card per row, each cell with its column name */
  .table-wrap:has(> table.mdt) { overflow: visible; background: none; border: 0; }
  table.mdt { min-width: 0; }
  .mdt thead { display: none; }
  .mdt, .mdt tbody, .mdt tr, .mdt th, .mdt td { display: block; width: 100%; }
  .mdt tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0; }
  .mdt tbody th { font-size: 1.05rem; white-space: normal; border-bottom: 1px solid var(--line); }
  .mdt td { border-bottom: 0; padding: 6px 12px; }
  .mdt td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .8rem; color: var(--muted); }
}

/* Religion page */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.rel { padding-top: 12px; padding-bottom: 40px; }
.rel-head { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.rel-head h1 { margin: 0; }
.rel-head .en { margin: 0; color: var(--muted); direction: ltr; text-align: start; }
.rel-grid { display: grid; grid-template-columns: 320px 1fr; gap: 36px; margin-top: 24px; align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.facts { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; }
.facts dt { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .03em; }
.facts dd { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink); }
.toc { background: var(--gold-soft); border-radius: var(--radius); padding: 14px 18px; }
.toc h2 { font-size: 1rem; margin: 0 0 6px; }
.toc ol { margin: 0; padding-inline-start: 20px; font-size: .92rem; }
.toc a { color: var(--ink); }
.content .sec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.content .sec h2 { font-size: 1.45rem; }
.content #violence { border-inline-start: 5px solid #8c3b2e; }
.content #strengths { border-inline-start: 5px solid var(--accent); }
.content #criticism { border-inline-start: 5px solid var(--gold); }
.content li { margin-bottom: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { background: #f3eee4; color: var(--ink); text-decoration: none; padding: 4px 12px; border-radius: 99px; font-size: .9rem; }
.pills a:hover { background: var(--gold-soft); }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pn a { font-weight: 700; text-decoration: none; }

/* Compare tool */
.pick { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.pick label { display: grid; gap: 4px; font-weight: 600; }
select, .nl-form input:not([type=checkbox]) { font: inherit; padding: 10px 12px; border: 1px solid #cfc6b5; border-radius: 10px; background: #fff; color: var(--ink); min-width: 220px; }
.cmp-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cmp-col h2 { display: flex; gap: 10px; align-items: center; }
.cmp-col dl { display: grid; gap: 10px; margin: 12px 0; }
.cmp-col dt { font-size: .78rem; font-weight: 700; color: var(--gold); }
.cmp-col dd { margin: 0; font-size: .93rem; line-height: 1.55; }
.cmp-col ul { padding-inline-start: 20px; font-size: .92rem; }

/* Prose */
.prose { max-width: 820px; padding-top: 12px; padding-bottom: 56px; }
.prose .sec { margin-bottom: 8px; }

/* Newsletter */
.newsletter { background: var(--teal); color: #fff; padding: 56px 0; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.85); }
.nl-in { max-width: 880px; }
.nl-form { display: grid; gap: 14px; margin-top: 18px; }
.nl-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nl-form label { display: grid; gap: 6px; font-weight: 500; }
.nl-form input:not([type=checkbox]) { min-width: 0; width: 100%; border: 0; }
fieldset { border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 99px; font-size: .92rem; cursor: pointer; }
.chip.all { background: rgba(233,199,124,.25); font-weight: 700; }
.chip input { accent-color: var(--gold); width: 16px; height: 16px; }
.consent { display: flex !important; gap: 8px; align-items: flex-start; font-size: .88rem; color: rgba(255,255,255,.8); }
.consent input { margin-top: 5px; accent-color: var(--gold); }
.newsletter a { color: #e9c77c; }
.newsletter .btn { background: var(--gold); justify-self: start; }
.hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* honeypot: off-screen offsets break RTL layout on mobile */
.msg { margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.msg.ok { background: rgba(110, 200, 150, .25); }
.msg.err { background: rgba(240, 120, 110, .25); }

/* Footer */
.foot { background: #10262c; color: rgba(255,255,255,.75); padding: 28px 0; font-size: .9rem; }
.foot a { color: #e9c77c; }
.foot strong { color: #fff; }
.foot .muted { color: rgba(255,255,255,.5); margin: 0; }

@media (max-width: 900px) {
  .rel-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .cmp-out { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .menu { gap: 12px; }
  .menu a { font-size: .88rem; }
  .chart li { grid-template-columns: 110px 1fr 80px; font-size: .85rem; gap: 8px; }
  .nl-form .row { grid-template-columns: 1fr; }
  .content .sec { padding: 18px 16px; }
  select { min-width: 0; width: 100%; }
  .pick label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* Language switch & redirect */
.lang-pending body { opacity: 0; animation: geo-reveal 0s linear 1.5s forwards; }
@keyframes geo-reveal { to { opacity: 1; } } /* shows the page even if the language script fails */
body { transition: opacity .2s; }
.menu .lang { border: 1.5px solid rgba(255,255,255,.4); border-radius: 99px; padding: .15em .7em; font-weight: 700; }

/* Newsletter call-to-action near the top of pages */
.nl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--gold-soft); border-radius: 12px; padding: 10px 16px; margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.btn.small { padding: .45em 1.1em; font-size: .9rem; }
.more-links { font-weight: 600; }

/* Feature box */
.feature { background: linear-gradient(135deg, #f5ead2, #efe3c9); border-radius: var(--radius); padding: 26px 28px; }
.feature p { max-width: 760px; }
.feature .btn.ghost { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); } /* ghost buttons on the light feature box */

/* Timeline */
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin: 8px 0 14px; }
.legend i { display: inline-block; width: 26px; height: 10px; border-radius: 99px; vertical-align: middle; margin-inline-end: 6px; }
.legend .roots, .tl-track .roots { background: #d9cdb4; }
.legend .formed, .tl-track .formed { background: linear-gradient(90deg, var(--accent), #3c9aa3); }
[dir=rtl] .legend .formed, [dir=rtl] .tl-track .formed { background: linear-gradient(270deg, var(--accent), #3c9aa3); }
.tl-axis { position: relative; height: 22px; margin-inline-start: 210px; margin-inline-end: 130px; font-size: .75rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
[dir=rtl] .tl-axis span { transform: translateX(50%); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 200px 1fr 120px; grid-template-areas: "name track year" "note note note"; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tl-name { grid-area: name; font-weight: 700; color: var(--ink); text-decoration: none; }
.tl-name:hover { color: var(--accent); }
.tl-track { grid-area: track; position: relative; height: 12px; background: #f1ebe0; border-radius: 99px; }
.tl-track i { position: absolute; top: 0; height: 100%; border-radius: 99px; }
.tl-year { grid-area: year; font-size: .85rem; font-weight: 700; color: var(--gold); }
.tl-note { grid-area: note; font-size: .82rem; color: var(--muted); }

/* Theme page */
.theme .toc { margin: 16px 0 20px; }
.theme .toc ol { columns: 2; }
.theme .content { max-width: 900px; }

@media (max-width: 700px) {
  .tl-axis { display: none; }
  .timeline li { grid-template-columns: 1fr auto; grid-template-areas: "name year" "track track" "note note"; }
  .theme .toc ol { columns: 1; }
}

/* Timeline ordering and tradition marker */
.tl-sort { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; font-weight: 600; }
.tl-sort button { font: inherit; font-size: .9rem; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 99px; padding: .3em .9em; cursor: pointer; }
.tl-sort button[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fff; }
.tl-track .trad { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 15px; line-height: 1; }
[dir=rtl] .tl-track .trad { transform: translate(50%, -50%); }
.trad-key { color: var(--gold); }

/* Home hero: compare picker + religion chips (2026-10-25) */
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.cmp-pick { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 20px; display: grid; gap: 10px; backdrop-filter: blur(4px); }
.cmp-pick h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.cmp-pick p { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.cmp-pick label { display: grid; gap: 4px; color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; }
.cmp-pick select { font: inherit; font-size: 1rem; padding: .6em .7em; border-radius: 10px; border: 0; background: #fff; color: var(--ink, #1d2b33); }
.cmp-pick .btn { justify-self: stretch; text-align: center; background: var(--gold); border: 0; cursor: pointer; font-size: 1rem; }
.rel-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.rel-chips a { color: #fff; text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: .3em .85em; font-size: .9rem; white-space: nowrap; }
.rel-chips a:hover { background: rgba(255,255,255,.2); }
@media (max-width: 700px) {
  .hero { padding: 36px 0 44px; }
  .rel-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-top: 22px; }
  /* header: brand on the first row, one scrollable row of links (newsletter + language first) */
  .top-in { gap: 6px 12px; min-height: 0; padding: 8px 0; }
  .menu { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 4px; scrollbar-width: none; }
  .menu a { white-space: nowrap; }
  .menu .cta, .menu .lang, .menu .search-link { order: -1; }
}

/* Footer share row (share-row is added by the site script) */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-bottom: 10px; }
.share-lbl { font-weight: 600; }
.share-btn { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: #fff !important; text-decoration: none; }
.share-btn:hover { opacity: .85; }
.share-copy { height: 36px; border-radius: 99px; border: 0; padding: 0 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; background: rgba(127,127,127,.18); color: inherit; }
/* images in theme pages: "![caption](/img/…)" lines; consecutive images form a gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1rem 0 1.4rem; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 8px 12px 10px; font-size: .88rem; line-height: 1.5; }
.gallery .credit { display: block; color: #6b7280; font-size: .75rem; margin-top: 2px; }
.gallery .credit a { color: inherit; }
/* source lists: closed by default, open on click */
.sec.sources details > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: inside; padding: 4px 0; }
.sec.sources details[open] > summary { margin-bottom: .6rem; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single img { aspect-ratio: auto; object-fit: contain; }

/* The owner's book: pre-order sign-up on the Israeli-Palestinian page */
.book { background: var(--teal); color: #fff; padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.book-in { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.book img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.book h2 { color: #fff; margin: 4px 0; }
.book p { color: rgba(255,255,255,.88); }
.book .kicker { color: #e9c77c; font-weight: 700; margin: 0; }
.book .sub { margin-top: 0; font-weight: 500; }
.book a { color: #e9c77c; }
.book .btn { background: var(--gold); justify-self: start; }
.book-in.noimg { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 700px) { .book-in { grid-template-columns: 1fr; } .book img { max-width: 200px; } }
.book .press-link { margin-top: 14px; font-size: .95rem; }
/* Press kit (/press/) */
.press-top { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin: 18px 0 8px; }
.press-top img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.press-top h2 { margin-top: 0; }
.press-top .sub { color: var(--muted); margin-top: -6px; }
.press-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 18px; }
.press-facts dt { font-weight: 700; }
.press-facts dd { margin: 0; }
@media (max-width: 700px) { .press-top { grid-template-columns: 1fr; } .press-top img { max-width: 220px; } }

/* Site search */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu .search-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.search-form { display: flex; gap: 10px; margin: 16px 0 8px; }
.search-form input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid #cfc6b5; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; min-width: 0; }
.search-results { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.search-results li { background: #fff; border: 1px solid #e6dfd1; border-radius: 12px; padding: 14px 16px; }
.search-results a { font-weight: 700; font-size: 1.05rem; }
.search-results .sec { color: var(--muted, #6b6457); font-weight: 500; }
.search-results p { margin: 6px 0 0; font-size: .93rem; color: #4a463e; }
.search-results mark { background: #f6e3b4; color: inherit; border-radius: 2px; }

/* The book: menu button, strip on the home page, callout on the Israeli-Palestinian page */
.menu .book-cta { background: #fff; color: var(--teal); font-weight: 700; }
.menu .book-cta:hover { color: var(--teal); background: #f6e3b4; }
.book-strip { background: #f6ecd6; border-block: 1px solid #e6d3a8; }
.book-strip-in { display: flex; gap: 20px; align-items: center; padding: 18px 16px; text-decoration: none; color: var(--ink); }
.book-strip img { width: 90px; height: auto; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.25); flex: none; }
.book-strip-in > span { display: grid; gap: 4px; }
.book-strip .kicker { color: #8a5a12; font-weight: 700; font-size: .9rem; }
.book-strip strong { font-size: 1.3rem; line-height: 1.3; }
.book-strip .d { color: #4a463e; }
.book-strip .go { color: var(--teal); font-weight: 700; }
.book-strip-in:hover strong { text-decoration: underline; }
.book-callout { margin: 12px 0 18px; }
.book-callout a { display: inline-block; background: #f6ecd6; border: 1px solid #e6d3a8; border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.book-callout a:hover { background: #f6e3b4; }
@media (max-width: 700px) { .menu .book-cta { order: -1; } .book-strip img { width: 70px; } .book-strip strong { font-size: 1.1rem; } }

/* Note or correction (private feedback to the editor) */
.feedback { margin: 28px auto 8px; }
.feedback details { background: #fff; border: 1px solid #e6dfd1; border-radius: 12px; padding: 12px 16px; }
.feedback summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.feedback form { display: grid; gap: 12px; margin-top: 12px; }
.feedback label { display: grid; gap: 6px; font-weight: 500; }
.feedback textarea, .feedback input:not([type=checkbox]) { font: inherit; padding: 10px 12px; border: 1px solid #cfc6b5; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.feedback .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback .btn { justify-self: start; }
.feedback .small { font-size: .88rem; margin: 0; }
@media (max-width: 600px) { .feedback .row { grid-template-columns: 1fr; } }

/* How religions spread: a tab per religion, its map and the same steps as a list */
.sp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.sp-tab { font: inherit; font-weight: 600; border: 2px solid var(--c); color: var(--ink); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; min-height: 40px; }
.sp-tab[aria-pressed=true] { background: var(--c); color: #fff; }
.sp-panel { margin-bottom: 28px; }
.sp-panel h2 { border-inline-start: 6px solid var(--c); padding-inline-start: 10px; }
.sp-panel figure { margin: 10px 0; }
.sp-panel img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #e6dfd1; background: #dbe7ee; }
.sp-steps { columns: 2 280px; column-gap: 32px; padding-inline-start: 20px; }
.sp-steps li { break-inside: avoid; margin-bottom: 6px; }
.js .sp-panel[hidden] { display: none; }
.sp-link { margin: 0 0 10px; }

/* World religions map 2010–2050 */
.wm-ctl { display: grid; gap: 6px; max-width: 560px; margin: 12px 0 16px; }
.wm-ctl input[type=range] { width: 100%; accent-color: var(--teal); direction: ltr; } /* years run left to right, like the tick labels */
.wm-ticks { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); direction: ltr; }
.wm-ctl .btn { justify-self: start; }
.wm-kind { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e3f1ee; color: #0f5f55; }
.wm-kind.proj { background: #fdf2dc; color: #8a5a12; }
.wm-world { margin-bottom: 10px; }
.wm-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 4px; background: #eee; direction: ltr; }
.wm-bar span { color: #fff; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 12px; font-size: .9rem; }
.wm-key i, .wm-info li i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.wm-grid { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.wm-map svg { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid #e6dfd1; }
.wm-map path { stroke: #fff; stroke-width: .4; cursor: pointer; transition: fill .4s, fill-opacity .4s; }
.wm-map path:hover, .wm-map path.on { stroke: #111; stroke-width: 1.2; }
.wm-info { background: #fff; border: 1px solid #e6dfd1; border-radius: 12px; padding: 14px; }
.wm-info h2 { font-size: 1.1rem; margin: 0 0 8px; }
.wm-info ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .92rem; display: grid; gap: 4px; }
.wm-table { margin: 16px 0; }
.wm-table input { font: inherit; padding: 8px 10px; border: 1px solid #cfc6b5; border-radius: 8px; margin: 10px 0; width: 100%; max-width: 320px; }
.wm-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wm-table th, .wm-table td { padding: 5px 8px; border-bottom: 1px solid #eee; text-align: start; }
@media (max-width: 800px) { .wm-grid { grid-template-columns: 1fr; } }
