/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
:root {
  color-scheme: light;
  --brand-blue: #2F428B;
  --brand-blue-deep: #202E68;
  --brand-blue-soft: #EDF0FA;
  --navy: var(--brand-blue);
  --deep: #0b1c30;
  --ink: #172e47;
  --muted: #505e6b;
  --paper: #faf7f0;
  --gold: #e6c483;
  --line: #e2d9ca;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 2px solid #7b568e; outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; padding: 10px; background: white; z-index: 2; }
.top { background: var(--paper); }
.header { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.3; }
.brand img { border-radius: 9px; border: 1px solid #e7e1d6; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.04rem; }
.brand small { color: var(--muted); margin-top: 5px; font-size: .81rem; }
.hero { background: radial-gradient(ellipse at 18% 25%, #253955, transparent 62%), var(--navy); color: #fff8eb; border-block-end: 3px solid #bd995d; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; min-height: 474px; gap: clamp(35px, 7vw, 110px); padding-block: 40px; }
.hero-kicker, .kicker { font-weight: 600; color: #76561f; font-size: .91rem; }
.hero-kicker { color: var(--gold); display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-weight: 800; }
h1 { font-size: clamp(3rem, 6vw, 5.45rem); line-height: 1.34; margin-block: 7px 15px; }
.hero-description { color: #e0e5eb; font-size: 1.08rem; line-height: 1.8; max-width: 395px; margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px; min-height: 46px; font-weight: 700; font-size: .91rem; text-decoration: none; }
.archive { padding-block: 56px 66px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { font-size: clamp(1.85rem, 4vw, 3.15rem); line-height: 1.45; margin-block: 4px 0; }
.archive-note { margin-block: 9px 19px; color: var(--muted); line-height: 1.85; }
.archive-note a { color: var(--ink); text-underline-offset: 4px; }
.search { display: flex; align-items: center; gap: 9px; width: min(290px, 100%); padding-inline: 12px; border: 1px solid #d9d0c0; background: #fffdf9; color: var(--muted); }
.search input { width: 100%; min-width: 0; font-size: .94rem; min-height: 44px; border: 0; color: var(--ink); background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.filters button { border: 1px solid #d9d0c0; color: var(--ink); background: transparent; border-radius: 3px; padding: 7px 14px; cursor: pointer; min-height: 42px; }
.filters button:hover { background: #ece4d7; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fffdf9; }
.card-art { display: flex; align-items: center; justify-content: center; padding: 12px; background: #e7d9bd; height: 229px; overflow: hidden; }
.card-art.greek { background: #e4d6ba; }
.card-art.hebrew { background: #d5dfe3; }
.card-art.arabic { background: #ead8cf; }
.card-art.history { background: #c9c0a9; }
.card-art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; box-shadow: 0 4px 14px #1717222b; transition: transform .18s ease; }
.card-art:hover img { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 19px; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 13px; flex-wrap: wrap; font-size: .79rem; color: var(--muted); }
.meta span { color: #795820; font-weight: 700; }
h3 { font-size: 1.42rem; margin-block: 8px 5px; line-height: 1.6; }
.card-body > p:not(.meta) { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.source { font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.card-body > .source, .card-links { margin-top: auto; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.empty { padding: 20px; border: 1px solid var(--line); }
.about { border-block-start: 1px solid var(--line); background: #f0eadf; }
.about-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; padding-block: 45px; }
.about-inner > div > p:not(.kicker) { max-width: 665px; font-size: 1.05rem; line-height: 1.9; margin-block: 9px 19px; color: var(--muted); }
.about-inner img { width: min(190px, 24vw); height: auto; border: 1px solid var(--line); }
@media (max-width: 830px) {
  .wrap { width: min(100% - 44px, 1160px); }
  .hero-inner { min-height: 390px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .header { padding-block: 10px; gap: 10px; flex-wrap: wrap; }
  .brand img { width: 44px; height: 44px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 27px; gap: 22px; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.7rem); }
  .archive { padding-block: 35px 44px; }
  .section-header { display: grid; gap: 11px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; }
  .about-inner img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.header-actions, .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.header-actions { gap: 8px; }
.icon-button, .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 10px;
  border: 1px solid #dbd7ce;
  border-radius: 10px;
  background: #fffdf9;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: .83rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-button:hover, .socials a:hover {
  background: #eaf2f9;
  border-color: #a9bfd1;
}
.header-actions .socials { margin-inline-end: 5px; }
.header-actions .socials a { border-color: transparent; background: transparent; }
.header-actions .socials a:hover { background: #eaf2f9; }
.search:focus-within { box-shadow: 0 0 0 3px #aac4d56e; border-color: #526f8c; }
.search input:focus { outline: none; }
#search-box { scroll-margin-block: 30px; }

.hero {
  isolation: isolate;
  background: radial-gradient(ellipse at 18% 20%, #315b7a, transparent 55%), linear-gradient(145deg, #152e4c, #0b1c30 74%);
}
.hero-inner { position: relative; }
.hero-copy { animation: hero-enter .62s cubic-bezier(.19,.75,.36,1) both; }
  background: linear-gradient(137deg, #e4f7ff38, #e4f7ff08 42%, #b6e8ff25);
  box-shadow: 0 18px 44px #05152468;
  animation: hero-enter .75s .1s cubic-bezier(.19,.75,.36,1) both;
}
:lang(en) .hero { background: radial-gradient(ellipse at 82% 20%, #315b7a, transparent 55%), linear-gradient(215deg, #152e4c, #0b1c30 74%); }
:lang(en) h1 { font-size: clamp(2.35rem, 5.6vw, 4.65rem); }
.crystal-button {
  isolation: isolate;
  position: relative;
  gap: 15px;
  min-height: 52px;
  padding: 7px 14px;
  overflow: hidden;
  border: 1px solid #eef9ffcb;
  border-radius: 13px;
  background: linear-gradient(124deg, #f0fbff 2%, #9cc9e4 46%, #f0debb 100%);
  color: #102940;
  box-shadow: inset 0 1px 2px #fff9, 0 9px 24px #07162669;
  transition: transform .25s ease, box-shadow .25s ease;
}
.crystal-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% auto -60% -50%;
  width: 35%;
  transform: translateX(-90%) skewX(-27deg);
  background: linear-gradient(90deg, transparent, #fff9, transparent);
}
.crystal-button:hover::before { animation: crystal-shine .68s ease both; }
.crystal-button:hover { transform: translateY(-3px); box-shadow: 0 13px 32px #8cd6ff46; }
.crystal-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  border: 1px solid #fff9;
  background: linear-gradient(145deg, #fff9, #91b8d37d);
}
[dir="rtl"] .crystal-icon svg { transform: scaleX(-1); }
.card { transition: border-color .22s ease, box-shadow .22s ease; }
.card:hover, .card:focus-within { border-color: #b8b0a3; box-shadow: 0 8px 26px #152d4613; }
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crystal-shine {
  to { transform: translateX(500%) skewX(-27deg); }
}
@media (max-width: 650px) {
  .header-actions { gap: 5px; }
  .header-actions .socials { display: none; }
  .brand strong { font-size: .93rem; }
  .brand small { font-size: .73rem; }
}
@media (max-width: 420px) {
  .header-actions { margin-inline-start: auto; }
  .hero-inner { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .crystal-button:hover { transform: none; }
}

/* Main sections: reference-inspired navy and antique-gold image cards */
.main-section-cards { padding-block: 62px 58px; }
.main-section-heading { text-align:center; margin:0 auto 26px; max-width:760px; }
.main-section-heading .kicker { color:#a17d3d; }
.main-section-heading p:last-child { color:var(--muted); line-height:1.8; margin-top:6px; }
.main-page-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.main-page-card { position:relative; display:flex; flex-direction:column; align-items:center; padding:0 0 20px; overflow:hidden; border:1px solid #e3d8c4; border-radius:24px; background:linear-gradient(145deg,#fff 5%,#faf7f0 100%); box-shadow:0 9px 24px #102e4e16; text-decoration:none; transition:transform .25s ease,box-shadow .25s ease; }
.main-page-card:hover { transform:translateY(-6px); box-shadow:0 18px 34px #102e4e25; }
.main-page-picture { position:relative; display:block; width:100%; aspect-ratio:1.48; border:2px solid #d4ad5d; border-bottom-width:5px; border-radius:22px 22px 18px 18px; overflow:visible; background:#f4efe5; }
.main-page-picture>img { width:100%; height:100%; object-fit:cover; border-radius:20px 20px 14px 14px; }
.main-page-icon { position:absolute; left:50%; bottom:-32px; transform:translateX(-50%); display:grid; place-items:center; width:66px; height:66px; border:4px solid #e5c16e; border-radius:50%; color:#fff; background:linear-gradient(145deg,#153f68,#0c2947); box-shadow:0 4px 10px #102e4e30; }
.main-page-title { min-height:60px; display:grid; place-items:end center; padding:34px 12px 0; color:#103252; text-align:center; font-size:1.25rem; line-height:1.4; font-weight:800; }
.main-page-description { display:none; }
.tree-hero-grid>img { object-fit:contain !important; background:#fffdf8; }
.tree-card { border-radius:16px; }
.tree-card--compact { min-height:unset; }
.library-video-link { display:grid; grid-template-columns:170px 1fr auto; align-items:center; gap:18px; padding:14px; border:1px solid var(--line); border-radius:18px; background:#fffdf9; color:var(--ink); text-decoration:none; box-shadow:0 8px 22px #102e4e0f; }
.library-video-link img { width:170px; aspect-ratio:1.48; object-fit:cover; border:2px solid #d4ad5d; border-radius:13px; }
.library-video-link span:nth-child(2) { display:grid; gap:6px; }
.library-video-link small { color:var(--muted); }
@media(max-width:900px){.main-page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:560px){.main-section-cards{padding-block:38px}.main-page-grid{gap:12px}.main-page-card{border-radius:17px;padding-bottom:13px}.main-page-picture{border-radius:16px}.main-page-picture>img{border-radius:14px 14px 10px 10px}.main-page-icon{width:52px;height:52px;bottom:-25px}.main-page-title{font-size:1rem;min-height:52px;padding:29px 8px 0}.library-video-link{grid-template-columns:95px 1fr;gap:12px}.library-video-link img{width:95px}.library-video-link .tree-card-more{grid-column:2}}
.publication-card .card-body { gap:7px; }
.publication-card .news-actions { gap:2px 14px; }


/* Persistent Facebook and Alhoda shortcuts */
.floating-social-cta { position:fixed; z-index:1100; inset-inline-end:16px; bottom:calc(18px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; }
.floating-social-link { position:relative; display:grid; place-items:center; width:54px; height:54px; border-radius:50%; color:#fff; border:1px solid #e2bd69; background:linear-gradient(145deg,#1d4d75,#102d4a); box-shadow:0 8px 22px #071c3155,inset 0 1px #ffffff55; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.floating-social-link::before { content:""; position:absolute; inset:-11px; z-index:-1; border-radius:50%; opacity:.48; background:repeating-conic-gradient(from 0deg,transparent 0deg 9deg,#d5b566 9deg 10deg,transparent 10deg 18deg); -webkit-mask:radial-gradient(circle,transparent 0 54%,#000 56% 68%,transparent 71%); mask:radial-gradient(circle,transparent 0 54%,#000 56% 68%,transparent 71%); animation:social-rays 9s linear infinite,social-rays-pulse 3.2s ease-in-out infinite; }
.floating-social-link:hover { transform:translateY(-3px) scale(1.04); box-shadow:0 12px 28px #071c3170,inset 0 1px #ffffff70; }
.floating-social-link svg { width:24px; height:24px; fill:currentColor; }
.floating-alhoda { color:#f8e7bb; background:linear-gradient(145deg,#173d61,#0d2945); }
.floating-alhoda .huda-letter { font:700 5px Cairo, sans-serif; fill:#f1d48b; stroke:none; }
.footer-alhoda-link svg { width:21px; height:21px; fill:currentColor; }
.footer-alhoda-link .huda-letter { font:700 5px Cairo, sans-serif; fill:#f1d48b; stroke:none; }
.footer-alhoda-link { color:#173c60!important; }
@keyframes social-rays { to { transform:rotate(360deg); } }
@keyframes social-rays-pulse { 0%,100% {opacity:.3} 50% {opacity:.63} }
@media(max-width:560px) { .floating-social-cta { inset-inline-end:12px; bottom:calc(18px + env(safe-area-inset-bottom)); gap:10px; } .floating-social-link { width:49px;height:49px; } }
@media(prefers-reduced-motion:reduce) { .floating-social-link,.floating-social-link::before { transition:none; animation:none; } }

: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); }

/* Single-row header navigation: whatever does not fit moves into a "more" menu. */
@media(min-width:961px){
  .header{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(10px,1.2vw,20px);min-height:74px}
  .brand{flex:none}
  .desktop-nav-shell{display:block;flex:1 1 auto;min-width:0;width:auto}
  .desktop-site-nav{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:2px;width:100%;overflow:visible;white-space:nowrap}
  .desktop-site-nav>a,.desktop-nav-item>a{display:flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:6px clamp(7px,.7vw,11px);font-size:clamp(.8rem,.9vw,.94rem);font-weight:750;border-radius:10px;width:auto}
  .desktop-nav-item{flex:none;min-width:0}
  .desktop-nav-item>a{width:auto}
  .header-actions{flex:none}
  .desktop-site-nav .nav-more{position:relative}
  .desktop-site-nav .nav-more-btn{display:flex;align-items:center;gap:5px;min-height:40px;padding:6px 12px;border:1px solid #d9bb70;border-radius:10px;background:#fff;color:var(--ink,#123957);font:inherit;font-size:clamp(.8rem,.9vw,.94rem);font-weight:750;cursor:pointer}
  .desktop-site-nav .nav-more-btn:hover,.desktop-site-nav .nav-more-btn[aria-expanded="true"]{background:var(--brand-blue,#2F428B);color:#fff;border-color:transparent}
  .desktop-site-nav .nav-more-btn::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg) translateY(-2px)}
  .nav-more-panel{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-start:0;z-index:3200;display:none;flex-direction:column;gap:2px;min-width:210px;max-width:min(320px,90vw);padding:8px;border:1px solid #d6b257;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 18px 40px #0a29462e;white-space:normal}
  .nav-more-panel.is-open{display:flex}
  .nav-more-panel a{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:9px;color:#123653;text-decoration:none;font-weight:750;font-size:.92rem;line-height:1.4}
  .nav-more-panel a:hover,.nav-more-panel a:focus-visible{background:#eef5fb;color:#9a721d;outline:none}
  .nav-more-panel svg{width:15px;height:15px;flex:none}
}
.desktop-site-nav>[hidden]{display:none!important}
@media(min-width:961px){.desktop-site-nav>*{flex:none}.desktop-site-nav>a.desktop-home-link{min-width:max-content}}

.facebook-art { height: 218px; }
.facebook-placeholder { background: #eae6f2; }
.facebook-placeholder img { width: 56px; height: 56px; box-shadow: none; }
.post-excerpt { unicode-bidi: isolate; }
.archive-more { margin-top: 22px; text-align: center; }
.archive-more button {
  border: 1px solid #d8c8e0;
  border-radius: 10px;
  background: #fff;
  color: var(--plum);
  cursor: pointer;
}
.archive-more button:hover { background: #f4e9f6; }
.video-hero {
  padding: 50px 0;
  background: linear-gradient(115deg, #112d48, #401d46);
  color: #fff;
}
.video-hero h1 {
  font-size: clamp(2.65rem, 6vw, 4.85rem);
  line-height: 1.15;
  margin-block: 9px 14px;
}
.video-hero p:not(.hero-kicker) { color: #eee5f2; margin-bottom: 16px; }
.video-hero :focus-visible { outline-color: var(--gold); }
.video-library { padding-block: 35px 56px; }
.video-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-block-end: 20px;
  color: var(--muted);
}
.video-search-row .search { width: min(385px, 100%); }
#playlist-groups { display: grid; gap: 9px; }
.playlist {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.playlist summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  cursor: pointer;
}
.playlist summary::-webkit-details-marker { display: none; }
.playlist summary:focus-visible { outline-offset: -4px; border-radius: 10px; }
.playlist summary:hover { color: var(--plum); }
.playlist-original { display: block; color: var(--muted); font-size: .82rem; }
.playlist-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.playlist[open] .playlist-chevron { transform: rotate(180deg); }
.playlist-body { padding: 0 17px 12px; }
.playlist-source { display: inline-flex; margin: 4px 0 8px; }
.playlist-videos { margin: 0; padding-inline-start: 25px; }
.playlist-videos li { padding-inline-start: 4px; border-block-start: 1px solid var(--line); }
.playlist-videos a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding-block: 6px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.playlist-videos a:hover { text-decoration: underline; text-underline-offset: 3px; }
#video-empty { margin-block-start: 12px; }
@media (max-width: 560px) {
  .video-search-row { flex-direction: column; align-items: flex-start; }
  .playlist summary { padding-inline: 12px; column-gap: 8px; }
  .playlist summary .section-icon { width: 34px; height: 34px; }
  .playlist summary .section-icon svg { width: 18px; height: 18px; }
  .playlist-count { font-size: .73rem; }
}

.news-card .card-body { gap: 6px; }
.news-card .card-body time, .story-title time {
  color: var(--muted);
  font-size: .85rem;
}
.news-card h3 { margin: 0 0 8px; }
.news-art {
  height: clamp(170px, 25vw, 230px);
  background: #f0eaf4;
}
.news-art img { max-height: 100%; }
.news-placeholder img { width: 56px; height: 56px; box-shadow: none; }
.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 13px;
  margin-top: auto;
}
.news-read, .news-facebook {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--plum);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
}
.news-read { text-decoration: underline; text-underline-offset: 4px; }
.news-facebook:hover { text-decoration: underline; text-underline-offset: 4px; }
.facebook-round {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #1765bd;
  color: #fff;
}
#archive-title { margin-block: 0; font-size: clamp(1.9rem, 5vw, 3rem); }
.archive .section-header { margin-block-end: 17px; }
.collection-shortcut {
  width: fit-content;
  min-height: 64px;
  margin: 23px auto 0;
}
.home-video { margin-block: 0 48px; }
.home-video h2 { margin-block: 0 15px; }
.home-video-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.story { max-width: 880px; padding-block: 30px 60px; }
.story-back { display: inline-flex; padding-block: 9px; color: var(--plum); }
.story-title { margin-block: 14px 21px; }
.story-title h1 {
  font-size: clamp(1.9rem, 5vw, 3.45rem);
  margin-block: 4px;
  line-height: 1.24;
}
.story-gallery { display: grid; gap: 16px; margin-block: 0 24px; }
.story-gallery a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.story-gallery img { width: auto; height: auto; max-width: 100%; margin-inline: auto; }
.story-body { font-size: 1.06rem; line-height: 1.95; overflow-wrap: anywhere; }
.story-body p + p { margin-block-start: 16px; }
.story-link { margin-block-start: 18px; }
@media (max-width: 560px) {
  .home-video-links { grid-template-columns: 1fr; }
}

.story-photo-source { margin-block: -10px 21px; }

/* Additions for the expanded site directory. Existing page structure and footer stay intact. */
:root { --tree-navy:var(--brand-blue); --tree-gold:#c4a263; --tree-ivory:#fbf8f0; }
.brand img { object-fit:contain; border-radius:50%; }
.ui-icon, .section-icon, .crystal-icon { color:var(--tree-navy); }
.icon-button, .socials a { border-color:#d9c99f; }
.icon-button:hover, .socials a:hover { border-color:var(--tree-gold); background:#fbf6e9; }
.menu-trigger.icon-button { background:var(--tree-navy); color:#fff; border-color:var(--tree-gold); }
.menu-trigger.icon-button .ui-icon { color:#fff; }
.crystal-button, .button {
  color:#fff; background:linear-gradient(125deg,var(--brand-blue),var(--brand-blue-deep));
  border:1px solid #d6b46d; box-shadow:0 8px 22px #112d4821, inset 0 1px #ffffff35;
}
.crystal-button:hover, .button:hover { color:#fff; border-color:#f0d38d; box-shadow:0 12px 28px #112d4833, inset 0 1px #ffffff55; }
.crystal-icon { color:#f3d88f; background:#ffffff19; border:1px solid #ffffff47; }
.card, .section-link, .playlist, .tree-card { border-color:#e1d5b8; }
.card:hover, .section-link:hover, .tree-card:hover { border-color:var(--tree-gold); box-shadow:0 12px 28px #112d481c; }
.section-icon { background:#f6efdf; color:var(--tree-navy); }
.news-facebook .facebook-round { background:#173c60; border:1px solid #d6b46d; }
.site-menu .ui-icon, .menu-label .ui-icon, .drawer-inner .socials a { color:var(--tree-navy); }
.tree-hero { color:#fff; background:linear-gradient(110deg,var(--brand-blue-deep),var(--brand-blue)); padding:34px 0 30px; }
.tree-hero .wrap { max-width:1160px; }
.tree-breadcrumb { margin-bottom:17px; font-size:.9rem; color:#e5d7b5; }
.tree-breadcrumb a { color:inherit; text-decoration:none; }
.tree-hero-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr); gap:clamp(24px,5vw,64px); align-items:center; }
.tree-hero h1 { color:#fff; font-size:clamp(2rem,5vw,3.6rem); line-height:1.2; margin:8px 0 14px; }
.tree-hero p:not(.hero-kicker) { max-width:740px; color:#eef1f5; line-height:1.8; font-size:1.05rem; }
.tree-hero .hero-kicker { color:#e9d39f; }
.tree-hero img { width:100%; aspect-ratio:1.48; object-fit:cover; border-radius:20px; border:1px solid #d8bb7a; box-shadow:0 16px 34px #081a2c55; }
.tree-section { padding-block:35px 54px; }
.tree-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-block-end:16px; }
.tree-section h2, .tree-section-head h2 { margin:0; font-size:clamp(1.45rem,3vw,2rem); color:var(--tree-navy); }
.tree-section-head span, .tree-section-head a { color:#917442; }
.tree-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.tree-card { display:grid; grid-template-columns:1fr; position:relative; overflow:hidden; min-height:290px; color:inherit; text-decoration:none; border:1px solid #e1d5b8; border-radius:18px; background:#fff; box-shadow:0 8px 25px #112d480c; transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.tree-card:hover { transform:translateY(-3px); }
.tree-card-art { display:block; height:160px; overflow:hidden; background:#e8edf2; }
.tree-card-art img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.tree-card:hover .tree-card-art img { transform:scale(1.035); }
.tree-card-icon { position:absolute; top:137px; inset-inline-start:18px; display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:#fff; color:var(--tree-navy); border:1px solid #d8c697; box-shadow:0 4px 13px #112d4820; }
.tree-icon { width:25px; height:25px; }
.tree-card-text { display:grid; align-content:start; gap:7px; padding:30px 17px 10px; }
.tree-card-text strong { color:var(--tree-navy); font-size:1.13rem; }
.tree-card-text small { color:var(--muted); font-size:.92rem; line-height:1.6; }
.tree-card-more { align-self:end; justify-self:start; margin:0 17px 16px; color:#967944; font-size:.86rem; font-weight:800; }
.tree-note { padding-block:0 38px; text-align:center; }
.tree-profile { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr); align-items:center; gap:clamp(22px,5vw,60px); padding-block:35px 60px; }
.tree-profile>img { width:100%; aspect-ratio:1.25; object-fit:cover; border-radius:20px; border:1px solid #d9c99f; }
.tree-profile h2 { color:var(--tree-navy); font-size:clamp(1.6rem,3vw,2.2rem); }
.tree-profile p, .tree-contact p { line-height:1.9; font-size:1.04rem; }
.tree-eyebrow { color:#927742; font-weight:800; }
.tree-disclosure { color:var(--muted); font-size:.94rem!important; border-inline-start:3px solid var(--tree-gold); padding-inline-start:13px; }
.tree-post-links { list-style:none; padding:0; margin:16px 0 0; border-top:1px solid #e3dac6; }
.tree-post-links li { border-bottom:1px solid #e3dac6; }
.tree-post-links a { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:15px 4px; text-decoration:none; color:var(--tree-navy); font-weight:750; }
.tree-post-links a:hover { color:#9b7737; }
.tree-post-links time { color:var(--muted); font-size:.84rem; font-weight:500; white-space:nowrap; }
.tree-empty { padding:18px; color:var(--muted); background:var(--tree-ivory); border:1px solid #e1d5b8; border-radius:14px; line-height:1.8; }
.tree-links { display:grid; gap:12px; }
.tree-links a { display:block; padding:16px 18px; border:1px solid #e1d5b8; border-radius:14px; color:var(--tree-navy); text-decoration:none; background:#fff; font-weight:750; }
.tree-links a:hover { border-color:var(--tree-gold); background:var(--tree-ivory); }
.tree-form-shell { max-width:780px; margin-inline:auto; padding:clamp(20px,4vw,36px); border:1px solid #e1d5b8; border-radius:20px; background:#fff; box-shadow:0 12px 34px #112d4812; }
.news-submit-form { display:grid; gap:16px; }
.news-submit-form label { display:grid; gap:7px; font-weight:750; color:var(--tree-navy); }
.news-submit-form input:not([type=checkbox]), .news-submit-form textarea { width:100%; min-height:48px; padding:11px 13px; border:1px solid #d9d1c3; border-radius:10px; font:inherit; background:#fff; color:#222; }
.news-submit-form textarea { min-height:150px; resize:vertical; }
.news-submit-form input:focus, .news-submit-form textarea:focus { outline:2px solid #c4a263; outline-offset:2px; }
.news-submit-form .tree-check { display:flex; align-items:flex-start; gap:10px; font-size:.95rem; line-height:1.6; }
.news-submit-form .tree-check input { margin-top:.35em; accent-color:var(--tree-navy); }
.news-submit-form .button { justify-self:start; font:inherit; cursor:pointer; }
.submission-review { margin-top:20px; padding:18px; border:1px solid #d9c99f; border-radius:14px; background:#fbf8f0; color:var(--tree-navy); }
.submission-review h2 { margin-top:0; }
.submission-review pre { white-space:pre-wrap; font:inherit; line-height:1.8; }
@media(max-width:760px) { .tree-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .tree-hero-grid { grid-template-columns:1fr; } .tree-hero-grid img { max-height:260px; } }
@media(max-width:520px) { .tree-grid { grid-template-columns:1fr; } .tree-card { min-height:265px; } .tree-card-art { height:150px; } .tree-card-icon { top:127px; } .tree-profile { grid-template-columns:1fr; } .tree-section-head { flex-direction:column; } .tree-post-links a { align-items:flex-start; flex-direction:column; } }
@media(prefers-reduced-motion:reduce) { .tree-card,.tree-card-art img { transition:none; } }

/* Main-section child pages as prominent crystal buttons */
.tree-card {
  display:flex; align-items:center; gap:15px; min-height:92px; padding:17px 20px;
  border:1px solid #d2b46d; border-radius:18px;
  background:linear-gradient(120deg,#fff 4%,#f7fbff 48%,#edf4fb 100%);
  box-shadow:0 8px 22px #112d4814,inset 0 1px 0 #fff;
  position:relative; overflow:hidden;
}
.tree-card::before { content:""; position:absolute; inset:-40% auto -40% -48%; width:27%; transform:skewX(-22deg); background:linear-gradient(90deg,transparent,#fff9,transparent); transition:left .55s ease; pointer-events:none; }
.tree-card:hover::before { left:125%; }
.tree-card:hover { border-color:#d4ae54; background:linear-gradient(120deg,#fff 0%,#edf5fc 52%,#e3eef8 100%); box-shadow:0 14px 28px #112d4826,inset 0 1px 0 #fff; }
.tree-card-icon { position:static; flex:none; width:34px; height:34px; border-radius:11px; color:#fff; background:linear-gradient(145deg,var(--brand-blue),var(--brand-blue-deep)); border:1px solid #dbba68; box-shadow:0 4px 10px #112d4820; }
.tree-card-icon .tree-icon { width:19px; height:19px; stroke:currentColor; }
.tree-card-text { flex:1; padding:0; gap:0; align-content:center; }
.tree-card-text strong { font-size:clamp(1.18rem,2vw,1.55rem); line-height:1.45; color:#103252; font-weight:850; }
.tree-card-text small,.tree-card-more { display:none; }
.tree-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.tree-section { padding-block:30px 52px; }
.tree-section-head span { display:none; }
.tree-hero-grid>img { object-fit:contain!important; }
.main-section-cards { padding-block:30px 54px; }
.main-page-grid { scroll-margin-top:16px; }
@media(max-width:760px) { .tree-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .tree-grid { grid-template-columns:1fr; gap:11px; } .tree-card { min-height:78px; padding:14px 16px; } .tree-card-text strong { font-size:1.24rem; } .main-section-cards { padding-block:20px 42px; } }
@media(prefers-reduced-motion:reduce) { .tree-card::before { transition:none; } }

/* Page links remain visible in the home page footer. */

/* Publication cards and category filters */
.section-publications { padding-block: 28px 58px; }
.section-publications-description { margin-top:6px; color:var(--muted); }
.section-post-filters { display:flex; flex-wrap:wrap; gap:9px; margin:20px 0 22px; }
.section-post-filter { min-height:42px; padding:7px 15px; border:1px solid #d8c697; border-radius:999px; color:#143957; background:linear-gradient(130deg,#fff,#f6f9fc); font:inherit; font-weight:750; cursor:pointer; box-shadow:inset 0 1px #fff,0 4px 12px #102e4e10; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.section-post-filter:hover { transform:translateY(-2px); box-shadow:0 7px 18px #102e4e19; }
.section-post-filter.is-active { color:#fff; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-deep)); border-color:#d5b35f; }
.publication-card .card-art { padding:0; }
.publication-card .card-art img { width:100%; height:100%; object-fit:cover; box-shadow:none; }
.publication-card .card-art a { width:100%; height:100%; }
.publication-card .publication-excerpt { color:var(--muted); line-height:1.75; margin:0 0 14px; }
.publication-card[hidden] { display:none!important; }
.section-post-empty { padding:18px; border:1px solid var(--line); border-radius:12px; color:var(--muted); }
@media(prefers-reduced-motion:reduce) { .section-post-filter { transition:none; } }

/* ============================================================
   App shell: single-row brand bar + one tidy navigation row.
   Loaded last so it overrides the legacy header rules.
   ============================================================ */

:root {
  --shell-height: 0px;
}

html {
  scroll-padding-top: 140px;
}

body.site {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 29, 50, 0.04);
}

.site-header .header {
  min-height: 72px;
  flex-wrap: nowrap;
  gap: 16px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header .brand img {
  border-radius: 10px;
  border: 1px solid var(--line);
  flex: none;
}

.site-header .brand strong {
  font-size: 1.02rem;
  color: var(--deep);
  line-height: 1.25;
}

.site-header .brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 3px;
  line-height: 1.3;
}

.site-header .header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-blue-deep);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.language-pill:hover {
  background: var(--brand-blue-soft);
  border-color: #cfd8f2;
}

/* ---- navigation row ---- */

.nav-bar {
  background: #fff;
  border-top: 1px solid var(--line);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 9px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.nav-link.is-current {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.nav-link .ui-icon {
  color: var(--brand-blue);
  opacity: 0.75;
}

.nav-caret {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.nav-caret:hover,
.nav-item.is-open .nav-caret {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.nav-item.is-open .nav-caret svg {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-start: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(16, 29, 50, 0.16);
  padding: 14px;
  display: none;
  z-index: 90;
}

.nav-item.is-open .nav-panel {
  display: block;
}

.nav-panel-wide {
  min-width: min(940px, calc(100vw - 40px));
  display: none;
}

.nav-item:nth-last-child(-n + 4) .nav-panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.nav-item.is-open .nav-panel-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 16px;
}

.nav-panel-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  letter-spacing: 0.01em;
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.nav-panel a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  background: #fff;
}

.nav-search input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  color: var(--ink);
}

.nav-search input:focus {
  outline: none;
}

.nav-search button {
  border: 0;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.nav-search button:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ---- mobile drawer ---- */

.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(9, 18, 33, 0.45);
  display: flex;
  justify-content: flex-end;
}

.menu-drawer[hidden] {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

.menu-drawer .drawer-inner {
  background: #fff;
  width: min(440px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -18px 0 40px rgba(9, 18, 33, 0.22);
}

.menu-drawer .drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-drawer .drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-drawer .drawer-brand h2 {
  margin: 0;
  font-size: 1rem;
}

.menu-drawer .drawer-tools {
  display: grid;
  gap: 10px;
}

.menu-drawer .drawer-search {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 4px 4px 10px;
}

.menu-drawer .drawer-search input {
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 0;
}

.menu-drawer .drawer-search input:focus {
  outline: none;
}

.menu-drawer .drawer-search button {
  border: 0;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  border-radius: 9px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-drawer .drawer-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-blue-deep);
  text-decoration: none;
}

.menu-tree {
  display: grid;
  gap: 2px;
}

.menu-tree .menu-home,
.menu-tree .menu-entry-heading > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.menu-tree .menu-home:hover,
.menu-tree .menu-entry-heading > a:hover {
  background: var(--brand-blue-soft);
}

.menu-entry-heading {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-entry-heading > a {
  flex: 1 1 auto;
  min-width: 0;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-entry.is-open .submenu-toggle svg {
  transform: rotate(180deg);
}

.menu-submenu {
  display: grid;
  gap: 1px;
  padding: 2px 8px 8px 34px;
}

.menu-submenu[hidden] {
  display: none;
}

.menu-submenu a {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.menu-submenu a:hover {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
}

.menu-category-title {
  margin: 8px 0 2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
}

/* ---- responsive ---- */

@media (max-width: 1180px) {
  .nav-search {
    width: 170px;
  }
}

@media (max-width: 1200px) {
  .nav-search {
    display: none;
  }
}

@media (max-width: 1200px) {
  .nav-bar {
    display: none;
  }

  .site-header .header {
    min-height: 64px;
  }

  .site-header .brand img {
    width: 42px;
    height: 42px;
  }

  .site-header .brand small {
    display: none;
  }

  .language-pill span {
    display: none;
  }

  .language-pill {
    padding: 9px;
  }

  .site-header .menu-trigger {
    display: inline-flex;
  }
}

@media (min-width: 1201px) {
  .site-header .menu-trigger {
    display: none;
  }
}
