/*
 * IBNALARABI.COM — PHASE 1 / 2026
 * A standalone, progressively adoptable design system. No legacy CSS is altered.
 * Palette carries forward the site's signature #005500 green; existing images
 * remain in /images on the production server.
 */
:root {
  --ia-green: #005500;
  --ia-forest: #083c2b;
  --ia-deep: #092a20;
  --ia-green-light: #195b3a;
  --ia-olive: #859e66;
  --ia-gold: #d7b46a;
  --ia-gold-light: #f0deb2;
  --ia-cream: #f8f6f0;
  --ia-paper: #fffefb;
  --ia-ink: #18392c;
  --ia-ink-soft: #52665d;
  --ia-line: #e7e9df;
  --ia-shadow: 0 16px 40px rgba(16, 55, 38, .065);
  --ia-radius: 18px;
  --ia-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ia-arabic: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --ia-arabic-display: "Amiri", "Noto Naskh Arabic", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body.ia-site {
  margin: 0; background: var(--ia-cream); color: var(--ia-ink);
  font-family: var(--ia-sans); font-size: 16px; line-height: 1.72;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body.ia-site--arabic { font-family: var(--ia-arabic); line-height: 1.95; }
body.ia-site--arabic h1, body.ia-site--arabic h2,
body.ia-site--arabic .ia-brand__copy strong, body.ia-site--arabic .ia-path strong,
body.ia-site--arabic .ia-collection-card__content strong { font-family: var(--ia-arabic-display); }
body.ia-site img { max-width: 100%; height: auto; }
body.ia-site button, body.ia-site input, body.ia-site select { font: inherit; }
body.ia-site button { cursor: pointer; }
body.ia-site a { color: inherit; text-decoration: none; }
body.ia-site a:hover { text-decoration: none; }
body.ia-site a:focus-visible, body.ia-site button:focus-visible,
body.ia-site input:focus-visible, body.ia-site select:focus-visible {
  outline: 3px solid #daa941; outline-offset: 3px;
}
body.ia-site h1, body.ia-site h2, body.ia-site h3, body.ia-site p,
body.ia-site figure { margin-block: 0; }
.ia-container { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.ia-sr-only { border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  overflow: hidden; position: absolute; white-space: nowrap; padding: 0; margin: -1px; }
.ia-skip { position: fixed; z-index: 10000; inset-block-start: -80px; inset-inline-start: 24px;
  background: #fff; color: var(--ia-deep) !important; padding: 10px 15px; border-radius: 10px; }
.ia-skip:focus { inset-block-start: 15px; }
.ia-topline { background: linear-gradient(90deg, #005500, #b99752, #005500); height: 4px; }

/* Global masthead, simple enough to reuse in future modules */
.ia-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,254,251,.97);
  border-bottom: 1px solid #e5e6db; backdrop-filter: blur(14px); }
.ia-header__inner { min-height: 86px; display: flex; align-items: center; gap: 26px; }
.ia-brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex-shrink: 0; }
.ia-brand__logo { width: 61px; height: 56px; display: grid; place-items: center;
  padding: 3px; border-radius: 9px; background: #f2f2eb; border: 1px solid #ecebe2; overflow: hidden; }
.ia-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.ia-brand__copy { display: flex; flex-direction: column; line-height: 1.35; }
.ia-brand__copy strong { color: var(--ia-green); font-size: 1.14rem; font-weight: 770; white-space: nowrap; }
.ia-brand__copy small { color: #6f7e72; font-size: .72rem; letter-spacing: .012em; }
.ia-nav { display: flex; align-items: center; justify-content: center; gap: 3px; flex: 1; }
.ia-nav a { padding: 8px 12px; font-size: .91rem; font-weight: 630; border-radius: 8px;
  color: #344d3e; white-space: nowrap; transition: background .2s, color .2s; }
.ia-nav a:hover, .ia-nav a.is-active { background: #ecf3e9; color: var(--ia-green); }
.ia-header__actions { display: flex; align-items: center; gap: 8px; }
.ia-lang-pick { position: relative; flex-shrink: 0; }
.ia-lang-pick select { display: block; max-width: 112px; width: 112px; padding: 9px 10px;
  font-size: .85rem; font-weight: 680; border: 1px solid #dfe7dc; color: var(--ia-green);
  background: var(--ia-paper); border-radius: 8px; cursor: pointer; }
.ia-menu-toggle { display: none; width: 42px; height: 40px; border: 1px solid #d9e3d7;
  background: #f5f8f2; border-radius: 9px; padding: 10px; }
.ia-menu-toggle span { display: block; background: var(--ia-green); height: 2px; width: 20px;
  border-radius: 2px; margin-block: 4px; }

/* Heritage hero */
.ia-hero { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 12% 50%, rgba(49,112,70,.5), transparent 56%),
    linear-gradient(125deg, #064826 0%, #083d2a 48%, #0a3024 100%);
  color: #fff; }
.ia-hero::before { position: absolute; inset: 0; pointer-events: none; content: "";
  background: repeating-linear-gradient(62deg, rgba(255,255,255,.019) 0, rgba(255,255,255,.019) 1px, transparent 1px, transparent 43px);
  opacity: .66; z-index: -1; }
.ia-hero::after { content: "۞"; position: absolute; z-index: -1; inset-inline-start: 3%; inset-block-start: 24%;
  font-size: 350px; line-height: 1; color: rgba(236,219,155,.035); font-family: serif; pointer-events: none; }
.ia-hero__grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(340px, .83fr);
  align-items: center; gap: clamp(40px, 5vw, 88px); min-height: 610px; padding-block: 66px 95px; }
.ia-hero__content { max-width: 685px; padding-block: 12px; }
.ia-hero__eyebrow { display: inline-flex; gap: 13px; align-items: center; color: var(--ia-gold-light);
  letter-spacing: .04em; text-transform: none; font-size: .82rem; font-weight: 680; }
.ia-hero__asterisk { font-size: 1.27rem; line-height: 1; color: var(--ia-gold); }
.ia-hero h1 { margin-block: 18px 14px; color: #fffcf2; font-size: clamp(2.75rem, 5.1vw, 5.15rem);
  font-weight: 690; letter-spacing: -.037em; line-height: 1.15; max-width: 13ch; }
.ia-site--arabic .ia-hero h1 { font-size: clamp(3rem, 5.2vw, 5.35rem); line-height: 1.31; letter-spacing: 0; max-width: 14ch; }
.ia-hero__divider { display: flex; align-items: center; gap: 11px; color: var(--ia-gold); font-size: 23px;
  width: 115px; margin-block: 16px 20px; }
.ia-hero__divider i { display: block; height: 1px; flex: 1; background: #b29b64; }
.ia-hero__content p { max-width: 610px; color: #deeadf; font-size: 1.02rem; line-height: 1.9; }
.ia-site--arabic .ia-hero__content p { font-size: 1.13rem; line-height: 2.05; }
.ia-hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-block-start: 30px; }
.ia-btn { display: inline-flex; justify-content: center; align-items: center; gap: 13px;
  border: 1px solid transparent; padding: 11px 25px; border-radius: 8px;
  font-weight: 750; min-height: 49px; font-size: .93rem; transition: transform .15s, background .15s; }
.ia-btn:hover { transform: translateY(-2px); }
.ia-btn--gold { background: var(--ia-gold); color: #173626 !important; }
.ia-btn--gold:hover { background: #edca81; }
.ia-btn--outline { background: transparent; border-color: rgba(235,231,206,.5); color: #fff !important; }
.ia-btn--outline:hover { background: rgba(255,255,255,.08); }
.ia-hero__quiet { display: flex; gap: 10px; align-items: center; margin-block-start: 29px;
  font-size: .8rem; color: #d9e4d6; letter-spacing: .028em; }
.ia-dot { width: 5px; height: 5px; background: var(--ia-gold); border-radius: 50%; display: inline-block; }
.ia-hero__visual { position: relative; width: min(100%, 450px); justify-self: end;
  margin-inline-end: 20px; }
.ia-hero__visual::before { content: ""; position: absolute; z-index: -1; inset: 18px -17px -18px 17px;
  border: 1px solid rgba(221,190,113,.52); border-radius: 6px; }
.ia-hero__photo-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 4.45;
  background: linear-gradient(145deg,#526a4b,#d8d1b6); border: 7px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 48px rgba(0,0,0,.23); border-radius: 5px; }
.ia-hero__photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ia-hero__visual figcaption { font-size: .81rem; color: #e5dcae; line-height: 1.7;
  margin-block-start: 22px; text-align: center; }

/* Live site text search stays routed through the original /search/?query= */
.ia-search-band { position: relative; z-index: 4; margin-block-start: -50px; }
.ia-search-band__inner { display: grid; grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
  gap: 24px; align-items: center; padding: 23px 28px; background: #fffefb;
  border: 1px solid #e7e6de; box-shadow: 0 15px 38px rgba(8,41,23,.09); border-radius: 13px; }
.ia-search-band__label { display: flex; align-items: center; gap: 11px; color: var(--ia-ink);
  font-weight: 800; font-size: .98rem; }
.ia-search-band__icon { color: var(--ia-green); font-size: 2.2rem; line-height: 1; }
.ia-search-form { display: flex; width: 100%; min-width: 0; gap: 8px; }
.ia-search-form input { width: 100%; min-width: 0; padding: 12px 17px; background: #fafbf7;
  border: 1px solid #e0e5db; border-radius: 7px; font-size: .91rem; color: #243b2d; }
.ia-search-form input::placeholder { color: #7b8d7b; }
.ia-search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--ia-green); color: #fff; border: 0; border-radius: 7px;
  padding: 12px 22px; font-weight: 720; white-space: nowrap; }
.ia-search-form button:hover { background: #147438; }

/* Shared sections */
.ia-section { padding-block: 75px; }
.ia-section--paths { padding-block-start: 90px; }
.ia-section--collections { background: #eef2e9; border-block: 1px solid #e6e8df; }
.ia-section--projects { padding-block-end: 90px; }
.ia-section-heading { display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-block-end: 30px; }
.ia-overline { display: block; font-family: var(--ia-sans); font-size: .69rem; color: #8d7b4d;
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-block-end: 10px; }
.ia-section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.4;
  letter-spacing: -.025em; color: #174b31; font-weight: 750; }
.ia-site--arabic .ia-section-heading h2 { letter-spacing: 0; font-size: clamp(2.15rem, 3vw, 2.8rem); }
.ia-section-heading p { font-size: .94rem; color: var(--ia-ink-soft); margin-block-start: 7px; max-width: 730px; }
.ia-link-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--ia-green) !important;
  font-weight: 800; font-size: .88rem; white-space: nowrap; border-bottom: 1px solid #b1c4ac;
  padding-block-end: 6px; margin-block-end: 8px; }
.ia-link-arrow:hover { border-bottom-color: var(--ia-green); }
.ia-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.ia-path { min-height: 230px; background: var(--ia-paper); display: flex; flex-direction: column;
  padding: 23px 26px; border: 1px solid #e4e7dd; border-radius: 12px;
  box-shadow: var(--ia-shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.ia-path:hover { transform: translateY(-4px); border-color: #c9d7bd; box-shadow: 0 19px 42px rgba(9,61,29,.12); }
.ia-path__top { display: flex; align-items: center; justify-content: space-between;
  color: #869b7d; font-size: .76rem; letter-spacing: .11em; }
.ia-path__top i { font-size: 20px; font-style: normal; color: var(--ia-green); }
.ia-path__symbol { color: #a88d4f; font-size: 34px; line-height: 1.4; margin-block: 16px 14px; }
.ia-path strong { display: block; font-size: 1.17rem; line-height: 1.5; color: #114c2f; }
.ia-site--arabic .ia-path strong { font-size: 1.47rem; }
.ia-path__description { color: #617267; margin-block-start: 6px; line-height: 1.8; font-size: .88rem; }
.ia-collections-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ia-collection-card { min-height: 136px; background: #fffefa; border: 1px solid #e0e5d9;
  border-radius: 10px; display: flex; align-items: flex-start; gap: 15px; padding: 24px 20px;
  box-shadow: 0 4px 13px rgba(18,51,29,.025); transition: border-color .18s, transform .18s, box-shadow .18s; }
.ia-collection-card:hover { border-color: #8cb28b; transform: translateY(-2px); box-shadow: 0 12px 27px rgba(19,67,31,.085); }
.ia-collection-card__number { font-family: var(--ia-sans); font-size: .72rem; font-weight: 850;
  color: #b0965c; border: 1px solid #e5dcc5; border-radius: 5px; padding: 4px 7px; flex-shrink: 0; }
.ia-collection-card__content { min-width: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ia-collection-card__content strong { color: #174b31; font-size: 1.08rem; line-height: 1.55; }
.ia-site--arabic .ia-collection-card__content strong { font-size: 1.28rem; }
.ia-collection-card__content small { font-size: .84rem; color: #6b796d; line-height: 1.72; }
.ia-collection-card__arrow { font-size: 1.1rem; color: var(--ia-green); opacity: .8; margin-inline-start: auto; }
.ia-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.ia-project-card { display: flex; flex-direction: column; background: #fffefb; border: 1px solid #e5e9df;
  border-radius: 11px; overflow: hidden; min-width: 0; transition: transform .18s, box-shadow .18s; }
.ia-project-card:hover { transform: translateY(-4px); box-shadow: 0 13px 28px rgba(11,55,29,.12); }
.ia-project-card__image { position: relative; height: 158px; background: linear-gradient(125deg,#2d6341,#e8e0b6);
  overflow: hidden; }
.ia-project-card__image img { width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .23s ease; }
.ia-project-card:hover img { transform: scale(1.035); }
.ia-project-card__body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 19px 20px 20px; }
.ia-project-card__body strong { font-size: 1.1rem; font-weight: 790; color: #15492e; }
.ia-project-card__body p { flex: 1; font-size: .85rem; line-height: 1.8; color: #64756a; }
.ia-project-card__body span { color: var(--ia-green); font-size: .8rem; font-weight: 780; margin-block-start: 5px; }
.ia-notice-wrap { padding-block-end: 72px; }
.ia-notice { display: flex; align-items: flex-start; gap: 14px; padding: 19px 22px;
  background: #f1f0e5; border: 1px solid #e5dfc9; border-radius: 9px; }
.ia-notice__icon { flex: 0 0 auto; display: inline-grid; place-items: center; background: #d6c594;
  border-radius: 50%; width: 24px; height: 24px; font-weight: 800; color: #2a3928; font-family: Georgia, serif; }
.ia-notice strong { font-size: .89rem; color: #5c5638; }
.ia-notice p { color: #6b6c56; margin-block-start: 3px; font-size: .82rem; }

/* Inner hubs: exploration, reading and connected research */
.ia-hub-hero { position: relative; overflow: hidden; color: white; background:
  linear-gradient(120deg, rgba(11,79,43,.85), rgba(5,39,30,.98)), var(--ia-green); }
.ia-hub-hero__inner { display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 280px; padding-block: 50px; }
.ia-hub-hero__copy { max-width: 840px; position: relative; z-index: 1; }
.ia-hub-hero .ia-overline { color: #e4c881; }
.ia-hub-hero h1 { font-size: clamp(2.6rem,4.5vw,4.3rem); line-height: 1.3;
  font-weight: 700; letter-spacing: -.02em; }
.ia-site--arabic .ia-hub-hero h1 { font-size: clamp(3rem,4.7vw,4.5rem); letter-spacing: 0; }
.ia-hub-hero p { max-width: 710px; line-height: 1.9; color: #dce9dc; font-size: 1rem; margin-block-start: 11px; }
.ia-hub-hero__ornament { font-family: Georgia, serif; font-size: 12rem; line-height: 1; color: rgba(244,217,146,.2); }
.ia-hub-content { padding-block: 40px 82px; }
.ia-filter-nav { display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  background: white; border: 1px solid #e6e8de; border-radius: 10px;
  padding: 13px 15px; margin-block-end: 24px; }
.ia-filter-nav a { padding: 7px 13px; border: 1px solid #e4e9df; border-radius: 7px;
  color: #1d5838; font-weight: 760; font-size: .86rem; }
.ia-filter-nav a:hover { background: #f1f5ee; border-color: #c6d9c2; }
.ia-hub-group { scroll-margin-top: 110px; padding-block: 26px 38px; }
.ia-hub-group + .ia-hub-group { border-top: 1px solid #e4e8dc; }
.ia-section-heading--compact { margin-block-end: 22px; }
.ia-reading-track { display: flex; flex-direction: column; }
.ia-reading-step { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 15px;
  padding-block: 30px; border-bottom: 1px solid #e1e6d9; }
.ia-reading-step__marker { position: relative; display: flex; justify-content: center; }
.ia-reading-step__marker::after { content: ''; position: absolute; z-index: 0; inset-block-start: 44px;
  inset-block-end: -32px; border-inline-start: 1px solid #c7d6c0; }
.ia-reading-step:last-child .ia-reading-step__marker::after { display: none; }
.ia-reading-step__marker span { position: relative; z-index: 1; width: 43px; height: 43px; flex-shrink: 0;
  border-radius: 50%; color: var(--ia-green); border: 2px solid #adc79f;
  background: #f5f7ee; display: grid; place-items: center; font-weight: 850; }
.ia-reading-step__body { min-width: 0; }
.ia-reading-step h2 { color: #174c32; font-size: 1.42rem; margin-block: 6px 19px; }
.ia-site--arabic .ia-reading-step h2 { font-size: 1.75rem; }
.ia-reading-cta { display: grid; grid-template-columns: .4fr 1fr; gap: 24px; align-items: center;
  background: #e7f0e3; border: 1px solid #d4e2ce; border-radius: 12px;
  padding: 27px 30px; margin-block: 38px; }
.ia-reading-cta h2 { color: #104d2c; font-size: 1.32rem; }
.ia-site--arabic .ia-reading-cta h2 { font-size: 1.65rem; }
.ia-project-grid--hub { margin-block-start: 6px; }
.ia-hub-extras { padding-block-end: 20px; }
.ia-hub-content > .ia-notice { margin-block-start: 32px; }

/* Footer */
.ia-footer { background: #082a1d; color: #e6efe5; border-top: 5px solid #b99d5d; }
.ia-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px;
  padding-block: 59px 51px; }
.ia-footer__symbol { color: #e0c17e; font-size: 2rem; }
.ia-footer__about h2 { color: #fffdf2; font-size: 1.38rem; margin-block-start: 5px; }
.ia-site--arabic .ia-footer__about h2 { font-size: 1.8rem; }
.ia-footer__about p { color: #c7d5c8; font-size: .85rem; margin-block-start: 13px; line-height: 1.95; }
.ia-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ia-footer__links h3 { color: #f2ddaa; font-size: .92rem; margin-block: 4px 11px; }
.ia-footer__links a { color: #d0e0d2; font-size: .84rem; }
.ia-footer__links a:hover { color: #f6dcaa; text-decoration: underline; }
.ia-footer__languages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 14px 24px; }
.ia-footer__languages a { padding: 5px 12px; border: 1px solid rgba(221,241,219,.22); border-radius: 6px; font-size: .8rem; color: #d8e5d8; }
.ia-footer__languages a:hover, .ia-footer__languages a[aria-current] { background: rgba(237,223,165,.13); color: #f5e7c6; }
.ia-footer__base { border-top: 1px solid rgba(221,241,219,.17); padding-block: 21px 25px;
  color: #b5c7b9; font-size: .76rem; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Breakpoints */
@media (max-width: 1200px) {
  .ia-header__inner { gap: 15px; }
  .ia-brand__copy strong { font-size: 1.03rem; }
  .ia-nav a { padding-inline: 8px; font-size: .85rem; }
  .ia-container { width: min(1160px, calc(100% - 52px)); }
  .ia-hero__grid { gap: 42px; }
}
@media (max-width: 1020px) {
  .ia-header__inner { min-height: 78px; }
  .ia-menu-toggle { display: block; }
  .ia-nav { display: none; position: absolute; top: calc(100% + 1px); inset-inline: 0;
    padding: 16px 26px 22px; border-bottom: 1px solid #d3dfd1;
    background: #fffefa; flex-direction: column; align-items: stretch; gap: 5px;
    max-height: min(70vh,530px); overflow-y: auto; box-shadow: 0 15px 35px rgba(11,40,20,.1); }
  .ia-nav.is-open { display: flex; }
  .ia-nav a { font-size: .95rem; padding: 11px 16px; }
  .ia-header__actions { margin-inline-start: auto; }
  .ia-hero__grid { grid-template-columns: minmax(0,1fr) minmax(280px,.78fr); min-height: 520px; gap: 26px; }
  .ia-hero h1 { font-size: clamp(2.45rem, 5.4vw, 3.75rem); }
  .ia-site--arabic .ia-hero h1 { font-size: clamp(2.8rem, 5.7vw, 4.2rem); }
  .ia-hero__visual { margin-inline-end: 8px; }
  .ia-collections-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ia-project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ia-project-card__image { height: 180px; }
  .ia-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ia-footer__links:last-child { grid-column: 2 / 4; }
}
@media (max-width: 740px) {
  .ia-container { width: min(100% - 32px, 640px); }
  .ia-header__inner { min-height: 71px; }
  .ia-brand__logo { width: 45px; height: 45px; }
  .ia-brand__copy strong { font-size: .96rem; }
  .ia-brand__copy small { font-size: .65rem; }
  .ia-hero__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 53px 93px; }
  .ia-hero__content { text-align: start; }
  .ia-hero h1 { max-width: 17ch; font-size: clamp(2.8rem, 10vw, 4rem); margin-block-start: 14px; }
  .ia-site--arabic .ia-hero h1 { max-width: 16ch; font-size: clamp(3.1rem,10vw,4.4rem); }
  .ia-hero__visual { width: min(88%, 360px); justify-self: center; margin-inline: 0; }
  .ia-hero__photo-wrap { aspect-ratio: 1.15; }
  .ia-hero__visual figcaption { margin-block-start: 15px; }
  .ia-search-band { margin-block-start: -36px; }
  .ia-search-band__inner { grid-template-columns: 1fr; padding: 21px 18px; gap: 14px; }
  .ia-section { padding-block: 52px; }
  .ia-section--paths { padding-block-start: 65px; }
  .ia-section-heading { align-items: flex-start; gap: 13px; flex-direction: column; }
  .ia-section-heading p { max-width: 550px; }
  .ia-path-grid { grid-template-columns: 1fr; gap: 12px; }
  .ia-path { min-height: 190px; }
  .ia-collections-grid { grid-template-columns: 1fr; }
  .ia-collection-card { min-height: 116px; }
  .ia-project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .ia-project-card__image { height: 135px; }
  .ia-project-card__body { padding: 16px 14px; }
  .ia-project-card__body strong { font-size: .98rem; }
  .ia-project-card__body p { font-size: .82rem; }
  .ia-notice-wrap { padding-block-end: 53px; }
  .ia-hub-hero__inner { min-height: 230px; }
  .ia-hub-hero__ornament { position: absolute; inset-inline-end: 10px; font-size: 10rem; opacity: .35; }
  .ia-hub-hero h1 { font-size: 2.65rem; }
  .ia-site--arabic .ia-hub-hero h1 { font-size: 3.1rem; }
  .ia-hub-content { padding-block: 25px 58px; }
  .ia-filter-nav { gap: 7px; }
  .ia-reading-step { grid-template-columns: 45px 1fr; gap: 8px; }
  .ia-reading-step__marker span { width: 36px; height: 36px; font-size: .78rem; }
  .ia-reading-cta { grid-template-columns: 1fr; padding: 22px 19px; gap: 15px; }
  .ia-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 39px 34px; gap: 30px; }
  .ia-footer__about { grid-column: 1 / -1; }
  .ia-footer__links:last-child { grid-column: auto; }
}
@media (max-width: 440px) {
  .ia-container { width: calc(100% - 28px); }
  .ia-brand { gap: 7px; }
  .ia-brand__copy strong { font-size: .86rem; white-space: normal; max-width: 155px; }
  .ia-brand__copy small { font-size: .6rem; }
  .ia-brand__logo { width: 36px; height: 39px; }
  .ia-header__actions { gap: 6px; }
  .ia-lang-pick select { width: 96px; max-width: 96px; font-size: .72rem; padding-inline: 5px; }
  .ia-menu-toggle { width: 38px; height: 39px; padding: 9px; }
  .ia-hero__grid { padding-block-start: 45px; }
  .ia-hero h1 { font-size: 2.54rem; }
  .ia-site--arabic .ia-hero h1 { font-size: 2.85rem; }
  .ia-hero__content p { font-size: .96rem; }
  .ia-hero__buttons { flex-direction: column; align-items: stretch; }
  .ia-btn { padding-inline: 15px; }
  .ia-search-form { flex-direction: column; }
  .ia-search-form button { min-height: 43px; }
  .ia-collection-card { padding: 19px 16px; }
  .ia-project-grid { grid-template-columns: 1fr; }
  .ia-project-card__image { height: 186px; }
  .ia-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ia-footer__links { gap: 7px; }
  .ia-footer__links a { font-size: .8rem; }
  .ia-hub-hero h1 { font-size: 2.32rem; }
  .ia-site--arabic .ia-hub-hero h1 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* —————————————————————— STAGE 2 · opt-in legacy-section layout —————————————————————— */
.ia-legacy-hero { position: relative; isolation: isolate; overflow: hidden; color: #fdf9ef;
  background: radial-gradient(ellipse at 90% 90%, rgba(79,137,77,.25), transparent 55%),
    linear-gradient(118deg,#064d2e,#063522 63%,#082c23); }
.ia-legacy-hero:before { content: "۞"; font: 230px/1 Georgia,serif; color: rgba(235,211,139,.075);
  position:absolute; inset-inline-end:2%; inset-block-start: -36px; pointer-events:none; z-index:-1; }
.ia-legacy-hero__inner { padding-block: 40px 43px; display: grid;
  grid-template-columns: minmax(0,1fr) minmax(145px,220px); gap: 36px; align-items: center; }
.ia-legacy-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#d7dbca;
  font: 700 .82rem/1.6 var(--ia-sans); margin-block-end: 17px; }
.ia-legacy-crumbs a { color:#f1ddb5 !important; }
.ia-legacy-crumbs a:hover { text-decoration:underline !important; }
.ia-legacy-hero h1 { color: #fffdf2; font-size:clamp(2rem,3.5vw,3.2rem); line-height:1.45;
  max-width: 26ch; margin: 0 0 12px !important; font-weight: 750; }
.ia-site--arabic .ia-legacy-hero h1 { font-size:clamp(2.35rem,4vw,3.5rem); letter-spacing:0; }
.ia-legacy-hero p { font-size:.98rem; color:#e1ebdd; line-height:1.9; max-width:68ch; }
.ia-legacy-hero__picture { justify-self:end; width:100%; max-height: 190px; padding:8px;
  display:grid; place-items:center; border:1px solid rgba(244,225,173,.28); background:rgba(255,255,255,.07);
  border-radius:12px; box-shadow: 0 13px 36px rgba(0,0,0,.10); }
.ia-legacy-hero__picture img { object-fit: contain; max-height:172px; height:auto; width:auto; border-radius:6px; }
.ia-legacy-tabs { background:#fffefa; border-bottom:1px solid #e0e7db; }
.ia-legacy-tabs__row { display:flex; flex-wrap:wrap; gap:8px; padding-block: 14px; align-items:center; }
.ia-legacy-tabs__row > a { display:inline-flex; gap:6px; align-items:center; padding:8px 15px;
  border:1px solid #e1e8de; border-radius:100px; color:#205235 !important; background:#f8faf5;
  font-size:.85rem; font-weight:680; line-height:1.5; }
.ia-legacy-tabs__row > a:hover { background:#e8f1e4; border-color:#b6cdb2; }
.ia-legacy-tabs__row > a[aria-current="page"] { color:#fff !important; background:#005500; border-color:#005500; }
.ia-legacy-tabs__row .ia-legacy-tabs__label { font-size:.78rem; color:#687a69; font-weight:700; margin-inline-end:4px; }
.ia-legacy-main { padding-block: 34px 75px; }
.ia-legacy-layout { display:grid; grid-template-columns:minmax(0,1fr) 235px; align-items:start;
  gap:28px; }

.ia-legacy-pane { min-width:0; background:#fffefa; border:1px solid #e1e6db;
  box-shadow: 0 9px 27px rgba(13,58,30,.055); border-radius:13px;
  overflow:hidden; }
.ia-legacy-pane__toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px;
  flex-wrap:wrap; padding:12px 22px; background:#f1f5ed; border-bottom:1px solid #dfe8da; }
.ia-reader-controls { display:flex; gap:7px; align-items:center; }
.ia-reader-controls button, .ia-reader-controls a { min-width:37px; min-height:34px; padding:5px 10px;
  border:1px solid #d3e0cb; background:#fff; color:#16502e !important; border-radius:8px;
  font:700 .82rem/1.2 var(--ia-sans); text-align:center; }
.ia-reader-controls button:hover, .ia-reader-controls a:hover { background:#e4f0df; }
.ia-reader-controls button[aria-pressed="true"] { background:#005500; border-color:#005500; color:#fff !important; }
.ia-reader-caption { font-size:.79rem; font-weight:700; color:#385c45; }
.ia-legacy-content { min-width:0; padding:clamp(21px,3.4vw,45px);
  font-size:calc(1.06rem * var(--ia-reader-scale,1)); line-height:1.95;
  color:#243a2d; overflow-wrap:break-word; }
.ia-legacy-content[lang="ar"] { font-family:var(--ia-arabic); font-size:calc(1.18rem * var(--ia-reader-scale,1)); line-height:2.2; }
.ia-legacy-content > :first-child { margin-block-start:0 !important; }
.ia-legacy-content h1, .ia-legacy-content h2, .ia-legacy-content h3,
.ia-legacy-content h4 { color:#12552d; font-family:var(--ia-arabic-display); margin:1.6em 0 .55em !important;
  line-height:1.55; overflow-wrap:anywhere; }
.ia-legacy-content h1 { font-size:1.72em; }
.ia-legacy-content h2 { font-size:1.48em; }
.ia-legacy-content h3 { font-size:1.22em; }
.ia-legacy-content h4 { font-size:1.09em; }
.ia-legacy-content p { margin: .84em 0 !important; max-width:85ch; }
.ia-legacy-content li { margin-block: .3em; }
.ia-legacy-content a { color:#006630; text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:rgba(0,86,0,.35); }
.ia-legacy-content a:hover { color:#003f1d; text-decoration-color:currentColor; }
.ia-legacy-content img { object-fit:contain; vertical-align:middle; }
.ia-legacy-content img[align="right"] { margin-inline: 12px; }
.ia-legacy-content table { max-width:100% !important; width:100%; display:block;
  overflow-x:auto; overscroll-behavior-x: contain; margin-block:19px; border-collapse:collapse; }
.ia-legacy-content td, .ia-legacy-content th { padding:9px 12px; border-bottom:1px solid #e8eae3;
  vertical-align:top; overflow-wrap: normal; }
.ia-legacy-content tr:nth-child(even) { background:rgba(229,237,224,.38); }
.ia-legacy-content input[type="text"], .ia-legacy-content input[type="search"],
.ia-legacy-content select { width:min(100%,310px); background:#fff; color:#172b1c; border:1px solid #cbdccb;
  min-height:39px; border-radius:6px; padding:7px 10px; }
.ia-legacy-content input[type="submit"], .ia-legacy-content button { background:#005500;
  color:#fff; border:0; padding:8px 14px; min-height:39px; border-radius:6px; }
.ia-legacy-content > div[style*="width:90%"], .ia-legacy-content > div[style*="width: 90%"] {
  width:100% !important; float:none !important; margin-inline:0 !important; }
.ia-legacy-content hr { border:0; border-top:1px solid #d9e3d8; margin-block:24px; }
.ia-legacy-aside { position:sticky; top:112px; background:#fffefa; border:1px solid #e4e9df;
  padding:20px 17px; border-radius:12px; box-shadow: 0 8px 26px rgba(15,51,29,.035); }
.ia-legacy-aside h2 { font-size:1.04rem; color:#134b2e; margin:0 0 13px !important; }
.ia-legacy-aside a { display:block; border-top:1px solid #edf0ea; color:#355945 !important;
  padding:10px 2px; font-size:.84rem; line-height:1.65; }
.ia-legacy-aside a:hover { color:#005500 !important; }
.ia-legacy-aside__note { border-top:1px solid #e4e9df; margin-top:16px; padding-top:14px;
  font-size:.78rem; color:#758476; line-height:1.75; }
.ia-legacy-share { margin-top:22px; border-top:1px solid #e7ece2; padding:20px 26px 25px; }
.ia-legacy-share__label { font-size:.84rem; font-weight:750; color:#42654c; }
.ia-legacy-share__links { display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.ia-legacy-share__links a, .ia-legacy-share__links button { display:inline-flex; align-items:center;
  min-height:38px; padding:7px 14px; border:1px solid #d8e3d4; border-radius:8px;
  background:#f5f9f2; color:#12522e !important; font-size:.82rem; font-weight:750; }
.ia-legacy-share__links a:hover, .ia-legacy-share__links button:hover { background:#e5f1e0; }
.ia-legacy-bottom { padding-block:24px 0; }
.ia-legacy-bottom a { font-size:.84rem; color:#005500 !important; text-decoration:underline; }
@media (max-width: 960px) {
  .ia-legacy-layout { grid-template-columns:minmax(0,1fr); }
  .ia-legacy-aside { position:static; display:none; }
  .ia-legacy-hero__inner { grid-template-columns:minmax(0,1fr) 150px; }
}
@media (max-width: 640px) {
  .ia-legacy-hero__inner { grid-template-columns:1fr; padding-block: 27px 29px; gap:16px; }
  .ia-legacy-hero__picture { display:none; }
  .ia-legacy-hero h1, .ia-site--arabic .ia-legacy-hero h1 { font-size:2rem; }
  .ia-legacy-tabs__row { overflow-x:auto; flex-wrap:nowrap; padding-block:10px; }
  .ia-legacy-tabs__row > a { flex:none; font-size:.76rem; padding:6px 10px; white-space:nowrap; }
  .ia-legacy-main { padding-block:18px 46px; }
  .ia-legacy-content { padding:18px 16px; font-size:calc(1rem * var(--ia-reader-scale,1)); }
  .ia-legacy-content[lang="ar"] { font-size:calc(1.06rem * var(--ia-reader-scale,1)); }
  .ia-legacy-pane__toolbar { padding:10px 13px; }
  .ia-legacy-content img[style*="float:"] { float:none !important; display:block; margin:15px auto !important; max-width:100%; }
  .ia-legacy-content div[style*="width:"] { max-width:100% !important; }
  .ia-legacy-content table { font-size:.91em; }
}
@media print {
  .ia-header,.ia-topline,.ia-footer,.ia-legacy-tabs,.ia-legacy-aside,.ia-legacy-pane__toolbar,
  .ia-legacy-share,.ia-legacy-bottom { display:none !important; }
  body.ia-site { background:white !important; color:black !important; }
  .ia-container { width:100%; margin:0; }
  .ia-legacy-hero { background:transparent !important; color:black !important; }
  .ia-legacy-hero__inner { display:block; padding:0 0 13px; }
  .ia-legacy-hero h1 { color:black !important; font-size:20pt; }
  .ia-legacy-hero p,.ia-legacy-crumbs,.ia-legacy-hero__picture { display:none; }
  .ia-legacy-main { padding:0; }
  .ia-legacy-layout { display:block; }
  .ia-legacy-pane { border:0; border-radius:0; box-shadow:none; }
  .ia-legacy-content { padding:0; font-size:12pt; }
  .ia-legacy-content a { color:black !important; }
}

.ia-legacy-translation-note { margin:0 !important; padding:13px 24px; background:#fff7de;
  border-bottom:1px solid #eadbb7; color:#625536; font-size:.89rem; line-height:1.8; }

/* ==========================================================
   STAGE 3 / 2026 — Text reader: Futuhat, Fusus, biographies.
   Opt-in only: adds nothing to existing Stage 1/2 pages.
   ========================================================== */
.ia-site--deep .ia-deep-hero { position:relative; isolation:isolate; overflow:hidden;
  color:#f9f5e8; background:radial-gradient(ellipse at 10% 30%,rgba(58,115,63,.35),transparent 53%),
  linear-gradient(120deg,#074829,#0b392a 60%,#08281f); border-bottom:3px solid #c9a76b; }
.ia-site--deep .ia-deep-hero::after {content:"۞";position:absolute;inset-inline-end:9%;top:-140px;
  font:400 370px/1 Georgia,serif;color:rgba(244,225,175,.038);pointer-events:none;z-index:-1;}
.ia-deep-hero__grid {display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:28px;
  align-items:center;padding-block:42px 46px;}
.ia-deep-crumbs {display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:24px;
  font-size:.78rem;color:#c6dccb;line-height:1.7;}
.ia-deep-crumbs a {color:#eed7a2 !important;} .ia-deep-crumbs a:hover {text-decoration:underline;}
.ia-deep-eyebrow {color:#ead39a;font-size:.78rem;font-weight:700;letter-spacing:.04em;}
.ia-deep-hero h1 {font-size:clamp(1.7rem,3.3vw,2.75rem);line-height:1.43;
  color:#fffbec;margin-block:12px 10px;max-width:36ch;}
.ia-site--arabic .ia-deep-hero h1 {font-size:clamp(2rem,3.65vw,3.1rem);line-height:1.5;max-width:31ch;}
.ia-deep-hero p {font-size:.95rem;line-height:1.85;color:#dce6d8;max-width:72ch;}
.ia-deep-hero__art {height:153px;display:grid;place-items:center;border:1px solid rgba(240,222,177,.3);
  background:rgba(255,255,255,.065);border-radius:12px;padding:13px;overflow:hidden;}
.ia-deep-hero__art img {height:100% !important;max-height:130px;max-width:100%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(0,0,0,.15));}
.ia-deep-nav {background:#fcfaf3;border-bottom:1px solid #e7e6da;}
.ia-deep-nav__inner {display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding-block:11px;}
.ia-deep-nav a {padding:6px 12px;min-height:38px;border-radius:7px;border:1px solid #d9e5d4;
  color:#13562f !important;background:#f5f9f1;font-weight:650;font-size:.81rem;display:inline-flex;align-items:center;}
.ia-deep-nav a:hover {background:#e5f1df;}
.ia-deep-nav a.ia-deep-nav__index {background:#005500;color:#fff !important;border-color:#005500;}
.ia-deep-layout {display:grid;grid-template-columns:minmax(0,1fr) 242px;gap:26px;
  align-items:start;padding-block:33px 75px;}
.ia-deep-paper {min-width:0;background:#fffefb;border:1px solid #e3e8da;border-radius:14px;
  box-shadow:0 17px 45px rgba(4,50,22,.045);overflow:hidden;}
.ia-deep-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;padding:10px 22px;background:#f8faf5;border-bottom:1px solid #e2e9db;}
.ia-deep-toolbar__label {color:#355b42;font-size:.77rem;font-weight:750;}
.ia-deep-toolbar__actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.ia-deep-toolbar__actions .ia-reader-controls button {min-height:33px;}
.ia-deep-toolbar__action {background:#fffefa;border:1px solid #cedbc7;border-radius:7px;
  color:#27583b;min-height:33px;padding:5px 11px;font-size:.76rem;font-weight:700;}
.ia-deep-toolbar__action:hover,.ia-deep-toolbar__action[aria-pressed="true"] {background:#e8f1e2;color:#005500;}
.ia-deep-warning {background:#fff4d8;border-bottom:1px solid #ebdfb6;color:#6d4a13;
  font-size:.89rem;padding:16px 25px;line-height:1.9;}
.ia-deep-text {padding:clamp(23px,4vw,58px);font-size:calc(1.04rem * var(--ia-reader-scale,1));
  line-height:2;min-width:0;color:#293b2c;}
.ia-deep-text[lang="ar"] {font-family:var(--ia-arabic-display);font-size:calc(1.26rem * var(--ia-reader-scale,1));line-height:2.27;}
.ia-deep-text > :first-child {margin-block-start:0 !important;}
.ia-deep-text h1,.ia-deep-text h2,.ia-deep-text h3,.ia-deep-text h4 {color:#0d5530;
  font-family:var(--ia-arabic-display);line-height:1.5;margin:1.4em 0 .55em !important;}
.ia-deep-text h1 {font-size:1.7em;} .ia-deep-text h2 {font-size:1.4em;} .ia-deep-text h3 {font-size:1.15em;}
.ia-deep-text p,.ia-deep-text .ia-deep-source-html p {margin:.7em 0 !important;}
.ia-deep-text a {color:#006b3a !important;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a2c2aa;}
.ia-deep-text a:hover {color:#00471b !important;text-decoration-color:currentColor;}
.ia-deep-text img {max-width:100% !important;height:auto;object-fit:contain;}
.ia-deep-text :is(img[align="right"],img[align="left"],img[style*="float:"]) {margin:13px !important;}
.ia-deep-text figure {max-width:100%;margin:20px auto!important;}
.ia-deep-text ul,.ia-deep-text ol {padding-inline-start:1.3em;}
.ia-deep-text li {margin-block:.3em;}
.ia-deep-text hr {height:1px;border:0;background:#dce7d8;margin-block:26px;}
.ia-deep-text .ia-deep-kicker {font:700 .79rem/1.8 var(--ia-sans);letter-spacing:.015em;color:#768568;}
.ia-deep-page-caption {display:flex;gap:10px 17px;align-items:center;flex-wrap:wrap;
  background:#f2f6ed;border:1px solid #e0e8d9;padding:9px 15px;border-radius:9px;
  font-size:.79em;margin-block:16px 30px;}
.ia-deep-page-caption span {display:flex;gap:9px;align-items:center;flex-wrap:wrap;}
.ia-deep-text .ia-deep-source-html {overflow-wrap:anywhere;min-width:0;max-width:100%;}
.ia-deep-text .ia-deep-source-html :is(table,iframe,pre) {max-width:100%;}
.ia-deep-text .ia-deep-source-html table {display:block;overflow-x:auto;border-collapse:collapse;width:100%;}
.ia-deep-text .ia-deep-source-html :is(td,th) {padding:8px 12px;border:1px solid #e5ebde;}
.ia-deep-text .ia-deep-source-html h1,.ia-deep-text .ia-deep-source-html h2 {font-size:1.3em;}
.ia-deep-text .ia-deep-source-html a[name] {scroll-margin-top:90px;}
.ia-deep-toc {display:flex;flex-direction:column;gap:1px;border:1px solid #e2e8db;border-radius:10px;overflow:hidden;background:#e4eade;}
.ia-deep-toc__item {display:grid;grid-template-columns:52px minmax(0,1fr) 22px;gap:16px;align-items:start;
  background:#fffefb;min-height:70px;padding:16px 17px;text-decoration:none !important;}
.ia-deep-toc__item:hover {background:#f1f7ed;}
.ia-deep-toc__item strong {color:#205037;font-size:.94em;font-weight:700;line-height:1.6;display:block;}
.ia-deep-toc__item small {color:#5b7260;font:.76em/1.65 var(--ia-sans);display:block;margin-top:4px;}
.ia-deep-toc__num {font:800 .79rem/1.9 var(--ia-sans);color:#907640;background:#f4f1e7;
  border:1px solid #e6e0cd;border-radius:7px;padding:6px 4px;text-align:center;white-space:nowrap;}
.ia-deep-toc__item>span:last-child {color:#408550;font-size:1rem;}
.ia-deep-list-filter {margin-block:18px 20px;}
.ia-deep-list-filter label {display:block;font-size:.75em;font-weight:750;margin-bottom:6px;color:#476d4e;}
.ia-deep-list-filter input,.ia-deep-search input {display:block;width:100%;background:#fffefb;
  border:1px solid #cddbc6;border-radius:8px;min-height:44px;padding:10px 15px;color:#133d20;}
.ia-deep-search {margin-top:35px;padding:20px;border:1px solid #e0e8d9;border-radius:10px;background:#f6f9f3;}
.ia-deep-search label {font-size:.85em;color:#275938;font-weight:700;display:block;margin-bottom:7px;}
.ia-deep-search>div {display:flex;gap:8px;}
.ia-deep-search button {background:#005500;color:#fff;border:0;border-radius:8px;font-size:.8em;padding:8px 15px;white-space:nowrap;}
.ia-deep-empty {padding:20px;color:#a04731;border:1px solid #f0dfd3;background:#fff8f2;border-radius:9px;}
.ia-deep-chapter-item {padding:15px 22px;background:#fffefb;}
.ia-deep-chapter-item__heading {display:flex;gap:15px;align-items:start;}
.ia-deep-chapter-item__number {font:800 1rem/1.55 var(--ia-sans);border-radius:50%;background:#f1f5e9;color:#17643b;
  flex:0 0 37px;height:37px;display:grid;place-items:center;}
.ia-deep-chapter-item__heading a {font-size:1.02em;color:#1c5432 !important;}
.ia-deep-chapter-item__editions {display:flex;gap:9px;flex-wrap:wrap;margin-block:4px 7px;margin-inline-start:52px;font-size:.7em;}
.ia-deep-chapter-item__editions a {text-decoration:none !important;padding:2px 9px;border-radius:5px;background:#f4f5ed;border:1px solid #e3e6d8;}
.ia-deep-chapter-jump {display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  padding:13px;border:1px solid #e2e8dc;background:#f7faf3;border-radius:8px;margin-block:16px 30px;}
.ia-deep-chapter-jump strong {font-size:.72em;margin-inline-end:8px;}
.ia-deep-chapter-jump a {display:inline-flex;padding:1px 7px;background:#fff;border:1px solid #d8e4d2;border-radius:6px;text-decoration:none !important;font:.69em/2 var(--ia-sans);}
.ia-deep-chapter-page {border-top:1px solid #e0e8dc;padding-block:24px;scroll-margin-top:115px;}
.ia-deep-chapter-page__number {margin:0 0 12px !important;font-size:.76em;}
.ia-deep-levels {display:flex;gap:8px;flex-wrap:wrap;margin-block:0 25px;}
.ia-deep-levels a {padding:5px 14px;font-size:.8em;border:1px solid #cbd8c7;border-radius:8px;text-decoration:none !important;}
.ia-deep-levels a[aria-current="page"] {background:#005500;color:#fff !important;}
.ia-deep-notes {background:#f6f9f3;border-top:2px solid #c9dcbc;padding:20px;margin-top:38px;}
.ia-deep-notes h2 {margin-top:0 !important;}
.ia-deep-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:26px 0;}
.ia-deep-facts>div {border:1px solid #e0e8dc;border-radius:8px;padding:13px 16px;background:#f8faf5;}
.ia-deep-facts dt {font-weight:750;font-size:.75em;color:#496954;}
.ia-deep-facts dd {margin:5px 0 0;color:#24382d;}
.ia-deep-link-list {list-style:square;padding-inline-start:1.2em;}
.ia-deep-timeline-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
.ia-deep-original {max-width:100%;min-width:0;}
.ia-deep-original :is(table,blockquote) {max-width:100%;}
.ia-deep-timeline {border-collapse:separate;border-spacing:0;width:100%;min-width:680px;
  font-family:var(--ia-sans);font-size:.72em;line-height:1.65;margin-top:22px;}
.ia-deep-timeline td,.ia-deep-timeline th {padding:12px 13px;text-align:start;border-bottom:1px solid #e0e9db;
  overflow-wrap:break-word;vertical-align:top;}
.ia-deep-timeline thead td {position:sticky;top:0;background:#e8f0e4;color:#205437;font-weight:800;}
.ia-deep-timeline tbody tr:nth-child(even) {background:#f7f9f4;}
.ia-deep-timeline tr[hidden],.ia-deep-toc>*[hidden] {display:none !important;}
.ia-deep-paper__after {padding:0 clamp(20px,3vw,40px) 27px;}
.ia-deep-cite {display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:18px 0;border-top:1px solid #e6ebde;}
.ia-deep-cite strong {font-size:.83rem;color:#47654d;}
.ia-deep-cite p {font-size:.77rem;line-height:1.85;color:#647c66;margin-top:5px;}
.ia-deep-cite button {white-space:nowrap;padding:8px 13px;border-radius:7px;border:1px solid #c4d4c0;
  color:#19572d;background:#f4f8f0;font-size:.77rem;font-weight:750;}
.ia-deep-paging {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.ia-deep-paging a {display:inline-flex;padding:8px 15px;align-items:center;border:1px solid #dce6d6;
  border-radius:7px;background:#f6f9f3;color:#195530;font-size:.81rem;font-weight:700;}
.ia-deep-sidebar {position:sticky;top:112px;display:flex;flex-direction:column;gap:18px;min-width:0;}
.ia-deep-sidebar__box {padding:22px 20px;background:#fffefb;border:1px solid #e2e8dc;
  border-radius:11px;box-shadow:0 10px 24px rgba(7,56,29,.025);}
.ia-deep-sidebar__box h2 {font-size:1.02rem;color:#17502c;margin:0 0 15px !important;}
.ia-deep-sidebar__box a {display:flex;justify-content:space-between;gap:8px;color:#365a40;
  padding:10px 0;border-top:1px solid #edf0e8;font-size:.83rem;line-height:1.7;}
.ia-deep-sidebar__box a:hover {color:#005500;text-decoration:underline;}
.ia-deep-sidebar__box a span {color:#9f935e;}
.ia-deep-sidebar__source {display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:15px;border:1px solid #e0e7dc;border-radius:11px;color:#12643b !important;
  font-size:.81rem;background:#fffefa;text-align:center;}
.ia-deep-sidebar__source img {max-height:190px;width:auto;object-fit:contain;}
.ia-deep-sidebar__top {display:block;padding:9px;font-size:.77rem;text-align:center;color:#205b32 !important;}
body.ia-site--deep.is-ia-focused .ia-deep-layout {grid-template-columns:minmax(0,1fr);max-width:1120px;}
body.ia-site--deep.is-ia-focused .ia-deep-sidebar {display:none;}
body.ia-site--deep.is-ia-focused .ia-deep-text {max-width:850px;margin-inline:auto;}
@media(max-width:980px) {
  .ia-deep-layout {grid-template-columns:minmax(0,1fr) 200px;gap:16px;}
  .ia-deep-text {padding:27px;}
}
@media(max-width:800px) {
  .ia-deep-layout {grid-template-columns:minmax(0,1fr);}
  .ia-deep-sidebar {position:static;display:none;}
  .ia-deep-hero__grid {grid-template-columns:minmax(0,1fr) 120px;gap:16px;}
  .ia-deep-hero__art {height:130px;}
}
@media(max-width:560px) {
  .ia-deep-hero__grid {grid-template-columns:minmax(0,1fr);padding-block:25px 29px;}
  .ia-deep-hero__art {display:none;}
  .ia-deep-crumbs {margin-bottom:14px;}
  .ia-deep-hero h1,.ia-site--arabic .ia-deep-hero h1 {font-size:clamp(1.65rem,7vw,2.15rem);}
  .ia-deep-nav__inner {overflow-x:auto;flex-wrap:nowrap;gap:7px;}
  .ia-deep-nav a {white-space:nowrap;flex:none;}
  .ia-deep-layout {padding-block:15px 35px;}
  .ia-deep-toolbar {padding:10px 13px;}
  .ia-deep-toolbar__label {display:none;}
  .ia-deep-toolbar__actions {width:100%;justify-content:space-between;}
  .ia-deep-toolbar__action {padding:5px 8px;}
  .ia-deep-text {padding:20px 17px;font-size:calc(.98rem * var(--ia-reader-scale,1));}
  .ia-deep-text[lang="ar"] {font-size:calc(1.1rem * var(--ia-reader-scale,1));line-height:2.2;}
  .ia-deep-text :is(img[align="right"],img[align="left"],img[style*="float:"]) {float:none !important;display:block;margin:15px auto !important;max-width:100%;}
  .ia-deep-text .ia-deep-original :is(div,p)[style*="width:"] {max-width:100%!important;}
  .ia-deep-toc__item {grid-template-columns:38px minmax(0,1fr) 13px;gap:10px;padding:12px 11px;}
  .ia-deep-toc__num {font-size:.67rem;padding:4px 2px;}
  .ia-deep-search>div {flex-direction:column;}
  .ia-deep-cite {align-items:flex-start;flex-direction:column;}
  .ia-deep-cite button {white-space:normal;}
  .ia-deep-facts {grid-template-columns:1fr;}
  .ia-deep-chapter-item {padding:12px;}
  .ia-deep-chapter-item__editions {margin-inline-start:0;}
  .ia-deep-paging a {font-size:.74rem;padding:7px 10px;}
}
@media print {
  .ia-header,.ia-topline,.ia-footer,.ia-deep-nav,.ia-deep-toolbar,.ia-deep-sidebar,
  .ia-deep-paging,.ia-deep-search,.ia-deep-list-filter,.ia-deep-warning {display:none!important;}
  .ia-deep-hero {color:#111!important;background:white!important;border:0!important;}
  .ia-deep-hero__grid {display:block;padding:0 0 16px;}
  .ia-deep-hero__art,.ia-deep-crumbs,.ia-deep-eyebrow {display:none!important;}
  .ia-deep-hero h1 {color:#111!important;font-size:21pt!important;}
  .ia-deep-hero p {color:#111!important;}
  .ia-deep-layout {display:block;padding:0!important;}
  .ia-deep-paper {border:0;box-shadow:none;overflow:visible;}
  .ia-deep-text {padding:0;font-size:12pt!important;color:#111!important;}
  .ia-deep-paper__after {padding:0;}
  .ia-deep-cite button {display:none;}
  .ia-deep-chapter-page {break-inside:avoid-page;}
  .ia-deep-timeline {min-width:0;font-size:8.5pt;}
  .ia-deep-timeline-scroll {overflow:visible;}
}

/* Stage 3 search-grid retains all four original Futuhat search services. */
.ia-deep-search-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:25px;}
.ia-deep-search-grid .ia-deep-search {margin:0;padding:13px;}
.ia-deep-search-grid .ia-deep-search>div {flex-direction:column;}
.ia-deep-search-grid .ia-deep-search button {min-height:38px;}
.ia-deep-supplement {margin-block:16px;padding:14px 20px;background:#f4f7ef;border-inline-start:3px solid #acc6a6;border-radius:6px;}
@media(max-width:720px){.ia-deep-search-grid {grid-template-columns:1fr;}}
