/* 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;
  --f-latin: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --f-latin-text: "EB Garamond", "Cormorant Garamond", 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", serif; --f-text: "EB Garamond", "Cormorant Garamond", 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; }
[lang="ar"] { font-family: var(--f-text); }
[lang="fr"], [lang="en"] { font-family: var(--f-latin); }
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: 30px; }
.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; word-break: break-all; }
.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; }

/* ---------------------------------------------------------------- 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; }
.modal-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--rule); pointer-events: none; }
.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; } }

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

/* ---------- translation lens on the H1 ---------- */
.lens-host { position: relative; }
.lens-host.lens-ready.lens-fine { cursor: none; }
.lens-layer { position: absolute; pointer-events: none; z-index: 2; background: var(--paper); clip-path: circle(0px at 50% 50%); }
.lens-ghost { position: absolute; color: rgba(23, 17, 15, .075); 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(--crimson); white-space: nowrap; line-height: 1; }
.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 var(--crimson); box-shadow: 0 0 0 7px rgba(142, 21, 34, .06); transform: translate(-50%, -50%) scale(0); opacity: 0; }
.lens-ring::after { content: attr(data-tag); position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 8px; font: 400 11px/18px var(--f-mono); letter-spacing: .22em; color: var(--crimson); }
.lens-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: clamp(14px, 2vw, 30px) 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); }

/* ---------- chapter 01: horizontal spreads ---------- */
.hz { position: relative; margin-top: clamp(70px, 9vw, 140px); border-top: 1px solid var(--ink); }
.hz-sticky { position: relative; }
.hz-scroll { overflow: hidden; }
.hz-track { display: flex; width: max-content; padding-inline: var(--m); gap: clamp(40px, 5vw, 96px); padding-block: clamp(46px, 6vh, 84px) 110px; }
.hz-intro { width: min(470px, 84vw); flex: none; display: flex; flex-direction: column; padding-top: 8px; }
.hz-intro .ch-title { font-size: clamp(60px, 8.2vw, 128px); }
.hz-intro .ch-lead { margin-top: 28px; }
.hz-hint { margin-top: auto; padding-top: 30px; font: 400 16px/1 var(--f-ui); color: var(--crimson); display: none; gap: 10px; align-items: center; }
.hz.is-pinned .hz-hint { display: flex; }
.hz.is-pinned .hz-hint .arr { animation: nudge 2.4s var(--ease) infinite; }
html[dir="ltr"] .hz.is-pinned .hz-hint .arr { animation-name: nudge-l; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(-10px); } }
@keyframes nudge-l { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(10px); } }
.spread { flex: none; width: min(1120px, 84vw); display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 2.25fr) minmax(0, 2fr);
  column-gap: clamp(24px, 2.8vw, 48px); align-items: start; border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(24px, 2.8vw, 48px); }
.sp-num { font: 300 clamp(96px, 11vw, 176px)/.82 var(--f-latin); color: var(--crimson); font-feature-settings: "lnum"; letter-spacing: -.02em; }
.sp-fr { font: italic 400 21px/1.25 var(--f-latin); color: var(--ink-3); margin: 6px 0 12px; }
html[dir="rtl"] .sp-fr { text-align: left; }
html[dir="ltr"] .sp-fr { text-align: right; }
.sp-fr[lang="ar"] { font: 500 22px/1.3 var(--f-display); font-style: normal; }
.sp-title { font: 600 clamp(36px, 3.4vw, 54px)/1.2 var(--f-display); margin: 0 0 18px; }
html[lang="fr"] .sp-title, html[lang="en"] .sp-title { font-weight: 500; line-height: 1.05; }
.sp-text { font: 400 18px/1.9 var(--f-text); color: var(--ink-2); margin: 0 0 22px; max-width: 30em; }
html[lang="fr"] .sp-text, html[lang="en"] .sp-text { line-height: 1.6; }
.sp-fig .frame { aspect-ratio: 4 / 5; max-height: calc(100vh - 300px); min-height: 300px; }
.sp-fig img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.spread.is-near .sp-fig img, .no-js .sp-fig img { transform: scale(1); }
.hz-end { flex: none; width: 1px; }
.hz-rail { position: relative; margin-top: -64px; padding-bottom: 8px; display: none; }
.hz.is-pinned .hz-rail { display: block; position: absolute; inset: auto 0 34px 0; margin: 0 auto; padding-block: 0; }
.rail-line { height: 1px; background: var(--rule); position: relative; }
.rail-line i { position: absolute; inset: 0; background: var(--crimson); transform: scaleX(0); }
html[dir="rtl"] .rail-line i { transform-origin: right; }
html[dir="ltr"] .rail-line i { transform-origin: left; }
.rail-ticks { display: flex; justify-content: space-between; margin-top: 12px; }
.tick { font: 400 13px/1 var(--f-mono); letter-spacing: .1em; color: var(--ink-3); padding: 4px 0; transition: color .3s; }
.tick.is-on { color: var(--crimson); }
.hz.is-pinned .hz-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hz.is-pinned .hz-scroll { height: 100%; }
.hz.is-pinned .hz-track { height: 100%; padding-block: calc(58px + clamp(30px, 5vh, 64px)) 96px; will-change: transform; }
.hz.is-pinned .spread { height: 100%; align-content: center; }
.hz.is-pinned .hz-intro { justify-content: center; }
.hz.is-pinned .hz-hint { margin-top: 0; padding-top: 44px; }
/* not pinned (phones, tablets, reduced motion): a vertical gazette of eight spreads */
.hz:not(.is-pinned) .hz-track { flex-direction: column; width: auto; gap: 0; padding-block: clamp(34px, 5vw, 60px) 0; }
.hz:not(.is-pinned) .hz-intro { width: auto; max-width: 760px; padding-bottom: 40px; }
.hz:not(.is-pinned) .spread { width: auto; border-inline-start: 0; padding-inline-start: 0; padding-block: 40px; border-top: 1px solid var(--rule); }
.hz:not(.is-pinned) .sp-fig .frame { aspect-ratio: 4 / 3; max-height: none; min-height: 0; }
.hz:not(.is-pinned) .hz-end { 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) {
  .hz { border-top: 1px solid var(--ink); }
  .hz-intro .ch-title { font-size: 56px; }
  .spread { grid-template-columns: 1fr; }
  .sp-fig { grid-row: 1; margin-bottom: 18px; }
  .sp-num { font-size: 70px; line-height: .9; margin-bottom: 4px; }
  .sp-title { font-size: 32px; }
  .sp-text { font-size: 17px; }
  .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; }
}
@media (prefers-reduced-motion: reduce) { .sp-fig img { transform: none; } }

/* ================================================================ SERVICES — «خدماتنا» (folio 02), prefix .sv- / .rg- / .fd- / .sa- */

/* ---------- page head: the eight families as an index of two rows ---------- */
@media (min-width: 761px) {
  .pg-services .inpage ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-services .inpage li { border-inline-start: 1px solid var(--rule); border-top: 0; }
  .pg-services .inpage li:nth-child(n + 5) { border-top: 1px solid var(--rule); }
  .pg-services .inpage li:nth-child(4n + 1) { border-inline-start: 0; }
  .pg-services .inpage li a { padding-inline-start: 18px; }
  .pg-services .inpage li:nth-child(4n + 1) a { padding-inline-start: 0; }
}
.pg-services .inpage .ip-t { font-size: 23px; }
html[lang="fr"] .pg-services .inpage .ip-t, html[lang="en"] .pg-services .inpage .ip-t { font-size: 24px; }

/* ---------- six translation directions ---------- */
.sv-pairs { margin-top: clamp(46px, 5.4vw, 78px); }
.sv-pairs-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  border-block: 1px solid var(--rule); padding-block: 22px 20px; }
.sv-pairs-h { grid-column: 1 / span 3; margin: 0; display: grid; gap: 6px; font: 600 26px/1.3 var(--f-display); }
html[lang="fr"] .sv-pairs-h, html[lang="en"] .sv-pairs-h { font-weight: 500; font-size: 28px; line-height: 1.1; }
.sv-pairs-c { font: italic 400 18px/1.2 var(--f-latin); color: var(--ink-3); }
.sv-pairs-c[lang="ar"] { font: 500 19px/1.3 var(--f-display); font-style: normal; }
.sv-pg { grid-column: span 3; list-style: none; margin: 0; padding: 4px 0; padding-inline-start: clamp(14px, 1.8vw, 28px); border-inline-start: 1px solid var(--rule); display: grid; gap: 4px; }
.sv-pg li { display: flex; align-items: baseline; gap: .5em; font: 500 23px/1.45 var(--f-display); white-space: nowrap; }
html[lang="fr"] .sv-pg li, html[lang="en"] .sv-pg li { font: 500 25px/1.3 var(--f-latin); }
.sv-to { color: var(--crimson); font: 400 .9em/1 var(--f-latin); }
.sv-pg li:last-child .sv-pa, .sv-pg li:last-child .sv-pb { color: var(--ink-2); }

/* ---------- the eight chapters ---------- */
.sv { padding-top: clamp(78px, 8.6vw, 132px); --rg-ref: 44px; }
.sv .ch-title { font-size: clamp(42px, 4.5vw, 70px); line-height: 1.24; }
html[lang="fr"] .sv .ch-title, html[lang="en"] .sv .ch-title { font-size: clamp(42px, 4.7vw, 74px); line-height: 1.03; }
.sv .ch-fr { font-size: clamp(19px, 1.45vw, 23px); margin-top: 12px; }
/* Arabic companion line on the French and English pages: upright Mirza (the shared .ch-fr is italic) */
.sv .ch-fr[lang="ar"] { font: 500 clamp(21px, 1.6vw, 25px)/1.4 var(--f-display); font-style: normal; }
html[dir="rtl"] .sv .ch-fr, html[dir="rtl"] .sv-pairs-c { text-align: right; }
html[dir="ltr"] .sv .ch-fr, html[dir="ltr"] .sv-pairs-c { text-align: left; }
.sv .ch-lead { max-width: 30em; }
.sv-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-top: clamp(30px, 3.4vw, 52px); }
.sv-main { grid-column: 1 / span 8; grid-row: 1; padding-inline-end: clamp(0px, 1.6vw, 26px); }
.sv-fig { grid-column: 9 / span 4; grid-row: 1; position: sticky; top: 84px; }
.sv-flip .sv-main { grid-column: 5 / span 8; padding-inline: clamp(0px, 1.6vw, 26px) 0; }
.sv-flip .sv-fig { grid-column: 1 / span 4; }
.sv-frame { aspect-ratio: 4 / 5; max-height: calc(100vh - 170px); }
.sv-frame img { transition: transform 1.6s var(--ease); }
.sv-fig:hover .sv-frame img { transform: scale(1.03); }
/* the legal plate shows a detail of plate 1 (same photograph) */
#legal .sv-frame img, #legal .sv-fig:hover .sv-frame img { object-position: 22% 60%; transform: scale(1.5); transform-origin: 22% 60%; }
/* the civil-status photograph carries a white border in the file: crop it */
#civil .sv-frame img { transform: scale(1.07); }
#civil .sv-fig:hover .sv-frame img { transform: scale(1.1); }

/* register: page language first, then the two others, columns joined by dot leaders */
.sv-reg { --rg-cols: var(--rg-ref, 44px) minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr); }
.rg-head { display: grid; grid-template-columns: var(--rg-cols); align-items: end; margin: 0; padding: 0 0 11px; border-bottom: 1px solid var(--ink); }
.rg-h { font: 400 14px/1 var(--f-ui); color: var(--ink-3); }
.rg-h[lang="fr"], .rg-h[lang="en"] { font: 500 13px/1 var(--f-latin-text); letter-spacing: .14em; text-transform: uppercase; }
.rg-hn { font-size: 13px; }
html[dir="rtl"] .rg-h { text-align: right; }
html[dir="ltr"] .rg-h { text-align: left; }
.rg { list-style: none; margin: 0; padding: 0; }
.rg-row { display: grid; grid-template-columns: var(--rg-cols); align-items: baseline; padding: 11px 0 10px; border-bottom: 1px solid var(--rule); }
.rg-n { font: 400 12px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .08em; transition: color .3s; }
.rg-c { display: flex; align-items: baseline; min-width: 0; }
.rg-c .dots { margin-inline: .75em; min-width: 1.4em; }
.rg-t { min-width: 0; overflow-wrap: break-word; transition: color .3s; }
.rg-p .rg-t[lang="ar"] { font: 500 18px/1.55 var(--f-text); }
.rg-p .rg-t[lang="fr"], .rg-p .rg-t[lang="en"] { font: 500 19px/1.35 var(--f-latin-text); }
.rg-o .rg-t[lang="ar"] { font: 400 16.5px/1.55 var(--f-text); color: var(--ink-2); }
.rg-o .rg-t[lang="fr"], .rg-o .rg-t[lang="en"] { font: italic 400 18.5px/1.3 var(--f-latin); color: var(--ink-2); }
.rg-row:hover .rg-p .rg-t, .rg-row:hover .rg-n { color: var(--crimson); }

/* preparation note, set in the register's columns like a footnote */
.sv-prep { display: grid; grid-template-columns: var(--rg-ref, 44px) minmax(0, 1.12fr) minmax(0, 2fr); align-items: baseline; margin-top: 22px; }
.sv-prep-h { grid-column: 2; margin: 0; font: 500 15px/1.5 var(--f-ui); color: var(--crimson); display: flex; align-items: baseline; gap: 10px; }
.sv-prep-h::before { content: ""; width: 22px; height: 1px; background: var(--crimson); transform: translateY(-.3em); flex: none; }
.sv-prep-t { grid-column: 3; margin: 0; font: 400 16.5px/1.85 var(--f-text); color: var(--ink-2); max-width: 36em; }
html[lang="fr"] .sv-prep-t, html[lang="en"] .sv-prep-t { font: italic 400 18.5px/1.5 var(--f-latin); }
.sv-act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; margin: 30px 0 0; padding-inline-start: var(--rg-ref, 44px); }

/* ---------- appendix: the document finder ---------- */
.sv-finder { --rg-ref: 44px; }
.sv-finder .ch-title { font-size: clamp(44px, 5.2vw, 82px); line-height: 1.2; }
html[lang="fr"] .sv-finder .ch-title, html[lang="en"] .sv-finder .ch-title { font-size: clamp(44px, 5.2vw, 82px); line-height: 1.04; }
.fd-tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: clamp(34px, 4vw, 60px); }
.fd-q { grid-column: 1 / span 8; margin: 0; }
.fd-field { position: relative; display: block; }
.fd-q .in { font-size: 25px; min-height: 64px; padding-block: 10px 10px; padding-inline: 0 1.8em; border-bottom-color: var(--ink); -webkit-appearance: none; appearance: none; }
html[lang="fr"] .fd-q .in, html[lang="en"] .fd-q .in { font: 400 26px/1.4 var(--f-latin); }
.fd-q .in::placeholder { color: var(--ink-3); opacity: .75; font-size: .78em; }
.fd-q .in::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fd-qh { display: flex; align-items: baseline; margin: 0 0 2px; }
.fd-qh .dots { margin-inline: .8em; }
.fd-n { font: 400 14px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }
.fd-n b { font-weight: 400; font-size: 19px; color: var(--crimson); }
.fd-x { position: absolute; inset-inline-end: 0; bottom: 12px; width: 36px; height: 36px; font: 300 28px/1 var(--f-latin); color: var(--ink-3); transition: color .3s; }
.fd-x:hover { color: var(--crimson); }
.fd-fams { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px 26px; margin-top: 26px; }
.fd-fams .f-l { margin: 0; flex: none; }
.fd-fams ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.fd-fams li { display: inline-flex; align-items: baseline; }
.fd-fams li:not(:last-child)::after { content: "·"; color: var(--crimson); padding-inline: .62em; font: 400 18px/1 var(--f-latin); }
.fd-fams button { display: inline-flex; align-items: baseline; font: 400 17.5px/1.95 var(--f-ui); color: var(--ink-2); transition: color .3s; }
.fd-fams button span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 1px; }
html[dir="rtl"] .fd-fams button span { background-position: 100% 100%; }
.fd-fams button:hover { color: var(--ink); }
.fd-fams button:hover span { background-size: 100% 1px; }
.fd-fams button[aria-pressed="true"] { color: var(--crimson); }
.fd-fams button[aria-pressed="true"] span { background-size: 100% 1px; }
.fd-fams sup { font: 400 10.5px/1 var(--f-mono); color: var(--ink-3); margin-inline-start: 4px; letter-spacing: .04em; }
.fd-reg { --rg-cols: var(--rg-ref) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 8.6em 11em; margin-top: clamp(30px, 3.4vw, 46px); }
.fd-reg .rg-row { padding-block: 12px 11px; }
.fd-fam { font: 400 14.5px/1.35 var(--f-ui); color: var(--ink-3); padding-inline-start: 1em; }
.fd-go { justify-self: end; font-size: 15.5px; white-space: nowrap; }
.fd-row.is-hit { animation: fdHit .55s var(--ease) both; }
@keyframes fdHit { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fd-empty { margin: 0; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); font: 400 17px/1.7 var(--f-ui); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.fd-more { margin: 28px 0 0; padding-inline-start: var(--rg-ref); }

/* ---------- see also + closing sheet ---------- */
.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; }
.sa-label { grid-column: 1 / -1; margin: 0 0 30px; font: 400 16px/1 var(--f-ui); color: var(--ink-3); }
.sa-item { grid-column: span 4; padding-inline-end: clamp(10px, 2.4vw, 40px); }
.sa-item + .sa-item { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(14px, 1.8vw, 28px); }
.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"] .sa-item h3, html[lang="en"] .sa-item h3 { font-weight: 500; line-height: 1.1; }
.sa-item p { margin: 0 0 20px; font: 400 17.5px/1.9 var(--f-text); color: var(--ink-2); }
html[lang="fr"] .sa-item p, html[lang="en"] .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; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .sv-pairs-h { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; margin-bottom: 14px; }
  .sv-pg { grid-column: span 4; }
  .sv-pg:nth-of-type(1) { border-inline-start: 0; padding-inline-start: 0; }
  .sv-body { grid-template-columns: minmax(0, 1fr); }
  .sv-main, .sv-flip .sv-main { grid-column: 1; grid-row: 2; padding-inline: 0; }
  .sv-fig, .sv-flip .sv-fig { grid-column: 1; grid-row: 1; position: static; margin-bottom: 30px; }
  .sv-frame { aspect-ratio: 2 / 1; max-height: none; }
  .fd-reg { --rg-cols: var(--rg-ref) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 10.5em; }
  .fd-fam, .fd-hf { display: none; }
  .fd-q { grid-column: 1 / -1; }
  .fd-fams { flex-direction: column; gap: 6px; }
  .sa-item { grid-column: span 6; }
  .sv-cta { grid-column: 1 / -1; margin-top: 40px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .sv-pairs-in { grid-template-columns: 1fr; padding-block: 18px 14px; }
  .sv-pairs-h { grid-column: 1; grid-template-columns: 1fr; gap: 4px; font-size: 23px; margin-bottom: 6px; }
  html[lang="fr"] .sv-pairs-h, html[lang="en"] .sv-pairs-h { font-size: 25px; }
  .sv-pg, .sv-pg:nth-of-type(1) { grid-column: 1; border-inline-start: 0; padding: 10px 0; border-top: 1px solid var(--rule); grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .sv-pg li { font-size: 19px; }
  html[lang="fr"] .sv-pg li, html[lang="en"] .sv-pg li { font-size: 20px; }
  .sv .ch-title { font-size: clamp(36px, 10vw, 46px); }
  html[lang="fr"] .sv .ch-title, html[lang="en"] .sv .ch-title { font-size: clamp(36px, 10.4vw, 46px); }
  .sv .ch-fr { font-size: 18px; }
  .sv-body { grid-template-columns: 1fr; margin-top: 26px; }
  .sv-main, .sv-flip .sv-main { grid-column: 1; grid-row: 2; padding: 0; }
  .sv-fig, .sv-flip .sv-fig { grid-column: 1; grid-row: 1; position: static; margin-bottom: 26px; }
  .sv-frame { aspect-ratio: 4 / 3; max-height: none; }
  #legal .sv-frame img, #legal .sv-fig:hover .sv-frame img { transform: scale(1.2); object-position: 30% 55%; transform-origin: 30% 55%; }
  .sv, .sv-finder { --rg-ref: 34px; }
  .rg-head { display: none; }
  .sv-reg .rg { border-top: 1px solid var(--ink); }
  .rg-row, .fd-reg .rg-row { grid-template-columns: var(--rg-ref) minmax(0, 1fr); row-gap: 1px; padding-block: 11px 10px; }
  .rg-n { grid-row: 1 / span 3; padding-top: 7px; }
  .rg-c { grid-column: 2; }
  .rg-c .dots { display: none; }
  .rg-o::before { content: attr(data-l); flex: none; width: 2.6em; font: 400 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transform: translateY(-.1em); }
  .rg-p .rg-t[lang="ar"] { font-size: 18px; }
  .rg-o .rg-t[lang="ar"] { font-size: 16px; }
  .rg-o .rg-t[lang="fr"], .rg-o .rg-t[lang="en"] { font-size: 17px; line-height: 1.32; }
  .rg-o .rg-t[lang="ar"] { line-height: 1.6; }
  .sv-prep { grid-template-columns: 1fr; margin-top: 20px; gap: 6px; }
  .sv-prep-h, .sv-prep-t { grid-column: 1; }
  .sv-act { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; padding-inline-start: 0; }
  .sv-finder .ch-title { font-size: clamp(38px, 11vw, 50px); }
  html[lang="fr"] .sv-finder .ch-title, html[lang="en"] .sv-finder .ch-title { font-size: clamp(38px, 11vw, 50px); }
  .fd-q .in { font-size: 21px; min-height: 56px; padding-inline-end: 1.6em; }
  html[lang="fr"] .fd-q .in, html[lang="en"] .fd-q .in { font-size: 22px; }
  .fd-q .in::placeholder { font-size: .74em; }
  .fd-fams button { font-size: 16.5px; }
  .fd-reg .rg { border-top: 1px solid var(--ink); }
  .fd-reg .rg-row { grid-template-columns: var(--rg-ref) minmax(0, 1fr) auto; }
  .fd-reg .rg-c { grid-column: 2 / -1; }
  .fd-reg .rg-n { grid-row: 1 / span 4; }
  .fd-fam { display: block; grid-column: 2; padding: 6px 0 0; font-size: 14px; }
  .fd-go { grid-column: 3; padding-top: 6px; font-size: 15px; }
  .fd-more { padding-inline-start: 0; }
  .fd-more .btn-line { width: 100%; justify-content: center; }
  .sv-end-grid { grid-template-columns: 1fr; }
  .sa-item, .sa-item + .sa-item { grid-column: 1; border-inline-start: 0; padding: 0; }
  .sa-item + .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 (prefers-reduced-motion: reduce) { .fd-row.is-hit { animation: none; } .sv-fig:hover .sv-frame img { transform: none; } }

/* ================================================================ 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; }
.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; }
.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; 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); }
.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; }
.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 ---------- */
.lg-map { margin-top: clamp(40px, 5vw, 70px); }
.lg-map-box { position: relative; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: clamp(18px, 2.4vw, 34px); overflow: hidden; }
.lg-map-box > svg { display: block; width: 100%; height: auto; overflow: visible; --sw: 1; }
.lg-land { fill: none; stroke: var(--ink); stroke-opacity: .24; stroke-linecap: round; stroke-width: 3.6; }
.lg-dz { fill: none; stroke: var(--crimson); stroke-linecap: round; stroke-width: 4.6; }
.lg-c { fill: var(--paper); stroke: var(--ink-2); stroke-width: calc(var(--sw) * 1px); transition: r .4s var(--ease), stroke .4s; }
.lg-c.is-hot { r: 5.2; stroke: var(--ink); stroke-width: calc(var(--sw) * 1.4px); }
.lg-arc { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 1.1px); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.lg-arc.is-on { opacity: 1; animation: lgDraw 1.1s var(--ease) forwards; }
@keyframes lgDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.lg-hot { fill: none; stroke: none; }
.lg-pin { fill: var(--crimson); stroke: var(--paper); stroke-width: calc(var(--sw) * 2.4px); }
.lg-pin-r { fill: none; stroke: var(--crimson); stroke-width: calc(var(--sw) * 1px); }
.lg-hb, .lg-city { position: absolute; z-index: 2; pointer-events: none; white-space: nowrap; }
.lg-hb > span { position: absolute; top: 22px; inset-inline-start: 0; transform: translateX(-50%); background: var(--paper); padding: 3px 9px 4px; font: 600 15px/1.2 var(--f-ui); color: var(--crimson); border-top: 1px solid var(--crimson); }
html[dir="rtl"] .lg-hb > span { transform: translateX(50%); }
.lg-city { font: 500 15px/1.2 var(--f-ui); color: var(--ink); background: var(--paper); padding: 2px 8px 3px; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .35s var(--ease); }
.lg-city.is-on { opacity: 1; }
.lg-city.at-l { transform: translate(-6px, calc(-100% - 12px)); }
.lg-city.at-r { transform: translate(calc(-100% + 6px), calc(-100% - 12px)); }
.lg-city.off-l { transform: translate(4px, -50%); }
.lg-hint { margin: 14px 0 0; font: 400 15px/1.5 var(--f-ui); color: var(--ink-3); }
.lg-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3.2vw, 56px); margin-top: clamp(30px, 3.6vw, 54px); }
.lg-col { display: grid; gap: 34px; align-content: start; }
.lg-rg h3 { 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"] .lg-rg h3, html[lang="en"] .lg-rg h3 { font-weight: 500; }
.lg-rg-n { font: 400 13px/1 var(--f-mono); color: var(--crimson); letter-spacing: .08em; }
.lg-leaders { margin: 0; border-top: 1px solid var(--ink); }
.lg-leaders li { cursor: default; }
.lg-leaders li.is-hot, .lg-leaders li.is-hot .ld-b { color: var(--crimson); }
.lg-leaders .ld-a { max-width: none; }
.lg-purp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; margin-top: clamp(50px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--ink); }
.lg-purp-l { grid-column: 1 / span 3; margin: 0; font: 400 16px/1.4 var(--f-ui); color: var(--ink-3); }
.lg-purp-run { grid-column: 4 / span 9; margin: 0; font: 500 clamp(28px, 2.7vw, 42px)/1.6 var(--f-display); text-wrap: pretty; }
html[lang="fr"] .lg-purp-run, html[lang="en"] .lg-purp-run { line-height: 1.3; }
.lg-purp-run span { white-space: nowrap; }
.lg-purp-run i { color: var(--crimson); font-style: normal; padding-inline: .3em; }

/* ---------- 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; }
.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; font-size: 18px; }
  .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: 76px; 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-o[lang="ar"] { font-size: 18px; }
  .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; }
  .lg-map-box { padding-block: 14px; }
  .lg-hb > span { top: 16px; font-size: 13px; padding: 2px 7px 3px; }
  .lg-city { font-size: 13px; }
  .lg-index { grid-template-columns: 1fr; row-gap: 34px; }
  .lg-rg h3 { font-size: 24px; }
  .lg-leaders li { font-size: 16.5px; }
  .lg-purp { grid-template-columns: 1fr; }
  .lg-purp-l, .lg-purp-run { grid-column: 1; }
  .lg-purp-l { margin-bottom: 10px; }
  .lg-purp-run { font-size: 26px; line-height: 1.75; }
  html[lang="fr"] .lg-purp-run, html[lang="en"] .lg-purp-run { font-size: 27px; line-height: 1.35; }
  .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; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-arc.is-on { stroke-dashoffset: 0; }
}

/* ================================================================ 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; }
.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; }
.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); }
.ab-val-o[lang="ar"] { font: 500 21px/1.3 var(--f-display); font-style: normal; }
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); }
html[lang="fr"] .pv-k, html[lang="en"] .pv-k { font: 500 18px/1.1 var(--f-latin); letter-spacing: .04em; }
.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 .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; }
  .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; }
}

/* ---------- 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; }
  .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; }

/* 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; }
.od-ro[lang="ar"] { font: 400 16.5px/1.5 var(--f-text); 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: 4px; }
.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); max-width: 46em; }

/* 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-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; } }

/* ================================================================ 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; }

/* ---------- 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 { color: #e9c7c9; }
.bk-day.is-sel .bk-tdy { color: #e9c7c9; }
.bk-day:focus-visible { outline: 2px solid var(--crimson); outline-offset: -3px; }
.bk[data-state="loading"] .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); color: var(--crimson); }
.bk-lg-x { font: 500 17px/1 var(--f-latin); 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 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); }
.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-sdl { margin: 0 0 26px; max-width: 640px; }
.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: 600 19px/1.45 var(--f-display); }
html[lang="fr"] .bk-sdl dd, html[lang="en"] .bk-sdl dd { font: 500 20px/1.3 var(--f-latin); }
.bk-sdl dd bdi { font-family: var(--f-latin); font-feature-settings: "lnum"; }

/* ---------- 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; }
  html[lang="fr"] .bk-wd .l, html[lang="en"] .bk-wd .l { display: none; }
  html[lang="fr"] .bk-wd .s, html[lang="en"] .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[data-state="loading"] .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-sdl > div { flex-wrap: wrap; }
  .bk-sdl dd { font-size: 18px; }
}
@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. */

.pg-track .pagehead .deck { max-width: 36em; }

/* ---------- search slip (first screen, under the deck) ---------- */
.tr-search { margin-top: clamp(28px, 3.2vw, 46px); max-width: 860px; }
.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.45fr) 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); }
.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); }
.tr-st[lang="ar"] { font: 500 18px/1.3 var(--f-display); color: var(--ink-3); }
.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; }
button.lnk { text-align: start; }

/* ---------- 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; text-align: start; white-space: normal; }
  .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 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: .1em; color: var(--ink-3); }
.rv-n b { font-weight: 500; color: var(--crimson); }
.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 ---------- */
.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; }
.rv-m-foot { margin-top: 8px; }
.rv-ok .slip-stamp { top: 8px; }
.rv-ok h2 { padding-inline-end: 110px; }

.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; }
}

/* ---------- 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: .5em; margin-inline-start: -.5em; }
  .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 h2 { padding-inline-end: 80px; }
}
@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: 46% 50%; }
.ct-front-act { margin-top: clamp(24px, 2.8vw, 40px); }
.ct .ch-head-split .ch-title { text-wrap: balance; }

/* ---------- 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 var(--f-latin); 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); inset-inline-end: clamp(26px, 4vw, 64px); width: clamp(96px, 8.6vw, 128px); color: var(--crimson); opacity: .3;
  transform: rotate(-14deg); pointer-events: none; font-family: var(--f-latin); direction: ltr; }
.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: vertical; 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, .34); }
.ct-f-body.is-bad { --line: rgba(142, 21, 34, .55); }
.ct-ta:focus { background-color: rgba(142, 21, 34, .02); }
.ct-sign { font: 400 20px/1.6 var(--f-text); color: var(--ink-2); margin: 20px 0 26px; }
.ct-sig .f { margin-bottom: 18px; }
.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-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-wrap: wrap; }
  .ct-line .dots { display: none; }
  .ct-act { flex-basis: 100%; 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; inset-inline-end: 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; } }
