/* RT Translate — «الإصدار الفاخر» (editorial edition)
   Paper, ink and one crimson. Mirza (Arabic display) · Noto Naskh Arabic (Arabic text) · Zain (UI)
   Cormorant Garamond (Latin display, numerals) · EB Garamond (Latin text) · DM Mono (folios, references).
   No cards, pills, bands or icon grids — rules, numbered chapters, clauses, dot leaders, plates, footnotes. */

:root {
  --paper: #f4efe6; --paper-2: #ece5d9; --paper-3: #e2d8c7; --sheet: #fbf8f2;
  --ink: #17110f; --ink-2: #3d332e; --ink-3: #75685f;
  --rule: rgba(23, 17, 15, .16); --rule-2: rgba(23, 17, 15, .32);
  --crimson: #8e1522; --crimson-deep: #5e0c14; --gold: #a5834b; --ok: #2f5d3a; --wa: #1d8f4e;
  --f-display: "Mirza", "Noto Naskh Arabic", serif;
  --f-text: "Noto Naskh Arabic", "Mirza", serif;
  --f-ui: "Zain", "Noto Naskh Arabic", system-ui, sans-serif;
  /* Latin stacks end with the Arabic faces: an Arabic name left without lang="ar" never falls back to a system font */
  --f-latin: "Cormorant Garamond", "EB Garamond", "Noto Naskh Arabic", "Times New Roman", serif;
  --f-latin-text: "EB Garamond", "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --m: clamp(16px, 3.9vw, 56px);
  --gap: clamp(14px, 1.7vw, 24px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --rail-h: 0px;
  color-scheme: light;
}
html[lang="fr"], html[lang="en"] { --f-display: "Cormorant Garamond", "EB Garamond", "Mirza", serif; --f-text: "EB Garamond", "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 18px; line-height: 1.9;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-bottom: var(--rail-h);
}
html[lang="fr"] body, html[lang="en"] body { font-size: 19px; line-height: 1.7; }
main, .mast, .colophon, .front { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; }
p { margin: 0 0 1em; }
/* Arabic inside a French/English page (and Latin inside an Arabic one) keeps its own faces: the font variables are
   redefined on the element that carries the language, so every rule written with var(--f-text)/var(--f-display) follows */
[lang="ar"] { --f-display: "Mirza", "Noto Naskh Arabic", serif; --f-text: "Noto Naskh Arabic", "Mirza", serif; font-family: var(--f-text); }
[lang="fr"], [lang="en"] { font-family: var(--f-latin); }
:not(html)[lang="fr"], :not(html)[lang="en"] { --f-display: "Cormorant Garamond", "EB Garamond", "Mirza", serif; --f-text: "EB Garamond", "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif; }
html[lang="fr"] [lang="fr"], html[lang="en"] [lang="en"] { font-family: inherit; }
bdi, .nb, .num { unicode-bidi: isolate; white-space: nowrap; }
.num { font-family: var(--f-latin); font-feature-settings: "lnum"; letter-spacing: .02em; }
.mono, .ref { font-family: var(--f-mono); letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; font-family: var(--f-ui); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.rule-double { height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------------------------------------------------------------- atoms */
.arr { display: inline-block; font-family: var(--f-latin); transition: transform .45s var(--ease); }
.btn-ink {
  display: inline-flex; align-items: center; gap: .75em; background: var(--crimson); color: #fbf6ef;
  font: 500 17px/1 var(--f-ui); padding: 14px 22px 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--crimson); transition: background .35s var(--ease), border-color .35s;
}
.btn-ink:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }
html[dir="rtl"] a:hover > .arr, html[dir="rtl"] button:hover > .arr { transform: translateX(-6px); }
html[dir="ltr"] a:hover > .arr, html[dir="ltr"] button:hover > .arr { transform: translateX(6px); }
.btn-lg { font-size: 19px; padding: 18px 28px 19px; }
.btn-line { display: inline-flex; align-items: center; gap: .7em; font: 500 17px/1 var(--f-ui); padding: 13px 20px 14px; border: 1px solid var(--ink); text-decoration: none; transition: background .3s, color .3s; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ink[disabled], .btn-ink.is-busy, .btn-line.is-busy { opacity: .55; pointer-events: none; }
.lnk {
  font: 500 17px/1.4 var(--f-ui); text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--crimson), var(--crimson)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease), color .3s;
}
.lnk:hover { color: var(--crimson); background-size: 0 1px; }
.dots { flex: 1 1 auto; min-width: 1.5em; border-bottom: 1px dotted var(--rule-2); transform: translateY(-.32em); margin-inline: .6em; }
.plate { font-family: var(--f-ui); font-weight: 700; color: var(--crimson); margin-inline-end: .35em; }
.frame { overflow: hidden; background: var(--paper-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 3 / 4; }
figure { margin: 0; }
figcaption { font: 400 15px/1.55 var(--f-ui); color: var(--ink-3); margin-top: 12px; }

/* ---------------------------------------------------------------- chapter grammar */
.ch-label { font: 400 16px/1 var(--f-ui); color: var(--ink-2); margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.ch-n { font: 500 15px/1 var(--f-mono); color: var(--crimson); letter-spacing: .08em; padding-inline-end: 12px; border-inline-end: 1px solid var(--rule-2); }
.ch-title { font: 600 clamp(52px, 7.4vw, 118px)/1.1 var(--f-display); margin: 0; letter-spacing: 0; }
html[lang="fr"] .ch-title, html[lang="en"] .ch-title { font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.ch-lead { font: 400 clamp(17px, 1.3vw, 20px)/1.95 var(--f-text); color: var(--ink-2); margin: 0; max-width: 34em; }
html[lang="fr"] .ch-lead, html[lang="en"] .ch-lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.65; }
.ch-fr { font: italic 400 clamp(20px, 1.7vw, 26px)/1.25 var(--f-latin); color: var(--ink-3); margin: 14px 0 0; }
html[dir="rtl"] .ch-fr { text-align: left; }
html[dir="ltr"] .ch-fr { text-align: right; }
.ch-fr [lang="ar"] { font: 500 .95em/1.3 var(--f-display); font-style: normal; }
.ch-fr i { color: var(--crimson); font-style: normal; padding-inline: .3em; }
.chapter { padding-top: clamp(80px, 11vw, 170px); }
.ch-head { display: block; }
.ch-head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; border-top: 1px solid var(--ink); padding-top: 24px; }
.ch-head-split > div { grid-column: 1 / span 7; }
.ch-head-split .ch-lead { grid-column: 8 / span 5; padding-bottom: 10px; }
.clause-ord, .cl-ord { font: 400 15px/1 var(--f-ui); color: var(--crimson); }
html[lang="fr"] .cl-ord, html[lang="en"] .cl-ord { font: 500 18px/1 var(--f-latin); letter-spacing: .06em; }
.notes { margin-top: clamp(30px, 4vw, 54px); padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 6px; max-width: 980px; }
.notes p, .notes-inline { font: 400 14.5px/1.75 var(--f-ui); color: var(--ink-3); margin: 0; }
.notes sup, .notes-inline sup, sup a { color: var(--crimson); text-decoration: none; font: 500 12px/1 var(--f-mono); margin-inline-end: 3px; }
.notes-inline { max-width: 980px; margin-top: 14px; }
.leaders { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--rule); }
.leaders li { display: flex; align-items: baseline; padding: 9px 0 8px; border-bottom: 1px solid var(--rule); font: 400 17px/1.45 var(--f-text); transition: color .3s; }
.leaders .ld-a { flex: none; max-width: 62%; }
.leaders .ld-b { color: var(--ink-3); white-space: nowrap; transition: color .3s; text-align: end; }
.leaders .ld-b[lang="fr"], .leaders .ld-b[lang="en"] { font: italic 400 17px/1.3 var(--f-latin); }
.leaders .ld-b[lang="ar"] { font: 400 16px/1.4 var(--f-text); }
.leaders li:hover, .leaders li:hover .ld-b { color: var(--crimson); }

/* ---------------------------------------------------------------- masthead */
.mast-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 42px; border-bottom: 1px solid var(--rule); font: 400 15px/1 var(--f-ui); color: var(--ink-2); }
.mast-top p { margin: 0; }
.mast-ref { font: italic 400 16px/1 var(--f-latin); color: var(--ink-3); white-space: nowrap; }
.mast-ref [lang="ar"] { font: 500 15px/1 var(--f-display); font-style: normal; }
.mast-ref i { color: var(--crimson); font-style: normal; padding-inline: .4em; }
.langs { display: flex; justify-content: flex-end; gap: 18px; }
.langs a { text-decoration: none; color: var(--ink-3); font-size: 15px; transition: color .3s; font-family: var(--f-ui); }
.langs a[lang="fr"], .langs a[lang="en"] { font-family: var(--f-latin); font-size: 16px; }
.langs a[aria-current], .langs a:hover { color: var(--ink); }
.langs a[aria-current] { box-shadow: 0 1px 0 var(--crimson); }
.mast-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 54px; height: auto; }
.brand-txt { display: flex; flex-direction: column; gap: 6px; }
.brand-name { font: 600 27px/1 var(--f-display); white-space: nowrap; }
html[lang="ar"] .brand-name { font-family: "Mirza", serif; }
.brand-sub { font: 500 11px/1 var(--f-ui); letter-spacing: .34em; color: var(--crimson); }
.sections { display: flex; justify-content: center; gap: clamp(16px, 2vw, 32px); font: 400 17px/1 var(--f-ui); }
.sections a { text-decoration: none; padding: 8px 0; white-space: nowrap; background: linear-gradient(var(--crimson), var(--crimson)) 100% 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
html[dir="ltr"] .sections a { background-position: 0 100%; }
.sections a:hover, .sections a[aria-current] { background-size: 100% 1px; }
.sections a[aria-current] { color: var(--crimson); }
.mast-act { display: flex; align-items: center; gap: 22px; }
.toc-btn { display: inline-flex; align-items: center; gap: 10px; font: 500 17px/1 var(--f-ui); padding: 10px 0; }
.toc-ico { display: grid; gap: 6px; width: 24px; }
.toc-ico i { display: block; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.toc-ico i:last-child { width: 62%; justify-self: end; }
.toc-btn:hover .toc-ico i:last-child { transform: scaleX(1.6); }

/* ---------------------------------------------------------------- running head */
.runhead { position: fixed; inset: 0 0 auto 0; z-index: 60; background: rgba(244, 239, 230, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule); transform: translateY(-101%); transition: transform .55s var(--ease); }
.runhead.is-shown { transform: none; }
.runhead-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.rh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--f-display); }
.rh-brand img { width: 34px; }
.rh-folio { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 400 16px/1 var(--f-ui); white-space: nowrap; }
.rh-num { font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .1em; }
.rh-act { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.rh-order { font: 500 16px/1 var(--f-ui); text-decoration: none; color: var(--crimson); box-shadow: 0 1px 0 var(--crimson); padding-bottom: 3px; }
.rh-toc { font: 500 16px/1 var(--f-ui); }
.rh-progress i { display: block; height: 1px; background: var(--crimson); transform: scaleX(0); }
html[dir="rtl"] .rh-progress i { transform-origin: right; }
html[dir="ltr"] .rh-progress i { transform-origin: left; }

/* ---------------------------------------------------------------- front page / page head */
.front { padding-top: clamp(26px, 3.4vw, 50px); }
.front-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.front-main { grid-column: 1 / span 7; padding-top: 6px; }
.pagehead:not(.has-fig) .front-main { grid-column: 1 / span 10; }
.front-margin { grid-column: 8 / span 1; justify-self: center; align-self: stretch; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg);
  font: italic 400 19px/1 var(--f-latin); color: var(--ink-3); letter-spacing: .02em; border-inline-start: 1px solid var(--rule); padding-inline-start: 16px; text-align: center; white-space: nowrap; }
.front-margin i { color: var(--crimson); font-style: normal; padding-block: .6em; }
.front-fig { grid-column: 9 / span 4; }
.front-fig .frame-tall { aspect-ratio: 3 / 3.85; max-height: calc(100vh - 230px); min-height: 420px; width: 100%; }
.kicker { display: flex; align-items: center; gap: 14px; font: 400 17px/1 var(--f-ui); color: var(--ink-2); margin: 0 0 clamp(14px, 2vw, 26px); flex-wrap: wrap; }
.kicker i { color: var(--crimson); font-style: normal; }
.kicker-rule { width: 46px; height: 1px; background: var(--crimson); }
.kicker-long { display: contents; }
.h1 { font: 600 clamp(62px, 10.4vw, 156px)/1.13 var(--f-display); margin: 0; letter-spacing: 0; }
html[lang="fr"] .h1, html[lang="en"] .h1 { font-weight: 500; line-height: 1; letter-spacing: -.015em; font-size: clamp(60px, 9.6vw, 150px); }
.h1-page { font-size: clamp(54px, 8vw, 126px); }
html[lang="fr"] .h1-page, html[lang="en"] .h1-page { font-size: clamp(52px, 7.4vw, 118px); }
.h1 em, .ch-title em { font-style: normal; color: var(--crimson); }
.h1 .w { display: inline-block; }
.js .h1 .w { animation: wordIn 1.25s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .14s); }
@keyframes wordIn { from { clip-path: inset(0 0 100% 0); opacity: 0; } 40% { opacity: 1; } to { clip-path: inset(-30% -8% -40% -8%); opacity: 1; } }
.deck { font: 400 clamp(18px, 1.45vw, 22px)/1.9 var(--f-text); color: var(--ink-2); margin: clamp(16px, 2vw, 28px) 0 0; max-width: 33em; padding-top: clamp(16px, 2vw, 26px); border-top: 1px solid var(--rule); }
html[lang="fr"] .deck, html[lang="en"] .deck { line-height: 1.6; font-size: clamp(19px, 1.5vw, 23px); }
.front-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: clamp(20px, 2.4vw, 34px); }
.contact-line { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.cl-k { font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.cl-v { font: 500 23px/1 var(--f-latin); transition: color .3s; }
.contact-line:hover .cl-v { color: var(--crimson); }
.inpage { margin-top: clamp(44px, 6vw, 84px); border-top: 1px solid var(--ink); }
.inpage-h { font: 400 15px/1 var(--f-ui); color: var(--ink-3); margin: 14px 0 0; }
.inpage ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.inpage li { border-inline-start: 1px solid var(--rule); }
.inpage li:first-child { border-inline-start: 0; }
.inpage a { display: grid; gap: 6px; padding: 18px 18px 22px; text-decoration: none; height: 100%; transition: background .4s var(--ease); }
.inpage li:first-child a { padding-inline-start: 0; }
.inpage a:hover { background: var(--paper-2); }
.ip-n { font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .1em; }
.ip-t { font: 600 25px/1.3 var(--f-display); }
html[lang="fr"] .ip-t, html[lang="en"] .ip-t { font-weight: 600; font-size: 26px; line-height: 1.15; }
.ip-d { font: 400 15px/1.55 var(--f-ui); color: var(--ink-3); }

/* ---------------------------------------------------------------- colophon */
.colophon { margin-top: clamp(90px, 11vw, 170px); padding-bottom: 100px; } /* the last line clears the floating WhatsApp button */
.colo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 44px 0 40px; align-items: start; }
.colo-brand { grid-column: 1 / span 2; }
.colo-brand img { width: 128px; }
.colo-id { grid-column: 3 / span 5; font: 400 16px/1.8 var(--f-ui); color: var(--ink-2); }
.colo-id > p { margin: 0 0 10px; }
.colo-name { font: 600 40px/1.2 var(--f-display) !important; color: var(--ink) !important; margin-bottom: 14px !important; }
.colo-contact { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.colo-contact div { border-top: 1px solid var(--rule); padding-top: 10px; }
.colo-contact dt { font: 400 13px/1 var(--f-ui); color: var(--ink-3); margin-bottom: 6px; }
.colo-contact dd { margin: 0; font: 500 16px/1.5 var(--f-ui); }
.colo-contact dd a { text-decoration: none; }
.colo-contact dd a .num { font-size: 21px; }
.colo-contact .mail { font-size: 15px; overflow-wrap: anywhere; }
.colo-contact .colo-hours-row { grid-column: 1 / -1; }
/* opening hours: one period per line, days at the start, the LTR-isolated time range at the end (layout.hours_html) */
.colo-hours { display: grid; max-width: 34em; }
.hr-l { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 16px; padding: 3px 0; }
.hr-l + .hr-l { border-top: 1px dotted var(--rule-2); }
.hr-t { white-space: nowrap; }
.hr-t bdi { font: 500 18px/1.4 var(--f-latin); font-feature-settings: "lnum"; letter-spacing: .02em; }
.colo-index { grid-column: 9 / span 4; display: grid; border-top: 1px solid var(--rule); }
.colo-index a { display: flex; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 400 17px/1.3 var(--f-ui); transition: color .3s; }
.colo-index .n { font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.colo-index a:hover { color: var(--crimson); }
.colo-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; border-top: 1px solid var(--rule); padding-top: 16px; font: 400 14px/1.5 var(--f-ui); color: var(--ink-3); }
.colo-base p { margin: 0; }
.colo-base a { text-decoration: none; }
.colo-links { display: flex; gap: 18px; }
.colo-links a:hover { color: var(--crimson); }
.ms-credit { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.ms-credit img { width: 54px; height: auto; mix-blend-mode: multiply; }
/* tablet: identity and contact take the full width beside the seal, the index runs below in two columns */
@media (min-width: 761px) and (max-width: 1180px) {
  .colo-id { grid-column: 3 / span 10; }
  .colo-index { grid-column: 3 / span 10; margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-content: start; }
}

/* ---------------------------------------------------------------- table of contents overlay */
.toc { position: fixed; inset: 0; z-index: 120; background: var(--paper); overflow-y: auto; }
.toc.is-open .toc-in { animation: tocIn .7s var(--ease) both; }
@keyframes tocIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.toc-top { display: flex; justify-content: space-between; align-items: center; height: 92px; border-bottom: 5px double var(--ink); }
.toc-h { font: 400 17px/1 var(--f-ui); color: var(--ink-3); margin: 0; }
.toc-close { font: 500 17px/1 var(--f-ui); display: flex; align-items: center; gap: 10px; }
.toc-close span { font: 300 32px/1 var(--f-latin); }
.toc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 40px 0 60px; }
.toc-list { grid-column: 1 / span 8; list-style: none; margin: 0; padding: 0; }
.toc-list a { display: flex; align-items: baseline; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.toc-list a[aria-current] .tl-t { color: var(--crimson); }
.tl-t { font: 600 clamp(36px, 4.4vw, 66px)/1.35 var(--f-display); transition: color .3s, transform .5s var(--ease); }
html[lang="fr"] .tl-t, html[lang="en"] .tl-t { font-weight: 500; line-height: 1.2; }
.tl-n { font: 400 14px/1 var(--f-mono); color: var(--ink-3); }
html[dir="rtl"] .toc-list a:hover .tl-t { color: var(--crimson); transform: translateX(-10px); }
html[dir="ltr"] .toc-list a:hover .tl-t { color: var(--crimson); transform: translateX(10px); }
.toc-side { grid-column: 10 / span 3; display: grid; gap: 24px; align-content: start; }
.toc-frame { aspect-ratio: 3 / 4; }
.toc-img { transition: opacity .35s; }
.toc-act { display: grid; gap: 14px; justify-items: start; }
.langs-toc { justify-content: flex-start; }

/* ---------------------------------------------------------------- phone action rail */
.rail { display: none; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 18px; background: rgba(23, 17, 15, .45); }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100svh - 36px); overflow-y: auto; background: var(--sheet); border: 1px solid var(--rule);
  padding: clamp(26px, 4vw, 48px); box-shadow: 0 40px 90px -40px rgba(23, 17, 15, .6); animation: tocIn .5s var(--ease) both; }
/* the inner frame is four 1px backgrounds attached to the scrolled content (local): it runs the full height of a long
   form instead of stopping at the visible card, as an absolutely placed ::before did */
.modal-card { background-color: var(--sheet); background-attachment: local; background-repeat: no-repeat;
  background-image: linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-size: calc(100% - 18px) 1px, calc(100% - 18px) 1px, 1px calc(100% - 18px), 1px calc(100% - 18px);
  background-position: 9px 9px, 9px calc(100% - 9px), 9px 9px, calc(100% - 9px) 9px; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 14px; z-index: 2; font: 300 34px/1 var(--f-latin); width: 44px; height: 44px; }
.modal h2 { font: 600 clamp(32px, 3.4vw, 46px)/1.2 var(--f-display); margin: 0 0 10px; }
.modal .deck { border-top: 0; padding-top: 0; margin-top: 0; font-size: 17px; }

/* ---------------------------------------------------------------- forms (shared) */
.f { display: grid; gap: 6px; margin: 0 0 22px; }
.f-l { font: 500 15px/1.3 var(--f-ui); color: var(--ink-2); }
.f-h { font: 400 13.5px/1.5 var(--f-ui); color: var(--ink-3); }
.in { width: 100%; min-height: 48px; padding: 10px 2px 8px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent;
  font: 400 19px/1.5 var(--f-text); color: var(--ink); outline: none; transition: border-color .3s, background .3s; }
html[lang="fr"] .in, html[lang="en"] .in { font-family: var(--f-latin-text); }
textarea.in { min-height: 110px; resize: vertical; border: 1px solid var(--rule-2); padding: 12px 14px; background: var(--sheet); }
select.in { -webkit-appearance: none; appearance: none; padding-inline-end: 26px;
  background: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%) no-repeat, linear-gradient(135deg, var(--ink-3) 50%, transparent 50%) no-repeat;
  background-size: 6px 6px, 6px 6px; }
html[dir="rtl"] select.in { background-position: 6px 55%, 12px 55%; }
html[dir="ltr"] select.in { background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; }
.in:focus { border-color: var(--crimson); background-color: rgba(142, 21, 34, .03); }
.in[dir="ltr"] { text-align: left; font-family: var(--f-latin); font-size: 21px; }
.is-bad .in { border-color: var(--crimson); }
.err { font: 500 14px/1.4 var(--f-ui); color: var(--crimson); }
.err:empty { display: none; }
.chk { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; cursor: pointer; font: 400 16px/1.6 var(--f-ui); color: var(--ink-2); flex-wrap: wrap; }
.chk input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--crimson); flex: none; }
.chk > span { flex: 1; }
.chk a { color: var(--crimson); }
.chk .err { flex-basis: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 16px 11px; font: 500 16px/1 var(--f-ui); color: var(--ink-2); transition: background .3s, color .3s; border-inline-start: 1px solid var(--rule); }
.seg label:first-child span { border-inline-start: 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: -2px; }
.form-msg { font: 500 16px/1.5 var(--f-ui); color: var(--crimson); margin: 14px 0 0; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--ok); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 60px) clamp(20px, 4.2vw, 66px); box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(60, 30, 20, .35); }
.sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
/* confirmation slip after a successful submission (order, booking, message, review) */
.slip { position: relative; }
.slip h2 { font: 600 clamp(34px, 3.6vw, 52px)/1.2 var(--f-display); margin: 0 0 12px; }
.slip .ref-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 22px 0; padding: 16px 0; border-block: 1px solid var(--rule); }
.slip .ref-line span { font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.slip .ref-line b { font: 500 30px/1 var(--f-mono); letter-spacing: .06em; color: var(--crimson); direction: ltr; unicode-bidi: isolate; }
.slip .ref-line button { font: 500 15px/1 var(--f-ui); color: var(--crimson); text-decoration: underline; text-underline-offset: 4px; }
.slip-act { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.slip-stamp { position: absolute; top: -10px; inset-inline-end: 0; width: 120px; color: var(--crimson); opacity: .4; transform: rotate(-14deg); animation: stampIn 1s var(--ease) both; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-4deg) scale(1.35); } 55% { opacity: .55; transform: rotate(-14deg) scale(.96); } 100% { opacity: .4; transform: rotate(-14deg) scale(1); } }

/* ---------------------------------------------------------------- reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .ch-title[data-reveal] { clip-path: inset(0 0 100% 0); transform: translateY(.25em); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease), opacity .2s; opacity: 1; }
.js .ch-title[data-reveal].is-in { clip-path: inset(-20% -5% -30% -5%); transform: none; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1180px) {
  .sections { display: none; }
  .mast-main { grid-template-columns: 1fr auto; }
  .inpage ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inpage li:nth-child(3n + 1) { border-inline-start: 0; }
  .inpage li { border-top: 1px solid var(--rule); }
  .inpage li:nth-child(3n + 1) a { padding-inline-start: 0; }
}
@media (max-width: 1100px) {
  .mast-top { grid-template-columns: 1fr auto; }
  .mast-ref { display: none; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  :root { --rail-h: 58px; }
  body { font-size: 17px; }
  html[lang="fr"] body, html[lang="en"] body { font-size: 18px; }
  .mast-top { height: 38px; font-size: 13px; }
  .langs { gap: 12px; }
  .langs a { font-size: 13px; }
  .langs a[lang="fr"], .langs a[lang="en"] { font-size: 14px; }
  .mast-main { height: 70px; gap: 12px; }
  .brand img { width: 40px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 9px; letter-spacing: .3em; }
  .mast-act .btn-ink { display: none; }
  .toc-btn { font-size: 16px; }
  .runhead-in { grid-template-columns: auto 1fr auto; gap: 12px; height: 52px; }
  .rh-brand span { display: none; }
  .rh-brand img { width: 30px; }
  .rh-folio { justify-content: center; font-size: 15px; overflow: hidden; }
  .rh-title { overflow: hidden; text-overflow: ellipsis; }
  .rh-order { display: none; }
  .front-grid { grid-template-columns: 1fr; }
  .front-main, .front-fig, .pagehead:not(.has-fig) .front-main { grid-column: 1; }
  .front-margin { display: none; }
  .h1 { font-size: clamp(54px, 16.6vw, 84px); line-height: 1.16; }
  html[lang="fr"] .h1, html[lang="en"] .h1 { font-size: clamp(52px, 15vw, 80px); line-height: 1.02; }
  .h1-page { font-size: clamp(46px, 13vw, 70px); }
  html[lang="fr"] .h1-page, html[lang="en"] .h1-page { font-size: clamp(44px, 12.6vw, 66px); }
  .kicker { font-size: 14px; gap: 10px; }
  .kicker-long { display: none; }
  .kicker-rule { width: 26px; }
  .deck { font-size: 18px; }
  .front-act { gap: 18px 26px; }
  .front-act .btn-lg { width: 100%; justify-content: space-between; }
  .front-fig { margin-top: 34px; }
  .front-fig .frame-tall { aspect-ratio: 4 / 4.4; max-height: none; min-height: 0; }
  .inpage ol { grid-template-columns: 1fr; }
  .inpage li, .inpage li:nth-child(3n + 1) { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .inpage li:first-child { border-top: 0; }
  .inpage a, .inpage li:first-child a, .inpage li:nth-child(3n + 1) a { padding: 14px 0; grid-template-columns: 38px 1fr; column-gap: 8px; }
  .ip-n { grid-row: span 2; padding-top: 6px; }
  .ip-t { font-size: 22px; }
  .ch-title { font-size: clamp(44px, 12vw, 64px); }
  .ch-head-split { grid-template-columns: 1fr; }
  .ch-head-split > div, .ch-head-split .ch-lead { grid-column: 1; }
  .ch-head-split .ch-lead { margin-top: 18px; }
  html[dir="rtl"] .ch-fr { text-align: right; }
  html[dir="ltr"] .ch-fr { text-align: left; }
  .row2 { grid-template-columns: 1fr; }
  .colo-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .colo-brand, .colo-id, .colo-index { grid-column: 1; }
  .colo-brand img { width: 96px; }
  .colo-name { font-size: 32px !important; }
  .colo-contact { grid-template-columns: 1fr; }
  .colo-base { flex-direction: column; align-items: flex-start; }
  .toc-top { height: 70px; }
  .toc-grid { grid-template-columns: 1fr; padding-top: 18px; }
  .toc-list, .toc-side { grid-column: 1; }
  .toc-side { margin-top: 30px; }
  .toc-frame { display: none; }
  .tl-t { font-size: 34px; }
  .rail { display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 70; height: calc(var(--rail-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--ink); }
  .rail a { display: grid; place-items: center; text-decoration: none; font: 500 16px/1 var(--f-ui); border-inline-start: 1px solid var(--rule); }
  .rail a:first-child { border-inline-start: 0; }
  .rail .rail-order { background: var(--crimson); color: #fbf6ef; }
  .sheet { padding: 28px 20px; }
  .sheet::before { inset: 6px; }
  .slip .ref-line b { font-size: 24px; }
  .slip-stamp { width: 84px; top: -4px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .ch-title[data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
@media print { .runhead, .rail, .toc, .mast-act { display: none !important; } }

/* ---------------------------------------------------------------- floating WhatsApp (bottom-left on every page, owner's request) */
.wa-float { position: fixed; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 17, 15, .22), 0 1px 3px rgba(23, 17, 15, .18); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; opacity: 0; animation: wa-ring 3.6s var(--ease) 2s infinite; pointer-events: none; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px rgba(23, 17, 15, .26), 0 2px 4px rgba(23, 17, 15, .18); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .55; } 45%, 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } .wa-float { transition: none; } }
@media (max-width: 760px) { .wa-float { left: 14px; bottom: calc(var(--rail-h) + 14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; } .wa-float svg { width: 28px; height: 28px; } }
@media print { .wa-float { display: none !important; } }

/* menu button: icon only (owner's request: no «الفهرس» word) */
.toc-btn { width: 44px; height: 44px; justify-content: center; padding: 0; }
.toc-btn .toc-ico { width: 26px; gap: 6px; }
.rh-toc { display: inline-grid; place-items: center; width: 40px; height: 40px; }
.rh-toc .toc-ico { width: 22px; gap: 5px; }
.rh-toc .toc-ico i { background: var(--ink); }

/* ---------------------------------------------------------------- masthead with the shop and the basket (integration, 30 Oct 2026)
   Seven sections + «طلب ترجمة» (→ store) + «السلة n» + menu. FR/EN brand on two lines so the row fits at 1440;
   the sections move into the menu below 1360 px in every language. */
.mast-main { gap: clamp(20px, 1.8vw, 28px); }
.sections { gap: clamp(14px, 1.45vw, 26px); font-size: 16px; }
html[lang="ar"] .sections { font-size: 17px; }
.mast-act { gap: 18px; }
.mast-act .btn-ink { padding: 13px 18px 14px; font-size: 16px; }
html[lang="ar"] .mast-act .btn-ink { font-size: 17px; }
.mast .cart-btn { font-size: 17px; }
.brand-br { display: none; }
html[lang="fr"] .brand-br, html[lang="en"] .brand-br { display: inline; }
html[lang="fr"] .brand-name, html[lang="en"] .brand-name { font-size: 25px; line-height: 1.02; }
html[lang="fr"] .brand-txt, html[lang="en"] .brand-txt { gap: 7px; }
.rh-cart { font-size: 15.5px; padding: 8px 0; }
.rh-cart .cart-n { font-size: 12.5px; }
@media (max-width: 1359px) {
  .sections { display: none; }
  .mast-main { grid-template-columns: 1fr auto; }
}
@media (max-width: 900px) {
  .mast-act .btn-ink { padding: 11px 14px 12px; font-size: 15px; }
  .mast-act { gap: 14px; }
}
@media (max-width: 760px) {
  .mast .cart-btn { font-size: 16px; gap: 6px; }
  .mast-act { gap: 10px; }
  .brand { gap: 10px; }
  html[lang="fr"] .brand-name, html[lang="en"] .brand-name { font-size: 20px; }
  html[lang="fr"] .brand-txt, html[lang="en"] .brand-txt { gap: 5px; }
  .rh-act { gap: 12px; }
  .mast-place .mp-c { display: none; }
  .mast-place { white-space: nowrap; }
  /* French rail: «Demander une traduction» on one line */
  html[lang="fr"] .rail { grid-template-columns: 1.65fr 1fr 1fr; }
  html[lang="fr"] .rail .rail-order { font-size: 15px; padding-inline: 6px; white-space: nowrap; }
  /* the WhatsApp float keeps its place: the shop bar lifts it (the basket's send row leaves it a gutter, 25-store.css) */
  body.has-st-bar .wa-float { bottom: calc(var(--rail-h) + 52px + 12px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- payment method — shown on track.html only once the order is accepted (office, 30 Oct 2026) */
.pay { margin: 0; font: inherit; line-height: 1.7; }
.pay-rip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.pay-rk { font: 500 13px/1.4 var(--f-ui); letter-spacing: .02em; color: var(--ink-3, #6b5f58); }
.pay .rip { font: 500 15px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.pay-copy { font: 500 13px/1 var(--f-ui); color: var(--crimson); padding: 6px 0; background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.pay-copy[data-done] { color: var(--ink-3, #6b5f58); }
@media (max-width: 760px) { .pay .rip { font-size: 14px; letter-spacing: .02em; } }

/* animated logo (arrow orbiting the sphere, office request 31 Oct 2026); static file under prefers-reduced-motion */
.brand picture, .rh-brand picture, .colo-brand picture { display: contents; }

/* RT Translate — «سلة الطلبات» (every page): the «قسيمة الطلب» slip, the basket drawer and the masthead hook.
   A slip of paper with perforated rules; lines carry a code, a document, languages, a number, urgency and a note,
   never an amount. Drawer slides in from the inline end (the side of the masthead actions). */

/* ---------------------------------------------------------------- masthead / rail hook (placed by the integrator) */
.cart-btn { display: inline-flex; align-items: baseline; gap: 8px; font: 500 17px/1 var(--f-ui); padding: 10px 0; white-space: nowrap; color: var(--ink);
  background: linear-gradient(var(--crimson), var(--crimson)) 100% 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
html[dir="ltr"] .cart-btn { background-position: 0 100%; }
.cart-btn:hover, .cart-btn[aria-expanded="true"] { background-size: 100% 1px; }
.cart-n { font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--crimson); unicode-bidi: isolate; direction: ltr; }
.cart-n[data-n="0"], [data-cart-count][data-n="0"] { color: var(--ink-3); }

/* ---------------------------------------------------------------- slip */
.cslip { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: 22px 26px 18px;
  box-shadow: 0 1px 0 var(--rule), 0 26px 50px -42px rgba(60, 30, 20, .45); }
.cslip-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; padding-bottom: 16px; }
.cslip-t { margin: 0; font: 600 26px/1.25 var(--f-display); }
html[lang="fr"] .cslip-t, html[lang="en"] .cslip-t { font-weight: 500; font-size: 28px; line-height: 1.1; }
.cslip-ref { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.cslip-ref span { font: 400 13.5px/1 var(--f-ui); color: var(--ink-3); }
.cslip-ref b { font: 500 15px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); unicode-bidi: isolate; }
.cslip.is-sealed .cslip-ref b { color: var(--crimson); }
/* perforated rule with a notch at each edge */
.cslip-perf { position: relative; height: 0; border-top: 1px dashed var(--rule-2); margin-inline: -26px; }
.cslip-perf::before, .cslip-perf::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); }
.cslip-perf::before { inset-inline-start: -11px; }
.cslip-perf::after { inset-inline-end: -11px; }
html[dir="ltr"] .cslip-perf::before, html[dir="rtl"] .cslip-perf::after { clip-path: inset(0 0 0 50%); }
html[dir="rtl"] .cslip-perf::before, html[dir="ltr"] .cslip-perf::after { clip-path: inset(0 50% 0 0); }
.cslip-lines { list-style: none; margin: 0; padding: 4px 0; }
.cslip-li { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 14px 0 13px; border-bottom: 1px solid var(--rule); }
.cslip-li:last-child { border-bottom: 0; }
.cslip-n { font: 400 12px/2.1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; direction: ltr; text-align: start; }
.cslip-body { min-width: 0; }
.cslip-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cslip-code { font: 500 12.5px/1 var(--f-mono); letter-spacing: .06em; color: var(--crimson); unicode-bidi: isolate; }
.cslip-nm { font: 600 18px/1.5 var(--f-text); overflow-wrap: anywhere; }
html[lang="fr"] .cslip-nm, html[lang="en"] .cslip-nm { font-weight: 500; font-size: 19px; line-height: 1.35; }
.cslip-alt { display: block; margin-top: 2px; font: italic 400 15px/1.45 var(--f-latin); color: var(--ink-3); }
.cslip-alt [lang="ar"] { font: 400 14.5px/1.6 var(--f-text); font-style: normal; }
.cslip-alt i { display: inline-block; unicode-bidi: isolate; }
.cslip-alt b { font-weight: 400; color: var(--rule-2); padding-inline: 7px; }
html[dir="rtl"] .cslip-n { text-align: right; }
.cslip-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; font: 400 14.5px/1.6 var(--f-ui); color: var(--ink-2); }
.cslip-sep { font-weight: 400; color: var(--ink-3); padding-inline: 6px; }
.cslip-meta bdi { font-family: var(--f-latin); font-size: 1.12em; font-variant-numeric: lining-nums; }
.cslip-u { color: var(--crimson); font-weight: 700; }
.cslip-note { margin: 4px 0 0; font: 400 14px/1.6 var(--f-ui); color: var(--ink-3); overflow-wrap: anywhere; }
.cslip-note span { color: var(--ink-2); margin-inline-end: 4px; }
.cslip-err { margin: 6px 0 0; font: 500 14px/1.5 var(--f-ui); color: var(--crimson); }
.cslip-li.is-bad { box-shadow: inset 0 -1px 0 var(--crimson); }
.cslip-li.is-bad .cslip-code { color: var(--crimson); }
.cslip-b { font: 500 14.5px/1.3 var(--f-ui); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; padding: 6px 0; transition: color .3s; }
.cslip-b:hover { color: var(--crimson); text-decoration-color: var(--crimson); }
.cslip-rm { align-self: start; padding-top: 2px; }
.cslip-ctl { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 10px; }
.cslip-qty { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid var(--rule-2); direction: ltr; }
.cslip-qty button { width: 36px; font: 400 21px/1 var(--f-latin); color: var(--ink-2); transition: background .25s, color .25s; }
.cslip-qty button:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.cslip-qty button[disabled] { opacity: .35; cursor: default; }
.cslip-qty .in { font-variant-numeric: lining-nums; width: 46px; min-height: 0; padding: 0; border: 0; border-inline: 1px solid var(--rule); text-align: center; font: 500 18px/1 var(--f-latin); }
.cslip-sum { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.cslip-sum bdi { font: 500 15px/1 var(--f-mono); color: var(--ink); letter-spacing: .05em; }
.cslip-sum .dots { margin-inline: .4em; }
.cslip-compact { padding: 18px 20px 14px; }
.cslip-compact .cslip-perf { margin-inline: -20px; }
.cslip-compact .cslip-t { font-size: 22px; }
html[lang="fr"] .cslip-compact .cslip-t, html[lang="en"] .cslip-compact .cslip-t { font-size: 24px; }
.cslip-compact .cslip-nm { font-size: 16.5px; }
html[lang="fr"] .cslip-compact .cslip-nm, html[lang="en"] .cslip-compact .cslip-nm { font-size: 18px; }
.cslip-compact .cslip-li { padding: 11px 0 10px; }
.cslip-compact .cslip-meta { font-size: 13.5px; }

/* ---------------------------------------------------------------- empty basket (drawer, shop aside) */
.cart-empty-t { margin: 0 0 8px; font: 600 23px/1.45 var(--f-display); }
html[lang="fr"] .cart-empty-t, html[lang="en"] .cart-empty-t { font-weight: 500; font-size: 25px; line-height: 1.25; }
.cart-empty-p { margin: 0; font: 400 16px/1.8 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .cart-empty-p, html[lang="en"] .cart-empty-p { line-height: 1.6; }

/* ---------------------------------------------------------------- drawer */
html.cart-lock { overflow: hidden; }
.cart-dw { position: fixed; inset: 0; z-index: 125; }
.cart-dw-back { position: absolute; inset: 0; background: rgba(23, 17, 15, .45); opacity: 0; transition: opacity .4s var(--ease); }
.cart-dw-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(520px, 100%); display: flex; flex-direction: column; outline: none;
  background: var(--paper); border-inline-start: 1px solid var(--ink); box-shadow: 0 0 90px -30px rgba(23, 17, 15, .6);
  transform: translateX(var(--dw-x, 104%)); transition: transform .5s var(--ease); }
html[dir="rtl"] .cart-dw-panel { --dw-x: -104%; }
.cart-dw.is-open .cart-dw-back { opacity: 1; }
.cart-dw.is-open .cart-dw-panel { transform: none; }
.cart-dw-h { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 28px 16px; border-bottom: 5px double var(--ink); }
.cart-dw-k { margin: 0 0 8px; font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.cart-dw-h h2 { font: 600 36px/1.2 var(--f-display); }
html[lang="fr"] .cart-dw-h h2, html[lang="en"] .cart-dw-h h2 { font-weight: 500; font-size: 40px; line-height: 1; }
.cart-dw-x { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1 var(--f-ui); }
.cart-dw-x span { font: 300 30px/1 var(--f-latin); }
.cart-dw-b { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; }
.cart-dw-f { flex: none; display: grid; gap: 14px; justify-items: start; padding: 18px 28px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); background: var(--paper); }
.cart-dw-f .btn-ink { width: 100%; justify-content: space-between; white-space: normal; line-height: 1.3; }
.cart-dw-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
@media (max-width: 760px) {
  .cart-dw-h { padding: 18px 18px 12px; }
  .cart-dw-h h2 { font-size: 30px; }
  .cart-dw-b { padding: 18px 16px 22px; }
  .cart-dw-f { padding-inline: 16px; }
  .cslip { padding: 18px 16px 14px; }
  .cslip-perf, .cslip-compact .cslip-perf { margin-inline: -16px; }
  .cslip-compact { padding: 16px 16px 12px; }
  .cslip-li { grid-template-columns: 1.9em minmax(0, 1fr) auto; column-gap: 8px; }
  .cslip-ctl { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cart-dw-panel, .cart-dw-back { transition: none; } }
@media print { .cart-dw { display: none !important; } }

/* ================================================================ HOME */

/* ---------- «طبعة الليل» — the cover: blurred footage under an ink veil, paper type ---------- */
.pg-index { --nx-top: 139px; --nx-blur: 9px; --nx-paper: #f4efe6; --nx-dim: rgba(244, 239, 230, .84); --nx-rule: rgba(244, 239, 230, .26); }
.nx { position: relative; isolation: isolate; z-index: 0; display: flex; flex-direction: column; min-height: max(100svh, 680px);
  padding-top: var(--nx-top); background: var(--ink); color: var(--nx-paper); overflow: hidden; }
.nx-media { position: absolute; inset: -5%; z-index: -2; filter: blur(var(--nx-blur)) saturate(.9); transform: scale(1.02); transform-origin: 50% 46%;
  animation: nxDrift 42s ease-in-out infinite alternate; }
.nx-media img, .nx-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-video { opacity: 0; transition: opacity 1.4s var(--ease); }
.nx.nx-live .nx-video { opacity: 1; }
@keyframes nxDrift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
/* ink veil: densest across the title, a little lighter above and below, then closing to the fold */
/* 2026-10-31 office request (burgundy touch on every image): the veil is a burgundy-black of the same darkness */
.nx-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 100%, rgba(122, 28, 34, .38) 0%, rgba(122, 28, 34, 0) 60%),
    linear-gradient(180deg, rgba(36, 10, 15, .74) 0%, rgba(36, 10, 15, .70) 16%, rgba(34, 10, 14, .78) 34%, rgba(34, 10, 14, .78) 52%,
    rgba(36, 10, 15, .74) 70%, rgba(36, 10, 15, .76) 86%, rgba(30, 9, 13, .88) 100%); }
/* measured on 30 frames of each encode, blurred and veiled: paper/deck text ≥ 6.5:1, the dimmed small text ≥ 5.2:1 */
.nx-in { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(22px, 4.4vh, 64px) clamp(26px, 4.4vh, 60px); }
.nx-kicker { color: var(--nx-dim); }
.nx-kicker i { color: var(--nx-dim); }
.nx-h1 { color: var(--nx-paper); font-size: clamp(58px, min(9.6vw, 15.6vh), 146px); max-width: 11.5em; }
html[lang="fr"] .nx-h1, html[lang="en"] .nx-h1 { font-size: clamp(56px, min(9.2vw, 15vh), 142px); max-width: 10.5em; }
.nx .lens-hint { color: var(--nx-dim); }
.nx .lens-switch { border-color: rgba(244, 239, 230, .4); }
.nx .lens-switch button { color: var(--nx-dim); }
.nx .lens-switch button[aria-pressed="true"] { background: var(--nx-paper); color: var(--ink); }
.nx-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: clamp(14px, 2.6vh, 34px); }
.nx-deck { grid-column: 1 / span 6; color: #ebe4d8; border-top-color: var(--nx-rule); max-width: 34em; }
.nx-act { grid-column: 8 / span 5; margin: 0; padding-top: clamp(16px, 2vw, 26px); border-top: 1px solid var(--nx-rule); display: grid; gap: 22px; justify-items: start; }
.nx-lines { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.nx .cl-k { color: var(--nx-dim); }
.nx .cl-v { color: var(--nx-paper); }
.nx .contact-line:hover .cl-v { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nx .btn-ink:focus-visible, .nx a:focus-visible, .nx button:focus-visible { outline-color: var(--nx-paper); }
/* folio line at the foot of the cover */
.nx-folio { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; padding-block: 14px 16px;
  font: 400 14px/1.4 var(--f-ui); color: var(--nx-dim); padding-left: max(var(--m), 96px); }
.nx-folio::before { content: ""; position: absolute; inset: 0 var(--m) auto; height: 1px; background: var(--nx-rule); }
.nx-folio p { margin: 0; }
.nx-f-n { font: 400 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--nx-paper); margin-inline-end: 12px; padding-inline-end: 12px; border-inline-end: 1px solid var(--nx-rule); }
.nx-f-place { text-align: center; }
.nx-f-credit { text-align: end; font-size: 13px; }
/* paper resumes: a double rule, then the index of the issue */
.nx-after { padding-top: clamp(18px, 2.2vw, 30px); }
/* the office's logo film under the cover: a white backdrop multiplied onto the page (tools/make_logo_video.py), so the
   paper and its grain show through untouched and the logo prints like ink; loops for ever (10-home.js). The feather
   sits on the video itself: a mask or opacity on the box would isolate it from the page and stop the blend. */
.nx-logo { width: min(720px, 100%); aspect-ratio: 980 / 630; margin: clamp(4px, 1.4vw, 18px) auto 0; }
.nx-logo-v { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 75% 78% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 78% at 50% 50%, #000 78%, transparent 100%); }
/* the office, under the film: two paragraphs beside five facts (rules, no boxes) */
.nx-office { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start;
  margin-top: clamp(8px, 1.6vw, 22px); padding: clamp(26px, 3.4vw, 44px) 0 clamp(10px, 1.4vw, 18px); border-top: 1px solid var(--rule); }
.of-t { font: 400 clamp(34px, 4.2vw, 56px)/1.15 var(--f-display); margin: 0 0 clamp(14px, 1.8vw, 22px); }
.of-t em { font-style: normal; color: var(--crimson); }
.of-text > p:not(.kicker):not(.of-act) { margin: 0 0 14px; color: var(--ink-2); max-width: 40em; }
.of-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 22px 0 0; }
.of-facts { margin: 0; display: grid; border-top: 2px solid var(--crimson); }
.of-facts > div { display: grid; grid-template-columns: minmax(8.5em, auto) 1fr; gap: 6px 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.of-facts dt { font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.of-facts dd { margin: 0; font: 500 17px/1.5 var(--f-ui); color: var(--ink); }
.of-facts dd > bdi:first-child { font: 500 22px/1.2 var(--f-latin); font-feature-settings: "lnum"; color: var(--crimson); letter-spacing: .02em; }
.of-facts dd small { display: block; margin-top: 4px; font: 400 13.5px/1.55 var(--f-ui); color: var(--ink-3); }
.of-facts dd a { color: inherit; text-decoration-color: var(--crimson); text-underline-offset: 3px; }
.of-hours { display: grid; }
.of-hours .hr-t bdi { font-size: 16px; }
@media (max-width: 960px) { .nx-office { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .of-facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* the masthead lies on the cover in paper colours (home only); the paper running head takes over on scroll */
.pg-index .mast { position: absolute; inset: 0 0 auto; z-index: 6; color: var(--nx-paper); }
.pg-index .mast-top { border-bottom-color: var(--nx-rule); color: var(--nx-dim); }
.pg-index .mast-ref, .pg-index .mast-ref i { color: var(--nx-dim); }
.pg-index .mast .langs a { color: var(--nx-dim); }
.pg-index .mast .langs a[aria-current], .pg-index .mast .langs a:hover { color: var(--nx-paper); }
.pg-index .mast .langs a[aria-current] { box-shadow: 0 1px 0 var(--nx-paper); }
.pg-index .mast .brand-name, .pg-index .mast .sections a { color: var(--nx-paper); }
.pg-index .mast .brand-sub { color: var(--nx-dim); }
.pg-index .mast .sections a { background-image: linear-gradient(var(--nx-paper), var(--nx-paper)); }
.pg-index .mast .toc-ico i { background: var(--nx-paper); }
.pg-index .mast .cart-btn { color: var(--nx-paper); background-image: linear-gradient(var(--nx-paper), var(--nx-paper)); }
.pg-index .mast .cart-n { color: var(--nx-dim); }
.pg-index .mast .mast-act .btn-ink { background: transparent; border-color: rgba(244, 239, 230, .55); color: var(--nx-paper); }
.pg-index .mast .mast-act .btn-ink:hover { background: var(--nx-paper); color: var(--ink); border-color: var(--nx-paper); }
.pg-index .mast .rule-double { border-color: rgba(244, 239, 230, .5); }
.pg-index .mast :focus-visible { outline-color: var(--nx-paper); }

/* ---------- translation lens on the H1: the word in another language, the footage sharp inside ---------- */
.lens-host { position: relative; }
.lens-host.lens-ready.lens-fine { cursor: none; }
.lens-layer { position: absolute; pointer-events: none; z-index: 2; background: #2a201c; clip-path: circle(0px at 50% 50%); overflow: hidden; }
.lens-sharp { position: absolute; left: 0; top: 0; display: block; }
.lens-tint { position: absolute; inset: 0; background: rgba(23, 17, 15, .36); }
.lens-ghost { position: absolute; color: rgba(244, 239, 230, .13); white-space: nowrap; }
.lens-word { position: absolute; display: flex; align-items: center; justify-content: center; font-family: var(--f-latin); font-style: italic; font-weight: 500; color: var(--nx-paper, #f4efe6); white-space: nowrap; line-height: 1; text-shadow: 0 1px 14px rgba(23, 17, 15, .55); }
.lens-word[lang="ar"] { font-family: "Mirza", serif; font-style: normal; font-weight: 600; }
.lens-ring { position: absolute; z-index: 3; pointer-events: none; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .8); box-shadow: 0 0 0 7px rgba(244, 239, 230, .06); transform: translate(-50%, -50%) scale(0); opacity: 0; }
.lens-ring::after { content: attr(data-tag); position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); padding: 0 8px; font: 400 11px/18px var(--f-mono); letter-spacing: .22em; color: var(--nx-paper, #f4efe6); }
.lens-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: clamp(12px, 1.8vw, 26px) 0 0; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.lens-switch { display: inline-flex; border: 1px solid var(--rule-2); }
.lens-switch button { font-size: 16px; padding: 3px 12px 4px; color: var(--ink-3); }
.lens-switch button[lang="ar"] { font-family: var(--f-ui); }
.lens-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 1180px) {
  .nx-deck { grid-column: 1 / span 7; }
  .nx-act { grid-column: 8 / span 5; }
}
@media (max-width: 1100px) { .nx-f-credit { grid-column: 1 / -1; text-align: start; } .nx-folio { grid-template-columns: 1fr auto; } }
@media (max-width: 760px) {
  .pg-index { --nx-top: 113px; --nx-blur: 5px; }
  .nx { min-height: calc(100svh - var(--rail-h, 58px)); }
  .nx-in { justify-content: flex-start; padding-block: 26px 30px; }
  .nx-h1 { font-size: clamp(54px, 16.6vw, 84px); }
  html[lang="fr"] .nx-h1, html[lang="en"] .nx-h1 { font-size: clamp(50px, 14.4vw, 76px); }
  .nx-row { grid-template-columns: 1fr; margin-top: 18px; }
  .nx-deck, .nx-act { grid-column: 1; }
  .nx-act { margin-top: 26px; justify-items: stretch; }
  .nx-act .btn-lg { justify-content: center; }
  /* the WhatsApp float sits bottom-left: in LTR the two lines move to the right edge so it never covers them on the first screen */
  .nx-lines { gap: 12px 28px; }
  html[dir="ltr"] .nx-lines { justify-content: flex-end; }
  .nx-folio { grid-template-columns: 1fr; gap: 6px; padding-block: 14px 18px; }
  .nx-f-place, .nx-f-credit { text-align: start; }
  .nx-folio { padding-left: var(--m); }
}
@media (prefers-reduced-motion: reduce) { .nx-media { animation: none; transform: scale(1.04); } .nx-media .nx-video { display: none; } }
@media print { .nx { background: none; color: var(--ink); } .nx-media, .nx-veil { display: none; } }

/* ---------- chapter 01: the eight areas as one index (2026-11-01; replaces the pinned horizontal spreads) ----------
   desktop 4 × 2 (rows aligned with subgrid) · tablet two columns · phone compact rows.
   Burgundy stays quiet: a light tint on the band, the numbers and their rules, a veil on the plate under hover/focus. */
.ax { --ax-gap: clamp(28px, 3.2vw, 58px); --ax-rule: rgba(142, 21, 34, .17); position: relative; margin-top: clamp(70px, 9vw, 140px); padding-block: clamp(54px, 6vw, 96px) clamp(44px, 5vw, 80px);
  background-color: rgba(142, 21, 34, .052); border-block: 1px solid rgba(142, 21, 34, .2); }
.ax .ch-head-split { border-top-color: var(--crimson); }
.ax-grid { list-style: none; margin: clamp(38px, 4.4vw, 66px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--ax-gap); row-gap: clamp(46px, 4.6vw, 74px); }
.ax-item { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; min-width: 0; }
/* column rules drawn in the middle of the gap, so the four columns keep one width */
.ax-item::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--ax-gap) / -2); width: 1px; background: var(--ax-rule); }
.ax-item:nth-child(4n + 1)::before { display: none; }
/* number + rule: the burgundy segment runs the full width under hover/focus */
.ax-n { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 300 clamp(38px, 3.1vw, 48px)/1 var(--f-latin);
  color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.01em; }
.ax-n::after { content: ""; flex: 1; height: 1px; transform: translateY(.06em);
  background: linear-gradient(var(--crimson), var(--crimson)) 0 0 / 30px 100% no-repeat, var(--rule-2); transition: background-size .8s var(--ease); }
html[dir="rtl"] .ax-n::after { background-position: 100% 0; }
/* the plate: burgundy veil under hover/focus */
.ax-fig { display: block; text-decoration: none; }
.ax-fig .frame { position: relative; display: block; aspect-ratio: 4 / 3; isolation: isolate; }
.ax-fig img { transition: transform 1.2s var(--ease); }
.ax-fig .frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--crimson); mix-blend-mode: multiply;
  opacity: 0; transition: opacity .6s var(--ease); }
.ax-t { font: 600 clamp(22px, 1.75vw, 27px)/1.45 var(--f-display); margin: 20px 0 10px; text-wrap: balance; transition: color .4s var(--ease); }
html[lang="fr"] .ax-t, html[lang="en"] .ax-t { font-weight: 600; line-height: 1.12; font-size: clamp(23px, 1.85vw, 28px); margin-top: 18px; }
.ax-docs { list-style: none; margin: 0 0 22px; padding: 0; }
.ax-docs li { position: relative; padding-inline-start: 18px; margin: 0 0 3px; font: 400 16.5px/1.65 var(--f-text); color: var(--ink-2); }
.ax-docs li::before { content: ""; position: absolute; inset-inline-start: 0; top: .86em; width: 9px; height: 1px; background: var(--crimson); }
html[lang="fr"] .ax-docs li, html[lang="en"] .ax-docs li { font-size: 17px; line-height: 1.38; margin-bottom: 6px; }
html[lang="fr"] .ax-docs li::before, html[lang="en"] .ax-docs li::before { top: .7em; }
.ax-act { align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0;
  padding-top: 16px; border-top: 1px solid var(--rule); }
.ax-view { font-size: 16.5px; }
.ax-order { display: inline-flex; align-items: center; font: 500 16px/1 var(--f-ui); color: var(--crimson); border: 1px solid var(--crimson);
  padding: 10px 20px 11px; text-decoration: none; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.ax-order:hover, .ax-order:focus-visible { background: var(--crimson); color: #fbf6ef; }
.ax-item:hover .ax-n::after, .ax-item:focus-within .ax-n::after { background-size: 100% 100%; }
.ax-item:hover .ax-fig .frame::after, .ax-item:focus-within .ax-fig .frame::after { opacity: .42; }
.ax-item:hover .ax-fig img, .ax-item:focus-within .ax-fig img { transform: scale(1.04); }
.ax-item:hover .ax-t, .ax-item:focus-within .ax-t { color: var(--crimson); }
/* foot: the link to the full schedule (no photo credits on the page — they are listed once in privacy.html) */
.ax-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 48px;
  margin-top: clamp(42px, 4.6vw, 68px); padding-top: 18px; border-top: 1px solid rgba(142, 21, 34, .3); }
@supports not (grid-template-rows: subgrid) {
  .ax-item { display: flex; flex-direction: column; }
  .ax-act { margin-top: auto; }
}
@media (max-width: 1100px) {
  .ax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(36px, 5vw, 52px); }
  .ax-item { display: grid; grid-row: auto; grid-template-rows: auto auto auto 1fr auto;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); column-gap: clamp(16px, 2.2vw, 26px);
    grid-template-areas: "n n" "fig t" "fig docs" "fig ." "fig act"; }
  .ax-item:nth-child(4n + 1)::before { display: block; }
  .ax-item:nth-child(2n + 1)::before { display: none; }
  .ax-n { grid-area: n; }
  .ax-fig { grid-area: fig; align-self: start; }
  .ax-fig .frame { aspect-ratio: 4 / 5; }
  .ax-t { grid-area: t; margin-top: 0; }
  html[lang="fr"] .ax-t, html[lang="en"] .ax-t { margin-top: 0; }
  .ax-docs { grid-area: docs; margin-bottom: 16px; }
  .ax-act { grid-area: act; gap: 10px 12px; }
  .ax-view { font-size: 16px; }
  .ax-order { padding-inline: 16px; }
}
@media (max-width: 760px) {
  .ax { padding-block: 46px 40px; }
  .ax-grid { grid-template-columns: 1fr; row-gap: 0; margin-top: 30px; border-top: 1px solid rgba(142, 21, 34, .3); }
  .ax-item { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 14px;
    grid-template-areas: "fig n" "fig t" "fig docs" "fig act"; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .ax-item::before, .ax-item:nth-child(4n + 1)::before { display: none; }
  .ax-n { font-size: 27px; gap: 10px; margin-bottom: 6px; }
  .ax-fig .frame { aspect-ratio: 1 / 1.18; }
  .ax-t { font-size: 21px; line-height: 1.4; margin-bottom: 6px; text-wrap: pretty; }
  html[lang="fr"] .ax-t, html[lang="en"] .ax-t { font-size: 22px; line-height: 1.12; margin-bottom: 8px; }
  .ax-docs { display: flex; flex-wrap: wrap; margin-bottom: 0; }
  .ax-docs li, html[lang="fr"] .ax-docs li, html[lang="en"] .ax-docs li { padding: 0; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
  .ax-docs li::before { display: none; }
  .ax-docs li:not(:last-child)::after { content: "·"; margin-inline: 7px; color: var(--crimson); }
  .ax-docs li:nth-child(3) { display: none; }
  .ax-docs li:nth-child(2)::after { content: none; }
  .ax-act { margin-top: 10px; padding-top: 0; border-top: 0; gap: 8px 12px; }
  .ax-view { font-size: 15px; }
  .ax-order { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .ax-foot { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ax-fig img, .ax-item:hover .ax-fig img, .ax-item:focus-within .ax-fig img { transform: none; transition: none; } }
@media print { .ax { background: none; border: 0; } .ax-fig .frame::after { display: none; } }

/* ---------- the translator ---------- */
.profile { padding-top: clamp(80px, 10vw, 150px); }
.profile-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); padding-top: 26px; }
.profile-label { grid-column: 1 / span 2; font: 400 16px/1.4 var(--f-ui); color: var(--ink-3); margin: 0; }
.profile-text { grid-column: 3 / span 8; font: 500 clamp(28px, 3.05vw, 46px)/1.62 var(--f-display); margin: 0; text-wrap: pretty; }
html[lang="fr"] .profile-text, html[lang="en"] .profile-text { font-weight: 500; line-height: 1.3; font-size: clamp(30px, 3.2vw, 48px); }
.profile-sig { grid-column: 3 / span 8; display: flex; align-items: baseline; gap: 18px; margin: 34px 0 0; flex-wrap: wrap; }
.sig { font: 600 34px/1 var(--f-display); color: var(--crimson); }
html[lang="fr"] .sig, html[lang="en"] .sig { font-style: italic; font-weight: 500; }
.sig-role { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }

/* ---------- chapter 02: legal framework ---------- */
.legal .ch-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; border-top: 1px solid var(--ink); padding-top: 24px; }
.legal .ch-label { grid-column: 1 / span 12; }
.legal .ch-title { grid-column: 1 / span 8; }
.legal .ch-fr { grid-column: 9 / span 4; margin: 0 0 14px; }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(36px, 4.5vw, 66px); align-items: start; }
.legal-fig { grid-column: 1 / span 4; position: sticky; top: 90px; }
.legal-fig .frame-tall { max-height: calc(100vh - 170px); }
.clauses { grid-column: 5 / span 5; }
.clause { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--rule); }
.clause:last-child { border-bottom: 0; }
.clause h3 { font: 600 clamp(28px, 2.5vw, 38px)/1.3 var(--f-display); margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
html[lang="fr"] .clause h3, html[lang="en"] .clause h3 { font-weight: 500; line-height: 1.1; }
.clause p { font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); margin: 0 0 16px; }
html[lang="fr"] .clause p, html[lang="en"] .clause p { line-height: 1.6; }
.js .clause:not(.is-active) p, .js .clause:not(.is-active) .lnk { opacity: .55; }
.js .clause:not(.is-active) h3 { color: var(--ink-3); }
.clause p, .clause h3, .clause .lnk { transition: opacity .5s var(--ease), color .5s var(--ease); }
.seals { grid-column: 10 / span 3; display: grid; gap: 40px; padding-top: 8px; position: sticky; top: 90px; }
.seal { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 18px; }
.seal-disc { position: relative; width: 116px; aspect-ratio: 1; border-radius: 50%; padding: 6px; border: 1px solid var(--rule); transition: transform .8s var(--ease), border-color .6s; background: #fbf8f2; }
.seal-disc::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid transparent; transition: border-color .6s; }
.seal-disc img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) sepia(.25) contrast(.8) brightness(1.08); opacity: .62; transition: filter .9s var(--ease), opacity .9s var(--ease); }
.seal figcaption { margin: 0; font: 600 20px/1.35 var(--f-display); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
html[lang="fr"] .seal figcaption, html[lang="en"] .seal figcaption { font-weight: 600; font-size: 21px; line-height: 1.15; }
.seal figcaption .cl-ord { font-size: 13px; }
.seal small { font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.seal.is-active .seal-disc { transform: scale(1.14); border-color: var(--gold); }
.seal.is-active .seal-disc::before { border-color: rgba(165, 131, 75, .45); }
.seal.is-active img { filter: none; opacity: 1; }

/* ---------- chapter 03: national-company logos on two endless, ordered rows ---------- */
.marq { margin-top: clamp(30px, 4vw, 54px); border-block: 1px solid var(--ink); display: grid; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-row { overflow: hidden; }
.mq-row + .mq-row { border-top: 1px solid var(--rule); }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-b .mq-track { animation-direction: reverse; animation-duration: 82s; }
html[dir="rtl"] .mq-track { animation-name: mq-rtl; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.marq:hover .mq-track, .marq:focus-within .mq-track { animation-play-state: paused; }
.mq-logo { flex: none; display: grid; place-items: center; width: clamp(150px, 13vw, 210px); height: clamp(96px, 8.4vw, 128px); padding: 22px 26px;
  border-inline-start: 1px solid var(--rule); outline-offset: -4px; }
.mq-logo img { max-width: clamp(96px, 9vw, 150px); max-height: clamp(44px, 4vw, 64px); width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(.92); opacity: .5;
  transition: filter .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.mq-logo:hover img, .mq-logo:focus-visible img, .mq-logo.is-lit img { filter: none; opacity: 1; transform: scale(1.08); }
.field-tag { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 0; min-height: 30px; }
.ft-a { font: 600 26px/1 var(--f-display); }
.ft-b { font: italic 400 20px/1 var(--f-latin); color: var(--ink-3); }
.ft-b[lang="ar"] { font: 500 21px/1 var(--f-display); font-style: normal; }
.field-tag.is-swap .ft-a, .field-tag.is-swap .ft-b { animation: tagIn .6s var(--ease); }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- chapter 04: every testimonial on an endless ribbon ---------- */
.vstrip { margin-top: clamp(50px, 6vw, 90px); border-block: 1px solid var(--ink); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.vs-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; width: max-content; animation: mq 190s linear infinite; }
html[dir="rtl"] .vs-track { animation-name: mq-rtl; }
.vstrip:hover .vs-track, .vstrip:focus-within .vs-track { animation-play-state: paused; }
.vs-item { flex: none; width: clamp(290px, 25vw, 400px); padding: 26px 30px 24px; border-inline-start: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.vs-n { margin: 0; font: 400 12px/1 var(--f-mono); color: var(--crimson); letter-spacing: .1em; }
.vs-q { margin: 0; position: relative; padding-inline-start: 26px; flex: 1; }
.vs-q::before { content: "«"; position: absolute; inset-inline-start: -2px; top: -.18em; font: 400 44px/1 var(--f-display); color: var(--crimson); }
.vs-q.is-latin::before { content: "“"; font-family: var(--f-latin); }
.vs-o, .vs-t { margin: 0; font: 500 21px/1.7 var(--f-display); text-wrap: pretty; }
.vs-o[lang="ar"], .vs-t[lang="ar"] { font-family: "Mirza", serif; }
.vs-o[lang="fr"], .vs-o[lang="en"], .vs-t[lang="fr"], .vs-t[lang="en"] { font: italic 400 21px/1.45 var(--f-latin); }
.vs-item.is-tr .vs-o { display: none; }
.vs-item.is-tr .vs-t { display: block !important; animation: tagIn .5s var(--ease); }
.vs-who { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.vs-who b { font: 600 20px/1 var(--f-display); color: var(--ink); }
.vs-who b.latin { font: 500 20px/1 var(--f-latin); }
.vs-tog { align-self: flex-start; font: 500 14.5px/1.3 var(--f-ui); color: var(--crimson); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.vs-tog .b, .vs-item.is-tr .vs-tog .a { display: none; }
.vs-item.is-tr .vs-tog .b { display: inline; }
.vq-foot { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  .mq-track, .vs-track { animation: none; }
  .mq-row, .vstrip { overflow-x: auto; }
}

/* ---------- chapter 04: testimonials ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); padding-top: 24px; }
.voices-main { grid-column: 1 / span 8; grid-row: 1; display: flex; flex-direction: column; }
.voices-fig { grid-column: 9 / span 4; grid-row: 1; padding-top: 6px; }
.voices-fig .frame-tall { aspect-ratio: 3 / 3.4; }
.voices .ch-title { font-size: clamp(52px, 6.6vw, 104px); }
.vq { margin: clamp(34px, 4.2vw, 60px) 0 0; position: relative; min-height: 12.5em; }
.vq-q { margin: 0; position: relative; padding-inline-start: clamp(26px, 3.2vw, 46px); }
.vq-q::before { content: "«"; position: absolute; inset-inline-start: -6px; top: -.12em; font: 400 clamp(56px, 6vw, 92px)/1 var(--f-display); color: var(--crimson); }
.vq-q.is-latin::before { content: "“"; font-family: var(--f-latin); }
.vq-text { margin: 0; font: 500 clamp(26px, 2.5vw, 38px)/1.68 var(--f-display); text-wrap: pretty; transition: opacity .38s var(--ease), transform .38s var(--ease), filter .38s; }
.vq-text[lang="ar"] { font-family: "Mirza", serif; }
.vq-text.is-out { opacity: 0; transform: translateY(10px); filter: blur(3px); }
.vq-text[lang="fr"], .vq-text[lang="en"] { font: italic 400 clamp(26px, 2.45vw, 38px)/1.45 var(--f-latin); }
.vq-meta { margin-top: 24px; padding-inline-start: clamp(26px, 3.2vw, 46px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.vq-name { font: 600 24px/1 var(--f-display); color: var(--ink); }
.vq-name.latin { font: 500 24px/1 var(--f-latin); }
.vq-orig::before { content: "—"; margin-inline-end: 12px; color: var(--crimson); }
.vq-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); }
.vq-tabs { display: inline-flex; border: 1px solid var(--rule-2); }
.vq-tabs button { font: 400 16px/1 var(--f-ui); padding: 9px 16px 10px; color: var(--ink-2); transition: background .3s, color .3s; }
.vq-tabs button[lang="fr"], .vq-tabs button[lang="en"] { font-family: var(--f-latin); font-size: 17px; }
.vq-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.vq-nav { display: flex; align-items: center; gap: 18px; }
.vq-nav button { width: 44px; height: 44px; border: 1px solid var(--rule-2); font: 400 20px/1 var(--f-latin); transition: background .3s, color .3s; }
.vq-nav button:hover { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.vq-count { font: 400 14px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .08em; direction: ltr; }
.vq-count b { color: var(--crimson); font-weight: 400; font-size: 18px; }
.vq-index { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); }
.vq-index button { width: 100%; padding: 10px 0 4px; font: 400 12px/1 var(--f-mono); color: var(--ink-3); border-top: 1px solid var(--rule); transition: color .3s, border-color .3s; }
.vq-index button:hover { color: var(--ink); border-top-color: var(--ink); }
.vq-index button[aria-current="true"] { color: var(--crimson); border-top: 2px solid var(--crimson); padding-top: 9px; }
.voices .notes-inline { margin-top: 18px; }

/* ---------- chapter 05: the order letter ---------- */
.order-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(34px, 4.5vw, 64px); align-items: start; }
.letter { grid-column: 1 / span 8; position: relative; background: var(--sheet); border: 1px solid var(--rule);
  padding: clamp(26px, 4vw, 64px) clamp(22px, 4.4vw, 70px) clamp(26px, 3.6vw, 52px); box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(60, 30, 20, .35); }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
.letter-to { font: 600 clamp(24px, 2vw, 30px)/1.5 var(--f-display); margin: 0 0 26px; }
.letter-to span { font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.letter-body { font: 400 clamp(23px, 2.15vw, 33px)/2.15 var(--f-text); margin: 0; color: var(--ink); }
html[lang="fr"] .letter-body, html[lang="en"] .letter-body { font-family: var(--f-latin-text); line-height: 1.9; font-size: clamp(22px, 2vw, 30px); }
.blank { position: relative; display: inline-block; vertical-align: baseline; }
.blank select { -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: transparent; font: 600 1em/1.3 var(--f-display); color: var(--crimson);
  margin: 0 .1em; cursor: pointer; border-bottom: 1px dashed var(--crimson); max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--crimson) 50%), linear-gradient(135deg, var(--crimson) 50%, transparent 50%);
  background-size: .32em .32em, .32em .32em; background-repeat: no-repeat; }
html[dir="rtl"] .blank select { padding: 0 0 2px 1.1em; background-position: 0 58%, .32em 58%; }
html[dir="ltr"] .blank select { padding: 0 1.1em 2px 0; background-position: calc(100% - .32em) 58%, 100% 58%; font-style: italic; }
.blank select:hover, .blank select:focus { background-color: rgba(142, 21, 34, .05); outline: none; border-bottom-style: solid; }
.letter-sign { font: 400 20px/1.6 var(--f-text); color: var(--ink-2); margin: 22px 0 0; }
.letter-stamp { position: absolute; top: clamp(22px, 3vw, 46px); width: clamp(96px, 9vw, 136px); color: var(--crimson); opacity: .34; transform: rotate(-14deg); pointer-events: none; font-family: var(--f-latin); direction: ltr; }
html[dir="rtl"] .letter-stamp { left: clamp(26px, 4vw, 64px); }
html[dir="ltr"] .letter-stamp { right: clamp(26px, 4vw, 64px); }
.letter-stamp .st-mono { font-family: var(--f-latin); font-weight: 600; font-style: italic; }
.letter.is-ready .letter-stamp { animation: stampIn 1s var(--ease) both; }
.letter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); }
.letter-abroad { font: 400 15px/1.6 var(--f-ui); color: var(--ink-3); margin: 18px 0 0; }
.imprint { grid-column: 9 / span 4; padding-top: 6px; }
.imprint dl { margin: 0; border-top: 1px solid var(--ink); }
.imprint dl > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.imprint dt { font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.imprint dd { margin: 0; }
.imprint dd a { font: 500 30px/1.1 var(--f-latin); text-decoration: none; transition: color .3s; }
.imprint dd a:hover { color: var(--crimson); }
.imprint dd a.mail { font-size: 19px; word-break: break-all; }
.imprint .addr { font: 600 22px/1.5 var(--f-display); }
.imprint-links { list-style: none; margin: 26px 0 0; padding: 0; }
.imprint-links a { display: flex; align-items: baseline; padding: 10px 0; text-decoration: none; font: 500 17px/1.3 var(--f-ui); transition: color .3s; }
.imprint-links a:hover { color: var(--crimson); }

/* ---------- home: tablet ---------- */
@media (max-width: 1100px) {
  .seals { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr); position: static; margin-top: 30px; }
  .clauses { grid-column: 5 / span 8; }
}
/* ---------- home: phone ---------- */
@media (max-width: 760px) {
  .leaders li { flex-wrap: wrap; font-size: 16px; }
  .leaders .ld-a { max-width: none; }
  .leaders .ld-b { font-size: 15px !important; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-label, .profile-text, .profile-sig { grid-column: 1; }
  .profile-label { margin-bottom: 14px; }
  .profile-text { font-size: 27px; line-height: 1.65; }
  .profile-sig { flex-direction: column; gap: 8px; }
  .legal .ch-head { grid-template-columns: 1fr; }
  .legal .ch-title, .legal .ch-fr { grid-column: 1; }
  .legal .ch-fr { margin-top: 12px; font-size: 18px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-fig { grid-column: 1; position: static; margin-bottom: 34px; }
  .legal-fig .frame-tall { aspect-ratio: 4 / 3.4; max-height: none; }
  .clauses { grid-column: 1; }
  .js .clause:not(.is-active) p, .js .clause:not(.is-active) .lnk { opacity: 1; }
  .js .clause:not(.is-active) h3 { color: var(--ink); }
  .seals { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .seal { grid-template-columns: 74px 1fr; }
  .seal-disc { width: 74px; }
  .seal.is-active .seal-disc { transform: scale(1.06); }
  .seal-disc img { filter: none; opacity: 1; }
  .mq-logo { width: 128px; height: 82px; padding: 16px 18px; }
  .mq-logo img { max-width: 92px; max-height: 42px; }
  .mq-track { animation-duration: 55s; }
  .ft-a { font-size: 22px; } .ft-b { font-size: 17px; }
  .vs-item { width: 82vw; padding: 22px 22px 20px; }
  .vs-o, .vs-t { font-size: 20px; }
  .voices-grid { grid-template-columns: 1fr; }
  .voices-main, .voices-fig { grid-column: 1; grid-row: auto; }
  .voices-fig { order: 2; margin-top: 40px; }
  .voices-fig .frame-tall { aspect-ratio: 4 / 3; }
  .vq { min-height: 0; }
  .vq-text { font-size: 24px; }
  .vq-text[lang="fr"], .vq-text[lang="en"] { font-size: 25px; }
  .vq-bar { flex-direction: column; align-items: stretch; }
  .vq-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vq-tabs button { padding: 11px 6px; font-size: 15px; }
  .vq-nav { justify-content: space-between; }
  .vq-index { grid-template-columns: repeat(10, minmax(0, 1fr)); row-gap: 6px; }
  .order-grid { grid-template-columns: 1fr; }
  .letter, .imprint { grid-column: 1; }
  .letter { padding: 30px 20px 26px; }
  .letter::before { inset: 6px; }
  .letter-body { font-size: 21px; line-height: 2.25; }
  .letter-stamp { top: auto; bottom: 92px; width: 92px; }
  html[dir="rtl"] .letter-stamp { left: 18px; }
  html[dir="ltr"] .letter-stamp { right: 18px; }
  .letter-foot .btn-lg { width: 100%; justify-content: space-between; white-space: normal; }
  .imprint { margin-top: 40px; }
  .imprint dd a { font-size: 27px; }
}

/* ================================================================ SERVICES — «خدماتنا» (folio 02), prefix .sv-
   1 Nov 2026 reorganisation: short head + one search field, a family browser (tabs + one panel), the office's own list,
   see also. Burgundy (--crimson) is the accent: active tab, hover tints, shaded headings and notes. */
.pg-services { --sv-t1: rgba(142, 21, 34, .045); --sv-t2: rgba(142, 21, 34, .085); --sv-t3: rgba(142, 21, 34, .14); --sv-line: rgba(142, 21, 34, .32); --sv-on: #fbf6ef; }

/* ---------------------------------------------------------------- 1. page head + search */
.sv-head-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.sv-head-m { grid-column: 1 / span 6; padding-top: 6px; padding-inline-end: clamp(0px, 1.6vw, 24px); }
.sv-h1 { font-size: clamp(46px, 5.6vw, 88px); }
html[lang="fr"] .sv-h1, html[lang="en"] .sv-h1 { font-size: clamp(44px, 5.2vw, 82px); }
.sv-deck { max-width: 30em; }

.sv-q { grid-column: 7 / span 6; margin-top: 10px; background: var(--sv-t1); border-top: 2px solid var(--crimson);
  padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2.2vw, 34px) clamp(18px, 2vw, 28px); }
.no-js .sv-q { display: none; }
.no-js .sv-head-m { grid-column: 1 / span 9; }
.sv-q-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0; }
.sv-q-l { font: 600 clamp(25px, 2.1vw, 32px)/1.3 var(--f-display); color: var(--ink); }
html[lang="fr"] .sv-q-l, html[lang="en"] .sv-q-l { font-weight: 500; line-height: 1.1; font-size: clamp(27px, 2.2vw, 34px); }
.sv-q-n { font: 400 15px/1 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.sv-q-n bdi { font: 500 17px/1 var(--f-mono); color: var(--crimson); }
.sv-q-field { position: relative; display: block; margin-top: 10px; }
.sv-q .in { font: 400 23px/1.4 var(--f-text); min-height: 60px; padding-block: 10px; padding-inline: 2px 46px; border-bottom: 1px solid var(--ink);
  -webkit-appearance: none; appearance: none; background: transparent; }
html[lang="fr"] .sv-q .in, html[lang="en"] .sv-q .in { font: 400 24px/1.4 var(--f-latin); }
.sv-q .in:focus { border-bottom-color: var(--crimson); box-shadow: 0 1px 0 var(--crimson); background: rgba(251, 248, 242, .55); }
.sv-q .in::placeholder { color: var(--ink-3); opacity: .8; font-size: .72em; }
.sv-q .in::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sv-q-x { position: absolute; inset-inline-end: 2px; bottom: 11px; width: 38px; height: 38px; font: 300 30px/1 var(--f-latin); color: var(--ink-3); transition: color .25s, background-color .25s; }
.sv-q-x:hover { color: var(--crimson); background: var(--sv-t2); }
.sv-q-lead { margin: 12px 0 0; font: 400 15.5px/1.75 var(--f-ui); color: var(--ink-3); max-width: 46em; }
.sv-q.is-active .sv-q-lead { display: none; }
.sv-q-ex { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 12px 0 0; font: 400 16px/1.6 var(--f-ui); }
.sv-q-exl { color: var(--ink-3); margin-inline-end: -6px; }
.sv-q-ex button { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sv-line); text-underline-offset: 4px; padding: 2px 0; transition: color .25s, text-decoration-color .25s; }
.sv-q-ex button:hover { color: var(--crimson); text-decoration-color: var(--crimson); }
.sv-q-out { margin-top: 16px; }
.sv-res { border-top: 1px solid var(--ink); }
.sv-res .sv-doc { grid-template-columns: minmax(0, 1fr) auto; }
.sv-res .sv-doc-n { display: none; }
.sv-q-more { margin: 16px 0 0; }
.sv-q-more .btn-line { font-size: 16px; padding: 11px 18px 12px; }
.sv-q-none { margin: 0; padding: 16px 0 4px; font: 400 16.5px/1.7 var(--f-ui); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.sv-q-custom { margin: 12px 0 0; }
.sv-q-custom .sv-add { align-items: flex-start; }
.sv-q-custom .sv-add-b { white-space: normal; text-align: start; }

/* six translation directions, on one line */
.sv-pairs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin-top: clamp(30px, 3.4vw, 50px); padding-block: 14px 13px; border-block: 1px solid var(--rule); }
.sv-pairs-h { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 600 18px/1.3 var(--f-ui); color: var(--ink); }
.sv-pairs-c { font: italic 400 16px/1.2 var(--f-latin); color: var(--ink-3); }
.sv-pairs-c[lang="ar"] { font: 500 16px/1.3 "Mirza", "Noto Naskh Arabic", serif; font-style: normal; }
.sv-pl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; }
.sv-pl li { display: inline-flex; align-items: baseline; gap: .42em; font: 400 16.5px/1.6 var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.sv-pl { column-gap: 30px; }
.sv-to { color: var(--crimson); font: 400 .95em/1 var(--f-latin); }

/* ---------------------------------------------------------------- 2. the family browser */
.sv-br-sec { padding-top: clamp(58px, 6.4vw, 100px); }
.sv-br-sec .ch-title { font-size: clamp(38px, 4.3vw, 68px); line-height: 1.22; }
html[lang="fr"] .sv-br-sec .ch-title, html[lang="en"] .sv-br-sec .ch-title { font-size: clamp(38px, 4.4vw, 70px); line-height: 1.04; }
.sv-br { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-top: clamp(28px, 3vw, 46px); }
.sv-nav { grid-column: 1 / span 3; position: sticky; top: 82px; }
.sv-panels { grid-column: 4 / span 9; min-width: 0; padding-inline-start: clamp(14px, 2vw, 34px); border-inline-start: 1px solid var(--rule); }

/* tabs: a column of numbered entries with their counts; the chosen one in burgundy */
.sv-nav-h { margin: 0 0 12px; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.sv-tabs-w { position: relative; }
.sv-tabs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.sv-tab { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; padding: 12px 12px 11px; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink-2); position: relative; transition: background-color .25s, color .25s; }
.sv-tab-n { font: 400 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; transition: color .25s; }
.sv-tab-t { font: 500 17.5px/1.38 var(--f-ui); }
html[lang="fr"] .sv-tab-t, html[lang="en"] .sv-tab-t { font-size: 17px; line-height: 1.3; }
.sv-tab-s { display: none; }
.sv-tab-c { font: 400 12.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; transition: color .25s; }
.sv-tab:hover { background: var(--sv-t2); color: var(--crimson-deep); }
.sv-tab:hover .sv-tab-n { color: var(--crimson); }
.sv-tab.is-on { background: var(--crimson); color: var(--sv-on); }
.sv-tab.is-on .sv-tab-n, .sv-tab.is-on .sv-tab-c { color: rgba(251, 246, 239, .74); }
.sv-tab:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; z-index: 1; }
.sv-tab.is-on:focus-visible { outline-color: var(--ink); }
/* the chosen tab points to its panel */
.sv-tab.is-on::after { content: ""; position: absolute; top: 50%; inset-inline-end: -7px; width: 12px; height: 12px; background: var(--crimson); transform: translateY(-50%) rotate(45deg); }
.sv-nav-foot { margin-top: 18px; padding: 14px 16px 16px; background: var(--sv-t1); }
.sv-note { margin: 0 0 10px; font: 400 14.5px/1.7 var(--f-ui); color: var(--ink-3); }
.sv-nav-basket { font-size: 16px; }
.sv-nav-bn bdi { font: 500 14px/1 var(--f-mono); color: var(--crimson); }

/* one panel per family */
.sv-p { display: grid; grid-template-columns: minmax(140px, 230px) minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 44px); align-items: start;
  grid-template-areas: "fig head" "fig prep" "fig act" "docs docs"; }
.sv-p.is-enter { animation: svIn .45s var(--ease) both; }
@keyframes svIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sv-p:focus { outline: none; }
.sv-p:focus-visible { outline: 2px solid var(--crimson); outline-offset: 8px; }
.sv-p-fig { grid-area: fig; margin: 0; }
.sv-p-frame { aspect-ratio: 4 / 5; }
.sv-p-fig figcaption { font-size: 12.5px; line-height: 1.55; margin-top: 10px; }
/* the civil-status photograph carries a white border in the file: crop it */
#civil .sv-p-frame img { transform: scale(1.07); }
.sv-p-head { grid-area: head; }
.sv-p-k { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.sv-p-t { margin: 0; font: 600 clamp(32px, 3vw, 48px)/1.28 var(--f-display); color: var(--ink); }
html[lang="fr"] .sv-p-t, html[lang="en"] .sv-p-t { font-weight: 500; line-height: 1.06; font-size: clamp(34px, 3.1vw, 50px); }
.sv-p-o { margin: 8px 0 0; font: italic 400 19px/1.3 var(--f-latin); color: var(--ink-3); }
.sv-p-o[lang="ar"] { font: 500 20px/1.45 "Mirza", "Noto Naskh Arabic", serif; font-style: normal; }
html[dir="ltr"] .sv-p-o, html[dir="ltr"] .sv-pairs-c { text-align: left; }
html[dir="rtl"] .sv-p-o, html[dir="rtl"] .sv-pairs-c { text-align: right; }
.sv-p-s { margin: 14px 0 0; font: 400 17px/1.85 var(--f-text); color: var(--ink-2); max-width: 40em; }
html[lang="fr"] .sv-p-s, html[lang="en"] .sv-p-s { font-size: 18px; line-height: 1.55; }
.sv-p-prep { grid-area: prep; margin-top: 18px; padding: 12px 18px 13px; background: var(--sv-t1); border-inline-start: 3px solid var(--crimson); }
.sv-p-prep-h { margin: 0 0 4px; font: 700 15px/1.4 var(--f-ui); color: var(--crimson); }
.sv-p-prep-t { margin: 0; font: 400 16px/1.8 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .sv-p-prep-t, html[lang="en"] .sv-p-prep-t { font: italic 400 17.5px/1.5 var(--f-latin); }
.sv-p-act { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin: 22px 0 0; }
.sv-p-act .btn-ink { white-space: normal; line-height: 1.3; }
.sv-p-docs { grid-area: docs; margin-top: clamp(30px, 3.2vw, 44px); }
.sv-p-dh { display: flex; align-items: baseline; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 700 17px/1.3 var(--f-ui); color: var(--ink); }
.sv-p-dh .dots { margin-inline: .8em; }
.sv-p-dn bdi { font: 500 15px/1 var(--f-mono); color: var(--crimson); }
.sv-p-docs .sv-docs { columns: 2; column-gap: clamp(24px, 3vw, 52px); }
.sv-p-other { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 18px 0 0; font: 400 15.5px/1.5 var(--f-ui); color: var(--ink-3); }
.sv-p-other .lnk { font-size: 15.5px; }
/* without JavaScript: every panel, stacked, the tab list as an index */
.no-js .sv-add, .no-js .sv-note { display: none; }   /* the basket needs JavaScript */
.no-js .sv-p + .sv-p { margin-top: clamp(56px, 6vw, 90px); padding-top: clamp(32px, 3vw, 46px); border-top: 1px solid var(--ink); }

/* a document: name in the page language, the two others underneath, «أضف إلى السلة» */
.sv-docs { list-style: none; margin: 0; padding: 0; }
.sv-doc { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 11px 10px 10px; border-bottom: 1px solid var(--rule);
  break-inside: avoid; transition: background-color .3s; }
.sv-doc:hover { background: var(--sv-t1); }
.sv-doc.is-in { background: var(--sv-t2); }
.sv-doc-n { font: 400 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; align-self: baseline; padding-top: .55em; }
.sv-doc.is-in .sv-doc-n { color: var(--crimson); }
.sv-doc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-doc-t { overflow-wrap: break-word; color: var(--ink); text-wrap: pretty; }
.sv-doc-x [lang], .sv-tab-t, .sv-p-t { text-wrap: pretty; }
.sv-doc-t[lang="ar"] { font: 600 18px/1.6 "Noto Naskh Arabic", "Mirza", serif; }
.sv-doc-t[lang="fr"], .sv-doc-t[lang="en"] { font: 500 19.5px/1.3 var(--f-latin-text); }
.sv-doc-o { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; color: var(--ink-3); }
.sv-doc-x { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.sv-doc-c { flex: none; font: 400 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); opacity: .75; transform: translateY(-.1em); }
.sv-doc-o [lang="ar"] { font: 400 15px/1.6 "Noto Naskh Arabic", "Mirza", serif; }
.sv-doc-o [lang="fr"], .sv-doc-o [lang="en"] { font: italic 400 16.5px/1.35 var(--f-latin); }
.sv-doc-f { margin-top: 4px; font: 400 14px/1.3 var(--f-ui); }
.sv-doc-fl { color: var(--crimson); text-decoration: none; background: var(--sv-t2); padding: 2px 8px 3px; transition: background-color .25s, color .25s; }
.sv-doc-fl:hover { background: var(--crimson); color: var(--sv-on); }
.sv-add { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; justify-self: end; }
.sv-add-b { font: 500 14.5px/1.25 var(--f-ui); color: var(--crimson); border: 1px solid var(--sv-line); padding: 7px 12px 8px; white-space: nowrap;
  background: rgba(251, 248, 242, .55); transition: background-color .25s, color .25s, border-color .25s; }
.sv-add-b:hover { background: var(--crimson); border-color: var(--crimson); color: var(--sv-on); }
.sv-add-b:focus-visible { outline-offset: 2px; }
.sv-add-in { font: 600 13.5px/1.2 var(--f-ui); color: var(--crimson); white-space: nowrap; }
.sv-add-in bdi { font: 500 13px/1 var(--f-mono); }

/* ---------------------------------------------------------------- 3. the office's own list (catalogue.py) */
.sv-cat { padding-top: clamp(66px, 7.4vw, 116px); }
.sv-cat .ch-title { font-size: clamp(34px, 3.8vw, 60px); line-height: 1.25; }
html[lang="fr"] .sv-cat .ch-title, html[lang="en"] .sv-cat .ch-title { font-size: clamp(36px, 4vw, 62px); line-height: 1.05; }
.sv-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 44px) clamp(18px, 2vw, 34px); margin-top: clamp(30px, 3.2vw, 48px); }
.sv-cat-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding: 10px 14px 11px; background: var(--sv-t2); border-inline-start: 3px solid var(--crimson);
  font: 600 19px/1.45 var(--f-display); color: var(--crimson-deep); }
html[lang="fr"] .sv-cat-h, html[lang="en"] .sv-cat-h { font-weight: 600; font-size: 21px; line-height: 1.2; }
.sv-cat-n { flex: none; font: 500 12px/1 var(--f-mono); color: var(--crimson); letter-spacing: .06em; }
.sv-cat-l { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 8px; }
.sv-cat-l li { position: relative; padding-inline-start: 16px; font: 400 15.5px/1.75 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .sv-cat-l li, html[lang="en"] .sv-cat-l li { font-size: 17px; line-height: 1.5; }
.sv-cat-l li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 7px; height: 1px; background: var(--crimson); }
.sv-cat-l bdi { font-family: var(--f-latin-text); font-size: .95em; }

/* ---------------------------------------------------------------- 4. see also + closing sheet */
.sv-end { padding-top: clamp(70px, 8vw, 120px); }
.sv-end-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; border-top: 1px solid var(--ink); padding-top: 22px; }
.sv-sa-label { grid-column: 1 / -1; margin: 0 0 30px; font: 400 16px/1 var(--f-ui); color: var(--ink-3); }
.sv-sa-item { grid-column: span 4; padding-inline-end: clamp(10px, 2.4vw, 40px); }
.sv-sa-item + .sv-sa-item { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(14px, 1.8vw, 28px); }
.sv-sa-item h3 { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; font: 600 clamp(28px, 2.4vw, 36px)/1.3 var(--f-display); }
html[lang="fr"] .sv-sa-item h3, html[lang="en"] .sv-sa-item h3 { font-weight: 500; line-height: 1.1; }
.sv-sa-item p { margin: 0 0 20px; font: 400 17.5px/1.9 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .sv-sa-item p, html[lang="en"] .sv-sa-item p { line-height: 1.6; font-size: 18.5px; }
.sv-cta { grid-column: 9 / span 4; padding: 34px 32px 30px; }
.sv-cta h3 { margin: 0 0 12px; font: 600 30px/1.3 var(--f-display); }
html[lang="fr"] .sv-cta h3, html[lang="en"] .sv-cta h3 { font-weight: 500; line-height: 1.1; font-size: 31px; }
.sv-cta p { margin: 0 0 22px; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .sv-cta p, html[lang="en"] .sv-cta p { line-height: 1.55; font-size: 17.5px; }
.sv-cta .btn-ink { display: flex; justify-content: space-between; margin-bottom: 22px; }

/* ---------------------------------------------------------------- wide tablet */
@media (max-width: 1240px) {
  .sv-p-docs .sv-docs { columns: 1; }
  .sv-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .sv-head-m, .sv-q { grid-column: 1 / -1; }
  .sv-head-m { padding-inline-end: 0; }
  .sv-q { margin-top: 30px; }
  .sv-nav { grid-column: 1 / span 4; }
  .sv-panels { grid-column: 5 / span 8; }
  .sv-tab { padding-inline: 10px; }
  .sv-tab-t { font-size: 16.5px; }
  .sv-p { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "prep" "act" "docs" "fig"; }
  .sv-p-fig { margin-top: 36px; max-width: 420px; }
  .sv-p-frame { aspect-ratio: 16 / 10; }
  .sv-sa-item { grid-column: span 6; }
  .sv-cta { grid-column: 1 / -1; margin-top: 40px; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .sv-q { margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); margin-top: 26px; padding-block: 20px 22px; }
  .sv-q .in { font-size: 20px; min-height: 54px; }
  html[lang="fr"] .sv-q .in, html[lang="en"] .sv-q .in { font-size: 21px; }
  .sv-q .in::placeholder { font-size: .76em; }
  .sv-q-lead { font-size: 14.5px; }
  .sv-q-ex { font-size: 15.5px; }
  .sv-pairs { flex-direction: column; gap: 8px; }
  .sv-pl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; width: 100%; }
  .sv-pl li { font-size: 15.5px; }

  /* the tabs become a sticky row under the running head; short names, counts kept */
  .sv-br { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .sv-nav { display: contents; }
  .sv-nav-h { display: none; }
  .sv-tabs-w { position: sticky; top: 52px; z-index: 30; background: var(--paper); margin-inline: calc(-1 * var(--m)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
  .no-js .sv-tabs-w { position: static; }
  .sv-tabs { display: flex; overflow-x: auto; border-top: 0; padding-inline: var(--m); scroll-padding-inline: var(--m); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .sv-tabs::-webkit-scrollbar { display: none; }
  .sv-tabs li { flex: none; }
  .sv-tab { display: inline-flex; align-items: baseline; gap: 6px; padding: 12px 13px 11px; border-bottom: 0; white-space: nowrap; }
  .sv-tab-n { display: none; }
  .sv-tab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sv-tab-s { display: inline; font: 500 16.5px/1.25 var(--f-ui); }
  html[lang="fr"] .sv-tab-s, html[lang="en"] .sv-tab-s { font-size: 16px; }
  .sv-tab-c { font-size: 11px; }
  .sv-tab.is-on::after { content: none; }
  .sv-tabs-w::before, .sv-tabs-w::after { content: ""; position: absolute; top: 0; bottom: 0; width: 42px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 1; }
  .sv-tabs-w::before { inset-inline-start: 0; }
  .sv-tabs-w::after { inset-inline-end: 0; }
  html[dir="rtl"] .sv-tabs-w::before { background: linear-gradient(to left, var(--paper) 25%, rgba(244, 239, 230, 0)); }
  html[dir="rtl"] .sv-tabs-w::after { background: linear-gradient(to right, var(--paper) 25%, rgba(244, 239, 230, 0)); }
  html[dir="ltr"] .sv-tabs-w::before { background: linear-gradient(to right, var(--paper) 25%, rgba(244, 239, 230, 0)); }
  html[dir="ltr"] .sv-tabs-w::after { background: linear-gradient(to left, var(--paper) 25%, rgba(244, 239, 230, 0)); }
  .sv-tabs-w.is-s::before, .sv-tabs-w.is-e::after { opacity: 1; }
  .sv-nav-foot { margin: 14px 0 0; padding: 0; background: none; }
  .sv-note { margin: 0; font-size: 14px; }
  .sv-nav-basket { display: none; }
  .sv-panels { grid-column: 1; padding: 0; border: 0; margin-top: 22px; }
  .sv-p-t { font-size: clamp(30px, 8.6vw, 38px); }
  html[lang="fr"] .sv-p-t, html[lang="en"] .sv-p-t { font-size: clamp(32px, 9vw, 40px); }
  .sv-p-o { font-size: 17px; }
  .sv-p-o[lang="ar"] { font-size: 18px; }
  .sv-p-s { font-size: 16.5px; line-height: 1.8; }
  html[lang="fr"] .sv-p-s, html[lang="en"] .sv-p-s { font-size: 17px; }
  .sv-p { grid-template-areas: "head" "docs" "prep" "act" "fig"; }
  .sv-p-docs { margin-top: 24px; }
  .sv-p-act { flex-direction: column; align-items: stretch; gap: 16px; }
  .sv-p-act .btn-ink { justify-content: space-between; }
  .sv-p-act .lnk { align-self: flex-start; }
  .sv-p-fig { max-width: none; margin-top: 30px; }
  .sv-p-frame { aspect-ratio: 16 / 9; }
  .sv-doc { grid-template-columns: 1.7em minmax(0, 1fr) auto; column-gap: 10px; padding: 11px 2px 10px; }
  .sv-doc-t[lang="ar"] { font-size: 17px; }
  .sv-doc-t[lang="fr"], .sv-doc-t[lang="en"] { font-size: 18.5px; }
  .sv-doc-o [lang="ar"] { font-size: 14.5px; }
  .sv-doc-o [lang="fr"], .sv-doc-o [lang="en"] { font-size: 15.5px; }
  .sv-add-b { font-size: 14px; padding: 7px 10px 8px; }
  .sv-cat-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-cat-h { font-size: 19px; }
  .sv-end-grid { grid-template-columns: 1fr; }
  .sv-sa-item, .sv-sa-item + .sv-sa-item { grid-column: 1; border-inline-start: 0; padding: 0; }
  .sv-sa-item + .sv-sa-item { border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 26px; }
  .sv-cta { grid-column: 1; margin-top: 40px; padding: 28px 22px 24px; }
}
@media (max-width: 380px) {
  .sv-doc { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-doc-n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sv-p.is-enter { animation: none; } }

/* RT Translate — «متجر الخدمات» (store.html, .st-) and «سلة الطلبات وإتمام الطلب» (basket.html, .bs-).
   A schedule set like an official gazette: numbered families, DM Mono codes, the page-language name with the two
   other languages on a companion line, dot leaders to a typographic action; rules, not boxes. No prices. */

/* ================================================================ procedure + notice (store) */
.st-proc { margin-top: clamp(44px, 6vw, 84px); }
.st-proc-l { margin: 0 0 12px; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.st-proc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.st-proc-list li { padding: 20px 26px 26px; border-inline-start: 1px solid var(--rule); }
.st-proc-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.st-pr-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font: 600 25px/1.35 var(--f-display); }
html[lang="fr"] .st-pr-h, html[lang="en"] .st-pr-h { font-weight: 600; font-size: 26px; line-height: 1.2; }
.st-pr-d { margin: 0; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .st-pr-d, html[lang="en"] .st-pr-d { font-size: 17.5px; line-height: 1.6; }
.st-notice { display: flex; align-items: baseline; gap: 18px; margin: 0; padding: 16px 0 17px; border-block: 1px solid var(--rule); font: 400 17px/1.85 var(--f-text); color: var(--ink); }
html[lang="fr"] .st-notice, html[lang="en"] .st-notice { font-size: 18px; line-height: 1.55; }
.st-notice-k { flex: none; font: 700 14.5px/1.9 var(--f-ui); color: var(--crimson); }

/* ================================================================ schedule (store) */
.st .ch-head { margin-bottom: clamp(30px, 3.6vw, 52px); }
.st-tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.st-q { grid-column: 1 / span 5; margin: 0; }
.st-qh { display: flex; align-items: baseline; margin: 0 0 2px; }
.st-qn { flex: none; }
.st-qn bdi { font: 400 14px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .05em; }
.st-qn b { font-weight: 500; color: var(--crimson); }
.st-qf { position: relative; display: block; }
.st-qf .in { padding-inline-end: 42px; font-size: 20px; }
.st-qf .in::-webkit-search-cancel-button { -webkit-appearance: none; }
.st-qx { position: absolute; inset-inline-end: 0; bottom: 6px; width: 38px; height: 38px; font: 300 30px/1 var(--f-latin); color: var(--ink-3); }
.st-qx:hover { color: var(--crimson); }
.st-ix { grid-column: 7 / span 6; }
.st-ix-l { margin: 0 0 8px; }
.st-ix ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; }
.st-ix li { display: inline-flex; align-items: baseline; }
.st-ix li + li::before { content: "·"; color: var(--ink-3); padding-inline: 10px; }
.st-ix button { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 0; font: 500 17px/1.45 var(--f-ui); color: var(--ink-2);
  background: linear-gradient(var(--crimson), var(--crimson)) 100% 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
html[dir="ltr"] .st-ix button { background-position: 0 100%; }
.st-ix button:hover { color: var(--ink); }
.st-ix button[aria-pressed="true"] { color: var(--crimson); background-size: 100% 1px; }
.st-ix-n, .st-ix sup { font: 400 11px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.st-ix sup { vertical-align: baseline; }

.st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.st-main { grid-column: 1 / span 8; min-width: 0; }
.st-aside { grid-column: 9 / span 4; padding-inline-start: clamp(0px, 2vw, 34px); position: sticky; top: 84px; padding-top: clamp(34px, 4vw, 56px); min-width: 0; }
.st-colh { display: none; }

/* family */
.st-fam { padding-top: clamp(34px, 4vw, 56px); }
.st-fh { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.st-fn { grid-row: span 3; margin: 0; padding-top: 4px; font: 500 38px/1 var(--f-latin); color: var(--crimson); font-variant-numeric: lining-nums; }
.st-fhm { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; }
.st-ft { font: 600 clamp(27px, 2.3vw, 35px)/1.35 var(--f-display); }
html[lang="fr"] .st-ft, html[lang="en"] .st-ft { font-weight: 500; line-height: 1.15; font-size: clamp(29px, 2.4vw, 37px); }
.st-fo { margin: 0; font: italic 400 18px/1.3 var(--f-latin); color: var(--ink-3); }
.st-fo[lang="ar"] { font: 500 18px/1.5 var(--f-display); font-style: normal; }
.st-fs { margin: 0; max-width: 46em; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .st-fs, html[lang="en"] .st-fs { font-size: 17.5px; line-height: 1.55; }
.st-fp { margin: 0; max-width: 52em; font: 400 14.5px/1.7 var(--f-ui); color: var(--ink-3); }
.st-fp span { font-weight: 700; color: var(--crimson); margin-inline-end: 10px; }

/* entries */
.st-list { list-style: none; margin: 0; padding: 0; }
.st-row { border-bottom: 1px solid var(--rule); }
.st-line { display: flex; align-items: baseline; padding: 14px 0 13px; }
.st-code { flex: none; width: 66px; margin-inline-end: 18px; font: 400 13px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); transition: color .3s; text-align: start; }
.st-nm { flex: 0 1 auto; min-width: 0; }
.st-name { margin: 0; font: 500 20px/1.45 var(--f-text); }
html[lang="fr"] .st-name, html[lang="en"] .st-name { font-size: 21px; line-height: 1.3; }
.st-alt { margin: 3px 0 0; font: italic 400 16px/1.4 var(--f-latin); color: var(--ink-3); }
.st-alt [lang="ar"] { font: 400 15.5px/1.6 var(--f-text); font-style: normal; }
.st-alt i { display: inline-block; unicode-bidi: isolate; }
.st-alt b { font-weight: 400; color: var(--rule-2); padding-inline: 8px; }
html[dir="rtl"] .st-code, html[dir="rtl"] .st-fn { text-align: right; }
.st-alt-d { font: 400 15px/1.6 var(--f-ui); font-style: normal; max-width: 34em; }
.st-line .dots { min-width: 2em; }
.st-in { flex: none; margin-inline-end: 20px; font: 500 14.5px/1 var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.st-in bdi { font: 500 15px/1 var(--f-mono); color: var(--crimson); }
.st-add { flex: none; font-size: 15.5px; color: var(--ink-2); white-space: nowrap; }
.st-row:hover .st-add { color: var(--ink); }
.st-add[aria-expanded="true"] { color: var(--crimson); background-size: 0 1px; }
.st-row.is-in .st-code { color: var(--crimson); }
.st-row.is-open .st-line .dots { border-bottom-color: var(--crimson); }
.st-row.is-added > .st-line { animation: stAdded 1.6s var(--ease); }
@keyframes stAdded { 0% { background: rgba(142, 21, 34, .09); } 100% { background: transparent; } }
.st-fam-other .st-fh { border-bottom-style: solid; }
.st-empty { margin: 0; padding: 26px 0; font: 400 16.5px/1.8 var(--f-text); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.st-empty .lnk { margin-inline-start: 6px; }
.st-consult { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 18px; margin-top: clamp(44px, 5vw, 70px); padding-top: 18px; border-top: 1px solid var(--ink); }
.st-consult .st-fn { grid-row: auto; color: var(--ink-3); }
.st-ct { font: 600 clamp(26px, 2.2vw, 32px)/1.35 var(--f-display); }
html[lang="fr"] .st-ct, html[lang="en"] .st-ct { font-weight: 500; line-height: 1.15; }
.st-cd { margin: 8px 0 14px; max-width: 46em; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .st-cd, html[lang="en"] .st-cd { font-size: 17.5px; line-height: 1.55; }

/* configurator (store rows; basket lines) */
.st-cfgw { padding: 4px 0 24px; padding-inline-start: 84px; }
.st-cfgw.is-in { animation: tocIn .45s var(--ease) both; }
.st-cfg { padding: 18px 0 6px; padding-inline-start: 24px; border-inline-start: 2px solid var(--crimson); }
.st-cfg .f { margin: 0 0 16px; }
.st-cfg-g { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 34px; }
.st-ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: 40px; }
.st-tick { margin: 0; }
.st-tick input { margin-top: 3px; }
.st-tick.is-off { opacity: .38; cursor: not-allowed; }
.st-step { display: inline-flex; align-items: stretch; height: 42px; border: 1px solid var(--rule-2); direction: ltr; width: max-content; }
.st-step button { width: 40px; font: 400 22px/1 var(--f-latin); color: var(--ink-2); transition: background .25s, color .25s; }
.st-step button:hover { background: var(--ink); color: var(--paper); }
.st-step .in { font-variant-numeric: lining-nums; width: 52px; min-height: 0; padding: 0; border: 0; border-inline: 1px solid var(--rule); text-align: center; font: 500 19px/1 var(--f-latin); }
.st-cfg-name { max-width: 560px; }
.st-cfg-note { max-width: 620px; }
.st-cfg .in[name="note"], .st-cfg .in[name="name"] { font-size: 18px; }
.st-opt { font-weight: 400; color: var(--ink-3); }
.st-cfg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin: 2px 0 12px; }
.st-cfg .form-msg { margin: 0 0 12px; }

/* basket beside the schedule */
.st-aside-h { display: flex; align-items: baseline; margin: 0 0 14px; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.st-aside-h .lnk { font-size: 15px; flex: none; }
.st-aside [data-st-slip] { max-height: calc(100vh - 330px); overflow-y: auto; overscroll-behavior: contain; }
.st-aside .cart-empty { padding: 18px 0; border-block: 1px solid var(--rule); }
.st-say { min-height: 1.5em; margin: 10px 0 0; font: 500 14.5px/1.5 var(--f-ui); color: var(--ok); opacity: 0; transition: opacity .4s; }
.st-say.is-on { opacity: 1; }
.st-aside-act { display: grid; gap: 14px; justify-items: start; margin-top: 8px; }
.st-aside-act .btn-ink { width: 100%; justify-content: space-between; white-space: normal; line-height: 1.3; }
.st-bar { display: none; }

/* ================================================================ basket page */
.bs { margin-top: clamp(44px, 6vw, 84px); }
.js .bs:not([data-ready]) > * { visibility: hidden; }
.bs[data-state="empty"] > .bs-grid, .bs[data-state="empty"] > .bs-done,
.bs[data-state="full"] > .bs-empty, .bs[data-state="full"] > .bs-done,
.bs[data-state="done"] > .bs-empty, .bs[data-state="done"] > .bs-grid { display: none; }
.bs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.bs-slipcol { grid-column: 1 / span 5; min-width: 0; }
.bs-form { grid-column: 7 / span 6; min-width: 0; }
.bs-sh { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--ink); font: 600 clamp(28px, 2.5vw, 38px)/1.3 var(--f-display); }
html[lang="fr"] .bs-sh, html[lang="en"] .bs-sh { font-weight: 500; line-height: 1.1; }
.bs-sh .cl-ord { flex: none; }
.bs-sn { margin-inline-start: auto; font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }
.bs-slip .cslip-ctl .cslip-b + .cslip-b { margin-inline-start: -4px; }
.bs-cfgw { grid-column: 1 / -1; padding: 12px 0 4px; }
.bs-cfgw .st-cfg { padding-inline-start: 16px; }
.cslip-li.is-edit .cslip-ctl { display: none; }
.bs-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 24px; }
.bs-notice { font-size: 16px; }
/* the letter-form */
.bs-form .bs-sh { border-top: 0; padding-top: 0; font-size: clamp(26px, 2.1vw, 32px); }
.bs-lh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.bs-to { margin: 0; font: 600 22px/1.45 var(--f-display); }
html[lang="fr"] .bs-to, html[lang="en"] .bs-to { font-weight: 600; font-size: 23px; line-height: 1.25; }
.bs-to span { display: block; font: 400 15px/1.6 var(--f-ui); color: var(--ink-2); }
.bs-date { margin: 0; font: 400 15px/1.6 var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.bs-subj { grid-column: 1 / -1; margin: 8px 0 0; font: 400 16px/1.6 var(--f-ui); }
.bs-subj span { color: var(--crimson); }
.bs-sec + .bs-sec { margin-top: 34px; }
.bs-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 28px 18px 26px; text-align: center; border: 1px dashed var(--rule-2); cursor: pointer; transition: border-color .3s, background .3s; }
.bs-drop:hover, .bs-drop.is-over { border-color: var(--crimson); background: rgba(142, 21, 34, .03); }
.bs-drop:focus-within { outline: 2px solid var(--crimson); outline-offset: 3px; }
.bs-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bs-dt { font: 500 17px/1.4 var(--f-ui); }
.bs-dh { font: 400 14px/1.5 var(--f-ui); color: var(--ink-3); }
.bs-pick { margin-top: 8px; font-size: 15px; padding: 10px 16px 11px; }
.bs-reg { margin-top: 18px; }
.bs-reg-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 400 14.5px/1 var(--f-ui); color: var(--ink-3); }
.bs-reg-n { font: 400 13px/1 var(--f-mono); }
.bs-reg-n b { color: var(--crimson); font-weight: 500; }
.bs-files { list-style: none; margin: 0; padding: 0; }
.bs-files li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); font: 400 15px/1.4 var(--f-ui); }
.bs-fn { font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.bs-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-fmeta { display: flex; gap: 8px; align-items: baseline; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; }
.bs-fmeta small { display: none; }
.bs-fx { font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .06em; }
.bs-rm { font: 500 14px/1 var(--f-ui); color: var(--crimson); text-decoration: underline; text-underline-offset: 4px; }
.bs-reg-empty { margin: 10px 0 0; font: 400 14.5px/1.5 var(--f-ui); color: var(--ink-3); }
.bs-bring { margin: 18px 0 6px; }
.bs-filesf { margin: 0; }
.bs-secure { margin: 12px 0 0; font: 400 14px/1.7 var(--f-ui); color: var(--ink-3); }
.bs-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
.bs-sign { margin: 22px 0 0; font: italic 400 17px/1.6 var(--f-text); color: var(--ink-2); }
html[lang="ar"] .bs-sign { font-style: normal; }
.bs-act { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.bs-send { white-space: normal; line-height: 1.3; }
.bs-up { margin-top: 16px; display: grid; gap: 8px; }
.bs-up-t { font: 500 14px/1 var(--f-ui); color: var(--ink-2); }
.bs-up-line { display: block; height: 1px; background: var(--rule); }
.bs-up-line i { display: block; height: 1px; background: var(--crimson); transform: scaleX(0); transition: transform .3s; }
html[dir="rtl"] .bs-up-line i { transform-origin: right; }
html[dir="ltr"] .bs-up-line i { transform-origin: left; }
/* empty + done */
.bs-empty { max-width: 900px; padding-top: 18px; border-top: 1px solid var(--ink); }
.bs-empty-n { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.bs-empty-t { margin: 18px 0 12px; font: 600 clamp(32px, 3.6vw, 52px)/1.3 var(--f-display); }
html[lang="fr"] .bs-empty-t, html[lang="en"] .bs-empty-t { font-weight: 500; line-height: 1.1; }
.bs-empty-p { margin: 0; max-width: 40em; font: 400 clamp(17px, 1.3vw, 20px)/1.9 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .bs-empty-p, html[lang="en"] .bs-empty-p { line-height: 1.6; }
.bs-empty-a { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 40px; }
.bs-done { outline: none; }
.bs-done-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.bs-ok { grid-column: 1 / span 7; }
.bs-copy { grid-column: 9 / span 4; }
.bs-copy-h { margin: 0 0 12px; font: 400 14.5px/1.4 var(--f-ui); color: var(--ink-3); }

/* ================================================================ tablet */
@media (max-width: 1180px) {
  .st-aside { padding-inline-start: 0; }
  .st-q { grid-column: 1 / span 6; }
  .st-ix { grid-column: 1 / -1; margin-top: 22px; }
  .bs-slipcol { grid-column: 1 / span 6; }
  .bs-form { grid-column: 7 / span 6; }
  .bs-ok { grid-column: 1 / span 7; }
  .bs-copy { grid-column: 8 / span 5; }
}
@media (max-width: 960px) {
  .bs-slipcol, .bs-form { grid-column: 1 / -1; }
  .bs-form { margin-top: 40px; }
  .bs-ok, .bs-copy { grid-column: 1 / -1; }
  .bs-copy { margin-top: 34px; }
}

/* ================================================================ phone */
@media (max-width: 760px) {
  .st-proc-list { grid-template-columns: 1fr; }
  .st-proc-list li, .st-proc-list li:first-child { padding: 16px 0 18px; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .st-proc-list li:first-child { border-top: 0; }
  .st-pr-h { font-size: 22px; }
  .st-notice { flex-direction: column; gap: 2px; font-size: 16.5px; }
  .st-tools { grid-template-columns: 1fr; }
  .st-q, .st-ix { grid-column: 1; }
  .st-ix button { font-size: 16px; }
  .st-ix li + li::before { padding-inline: 7px; }
  .st-grid { grid-template-columns: 1fr; }
  .st-main { grid-column: 1; }
  .st-aside { display: none; }
  .st-fh { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .st-fn { font-size: 28px; grid-row: span 1; }
  .st-fs, .st-fp { grid-column: 1 / -1; }
  .st-ft { font-size: 26px; }
  .st-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline; }
  .st-code { width: auto; margin: 0; font-size: 12px; }
  .st-nm { grid-column: 2; }
  .st-name { font-size: 19px; }
  .st-line .dots { display: none; }
  .st-in { grid-column: 2; grid-row: 2; justify-self: start; margin: 0; }
  .st-add { grid-column: 2; grid-row: 2; justify-self: end; }
  .st-cfgw { padding-inline-start: 0; }
  .st-cfg { padding-inline-start: 14px; }
  .st-cfg-g { gap: 0 24px; }
  .st-consult { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .st-bar { position: fixed; inset-inline: 0; bottom: calc(var(--rail-h) + env(safe-area-inset-bottom)); z-index: 69; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch; height: 52px; background: var(--sheet); border-top: 1px solid var(--ink); box-shadow: 0 -10px 30px -24px rgba(23, 17, 15, .5); }
  .st-bar[hidden] { display: none !important; }
  .st-bar-open { display: flex; align-items: center; gap: 10px; padding-inline: 16px; font: 500 16px/1 var(--f-ui); text-align: start; }
  .st-bar-n { font: 500 14px/1 var(--f-mono); color: var(--crimson); }
  .st-bar-say { position: absolute; inset: 0 0 auto 0; transform: translateY(-100%); margin: 0; padding: 8px 16px; background: var(--ink); color: var(--paper);
    font: 500 14px/1.4 var(--f-ui); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .st-bar-say.is-on { opacity: 1; }
  .st-bar-go { display: flex; align-items: center; gap: 10px; padding-inline: 18px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 16px/1 var(--f-ui); }
  body.has-st-bar { padding-bottom: calc(var(--rail-h) + 52px); }
  .bs-g2 { grid-template-columns: 1fr; }
  .bs-lh { grid-template-columns: 1fr; }
  .bs-date { white-space: normal; }
  .bs-files li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .bs-fmeta { grid-column: 2; grid-row: 2; }
  .bs-rm { grid-row: 1 / span 2; align-self: center; }
  .bs-empty-a .btn-ink, .bs-empty-a .btn-line { width: 100%; justify-content: space-between; }
  .bs-send { width: 100%; justify-content: space-between; }
  .bs-act { padding-left: 70px; }   /* physical left: the floating WhatsApp button (bottom-left) never covers «إرسال الطلب» */
}

/* ================================================================ LEGALIZATION («التصديق», folio 03) — prefix .lg- */

/* ---------- page head: the memorial plate keeps the monument in frame ---------- */
.pg-legalization .front-fig .frame img { object-position: 49% 40%; }
.pg-legalization .inpage a { align-content: start; }
/* Arabic snippets on the French and English pages: the shared font tokens point to the Latin faces there */
html:not([lang="ar"]) .pg-legalization main [lang="ar"] { --f-text: "Noto Naskh Arabic", "Mirza", serif; --f-display: "Mirza", "Noto Naskh Arabic", serif; }

/* ---------- chapter 01 · legal basis ---------- */
.lg-basis > .ch-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; border-top: 1px solid var(--ink); padding-top: 24px; }
.lg-basis > .ch-head .ch-label { grid-column: 1 / -1; }
.lg-basis > .ch-head .ch-title { grid-column: 1 / span 9; }
.lg-basis > .ch-head .ch-fr { grid-column: 10 / span 3; margin: 0 0 14px; }
.lg-basis-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 78px); align-items: start; }
.lg-marg { grid-column: 1 / span 3; border-top: 1px solid var(--rule-2); padding-top: 16px; position: sticky; top: 92px; }
.lg-marg p { margin: 0; }
.lg-marg-l { font: 400 15px/1.3 var(--f-ui); color: var(--ink-3); }
.lg-marg-n { margin: 4px 0 6px !important; font: 300 clamp(68px, 7vw, 112px)/1 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.02em; }
.lg-marg-n .nb { font: inherit; }
.lg-marg-d { font: 500 17px/1.4 var(--f-ui); color: var(--ink); }
.lg-marg-s { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--rule); font: 400 14.5px/1.6 var(--f-ui); color: var(--ink-3); max-width: 22em; text-wrap: balance; }
.lg-text { grid-column: 4 / span 9; }
.lg-p1 { font: 500 clamp(26px, 2.5vw, 38px)/1.7 var(--f-display); margin: 0; max-width: 26em; text-wrap: pretty; }
html[lang="fr"] .lg-p1, html[lang="en"] .lg-p1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.3; font-feature-settings: "lnum"; }
.lg-p1 .nb, .lg-p1 .lg-d { font-family: var(--f-latin); font-weight: 500; font-feature-settings: "lnum"; }
.lg-p1 sup, .lg-p2 sup, .lg-p1 sup a { font-size: 12px; line-height: 0; }
.lg-p2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); padding-top: 22px; border-top: 1px solid var(--rule); }
.lg-p2 p { font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); margin: 0; }
html[lang="fr"] .lg-p2 p, html[lang="en"] .lg-p2 p { font-size: 19px; line-height: 1.6; }

/* the register of the three institutions (clauses with seals — never cards) */
.lg-reg { margin-top: clamp(64px, 8vw, 120px); }
.lg-reg-h { margin: 0; padding: 14px 0 12px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font: 400 16px/1.4 var(--f-ui); color: var(--ink-3); }
.lg-reg-h sup a { margin-inline-start: 3px; }
.lg-auths { list-style: none; margin: 0; padding: 0; }
.lg-au { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.lg-seal { grid-column: 1 / span 2; width: clamp(92px, 8vw, 118px); aspect-ratio: 1; margin-inline-start: 8px; border-radius: 50%; padding: 6px; border: 1px solid var(--rule); background: var(--sheet); position: relative; transition: border-color .7s var(--ease), transform .8s var(--ease); }
html[dir="rtl"] .lg-seal { transform-origin: 100% 50%; }
html[dir="ltr"] .lg-seal { transform-origin: 0 50%; }
.lg-seal::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid transparent; transition: border-color .7s var(--ease); }
.lg-seal img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) sepia(.25) contrast(.8) brightness(1.08); opacity: .62; transition: filter .9s var(--ease), opacity .9s var(--ease); }
.lg-au.is-on .lg-seal, .lg-au:hover .lg-seal { border-color: var(--gold); transform: scale(1.06); }
.lg-au.is-on .lg-seal::before, .lg-au:hover .lg-seal::before { border-color: rgba(165, 131, 75, .45); }
.lg-au.is-on .lg-seal img, .lg-au:hover .lg-seal img, .no-js .lg-seal img { filter: none; opacity: 1; }
.lg-au-h { grid-column: 3 / span 4; }
.lg-au-h h3 { display: flex; flex-direction: column; gap: 10px; font: 600 clamp(28px, 2.5vw, 38px)/1.25 var(--f-display); margin: 0; }
html[lang="fr"] .lg-au-h h3, html[lang="en"] .lg-au-h h3 { font-weight: 500; line-height: 1.08; }
.lg-au-o { margin: 8px 0 0; font: italic 400 19px/1.3 var(--f-latin); color: var(--ink-3); }
.lg-au-o[lang="ar"] { font: 500 20px/1.4 var(--f-display); font-style: normal; }
html[dir="rtl"] .lg-au-o, html[dir="rtl"] .lg-art-o { text-align: right; }
html[dir="ltr"] .lg-au-o, html[dir="ltr"] .lg-art-o { text-align: left; }
.lg-au-d { grid-column: 7 / span 6; margin: 0; font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); max-width: 34em; }
html[lang="fr"] .lg-au-d, html[lang="en"] .lg-au-d { font-size: 19px; line-height: 1.6; }

/* ---------- chapter 02 · the procedure as articles ---------- */
.lg-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(40px, 5vw, 70px); padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.lg-ctrl-l { margin: 0; font: 400 16px/1.3 var(--f-ui); color: var(--ink-3); }
.lg-seg span { font-size: 17px; padding: 12px 20px 13px; }
.lg-count { margin: 0; margin-inline-start: auto; font: 500 16px/1 var(--f-ui); color: var(--crimson); }
.no-js .lg-ctrl { display: none; }
.lg-arts { list-style: none; margin: 0; padding: 0; }
.lg-art { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: 36px 0 38px; border-bottom: 1px solid var(--rule); }
.js .lg-arts[data-mode="inside"] > [data-scope="abroad"], .js .lg-proc:has(.lg-arts[data-mode="inside"]) .lg-gnote { display: none; }
.lg-art-fig { grid-column: 1 / span 2; margin: 0; font: 300 clamp(70px, 7vw, 112px)/.8 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.02em; }
.lg-art-h { grid-column: 3 / span 4; }
.lg-art-no { margin: 0 0 10px; font: 500 16px/1.3 var(--f-ui); color: var(--crimson); }
html[lang="fr"] .lg-art-no, html[lang="en"] .lg-art-no { font: 500 19px/1.2 var(--f-latin); letter-spacing: .03em; font-feature-settings: "lnum"; }
.lg-art-h h3 { font: 600 clamp(28px, 2.5vw, 38px)/1.3 var(--f-display); margin: 0; }
html[lang="fr"] .lg-art-h h3, html[lang="en"] .lg-art-h h3 { font-weight: 500; line-height: 1.08; }
.lg-art-o { margin: 8px 0 0; font: italic 400 19px/1.3 var(--f-latin); color: var(--ink-3); }
.lg-art-o[lang="ar"] { font: 500 20px/1.4 var(--f-display); font-style: normal; }
.lg-art-b { grid-column: 7 / span 6; padding-top: 4px; }
.lg-art-b p { margin: 0; font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); max-width: 34em; }
html[lang="fr"] .lg-art-b p, html[lang="en"] .lg-art-b p { font-size: 19px; line-height: 1.6; }
.lg-art-b .lg-art-m { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 500 15.5px/1.3 var(--f-ui); color: var(--crimson); }
.lg-art-m::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--crimson); }
.lg-art-m sup a { margin: 0; }
.lg-art[data-scope="abroad"] .lg-art-fig { -webkit-text-stroke: 1px var(--crimson); color: transparent; }
.lg-art.is-new { animation: lgIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
.lg-art .is-flip { animation: lgFlip .7s var(--ease); }
@keyframes lgIn { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes lgFlip { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
.lg-gnote { margin-top: 18px; }

/* ---------- chapter 03 · destinations ---------- */
/* the atlas table of this chapter: css/parts/35-map.css (.at-) */

/* ---------- chapter 04 · questions ---------- */
.ch-head-split > .lg-qs-lead { grid-column: 8 / span 5; padding-bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lg-qs .ch-head-split .lg-qs-lead .ch-lead { padding: 0; margin: 0; }
.lg-qlist { margin-top: clamp(36px, 4.5vw, 64px); border-top: 1px solid var(--ink); }
.lg-q { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: 34px 0 36px; border-bottom: 1px solid var(--rule); }
.lg-q-n { grid-column: 1 / span 2; margin: 0; padding-top: 8px; font: 500 16px/1.3 var(--f-ui); color: var(--crimson); }
html[lang="fr"] .lg-q-n, html[lang="en"] .lg-q-n { font: 500 19px/1.2 var(--f-latin); letter-spacing: .03em; padding-top: 6px; font-feature-settings: "lnum"; }
.lg-q-t { grid-column: 3 / span 4; margin: 0; font: 600 clamp(25px, 2.2vw, 33px)/1.45 var(--f-display); text-wrap: pretty; }
html[lang="fr"] .lg-q-t, html[lang="en"] .lg-q-t { font-weight: 500; line-height: 1.15; font-size: clamp(27px, 2.3vw, 35px); }
.lg-q-a { grid-column: 7 / span 6; margin: 0; font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); max-width: 36em; }
html[lang="fr"] .lg-q-a, html[lang="en"] .lg-q-a { font-size: 19px; line-height: 1.6; }

/* ---------- chapter 05 · the consultation sheet ---------- */
.lg-close-top { border-top: 1px solid var(--ink); padding-top: 24px; }
.lg-sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: 18px; }
.lg-sheet-main { grid-column: 1 / span 7; }
.lg-sheet-t { font: 600 clamp(40px, 4.4vw, 68px)/1.25 var(--f-display); margin: 0 0 20px; }
html[lang="fr"] .lg-sheet-t, html[lang="en"] .lg-sheet-t { font-weight: 500; line-height: 1.05; }
.lg-sheet-t em { font-style: normal; color: var(--crimson); }
.lg-sheet-p { margin: 0; font: 400 clamp(18px, 1.4vw, 21px)/1.9 var(--f-text); color: var(--ink-2); max-width: 32em; }
html[lang="fr"] .lg-sheet-p, html[lang="en"] .lg-sheet-p { line-height: 1.6; }
.lg-sheet-act { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.lg-sheet-act .btn-ink { width: 100%; justify-content: space-between; }
.lg-sheet-tel { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); width: 100%; }
.lg-sheet-tel a { display: grid; gap: 4px; text-decoration: none; }
.lg-sheet-tel a > span { font: 400 13.5px/1 var(--f-ui); color: var(--ink-3); }
.lg-sheet-tel .num { font: 500 22px/1 var(--f-latin); font-feature-settings: "lnum"; transition: color .3s; }
.lg-sheet-tel a:hover .num { color: var(--crimson); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .lg-marg { grid-column: 1 / span 4; }
  .lg-text { grid-column: 5 / span 8; }
  .lg-p2 { grid-template-columns: 1fr; row-gap: 18px; }
  .lg-au-h { grid-column: 3 / span 10; }
  .lg-au-d { grid-column: 3 / span 10; margin-top: 12px; }
  .lg-art-h { grid-column: 3 / span 10; }
  .lg-art-b { grid-column: 3 / span 10; margin-top: 14px; }
  .lg-q-t { grid-column: 3 / span 10; }
  .lg-q-a { grid-column: 3 / span 10; margin-top: 12px; }
  .lg-sheet-main { grid-column: 1 / -1; }
  .lg-sheet-act { grid-column: 1 / span 8; margin-top: 30px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .lg-basis > .ch-head { grid-template-columns: 1fr; }
  .lg-basis > .ch-head .ch-title, .lg-basis > .ch-head .ch-fr { grid-column: 1; }
  .lg-basis > .ch-head .ch-fr { margin-top: 12px; }
  .lg-basis-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .lg-marg, .lg-text { grid-column: 1; }
  .lg-marg { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: end; margin-bottom: 30px; }
  .lg-marg-l { grid-column: 1 / -1; }
  .lg-marg-n { font-size: 64px; margin: 6px 0 0 !important; }
  .lg-marg-d { padding-bottom: 8px; }
  .lg-marg-s { grid-column: 1 / -1; }
  .lg-p1 { font-size: 25px; line-height: 1.75; }
  html[lang="fr"] .lg-p1, html[lang="en"] .lg-p1 { font-size: 26px; line-height: 1.32; }
  .lg-p2 p { font-size: 17.5px; }
  html[lang="fr"] .lg-p2 p, html[lang="en"] .lg-p2 p { font-size: 18px; }
  .lg-au { grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 24px 0; }
  .lg-seal { grid-column: 1; width: 70px; margin-inline-start: 4px; padding: 4px; }
  .lg-seal img { filter: none; opacity: 1; }
  .lg-au.is-on .lg-seal, .lg-au:hover .lg-seal { transform: none; }
  .lg-seal::before { inset: -4px; }
  .lg-au-h { grid-column: 2; }
  .lg-au-h h3 { font-size: 26px; gap: 6px; }
  .lg-au-o { font-size: 17px; }
  .lg-au-d { grid-column: 1 / -1; margin-top: 16px; font-size: 17px; }
  html[lang="fr"] .lg-au-d, html[lang="en"] .lg-au-d { font-size: 18px; }
  .lg-ctrl { flex-direction: column; align-items: stretch; gap: 12px; }
  .lg-seg { display: grid; grid-template-columns: 1fr 1fr; }
  .lg-seg label { display: grid; }
  .lg-seg span { display: grid; place-items: center; text-align: center; font-size: 15px; line-height: 1.25; padding: 12px 8px; height: 100%; }
  .lg-count { margin-inline-start: 0; }
  .lg-art { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 28px 0 30px; }
  .lg-art-fig { grid-column: 1; font-size: 54px; line-height: .86; }
  .lg-art-h, .lg-art-b { grid-column: 2; }
  .lg-art-h h3 { font-size: 27px; }
  html[lang="fr"] .lg-art-h h3, html[lang="en"] .lg-art-h h3 { font-size: 28px; }
  .lg-art-o { font-size: 17px; }
  .lg-art-b { margin-top: 12px; }
  .lg-art-b p { font-size: 17px; }
  html[lang="fr"] .lg-art-b p, html[lang="en"] .lg-art-b p { font-size: 18px; }
  .ch-head-split > .lg-qs-lead { grid-column: 1; margin-top: 18px; }
  .lg-q { grid-template-columns: 1fr; padding: 26px 0 28px; }
  .lg-q-n, .lg-q-t, .lg-q-a { grid-column: 1; }
  .lg-q-n { padding: 0 0 8px; }
  .lg-q-t { font-size: 25px; }
  html[lang="fr"] .lg-q-t, html[lang="en"] .lg-q-t { font-size: 27px; }
  .lg-q-a { margin-top: 12px; font-size: 17px; }
  html[lang="fr"] .lg-q-a, html[lang="en"] .lg-q-a { font-size: 18px; }
  .lg-sheet { grid-template-columns: 1fr; }
  .lg-sheet-main, .lg-sheet-act { grid-column: 1; }
  .lg-sheet-t { font-size: 36px; }
  html[lang="fr"] .lg-sheet-t, html[lang="en"] .lg-sheet-t { font-size: 38px; }
  .lg-sheet-p { font-size: 17.5px; }
  .lg-sheet-act .btn-lg { white-space: normal; }
}

/* RT Translate — legalization page, chapter 03 «الأطلس» (pages/legal_map.py, js/parts/35-map.js): the destinations as an atlas table.
   An engraved plate (ink hairlines on paper, water-lined coasts, hatched destinations, Algeria in crimson),
   the country sheet typeset beside it, the register below. Paper, ink, one crimson; rules, not boxes. */

.at { --at-sticky: 84px; margin-top: clamp(40px, 5vw, 70px); }
.at-sw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.at-table { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.at-fig { grid-column: 1 / span 8; margin: 0; position: sticky; top: var(--at-sticky); }
.at-sheet { grid-column: 9 / span 4; border-top: 1px solid var(--ink); padding-top: 20px; min-width: 0; outline: none; }

/* ---------------------------------------------------------------- the plate */
.at-plate {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none;
}
.at-plate:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.at-plate::before, .at-plate::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: var(--ink); z-index: 3; pointer-events: none; }
.at-plate::before { top: 3px; } .at-plate::after { bottom: 3px; }          /* the double rule of the plate */
.at-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; }
.at-plate.is-drag .at-svg { cursor: grabbing; }
.at-plate.is-pt .at-svg { cursor: pointer; }
.at-load { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); padding: 20px; text-align: center; }
.at-plate.is-live .at-load { display: none; }

/* sea, coasts, graticule */
.at-sea { fill: var(--paper); }
.at-wl path, .at-coast, .at-grat, .at-rim-a, .at-rim-b, .at-c { vector-effect: non-scaling-stroke; }
.at-wl path { fill: none; stroke-linejoin: round; transition: opacity .25s; }
.at-wl-1 { stroke: rgba(23, 17, 15, .085); stroke-width: 19px; }
.at-wl-2 { stroke: var(--paper); stroke-width: 17px; }
.at-wl-3 { stroke: rgba(23, 17, 15, .12); stroke-width: 12.2px; }
.at-wl-4 { stroke: var(--paper); stroke-width: 10.4px; }
.at-wl-5 { stroke: rgba(23, 17, 15, .17); stroke-width: 6.4px; }
.at-wl-6 { stroke: var(--paper); stroke-width: 4.6px; }
.at-plate.is-moving .at-wl { opacity: 0; }
.at-grat { fill: none; stroke: rgba(23, 17, 15, .13); stroke-width: .6px; }
.at-rim-a { fill: none; stroke: var(--ink-2); stroke-width: 4.2px; }
.at-rim-b { fill: none; stroke: var(--paper); stroke-width: 2.4px; }
.at-coast { fill: none; stroke: var(--ink); stroke-width: .95px; stroke-linejoin: round; pointer-events: none; }

/* countries */
.at-c { fill: var(--sheet); stroke: var(--ink-2); stroke-width: .5px; stroke-opacity: .75; stroke-linejoin: round; transition: fill .2s; }
.at-c.is-dest { fill: url(#at-p-dest); }
.at-c.is-hov { fill: url(#at-p-hov); }
.at-c.is-dest.is-hov { fill: url(#at-p-sel); }
.at-c.is-sel { fill: url(#at-p-sel); stroke: var(--ink); stroke-width: 1.5px; stroke-opacity: 1; }
.at-c.is-dz, .at-c.is-dz.is-hov { fill: url(#at-p-dz); stroke: var(--crimson-deep); stroke-opacity: .9; }
.at-c.is-dz.is-sel { stroke: var(--crimson-deep); stroke-width: 1.5px; }
.at-h-dest-bg, .at-h-hov-bg, .at-h-sel-bg { fill: var(--sheet); }
.at-h-dest { stroke: var(--ink-2); stroke-width: .62; stroke-opacity: .55; }
.at-h-hov { stroke: var(--ink-3); stroke-width: .6; stroke-opacity: .55; }
.at-h-sel { stroke: var(--ink); stroke-width: .75; stroke-opacity: .85; }
.at-h-dz-bg { fill: var(--crimson); }
.at-h-dz { stroke: var(--crimson-deep); stroke-width: .55; stroke-opacity: .55; }

/* overlay: marks, itinerary, stamps, labels, degrees */
.at-over { pointer-events: none; }
.at-dm-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.at-dm-c { fill: var(--paper); stroke: var(--ink); stroke-width: 1.1px; }
.at-dm.is-sel { display: none; }
.at-alg { fill: var(--ink); stroke: var(--paper); stroke-width: 1.4px; }
.at-hb-c { fill: var(--crimson); stroke: var(--paper); stroke-width: 2.2px; }
.at-hb-r { fill: none; stroke: var(--paper); stroke-width: 1.1px; }
.at-route { fill: none; stroke: var(--crimson); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 5.6; }
.at-route-h { fill: none; stroke: var(--crimson); stroke-width: .7px; stroke-opacity: .45; stroke-linejoin: round; }
.at-slip { fill: var(--paper); stroke: none; }
.at-lead { stroke: var(--crimson); stroke-width: 1px; }
.at-st-a { fill: var(--paper); stroke: var(--crimson); stroke-width: 1.4px; }
.at-st-b { fill: none; stroke: var(--crimson); stroke-width: .8px; stroke-dasharray: 1.4 1.6; }
.at-st-n { font: 600 14px/1 var(--f-latin); fill: var(--crimson); text-anchor: middle; font-feature-settings: "lnum"; }
.at-stamp-i { transform-box: fill-box; transform-origin: center; }
.at-stamp.is-press .at-stamp-i { animation: atPress .46s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes atPress { 0% { opacity: 0; transform: scale(1.9) rotate(-18deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.at-st-l, .at-lab, .at-hb-l, .at-tk-l { paint-order: stroke; stroke: var(--paper); stroke-linejoin: round; }
.at-st-l { font: 700 15px/1 var(--f-ui); fill: var(--crimson-deep); stroke: none; }
.at-hb-l { font: 700 14px/1 var(--f-ui); fill: var(--crimson-deep); stroke-width: 3.6px; }
.at-lab { font: 400 12.5px/1 var(--f-ui); fill: var(--ink-3); stroke-width: 3px; text-anchor: middle; }
.at-lab.is-dest { font-weight: 700; font-size: 14px; fill: var(--ink); }
.at-lab.is-dz { font-weight: 700; font-size: 15px; fill: var(--paper); stroke: none; }
.at-lab.is-sel { font-weight: 700; font-size: 17px; fill: var(--crimson-deep); stroke-width: 4px; }
.at-lab.is-dz.is-sel { fill: var(--paper); }
html[lang="fr"] .at-lab, html[lang="en"] .at-lab { font: italic 500 12px/1 var(--f-latin); letter-spacing: .04em; }
html[lang="fr"] .at-lab.is-dest, html[lang="en"] .at-lab.is-dest { font: 600 11.5px/1 var(--f-latin); font-style: normal; letter-spacing: .16em; }
html[lang="fr"] .at-lab.is-dz, html[lang="en"] .at-lab.is-dz { font: 600 12.5px/1 var(--f-latin); letter-spacing: .2em; }
html[lang="fr"] .at-lab.is-sel, html[lang="en"] .at-lab.is-sel { font: 700 14px/1 var(--f-latin); letter-spacing: .18em; }
html[lang="fr"] .at-st-l, html[lang="en"] .at-st-l, html[lang="fr"] .at-hb-l, html[lang="en"] .at-hb-l { font-family: var(--f-latin); font-weight: 600; font-size: 15px; }
.at-ticks { direction: ltr; unicode-bidi: isolate; }
.at-tk { stroke: var(--ink-2); stroke-width: 1px; }
.at-tk-l { font: 400 9.5px/1 var(--f-mono); fill: var(--ink-3); stroke-width: 3px; letter-spacing: .04em; }

/* hover tip — a typeset slip, not a bubble */
.at-tip {
  position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none; white-space: nowrap;
  background: var(--paper); border-top: 1px solid var(--ink); padding: 5px 10px 6px;
  font: 600 15px/1.25 var(--f-ui); color: var(--ink); opacity: 0; transition: opacity .16s;
}
.at-tip.is-on { opacity: 1; }
.at-tip b { font-weight: 700; }
.at-tip span { display: block; font: italic 400 14px/1.25 var(--f-latin); color: var(--ink-3); }
.at-tip span i { font-style: italic; }
.at-tip span i[lang="ar"] { font: 400 13px/1.4 var(--f-ui); font-style: normal; }
.at-tip span em { font-style: normal; color: var(--crimson); }
html[lang="fr"] .at-tip, html[lang="en"] .at-tip { font: 600 17px/1.2 var(--f-latin); }

/* controls — typographic */
.at-ctrl { position: absolute; z-index: 5; bottom: 12px; inset-inline-end: 12px; display: flex; align-items: stretch; background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.at-z { min-width: 40px; height: 38px; padding: 0 10px; font: 500 24px/1 var(--f-latin); color: var(--ink); border-inline-start: 1px solid var(--rule); transition: color .2s, background .2s; }
.at-z:first-child { border-inline-start: 0; }
.at-z:hover { color: var(--crimson); }
.at-z-r { font: 500 15px/1 var(--f-ui); padding: 0 13px; }
html[lang="fr"] .at-z-r, html[lang="en"] .at-z-r { font: italic 500 16px/1 var(--f-latin); }
.at-nudge {
  position: absolute; z-index: 5; inset-inline: 0; top: 50%; margin: 0 auto; width: max-content; max-width: 86%; transform: translateY(-50%);
  background: var(--ink); color: var(--paper); font: 500 15px/1.4 var(--f-ui); padding: 9px 16px 10px; text-align: center;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.at-nudge.is-on { opacity: .94; }

.at-deg { position: relative; height: 18px; overflow: hidden; }
.at-deg span { position: absolute; top: 4px; transform: translateX(-50%); font: 400 10px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.at-fig figcaption { margin-top: 6px; font: 400 15px/1.55 var(--f-ui); color: var(--ink-2); }
.at-srcl { font: 400 11.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; margin-inline-start: .6em; white-space: nowrap; }
.at-hint { margin: 6px 0 0; font: 400 14.5px/1.55 var(--f-ui); color: var(--ink-3); }
.at-jump { display: inline-block; margin-top: 12px; }
.at-jump[hidden], .at-more[hidden], .at-leaders li[hidden], .at-rg[hidden], .at-col[hidden] { display: none; }

/* ---------------------------------------------------------------- the sheet */
.at-sheet.is-in .at-sh { animation: atIn .42s var(--ease) both; }
@keyframes atIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.at-k { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 400 15.5px/1 var(--f-ui); color: var(--ink-2); }
.at-t { font: 600 clamp(34px, 3.2vw, 50px)/1.15 var(--f-display); margin: 0; }
.at-t em { font-style: normal; color: var(--crimson); }
html[lang="fr"] .at-t, html[lang="en"] .at-t { font-weight: 500; line-height: 1.02; }
html[lang="fr"] .at-t em, html[lang="en"] .at-t em { font-style: italic; }
.at-o { margin: 8px 0 0; font: italic 400 20px/1.3 var(--f-latin); color: var(--ink-3); }
.at-o [lang="ar"] { font: 500 18px/1.4 var(--f-display); font-style: normal; }
.at-o i { color: var(--crimson); font-style: normal; padding-inline: .4em; }
.at-p { margin: 16px 0 0; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .at-p, html[lang="en"] .at-p { font-size: 17.5px; line-height: 1.6; }

.at-legend { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.at-legend li { display: flex; align-items: center; gap: 14px; padding: 8px 0 7px; border-bottom: 1px solid var(--rule); font: 400 15.5px/1.4 var(--f-ui); color: var(--ink-2); }
.at-legend svg { flex: none; width: 28px; height: 16px; overflow: visible; }
.at-sw-dz { fill: var(--crimson); }
.at-sw-dest { stroke: var(--ink-2); stroke-width: .8; }
.at-sw-hl { stroke: var(--ink-2); stroke-width: .8; }
.at-sw-hb { fill: var(--crimson); }
.at-sw-hbr { fill: var(--paper); stroke: var(--crimson); stroke-width: 1; }
.at-sw-route { fill: none; stroke: var(--crimson); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 4.6; }
.at-sw-st { fill: var(--paper); stroke: var(--crimson); stroke-width: 1.2; }
.at-sw-stn { font: 700 10.5px/1 var(--f-latin); fill: var(--crimson); text-anchor: middle; }
.at-gen { list-style: none; margin: 22px 0 0; padding: 0; }
.at-gen li { display: grid; grid-template-columns: 4.6em 1fr; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); font: 500 16px/1.45 var(--f-ui); }
html[lang="fr"] .at-gen li, html[lang="en"] .at-gen li { grid-template-columns: 2.6em 1fr; font: 500 17px/1.35 var(--f-latin); }

.at-facts { margin: 22px 0 0; border-top: 1px solid var(--ink); }
.at-facts > div { display: grid; grid-template-columns: 8.4em 1fr; column-gap: 14px; align-items: baseline; padding: 10px 0 9px; border-bottom: 1px solid var(--rule); }
html[lang="fr"] .at-facts > div, html[lang="en"] .at-facts > div { grid-template-columns: 9.6em 1fr; }
.at-facts dt { font: 400 14.5px/1.4 var(--f-ui); color: var(--ink-3); }
.at-facts dd { margin: 0; font: 500 17px/1.6 var(--f-text); }
html[lang="fr"] .at-facts dd, html[lang="en"] .at-facts dd { font: 400 18px/1.4 var(--f-latin-text); }
.at-facts sup, .at-docs-h sup { color: var(--crimson); font: 500 11.5px/1 var(--f-mono); margin-inline-start: 3px; }

.at-h { margin: 28px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 700 15.5px/1.3 var(--f-ui); color: var(--ink); }
html[lang="fr"] .at-h, html[lang="en"] .at-h { font: 600 12.5px/1.3 var(--f-latin); letter-spacing: .16em; text-transform: uppercase; }
.at-stages { list-style: none; margin: 0; padding: 0; }
.at-stages li { display: grid; grid-template-columns: 4.6em 1fr; column-gap: 10px; padding: 12px 0 11px; border-bottom: 1px solid var(--rule); transition: opacity .4s; opacity: .42; }
html[lang="fr"] .at-stages li, html[lang="en"] .at-stages li { grid-template-columns: 3em 1fr; }
.at-stages li.is-on { opacity: 1; }
.at-st-o { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 700 15px/1.3 var(--f-ui); color: var(--ink-2); }
html[lang="fr"] .at-st-o, html[lang="en"] .at-st-o { font: 600 18px/1.1 var(--f-latin); }
.at-st-o b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule-2); border-radius: 50%; font: 600 13px/1 var(--f-latin); color: var(--ink-3); transition: color .3s, border-color .3s; }
.at-stages li.is-on .at-st-o { color: var(--crimson); }
.at-stages li.is-on .at-st-o b { color: var(--crimson); border-color: var(--crimson); }
.at-st-t { margin: 0; font: 600 17px/1.45 var(--f-display); }
html[lang="fr"] .at-st-t, html[lang="en"] .at-st-t { font: 600 19px/1.2 var(--f-latin); }
.at-st-pl { margin: 2px 0 0; font: 400 14.5px/1.45 var(--f-ui); color: var(--crimson-deep); }
.at-st-x { margin: 5px 0 0; font: 400 15px/1.8 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .at-st-x, html[lang="en"] .at-st-x { font-size: 16px; line-height: 1.5; }

.at-purp { display: flex; flex-wrap: wrap; column-gap: 4px; row-gap: 2px; margin-top: 10px; margin-inline-start: -8px; }
.at-purp label { position: relative; cursor: pointer; }
.at-purp input { position: absolute; opacity: 0; pointer-events: none; }
.at-purp span { display: inline-block; padding: 5px 8px 6px; font: 500 16px/1.3 var(--f-ui); color: var(--ink-2); text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: color .2s, text-decoration-color .2s; }
html[lang="fr"] .at-purp span, html[lang="en"] .at-purp span { font: 500 17px/1.25 var(--f-latin); }
.at-purp label:hover span { color: var(--crimson); }
.at-purp input:checked + span { color: var(--ink); text-decoration-color: var(--crimson); }
.at-purp input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.at-docs { margin-top: 14px; }
.at-docs-h { margin: 0 0 8px; font: 400 14.5px/1.4 var(--f-ui); color: var(--ink-3); }
.at-docs-b.is-in { animation: atIn .35s var(--ease) both; }
.at-docs-l { margin: 0; }
.at-docs-l li { font-size: 16px; padding: 7px 0 6px; }
.at-docs-l .ld-b[lang="fr"], .at-docs-l .ld-b[lang="en"] { font-size: 15.5px; }
.at-docs-l .ld-a { max-width: 56%; }
.at-docs-pick { margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 400 15px/1.6 var(--f-ui); color: var(--ink-3); }

.at-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.at-notes { margin-top: 22px; }
.at-back-p { margin: 16px 0 0; }
.at-back { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.at-back:hover { color: var(--crimson); }
html[lang="fr"] .at-back, html[lang="en"] .at-back { font: italic 400 16px/1.4 var(--f-latin); }

/* ---------------------------------------------------------------- the register */
.at-reg { margin-top: clamp(50px, 6vw, 90px); }
.at-reg-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin: 0 0 26px; padding-top: 18px; border-top: 1px solid var(--ink); }
.at-reg-h { grid-column: 1 / span 5; display: flex; align-items: baseline; gap: 14px; margin: 0; padding-bottom: 12px; font: 400 16px/1.3 var(--f-ui); color: var(--ink-2); }
.at-find { grid-column: 8 / span 5; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: end; }
.at-find-l { font: 400 15px/1.3 var(--f-ui); color: var(--ink-3); padding-bottom: 12px; white-space: nowrap; }
.at-q { width: 100%; min-width: 0; }
.at-q::-webkit-search-cancel-button, .at-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.at-found { grid-column: 1 / -1; min-height: 1.4em; margin: 6px 0 0; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); text-align: end; }
.at-found.is-none { color: var(--crimson-deep); }
.at-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: -8px 0 30px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.at-more-h { margin: 0; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.at-more-l { display: contents; list-style: none; }
.at-more-l li { display: inline; }
.at-ob { font: 500 17px/1.45 var(--f-text); color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 5px; cursor: pointer; }
html[lang="fr"] .at-ob, html[lang="en"] .at-ob { font: 400 18px/1.35 var(--f-latin-text); }
.at-ob:hover, .at-ob:focus-visible { color: var(--crimson); text-decoration-color: var(--crimson); }
.at-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3.2vw, 56px); }
.at-col { display: grid; gap: 34px; align-content: start; }
.at-rg h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 12px; font: 600 clamp(24px, 2vw, 30px)/1.3 var(--f-display); }
html[lang="fr"] .at-rg h4, html[lang="en"] .at-rg h4 { font-weight: 500; }
.at-rg-n { font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .08em; }
.at-leaders { margin: 0; border-top: 1px solid var(--ink); }
.at-leaders li { display: block; padding: 0; }
.at-rb { display: flex; align-items: baseline; width: 100%; padding: 9px 0 8px; text-align: start; font: 400 17px/1.45 var(--f-text); color: var(--ink); cursor: pointer; transition: color .25s; }
.at-rb .ld-b { color: var(--ink-3); white-space: nowrap; text-align: end; transition: color .25s; }
.at-rb .ld-b[lang="fr"], .at-rb .ld-b[lang="en"] { font: italic 400 17px/1.3 var(--f-latin); }
.at-rb .ld-b[lang="ar"] { font: 400 16px/1.4 var(--f-text); }
.at-rb:hover, .at-rb.is-hov, .at-rb:hover .ld-b, .at-rb.is-hov .ld-b { color: var(--crimson); }
.at-rb[aria-pressed="true"] { color: var(--crimson); }
.at-rb[aria-pressed="true"] .ld-a { font-weight: 700; }
.at-rb[aria-pressed="true"] .ld-b { color: var(--crimson); }
.at-rb[aria-pressed="true"] .dots { border-bottom-color: var(--crimson); border-bottom-style: solid; opacity: .5; }
.at-rb:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.at-other { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); }
.at-other-l { grid-column: 1 / span 4; font: 400 16px/1.4 var(--f-ui); color: var(--ink-2); padding-bottom: 12px; }
.at-sel { grid-column: 5 / span 4; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 1100px) {
  .at-fig { grid-column: 1 / -1; position: relative; top: auto; }
  .at-sheet { grid-column: 1 / -1; margin-top: 34px; }
  .at-sheet .at-sh { max-width: 720px; }
}
@media (max-width: 760px) {
  .at-plate { aspect-ratio: 10 / 9; margin-inline: calc(var(--m) * -1); }
  .at-fig figcaption, .at-hint { font-size: 14px; }
  .at-z { min-width: 38px; height: 36px; }
  .at-ctrl { bottom: 10px; inset-inline-end: 10px; }
  .at-t { font-size: 38px; }
  .at-facts > div { grid-template-columns: 1fr; row-gap: 2px; }
  .at-index { grid-template-columns: 1fr; row-gap: 34px; }
  .at-rg h4 { font-size: 24px; }
  .at-rb { font-size: 16.5px; }
  .at-other { grid-template-columns: 1fr; }
  .at-reg-top { grid-template-columns: 1fr; row-gap: 14px; }
  .at-reg-h, .at-find { grid-column: 1; }
  .at-reg-h { padding-bottom: 0; }
  .at-find { grid-template-columns: 1fr; }
  .at-find-l { padding-bottom: 4px; }
  .at-found { text-align: start; }
  .at-other-l, .at-sel { grid-column: 1; }
  .at-other-l { padding-bottom: 0; }
  .at-stages li { grid-template-columns: 4.2em 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .at-stamp.is-press .at-stamp-i, .at-sheet.is-in .at-sh, .at-docs-b.is-in { animation: none; }
  .at-stages li, .at-wl path, .at-tip, .at-c { transition: none; }
}

/* ================================================================ ABOUT (.ab-) · PRIVACY (.pv-) · 404 (.nf-)
   Same grammar as the home page: rules, numbered chapters, clauses, dot leaders, plates, footnotes. */

/* ---------- about: shared chapter grammar ---------- */
.ab-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; border-top: 1px solid var(--ink); padding-top: 24px; }
.ab-head .ch-label { grid-column: 1 / -1; }
.ab-head .ch-title { grid-column: 1 / span 8; }
.ab-head .ch-fr { grid-column: 9 / span 4; margin: 0 0 14px; }
.ab .ch-title { font-size: clamp(50px, 6.6vw, 104px); text-wrap: balance; }
.ab-front-act { margin-top: clamp(26px, 3vw, 44px); }
.ab-cl-place { display: inline-flex; align-items: baseline; gap: .45em; }
html[lang="ar"] .ab-cl-place { font: 600 23px/1 var(--f-display); }
.ab-cl-place .arr { font-size: 19px; }
.ab-hours .ab-h-l { display: block; }
.ab-p { font: 400 19px/1.95 var(--f-text); color: var(--ink-2); margin: 0 0 1.1em; max-width: 36em; text-wrap: pretty; }
html[lang="fr"] .ab-p, html[lang="en"] .ab-p { font-size: 20px; line-height: 1.65; }

/* ---------- 01 · the translator ---------- */
.ab-prof-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(36px, 4.6vw, 68px); align-items: start; }
.ab-fiche { grid-column: 1 / span 3; grid-row: 1 / span 3; position: sticky; top: 92px; }
.ab-fiche-h { font: 400 14px/1 var(--f-ui); color: var(--ink-3); margin: 0 0 12px; }
.ab-fiche dl { margin: 0; border-top: 1px solid var(--ink); }
.ab-fiche dl > div { padding: 12px 0 13px; border-bottom: 1px solid var(--rule); display: grid; gap: 5px; }
.ab-fiche dt { font: 400 13.5px/1.2 var(--f-ui); color: var(--ink-3); }
.ab-fiche dd { margin: 0; font: 600 20px/1.45 var(--f-display); color: var(--ink); }
html[lang="fr"] .ab-fiche dd, html[lang="en"] .ab-fiche dd { font-size: 21px; line-height: 1.2; }
.ab-p1 { grid-column: 5 / span 7; grid-row: 1; font-size: clamp(21px, 1.65vw, 25px); color: var(--ink); max-width: 30em; }
html[lang="fr"] .ab-p1, html[lang="en"] .ab-p1 { font-size: clamp(22px, 1.7vw, 26px); line-height: 1.55; }
.ab-quote { grid-column: 4 / span 9; grid-row: 2; margin: clamp(30px, 4vw, 60px) 0 clamp(36px, 4.4vw, 66px); padding: clamp(26px, 3vw, 44px) 0 clamp(28px, 3.2vw, 46px);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); position: relative; }
.ab-quote::before { content: "«"; display: block; font: 400 clamp(64px, 6vw, 96px)/.62 var(--f-display); color: var(--crimson); margin-bottom: 14px; }
html[lang="fr"] .ab-quote::before, html[lang="en"] .ab-quote::before { content: "“"; font-family: var(--f-latin); line-height: .7; }
html[lang="fr"] .ab-quote::before { content: "«"; line-height: .62; }
.ab-quote p { margin: 0; font: 500 clamp(31px, 3.25vw, 52px)/1.62 "Mirza", serif; color: var(--ink); text-wrap: pretty; max-width: 22em; }
html[lang="fr"] .ab-quote p, html[lang="en"] .ab-quote p { font: italic 400 clamp(32px, 3.2vw, 52px)/1.28 var(--f-latin); }
.ab-p-rest { grid-column: 5 / span 7; grid-row: 3; }
.ab-sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 36em; }
.ab-sig-n { font: 600 34px/1 var(--f-display); color: var(--crimson); }
html[lang="fr"] .ab-sig-n, html[lang="en"] .ab-sig-n { font-style: italic; font-weight: 500; font-size: 36px; }
.ab-sig-r { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }

/* ---------- 02 · accreditation ---------- */
.ab-acc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(44px, 5.4vw, 80px); align-items: start; }
.ab-seal { grid-column: 1 / span 4; display: grid; justify-items: center; position: sticky; top: 100px; padding-top: 14px; }
.ab-seal-disc { position: relative; width: min(100%, 290px); aspect-ratio: 1; border-radius: 50%; padding: 14px; border: 1px solid var(--gold); background: #fbf8f2; }
.ab-seal-disc::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 1px solid rgba(165, 131, 75, .45); }
.ab-seal-disc img { width: 100%; height: 100%; object-fit: contain; }
.ab-seal figcaption { margin-top: 30px; text-align: center; display: grid; gap: 6px; }
.ab-seal-t { font: 600 24px/1.3 var(--f-display); color: var(--ink); }
html[lang="fr"] .ab-seal-t, html[lang="en"] .ab-seal-t { font-size: 25px; line-height: 1.15; }
.ab-seal small { font: 400 14.5px/1.4 var(--f-ui); color: var(--ink-3); }
.ab-clauses { grid-column: 6 / span 7; }
.ab-clause { padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.ab-clause:first-child { border-top: 1px solid var(--ink); }
.ab-clause h3 { font: 600 clamp(28px, 2.5vw, 38px)/1.3 var(--f-display); margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
html[lang="fr"] .ab-clause h3, html[lang="en"] .ab-clause h3 { font-weight: 500; line-height: 1.1; }
.ab-clause p { font: 400 clamp(19px, 1.4vw, 21px)/1.95 var(--f-text); color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
html[lang="fr"] .ab-clause p, html[lang="en"] .ab-clause p { line-height: 1.6; font-size: clamp(20px, 1.45vw, 22px); }
.ab-clause sup, .ab-seal sup, .pv-body sup { line-height: 0; }
.fn-call a { font-feature-settings: "lnum"; }
.ab-clause sup a, .ab-seal sup a { font: 500 12px/1 var(--f-mono); color: var(--crimson); text-decoration: none; }
.ab-acc .notes { margin-top: clamp(40px, 5vw, 70px); }

/* ---------- 03 · principles ---------- */
.ab-val-list { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ab-val { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: clamp(26px, 3.2vw, 46px) 0; border-bottom: 1px solid var(--rule); }
.ab-val-n { grid-column: 1 / span 2; margin: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.ab-val-num { font: 300 clamp(58px, 5.4vw, 86px)/.8 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.02em; }
.ab-val-t { grid-column: 3 / span 4; font: 600 clamp(38px, 3.6vw, 58px)/1.2 var(--f-display); margin: 0; transition: color .4s var(--ease); }
html[lang="fr"] .ab-val-t, html[lang="en"] .ab-val-t { font-weight: 500; line-height: 1.05; }
.ab-val-o { display: block; margin-top: 10px; font: italic 400 20px/1.25 var(--f-latin); color: var(--ink-3); }
/* on French/English pages var(--f-display) is Cormorant: name the Arabic faces, or Arabic falls back to a system font */
.ab-val-o[lang="ar"] { font: 500 21px/1.3 "Mirza", "Noto Naskh Arabic", serif; font-style: normal; }
.ab-head .ch-fr [lang="ar"] { font-family: "Mirza", "Noto Naskh Arabic", serif; font-size: max(20px, .95em); }
html[dir="rtl"] .ab-val-o { text-align: right; }
html[dir="ltr"] .ab-val-o { text-align: left; }
.ab-val-d { grid-column: 7 / span 6; font: 400 19.5px/1.95 var(--f-text); color: var(--ink-2); margin: 0; max-width: 32em; padding-top: 8px; }
html[lang="fr"] .ab-val-d, html[lang="en"] .ab-val-d { font-size: 20.5px; line-height: 1.6; }
.ab-val:hover .ab-val-t { color: var(--crimson); }

/* ---------- 04 · the office ---------- */
.ab-office-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.ab-office-fig { grid-column: 1 / span 5; position: sticky; top: 92px; }
.ab-frame { aspect-ratio: 4 / 5; max-height: calc(100vh - 170px); }
.ab-office-main { grid-column: 7 / span 6; }
.ab-office-p { font-size: clamp(19px, 1.45vw, 21px); }
.ab-imprint { margin: 30px 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.ab-imprint > div { padding: 16px 0 20px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.ab-imprint dt { font: 400 14px/1.2 var(--f-ui); color: var(--ink-3); }
.ab-imprint dd { margin: 0; font: 500 18px/1.6 var(--f-ui); color: var(--ink); }
.ab-imprint .ab-im-city { font: 600 22px/1.5 var(--f-display); }
html[lang="fr"] .ab-imprint .ab-im-city, html[lang="en"] .ab-imprint .ab-im-city { font-size: 23px; line-height: 1.25; }
.ab-im-city .lnk { display: table; margin-top: 12px; font-size: 15.5px; }
.ab-ways { margin-top: clamp(34px, 3.6vw, 50px); }
.ab-ways-h { font: 400 14px/1 var(--f-ui); color: var(--ink-3); margin: 0 0 12px; }
.ab-ways ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ab-ways a { display: flex; align-items: baseline; padding: 13px 0 12px; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 18px/1.35 var(--f-ui); transition: color .3s; }
.ab-ways a:hover { color: var(--crimson); }
.ab-w-t { flex: 0 1 auto; }
.ab-w-v { flex: none; }
.ab-w-v .num { font-size: 21px; }
.ab-act { margin-top: clamp(28px, 3vw, 40px); }

/* ---------- privacy: the gazette ---------- */
.pv { padding-top: clamp(50px, 6vw, 90px); }
.pv-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; border-top: 1px solid var(--ink); }
.pv-text { grid-column: 1 / span 8; }
.pv-art { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr); column-gap: var(--gap); padding: clamp(28px, 3.2vw, 46px) 0; border-bottom: 1px solid var(--rule); }
.pv-mark { margin: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.pv-k { font: 500 16px/1.2 var(--f-ui); color: var(--crimson); font-feature-settings: "lnum"; }
html[lang="fr"] .pv-k, html[lang="en"] .pv-k { font: 500 18px/1.1 var(--f-latin); letter-spacing: .04em; font-variant-numeric: lining-nums; }
.pv-num { font: 300 clamp(62px, 5.6vw, 92px)/.8 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; }
.pv-body h2 { font: 600 clamp(28px, 2.4vw, 38px)/1.3 var(--f-display); margin: 0 0 14px; }
html[lang="fr"] .pv-body h2, html[lang="en"] .pv-body h2 { font-weight: 500; line-height: 1.1; }
.pv-body p { font: 400 19px/2 var(--f-text); color: var(--ink-2); margin: 0 0 1em; max-width: 35em; text-wrap: pretty; }
.pv-body p:last-child { margin-bottom: 0; }
html[lang="fr"] .pv-body p, html[lang="en"] .pv-body p { font-size: 20px; line-height: 1.65; }
.pv-body sup a { font: 500 12px/1 var(--f-mono); color: var(--crimson); text-decoration: none; }
.pv-end { margin-top: clamp(40px, 4.4vw, 64px); }
.pv-upd { margin: 14px 0 0; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.pv-cr { margin-top: 34px; font: 400 13px/1.7 var(--f-ui); color: var(--ink-3); }
.pv-cr p { margin: 0 0 4px; }
.pv-cr .pv-cr-h { font-weight: 600; color: var(--ink-2); }
.pv-cr ul { margin: 0; padding: 0; list-style: none; }
.pv-cr a { color: inherit; text-underline-offset: 2px; }
.pv .notes { margin-top: 26px; }
.pv-side { grid-column: 10 / span 3; position: sticky; top: 92px; padding-top: clamp(28px, 3.2vw, 46px); }
.pv-side-h { font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); margin: 0 0 12px; }
.pv-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pv-toc a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 400 17px/1.35 var(--f-ui); transition: color .3s; }
.pv-tn { font: 400 12px/1 var(--f-mono); color: var(--crimson); letter-spacing: .08em; flex: none; }
.pv-toc a:hover, .pv-toc a[aria-current="true"] { color: var(--crimson); }
.pv-toc a[aria-current="true"] .pv-tt { box-shadow: 0 1px 0 var(--crimson); }
.pv-rights { margin-top: 44px; display: grid; gap: 18px; justify-items: start; }
.pv-rights .pv-side-h { margin: 0; padding-top: 14px; border-top: 1px solid var(--ink); justify-self: stretch; }
.pv-mail .cl-v { font-size: 17px; word-break: break-all; }

/* ---------- 404: erratum ---------- */
.nf { padding-top: clamp(30px, 4.4vw, 64px); }
.nf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.nf-main { grid-column: 1 / span 7; }
.nf-h { font-size: clamp(54px, 7.2vw, 112px); text-wrap: balance; }
html[lang="fr"] .nf-h, html[lang="en"] .nf-h { font-size: clamp(52px, 7vw, 108px); }
.nf-folio { grid-column: 8 / span 5; margin: 0; display: grid; justify-items: end; gap: 14px; border-inline-start: 1px solid var(--rule); align-self: stretch; align-content: end; }
.nf-folio-k { font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.nf-folio-n { font: 300 clamp(150px, 23vw, 380px)/.76 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.035em; margin-bottom: -.04em; }
.nf-links { margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--ink); }
.nf-links-h { font: 400 15px/1 var(--f-ui); color: var(--ink-3); margin: 14px 0 0; }
.nf-links ol { list-style: none; margin: 0; padding: 0; }
.nf-links a { display: flex; align-items: baseline; gap: 0 18px; padding: 20px 0 18px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .3s; }
.nf-ln { flex: none; width: 34px; font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .1em; }
.nf-lt { flex: none; font: 600 clamp(30px, 3vw, 46px)/1.2 var(--f-display); transition: color .3s; }
html[lang="fr"] .nf-lt, html[lang="en"] .nf-lt { font-weight: 500; }
.nf-links .dots { margin-inline: 0; }
.nf-ld { flex: 0 1 auto; font: 400 16px/1.5 var(--f-ui); color: var(--ink-3); text-align: end; }
.nf-links .arr { flex: none; font-size: 20px; }
.nf-links a:hover .nf-lt { color: var(--crimson); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ab-fiche { grid-column: 1 / span 4; }
  .ab-p1, .ab-p-rest { grid-column: 6 / span 7; }
  .ab-quote { grid-column: 5 / span 8; }
  .ab-val-t { grid-column: 3 / span 4; font-size: clamp(30px, 3.7vw, 58px); }   /* «Confidentialité» must fit four columns */
  .ab-val-d { grid-column: 7 / span 6; }
  .ab-office-fig { grid-column: 1 / span 5; }
  .ab-office-main { grid-column: 6 / span 7; }
  .ab-imprint { grid-template-columns: 1fr; }
  .pv-text, .pv-side { grid-column: 1 / -1; }
  .pv-side { position: static; padding-top: 0; }
  .pv-toc { display: none; }
  .pv-rights { margin-top: 46px; max-width: 36em; }
}

/* the base tablet index is laid out for the home page's five entries (3 + 2); this page has four */
@media (min-width: 961px) and (max-width: 1180px) {
  .pg-about .inpage ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-about .inpage li { border-top: 0; border-inline-start: 1px solid var(--rule); }
  .pg-about .inpage li a { padding-inline-start: 18px; }
  .pg-about .inpage li:first-child { border-inline-start: 0; }
  .pg-about .inpage li:first-child a { padding-inline-start: 0; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .pg-about .inpage ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-about .inpage li:nth-child(even) { border-inline-start: 1px solid var(--rule); }
  .pg-about .inpage li:nth-child(even) a { padding-inline-start: 18px; }
  .pg-about .inpage li:nth-child(odd) { border-inline-start: 0; }
  .pg-about .inpage li:nth-child(odd) a { padding-inline-start: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .ab-head { grid-template-columns: 1fr; }
  .ab-head .ch-title, .ab-head .ch-fr { grid-column: 1; }
  .ab-head .ch-fr { margin: 12px 0 0; font-size: 18px; }
  .ab .ch-title { font-size: clamp(42px, 11.6vw, 60px); }
  .ab-p { font-size: 17.5px; }
  html[lang="fr"] .ab-p, html[lang="en"] .ab-p { font-size: 18.5px; }
  .ab-prof-grid, .ab-acc-grid, .ab-office-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-fiche, .ab-p1, .ab-quote, .ab-p-rest, .ab-seal, .ab-clauses, .ab-office-fig, .ab-office-main { grid-column: 1; grid-row: auto; }
  .ab-fiche { position: static; margin-bottom: 34px; }
  .ab-p1 { font-size: 20px; }
  html[lang="fr"] .ab-p1, html[lang="en"] .ab-p1 { font-size: 21px; }
  .ab-quote { margin: 26px 0 32px; padding: 24px 0 26px; }
  .ab-quote::before { font-size: 64px; margin-bottom: 8px; }
  .ab-quote p { font-size: 27px; line-height: 1.7; }
  html[lang="fr"] .ab-quote p, html[lang="en"] .ab-quote p { font-size: 28px; line-height: 1.3; }
  .ab-sig-n { font-size: 30px; }
  .ab-seal { position: static; padding-top: 4px; margin-bottom: 40px; }
  .ab-seal-disc { width: 196px; padding: 10px; }
  .ab-seal-disc::before { inset: -8px; }
  .ab-seal figcaption { margin-top: 22px; }
  .ab-clause p { font-size: 17.5px; }
  html[lang="fr"] .ab-clause p, html[lang="en"] .ab-clause p { font-size: 18.5px; }
  .ab-val { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .ab-val-n, .ab-val-t, .ab-val-d { grid-column: 1; }
  .ab-val-n { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; }
  .ab-val-num { font-size: 52px; }
  .ab-val-t { font-size: 38px; }
  .ab-val-d { font-size: 17.5px; padding-top: 2px; }
  html[lang="fr"] .ab-val-d, html[lang="en"] .ab-val-d { font-size: 18.5px; }
  .ab-office-fig { position: static; margin-bottom: 34px; }
  .ab-frame { aspect-ratio: 4 / 3; max-height: none; }
  .ab-ways a { font-size: 16.5px; align-items: flex-end; }   /* a label that wraps keeps its leader on the last line */
  .ab-ways .dots { transform: translateY(-.55em); }
  .ab-w-v .arr { line-height: 1.35; }
  .ab-act .btn-line { width: 100%; justify-content: space-between; padding-block: 16px 17px; }
  .ab-w-v .num { font-size: 19px; }
  .pv { padding-top: 44px; }
  .pv-art { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .pv-mark { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; }
  .pv-num { font-size: 54px; }
  .pv-body p { font-size: 17.5px; }
  html[lang="fr"] .pv-body p, html[lang="en"] .pv-body p { font-size: 18.5px; }
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-main, .nf-folio { grid-column: 1; }
  .nf-folio { grid-row: 1; justify-items: start; border-inline-start: 0; margin-bottom: 26px; gap: 10px; }
  .nf-folio-n { font-size: 132px; }
  .nf .ch-label { display: none; }
  .nf-h { font-size: clamp(44px, 12.4vw, 62px); }
  html[lang="fr"] .nf-h, html[lang="en"] .nf-h { font-size: clamp(42px, 12vw, 60px); }
  .nf-links a { flex-wrap: wrap; row-gap: 4px; }
  .nf-lt { font-size: 30px; }
  .nf-links .dots { display: none; }
  .nf-links .arr { margin-inline-start: auto; }
  .nf-ld { flex-basis: 100%; order: 5; padding-inline-start: 52px; text-align: start; }
}

/* ================================================================ ORDER («طلب ترجمة», folio 08) — .od-
   A formal sheet in four numbered sections, a progress line made of the step titles, a live copy beside it.
   Rules and type only: no cards, pills, tiles or icons. */

.pg-order .pagehead .deck { max-width: 36em; }
.od { margin-top: clamp(40px, 4.4vw, 64px); }
.od-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.od-main { grid-column: 1 / span 8; min-width: 0; }
.od-copy { grid-column: 9 / span 4; min-width: 0; position: sticky; top: 84px; padding-top: 6px; }

/* ---------- progress line: the four step titles ---------- */
.od-prog { list-style: none; margin: 0 0 clamp(22px, 2.6vw, 34px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); position: relative; }
.od-prog li { position: relative; border-inline-start: 1px solid var(--rule); }
.od-prog li:first-child { border-inline-start: 0; }
.od-prog li::before { content: ""; position: absolute; inset: -2px 0 auto 0; height: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .8s var(--ease), opacity .5s; }
html[dir="rtl"] .od-prog li::before { transform-origin: right; }
html[dir="ltr"] .od-prog li::before { transform-origin: left; }
.od-prog li.is-on::before { transform: scaleX(1); }
.od-prog li.is-done::before { transform: scaleX(1); opacity: .38; }
.od-prog button { display: grid; align-content: start; gap: 7px; width: 100%; height: 100%; padding: 15px 18px 18px; text-align: start; transition: background .4s var(--ease); }
.od-prog li:first-child button { padding-inline-start: 0; }
.od-prog button:disabled { cursor: default; }
.od-prog button:not(:disabled):hover { background: var(--paper-2); }
.od-prog li:first-child button:not(:disabled):hover { background: none; }
.od-pn { font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; transition: color .4s; }
.od-pt { font: 600 23px/1.3 var(--f-display); color: var(--ink-3); transition: color .4s; }
html[lang="fr"] .od-pt, html[lang="en"] .od-pt { font-weight: 600; font-size: 24px; line-height: 1.12; }
.od-pd { font: 400 14.5px/1.5 var(--f-ui); color: var(--ink-3); }
.od-prog .is-on .od-pn, .od-prog .is-done .od-pn { color: var(--crimson); }
.od-prog .is-on .od-pt { color: var(--ink); }
.od-prog .is-done .od-pt { color: var(--ink-2); }
.od-prog button:not(:disabled):hover .od-pt { color: var(--crimson); }

/* ---------- the sheet ---------- */
.od-form { margin: 0; }
.od-lh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 30px; align-items: start; padding-bottom: 20px; margin-bottom: clamp(26px, 2.8vw, 38px); border-bottom: 1px solid var(--rule); }
.od-to { font: 600 clamp(23px, 1.9vw, 29px)/1.45 var(--f-display); margin: 0; }
.od-to span { display: block; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); margin-top: 2px; }
.od-date { margin: 0; padding-top: 8px; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
html[lang="fr"] .od-date, html[lang="en"] .od-date { font: italic 400 17px/1.4 var(--f-latin); }
.od-subj { grid-column: 1 / -1; margin: 12px 0 0; font: 500 17px/1.5 var(--f-ui); color: var(--ink); }
.od-subj span { color: var(--crimson); margin-inline-end: .25em; }

.od-step { min-width: 0; }
.od-step.is-in { animation: odIn .65s var(--ease) both; }
@keyframes odIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.od-sh { display: flex; align-items: baseline; gap: 16px; margin: 0 0 clamp(20px, 2.4vw, 30px); outline: none; }
.od-sh .cl-ord { flex: none; }
.od-sh .od-st { margin-inline-end: auto; }
.od-st { font: 600 clamp(34px, 3.1vw, 48px)/1.2 var(--f-display); }
html[lang="fr"] .od-st, html[lang="en"] .od-st { font-weight: 500; line-height: 1.05; }
.od-sn { white-space: nowrap; font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; direction: ltr; unicode-bidi: isolate; }
.od-opt { color: var(--ink-3); font-weight: 400; }
.od-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 2.8vw, 44px); align-items: start; }
.od-form .f { margin-bottom: 26px; }
.od-form .in[dir="ltr"] { font-family: var(--f-latin-text); font-size: 20px; font-feature-settings: "lnum"; letter-spacing: .02em; }
.od-form .in::placeholder { color: var(--ink-3); opacity: .55; }
/* an Arabic name or note typed on /fr/ or /en/ falls back to Noto Naskh Arabic, never to a system font */
html[lang="fr"] .od-form .in:not([dir="ltr"]), html[lang="en"] .od-form .in:not([dir="ltr"]) { font-family: "EB Garamond", "Noto Naskh Arabic", Georgia, serif; }
html[dir="rtl"] .od-g2-n .in { text-align: right; }

/* step 1 — numbered list of the areas */
.od-svcf { margin-bottom: 30px !important; }
.od-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.od-row { position: relative; display: grid; grid-template-columns: 18px 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 10px 13px;
  margin-inline: -10px; cursor: pointer; transition: background .35s var(--ease); }
.od-svc li { border-bottom: 1px solid var(--rule); }
.od-svc li:last-child { border-bottom-color: var(--rule-2); }
.od-row input { position: absolute; opacity: 0; pointer-events: none; }
.od-mark { position: relative; width: 16px; height: 16px; margin-top: 9px; border: 1px solid var(--ink-3); border-radius: 50%; transition: border-color .3s; }
.od-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--crimson); transform: scale(0); transition: transform .4s var(--ease); }
.od-rn { font: 400 25px/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--ink-3); padding-top: 4px; transition: color .3s; }
.od-rb { min-width: 0; }
.od-rl { display: flex; align-items: baseline; }
.od-rt { flex: none; max-width: 68%; font: 600 22px/1.45 var(--f-display); transition: color .3s; }
html[lang="fr"] .od-rt, html[lang="en"] .od-rt { font-weight: 600; font-size: 23px; line-height: 1.25; }
.od-ro { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 400 17px/1.3 var(--f-latin); color: var(--ink-3); text-align: end; }
/* explicit family: on /fr/ and /en/ var(--f-text) is EB Garamond, which has no Arabic glyphs */
.od-ro[lang="ar"] { font: 400 16.5px/1.5 "Noto Naskh Arabic", serif; font-style: normal; }
.od-rx { display: block; margin-top: 2px; font: 400 14.5px/1.55 var(--f-ui); color: var(--ink-3); }
.od-row:hover { background: var(--paper-2); }
.od-row:hover .od-rt { color: var(--crimson); }
.od-row:has(input:checked) { background: rgba(142, 21, 34, .045); }
.od-row:has(input:checked) .od-rt, .od-row:has(input:checked) .od-rn { color: var(--crimson); }
.od-row input:checked ~ .od-mark { border-color: var(--crimson); }
.od-row input:checked ~ .od-mark::after { transform: scale(1); }
.od-row input:focus-visible ~ .od-mark { outline: 2px solid var(--crimson); outline-offset: 3px; }
.od-svcf.is-bad .od-svc { border-top-color: var(--crimson); }
.od-doc { max-width: 620px; }

/* step 2 */
.od-ticks { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 10px; min-height: 48px; border-bottom: 1px solid var(--rule-2); }
.od-tick { margin: 0 0 8px; align-items: center; font: 400 18px/1.4 var(--f-ui); color: var(--ink); flex-wrap: nowrap; }
.od-tick input { margin-top: 0; }
.od-tick i { font: italic 400 16px/1 var(--f-latin); color: var(--ink-3); margin-inline-start: .35em; }
.od-tick i[lang="ar"] { font: 400 16px/1 var(--f-ui); font-style: normal; }
.od-tick.is-off { color: var(--ink-3); cursor: default; opacity: .5; }
.od-tof.is-bad .od-ticks { border-bottom-color: var(--crimson); }
.od-urg .seg { justify-self: start; margin-top: 4px; }
.od-urg .seg span { padding: 12px 22px 13px; font-size: 17px; }
.od-g2-n .in { max-width: 220px; }

/* step 3 — the drop area drawn with a dashed rule, then the register */
.od-drop { position: relative; display: grid; justify-items: center; gap: 10px; padding: clamp(32px, 4.2vw, 58px) 22px; text-align: center; cursor: pointer;
  border: 1px dashed var(--ink-3); transition: border-color .35s, background .35s; }
.od-drop::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); pointer-events: none; transition: border-color .35s; }
.od-drop:hover, .od-drop.is-over { border-color: var(--crimson); background: rgba(142, 21, 34, .035); }
.od-drop.is-over::before { border-color: rgba(142, 21, 34, .25); }
.od-drop:focus-within { outline: 2px solid var(--crimson); outline-offset: 3px; }
.od-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.od-dt { font: 600 clamp(25px, 2.2vw, 32px)/1.4 var(--f-display); }
html[lang="fr"] .od-dt, html[lang="en"] .od-dt { font-weight: 500; line-height: 1.15; }
.od-dh { font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.od-pick { margin-top: 10px; pointer-events: none; }
.od-drop:hover .od-pick { background: var(--ink); color: var(--paper); }
.od-filesf.is-bad .od-drop { border-color: var(--crimson); }
.od-reg { margin-top: 28px; }
.od-reg-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font: 500 15px/1 var(--f-ui); color: var(--ink-2); }
.od-reg-n { font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }
.od-reg-n b { font-weight: 400; color: var(--crimson); font-size: 15px; }
.od-files { list-style: none; margin: 0; padding: 0; }
.od-files li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; column-gap: 16px; align-items: baseline; padding: 12px 0 11px; border-bottom: 1px solid var(--rule); animation: odIn .45s var(--ease) both; }
.od-fn { font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .06em; }
.od-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 16px/1.45 var(--f-ui); }
.od-fmeta { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.od-fx { font: 400 12px/1 var(--f-mono); letter-spacing: .08em; }
.od-fmeta bdi { font-family: var(--f-latin-text); font-size: 15px; font-feature-settings: "lnum"; color: var(--ink-2); }
.od-farr { font-family: var(--f-latin); color: var(--ink-3); padding-inline: .2em; }
.od-fmeta small { font-size: 13px; color: var(--ok); }
.od-rm { font: 500 14px/1 var(--f-ui); color: var(--crimson); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.od-rm:hover { color: var(--crimson-deep); }
.od-reg-empty { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule); font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.od-bring { margin: 20px 0 6px; }
.od-filesf > .err { display: block; margin-top: 12px; }
.od-filesf > .err:empty { display: none; }
.od-secure { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font: 400 14.5px/1.75 var(--f-ui); color: var(--ink-3); }

/* step 4 */
.od-same { margin: -8px 0 22px; }
.od-consent { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.od-sign { margin: 26px 0 0; font: 400 19px/1.7 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .od-sign, html[lang="en"] .od-sign { font: italic 400 20px/1.5 var(--f-latin-text); }

/* nav, upload line */
.od-nav { display: flex; align-items: center; gap: 14px 26px; margin-top: clamp(28px, 3.2vw, 42px); padding-top: 24px; border-top: 1px solid var(--rule); }
.od-count { margin: 0; font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; direction: ltr; unicode-bidi: isolate; }
.od-count b { font-weight: 400; color: var(--crimson); font-size: 17px; }
.od-next, .od-send { margin-inline-start: auto; }
html[dir="rtl"] .od-prev:hover > .arr { transform: translateX(6px); }
html[dir="ltr"] .od-prev:hover > .arr { transform: translateX(-6px); }
.od-up { display: grid; gap: 9px; margin-top: 18px; }
.od-up-t { font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.od-up-line { position: relative; height: 1px; background: var(--rule); }
.od-up-line i { position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--crimson); transform: scaleX(0); transition: transform .3s linear; }
html[dir="rtl"] .od-up-line i { transform-origin: right; }
html[dir="ltr"] .od-up-line i { transform-origin: left; }
.od-done .slip { min-height: 300px; }
.od-done .slip .deck { max-width: 30em; }
.od-done .slip-act .btn-ink { padding: 16px 24px 17px; }

.od-alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin: 26px 0 0; font: 400 16px/1.75 var(--f-ui); color: var(--ink-2); }
.od-alt .num { font-size: 18px; }

/* ---------- the live copy «نسخة الطلب» ---------- */
.od-cs { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: 28px 26px 24px; box-shadow: 0 1px 0 var(--rule), 0 26px 50px -40px rgba(60, 30, 20, .35); }
.od-cs::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); pointer-events: none; }
.od-cstamp { position: absolute; top: 16px; width: 84px; color: var(--crimson); opacity: .16; transform: rotate(-14deg); pointer-events: none; direction: ltr; }
.od-copy.is-sealed .od-cstamp { opacity: .42; animation: odSeal 1.1s var(--ease) both; }
html[dir="rtl"] .od-cstamp { left: 18px; }
html[dir="ltr"] .od-cstamp { right: 18px; }
@keyframes odSeal { 0% { opacity: 0; transform: rotate(-4deg) scale(1.4); } 55% { opacity: .5; transform: rotate(-14deg) scale(.95); } 100% { opacity: .42; transform: rotate(-14deg) scale(1); } }
.od-ct { margin: 0; font: 600 30px/1.2 var(--f-display); }
html[lang="fr"] .od-ct, html[lang="en"] .od-ct { font-weight: 500; font-size: 31px; line-height: 1.05; }
.od-cref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 0; font: 400 13.5px/1.3 var(--f-ui); color: var(--ink-3); }
.od-cref b { font: 400 15px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); direction: ltr; unicode-bidi: isolate; }
.od-cref b.is-set { color: var(--crimson); font-weight: 500; font-size: 18px; }
.od-cref small { flex-basis: 100%; font-size: 12.5px; }
.od-dl { margin: 22px 0 0; border-top: 1px solid var(--ink); }
.od-dl > div { display: flex; align-items: baseline; padding: 9px 0 8px; border-bottom: 1px solid var(--rule); }
.od-dl dt { flex: none; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); }
.od-dl .dots { min-width: 1em; margin-inline: .5em; }
.od-dl dd { margin: 0; max-width: 66%; text-align: end; font: 500 15.5px/1.45 var(--f-ui); color: var(--ink); overflow-wrap: anywhere; transition: color 1.2s var(--ease); }
.od-dl dd.is-empty { color: var(--ink-3); }
.od-dl dd.is-new { animation: odNew 1.4s var(--ease); }
@keyframes odNew { 0% { color: var(--crimson); } 100% { color: var(--ink); } }
.od-dl dd .num { font-size: 17px; }
.od-cnote { margin: 16px 0 0; font: 400 13.5px/1.65 var(--f-ui); color: var(--ink-3); }
.od-links { list-style: none; margin: 22px 0 0; padding: 0; }
.od-links a { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 16.5px/1.3 var(--f-ui); transition: color .3s; }
.od-links a:hover { color: var(--crimson); }
.od-links .num { font-size: 18px; }

@media (max-height: 820px) and (min-width: 1181px) { .od-copy { position: static; } }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .od-main { grid-column: 1 / span 12; }
  .od-copy { grid-column: 1 / span 12; position: static; margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 var(--gap); align-items: start; }
  .od-links { margin-top: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .od { margin-top: 38px; }
  .od-prog { margin-bottom: 20px; }
  .od-prog button, .od-prog li:first-child button { padding: 12px 8px 14px; gap: 6px; }
  .od-prog li:first-child button { padding-inline-start: 0; }
  .od-pt, html[lang="fr"] .od-pt, html[lang="en"] .od-pt { font: 500 14.5px/1.3 var(--f-ui); }
  .od-pd { display: none; }
  .od-lh { grid-template-columns: 1fr; padding-bottom: 18px; }
  .od-form:not([data-at="0"]) .od-lh { display: none; }
  .od-date { padding-top: 0; order: -1; font-size: 14px; }
  .od-to { font-size: 22px; }
  .od-st { font-size: 32px; }
  html[lang="fr"] .od-st, html[lang="en"] .od-st { font-size: 34px; }
  .od-g2 { grid-template-columns: 1fr; }
  .od-row { grid-template-columns: 16px 30px minmax(0, 1fr); column-gap: 10px; padding: 13px 8px 12px; margin-inline: -8px; }
  .od-mark { margin-top: 8px; }
  .od-rn { font-size: 21px; }
  .od-rl .dots, .od-ro { display: none; }
  .od-rt { flex: 1 1 auto; min-width: 0; max-width: none; font-size: 21px; line-height: 1.45; }
  .od-sn { display: none; }
  html[lang="fr"] .od-rt, html[lang="en"] .od-rt { font-size: 22px; }
  .od-rx { font-size: 14px; }
  .od-ticks { gap: 2px 20px; }
  .od-urg .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .od-urg .seg span { text-align: center; }
  .od-g2-n { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .od-g2-n .f-l { min-height: 2.6em; }
  .od-dt { font-size: 23px; }
  .od-files li { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "n name rm" ". meta meta"; row-gap: 2px; }
  .od-fn { grid-area: n; } .od-fname { grid-area: name; } .od-fmeta { grid-area: meta; flex-wrap: wrap; white-space: normal; } .od-rm { grid-area: rm; }
  .od-nav { flex-wrap: wrap; }
  .od-next, .od-send { order: -1; flex: 1 1 100%; justify-content: space-between; margin-inline-start: 0; white-space: normal; }
  .od-prev { padding: 11px 16px 12px; }
  .od-prev { margin-inline-end: auto; }
  .od-alt { font-size: 15.5px; }
  .od-copy { display: block; margin-top: 40px; }
  .od-cs { padding: 24px 20px 20px; }
  .od-cstamp { width: 64px; top: 14px; }
  html[dir="rtl"] .od-cstamp { left: 14px; }
  html[dir="ltr"] .od-cstamp { right: 14px; }
  .od-ct { padding-inline-end: 70px; }
  html[lang="fr"] .od-ct, html[lang="en"] .od-ct { font-size: 28px; }
  .od-cs::before { inset: 6px; }
  .od-links { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .od-step.is-in, .od-files li, .od-dl dd.is-new { animation: none; } }

/* pointer to the shop, above the sheet: a ruled line (label · text · link) */
.od-store { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 28px; margin: 0 0 clamp(30px, 3.4vw, 48px);
  padding: 16px 0 17px; border-block: 1px solid var(--rule); }
.od-store-k { font: 700 15px/1.4 var(--f-ui); color: var(--crimson); white-space: nowrap; }
.od-store-p { font: 400 16.5px/1.75 var(--f-text); color: var(--ink-2); max-width: 60em; }
html[lang="fr"] .od-store-p, html[lang="en"] .od-store-p { font-size: 17.5px; line-height: 1.55; }
.od-store .lnk { white-space: nowrap; font-size: 16px; }
@media (max-width: 900px) { .od-store { grid-template-columns: minmax(0, 1fr); gap: 8px; } .od-store .lnk { white-space: normal; justify-self: start; } }

/* ================================================================ BOOKING («حجز موعد», folio 09) — .bk-
   An appointment register: the month as a ruled calendar beside the chosen day's hours (dot leaders), then a
   sheet addressed to the translator. Rules and type only: no cards, pills, tiles or icons. */

.pg-booking .pagehead .deck { max-width: 34em; }
html[lang="fr"] .pg-booking .h1-page em, html[lang="en"] .pg-booking .h1-page em { white-space: nowrap; }   /* never «rendez-» / «vous» */

/* ---------- clause heads (أولًا / ثانيًا · I. / II.) ---------- */
.bk { margin-top: clamp(46px, 5.6vw, 84px); }
.bk2 { margin-top: clamp(72px, 8.4vw, 128px); }
.bk-sh { display: flex; align-items: baseline; gap: 16px; margin: 0; padding-top: 22px; border-top: 1px solid var(--ink); outline: none; }
.bk-sh .cl-ord { flex: none; }
.bk-st { font: 600 clamp(34px, 3.1vw, 48px)/1.2 var(--f-display); margin-inline-end: auto; }
html[lang="fr"] .bk-st, html[lang="en"] .bk-st { font-weight: 500; line-height: 1.05; }
.bk-sn { white-space: nowrap; font: 400 13px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; direction: ltr; unicode-bidi: isolate; }

/* ---------- the register: calendar ↔ hours ---------- */
.bk-reg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(28px, 3.2vw, 46px); align-items: start; }
.bk-cal { grid-column: 1 / span 7; min-width: 0; }
.bk-slots { grid-column: 9 / span 4; min-width: 0; }

/* month head */
.bk-mh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 18px; }
.bk-month { margin: 0; display: flex; align-items: baseline; gap: .32em; font: 600 clamp(42px, 3.9vw, 62px)/1.12 var(--f-display); }
html[lang="fr"] .bk-month, html[lang="en"] .bk-month { font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.bk-year { font: 400 .6em/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--ink-3); letter-spacing: .02em; }
.bk-mnav { display: flex; gap: 26px; padding-bottom: 6px; }
.bk-mnav button { display: inline-flex; align-items: center; gap: .55em; font: 500 15.5px/1 var(--f-ui); color: var(--ink-2); padding: 8px 0 7px;
  border-bottom: 1px solid var(--rule-2); transition: color .3s, border-color .3s; }
.bk-mnav button:not(:disabled):hover { color: var(--crimson); border-color: var(--crimson); }
.bk-mnav button:disabled { color: var(--ink-3); border-color: transparent; opacity: .45; cursor: default; }
html[dir="rtl"] .bk-mnav [data-cal-prev]:not(:disabled):hover .arr { transform: translateX(6px); }
html[dir="ltr"] .bk-mnav [data-cal-prev]:not(:disabled):hover .arr { transform: translateX(-6px); }
html[dir="rtl"] .bk-mnav [data-cal-next]:not(:disabled):hover .arr { transform: translateX(-6px); }
html[dir="ltr"] .bk-mnav [data-cal-next]:not(:disabled):hover .arr { transform: translateX(6px); }

/* weekday names */
.bk-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.bk-wd span { padding: 11px 12px 10px; font: 400 15px/1 var(--f-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: clip; }
html[lang="fr"] .bk-wd span, html[lang="en"] .bk-wd span { font: italic 400 17px/1 var(--f-latin); }
.bk-wd b { font-weight: inherit; }
.bk-wd .s { display: none; }

/* the days: a ledger ruled in hairlines */
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: calc(5 * clamp(74px, 6.3vw, 96px)); }
.bk-day, .bk-pad { position: relative; min-height: clamp(74px, 6.3vw, 96px); border-bottom: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.bk-days > :nth-child(7n + 1) { border-inline-start: 0; }
.bk-day { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 11px 12px 10px; text-align: start;
  transition: background .3s var(--ease), color .3s; }
.bk-dn { font: 500 clamp(25px, 2.1vw, 33px)/1 var(--f-latin); font-feature-settings: "lnum"; transition: color .3s; }
.bk-dfoot { align-self: stretch; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-height: 17px; }
.bk-df { margin-inline-start: auto; font: italic 500 17px/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--crimson); }
.bk-tdy { font: 500 12.5px/1 var(--f-ui); color: var(--crimson); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bk-day.is-today::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--crimson); }
.bk-day.is-open:hover { background: var(--paper-2); }
.bk-day.is-open:hover .bk-dn { color: var(--crimson); }
.bk-day:disabled { cursor: default; }
.bk-day.is-past .bk-dn, .bk-day.is-out .bk-dn { color: var(--ink-3); opacity: .34; }
.bk-day.is-closed .bk-dn, .bk-day.is-full .bk-dn { color: var(--ink-3); opacity: .62; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-2); }
.bk-day.is-full .bk-df { color: var(--ink-3); opacity: .7; }
.bk-day.is-sel { background: var(--ink); color: var(--paper); }
.bk-day.is-sel:hover { background: var(--ink); }
.bk-day.is-sel .bk-dn, .bk-day.is-sel:hover .bk-dn { color: var(--paper); }
.bk-day.is-sel .bk-df, .bk-day.is-sel .bk-tdy { color: var(--paper); opacity: .72; }
.bk-day:focus-visible { outline: 2px solid var(--crimson); outline-offset: -3px; }
.bk:not([data-state="ready"]) .bk-days:empty { background: repeating-linear-gradient(180deg, transparent 0 calc(clamp(74px, 6.3vw, 96px) - 1px), var(--rule) calc(clamp(74px, 6.3vw, 96px) - 1px) clamp(74px, 6.3vw, 96px)); }

/* legend, set as a footnote line */
.bk-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; font: 400 14px/1.5 var(--f-ui); color: var(--ink-3); }
.bk-legend span { display: inline-flex; align-items: baseline; gap: 9px; }
.bk-lg-f { font: italic 500 17px/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--crimson); }
.bk-lg-x { font: 500 18px/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.bk-lg-t { display: inline-block; width: 22px; height: 2px; background: var(--crimson); align-self: center; }

/* the chosen day */
.bk-dh { padding-bottom: 4px; }
.bk-dl0 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.bk-dl0::before { content: ""; width: 34px; height: 1px; background: var(--crimson); }
.bk-dk { margin: 0; font: 600 clamp(38px, 3.3vw, 52px)/1.15 var(--f-display); }
html[lang="fr"] .bk-dk, html[lang="en"] .bk-dk { font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.bk-dd { margin: 6px 0 0; font: 500 21px/1.4 var(--f-ui); color: var(--ink); min-height: 1.4em; }
html[lang="fr"] .bk-dd, html[lang="en"] .bk-dd { font: italic 400 23px/1.3 var(--f-latin); }
.bk-dc { margin: 10px 0 0; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.bk-grp { margin-top: 24px; }
.bk-gh { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font: 500 15px/1 var(--f-ui); color: var(--ink-2); }
html[lang="fr"] .bk-gh, html[lang="en"] .bk-gh { font: italic 500 18px/1 var(--f-latin); }
.bk-gn { font: 400 12.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); font-style: normal; }
.bk-sl { list-style: none; margin: 0; padding: 0; }
.bk-sl li { border-bottom: 1px solid var(--rule); }
.bk-slot { position: relative; display: flex; align-items: baseline; width: calc(100% + 20px); margin-inline: -10px; padding: 11px 10px 10px;
  text-align: start; transition: background .3s var(--ease); }
.bk-tm { font: 500 24px/1 var(--f-latin); font-feature-settings: "lnum"; letter-spacing: .02em; transition: color .3s; }
.bk-ss { font: 400 15px/1 var(--f-ui); color: var(--ink-3); white-space: nowrap; transition: color .3s; }
html[lang="fr"] .bk-ss, html[lang="en"] .bk-ss { font: italic 400 17px/1 var(--f-latin); }
.bk-slot::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 2px; background: var(--crimson); transform: scaleY(0); transition: transform .4s var(--ease); }
.bk-slot:not(:disabled):hover { background: var(--paper-2); }
.bk-slot:not(:disabled):hover .bk-tm { color: var(--crimson); }
.bk-slot[aria-pressed="true"] { background: rgba(142, 21, 34, .055); }
.bk-slot[aria-pressed="true"]::before { transform: none; }
.bk-slot[aria-pressed="true"] .bk-tm, .bk-slot[aria-pressed="true"] .bk-ss { color: var(--crimson); }
.bk-slot[aria-pressed="true"] .dots { border-bottom-color: rgba(142, 21, 34, .45); }
.bk-slot:disabled { cursor: default; }
.bk-slot:disabled .bk-tm { color: var(--ink-3); opacity: .6; text-decoration: line-through; text-decoration-thickness: 1px; }
.bk-slot:disabled .dots { opacity: .5; }
.bk-slot:focus-visible { outline: 2px solid var(--crimson); outline-offset: -2px; }
.bk-slot.is-flash { animation: bkFlash 1.6s var(--ease); }
@keyframes bkFlash { 0%, 40% { background: rgba(142, 21, 34, .12); } 100% { background: transparent; } }
.bk-smsg { margin: 14px 0 0; font: 500 15.5px/1.5 var(--f-ui); color: var(--crimson); }
.bk-smsg:empty { display: none; }
.bk-alt { margin: 18px 0 0; }

/* ---------- clause II: the sheet ---------- */
.bk2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(28px, 3.2vw, 46px); align-items: start; }
.bk-form { grid-column: 1 / span 8; margin: 0; min-width: 0; }
.bk-side { grid-column: 10 / span 3; min-width: 0; }
.bk-lh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 30px; align-items: start; padding-bottom: 22px; margin-bottom: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.bk-to { font: 600 clamp(23px, 1.9vw, 29px)/1.45 var(--f-display); margin: 0; }
.bk-to span { display: block; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); margin-top: 2px; }
.bk-date { margin: 0; padding-top: 8px; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
html[lang="fr"] .bk-date, html[lang="en"] .bk-date { font: italic 400 17px/1.4 var(--f-latin); }
.bk-subj { grid-column: 1 / -1; margin: 12px 0 0; font: 500 17px/1.5 var(--f-ui); }
.bk-subj span { color: var(--crimson); margin-inline-end: .25em; }
.bk-form .f { margin-bottom: 26px; }
.bk-opt { color: var(--ink-3); font-weight: 400; }
.bk-modef .seg { justify-self: start; margin-top: 4px; }
.bk-modef .seg span { padding: 12px 22px 13px; font-size: 17px; }
.bk-topic { max-width: 560px; }
.bk-topic select:invalid { color: var(--ink-3); }
.bk-topic option { color: var(--ink); }
.bk-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 2.8vw, 44px); align-items: start; }
.bk-form .in[dir="ltr"] { font-family: var(--f-latin-text); font-size: 20px; font-feature-settings: "lnum"; letter-spacing: .02em; }
.bk-form .in::placeholder { color: var(--ink-3); opacity: .55; }
.bk-form .in:focus-visible { box-shadow: 0 1px 0 var(--crimson); }            /* a 2 px crimson underline for keyboard focus */
.bk-form textarea.in:focus-visible { box-shadow: 0 0 0 1px var(--crimson); }
.bk-form textarea.in { min-height: 96px; }
.bk-consent { margin-top: 4px; }
.bk-foot { display: grid; gap: 22px; justify-items: start; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.bk-sum { margin: 0; }
.bk-sum-k { display: block; margin-bottom: 8px; font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.bk-sum-v { display: block; font: 400 clamp(20px, 1.6vw, 24px)/1.85 var(--f-text); color: var(--ink); }
html[lang="fr"] .bk-sum-v, html[lang="en"] .bk-sum-v { font: 400 clamp(21px, 1.65vw, 25px)/1.5 var(--f-latin-text); }
.bk-sum-v b { font: 600 1em/1 var(--f-display); color: var(--crimson); }
html[lang="fr"] .bk-sum-v b, html[lang="en"] .bk-sum-v b { font: italic 500 1.06em/1 var(--f-latin); }
.bk-sum-v bdi { font-family: var(--f-latin); font-feature-settings: "lnum"; font-weight: 500; }
.bk-sum.is-empty .bk-sum-v { font: 400 17px/1.6 var(--f-ui); color: var(--ink-3); }

/* beside the sheet */
.bk-fig .frame { aspect-ratio: 4 / 4.6; }
.bk-side-l { margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--ink); font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.bk-side-t { margin: 0; font: 400 18px/1.95 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .bk-side-t, html[lang="en"] .bk-side-t { font-size: 19px; line-height: 1.6; }
.bk-dl { margin: 26px 0 0; border-top: 1px solid var(--rule); }
.bk-dl > div { display: grid; gap: 6px; padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.bk-dl dt { font: 400 13.5px/1 var(--f-ui); color: var(--ink-3); }
.bk-dl dd { margin: 0; }
.bk-dl dd a { font: 500 25px/1.1 var(--f-latin); text-decoration: none; transition: color .3s; }
.bk-dl dd a:hover { color: var(--crimson); }
.bk-hours { display: grid; gap: 2px; font: 500 15.5px/1.6 var(--f-ui); }
.bk-hours .num { font: 500 17px/1.4 var(--f-latin); font-feature-settings: "lnum"; }
.bk-side .notes { margin-top: 24px; padding-top: 0; border-top: 0; }
.bk-side .notes a { color: var(--crimson); }

/* after sending: the slip */
.bk2.is-done { margin-top: clamp(40px, 5vw, 70px); }
.bk-done { animation: tocIn .7s var(--ease) both; outline: none; }
.bk-done .slip h2 { padding-inline-end: 130px; }
.bk-sdl { margin: 0 0 26px; }
.bk-sdl > div { display: flex; align-items: baseline; padding: 9px 0 8px; border-bottom: 1px solid var(--rule); }
.bk-sdl dt { flex: none; font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.bk-sdl dd { margin: 0; text-align: end; font: 500 18.5px/1.55 var(--f-text); }   /* Mirza only from 20 px */
html[lang="fr"] .bk-sdl dd, html[lang="en"] .bk-sdl dd { font: 500 20px/1.3 var(--f-latin); }
.bk-sdl dd { min-width: 0; }
.bk-sdl dd bdi { font-family: var(--f-latin); font-feature-settings: "lnum"; }
html[lang="ar"] .bk-sdl dd bdi { font-size: 1.14em; font-weight: 500; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .bk-cal { grid-column: 1 / span 7; }
  .bk-slots { grid-column: 8 / span 5; }
  .bk-form { grid-column: 1 / span 8; }
  .bk-side { grid-column: 9 / span 4; }
}
@media (max-width: 980px) {
  .bk-reg, .bk2-grid { grid-template-columns: 1fr; }
  .bk-cal, .bk-slots, .bk-form, .bk-side { grid-column: 1; }
  .bk-slots { margin-top: 46px; }
  .bk-side { margin-top: 50px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .bk-side > .bk-fig { grid-row: span 4; }
  .bk-side-l { margin-top: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .bk-sh { gap: 12px; padding-top: 18px; }
  .bk-st { font-size: 34px; }
  .bk-mh { padding-bottom: 14px; }
  .bk-month { font-size: 40px; }
  .bk-mnav { width: 100%; justify-content: space-between; padding-bottom: 0; }
  .bk-mnav button { font-size: 15px; }
  .bk-wd span { padding: 9px 0 8px; text-align: center; font-size: 12.5px; }
  html[lang="fr"] .bk-wd span, html[lang="en"] .bk-wd span { font-size: 15px; }
  .bk-wd .l { display: none; }
  .bk-wd .s { display: inline; }
  .bk-days { min-height: calc(5 * 58px); }
  .bk-day, .bk-pad { min-height: 58px; }
  .bk-day { align-items: center; padding: 8px 0 6px; }
  .bk-dn { font-size: 21px; }
  .bk-dfoot { justify-content: center; min-height: 14px; }
  .bk-df { margin-inline-start: 0; font-size: 13.5px; }
  .bk-tdy { display: none; }
  .bk:not([data-state="ready"]) .bk-days:empty { background: repeating-linear-gradient(180deg, transparent 0 57px, var(--rule) 57px 58px); }
  .bk-legend { gap: 6px 18px; font-size: 13px; }
  .bk-dk { font-size: 38px; }
  .bk-dd { font-size: 19px; }
  html[lang="fr"] .bk-dd, html[lang="en"] .bk-dd { font-size: 21px; }
  .bk-tm { font-size: 22px; }
  .bk-slot { padding-block: 12px 11px; }
  .bk-lh { grid-template-columns: 1fr; }
  .bk-date { padding-top: 2px; white-space: normal; }
  .bk-modef .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .bk-modef .seg span { display: grid; place-items: center; height: 100%; padding: 12px 6px 13px; font-size: 15px; line-height: 1.25; text-align: center; }
  .bk-g2 { grid-template-columns: 1fr; }
  .bk-foot { justify-items: stretch; }
  .bk-foot .btn-lg { width: 100%; justify-content: space-between; white-space: normal; text-align: start; }
  .bk-side { display: block; margin-top: 44px; }
  .bk-side-l { margin-top: 30px; }
  .bk-fig .frame { aspect-ratio: 4 / 3; }
  .bk-done .slip h2 { padding-inline-end: 84px; }
  .bk-sdl .dots { min-width: 1em; }
  .bk-sdl dd { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .bk-slot.is-flash { animation: none; } }

/* ================================================================ TRACK («تتبّع الطلب», folio 06) — .tr-
   A search slip in the manner of a gazette index, then the stamped register: one line per stage, rules and type only. */

/* the deck and the search slip share one measure, so their rules end on the same line */
.pg-track .pagehead .deck { max-width: none; }

/* ---------- search slip (first screen, under the deck) ---------- */
.tr-search { margin-top: clamp(28px, 3.2vw, 46px); }
.tr-s-h { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 0; padding: 12px 0 0; font: 400 15px/1.3 var(--f-ui); color: var(--ink-3); }
.tr-s-k { font: 400 12.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }
.tr-s-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; column-gap: clamp(22px, 2.6vw, 40px);
  align-items: end; padding: 22px 0 16px; border-bottom: 1px solid var(--rule); }
.tr-f { display: contents; }
.tr-f-ref > .f-l { grid-area: 1 / 1; } .tr-f-ref > .in { grid-area: 2 / 1; } .tr-f-ref > .tr-f-foot { grid-area: 3 / 1; }
.tr-f-l4 > .f-l { grid-area: 1 / 2; } .tr-f-l4 > .in { grid-area: 2 / 2; } .tr-f-l4 > .tr-f-foot { grid-area: 3 / 2; }
.tr-s-go { grid-area: 2 / 3; padding-bottom: 1px; }
.tr-f .f-l { font-size: 16px; margin-bottom: 4px; align-self: end; }
.tr-f-foot { display: grid; gap: 4px; padding-top: 9px; align-self: start; min-height: 30px; }
.tr-f-foot .f-h { font-size: 14px; }
.tr-search .in.tr-in { font: 400 clamp(22px, 1.9vw, 27px)/1.2 var(--f-mono); letter-spacing: .06em; min-height: 58px; padding: 12px 2px 9px;
  text-transform: uppercase; border-bottom-color: var(--ink); }
.tr-search .in.tr-in-l4 { letter-spacing: .42em; }
.tr-search .in.tr-in::placeholder { color: var(--ink-3); opacity: .45; text-transform: none; }
html[dir="rtl"] .tr-search .in.tr-in { text-align: right; }
.tr-search .is-bad .in.tr-in { border-bottom-color: var(--crimson); }
/* focus: the underline turns crimson and thickens (the ink underline above would otherwise mask .in:focus) */
.tr-search .in.tr-in:focus { border-bottom-color: var(--crimson); box-shadow: 0 1px 0 var(--crimson); }
.tr-search .in.tr-in:focus::placeholder { opacity: .25; }
.tr-s-go .btn-ink { white-space: nowrap; }
.tr-sup { font: 500 12px/1 var(--f-mono); color: var(--crimson); margin-inline-start: 3px; }
.tr-search .form-msg { margin: 14px 0 0; max-width: 40em; }

/* ---------- chapter 01: the register ---------- */
.tr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(36px, 4.5vw, 64px); align-items: start; }
.tr-out { grid-column: 1 / span 8; min-width: 0; scroll-margin-top: 84px; }
.tr-aside { grid-column: 9 / span 4; min-width: 0; display: grid; gap: clamp(34px, 3.4vw, 50px); padding-inline-start: clamp(0px, 1.6vw, 26px); padding-top: 6px; }

/* the sheet */
.tr-sheet { min-height: 200px; }
.tr-seal { position: absolute; top: clamp(24px, 3vw, 46px); width: clamp(98px, 8.6vw, 132px); color: var(--crimson);
  opacity: .36; transform: rotate(-14deg); pointer-events: none; direction: ltr; font-family: var(--f-latin); }
html[dir="rtl"] .tr-seal { left: clamp(26px, 4vw, 62px); }
html[dir="ltr"] .tr-seal { right: clamp(26px, 4vw, 62px); }
.tr-seal .tr-seal-rt { font-family: var(--f-latin); font-style: italic; font-weight: 600; }
.tr-sheet.is-spec .tr-seal { color: var(--ink-3); opacity: .13; }
.tr-sheet.is-stamped .tr-seal { animation: trSeal 1.1s var(--ease) both; }
@keyframes trSeal { 0% { opacity: 0; transform: rotate(-4deg) scale(1.4); } 55% { opacity: .5; transform: rotate(-14deg) scale(.95); } 100% { opacity: .36; transform: rotate(-14deg) scale(1); } }

.tr-hd { display: grid; gap: 14px; padding-inline-end: clamp(110px, 10vw, 160px); margin-bottom: clamp(24px, 2.6vw, 34px); }
.tr-hd p { margin: 0; }
.tr-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 400 16px/1.4 var(--f-ui); color: var(--ink-2); }
.tr-kind i { color: var(--crimson); font-style: normal; }
.tr-k { font: 400 14.5px/1.3 var(--f-ui); color: var(--ink-3); }
.tr-ref, .tr-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.tr-ref .tr-k, .tr-status .tr-k { min-width: 7.5em; }
html[lang="fr"] .tr-ref .tr-k, html[lang="fr"] .tr-status .tr-k, html[lang="en"] .tr-ref .tr-k, html[lang="en"] .tr-status .tr-k { min-width: 6.2em; }
.tr-ref b { font: 500 clamp(28px, 2.9vw, 42px)/1.05 var(--f-mono); letter-spacing: .05em; color: var(--crimson); direction: ltr; unicode-bidi: isolate; }
.tr-sheet.is-spec .tr-ref b { color: var(--ink-3); opacity: .7; }
.tr-v { font: 600 clamp(26px, 2.3vw, 35px)/1.3 var(--f-display); }
html[lang="fr"] .tr-v, html[lang="en"] .tr-v { font-weight: 500; line-height: 1.12; }
.tr-v-empty { font: 400 clamp(17px, 1.3vw, 19px)/1.8 var(--f-text); color: var(--ink-2); max-width: 26em; }
html[lang="fr"] .tr-v-empty, html[lang="en"] .tr-v-empty { line-height: 1.5; font-size: clamp(18px, 1.35vw, 20px); }

/* one line per stage */
.tr-reg { list-style: none; margin: 0; padding: 0; }
.tr-row { display: flex; align-items: baseline; padding: 16px 0 15px; border-bottom: 1px solid var(--rule); }
.tr-ord { flex: none; width: 5.4em; font: 400 15px/1 var(--f-ui); color: var(--crimson); }
html[lang="fr"] .tr-ord, html[lang="en"] .tr-ord { width: 3.6em; font: 500 18px/1 var(--f-latin); letter-spacing: .06em; }
.tr-lbl { flex: none; max-width: 58%; font: 600 clamp(22px, 1.85vw, 28px)/1.35 var(--f-display); transition: color .4s; }
html[lang="fr"] .tr-lbl, html[lang="en"] .tr-lbl { font-weight: 500; line-height: 1.15; }
.tr-st { flex: none; position: relative; font: 400 15.5px/1.3 var(--f-ui); color: var(--ink-2); white-space: nowrap; text-align: end; }
.tr-st[lang="fr"], .tr-st[lang="en"] { font: italic 400 18.5px/1.3 var(--f-latin); color: var(--ink-3); }
/* Arabic companion lines: Noto Naskh named explicitly — on /fr/ and /en/ --f-display and --f-text are Latin faces
   without Arabic glyphs, and Mirza is kept for display sizes (≥ 20 px) */
.tr-st[lang="ar"] { font: 400 17px/1.4 "Noto Naskh Arabic", "Mirza", serif; color: var(--ink-3); }
.tr-aside .leaders .ld-b[lang="ar"] { font-family: "Noto Naskh Arabic", "Mirza", serif; }
.tr-st .ok { font: 500 19px/1 var(--f-latin); color: var(--ink); margin-inline-end: 9px; }
.tr-row.is-done .tr-st { color: var(--ink-2); }
.tr-row.is-now .tr-lbl, .tr-row.is-now .tr-st { color: var(--crimson); }
.tr-row.is-now .tr-st { font-weight: 500; padding-inline-start: 58px; }
.tr-mark { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; color: var(--crimson); opacity: .88;
  transform: rotate(-12deg); direction: ltr; font-family: var(--f-latin); }
.tr-sheet.is-stamped .tr-mark { animation: trMark .9s var(--ease) .45s both; }
html[dir="rtl"] .tr-mark { right: 0; }
html[dir="ltr"] .tr-mark { left: 0; }
@keyframes trMark { 0% { opacity: 0; transform: rotate(-2deg) scale(1.6); } 60% { opacity: .95; transform: rotate(-12deg) scale(.94); } 100% { opacity: .88; transform: rotate(-12deg) scale(1); } }
.tr-row.is-todo .tr-lbl, .tr-row.is-todo .tr-ord { color: var(--ink-3); }
.tr-row.is-todo .tr-lbl { opacity: .62; }
.tr-row.is-todo .tr-st { color: var(--ink-3); }
.tr-row.is-todo .dots { opacity: .5; }
.tr-row.is-cancel .tr-ord { color: var(--ink-3); }

/* entry details: dot-leader pairs, two columns */
.tr-meta { margin: clamp(22px, 2.4vw, 32px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(26px, 3vw, 48px); }
.tr-m { display: flex; align-items: baseline; padding: 11px 0 10px; border-bottom: 1px solid var(--rule); min-width: 0; }
.tr-m dt { flex: 1 1 auto; display: flex; align-items: baseline; font: 400 15.5px/1.4 var(--f-ui); color: var(--ink-3); white-space: nowrap; }
.tr-m dt::after { content: ""; flex: 1 1 auto; min-width: 1.2em; border-bottom: 1px dotted var(--rule-2); transform: translateY(-.32em); margin-inline: .6em; }
.tr-m dd { margin: 0; flex: 0 1 auto; font: 500 17px/1.45 var(--f-text); color: var(--ink); text-align: end; }
html[lang="fr"] .tr-m dd, html[lang="en"] .tr-m dd { font: 500 18px/1.4 var(--f-latin-text); }
.tr-m dd .num { font-size: 1.1em; font-weight: 500; }
.tr-sheet.is-spec .tr-m dd { color: var(--ink-3); }

/* appointment: the day and the hour */
.tr-appt { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); padding: 6px 0 clamp(22px, 2.4vw, 30px); border-bottom: 1px solid var(--rule); }
.tr-appt > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tr-appt > div + div { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(20px, 2.6vw, 38px); margin-inline-start: clamp(20px, 2.6vw, 38px); }
.tr-day { margin: 0; font: 600 clamp(28px, 2.6vw, 40px)/1.35 var(--f-display); }
html[lang="fr"] .tr-day, html[lang="en"] .tr-day { font-weight: 500; line-height: 1.12; }
.tr-day .num { font-size: 1.04em; }
.tr-time { margin: 0; font: 400 clamp(48px, 4.6vw, 70px)/1 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: .01em; }
.tr-appt.is-gone .tr-day, .tr-appt.is-gone .tr-time { color: var(--ink-3); position: relative; justify-self: start; }
.tr-appt.is-gone .tr-day::after, .tr-appt.is-gone .tr-time::after { content: ""; position: absolute; inset-inline: -6px; top: 55%; height: 2px; background: var(--crimson); opacity: .85; }

/* office note (footnote of the entry), message line, actions */
.tr-fn { margin-top: clamp(20px, 2.2vw, 28px); padding-top: 14px; border-top: 1px solid var(--rule); }
.tr-fn p { margin: 0; font: 400 16px/1.75 var(--f-ui); color: var(--ink-2); }
.tr-fn b { font-weight: 700; color: var(--ink); }
.tr-sheet .form-msg { margin: 18px 0 0; }
.tr-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(28px, 3vw, 40px); }
.tr-again { margin-inline-start: auto; }
.tr-act button.lnk { text-align: start; }
.tr-nw { white-space: nowrap; }

/* ---------- aside: reference forms, appointment statuses, the office's lines ---------- */
.tr-as-h { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); margin: 0 0 6px; padding-top: 12px; border-top: 1px solid var(--ink); }
.tr-keys { list-style: none; margin: 0; padding: 0; }
.tr-keys li { display: flex; align-items: baseline; padding: 11px 0 10px; border-bottom: 1px solid var(--rule); font: 500 16.5px/1.4 var(--f-ui); }
.tr-keys .ref { flex: none; font: 500 14.5px/1 var(--f-mono); letter-spacing: .05em; color: var(--crimson); direction: ltr; unicode-bidi: isolate; }
.tr-aside .leaders { margin: 0; border-top: 0; }
.tr-aside .leaders li { font-size: 16.5px; }
.tr-aside .leaders .ld-b[lang="fr"], .tr-aside .leaders .ld-b[lang="en"] { font-size: 17px; }
.tr-ask { display: grid; gap: 16px; justify-items: start; }
.tr-ask .tr-as-h { justify-self: stretch; margin-bottom: 4px; }
.tr .notes { margin-top: clamp(40px, 4.6vw, 64px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tr-out { grid-column: 1 / -1; }
  .tr-aside { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); padding-inline-start: 0; margin-top: 50px; }
}
/* ---------- phone ---------- */
@media (max-width: 760px) {
  .tr-search { margin-top: 28px; }
  .tr-s-grid { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .tr-f > *, .tr-s-go { grid-area: auto !important; }
  .tr-f-l4 > .f-l { margin-top: 14px; }
  .tr-f-foot { min-height: 0; padding-top: 8px; }
  .tr-s-go { margin-top: 18px; }
  .tr-s-go .btn-ink { width: 100%; justify-content: space-between; }
  .tr-search .in.tr-in { font-size: 24px; min-height: 54px; }
  .tr-grid { margin-top: 30px; }
  .tr-seal { width: 78px; top: 16px; }
  html[dir="rtl"] .tr-seal { left: 14px; }
  html[dir="ltr"] .tr-seal { right: 14px; }
  .tr-hd { padding-inline-end: 72px; gap: 12px; }
  .tr-ref, .tr-status { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tr-ref .tr-k, .tr-status .tr-k { min-width: 0; }
  .tr-ref b { font-size: 27px; }
  .tr-v:not(.tr-v-empty) { font-size: 27px; }
  .tr-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); align-items: baseline; row-gap: 6px; padding: 14px 0 13px; }
  html[lang="fr"] .tr-row, html[lang="en"] .tr-row { grid-template-columns: 3em minmax(0, 1fr); }
  .tr-ord { width: auto; }
  .tr-row .dots { display: none; }
  .tr-lbl { max-width: none; font-size: 23px; }
  .tr-st { grid-column: 2; white-space: normal; }
  html[dir="rtl"] .tr-st { text-align: right; }
  html[dir="ltr"] .tr-st { text-align: left; }
  .tr-kind { flex-direction: column; gap: 2px; }
  .tr-kind i { display: none; }
  .tr-row.is-now .tr-st { padding-inline-start: 46px; min-height: 30px; display: flex; align-items: center; }
  .tr-mark { width: 38px; height: 38px; margin-top: -19px; }
  .tr-meta { grid-template-columns: minmax(0, 1fr); }
  .tr-m dt { white-space: normal; }
  .tr-appt { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .tr-appt > div + div { border-inline-start: 0; padding-inline-start: 0; margin-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
  .tr-day { font-size: 29px; }
  .tr-time { font-size: 54px; }
  .tr-act { flex-direction: column; align-items: stretch; gap: 18px; }
  .tr-act .btn-line { justify-content: center; }
  .tr-act .lnk { align-self: flex-start; }
  .tr-again { margin-inline-start: 0; }
  .tr-aside { grid-template-columns: minmax(0, 1fr); row-gap: 38px; margin-top: 46px; }
}
@media (prefers-reduced-motion: reduce) { .tr-sheet.is-stamped .tr-seal, .tr-sheet.is-stamped .tr-mark { animation: none; } }

/* ================================================================ REVIEWS — «آراء العملاء» (folio 05, readers' letters) */

.rv-front-act { gap: 16px 34px; }
.rv-head .ch-fr { text-align: start !important; }
/* the shared .ch-fr [lang=ar] rule uses --f-display, which is Cormorant on the FR/EN pages: keep Arabic in Mirza */
html[lang="fr"] .rv-head .ch-fr [lang="ar"], html[lang="en"] .rv-head .ch-fr [lang="ar"] { font-family: "Mirza", "Noto Naskh Arabic", serif; }

/* ---------- the switch bar: filter (all / in Arabic / in French) · «ترجمة الكل» ---------- */
.rv-anchor { display: block; height: 0; }
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px;
  margin-top: clamp(40px, 5vw, 76px); padding: 13px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid transparent;
  transition: border-color .3s; }
.rv-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px clamp(18px, 2vw, 30px); }
.rv-bar-k { font: 400 15px/1 var(--f-ui); color: var(--ink-3); padding-inline-end: clamp(16px, 1.8vw, 26px); border-inline-end: 1px solid var(--rule-2); }
.rv-filter button { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0 7px; font: 500 18px/1.2 var(--f-ui); color: var(--ink-2);
  background: linear-gradient(var(--crimson), var(--crimson)) 100% 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
html[dir="ltr"] .rv-filter button { background-position: 0 100%; }
.rv-filter button:hover { color: var(--ink); background-size: 100% 1px; }
.rv-filter button[aria-pressed="true"] { color: var(--crimson); background-size: 100% 1px; }
.rv-f-n { position: relative; top: -.45em; font: 500 14px/1 var(--f-latin); font-feature-settings: "lnum"; color: var(--ink-3); letter-spacing: .02em; }
.rv-filter button[aria-pressed="true"] .rv-f-n { color: var(--crimson); }
.rv-all { font: 500 17px/1.3 var(--f-ui); color: var(--ink); padding: 6px 0 5px; border-bottom: 1px solid var(--crimson); transition: color .3s; }
.rv-all:hover { color: var(--crimson); }
.rv-all .b, .rv-all[aria-pressed="true"] .a { display: none; }
.rv-all[aria-pressed="true"] .b { display: inline; }
.rv-all[aria-pressed="true"] { color: var(--crimson); }
@media (min-width: 761px) {
  .rv-bar { position: sticky; top: 58px; z-index: 20; background: rgba(244, 239, 230, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .rv-bar.is-stuck { border-bottom-color: var(--rule); }
}

/* ---------- the letters: two columns of pull quotes separated by hairline rules ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(44px, 6vw, 104px);
  background: linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 100% no-repeat; }
.rv { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding: clamp(24px, 2.4vw, 36px) 0 clamp(34px, 3.4vw, 52px); scroll-margin-top: 140px; }
.rv.is-new { animation: rvIn .9s var(--ease) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 18px; flex-wrap: wrap; margin-bottom: clamp(16px, 1.7vw, 24px); }
.rv-n { font: 400 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }
.rv-n b { font-weight: 500; color: var(--crimson); }
.rv-n-k { font: 500 15px/1 var(--f-latin); letter-spacing: 0; margin-inline-end: .4em; }   /* N° / No. in Cormorant, the figure in DM Mono */
.rv-orig { font: 400 14.5px/1.35 var(--f-ui); color: var(--ink-3); }
.rv-q { margin: 0; flex: 1; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.rv-q.is-out { opacity: 0; transform: translateY(6px); }
.rv-t { margin: 0; font: 500 clamp(23px, 1.95vw, 30px)/1.78 "Mirza", serif; color: var(--ink); text-wrap: pretty; animation: rvIn .5s var(--ease) both; }
.rv-t[lang="fr"], .rv-t[lang="en"] { font: italic 400 clamp(24px, 2.05vw, 31px)/1.42 var(--f-latin); letter-spacing: 0; }
.rv-qo, .rv-qc { color: var(--crimson); font-style: normal; }
.rv-t[lang="fr"] .rv-qo, .rv-t[lang="fr"] .rv-qc { font-family: var(--f-latin); }
.rv-qo { display: inline-block; width: .62em; margin-inline-start: -.62em; text-align: center; }
.rv-t[lang="en"] .rv-qo { width: .42em; margin-inline-start: -.42em; }
.rv-ft { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-top: clamp(18px, 1.8vw, 26px); }
.rv-who { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rv-dash { color: var(--crimson); font: 400 20px/1 var(--f-latin); }
.rv-name { font: 600 23px/1.2 "Mirza", serif; color: var(--ink); }
.rv-name.is-latin { font: 500 24px/1.1 var(--f-latin); }
.rv-city { font: 400 15px/1.2 var(--f-ui); color: var(--ink-3); }
.rv-city::before { content: "·"; color: var(--crimson); margin-inline-end: 10px; }
.rv-sw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.rv-sw button { padding: 3px 0 2px; font: 400 15px/1.3 var(--f-ui); color: var(--ink-3); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.rv-sw button[lang="fr"], .rv-sw button[lang="en"] { font: 400 16.5px/1.2 var(--f-latin); }
.rv-sw button:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.rv-sw button[aria-pressed="true"] { color: var(--crimson); border-bottom-color: var(--crimson); }
.rv-sw-k { font: 400 14px/1.3 var(--f-ui); color: var(--ink-3); padding-inline-start: 14px; border-inline-start: 1px solid var(--rule-2); transition: color .3s; }
.rv.is-tr .rv-sw-k { color: var(--crimson); }
.rv-empty { margin: 30px 0 0; font: 400 17px/1.6 var(--f-ui); color: var(--ink-3); }
.rv-reg .notes { margin-top: clamp(26px, 3vw, 44px); }

/* ---------- chapter 02: the blank letter and the publication terms ---------- */
.rv-share-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(34px, 4.5vw, 64px); align-items: start; }
.rv-sheet { grid-column: 1 / span 7; position: relative; cursor: pointer; background: var(--sheet); border: 1px solid var(--rule);
  padding: clamp(26px, 3.8vw, 58px) clamp(22px, 4.2vw, 66px) clamp(24px, 3.2vw, 46px); box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(60, 30, 20, .35); }
.rv-sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
.rv-to { margin: 0 0 14px; font: 600 clamp(24px, 2.1vw, 31px)/1.5 var(--f-display); padding-inline-end: 130px; }
html[lang="fr"] .rv-to, html[lang="en"] .rv-to { font-weight: 500; line-height: 1.25; }
.rv-to span { display: block; margin-top: 6px; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.rv-lines i { display: block; height: clamp(46px, 3.6vw, 56px); border-bottom: 1px solid var(--rule); transition: border-color .5s var(--ease); }
.rv-lines i:last-child { width: 58%; }
.rv-sheet:hover .rv-lines i { border-bottom-color: var(--rule-2); }
.rv-sigline { display: flex; align-items: baseline; margin: 30px 0 0; font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.rv-sigline .dots:last-child { margin-inline-end: 0; }
.rv-stamp { position: absolute; top: clamp(20px, 2.6vw, 40px); width: clamp(92px, 8vw, 122px); color: var(--crimson);
  opacity: .36; transform: rotate(-14deg); pointer-events: none; direction: ltr; font-family: var(--f-latin); transition: opacity .6s var(--ease), transform .8s var(--ease); }
html[dir="rtl"] .rv-stamp { left: clamp(24px, 3.6vw, 56px); }
html[dir="ltr"] .rv-stamp { right: clamp(24px, 3.6vw, 56px); }
.rv-stamp .st-mono { font-family: var(--f-latin); font-weight: 600; font-style: italic; }
.rv-sheet:hover .rv-stamp { opacity: .5; transform: rotate(-10deg); }
.rv-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.rv-sheet-hint { margin: 0; flex: 1 1 16em; font: 400 15px/1.6 var(--f-ui); color: var(--ink-3); }
.rv-terms { grid-column: 9 / span 4; padding-top: 4px; }
.rv-terms-h { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font: 400 15px/1 var(--f-ui); color: var(--ink-3); }
.rv-conds { list-style: none; margin: 0; padding: 0; }
.rv-cond { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.rv-cond h3 { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; font: 600 clamp(22px, 1.8vw, 26px)/1.3 var(--f-display); }
html[lang="fr"] .rv-cond h3, html[lang="en"] .rv-cond h3 { font-weight: 500; line-height: 1.12; }
.rv-cond p { margin: 0; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .rv-cond p, html[lang="en"] .rv-cond p { font-size: 17.5px; line-height: 1.55; }

/* ---------- the modal: a short letter ---------- */
/* the shared card frame (::before, inset 9px) is as tall as the visible card and is cut when a long form scrolls:
   for this letter it is drawn as a local background instead, so it runs the full height of the content */
.modal-card:has(.rv-m, .rv-ok)::before { display: none; }
.modal-card:has(.rv-m, .rv-ok) { background-color: var(--sheet); background-attachment: local; background-repeat: no-repeat;
  background-image: linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-size: calc(100% - 18px) 1px, calc(100% - 18px) 1px, 1px calc(100% - 18px), 1px calc(100% - 18px);
  background-position: 9px 9px, 9px calc(100% - 9px), 9px 9px, calc(100% - 9px) 9px; }
.rv-m-k { margin: 0 0 14px; font: 400 15px/1.3 var(--f-ui); color: var(--crimson); padding-inline-end: 48px; }
.rv-m h2 { padding-inline-end: 40px; }
.rv-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.rv-m-to { margin: 0 0 12px; font: 600 23px/1.45 var(--f-display); }
html[lang="fr"] .rv-m-to, html[lang="en"] .rv-m-to { font-weight: 500; line-height: 1.2; }
.rv-m-to span { display: block; margin-top: 4px; font: 400 14px/1.5 var(--f-ui); color: var(--ink-3); }
.rv-m-text { margin-bottom: 18px; }
.rv-form textarea.in { min-height: 172px; padding: 0 2px; border: 0; background-color: transparent; line-height: 43px; font-size: 19px;
  background-image: linear-gradient(transparent 42px, var(--rule-2) 42px); background-size: 100% 43px; background-position: 0 -7px; background-attachment: local; resize: vertical; }
.rv-form textarea.in:focus { background-color: rgba(142, 21, 34, .025); background-image: linear-gradient(transparent 42px, rgba(142, 21, 34, .4) 42px); }
.rv-form .is-bad textarea.in { background-image: linear-gradient(transparent 42px, rgba(142, 21, 34, .55) 42px); }
.rv-m-count { display: flex; justify-content: space-between; gap: 12px; }
.rv-m-count bdi { font: 400 13px/1.5 var(--f-mono); letter-spacing: .06em; transition: color .3s; }
.rv-m-count bdi.is-ok { color: var(--ok); }
.rv-m-sign { margin: 4px 0 6px; padding-top: 14px; border-top: 1px dotted var(--rule-2); font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.rv-form .row2 { gap: 0 24px; align-items: start; }   /* name and city underlines stay level when one shows an error */
.rv-m-foot { margin-top: 8px; }
.rv-ok .slip-stamp { top: 30px; }
.rv-ok h2 { padding-inline-end: 120px; }
.rv-ok .deck { padding-inline-end: 120px; }
.rv-ok .slip-act { margin-top: 28px; }

.no-js .rv-sw, .no-js .rv-bar, .no-js [data-rv-open], .no-js .rv-sheet-foot { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .rv-sheet { grid-column: 1 / span 7; }
  .rv-terms { grid-column: 8 / span 5; padding-inline-start: 10px; }
  .rv-ft { flex-direction: column; align-items: flex-start; gap: 10px; }   /* name above the switches in every letter, not only in some */
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .rv-front-act .btn-lg { width: 100%; justify-content: space-between; }
  .rv-bar { gap: 10px 20px; padding: 10px 0 12px; }
  .rv-bar-k { display: none; }
  .rv-filter { gap: 2px 22px; }
  .rv-filter button { font-size: 17px; }
  .rv-grid { grid-template-columns: 1fr; background: none; }
  .rv { padding: 22px 0 32px; scroll-margin-top: 80px; }
  .rv-t { font-size: 23px; line-height: 1.75; }
  .rv-t[lang="fr"], .rv-t[lang="en"] { font-size: 24px; line-height: 1.4; }
  .rv-qo { width: auto; margin-inline-start: 0; margin-inline-end: .14em; }   /* no hanging mark in a 16 px gutter */
  .rv-t[lang="fr"] .rv-qo, .rv-t[lang="en"] .rv-qo { width: auto; margin-inline-start: 0; margin-inline-end: .03em; }
  .rv-ft { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rv-sw { gap: 2px 14px; }
  .rv-share-grid { grid-template-columns: 1fr; }
  .rv-sheet, .rv-terms { grid-column: 1; }
  .rv-terms { margin-top: 44px; padding-inline-start: 0; }
  .rv-sheet { padding: 28px 20px 24px; }
  .rv-sheet::before { inset: 6px; }
  .rv-to { padding-inline-end: 84px; font-size: 23px; }
  .rv-stamp { width: 78px; top: 20px; }
  html[dir="rtl"] .rv-stamp { left: 18px; }
  html[dir="ltr"] .rv-stamp { right: 18px; }
  .rv-lines i { height: 44px; }
  .rv-sheet-foot .btn-lg { width: 100%; justify-content: space-between; white-space: normal; }
  .rv-form .row2 { grid-template-columns: 1fr; }
  .rv-ok .slip-stamp { top: auto; bottom: -8px; width: 88px; }   /* beside «إغلاق», clear of the title and the text */
  .rv-ok h2, .rv-ok .deck { padding-inline-end: 0; }
  .rv-ok .slip-act { padding-inline-end: 100px; }
}
@media (prefers-reduced-motion: reduce) { .rv-t, .rv.is-new { animation: none; } }

/* ================================================================ CONTACT (.ct-)
   The imprint at full size (a ledger of rules), the map as a plate, the message letter, numbered questions.
   Same grammar as the home page: rules, numbered chapters, clauses, dot leaders, plates, footnotes. */

.pg-contact .front-fig img { object-position: 43% 50%; }
.ct-front-act { margin-top: clamp(24px, 2.8vw, 40px); }
.ct .ch-head-split .ch-title { text-wrap: balance; }
/* Latin titles: the crimson words («le bureau», «the office») stay together on one line */
html[lang="fr"] .pg-contact .h1-page em, html[lang="en"] .pg-contact .h1-page em { white-space: nowrap; }

/* ---------- 01 · address and numbers: the ledger ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(36px, 4.6vw, 68px); align-items: start; }
.ct-imprint { grid-column: 1 / span 7; border-top: 1px solid var(--ink); }
.ct-row { display: block; padding: 18px 0 22px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.ct-k { display: block; font: 400 15px/1 var(--f-ui); color: var(--ink-3); margin: 0 0 12px; }
.ct-line { display: flex; align-items: baseline; min-width: 0; }
.ct-v { flex: none; min-width: 0; color: var(--ink); text-decoration: none; transition: color .35s var(--ease); }
.ct-row-big .ct-v { font: 400 clamp(46px, 5vw, 76px)/1 var(--f-latin); font-feature-settings: "lnum"; }
.ct-row-big .ct-v .num { letter-spacing: .005em; }
.ct-mail { font: 500 clamp(21px, 2vw, 30px)/1.2 var(--f-latin); flex: 0 1 auto; overflow-wrap: anywhere; }
.ct-line .dots { margin-inline: .9em; }
.ct-act { flex: none; font: 500 17px/1.3 var(--f-ui); color: var(--crimson); white-space: nowrap; }
.ct-act .arr { margin-inline-start: .35em; }
a.ct-row:hover .ct-v, .ct-mail:hover { color: var(--crimson); }
html[dir="rtl"] a.ct-row:hover .ct-act .arr { transform: translateX(-6px); }
html[dir="ltr"] a.ct-row:hover .ct-act .arr { transform: translateX(6px); }
.ct-copy { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ct-copy:hover { color: var(--crimson-deep); }
.ct-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-bottom: 1px solid var(--rule); }
.ct-pair .ct-row { border-bottom: 0; }
.ct-pair .ct-row + .ct-row { border-inline-start: 1px solid var(--rule); padding-inline-start: var(--gap); }
.ct-pair .ct-row:first-child { padding-inline-end: var(--gap); }
.ct-addr { margin: 0; font: 600 clamp(24px, 2.05vw, 30px)/1.45 var(--f-display); }
html[lang="fr"] .ct-addr, html[lang="en"] .ct-addr { font-weight: 500; line-height: 1.2; }
.ct-hours { margin: 0; display: grid; gap: 2px; }
.ct-h { display: flex; align-items: baseline; padding: 4px 0; font: 400 17px/1.45 var(--f-ui); color: var(--ink-2); }
.ct-h + .ct-h { border-top: 1px dotted var(--rule-2); }
.ct-h .dots { min-width: 1em; }
.ct-h-d { flex: 0 1 auto; }
.ct-h-t { flex: none; font: 500 20px/1.3 "Cormorant Garamond", "Zain", serif; font-feature-settings: "lnum"; color: var(--ink); white-space: nowrap; }
.ct-links { list-style: none; margin: 22px 0 0; padding: 0; }
.ct-links a { display: flex; align-items: baseline; padding: 9px 0; text-decoration: none; font: 500 17px/1.3 var(--f-ui); transition: color .3s; }
.ct-links a:hover { color: var(--crimson); }

/* the map, set as a plate */
.ct-map { grid-column: 9 / span 4; }
.ct-map-frame { position: relative; aspect-ratio: 3 / 3.9; border: 1px solid var(--rule); }
.ct-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) sepia(.22) contrast(.94) brightness(1.03); transition: filter .9s var(--ease); }
.ct-map-frame:hover iframe, .ct-map-frame:focus-within iframe { filter: none; }
.ct-map figcaption sup { line-height: 0; }
.ct-map figcaption sup a { font: 500 12px/1 var(--f-mono); color: var(--crimson); text-decoration: none; }
.ct-map-act { margin: 14px 0 0; }
.ct-coords .notes { margin-top: clamp(34px, 4vw, 56px); }

/* ---------- 02 · the message letter ---------- */
.ct-mgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(34px, 4.5vw, 64px); align-items: start; }
.ct-letter { grid-column: 1 / span 8; }
.ct-stamp { position: absolute; top: clamp(22px, 3vw, 46px); width: clamp(96px, 8.6vw, 128px); color: var(--crimson); opacity: .3;
  transform: rotate(-14deg); pointer-events: none; font-family: var(--f-latin); direction: ltr; }
html[dir="rtl"] .ct-stamp { left: clamp(26px, 4vw, 64px); }
html[dir="ltr"] .ct-stamp { right: clamp(26px, 4vw, 64px); }
.ct-stamp .st-mono { font-family: var(--f-latin); font-weight: 600; font-style: italic; }
.ct-to { font: 600 clamp(24px, 2vw, 30px)/1.5 var(--f-display); margin: 0 0 30px; padding-inline-end: 150px; }
html[lang="fr"] .ct-to, html[lang="en"] .ct-to { font-weight: 500; line-height: 1.25; }
.ct-to span { font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.ct-f-body { --lh: 46px; --line: var(--rule); margin-bottom: 6px; }
html[lang="fr"] .ct-f-body, html[lang="en"] .ct-f-body { --lh: 40px; }
.ct-ta { display: block; width: 100%; min-height: calc(var(--lh) * 6 + 2px); padding: 0 2px; margin: 0; border: 0; border-radius: 0; resize: none; overflow: hidden; outline: none;
  font: 400 21px/var(--lh) var(--f-text); color: var(--ink); background-color: transparent;
  background-image: linear-gradient(transparent calc(var(--lh) - 1px), var(--line) calc(var(--lh) - 1px), var(--line) var(--lh));
  background-size: 100% var(--lh); background-attachment: local; border-top: 1px solid var(--line); transition: background-color .3s; }
html[lang="fr"] .ct-ta, html[lang="en"] .ct-ta { font-family: var(--f-latin-text); font-size: 21px; }
.ct-f-body:focus-within { --line: rgba(142, 21, 34, .42); }
.ct-f-body:focus-within .f-l { color: var(--crimson); }
.ct-f-body.is-bad { --line: rgba(142, 21, 34, .55); }
.ct-ta:focus { background-color: rgba(142, 21, 34, .025); border-top-color: var(--crimson); box-shadow: 0 -1px 0 var(--crimson); }
.ct-sign { font: 400 20px/1.6 var(--f-text); color: var(--ink-2); margin: 20px 0 26px; }
.ct-sig { align-items: start; }
.ct-sig .f { margin-bottom: 18px; align-content: start; }
.ct-sig .in { min-height: 52px; }
.ct-sig .in[dir="ltr"], .ct-sig .in[dir="ltr"]::placeholder { font-feature-settings: "lnum"; font-variant-numeric: lining-nums; }
.ct-letter .chk { margin-top: 6px; }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--rule); }
.ct-done { grid-column: 1 / span 8; outline: none; }
.ct-done .slip-act { margin-top: 6px; }

/* the three clauses beside the letter */
.ct-aside { grid-column: 9 / span 4; border-top: 1px solid var(--ink); }
.ct-note { padding: 20px 0 24px; border-bottom: 1px solid var(--rule); }
.ct-note-h { font: 600 26px/1.3 var(--f-display); margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
html[lang="fr"] .ct-note-h, html[lang="en"] .ct-note-h { font-weight: 600; font-size: 27px; line-height: 1.1; }
.ct-note p { font: 400 17px/1.9 var(--f-text); color: var(--ink-2); margin: 0 0 12px; }
html[lang="fr"] .ct-note p, html[lang="en"] .ct-note p { font-size: 18px; line-height: 1.55; }
.ct-ref { font-size: .86em; color: var(--crimson); transition: color .4s; }
.ct-ref.is-set { color: var(--ink); background: linear-gradient(var(--crimson), var(--crimson)) 0 100% / 100% 1px no-repeat; }

/* ---------- 03 · questions ---------- */
.ct-qs { list-style: none; margin: clamp(36px, 4.6vw, 68px) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ct-q { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 30px 0 34px; border-bottom: 1px solid var(--rule); }
.ct-qn { grid-column: 1 / span 1; font: 300 clamp(44px, 4.2vw, 64px)/.86 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.02em; }
.ct-qt { grid-column: 2 / span 5; font: 600 clamp(24px, 2.05vw, 31px)/1.5 var(--f-display); margin: 0; padding-inline-end: clamp(8px, 2vw, 34px); text-wrap: pretty; }
html[lang="fr"] .ct-qt, html[lang="en"] .ct-qt { font-weight: 500; font-size: clamp(25px, 2.1vw, 32px); line-height: 1.18; }
.ct-qa { grid-column: 7 / span 6; }
.ct-qa p { font: 400 18.5px/1.95 var(--f-text); color: var(--ink-2); margin: 0; max-width: 36em; text-wrap: pretty; }
html[lang="fr"] .ct-qa p, html[lang="en"] .ct-qa p { font-size: 19.5px; line-height: 1.6; }
.ct-qa .lnk { display: inline-block; margin-top: 14px; }
.ct-q .ct-qt { transition: color .4s var(--ease); }
.ct-q:hover .ct-qt { color: var(--crimson); }
.ct-ask { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 26px 0 0; }

/* ---------- contact: tablet ---------- */
@media (max-width: 1100px) {
  .ct-imprint { grid-column: 1 / span 7; }
  .ct-map { grid-column: 8 / span 5; }
  .ct-pair { grid-template-columns: minmax(0, 1fr); }
  .ct-pair .ct-row:first-child { padding-inline-end: 0; }
  .ct-pair .ct-row + .ct-row { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); }
  .ct-letter, .ct-done { grid-column: 1 / -1; }
  .ct-aside { grid-column: 1 / -1; margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .ct-note { border-bottom: 0; }
  .ct-qt { grid-column: 2 / span 11; padding-inline-end: 0; margin-bottom: 12px; }
  .ct-qa { grid-column: 2 / span 11; }
}

/* ---------- contact: phone ---------- */
@media (max-width: 760px) {
  .ct-front-act .contact-line .cl-v { font-size: 22px; }
  .ct-grid, .ct-mgrid { grid-template-columns: minmax(0, 1fr); }
  .ct-imprint, .ct-map, .ct-letter, .ct-done, .ct-aside { grid-column: 1; }
  .ct-row { padding: 16px 0 18px; }
  .ct-k { margin-bottom: 10px; }
  .ct-line { flex-direction: column; align-items: flex-start; }
  .ct-line .dots { display: none; }
  .ct-act { margin-top: 12px; }
  .ct-row-big .ct-v { font-size: clamp(42px, 12.4vw, 54px); }
  .ct-mail { font-size: 19px; }
  .ct-pair { grid-template-columns: minmax(0, 1fr); }
  .ct-pair .ct-row:first-child { padding-inline-end: 0; }
  .ct-pair .ct-row + .ct-row { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); }
  .ct-addr { font-size: 25px; }
  .ct-map { margin-top: 40px; }
  .ct-map-frame { aspect-ratio: 4 / 3.6; }
  .ct-to { padding-inline-end: 92px; font-size: 23px; }
  .ct-stamp { width: 84px; top: 20px; }
  html[dir="rtl"] .ct-stamp { left: 16px; }
  html[dir="ltr"] .ct-stamp { right: 16px; }
  .ct-f-body { --lh: 42px; }
  html[lang="fr"] .ct-f-body, html[lang="en"] .ct-f-body { --lh: 37px; }
  .ct-ta { font-size: 19px; min-height: calc(var(--lh) * 6 + 2px); }
  html[lang="fr"] .ct-ta, html[lang="en"] .ct-ta { font-size: 19px; }
  .ct-sign { font-size: 18px; }
  .ct-foot .btn-lg { width: 100%; justify-content: space-between; white-space: normal; }
  .ct-aside { display: block; margin-top: 40px; }
  .ct-note { border-bottom: 1px solid var(--rule); }
  .ct-note-h { font-size: 24px; }
  .ct-q { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; padding: 24px 0 26px; }
  .ct-qn { grid-column: 1; grid-row: 1 / span 2; font-size: 38px; padding-top: 4px; }
  .ct-qt, .ct-qa { grid-column: 2; }
  .ct-qt { font-size: 23px; line-height: 1.55; margin-bottom: 10px; }
  html[lang="fr"] .ct-qt, html[lang="en"] .ct-qt { font-size: 24px; line-height: 1.2; }
  .ct-qa p { font-size: 17px; }
  html[lang="fr"] .ct-qa p, html[lang="en"] .ct-qa p { font-size: 18px; }
  .ct-ask { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ct-map-frame iframe { transition: none; } }
