:root {
  --bg: #FBF7F0; --soft: #F3EBDD; --card: #FFFFFF; --ink: #1E1B16; --body: #4A4338; --muted: #5F574A; --line: #E4D9C6;
  --olive: #3F4D24; --olive-ink: #FFFFFF; --olive-hover: #2E3A1A; --olive-fruit: #5B2A3A;
  --red: #8E2B2B; --link: #6E2A1E; --dark: #2E3A1F; --on-dark: #E9E3D3;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
.h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 6px; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 20px; color: var(--body); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }
.mt { margin-top: 48px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 22px var(--serif); }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-size: 20px; }
nav { display: flex; gap: 4px; }
nav a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
nav a:hover, nav a[aria-current] { background: var(--soft); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu span { width: 18px; height: 2px; background: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--olive); color: var(--olive-ink); font-weight: 600; text-decoration: none; border: 2px solid var(--olive); cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--olive-hover); border-color: var(--olive-hover); color: var(--olive-ink); }
.btn.ghost { background: transparent; color: var(--olive); }
.btn.ghost:hover { background: var(--olive); color: var(--olive-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-art { color: var(--olive); width: 100%; max-width: 340px; justify-self: center; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-photo { margin: 0; justify-self: center; width: 100%; max-width: 460px; background: var(--card); padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(30, 27, 22, .45); transform: rotate(1.2deg); }
.hero-photo img { width: 100%; height: auto; border-radius: 2px; filter: sepia(.15); }
.hero-photo figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.band-tatreez, .foot .tatreez { color: var(--red); }
.tatreez { height: 28px; background-color: var(--soft); background-repeat: repeat-x; background-position: center; background-size: 28px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg fill='%238E2B2B'%3E%3Cpath d='M14 4l4 4-4 4-4-4zM14 16l4 4-4 4-4-4zM4 14l4-4 4 4-4 4zM24 14l-4-4-4 4 4 4z'/%3E%3Crect x='12.5' y='12.5' width='3' height='3' fill='%233F4D24'/%3E%3C/g%3E%3C/svg%3E"); }
.foot .tatreez { background-color: var(--dark); }
.page-head { padding: 64px 0 24px; }
.page-head.center { text-align: center; padding: 96px 0; }
.page-head.center .lede { margin-inline: auto; }

/* sections */
.section { padding: 56px 0; }
.section.tight { padding-top: 16px; }
.section.soft { background: var(--soft); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h2 { font-size: 22px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.prose { max-width: 40em; }
.link-list { padding-left: 18px; margin: 0; }
.link-list li { margin: 6px 0; }

/* albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.album { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.cover { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album:hover .cover img { transform: scale(1.04); }
.album-t { font: 600 18px var(--serif); margin-top: 8px; }
.album-s { font-size: 14px; color: var(--muted); }
.classic { margin-top: 56px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--soft); }
.classic p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:hover img { opacity: .9; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 14, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; border-radius: 6px; image-rendering: auto; min-width: min(60vw, 480px); object-fit: contain; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #E9E3D3; font-size: 14px; margin: 0; }

/* form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; color: var(--ink); font-size: 15px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid #CBBEA6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--olive) 35%, transparent); border-color: var(--olive); }
.form .btn { justify-content: center; }

/* footer */
.foot { background: var(--dark); color: var(--on-dark); }
.foot .wrap { padding: 40px 0 32px; }
.foot-brand { font: 600 22px var(--serif); color: #fff; }
.foot a { color: var(--on-dark); margin-right: 18px; }
.foot a:hover { color: #fff; }
.foot .small { color: #CFC8B6; margin-top: 16px; }

@media (max-width: 860px) {
  .hero-grid, .split, .cards3 { grid-template-columns: 1fr; }
  .hero-art { max-width: 200px; order: -1; }
  .hero-photo { transform: none; max-width: 420px; }
  .menu { display: flex; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  nav.open { display: flex; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
}

/* full-width historic photo under the header */
.photo-band { background: var(--soft); border-bottom: 1px solid var(--line); }
.photo-band .wrap { padding-block: 24px; }
.photo-band img { display: block; width: 100%; height: auto; border-radius: 6px; filter: sepia(.15); box-shadow: 0 18px 40px -24px rgba(30, 27, 22, .5); }
.hero-single { grid-template-columns: 1fr; }
.hero-single .lede { max-width: 44em; }

.hero-photo-wide { margin: 32px 0 0; }
.hero-photo-wide img { display: block; width: 100%; height: auto; border-radius: 6px; filter: sepia(.15); box-shadow: 0 18px 40px -24px rgba(30, 27, 22, .5); }

/* family tree */
.tree-sec { background: var(--dark); color: var(--on-dark); padding-block: 88px; position: relative; overflow: hidden; }
.tree-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(201, 162, 39, .14), transparent 70%); pointer-events: none; }
.tree-sec .eyebrow { color: #D9B45A; justify-content: center; }
.tree-head { text-align: center; max-width: 760px; margin: 0 auto 56px; position: relative; }
.tree-head h2 { color: #FBF7F0; font-size: clamp(30px, 4.4vw, 46px); text-wrap: balance; }
.nasab { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.9; color: #CFC6B0; margin: 0; }
.nasab span { color: #D9B45A; font-style: normal; font-size: 13px; letter-spacing: .06em; padding-inline: 2px; }
.ftree { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: stretch; }
.ft-stage { position: relative; height: 640px; border-radius: var(--r); border: 1px solid rgba(217, 180, 90, .25); background: radial-gradient(120% 80% at 50% 100%, rgba(217, 180, 90, .10), transparent 60%), rgba(0, 0, 0, .12); overflow: hidden; touch-action: pan-y; cursor: grab; }
.ft-stage.is-drag { cursor: grabbing; }
.ft-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.ft-link { fill: none; stroke: #8C6E3C; stroke-linecap: round; transition: stroke .2s; }
.ft-link.is-hover, .ft-link.is-path { stroke: #D9B45A; }
.ft-leaf { fill: #7A8F45; opacity: .9; }
.ft-node { cursor: pointer; outline: none; }
.ft-node rect { fill: #33402A; stroke: rgba(217, 180, 90, .55); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.ft-node text { fill: #FBF7F0; font: 600 19px var(--serif); pointer-events: none; }
.ft-rule { stroke: rgba(217, 180, 90, .10); stroke-dasharray: 2 6; }
.ft-ruler { fill: #B8A26A; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ft-node:hover rect, .ft-node.is-hover rect, .ft-node:focus-visible rect { stroke: #D9B45A; fill: #3C4A30; }
.ft-node.is-path rect { stroke: #D9B45A; }
.ft-node.is-sel rect { fill: #D9B45A; stroke: #F3D98B; }
.ft-node.is-sel text { fill: #2E3A1F; }
.ft-node:focus-visible rect { stroke-width: 3; }
.ft-controls { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.ft-controls button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(217, 180, 90, .45); background: rgba(46, 58, 31, .92); color: #FBF7F0; font: 600 18px var(--sans); cursor: pointer; }
.ft-controls button:last-child { font-size: 14px; }
.ft-controls button:hover { border-color: #D9B45A; }
.ft-hint { position: absolute; left: 14px; top: 20px; margin: 0; font-size: 13px; color: #CFC6B0; pointer-events: none; }
.ft-panel { background: rgba(251, 247, 240, .06); border: 1px solid rgba(217, 180, 90, .28); border-radius: var(--r); padding: 22px; align-self: start; position: sticky; top: 90px; }
.ft-gen { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #D9B45A; }
.ft-name { color: #FBF7F0; font-size: 28px; margin: 4px 0 10px; }
.ft-note { color: #CFC6B0; }
.ft-chain { font-family: var(--serif); font-size: 16px; line-height: 1.8; color: #E9E3D3; }
.ft-jump { background: none; border: 0; padding: 0; font: inherit; color: #FBF7F0; text-decoration: underline; text-decoration-color: rgba(217, 180, 90, .5); text-underline-offset: 3px; cursor: pointer; }
.ft-jump:hover { color: #D9B45A; }
.ft-bin { color: #D9B45A; font-size: 13px; }
.ft-kids { font-size: 15px; color: #CFC6B0; }
.ft-add { width: 100%; justify-content: center; background: #D9B45A; color: #2E3A1F; }
.ft-add:hover { background: #E6C676; }
.ft-fallback { grid-column: 1 / -1; color: #E9E3D3; }
.ftree.is-ready .ft-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ftree:not(.is-ready) .ft-stage, .ftree:not(.is-ready) .ft-panel { display: none; }
.clan { margin-top: 88px; padding-top: 72px; border-top: 1px solid rgba(217, 180, 90, .2); }
.clan-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.clan-head h2 { color: #FBF7F0; text-wrap: balance; }
.clan-head p { color: #CFC6B0; }
.robinson { max-width: 820px; margin: 0 auto 56px; }
.robinson .eyebrow { justify-content: flex-start; }
.rob-intro { color: #E9E3D3; font-size: 18px; }
.rq { margin: 22px 0; padding: 22px 26px; border-left: 3px solid #D9B45A; background: rgba(251, 247, 240, .05); border-radius: 0 12px 12px 0; }
.rq blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; color: #FBF7F0; }
.rq blockquote::before { content: "\201C"; color: #D9B45A; }
.rq blockquote::after { content: "\201D"; color: #D9B45A; }
.rq figcaption { margin-top: 10px; font-size: 14px; color: #B8AE96; }
.rq figcaption a, .reading a { color: #E9D49A; }
.rob-more { margin: 24px 0 0; }
.rob-more .btn { width: auto; display: inline-flex; }
.reading { max-width: 880px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid rgba(217, 180, 90, .25); }
.reading h3 { color: #FBF7F0; font-size: 22px; }
.reading p { color: #CFC6B0; font-size: 15px; }
.reading ul { margin: 0; padding-left: 20px; color: #E9E3D3; line-height: 1.9; }
.clan-list { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; position: relative; }
.clan-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(217, 180, 90, .45); }
.clan-item { position: relative; padding: 0 0 30px 40px; color: #E9E3D3; }
.clan-item::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--dark); border: 2px solid #D9B45A; }
.clan-item:last-child { padding-bottom: 0; }
.clan-when { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #D9B45A; }
.clan-name { color: #FBF7F0; font-size: 24px; margin: 2px 0 6px; }
.clan-item p { max-width: 62ch; }
.clan-photo { margin: 6px 0 14px; max-width: 520px; }
.clan-photo img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(217, 180, 90, .3); }
.clan-photo figcaption { margin-top: 6px; font-size: 13px; color: #B8AE96; }
.clan-photo figcaption a { color: #E9D49A; }
.clan-src { font-size: 14px; color: #B8AE96; margin: 0; }
.clan-src a { color: #E9D49A; }
.tree-add { max-width: 760px; margin: 40px auto 0; background: var(--bg); color: var(--body); border-radius: var(--r); position: relative; }
.tree-add summary { cursor: pointer; list-style: none; padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; }
.tree-add summary::-webkit-details-marker { display: none; }
.tree-add summary span:first-child { font: 600 20px var(--serif); color: var(--ink); }
.tree-add summary span:first-child::after { content: " +"; color: var(--red); }
.tree-add[open] summary span:first-child::after { content: " \2212"; }
.tree-add .form { padding: 0 24px 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row > * { min-width: 0; }
@media (max-width: 720px) {
  .tree-sec { padding-block: 64px; }
  .ftree { grid-template-columns: 1fr; }
  .ft-hint { top: auto; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 12px; }
  .ft-ruler { font-size: 11px; }
  .ft-panel { position: static; }
  .field-row { grid-template-columns: 1fr; }
}

.spellings { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; max-width: 46em; }
.spellings span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 500 15px var(--sans); color: var(--ink); }
.spellings span[lang="ar"] { font-size: 17px; }
.spell-note { max-width: 46em; margin-bottom: 22px; }

/* teaser under the tree */
.tree-more { max-width: 760px; margin: 72px auto 0; padding-top: 56px; border-top: 1px solid rgba(217, 180, 90, .2); text-align: center; }
.tree-more .eyebrow { justify-content: center; }
.tree-more h2 { color: #FBF7F0; text-wrap: balance; }
.tree-more p { color: #CFC6B0; }
.tree-more .btn { width: auto; display: inline-flex; }

/* history page */
.h-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.h-toc { position: sticky; top: 96px; font-size: 15px; }
.h-toc > p:first-child { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.h-toc ol { list-style: none; margin: 0 0 18px; padding: 0; border-left: 2px solid var(--line); }
.h-toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink); text-decoration: none; }
.h-toc li a:hover { color: var(--red); }
.h-main { min-width: 0; max-width: 780px; }
.h-sec { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.h-sec h2 { font-size: clamp(28px, 3.4vw, 38px); }
.h-prose p, .h-prose li { max-width: 68ch; }
.h-prose ul { padding-left: 20px; }
.h-prose li { margin-bottom: 8px; }
.h-note { background: var(--soft); border-left: 3px solid var(--olive); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 16px; }
.h-src { font-size: 14px; color: var(--muted); }
.h-quote { margin: 22px 0; padding: 20px 24px; border-left: 3px solid #B08D3A; background: var(--card); border-radius: 0 12px 12px 0; box-shadow: 0 1px 0 var(--line); }
.h-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; color: var(--ink); }
.h-quote blockquote::before { content: "\201C"; color: #B08D3A; }
.h-quote blockquote::after { content: "\201D"; color: #B08D3A; }
.h-quote figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.h-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.h-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.h-ti { position: relative; padding: 0 0 32px 40px; }
.h-ti::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--bg); border: 2px solid #B08D3A; }
.h-ti:last-child { padding-bottom: 0; }
.h-when { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.h-ti h3 { font-size: 23px; margin: 2px 0 6px; }
.h-photo { margin: 6px 0 12px; max-width: 520px; }
.h-photo img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.h-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.h-group { font-size: 22px; margin-top: 28px; }
.h-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.h-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.h-table th, .h-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.h-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.h-table tbody tr:last-child th, .h-table tbody tr:last-child td { border-bottom: 0; }
.h-table tbody th { font-weight: 600; color: var(--ink); min-width: 170px; }
.h-table tbody td:last-child { min-width: 160px; }
.h-table tbody th span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.h-reading { padding-left: 20px; line-height: 1.9; }
.h-cta { background: var(--dark); color: var(--on-dark); border-radius: var(--r); padding: 32px; }
.h-cta h2 { color: #FBF7F0; font-size: 26px; }
.h-cta .btn { background: #D9B45A; color: #2E3A1F; }
@media (max-width: 900px) {
  .h-layout { grid-template-columns: 1fr; gap: 24px; }
  .h-toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
}
@media (max-width: 640px) {
  .h-table { border: 0; background: none; overflow: visible; }
  .h-table table, .h-table tbody, .h-table tr, .h-table th, .h-table td { display: block; width: auto; }
  .h-table thead { display: none; }
  .h-table tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .h-table tbody th, .h-table tbody td { border: 0; padding: 2px 0; min-width: 0; }
  .h-table tbody td:last-child { font-size: 14px; padding-top: 6px; }
}

/* Family tree: Arabic names */
.ft-controls button[data-ft="lang"] { font: 700 16px "Amiri", var(--sans); }
.ftree.is-ar .ft-node text { font: 700 21px "Amiri", var(--serif); }
.ftree.is-ar .ft-ruler { font-family: "Amiri", var(--sans); font-size: 13px; letter-spacing: 0; }
.ft-panel[lang="ar"] { font-family: "Amiri", var(--sans); text-align: right; }
.ft-panel[lang="ar"] .ft-name, .ft-panel[lang="ar"] .ft-chain, .ft-panel[lang="ar"] .ft-jump, .ft-panel[lang="ar"] .ft-gen { font-family: "Amiri", var(--serif); letter-spacing: 0; }
.ft-panel[lang="ar"] .ft-chain { font-size: 19px; }
.ft-panel[lang="ar"] .ft-bin { font-size: 16px; }

/* Our town: then and now */
.town-photos h2 { font-size: clamp(26px, 3vw, 34px); }
.town-intro { max-width: 40em; margin: 0 0 22px; }
.town-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.town-photo { margin: 0; }
.town-photo.wide { grid-column: 1 / -1; }
.town-photo img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.town-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.town-photo figcaption strong { color: var(--ink); }
@media (max-width: 720px) { .town-grid { grid-template-columns: 1fr; } }
