/* =========================================================
   ATHAR · أثر — website design system
   Built on tokens.css (the brand's source of truth). Pages add their own
   file in assets/css/pages/ for layout specific to them; shared patterns live here.
   Content diet (client, Oct 2026): the public site is simple. No prices, no box contents,
   none of the deck's ministry model. Shared patterns for the simpler pages: .gift-tiles,
   .steps, .promo-band, .next-step, .id-form, .promise (see _kit.html).
   Logical properties throughout so Arabic (RTL) mirrors without overrides.
   ========================================================= */

@import url("tokens.css");

:root {
  --header-h: 88px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  /* text colours darkened to pass WCAG AA on cream / sand (the brand tokens in tokens.css stay as they are) */
  --warn: #8E5F22;
  --warn-bg: #F7EBD6;
  --danger: #A2402B;
  --danger-bg: #F6E4DE;
  --line: rgba(104, 73, 37, 0.16);
  --muted: rgba(28, 28, 24, 0.64);
  --id-grey: #6B5638;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* inner-page hero contract (see .page-hero / .hero-grid) */
  --fs-hero: clamp(2.75rem, 5.4vw, 5.5rem);
  --hero-gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 1240px) { :root { --header-h: 80px; } }
@media (max-width: 620px) { :root { --header-h: 72px; } }
/* wide screens (the client's 1897 px monitor): a wider shell and slightly larger body copy */
@media (min-width: 1680px) { :root { --shell: 1600px; --fs-body: 1.125rem; } }
/* Arabic secondary text: IBM Plex Sans Arabic reads smaller and paler than Latin at the same size */
html[lang="ar"] { --muted: rgba(28, 28, 24, 0.74); }

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--athar-cream);
  color: var(--athar-ink);
  font-family: var(--font-latin);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.75; }
/* decorative watermarks bleed off the edges; clip (not hidden) keeps sticky children working */
main, .site-footer { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--athar-green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--athar-sand); color: var(--athar-brown); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200; background: var(--athar-green); color: var(--athar-cream); padding: .6rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- bilingual content ----------
   Every translated piece of copy is written twice, side by side:
   <span data-lang="en">…</span><span data-lang="ar">…</span>
   Only the current language shows. Neutral content (IDs, numbers, the Latin name ATHAR) has no
   data-lang and always shows. site.js keeps <html lang dir> in sync. */
html[lang="ar"] [data-lang="en"], html[lang="en"] [data-lang="ar"] { display: none !important; }

/* ---------- icons: Material Symbols Rounded (outline by default, .fill for solid glyphs) ---------- */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; font-size: 1.5em; line-height: 1;
  display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap;
  /* no direction:ltr: logical insets on positioned icons must follow the page direction.
     A fixed 1em box keeps the ligature word from spilling out while the font loads. */
  unicode-bidi: isolate; width: 1em; height: 1em; overflow: hidden;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none; flex: none;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
/* arrows and chevrons point the other way in Arabic */
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- type ---------- */
.display, .h2 {
  font-weight: var(--fw-display);
  letter-spacing: var(--track-display);
  color: var(--athar-brown);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; color: var(--athar-green); letter-spacing: -0.01em; }
.h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--athar-green); }
/* two tones: first part brown, .alt green; .light = the light-green word of "About ATHAR" */
.display .alt, .h2 .alt { color: var(--athar-green); }
.display .light, .h2 .light { color: var(--athar-green); font-weight: 300; }
.display > span, .h2 > span { display: block; }
.display > span.inline, .h2 > span.inline { display: inline; }
html[lang="ar"] .display, html[lang="ar"] .h2 { letter-spacing: 0; font-family: var(--font-arabic-display); font-weight: 700; line-height: 1.25; }
html[lang="ar"] .display { font-size: calc(var(--fs-display) * 0.82); }
html[lang="ar"] .h2 { font-size: calc(var(--fs-h2) * 0.88); line-height: 1.3; }
html[lang="ar"] .display .light, html[lang="ar"] .h2 .light { font-weight: 400; }
html[lang="ar"] .h3 { font-family: var(--font-arabic-display); font-weight: 700; }

.rule { display: block; width: var(--rule-short); height: var(--rule-weight); background: var(--athar-brown); border: 0; border-radius: 2px; margin-block: 1.4rem; }
.rule.cream { background: var(--athar-cream); }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--athar-green); font-weight: 400; max-width: 38ch; }
html[lang="ar"] .lead { line-height: 1.75; max-width: 42ch; }
.label {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--athar-brown); display: inline-flex; align-items: center; gap: .6em;
}
html[lang="ar"] .label { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.label.green { color: var(--athar-green); }
.body-lg { font-size: 1.1875rem; line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.num { font-family: var(--font-num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.tree-id { font-family: var(--font-id); letter-spacing: .08em; color: var(--id-grey); font-weight: 600; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.center { text-align: center; }
.center .rule, .center .lead { margin-inline: auto; }

/* dateline: ABU DHABI • 2026 with a hairline running off the edge */
.dateline { display: flex; align-items: center; gap: 1rem; font-weight: 800; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--athar-brown); }
.dateline::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }
html[lang="ar"] .dateline { letter-spacing: 0; font-size: .95rem; }

/* footer-style tagline: light caps + bold green final phrase */
.tagline { font-size: .875rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--athar-ink); }
.tagline b { color: var(--athar-green); font-weight: 800; }
html[lang="ar"] .tagline { letter-spacing: 0; font-size: 1rem; }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--margin); }
/* overflow clip (not hidden) keeps sticky children working and stops watermarks crossing into the next section */
.section { position: relative; padding-block: var(--section-y); overflow: clip; }
.section.tight { padding-block: calc(var(--section-y) * 0.6); }
.section.dune { background: var(--athar-dune); }
/* ivory (#FEFDF9) next to cream (#FCF8EF) left a faint seam; ivory stays for cards only */
.section.ivory { background: var(--athar-cream); }
.section.sand { background: var(--athar-sand); }
.section.green { background: var(--athar-green); color: var(--athar-cream); }
.section.green .display, .section.green .h2, .section.green .h3, .section.green .label { color: var(--athar-cream); }
.section.green .display .alt, .section.green .h2 .alt { color: var(--athar-sand); }
.section.green .lead { color: var(--athar-sand); }
.section.green .rule { background: var(--athar-sand); }
/* deck hairline between two plain (cream) sections, inside the shell's margins */
:is(.section, .page-hero):not(.dune, .green, .sand) + .section:not(.dune, .green, .sand)::before {
  content: ""; position: absolute; z-index: 1; inset-block-start: 0; inset-inline: 0; margin-inline: auto;
  width: calc(min(100%, var(--shell)) - 2 * var(--margin)); height: 1px; background: var(--line);
}
.section-head { display: grid; gap: .25rem; margin-block-end: clamp(2rem, 4vw, 3.5rem); max-width: 760px; }
.section-head .label { margin-block-end: .9rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.reverse > :first-child { order: 2; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: var(--stack, 1rem); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, .75rem); align-items: center; }
@media (max-width: 960px) {
  .split, .split.even { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* the big fingerprint watermark bleeding off a corner, as on every content slide */
.watermark { position: absolute; inset-block-start: -6%; inset-inline-end: -6%; width: clamp(220px, 24vw, 420px); aspect-ratio: 149.6 / 189.1; background: url("/assets/logo/athar-mark-watermark.svg") center / contain no-repeat; opacity: .6; pointer-events: none; z-index: 0; }
.watermark.start { inset-inline-end: auto; inset-inline-start: -6%; }
.watermark.bottom { inset-block-start: auto; inset-block-end: -10%; }
.section > .shell, .page-hero > .shell { position: relative; z-index: 1; }
.section.green .watermark { background-image: url("/assets/logo/athar-mark-white.svg"); opacity: .08; }
/* Watermark rules: the grey fingerprint never shares a section with a photo (as on the deck's photo
   slides), and on phones only the faint white mark in green bands remains. */
section:has(figure img, .photo) > .watermark { display: none; }
@media (max-width: 620px) {
  .watermark { display: none; }
  .section.green:not(:has(figure img, .photo)) > .watermark { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--athar-green); --fg: var(--athar-cream); --bd: var(--athar-green);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(63, 89, 59, .18); }
.btn:active { transform: translateY(0); }
.btn .ms { font-size: 1.3em; }
.btn.secondary { --bg: transparent; --fg: var(--athar-brown); --bd: var(--athar-brown); }
.btn.secondary:hover { --bg: var(--athar-brown); --fg: var(--athar-cream); box-shadow: none; }
.btn.ghost { --bg: transparent; --fg: var(--athar-brown); --bd: transparent; padding-inline: .5rem; min-height: 44px; }
.btn.ghost:hover { box-shadow: none; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn.cream { --bg: var(--athar-cream); --fg: var(--athar-green); --bd: var(--athar-cream); }
.btn.on-dark { --bg: transparent; --fg: var(--athar-cream); --bd: rgba(252, 248, 239, .7); }
.btn.small { min-height: 40px; padding: .45rem 1rem; font-size: .9375rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
/* the deck's outlined brown circle with ↗ */
.arrow-circle { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--athar-brown); color: var(--athar-brown); display: inline-grid; place-items: center; flex: none; text-decoration: none; transition: background-color .25s, color .25s; }
.arrow-circle:hover { background: var(--athar-brown); color: var(--athar-cream); }
.link { color: var(--athar-green); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- cards & discs ---------- */
.card { position: relative; background: var(--athar-ivory); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(1.25rem, 2.4vw, 2rem); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.dune { background: var(--athar-dune); box-shadow: none; }
.disc { width: 64px; height: 64px; border-radius: 50%; background: var(--athar-sage); color: var(--athar-brown); display: grid; place-items: center; flex: none; }
.disc .ms { font-size: 30px; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.disc.sm { width: 48px; height: 48px; }
.disc.sm .ms { font-size: 24px; }
.disc.lg { width: 84px; height: 84px; }
.disc.lg .ms { font-size: 40px; }
.disc.outline { background: var(--athar-ivory); border: 1.5px solid var(--line); }
.disc.outline .ms { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.disc.green { background: var(--athar-green); color: var(--athar-cream); }
/* deck card row: disc · 2px brown divider · title + body */
.card-row { display: flex; gap: 1.1rem; align-items: center; }
.card-row > .divider { align-self: stretch; width: 2px; background: var(--athar-brown); opacity: .85; border-radius: 1px; flex: none; }
.card-row .title { font-weight: 800; color: var(--athar-green); font-size: 1.125rem; line-height: 1.25; }
.card-row .text { color: var(--muted); font-size: .975rem; margin-top: .2rem; }
.card-row + .card-row { margin-top: 1.25rem; }
/* numbered card: disc, big brown numeral, rule, title, body */
.card-num .top { display: flex; justify-content: space-between; align-items: center; }
.card-num .n { font-family: var(--font-num); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--athar-brown); }
.card-num .rule { margin-block: 1.1rem .9rem; width: 40px; }
.card-num h3 { font-weight: 800; color: var(--athar-green); font-size: 1.25rem; line-height: 1.25; }
.card-num p { color: var(--muted); margin-top: .4rem; }

/* ---------- data blocks (sand → tan → brown → green) ---------- */
/* 4 across by default; mark rows of 2 or 3 with .cols-2 / .cols-3. Phones keep 2×2 (no 3+1 orphan). */
.blocks { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.blocks.cols-2 { --cols: 2; }
.blocks.cols-3 { --cols: 3; }
@media (max-width: 1024px) { .blocks:not(.cols-3) { --cols: 2; } }
/* :not(.btn) — .btn.block is the full-width button, not a data block */
.block:not(.btn) { border-radius: var(--radius-block); padding: 1.4rem 1.5rem; background: var(--athar-sand); color: var(--athar-brown); }
.block .v { font-family: var(--font-num); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.01em; direction: ltr; unicode-bidi: isolate; display: inline-block; align-self: flex-start; }
/* Arabic units read after the figure: put them outside .v, e.g. <span class="v">5</span> <span class="u">سنوات</span> */
.block .u { font-weight: 700; font-size: 1rem; margin-inline-start: .35em; }
.block .v small { font-size: .45em; font-weight: 600; margin-inline-start: .2em; }
/* a unit written before the figure: <small class="pre">…</small>12 */
.block .v small.pre { margin-inline: 0 .3em; }
.block .k { margin-top: .5rem; font-weight: 700; font-size: .9375rem; }
.block .note { margin-top: .25rem; font-size: .8125rem; opacity: 1; }
.block.tan:not(.btn) { background: var(--athar-tan); color: #4E361B; }
@media (max-width: 620px) {
  .blocks.cols-3 { --cols: 1; }
  .block:not(.btn) { padding: 1rem 1.1rem; }
  .block .v { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .block .k { font-size: .875rem; }
}
.block.brown:not(.btn) { background: var(--athar-brown); color: var(--athar-cream); }
.block.green:not(.btn) { background: var(--athar-green); color: var(--athar-cream); }

/* ---------- numbered list ---------- */
.numlist { counter-reset: n; display: grid; }
.numlist > li { counter-increment: n; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.numlist > li:last-child { border-bottom: 1px solid var(--line); }
.numlist > li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-num); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--athar-brown); }
.numlist.green > li::before { color: var(--athar-green); }
.numlist h3 { font-weight: 800; color: var(--athar-green); font-size: 1.2rem; line-height: 1.3; }
.numlist p { color: var(--muted); margin-top: .3rem; }

/* ---------- process flow: white outline discs joined by a brown line with end dots ---------- */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1rem; position: relative; }
.flow::before { content: ""; position: absolute; inset-inline: calc(100% / var(--steps, 5) / 2); top: 42px; height: 2px; background: var(--athar-brown); opacity: .7; }
.flow > li { position: relative; text-align: center; display: grid; justify-items: center; align-content: start; gap: .6rem; padding-inline: .25rem; }
/* deck process discs (README §5): outline icons in white discs joined by Brown connectors */
.flow .disc { width: 84px; height: 84px; background: #fff; border: 0; box-shadow: 0 10px 28px rgba(56, 40, 20, .10); position: relative; z-index: 1; }
.flow .disc .ms { font-size: 36px; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.flow .step { font-family: var(--font-num); font-weight: 700; color: var(--athar-brown); font-size: .875rem; letter-spacing: .1em; }
.flow h3, .flow h4 { font-weight: 800; color: var(--athar-green); font-size: 1.1rem; line-height: 1.25; }
.flow p { color: rgba(28, 28, 24, .76); font-size: 1rem; max-width: 24ch; margin-inline: auto; }
html[lang="ar"] .flow p { font-size: 1.0625rem; line-height: 1.7; }
@media (max-width: 860px) {
  .flow p { max-width: none; margin-inline: 0; }
  .flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 1.5rem; }
  .flow::before { inset-inline: auto; inset-inline-start: 41px; top: 42px; bottom: 42px; width: 2px; height: auto; }
  .flow > li { grid-template-columns: 84px 1fr; text-align: start; justify-items: start; column-gap: 1.25rem; align-items: center; }
  .flow > li > :not(.disc) { grid-column: 2; }
  .flow > li > .disc { grid-row: span 3; }
}

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.4rem; padding-inline-start: 1.75rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; inset-inline-start: calc(-1.75rem + 1px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--athar-brown); box-shadow: 0 0 0 4px var(--athar-cream); }
.timeline > li:last-child::before { background: var(--athar-green); }
.timeline .when { font-family: var(--font-num); font-weight: 600; color: var(--id-grey); font-size: .875rem; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.timeline .what { font-weight: 700; color: var(--athar-green); }

/* ---------- photos ---------- */
.photo { position: relative; border-radius: 28px; overflow: hidden; background: var(--athar-sand); isolation: isolate; }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }
/* No overlays on photos. .ripple is now an inert class: the deck's ripple edge returns when the
   designer supplies the vector (a hand-drawn mask was tried and read as parallel lines). */
.photo .caption { position: absolute; inset-inline: 0; bottom: 0; padding: 3rem 1.5rem 1.25rem; background: linear-gradient(to top, rgba(28, 22, 14, .62), rgba(28, 22, 14, 0)); color: var(--athar-cream); font-weight: 700; }
.photo.contain { background: var(--athar-ivory); }
.photo.contain > img { object-fit: contain; padding: 6%; }

/* ---------- pills, status, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: var(--radius-pill); background: var(--athar-sand); color: var(--athar-brown); font-size: .8125rem; font-weight: 700; line-height: 1.3; }
.pill .ms { font-size: 1.15em; }
.pill.sage { background: var(--athar-sage); color: var(--athar-green); }
.pill.tan { background: var(--athar-tan); color: #4E361B; }
.pill.green { background: var(--athar-green); color: var(--athar-cream); }
.pill.warn { background: var(--warn-bg); color: #7E531A; }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .75rem; border: 1.5px solid currentColor; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 700; color: var(--athar-green); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.tan { color: #76603F; }
.status.warn { color: var(--warn); }
.status.danger { color: var(--danger); }

/* notice / banner */
.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 20px; background: var(--athar-dune); }
.notice .ms { font-size: 1.6rem; color: var(--athar-brown); }
.notice strong { display: block; color: var(--athar-brown); }
.notice.good { background: var(--athar-sage); }
.notice.good .ms, .notice.good strong { color: var(--athar-green); }
.notice.warn { background: var(--warn-bg); }
.notice.warn .ms, .notice.warn strong { color: #7E531A; }
.notice.danger { background: var(--danger-bg); }
.notice.danger .ms, .notice.danger strong { color: var(--danger); }
/* a plain notice on a dune band would have the band's own colour: give it an ivory card */
.section.dune .notice:not(.good, .warn, .danger) { background: var(--athar-ivory); box-shadow: var(--shadow-card); }

/* ---------- forms ---------- */
.field { display: grid; gap: .45rem; }
.field > label, .field > .field-label { font-weight: 700; font-size: .9375rem; color: var(--athar-brown); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field .error { font-size: .8125rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem; border-radius: 14px;
  background: var(--athar-ivory); border: 1px solid var(--line); color: var(--athar-ink);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--athar-green); box-shadow: 0 0 0 3px rgba(63, 89, 59, .15); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input.id { font-family: var(--font-id); letter-spacing: .08em; direction: ltr; text-transform: uppercase; }
html[lang="ar"] .input.id { text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .45rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--athar-ivory); color: var(--athar-brown); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--athar-green); border-color: var(--athar-green); color: var(--athar-cream); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 44px; list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem 0; font-weight: 800; color: var(--athar-green); font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { transition: transform .25s var(--ease); color: var(--athar-brown); }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--athar-ink); max-width: 70ch; }

/* ---------- Arabic secondary text (Latin sizes unchanged) ---------- */
html[lang="ar"] :is(.card-row .text, .numlist p, .card-num p, .faq .answer) { font-size: 1.0625rem; line-height: 1.8; }
html[lang="ar"] :is(.small, .field .hint, .block .k, .notice) { font-size: 1rem; }
html[lang="ar"] .block .note { font-size: .9375rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(252, 248, 239, .86); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .shell { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
/* header lockup from the two official files: the mark beside the wordmark (README §2). direction:ltr
   keeps the official order, mark then wordmark, in Arabic too. */
.site-header .brand, .drawer .brand { display: flex; align-items: center; gap: 12px; flex: none; direction: ltr; text-decoration: none; }
.brand-mark { height: 60px; width: auto; }
.brand-word { height: 42px; width: auto; }
.drawer .brand-mark { height: 44px; }
.drawer .brand-word { height: 31px; }
@media (max-width: 1240px) { .site-header .brand-mark { height: 50px; } .site-header .brand-word { height: 34px; } }
@media (max-width: 620px) { .site-header .brand-mark { height: 46px; } .site-header .brand-word { height: 32px; } }
/* every page's inline placeholder (style="height:76px") follows the header height without page edits */
[data-site-header-slot] { height: var(--header-h) !important; }
/* five items (How it works · Gifts · Living map · About · Contact): one line, never wrapping, with
   room to spare beside the lockup from 1241 px (where the nav appears) in both languages */
.site-header .brand, .header-tools { flex: none; }
.site-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(.125rem, .5vw, .5rem); margin-inline: auto clamp(.25rem, 1.2vw, 1.25rem); min-width: 0; }
.site-nav a { padding: .55rem clamp(.6rem, .85vw, 1rem); border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--athar-ink); white-space: nowrap; }
html[lang="ar"] .site-nav a { font-size: 1.0625rem; }
@media (min-width: 1680px) { .site-nav a { font-size: 1.0625rem; } html[lang="ar"] .site-nav a { font-size: 1.125rem; } }
.site-nav a:hover { color: var(--athar-green); background: rgba(63, 89, 59, .06); }
/* "page" = this page; "true" = the section a page sits under (ATHAR Zayed → Gifts, Questions → How it works) */
.site-nav a[aria-current] { color: var(--athar-green); box-shadow: inset 0 -2px 0 var(--athar-brown); border-radius: 0; }
.site-nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 rgba(104, 73, 37, .45); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
/* set by site.js only if the links would overflow (unusual fonts, zoom): tighten, then use the menu */
.site-header.nav-tight .shell { gap: 1rem; }
.site-header.nav-tight .site-nav { gap: 0; margin-inline-end: .25rem; }
.site-header.nav-tight .site-nav a { padding-inline: .5rem; }
.site-header.nav-tight .lang-toggle { padding-inline: .7rem; }
.site-header.nav-collapsed .site-nav { display: none; }
.site-header.nav-collapsed .header-tools { margin-inline-start: auto; }
.site-header.nav-collapsed .menu-btn { display: inline-grid; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--athar-brown); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(104, 73, 37, .08); }
.lang-toggle { min-height: 44px; padding: .35rem .9rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: transparent; font-weight: 700; color: var(--athar-brown); cursor: pointer; }
.lang-toggle:hover { border-color: var(--athar-brown); }
.lang-toggle [data-lang="en"] { font-family: var(--font-arabic); }
.site-header .btn.small { min-height: 44px; }
.menu-btn { display: none; }
@media (max-width: 1240px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
  .header-tools .btn { display: none; }
}
/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(28, 28, 24, .45); }
.drawer .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 88vw); background: var(--athar-cream); padding: 1.25rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .25rem; overflow-y: auto; box-shadow: -20px 0 50px rgba(28, 22, 14, .18); }
html[dir="rtl"] .drawer .panel { box-shadow: 20px 0 50px rgba(28, 22, 14, .18); }
.drawer .panel .top { display: flex; justify-content: space-between; align-items: center; margin-block-end: 1rem; }
.drawer .panel nav.primary a { display: block; padding: 1rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--athar-green); }
.drawer .panel nav.primary a[aria-current] { color: var(--athar-brown); box-shadow: inset 3px 0 0 var(--athar-brown); padding-inline-start: .9rem; }
html[dir="rtl"] .drawer .panel nav.primary a[aria-current] { box-shadow: inset -3px 0 0 var(--athar-brown); }
.drawer .panel .btn { margin-top: 1.25rem; }
.drawer .panel .btn + .btn { margin-top: .75rem; }
/* the quieter second list: ATHAR Zayed · For companies · Questions · The app */
.drawer .panel nav.more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer .panel nav.more a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--athar-brown); }
.drawer .panel nav.more a[aria-current="page"] { color: var(--athar-green); text-decoration: underline; text-underline-offset: 4px; }

/* find-a-tree dialog */
.dialog { border: 0; padding: 0; border-radius: 28px; width: min(520px, calc(100vw - 2rem)); background: var(--athar-cream); color: var(--athar-ink); box-shadow: 0 30px 80px rgba(28, 22, 14, .3); }
.dialog::backdrop { background: rgba(28, 28, 24, .5); }
.dialog .inner { padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 1rem; position: relative; }
.dialog .close { position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; }

/* ---------- footer ----------
   Simplified (Oct 2026): logo + one line · one row of links · tagline + one legal line. */
.site-footer { position: relative; overflow: hidden; background: var(--athar-dune); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.site-footer .lockup { flex: none; display: block; }
.site-footer .lockup img { height: 96px; width: auto; }
.site-footer .descriptor { color: var(--athar-green); font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.4; max-width: 32ch; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 2.4vw, 2.25rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); padding-block: .5rem; border-block: 1px solid rgba(104, 73, 37, .28); }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--athar-ink); white-space: nowrap; }
.site-footer .links a:hover { color: var(--athar-green); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .links a[aria-current="page"] { color: var(--athar-green); }
/* ATHAR Zayed's own line (drawer + footer): a tribute set apart from ATHAR's offerings, never in their lists */
.tribute { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .9rem; text-decoration: none; padding-block: .85rem; min-height: 44px; color: var(--athar-green); }
.tribute-name { font-weight: 800; letter-spacing: .01em; }
.tribute-line { color: var(--athar-brown); font-size: .95em; }
.tribute:hover .tribute-name, .tribute[aria-current="page"] .tribute-name { text-decoration: underline; text-underline-offset: 4px; }
.drawer .panel .tribute { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); flex-direction: column; gap: .1rem; }
.site-footer .tribute { border-block-end: 1px solid rgba(104, 73, 37, .28); }
.site-footer .bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; margin-top: 1.5rem; }
.site-footer .legal { font-size: .8125rem; color: var(--muted); max-width: 72ch; }
html[lang="ar"] .site-footer .legal { font-size: .9375rem; }
@media (max-width: 620px) { .site-footer .lockup img { height: 84px; } .site-footer .links { gap: 0 1.25rem; } }
/* a button that looks like a text link (e.g. "Find a tree by its ID", which opens the dialog) */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--athar-ink); cursor: pointer; text-align: start; min-height: 44px; }
.link-btn:hover { color: var(--athar-green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- page hero (inner pages) ---------- */
/* One hero contract for every inner page: a 6/5 grid (copy · media), the dateline starting over the
   media column, the H1 up to 88 px, and the media fitted to the first screen.
   Markup: <section class="page-hero"><div class="shell"><p class="dateline">…</p>
             <div class="hero-grid"><div>label · h1.display · rule · lead · actions</div>
             <figure class="photo hero-media"><img …></figure></div></div></section> */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-hero .dateline { max-width: none; margin-block-end: clamp(1.25rem, 2.5vw, 2.25rem); margin-inline-start: calc((100% - var(--hero-gap)) * 6 / 11 + var(--hero-gap)); }
.page-hero .display { font-size: var(--fs-hero); max-width: 13ch; }
html[lang="ar"] .page-hero .display { font-size: calc(var(--fs-hero) * .82); max-width: 16ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--hero-gap); align-items: center; }
.hero-grid > .hero-media { width: 100%; height: clamp(360px, calc(100svh - var(--header-h) - 9rem), 640px); aspect-ratio: auto; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .page-hero .dateline { margin-inline-start: 0; }
  .hero-grid > .hero-media { height: auto; aspect-ratio: 4 / 3; }
}
/* the brand's fingerprint texture inside the heavy headline letters (README §4.2): inner-page H1, Latin only */
html[lang="en"] .page-hero .display > span {
  background: repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, .16) 14px 22px), currentColor;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[lang="en"] .page-hero .display > span::selection { -webkit-text-fill-color: var(--athar-brown); }

/* ---------- closing band: the one centred green ending ----------
   <section class="section green closing"><div class="watermark start bottom" aria-hidden="true"></div>
   <div class="shell"><h2 class="h2">…</h2><span class="rule"></span><p class="lead">…</p>
   <div class="actions"><a class="btn cream">…</a><a class="btn on-dark">…</a></div><p class="tagline">…<b>…</b></p></div></section> */
.closing { text-align: center; padding-block: clamp(4.5rem, 8vw, 7rem); }
.closing .h2 { max-width: 18ch; margin-inline: auto; }
.closing .rule { margin-inline: auto; }
.closing .lead { margin-inline: auto; max-width: 44ch; }
.closing .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.closing .tagline { margin-top: 2.25rem; color: var(--athar-sand); }
.closing .tagline b { color: var(--athar-cream); }
@media (max-width: 520px) { .closing .actions .btn { flex: 1 1 100%; } }

/* =========================================================
   Simple-page patterns (Oct 2026 content diet). One pattern each; markup in _kit.html.
   ========================================================= */

/* ---------- gift tiles: photo · who it's for · name · one line · link. Never a price. ----------
   <div class="gift-tiles"><article class="gift-tile"><figure class="photo"><img …></figure>
   <div class="body"><p class="for">…</p><h3 class="name">…</h3><p class="line">…</p>
   <a class="link stretch" href="…">…</a></div></article> …</div>
   .stretch on the link makes the whole tile clickable. --ratio sets the photo shape (default 4 / 3). */
.gift-tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.gift-tile { position: relative; display: flex; flex-direction: column; background: var(--athar-ivory); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gift-tile > .photo { border-radius: 0; aspect-ratio: var(--ratio, 4 / 3); flex: none; }
.gift-tile > .photo > img { transition: transform .8s var(--ease); }
.gift-tile .body { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); flex: 1; }
.gift-tile .for { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--athar-brown); }
html[lang="ar"] .gift-tile .for { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.gift-tile .name { font-weight: 800; color: var(--athar-green); font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; }
html[lang="ar"] .gift-tile .name { font-family: var(--font-arabic-display); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.gift-tile .line { color: var(--muted); max-width: 34ch; }
html[lang="ar"] .gift-tile .line { font-size: 1.0625rem; line-height: 1.8; }
.gift-tile .link { margin-top: auto; padding-top: .75rem; min-height: 44px; }
.gift-tile .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gift-tile:has(.stretch) { cursor: pointer; }
.gift-tile:has(.stretch:hover) { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(56, 40, 20, .12), 0 2px 6px rgba(56, 40, 20, .05); }
.gift-tile:has(.stretch:hover) > .photo > img { transform: scale(1.03); }
.gift-tile:has(.stretch:focus-visible) { outline: 3px solid var(--athar-green); outline-offset: 3px; }
.gift-tile .stretch:focus-visible { outline: none; }
@media (max-width: 960px) {
  .gift-tiles { --cols: 1; }
  .gift-tile { flex-direction: row; }
  .gift-tile > .photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 620px) {
  .gift-tile { flex-direction: column; }
  .gift-tile > .photo { flex: none; aspect-ratio: var(--ratio, 4 / 3); min-height: 0; }
}

/* ---------- compact steps: 3 (or 4 with --steps:4) numbered steps in one row ----------
   <ol class="steps"><li><h3>…</h3><p>…</p></li> …</ol>   (the numerals 01 02 03 are drawn by CSS)
   For icon steps joined by a line use .flow instead; never both on one page. */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); counter-reset: step; border-block-start: 2px solid var(--athar-brown); }
.steps > li { counter-increment: step; display: grid; gap: .5rem; align-content: start; padding-block: 1.5rem 0; padding-inline: clamp(1rem, 2.5vw, 2rem); }
.steps > li:first-child { padding-inline-start: 0; }
.steps > li + li { border-inline-start: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-num); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; color: var(--athar-brown); margin-block-end: .5rem; }
.steps h3 { font-weight: 800; color: var(--athar-green); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.25; }
html[lang="ar"] .steps h3 { font-family: var(--font-arabic-display); font-weight: 700; line-height: 1.45; }
.steps p { color: var(--muted); max-width: 30ch; }
html[lang="ar"] .steps p { font-size: 1.0625rem; line-height: 1.8; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps > li, .steps > li:first-child { grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1rem; padding: 1.25rem 0; }
  .steps > li + li { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .steps > li::before { grid-row: span 2; font-size: 2rem; margin: 0; }
  .steps > li > * { grid-column: 2; }
  .steps p { max-width: none; }
}

/* ---------- promo band: one photo + one idea + one link (ATHAR Zayed, the map teaser) ----------
   <div class="promo-band"><figure class="photo"><img …></figure><div class="body">
   <p class="label">…</p><h2 class="h2"><span>…</span><span class="alt">…</span></h2><span class="rule"></span>
   <p>…</p><div class="actions"><a class="btn">…</a></div></div></div>
   .reverse puts the photo at the end; .green is the dark version. */
.promo-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--athar-dune); border-radius: 32px; overflow: hidden; }
.promo-band.reverse > .photo { order: 2; }
.promo-band > .photo { border-radius: 0; min-height: clamp(300px, 34vw, 500px); }
.promo-band > .body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1.75rem, 4.5vw, 4rem); }
.promo-band > .body > p:not(.label) { max-width: 44ch; color: var(--athar-ink); }
.promo-band .label { margin-block-end: .9rem; }
.promo-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.promo-band.green { background: var(--athar-green); color: var(--athar-cream); }
.promo-band.green :is(.h2, .label) { color: var(--athar-cream); }
.promo-band.green .h2 .alt { color: var(--athar-sand); }
.promo-band.green .rule { background: var(--athar-sand); }
.promo-band.green > .body > p:not(.label) { color: var(--athar-sand); }
@media (max-width: 860px) {
  .promo-band { grid-template-columns: 1fr; }
  .promo-band.reverse > .photo { order: 0; }
  .promo-band > .photo { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- next step: the one "where to now" link that ends a page (before the closing band) ----------
   <a class="next-step" href="/gifts.html"><span class="k">Next</span><span class="t">Choose a gift</span>
   <span class="arrow-circle"><span class="ms flip-rtl">arrow_forward</span></span></a> */
.next-step { display: flex; align-items: center; gap: 1rem clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); border-block: 1px solid var(--line); text-decoration: none; color: inherit; }
.next-step .k { flex: none; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--athar-brown); min-width: 5rem; }
html[lang="ar"] .next-step .k { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.next-step .t { flex: 1; font-weight: 800; color: var(--athar-green); font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
html[lang="ar"] .next-step .t { font-family: var(--font-arabic-display); font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.next-step:hover .arrow-circle { background: var(--athar-brown); color: var(--athar-cream); }
.next-step:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 520px) { .next-step .k { display: none; } }

/* ---------- ID form: "Have a card? Enter its ID" (site.js wires every form[data-id-form]) ----------
   <form class="id-form" data-id-form novalidate><label for="x">…</label>
   <div class="row"><input class="input id" id="x" name="id" placeholder="AD-A-0001" autocomplete="off" spellcheck="false">
   <button class="btn" type="submit">…</button></div><span class="error" data-id-error hidden role="alert">…</span></form>
   data-id-kind="card" opens the gift-card view (/t/<ID>?k=card). */
.id-form { display: grid; gap: .5rem; max-width: 460px; }
.id-form > label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9375rem; color: var(--athar-brown); }
.id-form > label .ms { font-size: 1.25rem; }
.id-form .row { display: flex; gap: .375rem; padding: .375rem; background: var(--athar-ivory); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); transition: border-color .2s, box-shadow .2s; }
.id-form .row:focus-within { border-color: var(--athar-green); box-shadow: 0 0 0 3px rgba(63, 89, 59, .15); }
.id-form .row .input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; padding-inline: 1rem .5rem; box-shadow: none; }
.id-form .row .input:focus { box-shadow: none; }
.id-form .row .btn { flex: none; min-height: 44px; padding-inline: 1.25rem; }
.id-form .row:has([aria-invalid="true"]) { border-color: var(--danger); }
.id-form .error { font-size: .8125rem; color: var(--danger); font-weight: 600; }
html[lang="ar"] .id-form .error { font-size: .9375rem; }
.section.green .id-form > label { color: var(--athar-cream); }

/* ---------- the one public promise, one line where it matters ----------
   <p class="promise"><span class="ms">verified</span><span data-lang="en">Symbolic, documented adoption for 5 or
   10 years. Trees and land remain government property.</span><span data-lang="ar">…</span></p> */
.promise { display: flex; gap: .6rem; align-items: flex-start; max-width: 62ch; color: var(--athar-green); font-weight: 600; font-size: .9375rem; line-height: 1.5; }
.promise .ms { color: var(--athar-brown); font-size: 1.3rem; margin-top: .05em; }
html[lang="ar"] .promise { font-size: 1rem; line-height: 1.75; }
.center .promise, .promise.center { margin-inline: auto; justify-content: center; text-align: start; }
.section.green .promise { color: var(--athar-sand); }
.section.green .promise .ms { color: var(--athar-cream); }

/* larger pills for an occasions row: <ul class="cluster" role="list"><li class="pill lg">…</li></ul> */
.pill.lg { padding: .5rem 1.05rem; font-size: .9375rem; gap: .45rem; }
html[lang="ar"] .pill.lg { font-size: 1rem; }

/* ---------- reveal on scroll ----------
   Hidden only while JS runs (the head script adds .js and removes it if site.js never boots),
   so a failed module never leaves blank sections. */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 300; inset-inline: 50% auto; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--athar-green); color: var(--athar-cream); padding: .85rem 1.25rem; border-radius: 16px; font-weight: 700; box-shadow: 0 16px 40px rgba(28, 22, 14, .25); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; max-width: calc(100vw - 2rem); }
html[dir="rtl"] .toast { transform: translateX(50%) translateY(20px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
html[dir="rtl"] .toast.show { transform: translateX(50%) translateY(0); }

/* ---------- print (certificate pages override what they need) ---------- */
@media print {
  .site-header, .site-footer, .drawer, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
