/* Readex Pro — SIL Open Font License 1.1, self-hosted (no third-party requests) */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/readex-pro-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;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/readex-pro-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/readex-pro-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;
}

:root {
  --navy: #0e1f3d;
  --yellow: #ffc107;
  --yellow-press: #e6ac00;
  --ink: #0e1f3d;
  --muted: #3e4c66;
  --paper: #f4f6f9;
  --line: #d8dee8;
  --white: #fff;
  --soft: #e4e9f2;
  --max: 1120px;
  --font: "Readex Pro", "Segoe UI", "Liberation Sans", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "SF Arabic", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

h1 { font-size: clamp(2rem, 5vw, 3.35rem); margin: 0 0 0.6rem; }

h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 0 0 0.75rem; }

h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

p { margin: 0 0 0.8rem; }

a { color: var(--navy); text-underline-offset: 0.18em; }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 80;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.skip-link:where(:not(:focus, :focus-visible)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.t-en,
.t-fr,
.when-paused { display: none; }

html[data-lang="en"] .t-ar,
html[data-lang="en"] .t-fr,
html[data-lang="fr"] .t-ar,
html[data-lang="fr"] .t-en,
html[data-lang="ar"] .t-en,
html[data-lang="ar"] .t-fr { display: none; }

html[data-lang="en"] .t-en,
html[data-lang="fr"] .t-fr,
html[data-lang="ar"] .t-ar { display: revert; }

html[data-lang="en"] .t-en.when-paused,
html[data-lang="fr"] .t-fr.when-paused,
html[data-lang="ar"] .t-ar.when-paused,
.t-ar.when-paused { display: none; }

.hero:has(#pause-motion:checked) .when-playing { display: none; }

.hero:has(#pause-motion:checked) .t-ar.when-paused { display: revert; }

html[data-lang="en"] .hero:has(#pause-motion:checked) .t-ar.when-paused,
html[data-lang="fr"] .hero:has(#pause-motion:checked) .t-ar.when-paused { display: none; }

html[data-lang="en"] .hero:has(#pause-motion:checked) .t-en.when-paused,
html[data-lang="fr"] .hero:has(#pause-motion:checked) .t-fr.when-paused,
html[data-lang="ar"] .hero:has(#pause-motion:checked) .t-ar.when-paused { display: revert; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.65rem;
}

.brand { display: flex; align-items: center; text-decoration: none; }

.brand img { height: 44px; width: auto; display: block; }

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.15rem 0.85rem;
  flex: 1 0 100%;
  order: 3;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; flex: none; }
.site-nav a:hover { text-decoration: underline; }

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-inline-start: auto;
}

.header-test {
  margin: 0;
  max-width: 8.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

#content,
:target,
[id][tabindex="-1"] { scroll-margin-top: 7.5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding-inline: 0.9rem 0.8rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy);
  font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 1px 2px rgba(14,31,61,.06);
  transition: border-color .15s, box-shadow .15s;
}
.lang-btn:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(14,31,61,.12); }
.lang-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lang-globe {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--yellow); color: var(--navy);
}
.lang-chev { transition: transform .2s; opacity: .7; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-btn[aria-expanded="true"] { border-color: var(--navy); }

.lang-list {
  position: absolute; z-index: 50; top: calc(100% + 8px); inset-inline-start: 0;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(14,31,61,.18), 0 2px 6px rgba(14,31,61,.08);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top;
  visibility: hidden; transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.lang-list a { display: contents; color: inherit; text-decoration: none; }
html:not(.js) .lang-menu:focus-within .lang-list,
.lang-menu.open .lang-list { opacity: 1; transform: none; visibility: visible; transition: opacity .16s, transform .16s; }
.lang-list li {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 48px; padding-inline: 0.6rem; border-radius: 11px;
  color: var(--navy); font-weight: 600; cursor: pointer;
}
.lang-list li:hover, .lang-list li.active { background: #f3f5f9; }
.lang-code {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #eef1f6; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.lang-list li[aria-selected="true"] { background: #fff8e1; }
.lang-list li[aria-selected="true"] .lang-code { background: var(--yellow); }
.lang-check { margin-inline-start: auto; opacity: 0; color: var(--navy); }
.lang-list li[aria-selected="true"] .lang-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lang-list, .lang-chev { transition: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-yellow { background: var(--yellow); color: var(--navy); }

.btn-yellow:hover { background: var(--yellow-press); }

.btn-navy { background: var(--navy); color: var(--white); }

.btn-navy:hover { background: #16315c; }

.btn-line { background: transparent; color: var(--white); border-color: var(--white); }

.btn-line:hover { background: var(--white); color: var(--navy); }

.btn:active { transform: translateY(1px); }

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem 0 2rem;
}

.hero h1,
.hero p { color: var(--white); }

.lede { font-size: 1.15rem; color: var(--soft); max-width: 38rem; }

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.fleet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 1rem 0;
}

.fleet b {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.03em;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.4rem; }

.fine { color: var(--soft); font-size: 0.95rem; }

.hero-art { margin: 0; direction: ltr; }

.hero-art svg { width: 100%; height: auto; display: block; }

.cab { transform: translate(250px, 262px); }

.motion-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.6rem;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

.motion-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.motion-btn:focus-within {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.checker {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 12px, var(--yellow) 12px 24px);
}

.band { padding: 2.6rem 0; }

.band-paper { background: var(--paper); }

.band-navy { background: var(--navy); color: var(--white); }

.band-navy h2,
.band-navy p { color: var(--white); }

.band-navy a { color: var(--yellow); }

.intro { max-width: 42rem; color: var(--muted); }

.band-navy .intro { color: var(--soft); }

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  padding-top: 0.85rem;
  border-top: 4px solid var(--yellow);
}

.steps .n {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  margin-bottom: 0.45rem;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 800;
}

.facts {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.facts div {
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  transition: transform .2s, box-shadow .2s;
}
.facts div:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,31,61,.1); }

.ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 0.4rem;
  border-radius: 14px; background: var(--yellow); color: var(--navy);
}

.facts dt { font-weight: 800; }

.facts dd { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.sheet { margin: 0; direction: ltr; }
.sheet svg { display: block; width: 100%; max-width: 340px; margin-inline: auto; height: auto; }

.safety-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.safety-list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 600;
}
.safety-list + p { margin-top: 1.1rem; }
.safety-list .ico { flex: none; margin: 0; background: var(--navy); color: var(--yellow); }

.apps {
  display: grid;
  gap: 1rem;
}

.app-block {
  padding: 1.1rem 0 0.2rem;
  border-top: 4px solid var(--navy);
}

.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }

.store {
  min-width: 9.5rem;
  min-height: 48px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef1f5;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store b { color: var(--navy); font-size: 0.95rem; }

.store small { font-weight: 700; color: var(--navy); }

.dl { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.faq { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: 0.75rem;
  font-weight: 800;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.faq[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.faq p { margin: 0 0 1rem; color: var(--muted); max-width: 68ch; }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.phone-link {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0 1.5rem;
}

.site-footer a { color: var(--yellow); }

.site-footer :focus-visible,
.hero :focus-visible,
.band-navy :focus-visible { outline-color: var(--white); }

.foot-grid {
  display: grid;
  gap: 1rem;
}

.foot-brand img { height: 40px; width: auto; display: block; }

.foot-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

.foot-links a { min-height: 48px; display: inline-flex; align-items: center; font-weight: 700; }

.legal-note { color: var(--soft); font-size: 0.95rem; max-width: 46rem; }

.copy { color: var(--soft); }

.prose { padding: 2rem 0 3rem; }

.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.prose h2 { margin-top: 1.8rem; font-size: 1.28rem; }

.prose p,
.prose li { max-width: 68ch; }

.prose ul,
.prose ol { padding-inline-start: 1.25rem; }

.prose li { margin-bottom: 0.4rem; }

.updated { color: var(--muted); }

.miss { padding: 3rem 0 4rem; }

@media (min-width: 800px) {
  .site-nav { flex: 1 1 auto; order: 0; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 2rem; }
  .band { padding: 4rem 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .facts { grid-template-columns: repeat(6, 1fr); }
  .facts div { grid-column: span 2; }
  .facts div:nth-child(n+4) { grid-column: span 3; }
  .safety-list { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.3fr 0.7fr; }
  .apps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .foot-grid { grid-template-columns: auto 1fr; align-items: center; }
  .foot-links { justify-content: end; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (offset-path: path("M 0 0 L 1 1")) {
    .cab {
      transform: none;
      offset-path: path("M 8 308 C 100 308, 150 246, 236 258 S 390 332, 498 270 S 610 214, 668 236");
      offset-rotate: auto;
      offset-distance: 34%;
      animation: glide 18s linear infinite;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .motion-btn { display: none; }
  @supports (offset-path: path("M 0 0 L 1 1")) {
    .cab {
      transform: none;
      offset-path: path("M 8 308 C 100 308, 150 246, 236 258 S 390 332, 498 270 S 610 214, 668 236");
      offset-rotate: auto;
      offset-distance: 34%;
      animation: none;
    }
  }
}

.hero:has(#pause-motion:checked) .cab { animation-play-state: paused; }

@keyframes glide {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

/* [bo] keep navy text on yellow buttons inside navy bands (was yellow-on-yellow) */
.band-navy a.btn-yellow { color: var(--navy); }

@media (min-width: 560px) and (max-width: 799px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ===== Secondary pages (privacy, terms, delete-account, support, 404) ===== */
.btn svg { flex: none; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: 2.6rem 0 2.4rem;
}
.page-hero::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  inset-inline-end: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255,193,7,.28), rgba(255,193,7,0) 70%);
}

.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin: 0.9rem 0 0.6rem; }
.page-badge {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.pill {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,.1); color: var(--soft); font-size: 0.9rem;
}
.page-intro { color: var(--soft); font-size: 1.1rem; max-width: 44rem; margin: 0; }
.page-hero a:not(.btn) { color: var(--yellow); }

.doc-wrap { background: var(--paper); }
.doc-layout { display: grid; gap: 1.25rem; padding: 2rem 0 3.5rem; align-items: start; }
.doc { display: grid; gap: 1rem; min-width: 0; }

.doc-sec {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.3rem 1.25rem 1.2rem; scroll-margin-top: 7rem;
}
.doc-sec h2 { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; font-size: 1.22rem; }
.doc-sec p, .doc-sec li { max-width: 70ch; color: var(--muted); }
.doc-sec p:last-child { margin-bottom: 0; }
.doc-sec a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-sec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.doc-sec ul li { position: relative; padding-inline-start: 1.3rem; margin: 0; }
.doc-sec ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.65em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px #fff3cd;
}
.num {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--yellow); color: var(--navy); font-size: 0.85rem; font-weight: 700;
}
.ico.sm { width: 40px; height: 40px; margin: 0; border-radius: 12px; flex: none; }
.ico.danger { background: #ffe1e1; color: #a61b1b; }

.contact-card { background: var(--navy); border-color: var(--navy); color: var(--white); }
.contact-card h2 { color: var(--white); }
.contact-card h2 svg { color: var(--yellow); }
.contact-card p { color: var(--soft); }
.doc-sec.contact-card a:not(.btn) { color: var(--yellow); }

.toc { display: none; }
.toc-title { margin: 0 0 0.6rem; font-weight: 700; color: var(--navy); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.toc a {
  display: flex; align-items: center; gap: 0.6rem; min-height: 40px; padding: 0.25rem 0.5rem;
  border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.95rem;
}
.toc a .num { width: 26px; height: 26px; border-radius: 8px; font-size: 0.72rem; background: var(--soft); }
.toc a:hover, .toc a.on { background: var(--white); color: var(--navy); }
.toc a.on .num, .toc a:hover .num { background: var(--yellow); }

.issue-grid { display: grid; gap: 0.8rem; }
.issue { background: var(--paper); border-radius: 16px; padding: 1rem 1.05rem; }
.issue h3 { margin: 0.2rem 0 0.35rem; font-size: 1.05rem; }
.issue p { margin: 0; font-size: 0.97rem; }
.issue .ico { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 0.5rem; }

.step-list { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.step-list li {
  counter-increment: st; position: relative; margin: 0;
  padding: 0.85rem 1rem; padding-inline-start: 3.6rem; background: var(--paper); border-radius: 14px;
}
.step-list li::before {
  content: counter(st); position: absolute; inset-inline-start: 0.9rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--yellow); font-weight: 700;
}

.nf { padding: 3.5rem 0; min-height: calc(100vh - 330px); display: flex; align-items: center; }
.nf > .wrap { width: 100%; }
.step-list + p { margin-top: 1rem; }
.nf-grid { display: grid; gap: 2rem; align-items: center; }
.nf-code { margin: 0; font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--yellow); letter-spacing: .04em; }
.nf-art { width: 100%; max-width: 420px; height: auto; justify-self: center; }

@media (min-width: 700px) {
  .issue-grid { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr 1fr; }
  .doc > .doc-sec:not(.half) { grid-column: 1 / -1; }
  .doc-sec { padding: 1.6rem 1.7rem 1.5rem; }
  .nf-grid { grid-template-columns: 1.1fr 0.9fr; }
}
@media (min-width: 960px) {
  .doc-layout.has-toc { grid-template-columns: 250px 1fr; gap: 2rem; }
  .toc { display: block; position: sticky; top: 6.5rem; padding: 1rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); background: #eef1f6; }
}

/* ===== [grok] Compact mobile header: logo + language + book + menu button; nav opens as a panel ===== */
.nav-toggle, .nav-note { display: none; }
@media (max-width: 799px) {
  .header-bar { flex-wrap: wrap; gap: 0 0.5rem; padding-block: 0.5rem; }
  .brand img { height: 34px; }
  .header-tools { flex-wrap: nowrap; gap: 0.3rem; order: 1; }
  .header-test { display: none; }
  .header-tools .btn { min-height: 44px; padding: 0.45rem 0.6rem; font-size: 0.9rem; white-space: nowrap; }
  .lang-btn { min-height: 44px; gap: 0.35rem; padding-inline: 0.35rem 0.6rem; }
  .lang-btn .lang-cur, .lang-btn .lang-chev { display: none; }
  .lang-btn::after { font-size: 0.85rem; font-weight: 800; content: "ع"; }
  html[data-lang="en"] .lang-btn::after { content: "EN"; }
  html[data-lang="fr"] .lang-btn::after { content: "FR"; }
  .lang-list { inset-inline-start: auto; inset-inline-end: 0; }
  .site-nav { order: 3; }
  html.js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
  .nav-toggle .nav-ico-close { display: none; }
  .site-header.nav-open .nav-toggle .nav-ico-open { display: none; }
  .site-header.nav-open .nav-toggle .nav-ico-close { display: block; }
  html.js .site-nav { display: none; }
  html.js .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; overflow: visible; gap: 0;
    margin-top: 0.5rem; padding-block: 0.25rem 0.5rem; border-top: 1px solid var(--line);
  }
  html.js .site-header.nav-open .site-nav a { min-height: 50px; border-bottom: 1px solid #eef1f6; font-size: 1.05rem; }
  html.js .site-header.nav-open .nav-note { display: block; margin: 0.6rem 0 0.2rem; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
  #content, :target, [id][tabindex="-1"] { scroll-margin-top: 5rem; }
}
@media (max-width: 359px) {
  .brand img { height: 30px; }
  .header-tools .btn { padding-inline: 0.55rem; font-size: 0.85rem; }
}

/* APK checksums (filled by deploy.sh, refreshed from /dl/SHA256SUMS by site.js) */
.sha, .sha-note { color: var(--muted); }
.sha { margin-top: 10px; }
.sha code { display: block; direction: ltr; unicode-bidi: isolate; text-align: start; word-break: break-all; font-size: 0.8rem; color: var(--ink); line-height: 1.4; }
.sha-note { margin-top: 18px; }
