
:root {
  --ink: #12251e;
  --forest: #03372B;
  --deep: #012820;
  --gold: #F4C55A;
  --gold-light: #F8DA95;
  --paper: #f3efe5;
  --cream: #fbf8f0;
  --line: rgba(18, 37, 30, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 48px));
  height: 108px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(251, 248, 240, .22);
  color: white;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  display: block;
  width: 82px;
  height: 56px;
  flex: 0 0 82px;
  object-fit: contain;
}
.footer-logo {
  width: 64px;
  height: 44px;
  flex-basis: 64px;
}
.brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font: 600 18px Georgia, serif; letter-spacing: .02em; }
.brand small { font-size: 8px; letter-spacing: .18em; text-transform: uppercase; opacity: .66; }
nav { display: flex; align-items: center; gap: 35px; font-size: 12px; letter-spacing: .08em; }
nav a { opacity: .8; transition: opacity .2s; }
nav a:hover { opacity: 1; }
nav a.islamic-world-tab { color: var(--gold-light); font-weight: 700; }
nav a.islamic-world-tab.active {
  opacity: 1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
}
.nav-item-language-wrapper {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  border: 1px solid rgba(225, 199, 124, .7);
  background: rgba(3, 44, 34, .58);
}
.nav-language-trigger {
  min-width: 165px;
  min-height: 41px;
  padding: 0 14px;
  border: 0;
  color: rgba(255,255,255,.78);
  background: transparent;
  font: 600 10px Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-language-trigger:hover, .nav-language-trigger:focus-visible { color: var(--gold-light); background: rgba(216,168,92,.08); }
.arrow-down { margin-left: 5px; font-size: 8px; }
.translate-modal-open { overflow: hidden; }
.translate-modal-backdrop[hidden] { display: none; }
.translate-modal-backdrop {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  padding: 30px 16px;
  overflow-y: auto;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
}
.translate-modal-backdrop.is-open { display: block; }
.translate-modal-content {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: 28px;
  overflow-y: auto;
  color: white;
  background: #043223;
  border: 1px solid rgba(216,168,92,.45);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  animation: modalFadeIn .25s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
.translate-modal-close {
  position: absolute;
  top: 12px;
  right: 17px;
  padding: 4px 8px;
  color: rgba(255,255,255,.55);
  background: transparent;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.translate-modal-close:hover, .translate-modal-close:focus-visible { color: var(--gold-light); }
.translate-modal-content h3 {
  margin: 0 45px 18px 0;
  padding-bottom: 13px;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(216,168,92,.22);
  font: 400 25px Georgia, serif;
}
.translate-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.reset-language-button {
  padding: 9px 13px;
  color: #062e23;
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  font: 700 11px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.reset-language-button:hover, .reset-language-button:focus-visible {
  color: white;
  background: transparent;
}
.language-count {
  color: rgba(255,255,255,.65);
  font: 700 11px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.language-search {
  display: block;
  margin: 0 0 20px;
}
.language-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  color: white;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(216,168,92,.35);
  border-radius: 0;
  font: 14px Arial, sans-serif;
}
.language-search input::placeholder { color: rgba(255,255,255,.45); }
.language-search input:focus { border-color: var(--gold-light); outline: 1px solid var(--gold-light); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.translate-modal-content .section-title {
  margin: 0 0 15px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.translation-language-button {
  width: 100%;
  padding: 7px 8px;
  color: rgba(255,255,255,.9);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  font: 14px Arial, sans-serif;
  cursor: pointer;
}
.translation-language-button:hover, .translation-language-button:focus-visible {
  color: var(--gold-light);
  border-color: rgba(216,168,92,.28);
  background: rgba(216,168,92,.07);
}
.translation-language-button.is-active { color: #062e23; background: var(--gold-light); }
.other-languages-dropdown { padding-top: 17px; border-top: 1px solid rgba(216,168,92,.22); }
.other-languages-dropdown summary { padding: 8px 0; color: var(--gold-light); font-size: 14px; cursor: pointer; }
.generic-languages {
  max-height: 300px;
  margin-top: 16px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-color: var(--gold) rgba(255,255,255,.08);
}
.language-select {
  display: none;
}
.google-translate-engine {
  position: fixed !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
html, body {
  top: 0 !important;
  margin-top: 0 !important;
}
body > .skiptranslate { top: 0 !important; }
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
.site-header {
  top: max(0px, env(safe-area-inset-top));
}

.hero {
  min-height: 820px;
  color: white;
  background:
    radial-gradient(circle at 73% 44%, rgba(244,197,90,.14), transparent 26%),
    linear-gradient(110deg, #022920 0%, #03372B 54%, #01221C 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  padding: 145px max(6vw, calc((100vw - 1240px)/2)) 70px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.eyebrow, .section-label {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
}
.eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin-top: 26px; font-size: clamp(58px, 6vw, 88px); line-height: .99; letter-spacing: -.045em; }
/* hero headline carries longer wording, so it runs smaller than other h1s */
.hero-copy h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
h1 em { color: var(--gold-light); font-weight: 400; }
.history-first {
  display: grid;
  grid-template-columns: minmax(30px, 58px) auto minmax(30px, 58px);
  align-items: center;
  justify-content: start;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 14px 18px;
  color: #f2cf78;
  background:
    linear-gradient(90deg, rgba(216,168,92,.04), rgba(216,168,92,.17), rgba(216,168,92,.04)),
    rgba(2,35,27,.5);
  border-top: 1px solid rgba(242,207,120,.62);
  border-bottom: 1px solid rgba(242,207,120,.62);
  box-shadow: 0 8px 28px rgba(0,0,0,.2), inset 0 0 22px rgba(216,168,92,.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(216,168,92,.22);
}
.history-first::before,
.history-first::after {
  content: "";
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.history-first::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
.hero-statement { display: block; }
.mother-tongue {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 17px 24px 16px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(216,168,92,.15), rgba(255,255,255,.025)),
    rgba(2,35,27,.58);
  border-top: 1px solid rgba(242,207,120,.48);
  border-right: 3px solid var(--gold);
  border-bottom: 1px solid rgba(242,207,120,.48);
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.22), inset 0 0 24px rgba(216,168,92,.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .015em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.mother-tongue small {
  display: block;
  margin-top: 8px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .52em;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: normal;
}
.lead { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 34px; padding: 17px 23px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.button-primary { background: var(--gold); color: var(--deep); }
.text-link { font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.36); padding: 0 0 6px; }
.text-link span { margin-left: 14px; color: var(--gold-light); }
.hero-stats { display: flex; gap: 48px; margin: 60px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); max-width: 580px; }
.hero-stats div { display: flex; align-items: baseline; gap: 10px; }
.hero-stats dt { font: 400 25px Georgia, serif; color: var(--gold-light); }
.hero-stats dd { margin: 0; color: rgba(255,255,255,.48); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.cover-stage { position: relative; min-height: 570px; display: grid; place-items: center; }
.cover-wrap {
  position: relative; z-index: 2; width: min(350px, 72%);
  filter: drop-shadow(0 35px 40px rgba(0,0,0,.46));
  transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
}
.cover-wrap img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 3px; }
.halo { position: absolute; border: 1px solid rgba(201,164,84,.18); border-radius: 50%; }
.halo-one { width: 540px; height: 540px; }
.halo-two { width: 430px; height: 430px; border-color: rgba(201,164,84,.1); }
.cover-note { position: absolute; z-index: 3; bottom: 0; color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.cover-note span { color: var(--gold); margin-right: 10px; }

.intro, .sample, .principles { max-width: 1180px; margin: 0 auto; }
.intro { padding: 120px 24px 72px; display: grid; grid-template-columns: .7fr 1.3fr; }
.intro .section-label, .sample .section-label, .principles .section-label { color: #8f7135; }
.intro h2, .sample h2, .principles h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
.intro > div p { max-width: 660px; color: #68736d; font-size: 16px; line-height: 1.8; }
.method-grid {
  max-width: 1180px; margin: 0 auto 130px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.method-grid article { min-height: 310px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.method-grid article > span { font-size: 9px; letter-spacing: .14em; opacity: .45; }
.method-grid i { display: block; margin: 55px 0 34px; color: #9a7a39; font: normal 34px Georgia,serif; }
.method-grid h3, .principle-list h3 { font: 400 20px Georgia,serif; }
.method-grid p, .principle-list p { color: #747d78; font-size: 12px; line-height: 1.7; }

.sample { padding: 110px 24px 130px; }
.sample-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 52px; }
.verse-id { width: 280px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verse-id > span { color: #9a7a39; font: 24px Georgia,serif; }
.verse-id p { margin: 0; font: 14px Georgia,serif; }
.verse-id small { font: 9px Arial,sans-serif; opacity: .5; }
.verse-id strong { font: 14px Georgia,serif; }
.verse-card { border: 1px solid var(--line); background: #fffdf8; padding: 55px; box-shadow: 0 24px 60px rgba(15,34,27,.06); }
.arabic-verse { margin: 0; text-align: center; font: 46px/1.7 "Times New Roman",serif; color: var(--forest); }
.transliteration { text-align: center; margin: 8px 0 40px; color: #8b743f; font: italic 17px Georgia,serif; }
.word-row { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.word { padding: 22px; display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.word strong { font: 28px "Times New Roman",serif; color: var(--forest); }
.word em { margin: 8px 0; font: italic 12px Georgia,serif; color: #9a7a39; }
.word span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .58; }
.translation { display: grid; grid-template-columns: 180px 1fr; align-items: center; padding-top: 34px; }
.translation span { font-size: 8px; letter-spacing: .18em; color: #9a7a39; }
.translation p { margin: 0; font: 24px Georgia,serif; }

.principles { padding: 120px 24px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 35px 80px; border-top: 1px solid var(--line); }
.principles .section-label { grid-column: 1/-1; }
.principle-list article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); }
.principle-list b { color: #9a7a39; font: 13px Georgia,serif; }
.principle-list h3 { margin: 0; }
.principle-list p { margin: 8px 0 0; }

.explore { padding: 115px 24px; text-align: center; color: white; background: var(--forest); }
.explore .section-label { color: var(--gold-light); }
.explore h2 { margin: 25px 0; font-size: clamp(52px, 6vw, 78px); line-height: 1; }
.explore > p { max-width: 570px; margin: 0 auto 36px; color: rgba(255,255,255,.64); line-height: 1.7; }
.button-light { color: var(--gold-light); border: 1px solid var(--gold); }
footer { min-height: 140px; padding: 35px max(24px, calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; align-items: center; background: var(--deep); color: white; }
footer > p { color: rgba(255,255,255,.38); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

/* Islamic World */
.world-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 175px max(6vw, calc((100vw - 1180px)/2)) 95px;
  color: white;
  background:
    radial-gradient(circle at 78% 30%, rgba(216,168,92,.2), transparent 25%),
    radial-gradient(circle at 65% 80%, rgba(255,255,255,.045), transparent 30%),
    linear-gradient(125deg, #02241D, #033E30 58%, #011B15);
}
.world-hero-inner { width: 100%; max-width: 1180px; }
.world-hero h1 {
  margin: 30px 0 24px;
  font-size: clamp(68px,9vw,122px);
  line-height: .9;
  letter-spacing: -.055em;
}
.world-hero h1 em { color: var(--gold-light); font-style: italic; }
.world-intro {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(18px,2vw,24px);
  line-height: 1.7;
}
.world-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  max-width: 1000px;
  margin-top: 55px;
  border-top: 1px solid rgba(242,207,120,.32);
  border-left: 1px solid rgba(242,207,120,.32);
}
.world-stat-grid article {
  min-height: 145px;
  padding: 26px 22px;
  border-right: 1px solid rgba(242,207,120,.32);
  border-bottom: 1px solid rgba(242,207,120,.32);
  background: rgba(0,0,0,.08);
}
.world-stat-grid strong { display: block; color: var(--gold-light); font: 400 clamp(32px,4vw,52px) Georgia,serif; }
.world-stat-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.data-note { margin: 16px 0 0; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .04em; }
.world-section {
  padding: 115px max(6vw, calc((100vw - 1180px)/2));
  background: var(--paper);
}
.world-section-dark {
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(216,168,92,.1), transparent 28%),
    var(--forest);
}
.world-section-heading {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 58px;
}
.world-section-heading h2 { font-size: clamp(43px,5vw,70px); line-height: 1.02; letter-spacing: -.035em; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.region-grid article {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.region-number { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.region-grid h3 { margin: 35px 0 10px; color: var(--forest); font: 400 clamp(26px,3vw,39px) Georgia,serif; }
.region-grid strong { display: block; color: var(--gold-dark); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.region-grid p { margin: 25px 0 0; color: #607069; font-size: 16px; line-height: 1.75; }
.language-feature-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  border-left: 1px solid rgba(255,255,255,.14);
}
.language-feature-grid article {
  min-height: 360px;
  padding: 32px 25px;
  border-right: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.language-feature-grid article > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--gold-light);
  border: 1px solid rgba(242,207,120,.46);
  font: 400 27px Georgia,serif;
}
.language-feature-grid h3 { margin: 45px 0 10px; font: 400 29px Georgia,serif; }
.language-feature-grid strong { color: var(--gold-light); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.language-feature-grid p { margin: 20px 0 0; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.75; }
.other-language-note { max-width: 900px; margin: 42px 0 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.other-language-note strong { color: var(--gold-light); }
.world-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 18px 55px rgba(3,39,30,.08);
}
.world-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.world-table th,
.world-table td {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}
.world-table tr > :last-child { border-right: 0; }
.world-table thead th { color: white; background: var(--forest); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.world-table tbody td:first-child { width: 38%; }
.world-table tbody td:nth-child(2) { width: 18%; color: var(--gold-dark); font-weight: 700; white-space: nowrap; }
.world-table td span { display: block; margin-top: 5px; color: #718079; font-style: italic; }
.world-table tfoot th { color: var(--forest); background: rgba(216,168,92,.16); font-size: 15px; }
.world-observations {
  display: grid;
  grid-template-columns: .5fr 1.5fr;
  gap: 50px;
  padding: 105px max(6vw, calc((100vw - 1180px)/2));
  color: white;
  background: var(--deep);
}
.world-observations article {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 22px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.world-observations article span { color: var(--gold-light); font-size: 12px; }
.world-observations article p { margin: 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.7; }
.world-observations article strong { color: white; }

@media (max-width: 900px) {
  nav a { display: none; }
  nav { gap: 14px; }
  nav a.islamic-world-tab { display: inline-flex; font-size: 10px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .cover-stage { min-height: 620px; }
  .hero-copy { max-width: 760px; }
  .method-grid { grid-template-columns: repeat(2,1fr); }
  .intro, .principles { grid-template-columns: 1fr; }
  .sample-head { align-items: start; gap: 30px; }
  .world-stat-grid { grid-template-columns: repeat(2,1fr); }
  .world-section-heading, .world-observations { grid-template-columns: 1fr; }
  .language-feature-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .site-header { width: calc(100% - 32px); height: 86px; }
  .site-header .brand > span { display: none; }
  .brand-logo { width: 82px; height: 56px; flex-basis: 82px; }
  .footer-logo { width: 82px; height: 56px; flex-basis: 82px; }
  .brand small { display: none; }
  .nav-language-trigger { min-width: 112px; padding: 0 9px; font-size: 9px; }
  .translate-modal-backdrop { padding: 14px 10px; }
  .translate-modal-content { max-height: calc(100vh - 28px); padding: 20px 15px; }
  .translate-modal-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .translation-grid { grid-template-columns: 1fr; gap: 2px; }
  .translation-language-button { padding: 9px 8px; border-bottom-color: rgba(255,255,255,.05); }
  .hero { padding: 125px 20px 55px; }
  h1 { font-size: 51px; }
  .hero-copy h1 { font-size: 40px; }
  .history-first {
    grid-template-columns: 18px minmax(0,auto) 18px;
    gap: 8px;
    margin-bottom: 22px;
    padding: 12px 9px;
    font-size: clamp(13px, 4.2vw, 17px);
    letter-spacing: .045em;
    text-align: center;
  }
  .history-first::before,
  .history-first::after { width: 18px; }
  .mother-tongue {
    width: 100%;
    margin-top: 22px;
    padding: 14px 12px;
    font-size: clamp(17px, 5.2vw, 22px);
  }
  .mother-tongue small { margin-top: 7px; font-size: 11px; letter-spacing: .08em; }
  .lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats dd { max-width: 70px; }
  .cover-stage { min-height: 510px; }
  .halo-one { width: 420px; height: 420px; }
  .halo-two { width: 340px; height: 340px; }
  .intro { padding-top: 85px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 240px; }
  .method-grid i { margin: 38px 0 26px; }
  .sample { padding-top: 70px; }
  .sample-head { display: block; }
  .verse-id { margin-top: 32px; width: 100%; }
  .verse-card { padding: 28px 16px; }
  .arabic-verse { font-size: 32px; }
  .word-row { grid-template-columns: repeat(2,1fr); }
  .translation { grid-template-columns: 1fr; gap: 12px; }
  .translation p { font-size: 20px; }
  .principles { padding-top: 80px; }
  footer { flex-direction: column; gap: 28px; text-align: center; }
  .world-hero { min-height: auto; padding: 135px 20px 70px; }
  .world-hero h1 { margin-top: 24px; font-size: 64px; }
  .world-intro { font-size: 17px; }
  .world-stat-grid { margin-top: 38px; }
  .world-stat-grid article { min-height: 125px; padding: 22px 16px; }
  .world-section { padding: 75px 20px; }
  .world-section-heading { margin-bottom: 38px; gap: 24px; }
  .region-grid, .language-feature-grid { grid-template-columns: 1fr; }
  .region-grid article, .language-feature-grid article { min-height: auto; }
  .world-observations { padding: 75px 20px; gap: 25px; }
  .world-observations article p { font-size: 16px; }
  .site-header nav { gap: 8px; }
  .site-header nav a.islamic-world-tab { font-size: 8px; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-wrap { animation: float 6s ease-in-out infinite; }
  @keyframes float {
    0%,100% { transform: perspective(1200px) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-3deg) translateY(-10px); }
  }
}


/* =========================================================
   SHARED NAVIGATION
   ========================================================= */
#site-navigation { position: relative; z-index: 1000; }
.primary-nav { display:flex; align-items:center; gap:35px; font-size:12px; letter-spacing:.08em; }
.nav-dropdown { position:relative; display:inline-flex; align-items:center; }
.nav-toplink { position:relative; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; opacity:.8; }
.nav-dropdown-toggle::after { content:"▾"; font-size:8px; color:var(--gold-light); }
.nav-toplink.active { opacity:1; padding-bottom:6px; }
.nav-toplink.active::before {
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--gold);
}
.nav-submenu {
  position:absolute; top:calc(100% + 10px); left:0; z-index:1200; min-width:180px;
  padding:8px 0; background:rgba(3,44,34,.98); border:1px solid rgba(225,199,124,.25);
  box-shadow:0 18px 35px rgba(0,0,0,.28); opacity:0; visibility:hidden;
  transform:translateY(-6px); transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-submenu a { display:block; padding:11px 14px; color:white; opacity:.82; white-space:nowrap; }
.nav-submenu a::before { content:"↳"; margin-right:8px; color:var(--gold-light); }
.nav-submenu a:hover, .nav-submenu a:focus-visible, .nav-submenu a.active {
  opacity:1; color:var(--gold-light); background:rgba(225,199,124,.08);
}
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu, .nav-dropdown.is-open .nav-submenu {
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav-menu-toggle { display:none; width:42px; height:42px; padding:9px; border:1px solid rgba(225,199,124,.55); background:rgba(3,44,34,.55); cursor:pointer; }
.nav-menu-toggle span { display:block; height:2px; margin:5px 0; background:white; }
.component-error { margin:20px; padding:12px; background:#fff3cd; color:#5f4b00; }

/* Keep Google’s injected banner from shifting the page. */
html, body { top:0 !important; margin-top:0 !important; }
body > .skiptranslate, .goog-te-banner-frame.skiptranslate { display:none !important; }
.google-translate-engine { position:fixed !important; left:-10000px !important; top:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

@media (max-width:900px) {
  .site-header { height:96px; }
  .nav-menu-toggle { display:block; margin-left:auto; }
  .primary-nav {
    position:absolute; top:82px; right:0; width:min(340px, calc(100vw - 32px)); display:none;
    align-items:stretch; flex-direction:column; gap:0; padding:10px;
    background:rgba(3,44,34,.99); border:1px solid rgba(225,199,124,.3);
    box-shadow:0 20px 45px rgba(0,0,0,.35);
  }
  .primary-nav.is-open { display:flex; }
  .nav-dropdown { display:block; }
  .nav-toplink { width:100%; justify-content:space-between; padding:13px 10px; }
  .nav-toplink.active { padding-bottom:13px; }
  .nav-toplink.active::before { left:10px; right:10px; }
  .nav-submenu {
    position:static; display:none; min-width:0; padding:0 0 7px 14px; border:0; box-shadow:none;
    background:transparent; opacity:1; visibility:visible; transform:none;
  }
  .nav-dropdown.is-open .nav-submenu { display:block; }
  .nav-item-language-wrapper { margin:8px 0 0; }
  .nav-language-trigger { width:100%; min-width:0; }
}
@media (max-width:600px) {
  .site-header { width:calc(100% - 28px); height:86px; }
  .brand > span { display:none; }
  .brand-logo { width:82px; height:56px; flex-basis:82px; }
  .primary-nav { top:74px; }
}


/* ISLAMIC SECTS PAGE */
.sects-hero{min-height:690px;padding:170px max(6vw,calc((100vw - 1180px)/2)) 90px;color:white;background:radial-gradient(circle at 78% 34%,rgba(216,168,92,.18),transparent 27%),linear-gradient(125deg,#02241D,#033E30 58%,#011B15)}
    .sects-hero-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(420px,1.2fr);gap:60px;align-items:center;max-width:1180px;margin:auto}
    .sects-hero h1{font-size:clamp(62px,8vw,110px);line-height:.9;letter-spacing:-.055em}
    .sects-hero h1 em{display:block;color:var(--gold-light);font-style:italic}
    .sects-hero p{max-width:610px;color:rgba(255,255,255,.72);font-size:18px;line-height:1.75}
    .sects-hero figure{margin:0}
    .sects-hero img{display:block;width:100%;height:auto;border:1px solid rgba(225,199,124,.32);box-shadow:0 30px 65px rgba(0,0,0,.38)}
    .sects-hero figcaption{margin-top:12px;color:rgba(255,255,255,.45);font-size:10px;letter-spacing:.1em;text-transform:uppercase;text-align:center}
    .sects-main{max-width:1180px;margin:auto;padding:100px 24px 125px}
    .sects-intro{display:grid;grid-template-columns:.55fr 1.45fr;gap:55px;margin-bottom:65px}
    .sects-intro h2{font-size:clamp(42px,5vw,68px);line-height:1.02}
    .sects-intro p{margin:0;color:#65716b;font-size:17px;line-height:1.8}
    .sects-toc{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);margin-bottom:90px}
    .sects-toc a{min-height:135px;padding:24px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
    .sects-toc b{display:block;color:#9a7a39;font:400 26px Georgia,serif}
    .sects-toc span{display:block;margin-top:14px;color:var(--forest);font:400 18px Georgia,serif}
    .sects-content{max-width:900px;margin:auto}
    .sects-content h2{margin:88px 0 22px;padding-top:25px;border-top:1px solid var(--line);color:var(--forest);font-size:clamp(34px,4vw,50px);line-height:1.05}
    .sects-content h3{margin:42px 0 15px;color:#8b6c30;font:700 22px Georgia,serif}
    .sects-content p{color:#58675f;font-size:16px;line-height:1.8}
    .sect-item{position:relative;margin:12px 0;padding:16px 18px 16px 42px;color:#58675f;background:#fffdf8;border:1px solid var(--line);line-height:1.7}
    .sect-item:before{content:"";position:absolute;left:18px;top:25px;width:7px;height:7px;border-radius:50%;background:var(--gold)}
    .sect-item strong{color:var(--forest)}
    .matrix-title{margin-top:100px!important}
    .sects-table-wrap{overflow-x:auto;border:1px solid var(--line);box-shadow:0 18px 50px rgba(3,39,30,.07)}
    .sects-table{width:100%;min-width:760px;border-collapse:collapse;background:white}
    .sects-table th,.sects-table td{padding:18px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:top;line-height:1.55}
    .sects-table th{color:white;background:var(--forest);font-size:10px;letter-spacing:.1em;text-transform:uppercase}
    .sects-table td{color:#5f6c65;font-size:14px}
    .druze-note{margin-top:90px;padding:45px;background:linear-gradient(135deg,rgba(216,168,92,.1),rgba(255,255,255,.7));border:1px solid rgba(154,122,57,.28)}
    .druze-note>h2{margin-top:0!important;border-top:0!important;padding-top:0!important}
    @media(max-width:900px){.sects-hero-grid{grid-template-columns:1fr}.sects-hero{padding-top:145px}.sects-hero figure{max-width:760px}.sects-intro{grid-template-columns:1fr}.sects-toc{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:600px){.sects-hero{padding:125px 18px 60px}.sects-hero-grid{gap:35px}.sects-hero h1{font-size:58px}.sects-main{padding:70px 16px 90px}.sects-toc{grid-template-columns:1fr}.sects-toc a{min-height:auto}.druze-note{padding:24px 18px}}

/* ============================================================
   Translated-text typography
   Google Translate adds .translated-ltr / .translated-rtl to <html>.
   Malayalam, Hindi, Tamil, Bengali, Thai, Khmer and CJK set much wider
   and taller than Latin at the same size, so the large display headings
   overrun their grid column. English sizes are left untouched.
   ============================================================ */

/* safety net regardless of language: never let a heading escape its column */
h1, h2, .hero-statement, .sects-hero h1 em, .world-hero h1 em {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
}

html.translated-ltr .sects-hero h1,
html.translated-rtl .sects-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
html.translated-ltr .world-hero h1,
html.translated-rtl .world-hero h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
html.translated-ltr .hero-copy h1,
html.translated-rtl .hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.015em;
}
html.translated-ltr .hero-copy .history-first,
html.translated-rtl .hero-copy .history-first {
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .02em;
}
html.translated-ltr .hero-copy .mother-tongue,
html.translated-rtl .hero-copy .mother-tongue {
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0;
}
html.translated-ltr .sects-content h2,
html.translated-rtl .sects-content h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
}
html.translated-ltr .section-label,
html.translated-rtl .section-label,
html.translated-ltr .eyebrow,
html.translated-rtl .eyebrow {
  letter-spacing: .04em;   /* wide tracking mangles Indic conjuncts */
}

@media (max-width: 900px) {
  html.translated-ltr .sects-hero h1,
  html.translated-rtl .sects-hero h1 { font-size: clamp(28px, 6vw, 40px); }
  html.translated-ltr .world-hero h1,
  html.translated-rtl .world-hero h1 { font-size: clamp(30px, 6.4vw, 44px); }
  html.translated-ltr .hero-copy h1,
  html.translated-rtl .hero-copy h1 { font-size: clamp(26px, 5.6vw, 36px); }
}

/* ============================================================
   Surah dropdown — 114 entries in a scrollable multi-column panel
   ============================================================ */
.nav-submenu-surahs {
  width: min(680px, calc(100vw - 40px));
  max-height: min(76vh, 640px);
  overflow-y: auto;
  padding: 10px 12px 14px;
  right: 0;
}
.nav-submenu-surahs .surah-menu-all {
  display: block;
  margin: 0 0 8px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(225,199,124,.28);
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
}
.surah-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 14px;
}
.surah-menu-grid a {
  display: block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surah-menu-grid a b {
  display: inline-block;
  min-width: 22px;
  color: var(--gold);
  font-weight: 700;
}
.surah-menu-grid a:hover { background: rgba(255,255,255,.09); }
.surah-menu-grid a.active { background: var(--gold); color: var(--deep); }
.surah-menu-grid a.active b { color: var(--deep); }

@media (max-width: 900px) {
  .nav-submenu-surahs {
    width: 100%;
    max-height: 46vh;
    padding: 8px 4px 10px;
  }
  .surah-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surah-menu-grid a { font-size: 12.5px; padding: 5px 6px; }
}
@media (max-width: 480px) {
  .surah-menu-grid { grid-template-columns: 1fr; }
}

/* Visible scrollbar for the full 114-Surah menu */
.nav-submenu-surahs { scrollbar-width: thin; scrollbar-color: var(--gold) rgba(255,255,255,.08); }
.nav-submenu-surahs::-webkit-scrollbar { width: 10px; }
.nav-submenu-surahs::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.nav-submenu-surahs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* 2026-07-30 final Surah menu correction: keep the complete 114-item panel inside viewport. */
.nav-submenu.nav-submenu-surahs {
  left: auto !important;
  right: 0 !important;
  width: min(960px, calc(100vw - 32px)) !important;
  max-height: min(82vh, 700px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.nav-submenu-surahs .surah-menu-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-content: start;
}
@media (max-width: 1100px) {
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .nav-submenu.nav-submenu-surahs { left: 0 !important; right: auto !important; width: 100% !important; max-height: 55vh !important; }
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: 1fr !important; }
}


/* 2026-07-30 corrective override: full 114-Surah menu anchored to viewport. */
.nav-submenu.nav-submenu-surahs {
  position: fixed !important;
  top: 96px !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  max-width: none !important;
  max-height: calc(100vh - 116px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 5000 !important;
}
.nav-submenu-surahs .surah-menu-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
@media (max-width: 1100px) {
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .nav-submenu.nav-submenu-surahs { top: 76px !important; left: 8px !important; right: 8px !important; max-height: calc(100vh - 88px) !important; }
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 430px) {
  .nav-submenu-surahs .surah-menu-grid { grid-template-columns: 1fr !important; }
}
