:root {
  --navy: var(--brand-blue);
  --deep: #101d32;
  --ink: #152f48;
  --plum: var(--brand-blue);
  --muted: #515b6c;
  --paper: #faf9fc;
  --line: #e8e1ec;
  --gold: #e7c6eb;
}
:focus-visible { outline-color: var(--brand-blue); }
.top { background: #fff; }
.header { min-height: 78px; }
.header-actions { flex-wrap: nowrap; }
.icon-button, .socials a {
  border-color: #e9e0ed;
  background: #fff;
}
.icon-button:hover, .socials a:hover { border-color: #d8c5df; background: #f5edf8; }
.menu-trigger.icon-button {
  min-width: 49px;
  padding-inline: 10px;
  background: #f3e8f5;
  color: var(--plum);
}
.menu-trigger.icon-button:hover { background: #ebd9ef; }
.ui-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(440px, calc(100% - 24px));
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 0;
  border: 0;
  border-inline-end: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 54px #1016264d;
  --slide-start: 100%;
}
html[dir="ltr"] .site-menu { inset: 0 auto 0 0; --slide-start: -100%; }
.site-menu[open] { animation: drawer-enter .27s cubic-bezier(.22,.78,.28,1) both; }
.site-menu::backdrop { background: #1015289c; }
html:has(.site-menu[open]) { overflow: hidden; }
.drawer-inner { min-height: 100%; padding: clamp(18px, 4vw, 36px); }
.drawer-heading, .drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-heading { justify-content: space-between; margin-bottom: 22px; }
.drawer-brand h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.drawer-inner nav { display: grid; margin-bottom: 24px; border-top: 1px solid var(--line); }
.drawer-inner nav a, .menu-label { display: flex; align-items: center; gap: 12px; }
.drawer-inner nav a {
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 750;
}
.drawer-inner nav a:hover { color: var(--plum); background: #fbf6fc; }
.menu-label .ui-icon { color: var(--plum); }
.follow-arrow { width: 19px; height: 19px; }
[dir="rtl"] .follow-arrow { transform: scaleX(-1); }
.drawer-inner .socials a { border-radius: 50%; color: var(--plum); }

.hero:lang(ar), .hero:lang(en) {
  position: relative;
  background: var(--brand-blue-deep);
  border: 0;
}
.hero-visual {
  position: absolute;
  inset: 0 auto 0 0;
  width: 83%;
  height: 100%;
  object-fit: cover;
  object-position: 36% 56%;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #17234524, #26397450 42%, #243675eb 65%, var(--brand-blue) 100%);
}
.hero-inner {
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  direction: ltr;
  min-height: 520px;
  padding-block: 65px 74px;
}
.hero-copy { width: min(56%, 625px); }
[dir="rtl"] .hero-copy { direction: rtl; }
.hero-kicker { color: #f3cdec; }
.hero-kicker::before { background: #d897d3; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6.1vw, 5.35rem); line-height: 1.13; margin-block: 12px 20px; }
.hero:lang(en) h1 { font-size: clamp(2.45rem, 5.6vw, 5rem); letter-spacing: -.03em; }
.hero-description { color: #eee6f2; font-weight: 500; }
.crystal-button {
  background: linear-gradient(127deg, #f9edfa 3%, #e2b9e4 53%, #b4d9f1 100%);
  border-color: #f6e9fb;
  color: #241d39;
}
.crystal-icon { background: linear-gradient(145deg, #fffd, #d89dd67d); }
.crystal-button:hover { box-shadow: 0 13px 32px #e3a8df4b; }

.quick-links {
  position: relative;
  z-index: 2;
  margin-top: -25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.section-link {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 89px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px #2b193b0b;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.section-link:hover { transform: translateY(-4px); border-color: #d5bfde; box-shadow: 0 12px 28px #2b193b15; }
.section-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #f1e3f4;
  color: #6b3274;
}
.section-link:nth-child(2) .section-icon { background: #e4edf8; color: #22516c; }
.section-link:nth-child(3) .section-icon { background: #ebe6f5; color: #594484; }
.section-label strong, .section-label small { display: block; }
.section-label strong { font-weight: 800; line-height: 1.38; }
.section-label small { margin-top: 4px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.section-link > .follow-arrow { color: var(--plum); }
.archive { padding-top: 42px; }
.archive .kicker, .about .kicker, .meta span { color: var(--plum); }
.card, .search { background: #fff; }
.card { border-radius: 16px; overflow: hidden; }
.card-art { background: #eee1ee; }
.card-art.greek { background: #e9e6f3; }
.card-art.hebrew { background: #e0eaf4; }
.card-art.arabic { background: #f0e1eb; }
.card-art.history { background: #e2e1ed; }
.filters button { border-color: var(--line); border-radius: 8px; }
.filters button:hover { background: #eee3f2; }
.filters button[aria-pressed="true"] { background: var(--navy); }
.about { background: #f1eaf5; }
.about-inner img { border-radius: 15px; }
.about .socials a { color: var(--plum); }

@keyframes drawer-enter {
  from { transform: translateX(var(--slide-start)); }
  to { transform: translateX(0); }
}
@media (max-width: 830px) {
  .section-link { padding-inline: 11px; gap: 8px; }
  .section-link > .follow-arrow { display: none; }
  .section-link { grid-template-columns: auto minmax(0,1fr); }
  .section-icon { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .header { min-height: 66px; gap: 5px; flex-wrap: nowrap; }
  .brand { flex: 1; min-width: 0; gap: 5px; }
  .brand img { width: 41px; height: 41px; flex: none; }
  .brand strong { font-size: .80rem; line-height: 1.28; }
  .brand small { font-size: .66rem; line-height: 1.2; }
  .header-actions { margin: 0; }
  .language.icon-button { padding-inline: 7px; min-width: 42px; }
  .language.icon-button svg { display: none; }
  .menu-trigger.icon-button { min-width: 44px; }
  .hero-visual { inset: 0 0 auto; width: 100%; height: 79%; object-position: 0% 45%; }
  .hero::after { background: linear-gradient(0deg, var(--brand-blue) 5%, var(--brand-blue-deep) 34%, #24367583 62%, #191c331a 100%); }
  .hero-inner { min-height: 560px; align-items: flex-end; padding-block: 235px 42px; }
  .hero-copy { width: 100%; }
  .hero h1, .hero:lang(en) h1 { font-size: clamp(2.4rem, 9vw, 3.65rem); margin-block: 8px 11px; }
  .hero-description { font-size: .94rem; margin-bottom: 16px; }
  .quick-links { margin-top: 13px; grid-template-columns: 1fr; gap: 8px; }
  .section-link { min-height: 64px; padding-inline: 12px; grid-template-columns: auto minmax(0,1fr) auto; }
  .section-link > .follow-arrow { display: block; }
  .archive { padding-top: 31px; }
}
@media (max-width: 355px) {
  .header .brand img { width: 34px; height: 34px; }
  .header.wrap { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .section-link:hover { transform: none; }
}

.site-footer {
  border-block-start: 4px solid #74326c;
  padding-block: 32px;
  background: linear-gradient(115deg, var(--brand-blue-deep), var(--brand-blue));
  color: #dbe7f5;
  text-align: center;
  font-size: .88rem;
  line-height: 1.9;
}
.site-footer .footer-org {
  display: block;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 800;
}
.footer-quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 0;
  margin-block: 14px;
}
.footer-quicklinks a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer-quicklinks a:hover, .footer-quicklinks a:focus-visible {
  color: #f0c7ee;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-contact {
  display: grid;
  gap: 2px;
  margin: 0 auto;
  font-style: normal;
}
.footer-contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 27px;
  overflow-wrap: anywhere;
}
.footer-contact .ui-icon { color: #dfb4e2; }
.footer-contact a, .developer-credit-link {
  color: #fff;
  text-underline-offset: 4px;
}
.footer-contact a:hover, .developer-credit-link:hover { color: #f0c7ee; }
.site-footer .footer-social-links {
  justify-content: center;
  gap: 12px;
  margin-block: 23px 16px;
}
.site-footer .footer-social-links a {
  width: 44px;
  padding: 0;
  border-radius: 50%;
  border-color: #c5cfe1;
  background: #fff;
  color: #243f69;
}
.site-footer .footer-social-links a:hover {
  background: #f3e8f5;
  color: var(--plum);
}
.site-credit {
  color: #dbe7f5;
  font-size: .82rem;
}
.developer-credit-link { font-weight: 800; }
@media (max-width: 520px) {
  .footer-quicklinks { column-gap: 14px; }
  .footer-contact p { gap: 7px; }
}

/* Responsive navigation: full page hierarchy on desktop, expandable tree in the mobile drawer. */
.header { gap:16px; }
.desktop-site-nav { display:flex; align-items:center; justify-content:center; gap:clamp(5px,.75vw,12px); flex:1 1 auto; min-width:0; }
.desktop-site-nav>a,.desktop-nav-item>a { display:inline-flex; align-items:center; min-height:42px; padding:7px 8px; color:var(--ink); text-decoration:none; font-size:clamp(.78rem,.92vw,.94rem); line-height:1.35; font-weight:750; white-space:nowrap; border-radius:10px; }
.desktop-site-nav>a:hover,.desktop-nav-item>a:hover,.desktop-site-nav>a:focus-visible,.desktop-nav-item>a:focus-visible { color:#103e66; background:#f1f5f8; }
.desktop-nav-item { position:relative; }
.desktop-submenu { display:none; position:absolute; z-index:1200; inset-block-start:100%; inset-inline-start:0; min-width:230px; max-width:min(390px,85vw); max-height:min(72vh,620px); overflow:auto; padding:9px; border:1px solid #dac48e; border-radius:14px; background:#fff; box-shadow:0 16px 34px #112d4833; }
.desktop-nav-item:hover .desktop-submenu,.desktop-nav-item:focus-within .desktop-submenu { display:grid; }
.desktop-submenu a { display:block; padding:9px 11px; border-radius:9px; color:var(--ink); text-decoration:none; font-size:.92rem; line-height:1.45; }
.desktop-submenu a:hover,.desktop-submenu a:focus-visible { background:#edf4f9; color:#0c4e7b; }
.menu-tree { display:grid; gap:4px; max-height:calc(100vh - 150px); overflow:auto; margin:0 0 18px; }
.menu-home,.menu-entry-heading { display:flex; align-items:center; justify-content:space-between; min-height:50px; border-bottom:1px solid var(--line); }
.menu-home,.menu-entry-heading>a { color:var(--ink); text-decoration:none; font-weight:800; }
.menu-home { justify-content:flex-start; gap:12px; padding:8px 9px; }
.menu-entry-heading>a { display:flex; align-items:center; gap:12px; flex:1; min-width:0; padding:8px 9px; }
.menu-entry-heading>a:hover,.menu-home:hover { color:#0c4e7b; background:#f2f6f9; }
.submenu-toggle { flex:none; width:38px; height:38px; margin-inline-start:6px; border:1px solid #d9c28b; border-radius:50%; color:var(--navy); background:#fff; font-size:20px; cursor:pointer; transition:transform .2s ease,background .2s ease; }
.submenu-toggle[aria-expanded="true"] { transform:rotate(180deg); background:#f3f7fa; }
.menu-submenu { display:grid; gap:2px; padding:4px 14px 11px 42px; border-bottom:1px solid var(--line); }
.menu-submenu[hidden] { display:none; }
.menu-submenu a { display:block; padding:8px 10px; border-radius:8px; color:var(--muted); text-decoration:none; font-size:.92rem; line-height:1.4; }
.menu-submenu a:hover,.menu-submenu a:focus-visible { color:#103e66; background:#f1f5f8; }
@media(max-width:1120px) { .desktop-site-nav { gap:2px; } .desktop-site-nav>a,.desktop-nav-item>a { padding-inline:5px; font-size:.77rem; } .header-actions>.socials { display:none; } }
@media(max-width:960px) { .desktop-site-nav { display:none; } }
@media(max-width:600px) { .site-menu { inset:auto 0 0; width:100%; height:min(88vh,860px); border-radius:22px 22px 0 0; --slide-start:100%; } html[dir="ltr"] .site-menu { inset:auto 0 0; --slide-start:100%; } .drawer-inner { padding:18px 20px calc(22px + env(safe-area-inset-bottom)); } .menu-tree { max-height:calc(88vh - 165px); } }

.contact-tabs-section { padding-block:12px 48px; }
.contact-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:8px 0 18px; }
.contact-tabs .section-post-filter { min-width:145px; }
.contact-panel[hidden] { display:none!important; }
.contact-panel>.tree-section { width:100%; padding:20px 0 24px; }
.contact-panel>.tree-contact { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
.contact-panel .tree-contact p { margin:0; padding:14px 16px; border:1px solid #e0d3b6; border-radius:14px; background:linear-gradient(135deg,#fff,#f5f9fc); }
@media(max-width:560px) { .contact-panel>.tree-contact { grid-template-columns:1fr; } }

/* Brand colored signal waves on the fixed social links. */
.floating-social-link { isolation:isolate; }
.floating-social-link::before,.floating-social-link::after { inset:-5px; border:2px solid var(--wave-color); background:none; -webkit-mask:none; mask:none; opacity:0; animation:social-wave 3.2s ease-out infinite; }
.floating-social-link::after { content:""; position:absolute; z-index:-1; border-radius:50%; animation-delay:1.6s; }
.floating-facebook { --wave-color:#1877f2; color:#fff; background:#0866ff; border-color:#dceaff; }
.floating-alhoda { --wave-color:#d8b45e; color:#f1d48b; background:linear-gradient(145deg,#173d61,#0d2945); border-color:#e1bd68; }
@keyframes social-wave { 0% { transform:scale(.8); opacity:.78; } 70%,100% { transform:scale(1.8); opacity:0; } }
.footer-quicklinks { margin-block:14px 18px; }
.home-page .footer-quicklinks { display:flex; }
@media(prefers-reduced-motion:reduce) { .submenu-toggle,.floating-social-link::before,.floating-social-link::after { animation:none; transition:none; } }
@keyframes drawer-enter-bottom { from { transform:translateY(100%); } to { transform:translateY(0); } }
@media(max-width:600px) { .site-menu[open] { animation:drawer-enter-bottom .27s cubic-bezier(.22,.78,.28,1) both; } }
@media(min-width:961px) and (max-width:1240px) { .desktop-site-nav { flex-wrap:wrap; row-gap:0; } .desktop-site-nav>a,.desktop-nav-item>a { font-size:.76rem; padding-inline:5px; } }
/* Compact, scrollable primary navigation with visible directional controls. */
.desktop-nav-shell{display:flex;align-items:center;gap:4px;flex:1 1 auto;min-width:0}
.desktop-site-nav{justify-content:flex-start;flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth;white-space:nowrap}
.desktop-site-nav::-webkit-scrollbar{display:none}
.nav-scroll-control{flex:none;width:28px;height:34px;padding:0;border:1px solid #d9bb70;border-radius:10px;background:#fff;color:#123957;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 10px #102e4e13;transition:transform .2s,background .2s}
.nav-scroll-control:hover{transform:translateY(-2px);background:#eff6fb}
.nav-scroll-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.submenu-toggle,.menu-category-toggle{display:grid;place-items:center;font-size:0}
.submenu-toggle .submenu-chevron,.menu-category-toggle .submenu-chevron{transition:transform .22s ease}
.submenu-toggle[aria-expanded="true"] .submenu-chevron,.menu-category-toggle[aria-expanded="true"] .submenu-chevron{transform:rotate(180deg)}
.menu-category{border-bottom:1px solid #e9dfca}
.menu-category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.menu-category-heading>a{flex:1;padding:9px 10px;color:var(--ink);font-weight:750;text-decoration:none}
.menu-category-toggle{flex:none;width:34px;height:34px;border:1px solid #d9c28b;border-radius:11px;background:#fbf8f0;color:#153b5e;cursor:pointer}
.menu-category-submenu{display:grid;gap:2px;padding:2px 10px 9px 22px}
.menu-category-submenu[hidden]{display:none}
.menu-category-submenu a{padding:7px 9px;color:var(--muted);text-decoration:none;border-radius:8px}
.menu-category-submenu a:hover{background:#f0f5f9;color:#113c60}
.entity-section{padding-block:clamp(32px,5vw,68px)}
.entity-intro{max-width:900px;margin:0 auto 22px;text-align:center}
.entity-intro h1{margin:.25rem 0 .65rem;color:#123653;font-size:clamp(2rem,4vw,3.4rem);line-height:1.2}
.entity-intro p{margin:0;color:#657388;font-size:1.08rem;line-height:1.8}
.entity-filters{justify-content:center;margin-block:24px 28px}
.entity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.entity-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #e4d8bd;border-radius:22px;background:linear-gradient(155deg,#fff,#faf7f1);box-shadow:0 8px 22px #102e4e17;text-decoration:none;color:var(--ink);transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s,border-color .28s}
.entity-card:hover,.entity-card:focus-visible{transform:translateY(-6px);box-shadow:0 18px 35px #102e4e26;border-color:#d3ad55}
.entity-card>img{display:block;width:100%;aspect-ratio:1.05/1;object-fit:cover;background:#eef3f7;transition:transform .45s cubic-bezier(.2,.75,.25,1)}
.entity-card:hover>img{transform:scale(1.035)}
.entity-card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:7px;padding:16px 17px 18px}
.entity-card-body strong{font-size:1.16rem;line-height:1.45;color:#113956}
.entity-card-body small{color:#67758a;font-size:.92rem;line-height:1.55}
.entity-card-arrow{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:8px;color:#85611a;font-weight:800}
.entity-card-arrow b{display:grid;place-items:center;width:25px;height:25px;border:1px solid #d9b859;border-radius:50%;color:#fff;background:#123d60;font-size:1.1rem}
.entity-card[hidden]{display:none!important}
.main-page-card{overflow:visible;isolation:isolate}
.main-page-picture{overflow:visible}
.main-page-picture>img{border-radius:22px 22px 13px 13px}
.main-page-icon{z-index:2;color:#fff;background:linear-gradient(145deg,#194e78,#0d2d4c);border:2px solid #dfb953;box-shadow:0 8px 20px #0e2d4e45}
.main-page-icon .ui-icon{color:#fff;stroke:#fff}
.main-page-grid{row-gap:30px;padding:8px 6px 18px}
.social-alhoda img,.footer-alhoda-link img{display:block;width:25px;height:25px;object-fit:contain}
.footer-alhoda-link{display:grid;place-items:center}
.alhoda-hero-art{display:flex;justify-content:center;padding-block:26px 4px}
.alhoda-hero-art img{display:block;width:min(720px,100%);max-height:330px;object-fit:contain;border-radius:18px}
.inline-site-search { padding-block: clamp(24px, 4vw, 48px); }
.inline-site-search[hidden], .inline-site-search-close[hidden] { display: none; }
.inline-site-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1rem; }
.inline-site-search-heading :is(h1, h2) { margin: 0; color: #123653; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.inline-site-search-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #d7c390; border-radius: 12px; color: #123653; background: #fff; cursor: pointer; }
.global-search-label{display:block;margin-bottom:8px;font-weight:750;color:#153b5e}
#site-search{width:100%;min-height:56px;padding:12px 18px;border:1px solid #d7c390;border-radius:16px;background:#fff;font:inherit;font-size:1.1rem;box-shadow:0 8px 22px #102e4e10}
#global-search-status{color:#68778b;margin:14px 0}
.global-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.global-search-result{display:grid;gap:5px;padding:15px 17px;border:1px solid #e4d8bd;border-radius:14px;background:#fff;color:#153b5e;text-decoration:none;transition:transform .2s,box-shadow .2s}
.global-search-result:hover{transform:translateY(-2px);box-shadow:0 8px 18px #102e4e14}
.global-search-result small{color:#748094;direction:ltr;text-align:start;overflow-wrap:anywhere}
.entity-card,.main-page-card,.tree-card{animation:site-card-enter .65s both}
@keyframes site-card-enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.entity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.header{gap:9px}.nav-scroll-control{width:25px}}
@media(max-width:960px){.desktop-nav-shell{display:none}}
@media(max-width:700px){.entity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.entity-card{border-radius:16px}.entity-card-body{padding:12px}.entity-card-body strong{font-size:1rem}.entity-card>img{aspect-ratio:1/1}.global-search-results{grid-template-columns:1fr}}
@media(max-width:430px){.entity-grid{gap:10px}.entity-card-body small{font-size:.82rem}.entity-card-body strong{font-size:.93rem}}
@media(prefers-reduced-motion:reduce){.entity-card,.entity-card>img,.main-page-card,.tree-card{animation:none!important;transition:none!important}.desktop-site-nav{scroll-behavior:auto}}
.floating-alhoda img{display:block;width:29px;height:29px;object-fit:contain;border-radius:50%;background:#fff}

/* Give laptop and desktop layouts room to breathe without changing mobile. */
@media (min-width: 961px) {
  .wrap { width: min(1720px, calc(100% - 64px)); }
  .tree-hero .wrap { max-width: none; }
  .header { gap: clamp(10px, 1.2vw, 22px); }
  .header-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .header-actions .socials { flex: 0 0 auto; flex-wrap: nowrap; gap: 2px; margin-inline-end: 2px; }
  .header-actions .socials a { flex: 0 0 38px; min-width: 38px; min-height: 38px; padding-inline: 4px; }
  .desktop-nav-shell { gap: 7px; }
  .desktop-site-nav { gap: clamp(5px, .55vw, 10px); }
  .desktop-site-nav > a, .desktop-nav-item > a { font-size: clamp(.82rem, .85vw, .98rem); padding-inline: clamp(5px, .55vw, 9px); }
  .nav-scroll-control { width: 32px; height: 38px; }
  .main-section-cards { padding-block: clamp(34px, 3vw, 58px) 62px; }
  .main-page-grid { gap: clamp(18px, 1.6vw, 30px); }
  .entity-grid { gap: clamp(20px, 1.6vw, 30px); }
  .tree-grid { gap: clamp(16px, 1.25vw, 24px); }
  .tree-section { padding-block: clamp(34px, 3vw, 54px) 64px; }
}

@media (min-width: 1600px) {
  .main-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .entity-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Refined desktop popovers are portaled outside the horizontally scrolling navigation. */
.desktop-submenu-floating{position:fixed;z-index:3000;display:grid;gap:3px;min-width:230px;max-width:min(360px,calc(100vw - 24px));max-height:min(70vh,520px);overflow:auto;padding:9px;border:1px solid #d6b257;border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 18px 50px #0c2d4c28;backdrop-filter:blur(14px);animation:submenu-pop .2s cubic-bezier(.2,.8,.2,1) both}
.desktop-submenu-floating a{display:block;padding:10px 13px;border-radius:9px;color:#123653;text-decoration:none;white-space:normal;line-height:1.45;transition:background .18s,transform .18s,color .18s}
.desktop-submenu-floating a:hover,.desktop-submenu-floating a:focus-visible{background:#eef5fb;color:#9a721d;transform:translateX(-2px);outline:none}
@keyframes submenu-pop{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.reference-card{display:block;padding:0!important;border:0!important;border-radius:26px;overflow:hidden!important;background:transparent!important;box-shadow:none!important;transition:transform .38s cubic-bezier(.2,.8,.2,1),filter .38s}
.reference-card:hover,.reference-card:focus-visible{transform:translateY(-7px) scale(1.015);filter:drop-shadow(0 18px 22px #102e4e2b);outline:3px solid #d9b653;outline-offset:4px}
.reference-card-image{display:block;width:100%;height:auto;aspect-ratio:640/620;object-fit:contain;border-radius:24px}
.contact-message-form{animation:message-form-in .48s cubic-bezier(.2,.8,.2,1) both}
.contact-message-form label{transition:transform .2s,color .2s}
.contact-message-form label:focus-within{transform:translateY(-2px);color:#88651c}
@keyframes message-form-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.desktop-submenu-floating,.reference-card,.contact-message-form{animation:none!important;transition:none!important}}

/* Laptop navigation: let all primary pages flow across two balanced rows. */
@media(min-width:961px){
  .header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(10px,1.4vw,22px)}
  .desktop-nav-shell{display:block;width:100%;min-width:0}
  .desktop-site-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px 6px;width:100%;overflow:visible;white-space:normal;align-content:center;justify-content:stretch}
  .desktop-site-nav>a,.desktop-nav-item>a{display:flex;justify-content:center;min-width:0;min-height:37px;padding:5px 7px;font-size:clamp(.68rem,.75vw,.9rem);line-height:1.3;white-space:normal;text-align:center}
  .desktop-nav-item{min-width:0}
  .desktop-nav-item>a{width:100%}
  .desktop-site-nav>a:hover,.desktop-nav-item>a:hover,.desktop-site-nav>a:focus-visible,.desktop-nav-item>a:focus-visible,.desktop-site-nav>a.is-current,.desktop-nav-item>a.is-current{color:#fff;background:var(--brand-blue);box-shadow:0 4px 14px #0a294624}
}
.desktop-submenu-floating a.is-current{background:var(--brand-blue);color:#fff;font-weight:800}
.entity-page-cover{width:min(1720px,calc(100% - 48px));margin:clamp(18px,3vw,36px) auto 0;overflow:hidden;border:1px solid #d8b65c;border-radius:clamp(18px,2.2vw,30px);background:#123957;box-shadow:0 14px 34px #102e4e20}
.entity-page-cover img{display:block;width:100%;height:clamp(180px,28vw,380px);object-fit:cover;object-position:center 48%}
.entity-filters [data-entity-filter].is-active{background:#123957;color:#fff;border-color:#d8b65c}
.alhoda-logo-card .main-page-picture{display:grid;place-items:center;padding:18px;background:#fff}
.alhoda-logo-card .main-page-picture>img{width:min(78%,250px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%}
@media(max-width:960px){.entity-page-cover{width:calc(100% - 32px);margin-top:16px}.entity-page-cover img{height:clamp(165px,44vw,300px)}}
@media(prefers-reduced-motion:reduce){.entity-page-cover,.alhoda-logo-card{scroll-behavior:auto}}

/* Match the supplied three-column card rhythm while preserving compact mobile grids. */
@media(min-width:901px){.main-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.alhoda-logo-card .main-page-picture{aspect-ratio:1.48;padding:8px}
.alhoda-logo-card .main-page-picture>img{width:min(58%,220px);max-height:100%}
.tree-hero-grid>img[src*="alhoda-icon"]{width:min(280px,100%);aspect-ratio:1;margin-inline:auto;border-radius:50%;object-fit:contain}

/* The supplied artwork already includes the gold frame and icon. */
.main-page-grid .main-page-card {
  padding: 0 0 14px;
  border-radius: 24px;
  overflow: hidden;
}
.home-card-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 397 / 315;
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
}
.main-page-grid .main-page-title {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  padding: 10px 12px 0;
}
@media (max-width: 560px) {
  .main-page-grid .main-page-card { border-radius: 17px; }
  .main-page-grid .main-page-title { padding-inline: 8px; }
}

/* Section banners share the same full-width text layout. */
.tree-hero-grid.tree-hero-grid--text {
  grid-template-columns: minmax(0, 1fr);
}
.desktop-nav-icon {
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.desktop-site-nav > a,
.desktop-nav-item > a {
  gap: 5px;
}
.desktop-site-nav.has-floating-submenus .desktop-submenu {
  display: none;
}
.desktop-nav-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 9px;
  color: #123653;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.desktop-nav-category > summary::-webkit-details-marker {
  display: none;
}
.desktop-nav-category > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.desktop-nav-category[open] > summary,
.desktop-nav-category > summary:hover {
  background: #eef5fb;
}
.desktop-nav-category[open] > summary::after {
  transform: rotate(225deg);
}
.desktop-nav-category-links {
  margin: 4px 13px 6px;
  padding-inline-start: 6px;
  border-inline-start: 1px solid #dfc580;
}

/* Quick actions and current location within the site drawer. */
.drawer-tools { display: grid; justify-items: start; gap: 10px; margin-block-end: 16px; }
.drawer-search {
  display: flex;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--brand-blue);
  border-radius: 10px;
  background: #fff;
}
.drawer-search:focus-within { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.drawer-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.drawer-search input:focus-visible { outline: none; }
.drawer-search button {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 0;
  border-start-end-radius: 9px;
  border-end-end-radius: 9px;
  color: #fff;
  background: var(--brand-blue);
  cursor: pointer;
}
.drawer-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 13px;
  border: 1px solid var(--brand-blue);
  border-radius: 9px;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 750;
}
.drawer-language:hover { background: var(--brand-blue-soft); }
.drawer-inner .menu-tree { max-height: none; overflow: visible; }
.drawer-inner .menu-tree a.is-current { background: var(--brand-blue-soft); color: var(--brand-blue); border-radius: 9px; }
.drawer-inner .menu-tree a[aria-current="page"],
.desktop-submenu a[aria-current="page"],
.desktop-submenu-floating a[aria-current="page"] { background: var(--brand-blue); color: #fff; border-radius: 9px; }
.drawer-inner .menu-tree a[aria-current="page"] .ui-icon { color: inherit; }
.desktop-nav-category:has(a.is-current) > summary { background: var(--brand-blue-soft); color: var(--brand-blue); }
