/* Alex HealthPlus front-end design system — RTL-first, mobile-first, lean (no framework).
   Accent: Mediterranean blue (the Eastern Harbour at first light). Type: Almarai.
   Geometry: soft and generous — large radii, a deep cool shadow, borderless cards in light.
   Motion: subtle, reduced-motion aware. */

:root{
	/* Marine blue, not gold. --brand is the deep readable navy-blue of the wordmark (AA on white
	   AND white text on it, so it can be either ink or fill); --gold keeps its NAME because the
	   whole file references it, but on this brand it is the bright SEA-BLUE CTA surface, paired
	   with the near-black harbour ink --gold-ink. Renaming it would have touched ~40 selectors
	   across seven templates other agents own, so the name is the contract and the value is the
	   brand. */
	--brand:#134A8E; --brand-600:#0F3C74; --brand-700:#0A2F63; --brand-50:#EFF5FC; --brand-100:#CFE1F4;
	--gold:#2E9BD6; --gold-ink:#04202F;
	/* Membership tier accents (Gold > Silver > Bronze). Deliberately NOT re-hued to marine: on the
	   origin these sat inside a gold brand and had to fight it to read as a separate signal. On a
	   blue brand a gold tier badge is unambiguous the moment you see it, which is the whole job of
	   a paid-placement ramp. Values carried over unchanged, and they still pass on the new
	   surfaces (see the ratios in the report). */
	--tier-gold:#b8860b;   --tier-gold-bg:#fbf1d0;   --tier-gold-ink:#5a3f06;   --tier-gold-glow:rgba(184,134,11,.30);
	--tier-silver:#6b7685; --tier-silver-bg:#eef1f5; --tier-silver-ink:#3a444f; --tier-silver-glow:rgba(107,118,133,.26);
	--tier-bronze:#a35c2b; --tier-bronze-bg:#f7e9dd; --tier-bronze-ink:#5a3016; --tier-bronze-glow:rgba(163,92,43,.26);
	--ink:#0E1B2A; --body:#3A4A5C; --muted:#5A6D80; --line:#DEE7F0; --line-2:#EDF2F8;
	/* --muted is the brand spec's #64788D DARKENED one step, and this is a correction, not a
	   preference. #64788D measures 4.55:1 on --card but only 4.26:1 on --bg (#F3F8FD) and 4.02:1
	   on --hero-1 — and --muted is the colour of .sub-sec, .fb-lede, .doc-stats span and
	   .hub-n, every one of which renders on --bg, not on a card. #5A6D80 measures 5.34:1 on
	   --card, 5.00:1 on --bg, 4.71:1 on --hero-1 and 4.86:1 on --brand-50: AA on every surface
	   this token is actually painted on. It is NOT rated against --foam (2.85:1 short of AA
	   there) — foam panels use --body for secondary text, see .sec-wash below. */

	/* --line SEPARATES blocks of content, and 1.25:1 is all a hairline rule between two panels
	   needs to be. The BOUNDARY OF AN INTERACTIVE CONTROL is a different requirement: WCAG 2.2
	   SC 1.4.11 asks for 3:1 against the adjacent colour, because that edge is what tells a
	   reader where a tappable field begins. --field-line is the one token a control border may
	   use; --brand-100 stays, for decorative fills and chip edges.

	   THE BRAND SPEC'S VALUE FOR THIS TOKEN DOES NOT HOLD. It gives #A9BDD2 and annotates it
	   "3.05:1 on #FFFFFF"; measured, #A9BDD2 is 1.93:1 on white — below even the old gold
	   brand's failing #b9c4d1. Shipping it would have put invisible edges on every field in the
	   hero console, which is the exact bug the origin's comment above was written to close.
	   #6C849F is the same blue-grey family carried down to 3.86:1 on --card, 3.61:1 on --bg,
	   3.41:1 on --hero-1, 3.52:1 on --brand-50 and 3.17:1 on --foam — i.e. it clears 3:1 against
	   EVERY light surface a control can sit on, including the foam washes this brand adds. */
	--field-line:#6C849F;
	/* The suggestion modal's semantic colours, and the form's error channel. Warm on purpose:
	   these are the emergency notice (123 / 112) and the field-error channel, and a red that
	   drifts toward the marine brand stops reading as an alarm. Every one is written twice, in
	   light and in dark, because in dark mode this modal is the single element in the product
	   that carries those numbers. */
	--danger-bg:#fdecea; --danger-ink:#8c1d13; --danger-line:#f3b5ae; --err-ink:#c0392b;
	--conf-high-bg:#e4f6ec; --conf-high-ink:#11764f;
	--conf-med-bg:#fff2d9;  --conf-med-ink:#8a5a00;
	--bg:#F3F8FD; --card:#FFFFFF; --ok:#0E765D; --ok-bg:#E2F5F0; --warn:#B45309; --warn-bg:#FDF3E4;
	/* --ok is the spec's #0F7D63 darkened by one step. #0F7D63 on --ok-bg measures 4.49:1, which
	   is under 4.5 — and .badge-ok, .gnotice--ok and .branch-sib-st.is-open are all --ok text ON
	   --ok-bg. #0E765D measures 4.92:1 there, 5.57:1 on --card and 5.22:1 on --bg. */
	/* The single card CTA. Deliberately the DEEP end of the brand's own blue ramp rather than a
	   contrasting hue: a slab in a second colour repeated twelve times down a results page reads
	   as a second brand. Depth, not hue, separates it from the bright --gold pill in the header —
	   and white on #0A3C77 is 10.91:1, on #155FA8 6.49:1, so the gradient passes AA at both ends. */
	--cta:#0A3C77; --cta-2:#155FA8; --cta-ink:#FFFFFF; --cta-glow:rgba(19,74,142,.32);
	/* GEOMETRY — the loudest thing that separates this brand from its siblings. MedCairo went
	   squared and the origin was a 14px pill system; Alex HealthPlus is soft and generous, so
	   every radius steps up. --radius-ctl is what a CONTROL is (field, segment, button, popup
	   list); --radius-xs is what nests inside one (a suggestion row). Anything wrapping a control
	   derives its radius from --radius-ctl plus its own padding, so the curves stay concentric if
	   either number is retuned. */
	--radius:20px; --radius-sm:14px; --radius-lg:30px; --radius-ctl:16px; --radius-xs:10px;
	/* Deeper and COOLER than the origin's: the shadow is now what separates a card from the page,
	   because cards are borderless in light mode (see --card-line). rgba(8,30,55,…) is the
	   harbour navy, so the shadow reads as depth in the same light the palette is lit by rather
	   than as a grey smudge. */
	--shadow:0 2px 4px rgba(8,30,55,.05),0 14px 40px rgba(8,30,55,.09);
	--shadow-sm:0 1px 3px rgba(8,30,55,.07);
	/* --shadow-md was REFERENCED by .gallery-item:hover and never defined anywhere in the file,
	   so that declaration was invalid at computed-value time and the hover lift had no shadow at
	   all. Defined here, one step above --shadow, and reused as the lift for every card hover. */
	--shadow-md:0 4px 10px rgba(8,30,55,.07),0 22px 56px rgba(8,30,55,.14);
	/* Cards are BORDERLESS in light mode — separation comes from --shadow over the cool --bg —
	   and take a 1px --line border in dark, where a shadow on a near-black page cannot read.
	   One token instead of a dark override per card type: every card rule writes
	   `border:1px solid var(--card-line)`, so the border BOX is always there (no reflow when it
	   appears) and the two themes differ by one declaration in one place. Cards that carry their
	   own meaning-bearing edge — .doc-card.is-featured, the three .doc-card--tier rules — set
	   border-color themselves and are unaffected. */
	--card-line:transparent;
	--wrap:1180px; --nav-h:68px;
	/* Almarai, self-hosted, 400 and 700 ONLY (assets/css/fonts.css). Never ask for 500 or 800:
	   there is no face for either, so CSS font matching resolves them to a weight that does exist
	   and the declaration only ever states an intent the stylesheet cannot honour — and a
	   synthesised Arabic bold damages exactly the joining behaviour the letter-spacing rules
	   below are careful about. */
	--sans:"Almarai",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
	--nav-bg:rgba(255,255,255,.9); --hero-1:#E8F2FB; --hero-2:var(--bg);
	/* The footer is deliberately dark in BOTH themes — it is the page's terminal band, and a
	   light slab there would end every page on a bright rectangle. Declared here so that stays
	   a documented decision (and a re-skinnable one) rather than six loose hexes further down. */
	--foot-bg:#071A2C; --foot-ink:#B9CBDD; --foot-hi:#FFFFFF;
	--foot-muted:#8AA2B9; --foot-dim:#6C859E; --foot-line:#122D45;
	/* --- Alex HealthPlus's own tokens ------------------------------------------------------
	   The sea. --sea / --sea-2 are the two upper wave bands and the chart accent; --foam is the
	   pale crest at the waterline (`.sea-a`, the glint just under the horizon), and doubles as
	   the brand's section-wash surface (.sec-wash, the specialty cards, the ax-doc specialty
	   chip) — a motif neither sibling site has. The NEAREST wave band is a deeper blue with no
	   token, for the reason written at .wave-3: the foreground has to be the darkest water in
	   the picture or the whole sea flattens into the page.
	   --beam is the lighthouse LIGHT — the lantern's radial glow, and the shaft itself in dark
	   mode. It is a warm light source, not a UI colour, and it has no readable text pair. The
	   light-mode shaft cannot use it: a pale yellow over a pale dawn sky measures 1.01:1, i.e.
	   a perfect luminance match, so that one stop is a saturated amber instead (see .beam-a).
	   Text on --foam must be --ink (14.26:1) or --body (7.45:1). NOT --muted, which is 3.74:1
	   there; that is why the wash components below name --body explicitly. */
	--sea:#4FA8DE; --sea-2:#86CDEF;
	--foam:#D6ECFA;
	--beam:#FFE9A8;
	color-scheme:light;
}
:root[data-theme="dark"]{ color-scheme:dark; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){ color-scheme:dark; } }
/* Dark theme (explicit toggle wins; else follows system).
   Written TWICE on purpose — once for the explicit toggle, once for the system preference — so
   that a visitor who has chosen light on a dark OS gets light. The toggle only writes
   data-theme once it has been CLICKED, so a visitor whose OS is dark and who never touched it
   matches neither [data-theme="dark"] nor [data-theme="light"]: the attribute selector alone
   would leave them on the light palette. Change a value in one of these blocks and you must
   change it in the other. */
:root[data-theme="dark"]{
	--brand:#6FB4EE; --brand-600:#5AA6E8; --brand-700:#4595DC; --brand-50:#0D2136; --brand-100:#132F49;
	--gold:#4FB6E8; --gold-ink:#04202F;
	--tier-gold:#e5c15a;   --tier-gold-bg:#3a2f12;   --tier-gold-ink:#f7e6b0;   --tier-gold-glow:rgba(229,193,90,.30);
	--tier-silver:#aab4c2; --tier-silver-bg:#1E2C3A; --tier-silver-ink:#dbe3ec; --tier-silver-glow:rgba(170,180,194,.26);
	--tier-bronze:#d08a54; --tier-bronze-bg:#33230f; --tier-bronze-ink:#f0c9a8; --tier-bronze-glow:rgba(208,138,84,.26);
	--ink:#EAF2FA; --body:#BDCEDE; --muted:#8397AB; --line:#1B3550; --line-2:#132840;
	--bg:#08131F; --card:#0F2233; --ok:#4ade80; --ok-bg:#123227; --warn:#fb9a5a; --warn-bg:#33230f;
	--cta:#2E9BD6; --cta-2:#4FB6E8; --cta-ink:#04202F; --cta-glow:rgba(46,155,214,.30);
	/* Same correction as the light block, same reason. The spec's dark #43617E is 2.51:1 on
	   --card and 2.89:1 on --bg; both are under the 3:1 SC 1.4.11 asks of a control edge.
	   #547596 is 3.36:1 on --card, 3.88:1 on --bg and 3.39:1 on --brand-50. */
	--field-line:#547596;
	--danger-bg:#3a1f1c; --danger-ink:#ff9d8f; --danger-line:#6b332c; --err-ink:#ff8a7a;
	--conf-high-bg:#123227; --conf-high-ink:#6ee7b7;
	--conf-med-bg:#33230f;  --conf-med-ink:#f0c179;
	--shadow:0 2px 4px rgba(0,0,0,.34),0 16px 44px rgba(0,0,0,.44);
	--shadow-sm:0 1px 3px rgba(0,0,0,.4);
	--shadow-md:0 4px 10px rgba(0,0,0,.4),0 24px 60px rgba(0,0,0,.5);
	/* The other half of the borderless-card decision: a 40px shadow over #08131F is invisible,
	   so in dark the edge comes back. */
	--card-line:var(--line);
	--nav-bg:rgba(8,19,31,.88); --hero-1:#0C2740; --hero-2:var(--bg);
	/* --foam is a real UI SURFACE here (section washes, specialty cards, the ax-doc chip), so
	   unlike --sea / --beam it cannot keep its light value: a #D6ECFA panel on a #08131F page is
	   a floodlight. #10293F carries --ink at 13.17:1, --body at 9.25:1 and --muted at 4.95:1.
	   --sea / --sea-2 / --beam are scene pigments only, and the hero scene repaints the ones it
	   needs (`.sea-a` takes a bright night glint rather than this surface colour). */
	--foam:#10293F;
}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]){
		--brand:#6FB4EE; --brand-600:#5AA6E8; --brand-700:#4595DC; --brand-50:#0D2136; --brand-100:#132F49;
		--gold:#4FB6E8; --gold-ink:#04202F;
		--tier-gold:#e5c15a;   --tier-gold-bg:#3a2f12;   --tier-gold-ink:#f7e6b0;   --tier-gold-glow:rgba(229,193,90,.30);
		--tier-silver:#aab4c2; --tier-silver-bg:#1E2C3A; --tier-silver-ink:#dbe3ec; --tier-silver-glow:rgba(170,180,194,.26);
		--tier-bronze:#d08a54; --tier-bronze-bg:#33230f; --tier-bronze-ink:#f0c9a8; --tier-bronze-glow:rgba(208,138,84,.26);
		--ink:#EAF2FA; --body:#BDCEDE; --muted:#8397AB; --line:#1B3550; --line-2:#132840;
		--bg:#08131F; --card:#0F2233; --ok:#4ade80; --ok-bg:#123227; --warn:#fb9a5a; --warn-bg:#33230f;
		--cta:#2E9BD6; --cta-2:#4FB6E8; --cta-ink:#04202F; --cta-glow:rgba(46,155,214,.30);
		--field-line:#547596;
		--danger-bg:#3a1f1c; --danger-ink:#ff9d8f; --danger-line:#6b332c; --err-ink:#ff8a7a;
		--conf-high-bg:#123227; --conf-high-ink:#6ee7b7;
		--conf-med-bg:#33230f;  --conf-med-ink:#f0c179;
		--shadow:0 2px 4px rgba(0,0,0,.34),0 16px 44px rgba(0,0,0,.44);
		--shadow-sm:0 1px 3px rgba(0,0,0,.4);
		--shadow-md:0 4px 10px rgba(0,0,0,.4),0 24px 60px rgba(0,0,0,.5);
		--card-line:var(--line);
		--nav-bg:rgba(8,19,31,.88); --hero-1:#0C2740; --hero-2:var(--bg);
		--foam:#10293F;
	}
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* clip, not hidden — the two declarations are a support ladder, `clip` wins where it parses.
   `hidden` only removes the horizontal scrollBAR; the viewport stays a scroll container and
   stays scrollable PROGRAMMATICALLY (focus(), scrollIntoView(), autofill, find-in-page). In a
   dir="rtl" document the inline-end direction is LEFT, so one stray `left:-9999px` becomes
   ~10,000px of genuine scrollable overflow and any of those can throw the viewport sideways
   into empty space — a blank page carrying even the sticky nav away with it. `clip` makes the
   box a non-scroll-container on that axis, so that whole class of bug cannot happen. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden;overflow-x:clip}
/* 16px / 1.75, not the origin's 16px / 1.65. Almarai has a noticeably larger x-height and a
   taller Arabic ascender/descender reach than Tajawal at the same em size, so lines that were
   comfortable at 1.65 close up under it — the descenders of one line meet the dots of the next,
   which in a joining script is where legibility goes first. 1.75 is the leading Almarai's own
   metrics ask for and it is what the long copy on this site (article body, results lede, FAQ)
   is measured against. */
body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--body);line-height:1.75;font-size:16px;
	-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-wrap:break-word;min-height:100dvh}
/* overflow-x is deliberately NOT set on <body>. html's overflow propagates to the viewport
   and html itself computes to visible, so a body with overflow-x:hidden keeps its own value —
   and a box with one axis hidden and the other visible computes overflow-y to auto, making
   BODY the scroll container. Every position:sticky descendant then resolves against a box that
   never scrolls, so nothing ever pins. (overflow-x:clip does NOT trigger that computation —
   the rule fires only when the other axis is neither visible nor clip — which is a second
   reason to prefer it above.) Horizontal overflow is still clipped: html above owns that,
   at the viewport. */
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
a{color:inherit;text-decoration:none}
/* height:auto is load-bearing, not decorative: max-width alone leaves the HTML height attribute
   in force, so any image wider than its column renders squashed to its original height. */
img{max-width:100%;height:auto;display:block}
/* 700, and only 700. fonts.css ships Almarai at 400 and 700 — those are the only two faces the
   family HAS, for either unicode range — so 500, 600 and 800 all resolve to a weight that does
   exist and any such declaration only ever states an intent the stylesheet cannot honour. It is
   also a trap: if a weight-limited subset is the first to load, some engines synthesise the
   missing face, and a synthesised Arabic bold damages exactly the joining behaviour the
   letter-spacing rules below are careful about. Say what renders.

   letter-spacing:0, not the origin's -.01em. Negative tracking is a Latin-display trick, and
   Almarai is drawn with a wide default sidebearing precisely so its Arabic joins have room:
   pulling the letters together closes the kashida and thickens every connector, on the largest
   and most-read text on the site. line-height 1.2 stays — it is a display size, not copy. */
h1,h2,h3,h4{color:var(--ink);line-height:1.2;margin:0;font-weight:700;letter-spacing:0}
p{margin:0}
button{font-family:inherit;cursor:pointer}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:20px}
.sec{padding-block:clamp(40px,6vw,80px)}
.eyebrow{color:var(--brand);font-weight:700;font-size:.9rem;margin-bottom:.35rem}
.h-sec{font-size:clamp(1.5rem,3.4vw,2.15rem);margin-bottom:.4rem}
.sub-sec{color:var(--muted);max-width:60ch}
.center{text-align:center;margin-inline:auto}

/* Buttons.
   Fully rounded (999px) like the origin, but with noticeably more horizontal room: .9rem 1.6rem
   against the origin's .72rem 1.3rem. On a soft, large-radius system a tight pill reads as a
   leftover from the squarer one — the lozenge has to be wide enough that its straight middle
   section is visible, or it collapses into a stadium of pure curve. This is also the padding the
   Arabic labels want: "احجز الآن" at .95rem/700 measures ~74px, and 1.3rem of side padding put
   the glyphs closer to the edge than the cap height. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;font-size:.95rem;
	padding:.9rem 1.6rem;border-radius:999px;border:1px solid transparent;transition:transform .15s,background .15s,box-shadow .15s;white-space:nowrap}
.btn:active{transform:translateY(1px)}
/* The glow is the CTA surface's own hue at low alpha — a sea-blue button casting a sand-coloured
   shadow was the single most visible leftover of the gold brand. */
.btn-primary{background:var(--gold);color:var(--gold-ink);box-shadow:0 8px 20px rgba(46,155,214,.34)}
.btn-primary:hover{background:var(--gold);filter:brightness(.93)}
/* --field-line, not --line: this is a bordered CONTROL sitting on --card or --bg, and its edge
   is the only thing that says where the target starts. --line is 1.25:1. */
.btn-ghost{background:var(--card);color:var(--ink);border-color:var(--field-line)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn-sm{padding:.6rem 1.1rem;font-size:.85rem}
.btn-block{display:flex;width:100%}

/* Navbar */
.nav{position:sticky;top:0;z-index:50;background:var(--nav-bg);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line);transition:box-shadow .3s ease}
.nav.scrolled{box-shadow:0 8px 30px rgba(8,30,55,.10)}
.nav-in{max-width:var(--wrap);margin:0 auto;height:var(--nav-h);display:flex;align-items:center;gap:14px;padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
.brand{display:inline-flex;align-items:center;flex:0 0 auto}
/* Lockup height, not width, is what the nav constrains — and the right number depends on the
   lockup's proportion. The origin's was a single-line wordmark at 5.06:1, where 20.4px bought
   ~103px of width. Both of this brand's lockups pair a two-line wordmark with an emblem at
   about 2.3:1, so 20.4px rendered them 46px wide: half the origin's optical weight, with the
   Arabic below the size its joins survive. 34px restores the width the nav was designed around
   and keeps the mark clear of the 68px bar. */
.brand-logo{height:34px;width:auto;max-width:min(56vw,260px);display:block}
/* The two-file logo swap.
 *
 * The wordmark flips from near-ink to near-white for a dark surface while the emblem keeps its
 * brand gradient, so no CSS filter derives one file from the other — invert() would take the
 * mark's own hue with it. parts-header.php therefore ships BOTH lockups and this rule picks
 * one, on the same three-state ladder every other themed value in this file uses: light by
 * default, [data-theme="dark"] for the explicit toggle, and prefers-color-scheme for the
 * visitor who has never touched it. Written three times deliberately — an explicit choice must
 * win over the system preference in BOTH directions.
 *
 * display:none, not opacity or visibility: the hidden twin must not occupy a box in the nav's
 * flex row, and `.brand-logo` above is display:block, so anything weaker leaves a gap the width
 * of a second logo. The dark twin also carries aria-hidden and an empty alt in the markup, so
 * the pair is one accessible name and not two.
 *
 * The FOOTER is dark in both themes — that is a documented decision in the token block above —
 * so its lockup is not part of the swap at all. It hardcodes the light-wordmark file and
 * carries .brand-logo--ondark, which sits outside this ladder on purpose. */
.brand-logo--dark{display:none}
:root[data-theme="dark"] .brand-logo--light{display:none}
:root[data-theme="dark"] .brand-logo--dark{display:block}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .brand-logo--light{display:none}
	:root:not([data-theme="light"]) .brand-logo--dark{display:block}
}
@media (max-width:560px){.brand-logo{height:30px}}
@media (max-width:360px){.brand-logo{height:26px}}
.footer .brand-logo{height:54px}
.nav-links{display:flex;align-items:center;gap:4px;margin-inline-start:8px}
.nav-links a{padding:.5rem .8rem;border-radius:var(--radius-xs);color:var(--body);font-weight:600;font-size:.95rem}
.nav-links a:hover{background:var(--brand-50);color:var(--brand-700)}
/* "You are here" on desktop too. The bottom bar has always marked it and the header never did,
   so the same visitor got the signal on a phone and lost it on a laptop. */
.nav-links a.is-on{color:var(--brand-700);background:var(--brand-50)}
.nav-links a.is-on::after{content:"";display:block;height:2px;border-radius:2px;background:var(--gold);margin-top:3px}
.nav-right{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
/* 44×44, and for a worse failure than the theme toggle's below: a mis-tap here throws the
   visitor into the other language, and on a phone the only route back is the toggle buried in
   the drawer. Two characters of label do not make a target. Both controls sit in a fixed-height
   68px bar directly above the hero's query field, so neither grows the header. */
.lang-tog{font-weight:700;color:var(--muted);padding-inline:.6rem;border-radius:999px;border:1px solid var(--field-line);
	min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
/* Sign-out sits beside the Dashboard button as a quiet text link — it is a safety exit, not a
   call to action, and two filled buttons side by side would compete. Padded to a real target
   size rather than left as bare 13px text. */
.nav-logout{font-weight:700;font-size:.85rem;color:var(--muted);padding:.5rem .8rem;border-radius:999px;line-height:1.4}
.nav-logout:hover{color:var(--brand-700);background:var(--brand-50)}
.lang-tog:hover{color:var(--brand);border-color:var(--brand)}
/* Animated theme toggle (sliding pill) */
/* 7px of padding around a 58×30 track, not 2px: 62×34 was the second undersized target in the
   sticky bar above the search field. 72×44 inside a 68px bar costs no height. */
.theme-toggle{background:none;border:0;padding:7px;cursor:pointer;display:inline-flex;align-items:center;line-height:0}
.tt-track{position:relative;direction:ltr;width:58px;height:30px;border-radius:999px;
	background:linear-gradient(135deg,#E8F2FB,#CFE1F4);border:1px solid var(--field-line);
	box-shadow:inset 0 1px 3px rgba(8,30,55,.16);transition:background .4s ease,border-color .35s ease}
.tt-ic{position:absolute;width:15px;height:15px;top:50%;transform:translateY(-50%);transition:opacity .3s ease}
.tt-sun{left:8px;color:#f6a623;opacity:1}
.tt-moon{right:8px;color:#8ea0cf;opacity:.45}
.tt-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;
	background:radial-gradient(circle at 32% 30%,#fffef8,#ffe9b8);
	box-shadow:0 2px 6px rgba(8,30,55,.32),0 0 0 1px rgba(8,30,55,.06);
	transition:transform .45s cubic-bezier(.34,1.45,.5,1),background .4s ease}
.theme-toggle:hover .tt-track{border-color:var(--brand)}
.theme-toggle.is-dark .tt-track{background:linear-gradient(135deg,#0C2740,#183A55);border-color:#547596;box-shadow:inset 0 1px 3px rgba(0,0,0,.45)}
.theme-toggle.is-dark .tt-knob{transform:translateX(28px);background:radial-gradient(circle at 32% 30%,#eef4fc,#c4d2e6);box-shadow:0 2px 6px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06)}
.theme-toggle.is-dark .tt-sun{opacity:.4}
.theme-toggle.is-dark .tt-moon{opacity:1;color:#dce6fb}
.nav-burger{display:none;background:none;border:0;padding:8px;color:var(--ink)}
.nav-burger svg{width:26px;height:26px}
/* mobile drawer */
.drawer{position:fixed;inset:0;z-index:60;visibility:hidden;pointer-events:none}
.drawer.open{visibility:visible;pointer-events:auto}
.drawer-bg{position:absolute;inset:0;background:rgba(4,20,36,.5);opacity:0;transition:opacity .25s}
.drawer.open .drawer-bg{opacity:1}
/* `inset-inline-end` is logical and resolves to LEFT in RTL, but `transform` is PHYSICAL and does
   not flip with it. So the off-screen direction has to be written per-direction by hand: a single
   translateX(100%) parked the RTL panel 330px INSIDE the viewport and then animated it across the
   whole screen. RTL panel hangs off the left edge, LTR panel off the right. */
.drawer-panel{position:absolute;inset-inline-end:0;top:0;height:100%;height:100dvh;width:min(84%,330px);background:var(--card);
	transform:translateX(-100%);transition:transform .28s cubic-bezier(.16,1,.3,1);
	padding:calc(16px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
	display:flex;flex-direction:column;gap:4px;overflow-y:auto;-webkit-overflow-scrolling:touch}
[dir="ltr"] .drawer-panel{transform:translateX(100%)}
/* Must stay AFTER the [dir="ltr"] rule — both are (0,2,0), so source order is what opens it. */
.drawer.open .drawer-panel{transform:translateX(0)}
/* No blanket `.drawer-panel a` rule any more. It gave every link a hairline underneath, which was
   fine for five and absurd for the ~40 the tree carries; each row now styles itself (.dr-top,
   .dr-body a, .dr-quiet) and the rules live with the accordion below. */
.drawer-close{align-self:flex-end;background:none;border:0;font-size:1.6rem;color:var(--muted);cursor:pointer}
/* ---------------------------------------------------------------------------------------------
   Mega-menu.

   The panel is positioned against `.nav`, not against the group that opened it. `.nav` is
   `position:sticky`, which IS a positioned element, so it is already the containing block — and
   anchoring there is what lets the panel be a full-bleed bar with its contents held to the same
   `--wrap` as the rest of the site. Anchored to the group instead, a four-column panel opening
   under the last item would hang off the edge of the viewport in LTR and off the other edge in
   RTL, and the usual fix (a transform nudge measured in JS) is a resize handler waiting to break.

   `top:100%` with no gap is not a cosmetic choice: any vertical gap between the button and the
   panel is dead ground that closes the menu when the pointer crosses it.
   --------------------------------------------------------------------------------------------- */
.nav-item{display:flex}
.nav-top{position:relative;display:inline-flex;align-items:center;gap:5px;padding:.5rem .75rem;
	border-radius:var(--radius-ctl);color:var(--body);font-weight:600;font-size:.95rem;font-family:inherit;
	background:none;border:0;cursor:pointer;line-height:1.5;white-space:nowrap}
.nav-top:hover{background:var(--brand-50);color:var(--brand-700)}
.nav-top.is-on{color:var(--brand-700);background:var(--brand-50)}
.nav-top.is-on::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:4px;
	height:2px;width:20px;border-radius:2px;background:var(--gold)}
.nav-chev{width:14px;height:14px;flex:0 0 auto;opacity:.65;transition:transform .2s ease}
.nav-item.is-open .nav-top{background:var(--brand-50);color:var(--brand-700)}
.nav-item.is-open .nav-chev{transform:rotate(180deg)}

/* Anchored to `.nav`, not to the group that opened it, so the panel is a full-bleed bar whose
   contents sit on the same `--wrap` as the rest of the site. Anchored to the group instead, a
   four-column panel opening under the last item would hang off the edge of the viewport in LTR
   and off the other edge in RTL, and the usual fix — a transform nudge measured in JS — is a
   resize handler waiting to break.

   `.nav` is `position:sticky`, which IS a positioned element, so it is already the containing
   block: nothing else has to be added to make this resolve, and `top:100%` lands exactly on the
   bar's own height whatever `--nav-h` is at this width. `.nav-item` therefore must NOT be
   positioned — the active underline lives on `.nav-top`, which is.

   No gap between button and panel, ever: any vertical dead ground closes the menu when the
   pointer crosses it. */
.mega{position:absolute;top:100%;left:0;right:0;z-index:55}
.mega-in{max-width:var(--wrap);margin:0 auto;display:flex;gap:clamp(18px,2.4vw,34px);
	max-height:calc(100dvh - var(--nav-h) - 24px);overflow-y:auto;overscroll-behavior:contain;
	padding:clamp(18px,2.2vw,26px) max(16px,env(safe-area-inset-left)) clamp(20px,2.4vw,28px) max(16px,env(safe-area-inset-right));
	background:var(--card);border:1px solid var(--line);border-top:0;
	border-radius:0 0 22px 22px;box-shadow:0 18px 44px rgba(16,32,52,.14);
	animation:alexMegaIn .18s cubic-bezier(.2,.8,.3,1)}
@keyframes alexMegaIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mega-in{animation:none}.nav-chev{transition:none}}
/* Columns keep a readable measure instead of stretching to fill the bar. A three-column group
   spread across 1180px puts 380px between "Contact" and "Privacy", which reads as three unrelated
   lists rather than one menu; capped and packed to the inline start, the leftover is a single
   quiet margin and the panel reads as one object. The CTA, where a group has one, is pushed to
   the far end so it never sits in the middle of the columns. */
.mega-in{justify-content:flex-start}
.mega-col{flex:1 1 200px;max-width:280px;min-width:0}
.mega-in.has-cta .mega-cta{margin-inline-start:auto}
.mega-head{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
	color:var(--muted);margin:0 0 .55rem}
.mega-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.mega-list a{display:block;padding:.45rem .5rem;border-radius:var(--radius-ctl);color:var(--ink);font-weight:600;font-size:.92rem}
.mega-list a:hover,.mega-list a:focus-visible{background:var(--brand-50);color:var(--brand-700)}
.mega-list a span{display:block}
/* The note is a sentence of context, not a second link label — it must never be mistaken for one,
   so it is lighter, smaller and never underlined on hover. */
.mega-list a em{display:block;font-style:normal;font-size:.78rem;font-weight:500;color:var(--muted);margin-top:1px}
.mega-more{display:inline-block;margin-top:.5rem;padding:.35rem .5rem;font-size:.83rem;font-weight:700;color:var(--brand-700)}
.mega-more:hover{text-decoration:underline}
.mega-cta{flex:0 0 clamp(230px,20%,290px);align-self:flex-start;background:var(--brand-50);
	border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.mega-cta-t{margin:0;font-weight:800;color:var(--ink);font-size:.98rem}
.mega-cta-x{margin:.4rem 0 .8rem;color:var(--body);font-size:.83rem;line-height:1.6}

/* ---------------------------------------------------------------------------------------------
   Drawer accordion.
   --------------------------------------------------------------------------------------------- */
.dr-group{border-bottom:1px solid var(--line-2)}
/* The marker has to go in three dialects — Chromium honours ::-webkit-details-marker, Firefox and
   Safari honour list-style on the summary itself — or one of the three ships a stray triangle
   beside the chevron. */
.dr-group>summary::-webkit-details-marker{display:none}
.dr-group>summary{list-style:none}
.dr-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
	padding:.95rem .6rem;border-radius:var(--radius-ctl);font-weight:700;color:var(--ink);min-height:48px;cursor:pointer}
.dr-top:hover{background:var(--brand-50)}
.dr-top.is-on{color:var(--brand-700)}
.dr-group[open]>.dr-top .nav-chev{transform:rotate(180deg)}
.dr-body{padding:0 0 .6rem;display:flex;flex-direction:column}
.dr-body a{padding:.7rem .6rem .7rem 1.1rem;padding-inline:1.1rem .6rem;border-radius:var(--radius-ctl);
	font-weight:600;font-size:.93rem;color:var(--body);min-height:44px;display:flex;align-items:center;border:0}
.dr-body a:hover{background:var(--brand-50);color:var(--brand-700)}
.dr-head{margin:.7rem 0 .2rem;padding-inline-start:.6rem;font-size:.7rem;font-weight:800;
	letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dr-head:first-child{margin-top:.2rem}
.dr-more{color:var(--brand-700)!important;font-weight:700!important}
.dr-foot{margin-top:auto;padding-top:14px;display:flex;flex-direction:column;gap:6px}
.dr-quiet{border:0;padding:.7rem .6rem;border-radius:var(--radius-ctl);font-weight:700;font-size:.9rem;color:var(--muted);
	min-height:44px;display:flex;align-items:center}
.dr-quiet:hover{background:var(--brand-50);color:var(--brand-700)}
/* The old drawer put a hairline under every link. With the tree in here that produced a rule under
   every one of ~40 rows; the borders now belong to the group, not to the row. */
.drawer-panel>a.dr-top{border-bottom:1px solid var(--line-2)}

/* Alex HealthPlus's own reading of the panel: soft cards on a soft sheet.

   Every other grouped surface in this design system — the facet panel, the profile rail, the
   home-page district strip — separates its groups by giving each one a tinted card rather than a
   rule, and the mega-menu is the last grouped surface that was still doing it with whitespace.
   The 26px bottom radius is the same corner the hero console and the search sheet use, so the
   panel reads as a continuation of the header rather than as a box dropped on top of the page. */
.mega-in{border-radius:0 0 26px 26px}
.mega-col{background:var(--bg);border:1px solid var(--line-2);border-radius:var(--radius);
	padding:14px 12px;max-width:290px}
.mega-head{padding-inline-start:.5rem}
.mega-cta{background:linear-gradient(160deg,var(--brand-50),var(--bg));border-color:var(--line-2)}

/* Hero + search */
.hero{position:relative;background:
	/* Centred, not offset to 80%: this hero is a CENTRED composition (the console floats in the
	   middle of it) and an off-axis glow pulled the eye to one shoulder of a symmetric layout. */
	radial-gradient(1100px 460px at 50% -8%,var(--hero-1),transparent 62%),
	linear-gradient(180deg,var(--card), var(--hero-2));
	/* The bottom padding was clamp(150px,22vw,270px) — up to 270px of empty ground under the
	   form, reserved so the decorative scene had room to show. It read as a broken layout: the
	   fold ended on nothing, and every real section was pushed below it. The scene is a
	   background, so it can bleed behind the next section instead of being given a stage.
	   Tightened again with the counter strip gone: the hero's job is to get a question asked,
	   and every pixel under the last control is a pixel of the answer nobody can see yet. */
	padding-top:clamp(22px,3.6vw,44px);padding-bottom:clamp(26px,4vw,48px);
	/* NOT overflow:hidden. That clipped the combobox dropdown — an 8-item, 320px-tall list
	   opening near the bottom of the hero was cut off by its own container, on the primary
	   control of the most-visited page. The decorative scene clips itself (contain:paint on
	   .hero-scene), so nothing here needed the hero to do it.

	   AND NOT `isolation:isolate; z-index:1`, which is what used to close this rule. Those two
	   made the hero a STACKING CONTEXT, so everything inside it — the combobox dropdown included
	   — painted as a single unit at root-level z-index 1. The sticky header (.nav, z-index 50)
	   and the fixed mobile bottom bar (.botnav, z-index 55) are siblings in the ROOT context and
	   therefore painted over the entire hero regardless of what z-index the list asked for: on a
	   360px phone the last suggestion rows sat UNDER the bottom bar, with no scroll cue, on the
	   one control this page exists to offer. The same CSS always worked on /search/, where the
	   form sits in a box that creates no stacking context — which is why it was easy to miss.

	   Nothing was lost. The hero is positioned and the section after it is not, so it still
	   paints above it; and .hero-scene stays behind .hero-grid because a z-index:0 positioned box
	   paints before a z-index:auto positioned box that follows it in tree order. */
	}
/* The full-bleed centred hero — this brand's opening composition, and deliberately the OPPOSITE
   of MedCairo's split hero. The scene runs the whole width of the viewport behind everything,
   the copy is a centred column above it, and the search console floats in the middle on a heavy
   shadow (.hero-console). A modifier rather than a rewrite of .hero, because /search/ and the
   404 page still render the plain hero and neither wants this much vertical room. */
/* The bottom padding was clamp(44px,6.5vw,90px), i.e. 90px at 1440 — and the quick-specialty
   rail already ends on its own .7rem of scroller padding, so the fold closed on ~105px of empty
   water between the last chip and the next section, which then opened with its own top padding.
   Halved. The scene loses nothing by it: `preserveAspectRatio="xMidYMax slice"` pins the SEA to
   the bottom edge, so a shorter hero crops sky off the top and every wave band stays exactly
   where it was relative to the console. The TOP padding is untouched — that space is the
   composition (sky above the headline), not a gap. */
.hero--full{padding-top:clamp(30px,5vw,66px);padding-bottom:clamp(26px,3.2vw,46px)}
.hero--full .hero-content{max-width:960px}
/* No z-index here either, and for the same reason: `position:relative; z-index:2` on this
   wrapper re-created the exact stacking context the rule above exists to remove. Positioned,
   unnumbered, after .hero-scene in the DOM is all it takes to sit on top of the scene.
   display:grid and its gap/align-items/justify-items went with it — this box has had exactly
   one child since the two-column hero was replaced, so all four were inert. */
.hero-grid{position:relative}
/* Centred is for the two lines that are a HEADLINE. Everything under them is either a control
   or body copy, and both of those read from the start edge.

   The rule that used to be here claimed "one alignment, not four" and then shipped three: a
   centred eyebrow, H1, lead and specialty rail, a start-aligned form, and — because the
   <dialog> is a SIBLING of the form inside this box, and the top layer paints out of tree while
   inheritance still follows it — a centred suggestion modal on the home page against a
   start-aligned one on /search/. The lead is the expensive one: centred, ragged on both edges,
   four to five lines on a phone, it gives the eye no consistent edge to return to on the next
   line, which in a joining script costs more than it does in Latin. So the lead starts at the
   start edge until there is room for it to be a single centred block, and the rail lines up
   with the form beneath it rather than with the headline above it. That reasoning survives the
   restyle unchanged — a centred HERO is not the same claim as centred BODY COPY. */
.hero-content{width:100%;max-width:820px;text-align:center;margin-inline:auto}
.hero-content .axp-hs{text-align:start}
/* flex-start, not `safe center`: .quick-rail is an overflow-x scroll container, and plain
   `center` on an overflowing flex scroller puts the first chips in unreachable negative space.
   Starting at the start edge is safe by construction and aligns the rail with the form. */
.hero-content .quick-rail{justify-content:flex-start}
.hero-content .lead{margin-inline:auto;text-align:start}
@media (min-width:860px){.hero-content .lead{text-align:center}}
/* THE READABILITY SCRIM, and it is a contrast requirement rather than a mood.
   A full-bleed scene means the headline and the lead are painted over artwork
   whose lightness the stylesheet does not control at any given viewport height:
   preserveAspectRatio="xMidYMax slice" pins the SEA to the bottom of the hero,
   and on a short, wide hero the water rises into the copy. Measured against the
   brightest wave band, --body over the light sea is 4.49:1 and over the dark
   sea 3.31:1 — i.e. the lead fails AA in both themes in exactly the layout this
   brand is built around.

   The scrim is the BACKGROUND OF .hero-content itself, deliberately, not an
   absolutely-positioned pseudo-element: an element's own background paints
   beneath its own text with no z-index and no new stacking context, and this
   hero has two long comments above explaining what a stacking context here
   costs (a clipped combobox and a suggestion list painted under the bottom
   nav). A z-index:-1 pseudo would also have sunk BEHIND .hero-scene, which is a
   positioned z-index:0 box.

   THE GEOMETRY IS WHAT CHANGED, NOT THE PROTECTION. The ellipse used to be
   `115% 100%`, i.e. its horizontal radius was 1.15x the WHOLE box width, so the
   ramp that was supposed to end at 78% never got anywhere near the box: at the
   left and right edges of .hero-content the scrim was still at ~.88 alpha and
   then simply stopped. On a 960px block over a full-bleed painting that is a
   pale rectangle with two hard vertical sides down the middle of the scene, and
   it was the single biggest reason the artwork read as a wash rather than as a
   harbour.

   `50%` is the fix and it is exact: a horizontal radius of 50% of the box width
   IS the half-width, so the gradient reaches its transparent stop precisely at
   the left and right edges and there is no vertical seam left to see. The
   vertical radius is deliberately long (165%) so the ellipse is a wide, shallow
   lens: the top and bottom edges of the box still carry alpha, but only across
   the middle of the block, tapering to nothing by x=±90% — a soft horizontal
   band lying inside a sky that is already a horizontal gradient, which is the
   one direction an edge can hide in here.

   The protection is unchanged where it counts. Core alpha .9 (was .88): --body
   measures 8.3:1 light and 11.5:1 dark over the worst wave band. At the far
   corner of the longest line of copy the ramp has fallen to ~.77 alpha, which
   is still 6.8:1 light and 9.1:1 dark over that same band — AA with room, over
   the darkest thing the scene can put there. Written twice for dark, like every
   other theme override in this file. */
.hero--full .hero-content,.hero:has(.hero-scene) .hero-content{
	background:radial-gradient(50% 165% at 50% 46%,rgba(255,255,255,.9) 0 58%,rgba(255,255,255,0) 100%)}
:root[data-theme="dark"] .hero--full .hero-content,
:root[data-theme="dark"] .hero:has(.hero-scene) .hero-content{
	background:radial-gradient(50% 165% at 50% 46%,rgba(8,19,31,.9) 0 58%,rgba(8,19,31,0) 100%)}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .hero--full .hero-content,
	:root:not([data-theme="light"]) .hero:has(.hero-scene) .hero-content{
		background:radial-gradient(50% 165% at 50% 46%,rgba(8,19,31,.9) 0 58%,rgba(8,19,31,0) 100%)}
}
/* The floating console. Its own box rather than styling .axp-hs--hero directly, so the search-form
   component stays one component across the home page and /search/ and only its PLACEMENT differs
   here. Narrower than .hero-content on purpose: the console is the thing the eye should land on,
   and a control panel as wide as the headline above it stops reading as an object floating over
   a scene and starts reading as another band of page. */
.hero-console{position:relative;width:100%;max-width:880px;margin-inline:auto;margin-top:1.5rem}
.hero-console .axp-hs{margin-top:0}

/* ============================================================================
   --- The Alexandria corniche at first light (hero background) ---------------

   Subject: the Eastern Harbour looking out from the corniche — the Qaitbay
   lighthouse on the point, the Bibliotheca's tilted disc across the bay, three
   bands of Mediterranean, a fishing boat and a few gulls.

   Contract with templates/parts-hero-scene.php. The SVG is authored against
   viewBox "0 0 1200 620" with preserveAspectRatio="xMidYMax slice", so the
   BOTTOM edge of the artwork is pinned to the bottom of the hero box and a
   short hero crops the sky, never the sea. Fixed coordinates the CSS depends on:

     y = 430    the horizon / waterline
     352, 236   the centre of the lantern — .beam-rot rotates about exactly this
                point, so if the lighthouse moves in the markup this rule moves
                with it
     waves      each of .wave-1/2/3 is authored 2400 units wide starting at x=0,
                i.e. the band is drawn TWICE, because the loop below translates
                it by exactly -1200px and a single-width path would tear

   Everything is aria-hidden and pointer-events:none (the wrapper), every fill
   is a class so both themes can repaint it, and every animation stops under
   prefers-reduced-motion via the global rule further down this file.
   ========================================================================= */
/* opacity .94, not .82. Every pigment below is composited through this number, so .82 over a
   near-white page was quietly lifting the whole picture 18% toward --bg — the lighthouse, the
   waves and the beam all lost their darkest values at once, which is precisely what "reads as a
   pale wash" means. .94 leaves the scene a decorative background rather than an illustration
   pasted on the page, and costs nothing on the copy: the sky stops are chosen for the text
   above them and move by less than two levels at this alpha. */
.hero-scene{position:absolute;inset:0;z-index:0;pointer-events:none;contain:paint;opacity:.94}
.hero-scene svg{width:100%;height:100%;display:block}

/* --- gradient stops (theme-aware) ---------------------------------------- */
/* The light-mode sky is still a SOFT dawn — the H1 and the lead paint directly
   on this band — but #CFE4F6 at the top was not a dawn at all, it was the same
   value as the page, so the frame opened on nothing. #93BCDE is the deepest the
   top stop can go and still carry the copy WITHOUT the scrim, which is the test
   that matters because the scrim's ramp has fallen away by the ends of the
   longest lines. Measured on the sky the eyebrow actually sits on (18% down the
   gradient, ≈#ACCCE7 composited): --ink 10.7:1, --body 5.6:1, --brand 5.4:1 —
   all AA, all without help. Under the scrim's core they are 12:1 and better.
   .sky-b and .sky-c are unchanged: the middle and the warm horizon are where
   the copy's lower half sits and they were never the problem. */
.hero-scene .sky-a{stop-color:#93BCDE}
.hero-scene .sky-b{stop-color:#E4F0FA}
.hero-scene .sky-c{stop-color:#FFE7C8}
/* Only the top ~22 units of this gradient are ever visible — .wave-1 covers the
   rest — so .sea-a IS the glint on the water directly under the horizon, which
   is --foam's job in this scene. .sea-b is the deep field it would fall to. */
.hero-scene .sea-a{stop-color:var(--foam)}
.hero-scene .sea-b{stop-color:#14456B}
/* THE BEAM CANNOT BE --beam IN LIGHT MODE. #FFE9A8 at any alpha over the dawn
   sky it crosses measures 1.01:1 — a pale warm yellow and a pale cool blue are
   a luminance match, so the shaft was not dim, it was invisible. The stop is a
   saturated amber instead, which reads on hue AND on value: at .72 alpha over
   the sky the shaft measures 1.6:1, enough to see and far short of a stripe.
   The gradient still falls to nothing at the far end (.beam-b), so only the
   first third of it is anywhere near this strength. */
.hero-scene .beam-a{stop-color:#D98F2E;stop-opacity:.72}
.hero-scene .beam-b{stop-color:var(--beam);stop-opacity:0}
/* The Pharos in SILHOUETTE, which is the one thing the brief asks of it. The
   old stops were a cream limestone (#FBF3E4 → #C0AC8C) sitting on a pale sky at
   1.2:1 — a tower-shaped hole rather than a tower. These are the same two-faced
   scheme (lit flank / shadow flank, sun away to the right at the harbour mouth)
   carried down into blue-grey stone: the LIGHTEST value of the lit face now
   measures 3.3:1 against the sky behind it, so the whole silhouette clears the
   3:1 a large graphical object needs, and the shadow flank falls to 6:1. */
.hero-scene .stone-a{stop-color:#5F7689}
.hero-scene .stone-b{stop-color:#4B6274}
.hero-scene .stone-c{stop-color:#364A5B}
.hero-scene .stone-d{stop-color:#223342}
.hero-scene .glow-a{stop-color:var(--beam);stop-opacity:.9}
.hero-scene .glow-b{stop-color:var(--beam);stop-opacity:0}

/* --- fills ----------------------------------------------------------------
   The scene reads back to front: sky, stars, gulls, the far shore (the
   Bibliotheca and the sea wall), the lighthouse, then the water in front of
   everything. Nothing here is a literal hex where a brand token says the same
   thing — --sea / --sea-2 / --foam / --beam exist for exactly this block. */
.hero-scene .sky{fill:url(#alex-sky)}
.hero-scene .star{fill:#FFFFFF;opacity:.5}
.hero-scene .dawn-glow{fill:#FFDCA8;opacity:.5}
/* .72, not .55: the gulls are 3px strokes on a pale sky and at .55 they were a
   smudge. This is the only moving thing in the top half of the frame. */
.hero-scene .gull{fill:none;stroke:#4C6A85;stroke-width:3;stroke-linecap:round;opacity:.72}
/* The far side of the bay is drawn one step LIGHTER and flatter than the near
   subject. That is the only depth cue a flat SVG has, and without it the
   Bibliotheca's disc and the lighthouse read as the same distance away. The
   values are still a step lighter than the tower (the far shore measures 1.9:1
   against the warm horizon, the tower 3.3:1 against the sky), but the OPACITIES
   are gone: at .6 and .7 the aerial perspective had become invisibility. */
.hero-scene .biblio{fill:#93B6D4}
.hero-scene .biblio-rib{stroke:#6E93B4;stroke-width:2;fill:none;opacity:.75}
.hero-scene .corniche{fill:#7FA3C2}
.hero-scene .corniche-lamp{stroke:#5C7F9E;stroke-width:2.5;stroke-linecap:round;fill:none;opacity:.8}
.hero-scene .pharos-lit{fill:url(#alex-stone-lit)}
.hero-scene .pharos-shad{fill:url(#alex-stone-shad)}
/* On a silhouetted tower these joint lines are the LIGHT catching the stone,
   not a darker drawn edge, so they keep the warm hue of the dawn glow that is
   lighting the tower from the right. */
.hero-scene .pharos-line{stroke:#C8AE8B;stroke-width:1.5;fill:none;opacity:.42}
.hero-scene .pharos-glass{fill:#FFF6DC}
.hero-scene .lantern-glow{fill:url(#alex-lantern-glow)}
.hero-scene .beam{fill:url(#alex-beam)}
.hero-scene .sea{fill:url(#alex-sea)}
/* THREE BANDS, THREE VALUES, AND NO OPACITY. The bands used to be .85 / .7 / .9
   of three neighbouring pale blues over the same gradient, which composited to
   three versions of the same colour — measured, adjacent bands differed by
   1.05:1 and 1.10:1, i.e. the water was one flat shape with some texture in it.
   They are opaque now and they get DEEPER toward the viewer, which is both what
   water does at first light (the far water carries the sky, the near water is
   still in shadow) and what gives the three shapes something to be: adjacent
   bands measure 1.46:1 and 1.67:1, and the pale --foam glint at the horizon is
   1.3:1 above the band under it.
   .wave-3 is the only one with no token. It is the band that meets the bottom
   of the hero, and it is the reason the sea no longer dissolves into --bg: at
   #2E7CB0 it is 3.9:1 against the page ground below it, where --foam was 1.2:1
   — literally the same value as the background. The quick-specialty rail sits
   on this band, which is what .hero-rail .qchip's .9 white already assumes. */
.hero-scene .wave-1{fill:var(--sea-2)}
.hero-scene .wave-2{fill:var(--sea)}
.hero-scene .wave-3{fill:#2E7CB0}
.hero-scene .boat-hull{fill:#123449}
.hero-scene .boat-sail{fill:#FFF9EE;opacity:.96}
.hero-scene .boat-mast{stroke:#123449;stroke-width:2.5;stroke-linecap:round}

/* --- animations -----------------------------------------------------------
   Six named loops, which is the same budget the scene this replaces spent, and
   every one of them is a transform or an opacity — no layout, no paint of a
   new box, so the compositor can carry the whole scene off the main thread. */
/* The beam SWEEPS, it does not spin: a full 360deg rotation would send it
   through the sky and the viewer, and a real lighthouse beam is only visible
   where it grazes the water. transform-origin is in viewBox user units and
   MUST match the lantern's centre in the markup (see the contract above). */
.hero-scene .beam-rot{transform-origin:352px 236px;animation:alex-beam 11s ease-in-out infinite}
.hero-scene .lantern-glow{transform-box:fill-box;transform-origin:center;animation:alex-lantern 4.5s ease-in-out infinite}
.hero-scene .dawn-glow{animation:alex-lantern 9s ease-in-out infinite}
/* Three bands at three speeds is what makes flat shapes read as water: matched
   speeds read as one object sliding, and that is the tell. */
.hero-scene .wave-1{animation:alex-wave 26s linear infinite}
.hero-scene .wave-2{animation:alex-wave 38s linear infinite}
.hero-scene .wave-3{animation:alex-wave 52s linear infinite}
.hero-scene .boat{transform-box:fill-box;transform-origin:50% 92%;animation:alex-boat 7s ease-in-out infinite}
/* One keyframe set, three birds, three delays — a gull crossing 1200px in 46s
   is slow enough to be noticed only if you look for it, which is the right
   amount of movement behind a search field. */
.hero-scene .gull{animation:alex-gull 46s linear infinite}
.hero-scene .gull-b{animation-duration:58s;animation-delay:-19s}
.hero-scene .gull-c{animation-duration:38s;animation-delay:-31s}
.hero-scene .star{animation:alex-twinkle 4s ease-in-out infinite}
.hero-scene .star:nth-child(2n){animation-duration:5.5s;animation-delay:-1.4s}
.hero-scene .star:nth-child(3n){animation-duration:6.5s;animation-delay:-2.8s}
.hero-scene .star:nth-child(4n){animation-duration:4.8s;animation-delay:-3.6s}
@keyframes alex-beam{0%,100%{transform:rotate(-17deg)}50%{transform:rotate(21deg)}}
@keyframes alex-lantern{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes alex-wave{from{transform:translateX(0)}to{transform:translateX(-1200px)}}
@keyframes alex-boat{0%,100%{transform:translateY(0) rotate(-1.8deg)}50%{transform:translateY(-5px) rotate(1.8deg)}}
@keyframes alex-gull{
	0%{transform:translate(-160px,0)}
	25%{transform:translate(220px,-14px)}
	50%{transform:translate(600px,4px)}
	75%{transform:translate(980px,-10px)}
	100%{transform:translate(1360px,0)}
}
@keyframes alex-twinkle{0%,100%{opacity:.18}50%{opacity:.85}}
/* KEEP. This is not a scene keyframe any more — the pyramid sun that used to own
   it is gone — but .lb-spin (the photo lightbox's loading spinner, ~1300 lines
   below) animates it, and deleting it with the rest of the old scene would have
   left that spinner frozen. */
@keyframes alex-spin{to{transform:rotate(360deg)}}

/* --- Dark: the harbour before sunrise -------------------------------------
   The sky can be genuinely deep here, because the text over it inverts too:
   --ink is #EAF2FA and clears 4.5:1 against every stop below. The sea loses its
   saturation rather than just its lightness — a bright cyan wave on a near-black
   page reads as a UI element, not as water at night — and the beam and the
   lantern gain, because a light source is the one thing that should be BRIGHTER
   in the dark version of a picture.

   The dark scene had the same three faults as the light one, one step worse
   because there is less room to lose: at .75 scene opacity over a #08131F page
   the whole picture sat within about a tenth of the page's own luminance, the
   three wave bands were 1.09:1 and 1.13:1 apart (one flat shape), and the far
   shore was drawn DARKER than the sky behind it at 1.1:1, so the Bibliotheca
   and the sea wall were not there at all. Same corrections, same order: scene
   opacity to .9, the wave opacities dropped for three opaque values that step
   1.78:1 and 1.69:1 apart, a bright glint (.sea-a) under the horizon so the
   waterline reads, and the far shore taken DOWN to a true silhouette against a
   horizon that is lifted a little to receive it.

   The tower inverts, and that is on purpose: a silhouette needs the sky behind
   it to be the LIGHT thing, and at night it is not. So the lit flank becomes
   the light mass instead (3.4:1 against the sky at the tower's height) and the
   shadow flank sinks into the night, which is the same two-faced drawing read
   the other way round. The beam goes back to --beam here — a pale warm light
   over a near-black sky is 4:1 without any help, which is the whole reason the
   light-mode shaft needed a different stop.

   Written twice, once for the explicit toggle and once for the system
   preference, like every other dark override in this file. */
:root[data-theme="dark"] .hero-scene{opacity:.9}
:root[data-theme="dark"] .hero-scene .sky-a{stop-color:#061524}
:root[data-theme="dark"] .hero-scene .sky-b{stop-color:#0D2B47}
:root[data-theme="dark"] .hero-scene .sky-c{stop-color:#2F4C69}
:root[data-theme="dark"] .hero-scene .sea-a{stop-color:#6EB0DA}
:root[data-theme="dark"] .hero-scene .sea-b{stop-color:#05131F}
:root[data-theme="dark"] .hero-scene .beam-a{stop-color:var(--beam);stop-opacity:.8}
:root[data-theme="dark"] .hero-scene .stone-a{stop-color:#7C90A5}
:root[data-theme="dark"] .hero-scene .stone-b{stop-color:#62778C}
:root[data-theme="dark"] .hero-scene .stone-c{stop-color:#2C3B49}
:root[data-theme="dark"] .hero-scene .stone-d{stop-color:#1C2833}
:root[data-theme="dark"] .hero-scene .pharos-line{stroke:#A9BFD2;opacity:.35}
:root[data-theme="dark"] .hero-scene .star{fill:#DCEBFA;opacity:.8}
:root[data-theme="dark"] .hero-scene .dawn-glow{fill:#8A6238;opacity:.5}
:root[data-theme="dark"] .hero-scene .gull{stroke:#8FA9C0;opacity:.6}
:root[data-theme="dark"] .hero-scene .biblio{fill:#0E2A44;opacity:1}
:root[data-theme="dark"] .hero-scene .biblio-rib{stroke:#4E86B4;opacity:.8}
:root[data-theme="dark"] .hero-scene .corniche{fill:#0B2036;opacity:1}
:root[data-theme="dark"] .hero-scene .corniche-lamp{stroke:#4E7A9E;opacity:.85}
:root[data-theme="dark"] .hero-scene .wave-1{fill:#3B84B4;opacity:1}
:root[data-theme="dark"] .hero-scene .wave-2{fill:#1E5680;opacity:1}
:root[data-theme="dark"] .hero-scene .wave-3{fill:#0C2E4B;opacity:1}
:root[data-theme="dark"] .hero-scene .boat-hull{fill:#061520}
:root[data-theme="dark"] .hero-scene .boat-sail{fill:#D8E6F2;opacity:.85}
:root[data-theme="dark"] .hero-scene .boat-mast{stroke:#061520}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .hero-scene{opacity:.9}
	:root:not([data-theme="light"]) .hero-scene .sky-a{stop-color:#061524}
	:root:not([data-theme="light"]) .hero-scene .sky-b{stop-color:#0D2B47}
	:root:not([data-theme="light"]) .hero-scene .sky-c{stop-color:#2F4C69}
	:root:not([data-theme="light"]) .hero-scene .sea-a{stop-color:#6EB0DA}
	:root:not([data-theme="light"]) .hero-scene .sea-b{stop-color:#05131F}
	:root:not([data-theme="light"]) .hero-scene .beam-a{stop-color:var(--beam);stop-opacity:.8}
	:root:not([data-theme="light"]) .hero-scene .stone-a{stop-color:#7C90A5}
	:root:not([data-theme="light"]) .hero-scene .stone-b{stop-color:#62778C}
	:root:not([data-theme="light"]) .hero-scene .stone-c{stop-color:#2C3B49}
	:root:not([data-theme="light"]) .hero-scene .stone-d{stop-color:#1C2833}
	:root:not([data-theme="light"]) .hero-scene .pharos-line{stroke:#A9BFD2;opacity:.35}
	:root:not([data-theme="light"]) .hero-scene .star{fill:#DCEBFA;opacity:.8}
	:root:not([data-theme="light"]) .hero-scene .dawn-glow{fill:#8A6238;opacity:.5}
	:root:not([data-theme="light"]) .hero-scene .gull{stroke:#8FA9C0;opacity:.6}
	:root:not([data-theme="light"]) .hero-scene .biblio{fill:#0E2A44;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .biblio-rib{stroke:#4E86B4;opacity:.8}
	:root:not([data-theme="light"]) .hero-scene .corniche{fill:#0B2036;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .corniche-lamp{stroke:#4E7A9E;opacity:.85}
	:root:not([data-theme="light"]) .hero-scene .wave-1{fill:#3B84B4;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .wave-2{fill:#1E5680;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .wave-3{fill:#0C2E4B;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .boat-hull{fill:#061520}
	:root:not([data-theme="light"]) .hero-scene .boat-sail{fill:#D8E6F2;opacity:.85}
	:root:not([data-theme="light"]) .hero-scene .boat-mast{stroke:#061520}
}
.hero h1{font-size:clamp(1.9rem,4.6vw,2.9rem);text-wrap:balance}
/* No negative tracking anywhere any more, in either direction: Almarai draws its Latin at the
   same generous sidebearing as its Arabic, and the two scripts share a headline on this site. */
/* 34ch inside an 820px block left the lead as a narrow ribbon under a full-width headline at
   every width between 600px and 860px. */
.hero .lead{color:var(--body);font-size:clamp(1rem,2vw,1.14rem);margin-top:.7rem;max-width:56ch;text-wrap:pretty}
/* `.searchbox` and `.hero-stats` used to live here — ~30 rules and four media-query blocks for
   a hero that was replaced twice over. `grep -rn searchbox templates/` returns nothing. */
.field{position:relative;display:flex;align-items:center;gap:.55rem;background:var(--bg);border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:.7rem .9rem;min-height:52px;transition:border-color .15s,box-shadow .15s,background .15s}
.field:focus-within{border-color:var(--brand);background:var(--card);box-shadow:0 0 0 3px var(--brand-50)}
.field svg{width:20px;height:20px;color:var(--muted);flex:0 0 auto}
.field select,.field input{border:0;background:transparent;outline:0;width:100%;min-width:0;font-family:inherit;font-size:1rem;color:var(--ink)}
.field select{cursor:pointer}
.field input::placeholder{color:var(--muted);opacity:1}

/* Chips / quick links */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:1rem}
.chip{background:var(--card);border:1px solid var(--brand-100);border-radius:999px;padding:.42rem .95rem;font-weight:600;font-size:.9rem;color:var(--brand-700)}
.chip:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-50)}

/* Grid helpers. `.g-spec` and `.g-region` went with the rebuild — the specialty and area
   surfaces are `.ax-spec-grid` and `.hub-grid` now, and neither class appeared in templates/
   or assets/js/ any more (the only `spec-card` / `spec-ic` strings left in the templates are
   the `ax-`-prefixed ones). `.g-doc` stays: the dense `.doc-card` roster still uses it. */
.grid{display:grid;gap:18px}
.g-doc{grid-template-columns:1fr}

/* Doctor card (base tokens; layout lives in the SEARCH 2.0 block) */
.doc-body{flex:1;min-width:0}
.doc-name{color:var(--ink);font-size:1.1rem;font-weight:700}
.doc-meta{color:var(--muted);font-size:.9rem;margin-top:.15rem}
.doc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:.5rem}
.tag{background:var(--brand-50);color:var(--brand-700);font-size:.78rem;font-weight:700;padding:.18rem .6rem;border-radius:999px}
.badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;padding:.2rem .6rem;border-radius:999px}
.badge-ok{background:var(--ok-bg);color:var(--ok)}
.badge-off{background:var(--warn-bg);color:var(--warn)}
/* Vacation mode. Deliberately a NEUTRAL slate rather than a red alarm: the doctor is on leave,
   not in trouble, and colouring it like an error trains patients to skip the listing entirely.
   The slate is hardcoded because --tier-silver-* is the membership ramp and would tie a
   privacy control to a billing tier — but it therefore needs its own dark pair, below. */
.badge-pause{background:#eef1f5;color:#4a5666}
:root[data-theme="dark"] .badge-pause{background:#1B2B3A;color:#c3cdd9}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge-pause{background:#1B2B3A;color:#c3cdd9}}
/* Tokenised, not hardcoded: this is the panel that explains a WITHHELD PHONE NUMBER, and on a
   dark page the old #f6f8fa slab put .pause-note strong (var(--ink), #eef4f8) at ~1.05:1 —
   i.e. the explanation for the missing number was itself invisible. */
.pause-note{display:flex;gap:.7rem;align-items:flex-start;background:var(--bg);border:1px solid var(--line);border-inline-start:4px solid var(--muted);border-radius:var(--radius-sm);padding:.85rem 1rem;margin:.9rem 0}
.pause-note-ic{flex:none;color:var(--muted);line-height:0;margin-top:.15rem}
.pause-note-ic svg{width:20px;height:20px}
.pause-note strong{display:block;color:var(--ink);font-size:.98rem}
.pause-note p{margin:.2rem 0 0;color:var(--muted);font-size:.88rem;line-height:1.55}
.pause-note-back{font-weight:700;color:var(--ink)!important}

/* No-JS / fallback: desktop native selects get a styled chevron (mobile keeps native arrow).
   `.filter-group` used to ride along in these three selector lists; it was the <select>-based
   facet block of the pre-rebuild panel and nothing renders it any more (the panel is <details>
   groups of links now), so it is gone from all three. */
@media (min-width:900px){
	/* `.results-toolbar select`, NOT `.sort-select select`: .sort-select is the <label>, and the
	   <select id="alex-sort"> is its SIBLING, so the descendant selector matched nothing and the
	   sort control was the one select on the site without a chevron. */
	.field select,.results-toolbar select{-webkit-appearance:none;appearance:none;
		background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
		background-repeat:no-repeat;background-size:5px 5px}
	[dir="ltr"] .field select,[dir="ltr"] .results-toolbar select{background-position:calc(100% - 15px) 55%,calc(100% - 10px) 55%;padding-right:2rem}
	[dir="rtl"] .field select,[dir="rtl"] .results-toolbar select{background-position:10px 55%,15px 55%;padding-left:2rem}
}

/* ===== Custom dropdown (desktop only). Native <select> stays for mobile + form submit + no-JS. ===== */
.axp-select-wrap{position:relative;flex:1 1 auto;min-width:0}
.axp-select-btn,.axp-select-menu{display:none}
@media (min-width:900px){
	.axp-select-wrap[data-axp-enhanced] .axp-select-native{display:none}
	.axp-select-wrap[data-axp-enhanced] .axp-select-btn{display:flex}
}
.axp-select-btn{width:100%;align-items:center;justify-content:space-between;gap:.5rem;font-family:inherit;font-size:.95rem;color:var(--ink);background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:.6rem .8rem;min-height:46px;cursor:pointer;text-align:start;transition:border-color .15s,box-shadow .15s}
/* --brand, not --brand-100: --field-line is 3.86:1 and --brand-100 is 1.31:1, so hovering the
   control used to make its edge four times FAINTER than at rest. */
.axp-select-btn:hover{border-color:var(--brand)}
.axp-select-btn:focus-visible,.axp-select-wrap.open .axp-select-btn{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.axp-select-btn .axp-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.axp-select-btn .axp-chev{flex:0 0 auto;width:16px;height:16px;color:var(--muted);transition:transform .2s}
.axp-select-wrap.open .axp-select-btn .axp-chev{transform:rotate(180deg)}
/* Hero field: the .field is the visual box, so the trigger is transparent/borderless */
.field .axp-select-btn{background:transparent;border:0;border-radius:0;padding:0;min-height:auto;font-size:1rem}
.field .axp-select-btn:hover{border:0}
.field .axp-select-btn:focus-visible,.field .axp-select-wrap.open .axp-select-btn{box-shadow:none}
/* Dropdown panel — portaled to <body> with fixed positioning (JS sets width/top/left),
   so it never overflows the screen and is never clipped by the hero's overflow:hidden. */
.axp-select-menu{position:fixed;z-index:1000;background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-ctl);box-shadow:var(--shadow-md);padding:6px;transform-origin:top;animation:axp-pop .14s ease}
@keyframes axp-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.axp-select-search{width:100%;border:1px solid var(--field-line);border-radius:var(--radius-xs);padding:.5rem .7rem;font-family:inherit;font-size:.9rem;background:var(--bg);color:var(--ink);margin-bottom:6px}
.axp-select-search:focus-visible{outline:none;border-color:var(--brand)}
.axp-select-list{max-height:min(46vh,300px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.axp-select-opt{display:flex;align-items:center;gap:.5rem;padding:.5rem .6rem;border-radius:var(--radius-xs);cursor:pointer;color:var(--ink);font-size:.92rem;line-height:1.4}
.axp-select-opt:hover,.axp-select-opt.active{background:var(--brand-50)}
.axp-select-opt[aria-selected="true"]{color:var(--brand-700);font-weight:700}
.axp-select-opt .axp-check{margin-inline-start:auto;flex:0 0 auto;width:16px;height:16px;color:var(--brand);opacity:0}
.axp-select-opt[aria-selected="true"] .axp-check{opacity:1}
.axp-select-empty{padding:.7rem;color:var(--muted);text-align:center;font-size:.88rem}
@media (prefers-reduced-motion:reduce){.axp-select-menu{animation:none}}

/* Doctor profile */
.profile-hero{background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius-lg);padding:clamp(20px,4vw,28px);box-shadow:var(--shadow);display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.profile-hero .doc-ava{width:104px;height:104px;border-radius:var(--radius)}
.profile-hero h1{font-size:clamp(1.5rem,4vw,2rem)}
/* The doctor's own one-line pitch, mirroring .doc-pitch on the result card so the card a
   patient tapped and the page they land on say the same sentence in the same voice.
   max-width is in ch, not px: at 1140px the hero is far wider than a comfortable measure, and
   a 90-character line stretched across all of it is harder to read than the same line wrapped. */
.hero-pitch{display:flex;align-items:flex-start;gap:.5rem;max-width:58ch;margin-top:.55rem;
	padding:8px 11px;background:var(--brand-50);border:1px solid var(--brand-100);
	border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;line-height:1.6;color:var(--body)}
.hero-pitch svg{width:17px;height:17px;flex:0 0 auto;color:var(--brand);margin-top:3px}
/* Share anchors the far edge of the hero row instead of orphaning itself on a line of its own.
   align-self overrides .profile-hero's align-items:center so it sits level with the name; the
   auto margin collapses to nothing once the row wraps on a phone. */
.profile-hero>.share-chip--hero,.profile-hero>.alex-share{margin-inline-start:auto;align-self:flex-start}
@media (max-width:699px){.profile-hero>.share-chip--hero,.profile-hero>.alex-share{margin-inline-start:0}}
.profile-cols{display:grid;grid-template-columns:1fr;gap:22px;margin-top:22px}
.panel{background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius);padding:clamp(18px,3vw,24px);box-shadow:var(--shadow)}
/* Class-keyed as well as tag-keyed. The six doctor-page section headings were promoted h3 -> h2
   to close a heading-order skip and silently dropped to UA-default size with no bottom margin,
   because this rule only knew about h3. NOT widened to `.panel :is(h2,h3)`: that is (0,1,1) and
   would out-specify `.co-lg` (0,1,0) on the checkout panels, resizing headings on a page that
   has nothing to do with this change. `.panel-h` on the heading itself is the durable hook. */
.panel h3,.panel-h{font-size:1.15rem;margin-bottom:.7rem}
.branch{border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.branch h4{font-size:1.05rem;margin-bottom:.3rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.hours{width:100%;border-collapse:collapse;margin-top:.6rem;font-size:.9rem}
.hours td{padding:.35rem .2rem;border-bottom:1px solid var(--line-2);color:var(--body)}
.hours td:first-child{color:var(--muted);width:110px}
/* The doctor page's day cell is a <th scope="row"> (it labels its row); the branch page still
   renders a <td>, so BOTH selectors have to carry the day-column styling. font-weight:inherit
   undoes the UA's bold on th — the cell it replaced was not bold, and a bold day column would
   out-shout the hours themselves. text-align:start likewise undoes the UA's centre. */
.hours th{padding:.35rem .2rem;border-bottom:1px solid var(--line-2);color:var(--muted);
	width:110px;text-align:start;font-weight:inherit}
/* A time range is one atom. Without this the hours cell wrapped mid-range at 390px —
   "18:00 -" on one line and "22:00" on the next — which on a call-only directory reads as a
   different opening time. The ranges may still wrap BETWEEN each other; only the inside of an
   isolate is protected. The day column narrows on small screens to buy the hours the room. */
.hours .alex-ltr{white-space:nowrap}
@media (max-width:480px){.hours td:first-child,.hours th{width:76px}.hours{font-size:.85rem}}
/* auto-fit, not a fixed 3: the sidebar renders two buttons (Call + WhatsApp) and often only one
   (Directions, when contact is withheld), and `repeat(3,1fr)` left a dead third of empty grid. */
.contact-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;margin-top:.9rem}
.contact-actions .btn{min-height:48px}
/* Kept for the markup that still carries it, but it no longer pins anything. It used to sit on
   only the FIRST of the two panels inside <aside>, and .profile-cols stretches the aside to the
   full height of the main column — so the pinned panel travelled down the page and the second
   panel painted straight over it. The <aside> itself is the sticky element now (see :900 below). */
.aside-sticky{min-width:0}
.review{border-top:1px solid var(--line-2);padding-block:.9rem}
.review .who{color:var(--ink);font-weight:700}

/* Footer */
.footer{background:var(--foot-bg);color:var(--foot-ink);margin-top:40px;padding-block:44px 26px;border-top:3px solid var(--gold)}
.footer .wrap{display:grid;grid-template-columns:1fr;gap:26px}
.footer h5{color:var(--foot-hi);font-size:1rem;margin-bottom:.7rem}
.footer a{color:var(--foot-muted);display:block;padding:.3rem 0}
.footer a:hover{color:var(--foot-hi)}
.footer .brand{color:var(--foot-hi)}
.foot-tag{margin-top:.8rem;max-width:34ch;color:var(--foot-muted)}
/* Official social profiles. Lives in the brand column, which is the one column the 899px
   accordion rules below leave alone, so these stay visible on mobile without a tap.
   No letter-spacing or text-transform on the heading: both are no-ops or actively wrong for
   Arabic, where added tracking pulls apart glyphs that are meant to join. */
.foot-social{margin-top:20px}
.foot-social-h{color:var(--foot-hi);font-size:.92rem;font-weight:700;margin:0 0 .6rem}
.foot-social-list{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
/* min-height 44px is the tap-target floor, not decoration — this row is thumb-reachable content
   at the very bottom of every page. */
.footer .foot-social-a{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .95rem;border:1px solid var(--foot-line);border-radius:999px;color:var(--foot-muted);transition:color .2s ease,border-color .2s ease,background-color .2s ease}
.foot-social-a svg{flex:none}
.foot-social-t{font-size:.87rem;font-weight:600}
.footer .foot-social-facebook:hover,.footer .foot-social-facebook:focus-visible{background:#1877f2;border-color:#1877f2;color:#fff}
.footer .foot-social-instagram:hover,.footer .foot-social-instagram:focus-visible{background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);border-color:transparent;color:#fff}
.footer .foot-social-twitter:hover,.footer .foot-social-twitter:focus-visible{background:#000;border-color:#000;color:#fff}
.footer .foot-social-youtube:hover,.footer .foot-social-youtube:focus-visible{background:#f00;border-color:#f00;color:#fff}
.footer .foot-social-linkedin:hover,.footer .foot-social-linkedin:focus-visible{background:#0a66c2;border-color:#0a66c2;color:#fff}
@media (prefers-reduced-motion:reduce){.footer .foot-social-a{transition:none}}
.foot-bottom{border-top:1px solid var(--foot-line);margin-top:24px;padding-top:16px;color:var(--foot-dim);font-size:.85rem;text-align:center}
@media (max-width:899px){
	/* The bottom-nav gap is reserved ONCE, by body{padding-bottom} at :456 — adding 66px here
	   too parked ~66px of dead space under the copyright line on every mobile page. */
	.footer{padding-bottom:calc(26px + env(safe-area-inset-bottom))}
	.footer .wrap{gap:0}
	.footer .wrap > div:not(:first-child){border-bottom:1px solid var(--foot-line)}
	.footer .wrap > div:not(:first-child) h5{cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin-bottom:0;padding:16px 2px;min-height:52px}
	.footer .wrap > div:not(:first-child) h5::after{content:"";width:9px;height:9px;border-right:2px solid var(--foot-dim);border-bottom:2px solid var(--foot-dim);transform:rotate(45deg);transition:transform .3s ease;margin-bottom:3px}
	.footer .wrap > div:not(:first-child).open h5::after{transform:rotate(-135deg);margin-bottom:-3px}
	.footer .wrap > div:not(:first-child) > a{display:none;padding:.55rem 2px}
	.footer .wrap > div:not(:first-child).open > a{display:block}
	.footer .wrap > div:first-child{padding-bottom:18px}
}

/* Breadcrumbs */
/* The trail is an ordered list now (it is an ordered sequence, and that is what a screen
   reader should hear) — which means the list markers and the UA's list padding have to be
   removed explicitly, or the crumbs render as "1. Home 2. Areas 3. Cairo". The flex lives on
   the <ol>, not the <nav>, so the items lay out in a row. */
.crumbs{font-size:.85rem;color:var(--muted);margin-bottom:1rem}
.crumbs-list{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;list-style:none;margin:0;padding:0}
.crumbs-list li{display:flex;align-items:center;gap:.4rem;min-width:0}
.crumbs-list li::marker{content:""}
.crumbs a{color:var(--brand-700)}
.crumbs a:hover{text-decoration:underline}
/* --line is a BORDER token, ~1.05:1 against the page — the "›" was invisible in both themes.
   A dimmed --muted keeps it subordinate to the crumb labels without erasing it. */
.crumb-sep{color:var(--muted);opacity:.65}
.crumb-cur{color:var(--body)}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:.6rem}
.gallery img{width:100%;height:120px;object-fit:cover;border-radius:var(--radius-xs);border:1px solid var(--line)}
@media (min-width:640px){.gallery{grid-template-columns:repeat(4,1fr)}}

/* Global form controls (used by review, callback, contact forms) */
.inp{width:100%;border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:.7rem .9rem;font-family:inherit;font-size:.95rem;color:var(--ink);background:var(--bg);transition:border-color .15s,box-shadow .15s;box-sizing:border-box;-webkit-appearance:none;appearance:none}
.inp::placeholder{color:var(--muted);opacity:.9}
.inp:hover{border-color:var(--brand)}
.inp:focus{outline:0;border-color:var(--brand);background:var(--card);box-shadow:0 0 0 3px var(--brand-50)}
textarea.inp{resize:vertical;min-height:64px;line-height:1.5}
/* A <select> carrying .inp.

   `.inp` sets `appearance:none` at every width — that is what makes the text inputs match the
   design system — and a select with the native arrow suppressed and nothing in its place is
   indistinguishable from a text field. The contact form's subject picker was the first select to
   wear this class, so the chevron is drawn here rather than in the >=900px block that serves the
   hero and toolbar controls: those keep the native arrow on a phone, and this one cannot. */
select.inp{cursor:pointer;
	background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
	background-repeat:no-repeat;background-size:5px 5px}
[dir="rtl"] select.inp{background-position:14px 55%,19px 55%;padding-left:2.2rem}
[dir="ltr"] select.inp{background-position:calc(100% - 19px) 55%,calc(100% - 14px) 55%;padding-right:2.2rem}

/* Review form */
.review-form{border-top:1px solid var(--line-2);margin-top:1.2rem;padding-top:1.2rem}
.review-form h4{font-size:1rem;font-weight:700;color:var(--ink)}
.stars{display:inline-flex;gap:4px;margin-bottom:.6rem}
/* The OFF state was a hardcoded #d7dee6, which failed twice: 1.3:1 against white for what is an
   interactive control (3:1 required), and in dark mode it was BRIGHTER than the "on" gold — so an
   unrated widget read as five FILLED stars. --star-dim is a variable rather than a
   `:root[data-theme="dark"] .star` override on purpose: an override at that specificity would also
   outrank .star.on and the :hover preview, freezing the whole widget dim. */
.stars{--star-off:var(--muted);--star-dim:.45}
:root[data-theme="dark"] .stars{--star-dim:.3}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .stars{--star-dim:.3}}
/* Real buttons, so the 44px floor this file enforces everywhere else applies. min-width/min-height
   plus padding grow the BOX independently of the mark inside it: the star is a sprite <svg class="gi">
   sized in em, so it tracks font-size and the hit area does not. colour reaches it through
   `fill="currentColor"`, which is why the on/off/hover-preview rules below still work unchanged. */
.star{background:none;border:0;font-size:1.7rem;line-height:1;cursor:pointer;padding:0 8px;
	color:var(--star-off,var(--muted));opacity:var(--star-dim,.45);
	display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
	transition:color .12s,opacity .12s,transform .1s}
.star:hover{transform:scale(1.12)}
.stars:hover .star{color:#b45309;opacity:1}
:root[data-theme="dark"] .stars:hover .star{color:#fbbf24}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .stars:hover .star{color:#fbbf24}}
.stars .star:hover ~ .star{color:var(--star-off,var(--muted));opacity:var(--star-dim,.45)}
.rev-dim-label{font-weight:600}
/* Spam honeypot — hidden from humans, still present in the DOM for bots to fill.
   NEVER hide it with a physical offset (left:-9999px). This site renders dir="rtl",
   where the inline-end direction is LEFT, so a leftward offset is REAL scrollable
   overflow: the viewport's scrollWidth grows to ~10,000px, and anything that brings
   the field into view — Chrome autofill, focus restore on a back/forward navigation,
   find-in-page, .focus(), .scrollIntoView() — scrolls the whole document 9999px
   sideways. Every in-flow element including the sticky nav goes with it (sticky pins
   on the block axis only), leaving a blank page with just this input on it.
   html's overflow-x removes the scrollBAR, never the scrollability.
   Clip-based hiding keeps the box at its static position, so it cannot overflow.
   inset:auto!important also neutralises any stale inline offset left in a template. */
.alex-hp{position:absolute!important;inset:auto!important;width:1px;height:1px;padding:0;
	margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;opacity:0;
	pointer-events:none}
/* Reusable stacked form (contact / callback) */
.alex-form{display:flex;flex-direction:column;gap:14px}
.alex-field{display:flex;flex-direction:column;gap:.35rem}
.alex-field-row{display:grid;gap:14px}
@media(min-width:560px){.alex-field-row{grid-template-columns:1fr 1fr}}
.alex-label{font-size:.82rem;font-weight:600;color:var(--muted)}
.alex-label em{color:#ef4444;font-style:normal}
.cb-msg,#alex-rv-msg{font-size:.85rem;min-height:1.1em}
/* Callback form on doctor profile */
#alex-callback-form{display:flex;flex-direction:column;gap:10px}
#alex-callback-form .inp{margin-bottom:0!important}
#alex-callback-form .btn{margin-top:.2rem}

/* Mobile bottom nav */
.botnav{display:none}
@media (max-width:899px){
	.botnav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;inset-inline:0;bottom:0;z-index:55;
		background:var(--nav-bg);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);
		border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
	.botnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.68rem;color:var(--muted);min-height:48px;font-weight:600}
	.botnav a.on,.botnav a:hover{color:var(--brand)}
	.botnav a:active{transform:scale(.94)}
	.botnav svg{width:22px;height:22px}
	body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
}

/* reveal — progressive enhancement: content is visible by default; only hidden
   once JS confirms it can reveal on scroll (.alex-anim added by alex.js). */
.reveal{transition:opacity .6s ease,transform .6s cubic-bezier(.16,1,.3,1)}
.alex-anim .reveal{opacity:0;transform:translateY(16px)}
.alex-anim .reveal.in{opacity:1;transform:none}

/* Responsive. The `.g-spec` / `.g-region` step-ups that used to open this block went with the
   grid helpers themselves (see the note there); the 640px query held nothing else and is gone. */
@media (min-width:900px){
	/* minmax(0,1fr), never a bare 1fr: a bare 1fr keeps min-width:auto, so a wide hours table
	   or a long single-token address pushed the whole page into horizontal overflow. */
	.profile-cols{grid-template-columns:minmax(0,1fr) 340px}
	/* Pin the <aside>, not the panel inside it. align-self:start stops the grid stretching the
	   aside to the main column's height (a stretched box has nothing left to travel against);
	   the max-height keeps a tall rail reachable instead of stranding its bottom off-screen. */
	.profile-cols>aside{align-self:start;position:sticky;top:calc(var(--nav-h) + 16px);
		max-height:calc(100vh - var(--nav-h) - 32px);overflow-y:auto;overscroll-behavior:contain}
	/* Seven columns: brand, browse, specialties, Alexandria districts, for-doctors, more, legal.
	   The brand column is the wide one; the six that follow share the rest evenly. The fourth
	   column names this product's home governorate and no other — its neighbours are Beheira
	   and Matrouh. */
	.footer .wrap{grid-template-columns:1.3fr repeat(6,minmax(0,1fr))}
}
@media (max-width:899px){
	.nav-right .btn-primary{display:none} /* login lives in drawer + bottom nav on mobile */
}
/* The nav's own breakpoint, deliberately NOT the 900px used for page layout above.

   The measurement that sets it is the ENGLISH bar, not the Arabic one: "Find a doctor / Health
   library / For doctors" is about 90px wider than the Arabic it translates, and "Doctor login" is
   wider than "دخول الأطباء". At 1024px the Arabic bar fits and the English bar pushed its own
   primary button off the edge — so the switch-over is set where the wider of the two languages
   still fits, and the 1100–1279 band below tightens the group labels to buy the last 40px rather
   than dropping a 5-group menu into a burger 180px earlier than it needs to. */
@media (min-width:1100px) and (max-width:1279px){
	.nav-top{padding:.5rem .55rem;font-size:.9rem;gap:3px}
	.nav-links{gap:1px;margin-inline-start:4px}
	.nav-right{gap:7px}
}
@media (max-width:1099px){
	.nav-links{display:none}
	/* Paired with .nav-right .btn-primary — the drawer already carries both links. */
	.nav-logout{display:none}
	.nav-burger{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
	.nav-right{gap:8px}
}
@media (prefers-reduced-motion:reduce){
	.reveal{opacity:1;transform:none;transition:none}
	*{scroll-behavior:auto!important}
	/* Every loop in the scene, stopped at once — the beam sweep, the three waves, the boat, the
	   gulls, the lantern and the stars. The `*` is deliberate: it catches any element the
	   hero-scene template adds later without this rule having to be revisited. */
	.hero-scene *{animation:none!important}
	/* With the loop stopped, .star and .lantern-glow would freeze at whatever opacity the
	   keyframe's 0% happens to be (.18 and .45) — i.e. a sky with no stars and an unlit
	   lighthouse. Give both a resting value that is the picture, not frame one of it. */
	.hero-scene .star{opacity:.6}
	.hero-scene .lantern-glow,.hero-scene .dawn-glow{opacity:.8}
}
/* Mobile: the scene comes OFF, rather than being dimmed and left running.

   It is a 1200×620 composition with preserveAspectRatio="xMidYMax slice". On a 360px-wide phone
   the hero box is roughly 700px tall, so `slice` scales the artwork by about 1.13 and crops
   ~1000px of it horizontally: what the reader actually sees is a narrow vertical slice through
   the middle of the harbour — a piece of wave and possibly the lighthouse's shaft, which is a
   texture, not "the corniche at first light". For that it would keep six named animations and
   twelve star opacity loops compositing forever, directly behind the LCP element, on the phones
   this audience holds. Dimming it to opacity .6 — which is what this block used to do — changes
   the compositing cost by nothing.

   601px is the breakpoint the origin documented and it is kept exactly: the scene is authored
   for a landscape box and there is no width below this where the crop tells the story.
   The hero's own gradient carries the brand on its own at this width. */
@media (max-width:600px){
	.hero{padding-top:16px;padding-bottom:22px}
	.hero--full{padding-top:20px;padding-bottom:30px}
	.hero .lead{font-size:.97rem;margin-top:.55rem;max-width:100%}
	.hero .eyebrow{font-size:.82rem}
	.hero-console{margin-top:1.1rem}
	.hero-scene{display:none}
}

/* ============================================================
   v1.2 additions — cards, trust, maps, conversion, search UX
   ============================================================ */
/* `,var(--shadow)` is not decoration: .doc-card carries the drop shadow that IS a card's
   separation in light mode now, and a bare ring here at (0,2,0) replaced it — so the one
   card the page wants to promote was the only flat card in the grid. */
.doc-card.is-featured{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand-100),var(--shadow)}
/* Membership-tier framing: Gold gets the strongest treatment, then Silver, then Bronze.

   Doubled class (`.doc-card.doc-card--gold`), and it is load-bearing rather than a tic. These
   modifiers are (0,1,0) and they sit ~250 lines ABOVE the `.doc-card` base rule, which is also
   (0,1,0) — so source order decided, and the base rule's `border` SHORTHAND was resetting
   border-color on every tier card. The tier BORDERS have never painted. The restyle would have
   made it worse: .doc-card now carries `box-shadow:var(--shadow)` as its light-mode separation
   (cards are borderless here), and that shorthand would have wiped the tier glows too, i.e. paid
   placement would have become invisible. (0,2,0) puts the modifier back above its own base. */
.doc-card.doc-card--gold{border-color:var(--tier-gold);box-shadow:0 0 0 1px var(--tier-gold-glow),0 12px 30px var(--tier-gold-glow)}
.doc-card.doc-card--gold:hover{box-shadow:0 0 0 1px var(--tier-gold-glow),0 16px 38px var(--tier-gold-glow);transform:translateY(-3px)}
.doc-card.doc-card--silver{border-color:var(--tier-silver);box-shadow:0 0 0 1px var(--tier-silver-glow),var(--shadow)}
.doc-card.doc-card--bronze{border-color:var(--tier-bronze);box-shadow:0 0 0 1px var(--tier-bronze-glow),var(--shadow)}
.tier-ribbon{position:absolute;inset-inline:0;top:0;height:4px;z-index:2;border-radius:var(--radius) var(--radius) 0 0}
.tier-ribbon--gold{background:linear-gradient(90deg,var(--tier-gold),#f0d98a)}
.tier-ribbon--silver{background:linear-gradient(90deg,var(--tier-silver),#c3ccd6)}
.tier-ribbon--bronze{background:linear-gradient(90deg,var(--tier-bronze),#dda06a)}
.tier-badge{display:inline-flex;align-items:center;gap:3px;font-size:.66rem;font-weight:700;line-height:1.6;border-radius:999px;padding:0 8px;vertical-align:middle;letter-spacing:.02em}
.tier-badge::before{content:"◆";font-size:.62em}
.tier-badge--gold{background:var(--tier-gold-bg);color:var(--tier-gold-ink);border:1px solid var(--tier-gold)}
.tier-badge--silver{background:var(--tier-silver-bg);color:var(--tier-silver-ink);border:1px solid var(--tier-silver)}
.tier-badge--bronze{background:var(--tier-bronze-bg);color:var(--tier-bronze-ink);border:1px solid var(--tier-bronze)}
.tag-soft{background:var(--brand-50);color:var(--brand-700);border-color:var(--brand-100)!important}
/* .tag is a .18rem-padded pill ≈26px tall; these are navigation links, so they get the 44px box. */
.tag-link{text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.tag-link:hover{background:var(--brand-100)}
.badge-feat{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
/* Warm-neutral, hand-picked rather than tokenised: --warn-bg is the *error* surface and this is a
   paid-placement flag. Hardcoded either way, so it needs an explicit dark pair or it stays a
   near-white chip on a #0e161e page. */
:root[data-theme="dark"] .badge-feat{background:#3a2410;color:#f6b17a;border-color:#6b3f18}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge-feat{background:#3a2410;color:#f6b17a;border-color:#6b3f18}}
.cred-list{list-style:none;margin:.4rem 0 0;padding:0;display:grid;gap:.4rem;font-size:.92rem}
.cred-list li{color:var(--body)}
.cred-list b{color:var(--ink)}
.socials{display:flex;flex-wrap:wrap;gap:.5rem}
.social-link{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;font-size:.85rem;font-weight:600;color:var(--brand-700);text-decoration:none;background:var(--brand-50);padding:.3rem .6rem;border-radius:var(--radius-sm)}
.social-link:hover{background:var(--brand-100)}
.social-proof{margin:.7rem 0 0;font-size:.88rem;color:var(--brand-700);font-weight:600}
.map-embed{margin:.8rem 0}
.map-open{display:inline-flex;align-items:center;min-height:44px;margin-top:.4rem;font-size:.85rem;font-weight:600;color:var(--brand-700);text-decoration:none}
/* No .video-embed box: the facade markup carries its own aspect-ratio and is sized by
   `.alex-video-embed iframe,.alex-video-facade iframe` further down — a second ratio box here
   just fought it. */
/* sticky mobile contact bar */
.mobile-callbar{position:fixed;inset-inline:0;bottom:0;z-index:60;display:none;gap:.6rem;padding:.6rem .8rem;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -6px 26px rgba(8,30,55,.14);padding-bottom:calc(.6rem + env(safe-area-inset-bottom))}
.mobile-callbar .btn{flex:1;justify-content:center;font-size:1rem;padding:.7rem}
/* Scoped to pages that actually HAVE a call bar. The bare `body{padding-bottom:70px}` used to
   override the notch-aware `calc(64px + env(safe-area-inset-bottom))` at :456 — same specificity,
   later in the file — on every ≤760px page, including listings with no call bar in the DOM,
   which cost every one of them its safe-area inset. */
@media(max-width:760px){
	.mobile-callbar{display:flex}
	body:has(.mobile-callbar){padding-bottom:calc(70px + env(safe-area-inset-bottom))}
}
/* #3.1 — the sticky call bar (z60) and the bottom nav (z55) both pin to bottom:0 on doctor
   pages; hide the bottom nav wherever the call bar is present so it can't cover it. The callbar
   is only in the DOM when it renders, so this scopes precisely; old browsers keep today's behavior. */
@media(max-width:760px){body:has(.mobile-callbar) .botnav{display:none}}
/* The pre-2.0 results toolbar, active-filter chips and autocomplete panel used to be defined
   here as well. They were fully superseded by the SEARCH 2.0 block below, and the leftovers
   were producing hybrid rules (a `space-between` toolbar, a `.sort-select select` that matched
   nothing, an `<a>`-based combobox the current JS no longer renders). Single definitions now. */
.alex-ac-wrap{position:relative}
/* skeletons */
.skel{background:linear-gradient(90deg,var(--line-2) 25%,var(--line) 37%,var(--line-2) 63%);background-size:400% 100%;animation:alex-shimmer 1.4s ease infinite;border-radius:var(--radius-sm)}
@keyframes alex-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.skel{animation:none}}
/* review enrichments */
.review .who{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.review .verified-badge{font-size:.72rem;color:var(--brand-700);background:var(--brand-50);padding:.1rem .4rem;border-radius:var(--radius-sm)}
.review-reply{margin:.5rem 0 0;padding:.6rem .8rem;background:var(--brand-50);border-radius:var(--radius-sm);font-size:.9rem}
.review-reply b{color:var(--brand-700)}
.rev-dims{display:flex;gap:.8rem;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin-top:.3rem}
.helpful-btn{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;background:none;border:1px solid var(--field-line);border-radius:999px;padding:.2rem .8rem;font-size:.8rem;color:var(--muted);cursor:pointer}
.helpful-btn:hover{border-color:var(--brand);color:var(--brand-700)}
/* completeness meter (dashboard) */
.completeness{height:8px;background:var(--line-2);border-radius:999px;overflow:hidden}
.completeness>span{display:block;height:100%;background:var(--brand);border-radius:999px}
/* notifications bell */
.alex-notif{position:relative}
.notif-btn{background:none;border:0;font-size:1.15rem;cursor:pointer;position:relative;padding:.3rem;color:var(--ink)}
.notif-dot{position:absolute;top:2px;inset-inline-end:2px;width:9px;height:9px;background:#ef4444;border-radius:50%;border:2px solid var(--card)}
.notif-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:300px;max-height:380px;overflow:auto;background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:70}
.notif-item{display:block;padding:.7rem .9rem;border-bottom:1px solid var(--line-2);text-decoration:none;color:var(--ink);font-size:.9rem}
/* Already-read history, shown when there is nothing unread. Dimmed so the panel still answers
   "is there anything new?" with a no, while not pretending the inbox is empty. */
.notif-item.is-seen{color:var(--muted)}
.notif-item.is-seen b{font-weight:600}
.notif-item:hover{background:var(--brand-50)}
.notif-item span{color:var(--muted);font-size:.82rem}
.notif-empty{padding:1.2rem;text-align:center;color:var(--muted);font-size:.9rem}
/* Merged from the two copies that used to define these: the panel chrome (background/border/
   radius/padding) and flex-direction came from the earlier block, the gap/margin/type from this
   one, and the browser was already compositing exactly that hybrid. */
.rev-dim-inputs{display:flex;flex-direction:column;gap:1rem;flex-wrap:wrap;margin:.5rem 0;
	background:var(--bg);border:1px solid var(--line-2);border-radius:var(--radius-sm);padding:.7rem .9rem}
/* flex-wrap so the 5x44px star group drops to its own line rather than overflowing the panel
   when the label leaves it less than ~236px — which it does at 360px, this file's target floor. */
.rev-dim{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem;font-size:.85rem;color:var(--muted)}
.stars-sm{margin-inline-start:auto}
.stars-sm .star{font-size:.9rem}
/* #f59e0b measured 2.15:1 on --card — under the 3:1 SC 1.4.11 asks of a graphic that carries
   meaning, and the filled star IS the rating. #b45309 is the same amber family at 5.02:1. */
.star.on{color:#b45309;opacity:1}
:root[data-theme="dark"] .star.on{color:#fbbf24}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .star.on{color:#fbbf24}}
/* #6.10 click-to-load video facade (no third-party asset until the visitor clicks play) */
.alex-video-facade{position:relative;aspect-ratio:16/9;width:100%;background:linear-gradient(135deg,#0F2233,#071A2C);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;border:1px solid var(--line)}
.alex-video-facade:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.alex-video-facade .alex-video-play{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:24px;padding-inline-start:5px;transition:transform .15s,background .15s}
.alex-video-facade:hover .alex-video-play{background:var(--brand);transform:scale(1.06)}
.alex-video-embed iframe,.alex-video-facade iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius-sm);display:block}

/* ============================================================================
   SEARCH 2.0 — results page, cards, filters, autocomplete.
   Authored mobile-first against a 360px viewport (18.8% of Egyptian mobile
   traffic — 4.5x the next resolution), which leaves 328px of usable card width.
   Anything that does not fit there at 14px minimum type is cut, not shrunk.
   Everything below intentionally overrides the older rules further up the file.
   ============================================================================ */

/* --- Bidi isolation -------------------------------------------------------
   Phone numbers, prices, ratings and counts are left-to-right runs living
   inside right-to-left sentences. Without isolation the bidi algorithm
   reorders their digit groups, so "010 1234 5678" renders scrambled — which on
   a call-only directory means handing the patient a wrong number. */
/* `.alex-tel` sat here too — a tabular/tracked variant for a bare phone number. Nothing
   renders it: every number on the site goes through alex_ltr(), which emits `.alex-ltr`, and
   that already sets font-variant-numeric. */
.alex-ltr{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
:lang(ar){letter-spacing:0}          /* tracking breaks Arabic cursive joining */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The sticky search bar must never hide the element that keyboard focus lands on. Both bars
   stack: .nav is --nav-h (68px) and .search-bar pins directly below it at another ~68px, so 88px
   left anything anchored or focused sitting under the search bar. */
html{scroll-padding-block-start:calc(var(--nav-h) + 84px)}

/* --- Sticky search bar ---------------------------------------------------- */
.search-bar{position:sticky;top:var(--nav-h);z-index:40;background:var(--card);border-bottom:1px solid var(--line);
	padding-block:10px;box-shadow:0 4px 16px rgba(8,30,55,.06)}
.search-bar-in{display:flex;gap:8px;align-items:center}
.sb-form{display:flex;gap:8px;flex:1;min-width:0}
.sb-field{position:relative;display:flex;align-items:center;gap:.5rem;flex:1;min-width:0;
	background:var(--bg);border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding-inline:.85rem;min-height:48px}
.sb-field:focus-within{border-color:var(--brand);background:var(--card);box-shadow:0 0 0 3px var(--brand-50)}
.sb-field svg{width:19px;height:19px;color:var(--muted);flex:0 0 auto}
/* 16px minimum: anything smaller makes iOS Safari zoom the page on focus. */
.sb-field input{border:0;background:transparent;outline:0;width:100%;min-width:0;font-family:inherit;font-size:16px;color:var(--ink)}
.sb-go{min-height:48px;padding-inline:1.1rem}
/* `.sb-filters` and its `.sb-count` badge lived here: the filter opener used to sit INSIDE this
   sticky bar. It moved into the results toolbar and became `.ax-sheet-open` / `.ax-sheet-n`
   (which carry the same brand-pill and dark-mode ink rules below), so neither class is rendered
   any more. The dark-mode ink override kept `.fgroup-on`, which is still live — it is the count
   badge on an expanded facet group. */
/* --brand inverts to a bright #e0b24a in dark, where white ink drops to 1.97:1. Every
   brand-filled pill in this file flips to --gold-ink there instead; see .qchip.is-on. */
:root[data-theme="dark"] .fgroup-on{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fgroup-on{color:var(--gold-ink)}}
.sb-go svg{width:19px;height:19px;display:none}
@media (max-width:560px){
	.sb-go span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.sb-go svg{display:block}
	.sb-go{padding-inline:.85rem}
}

/* --- Results header ------------------------------------------------------- */
.sec-results{padding-block:20px clamp(40px,6vw,72px)}
/* Two children, not four. The H1, the count and the match note are one text block; the share chip
   is the other. As four flat siblings of a `space-between` row the count floated into the middle
   of an 1180px line, nowhere near the heading it counts. */
.results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:.9rem}
.results-head-t{min-width:0;display:flex;flex-direction:column;gap:.15rem}
.results-head .h-sec{font-size:clamp(1.35rem,4.4vw,1.9rem);line-height:1.35}
/* The under-H1 lede. Measure-capped so it stays two or three lines and never becomes the
   thing the visitor has to scroll past to reach the doctors. */
.results-lede{color:var(--body);font-size:.95rem;line-height:1.75;margin-top:.5rem;max-width:68ch}
/* `.results-count` and its two follow-ups sat here. The count moved out of the heading block
   and into the toolbar row as `.ax-toolbar-count`, which has its own rules in the listings
   block and states the count in --body on --bg rather than --muted. */
.match-note{margin-top:.5rem;font-size:.88rem;color:var(--body);background:var(--brand-50);
	border:1px solid var(--brand-100);border-radius:var(--radius-sm);padding:.55rem .8rem}
.match-note a{color:var(--brand-700);font-weight:700;text-decoration:underline}

/* --- Active filter chips (above the grid, outside the panel) --------------- */
.active-filters{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.7rem}
/* Logical padding, one rule: the label side gets .8rem and the × side .55rem in BOTH directions.
   The physical 4-value shorthand needed a full [dir="rtl"] restatement to say the same thing. */
.chip-active{display:inline-flex;align-items:center;gap:.35rem;background:var(--brand-50);color:var(--brand-700);
	border:1px solid var(--brand-100);border-radius:999px;padding-block:.42rem;padding-inline:.8rem .55rem;
	font-size:.85rem;font-weight:600;min-height:36px}
.chip-active:hover{border-color:var(--brand);background:var(--brand-100)}
/* 24px visual, 44px hit area — WCAG 2.5.8 without a chunky-looking chip. */
.chip-x{position:relative;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
	background:rgba(0,0,0,.06);font-weight:700;line-height:1}
/* A black wash is invisible on a dark chip — the affordance has to invert with the surface. */
:root[data-theme="dark"] .chip-x{background:rgba(255,255,255,.12)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chip-x{background:rgba(255,255,255,.12)}}
.chip-x::after{content:"";position:absolute;inset:-11px}
.chip-clear{display:inline-flex;align-items:center;min-height:36px;padding-inline:.7rem;font-size:.85rem;
	font-weight:700;color:var(--muted);text-decoration:underline}
.chip-clear:hover{color:var(--brand-700)}

/* --- Quick-filter rail ----------------------------------------------------- */
/* `min-width:0` is load-bearing. A horizontal scroller is only allowed to scroll if its
   ancestors may shrink below their content: grid and flex items default to
   `min-width:auto`, so a rail of nowrap chips otherwise forces the whole column to its
   min-content width — which blew the hero out to 760px inside a 390px viewport and
   clipped the headline. */
.quick-rail{display:flex;min-width:0;gap:.5rem;overflow-x:auto;padding-block:.15rem .7rem;margin-bottom:.4rem;
	scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.quick-rail::-webkit-scrollbar{display:none}
/* The rail hides its scrollbar, so at 390px the sixth chip was simply cut off at the edge with
   nothing to say more existed. The mask fades the SCROLL-FORWARD edge — left in Arabic, right in
   English — which is the direction the remaining chips are in.
   Suppressed on :focus-within because a mask clips the focus ring of whichever chip a keyboard
   user has landed on, and an invisible focus ring is a worse bug than an unhinted scroller. */
.quick-rail:not(:focus-within){mask-image:linear-gradient(to left,#000 calc(100% - 30px),transparent)}
[dir="ltr"] .quick-rail:not(:focus-within){mask-image:linear-gradient(to right,#000 calc(100% - 30px),transparent)}
/* gap, not a &nbsp; in the markup: the chips render a sprite <svg> beside their label, and a
   whitespace-only text node between two flex items is dropped, so without this the icon sits
   flush against the text. */
.qchip{flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;gap:.35rem;min-height:44px;
	padding-inline:1.05rem;border-radius:999px;background:var(--card);border:1px solid var(--field-line);
	font-size:.88rem;font-weight:700;color:var(--body);white-space:nowrap}
.qchip:hover{border-color:var(--brand);color:var(--brand-700)}
.qchip.is-on{background:var(--brand);border-color:var(--brand);color:#fff}
/* Both halves are required. The toggle only writes data-theme once it is CLICKED, so a visitor
   whose OS is dark and who never touched the toggle matches neither :root[data-theme="dark"] nor
   :root[data-theme="light"] — the attribute selector alone would leave them on white-on-#e0b24a
   at 1.97:1. Every dark override in this file is written twice for that reason. */
:root[data-theme="dark"] .qchip.is-on{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .qchip.is-on{color:var(--gold-ink)}}

/* --- Layout --------------------------------------------------------------- */
.results{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
.results-main{min-width:0}
/* `justify-content:flex-start` is stated rather than left to the initial value because the
   label and the <select> it labels have to stay adjacent — a `space-between` toolbar throws them
   to opposite ends of the results column. (The pre-2.0 copy that used to do exactly that has
   been deleted; this is now the only .results-toolbar rule in the file.) */
.results-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.5rem;margin-bottom:.9rem}
.sort-select{font-size:.9rem;color:var(--muted);font-weight:600}
.results-toolbar select{min-height:44px;border:1px solid var(--field-line);border-radius:var(--radius-ctl);
	background-color:var(--card);color:var(--ink);font-family:inherit;font-size:.9rem;padding-inline:.6rem;max-width:60%}
.g-doc{display:grid;grid-template-columns:1fr;gap:14px}

/* --- Doctor card ----------------------------------------------------------------------
   One pitch, three facts, one action. Every block below is optional in the markup, so the
   card must look finished with only a name and a specialty — nothing here relies on a
   sibling existing. */
.doc-card{position:relative;display:flex;flex-direction:column;gap:11px;background:var(--card);
	border:1px solid var(--card-line);border-radius:var(--radius);overflow:hidden;padding:16px;box-shadow:var(--shadow);
	transition:box-shadow .2s,transform .2s,border-color .2s;content-visibility:auto;contain-intrinsic-size:auto 320px}
.doc-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
/* The first three cards are above the fold; skipping their render would cost more
   than it saves and would make the LCP element invisible to the browser.
   The icon sprite is the grid's first child, so counting children is off by one — count
   cards instead. The first three are above the fold on every breakpoint. */
.g-doc>.doc-card:nth-of-type(-n+3){content-visibility:visible}
/* The paid-placement ribbon sits ON the card's top edge, so the card's own padding has to
   clear it or the first badge lands on top of the stripe. Tracks the card's own padding, which
   went 14px -> 16px with the brand's more generous geometry. */
.doc-card:has(>.tier-ribbon){padding-top:20px}
.doc-flags{display:flex;flex-wrap:wrap;gap:6px}

.doc-card-main{display:flex;gap:.85rem;align-items:flex-start}
.doc-ava-col{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;width:84px}
.doc-ava-link{line-height:0;display:block;border-radius:var(--radius)}
/* flex:0 0 auto carried over from the older duplicate: on .profile-hero (a wrap flex row) the
   avatar is a direct flex item, so without it the 104px portrait shrinks whenever the name runs long. */
.doc-ava{width:84px;height:84px;border-radius:var(--radius);object-fit:cover;background:var(--brand-50);aspect-ratio:1;flex:0 0 auto}
.doc-ava-ph{display:grid;place-items:center;font-size:2rem;font-weight:700;line-height:1;
	color:hsl(var(--ph-h,30) 45% 32%);background:hsl(var(--ph-h,30) 60% 92%)}
:root[data-theme="dark"] .doc-ava-ph{color:hsl(var(--ph-h,30) 55% 78%);background:hsl(var(--ph-h,30) 30% 22%)}
/* …and for system dark with no explicit toggle, which the attribute selector alone misses. */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .doc-ava-ph{
	color:hsl(var(--ph-h,30) 55% 78%);background:hsl(var(--ph-h,30) 30% 22%)}}
/* The rating rides the bottom edge of the photo. Negative margin instead of absolute
   positioning so it still takes part in the column's height and can never overlap the name. */
.doc-rate{display:inline-flex;align-items:center;gap:3px;margin-top:-13px;position:relative;z-index:1;
	white-space:nowrap;font-size:.78rem;font-weight:700;line-height:1.6;padding:1px 8px;border-radius:999px;
	background:var(--tier-gold-bg);color:var(--tier-gold-ink);border:1px solid var(--tier-gold);box-shadow:var(--shadow-sm)}
.doc-rate svg{width:12px;height:12px}
.doc-rate small{font-weight:700;opacity:.75}
.doc-rate--new{margin-top:6px;background:var(--line-2);color:var(--muted);border-color:var(--line);box-shadow:none}

.doc-body{flex:1;min-width:0;padding-top:1px}
.doc-name{font-size:1.06rem;font-weight:700;line-height:1.35;color:var(--ink);display:flex;flex-wrap:wrap;align-items:center;gap:.3rem}
/* The name is a text link inside a heading; padding lifts it over the 24px
   minimum target height without changing how the card looks. */
.doc-name a{color:inherit;display:inline-block;padding-block:2px}
.doc-name a:hover{color:var(--brand-700)}
.doc-verify{display:inline-flex;color:#1d7ae0;line-height:0}
.doc-verify svg{width:17px;height:17px}
:root[data-theme="dark"] .doc-verify{color:#5aa6f0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .doc-verify{color:#5aa6f0}}
/* Two clamped lines each: a long specialty term plus a long seniority title would otherwise
   push the pitch, the stats and the CTA down by a whole card's worth of height, and a results
   grid whose cards are all different heights reads as broken rather than as varied. */
.doc-title,.doc-sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.doc-title{margin-top:.2rem;font-size:.92rem;font-weight:600;color:var(--body);line-height:1.45}
/* Seniority (استشاري / أخصائي) in the brand accent: a national survey put "quality of care"
   at 57.8% of provider choice against 8.0% for cost, and this is the line that carries it. */
.doc-sub{margin-top:.1rem;font-size:.88rem;font-weight:700;color:var(--brand-700);line-height:1.45}

/* The doctor's own sentence — the only free text on the card, and the only thing that can
   make one card read differently from the eleven around it. */
.doc-pitch{display:flex;align-items:flex-start;gap:.5rem;margin:0;padding:9px 11px;
	background:var(--brand-50);border:1px solid var(--brand-100);border-radius:var(--radius-sm);
	font-size:.86rem;font-weight:600;line-height:1.55;color:var(--body)}
.doc-pitch svg{width:17px;height:17px;flex:0 0 auto;color:var(--brand);margin-top:2px}
.doc-pitch span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Facts strip. 1px grid gaps over a --line background draw the dividers, so there are no
   border rules to un-double at the edges and the cell count can vary from one to three. */
.doc-stats{display:grid;grid-template-columns:repeat(var(--cells,3),minmax(0,1fr));gap:1px;
	margin:0;padding:0;list-style:none;background:var(--line);
	border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
.doc-stats li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
	min-width:0;padding:8px 5px;background:var(--card);text-align:center}
.doc-stats svg{color:var(--brand)}
.doc-stats b{max-width:100%;font-size:.85rem;font-weight:700;color:var(--ink);
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-stats span{font-size:.71rem;font-weight:600;color:var(--muted)}

.doc-where{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;font-size:.84rem}
.doc-place{display:inline-flex;align-items:flex-start;gap:.3rem;min-width:0;flex:1 1 140px}
.doc-place svg{flex:0 0 auto;color:var(--brand);margin-top:1px}
.doc-place-t{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.doc-place-t b{font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-place-t small{font-size:.77rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* The single action. Deep navy, full width, always last — the one target on the card, so
   there is no competing tap area to mis-hit on a phone. */
/* `margin-top:auto` on a stretched grid item is what keeps the CTA on the card's bottom edge:
   without it, two cards side by side put their buttons at different heights whenever one has a
   longer specialty or an extra address line, and a row of misaligned buttons reads as a bug. */
.doc-cta{margin-top:auto;width:100%;min-height:48px;padding:.6rem 1.2rem;border-radius:999px;
	justify-content:space-between;gap:.6rem;font-size:.95rem;font-weight:700}
.btn-cta{background:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);
	border-color:var(--cta);box-shadow:0 6px 16px var(--cta-glow)}
.btn-cta:hover{background:linear-gradient(180deg,var(--cta-2),var(--cta));filter:brightness(1.14);color:var(--cta-ink)}
.btn-cta:focus-visible{outline:3px solid var(--cta-2);outline-offset:2px}
.doc-cta>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* The glyph points to the inline-end edge, which is left in Arabic; LTR mirrors it. The
   nudge on hover uses the same mirrored axis so it always travels FORWARD, not backwards. */
.doc-cta .doc-cta-arrow{width:18px;height:18px;flex:0 0 auto;transition:transform .18s}
.doc-card:hover .doc-cta-arrow{transform:translateX(-3px)}
[dir="ltr"] .doc-cta-arrow{transform:scaleX(-1)}
[dir="ltr"] .doc-card:hover .doc-cta-arrow{transform:scaleX(-1) translateX(-3px)}
/* Reduced motion drops the nudge but must KEEP the mirror. Writing the LTR hover as
   `transform:none` looked equivalent and was not: at (0,4,0) it outranked the (0,2,0) mirror
   rule, so hovering a card on /en/ snapped the arrow round to point backwards. */
@media (prefers-reduced-motion:reduce){
	.doc-card,.doc-cta-arrow{transition:none}
	.doc-card:hover{transform:none}
	.doc-card:hover .doc-cta-arrow{transform:none}
	[dir="ltr"] .doc-cta-arrow,[dir="ltr"] .doc-card:hover .doc-cta-arrow{transform:scaleX(-1)}
}

/* Kept for the profile and branch pages, which still render a rating, a fee and a contact
   block — the listing card no longer uses any of them. */
/* --tier-gold-ink, not #c98a00: the old value was 2.95:1 on white where text needs 4.5:1, and the
   token already inverts (a deep #5a3f06 in light, a pale #f7e6b0 in dark) so no second rule is
   needed. font-size carried forward from the older duplicate this replaces. */
.rating{display:inline-flex;align-items:center;gap:.25rem;color:var(--tier-gold-ink);font-weight:700;font-size:.85rem}
.rating small{color:var(--muted);font-weight:600}
.fee{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;font-weight:700;color:var(--brand-700);
	font-size:.85rem;background:var(--brand-50);padding:.22rem .55rem;border-radius:var(--radius-sm)}
.fee svg{width:15px;height:15px}
.badge-verify{background:#e6f0fb;color:#1667c9;font-size:.72rem}
:root[data-theme="dark"] .badge-verify{background:#132a45;color:#8fc0f5}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge-verify{background:#132a45;color:#8fc0f5}}
.doc-actions{display:flex;gap:.5rem}
.doc-actions .btn{flex:1;justify-content:center;min-height:48px;font-size:.98rem;gap:.4rem}
.doc-actions .btn svg{width:18px;height:18px}
.btn-wa{background:#25d366;color:#08331b}
.btn-wa:hover{background:#1fbb59}

/* --- Filter panel ---------------------------------------------------------
   A native <dialog> on mobile: focus trap, ::backdrop, Esc-to-close and
   background inerting come free, with no JavaScript. */
.filters{border:0;padding:0;background:transparent;max-width:none;max-height:none;color:inherit}
.filters:not([open]){display:none}
.filters::backdrop{background:rgba(4,20,36,.55)}
.filters[open]{position:fixed;inset:auto 0 0 0;width:100%;max-height:88dvh;display:flex;flex-direction:column;
	background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -12px 52px rgba(4,16,30,.34);
	animation:alex-sheet .24s cubic-bezier(.16,1,.3,1)}
@keyframes alex-sheet{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.filters[open]{animation:none}}
/* `.filters-head` (and its `h2`) went with the rebuild: the panel's header bar is `.ax-sheet-head`
   now, and no template renders a `.filters-head`. `.filters-x` stays — it is still the close
   control this dialog's own `:target` fallback needs. */
.filters-x{background:none;border:0;font-size:1.7rem;line-height:1;color:var(--muted);
	min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:var(--radius-sm)}
.filters-x:hover{background:var(--bg);color:var(--ink)}
/* `flex:1` is `flex-basis:0`, which contributes NOTHING to a content-sized flex
   container — the sheet collapsed to just its header and footer. `1 1 auto` lets the
   body size to its content and still shrink once max-height bites. */
.filters-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 12px;-webkit-overflow-scrolling:touch}
/* The `.filters-foot` family that sat here is gone for the same reason as `.filters-head`: the
   panel's action bar is `.ax-sheet-foot` now. Its "links apply instantly on desktop" rule
   survives, restated against `.ax-sheet-foot` in the listings block. */
.fgroup{border-bottom:1px solid var(--line-2)}
.fgroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.5rem;
	min-height:48px;font-weight:700;font-size:.95rem;color:var(--ink)}
.fgroup>summary::-webkit-details-marker{display:none}
.fgroup>summary::after{content:"";margin-inline-start:auto;width:9px;height:9px;flex:0 0 auto;
	/* Physical borders on purpose: an L of right+bottom rotated 45deg is a chevron
	   pointing DOWN in either writing direction. Logical borders flip under RTL and
	   would point the wrong way. */
	border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
	transform:rotate(45deg);margin-block-end:3px;transition:transform .2s}
.fgroup[open]>summary::after{transform:rotate(-135deg);margin-block:3px 0}
.fgroup-on{background:var(--brand);color:#fff;border-radius:999px;min-width:19px;height:19px;
	display:inline-grid;place-items:center;font-size:.7rem;font-weight:700}
.fopts{list-style:none;margin:0;padding:0 0 .5rem}
.fopt{display:flex;align-items:center;gap:.6rem;min-height:44px;padding-inline:.15rem;
	font-size:.92rem;color:var(--body);border-radius:var(--radius-xs)}
.fopt:hover{background:var(--brand-50);color:var(--brand-700)}
.fopt-box{flex:0 0 auto;width:20px;height:20px;border:2px solid var(--field-line);border-radius:7px;background:var(--card)}
.fopt.is-on .fopt-box{background:var(--brand);border-color:var(--brand);
	background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-size:13px;background-position:center;background-repeat:no-repeat}
/* The tick is baked into a data-URI, so it cannot read a custom property — the whole URI has to
   be restated with a dark stroke. %232a1f07 is --gold-ink; white on the dark-mode --brand
   (#e0b24a) is ~2:1, i.e. a checked filter looked unchecked. */
:root[data-theme="dark"] .fopt.is-on .fopt-box{
	background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1f07' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fopt.is-on .fopt-box{
	background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1f07' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}}
.fopt.is-on{color:var(--brand-700);font-weight:700}
.fopt-label{flex:1;min-width:0}
.fopt-n{color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums}
.fopts.has-more .fopt-extra{display:none}
.fopts-toggle:checked+.fopts .fopt-extra{display:list-item}
.fopt-more{display:inline-flex;align-items:center;min-height:44px;font-size:.86rem;font-weight:700;
	color:var(--brand-700);cursor:pointer;text-decoration:underline}
.fopt-more:hover{color:var(--brand)}
.fopt-more .more-off{display:none}
.fopts-toggle:checked+.fopts .fopt-more .more-on{display:none}
.fopts-toggle:checked+.fopts .fopt-more .more-off{display:inline}
.fopts-toggle:focus-visible+.fopts .fopt-more{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}

/* --- Empty state ----------------------------------------------------------- */
.empty-state{grid-column:1/-1;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow);
	border-radius:var(--radius);padding:clamp(20px,5vw,32px);text-align:center}
.empty-state h2{font-size:1.2rem;margin-bottom:.4rem}
.empty-lead{color:var(--muted)}
.empty-suggest{margin-top:.7rem;font-size:1rem}
.empty-suggest a{color:var(--brand-700);font-weight:700;text-decoration:underline}
.empty-relax{margin-top:1rem;display:flex;flex-direction:column;align-items:center;gap:.6rem;color:var(--body)}
.empty-h{margin-top:1.2rem;color:var(--muted);font-size:.9rem}
.empty-state .chips{justify-content:center;margin-top:.6rem}
.empty-help{margin-top:1.4rem;padding-top:1.1rem;border-top:1px solid var(--line-2);
	display:flex;flex-direction:column;align-items:center;gap:.6rem;color:var(--body)}
/* When the geographic fallback is carrying the page, the "no results" box steps back to a
   short header so the screen does not say "nothing found" twice above the fold. */
.empty-state-slim{padding:clamp(14px,3.5vw,20px);text-align:start}
.empty-state-slim h2{font-size:1.05rem}
.empty-state-slim .empty-relax{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin-top:.7rem}
.empty-state-slim .empty-help{margin-top:1rem;padding-top:.8rem;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start}

/* --- Zero-result geographic fallback --------------------------------------- */
/* Nearest areas that DO have the doctor being looked for. Spans the card grid because it is
   the page's main content once the real result set came back empty. */
.fb-block{grid-column:1/-1;margin-top:14px}
.fb-h{font-size:clamp(1.1rem,3vw,1.35rem);font-weight:700;color:var(--ink);margin-bottom:.3rem}
.fb-lead{color:var(--muted);font-size:.95rem;line-height:1.7;margin-bottom:1rem;max-width:62ch}
.fb-group{background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius);
	padding:clamp(12px,3vw,18px);margin-bottom:14px}
.fb-group-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .7rem;margin-bottom:.9rem}
.fb-area{font-size:1.05rem;font-weight:700;margin:0}
.fb-area a{color:var(--brand-700)}
.fb-area a:hover{text-decoration:underline}
.fb-km{font-size:.82rem;font-weight:700;color:var(--brand-700);background:var(--brand-50);
	border:1px solid var(--brand-100);border-radius:999px;padding:.1rem .55rem}
.fb-count{font-size:.82rem;color:var(--muted)}
/* The nested grid must not inherit the outer grid's row gap twice over. */
.fb-cards{gap:12px}
.fb-more{margin-top:.9rem}
.fb-chips{margin-top:.4rem}
.fb-sub{font-size:.95rem;font-weight:700;color:var(--body);margin-bottom:.5rem}
.fb-all{margin-top:1.1rem}
/* Count badge inside a suggestion chip: it is what makes the chip a promise rather than a guess. */
.chip-n{display:inline-block;margin-inline-start:.35rem;font-size:.72rem;font-weight:700;
	color:var(--muted);background:var(--line-2);border-radius:999px;padding:0 .35rem;min-width:1.2em;text-align:center}
.chip.on .chip-n,.chip-active .chip-n{background:rgba(255,255,255,.22);color:inherit}
:root[data-theme="dark"] .chip-n{background:var(--line);color:var(--body)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chip-n{background:var(--line);color:var(--body)}}

/* --- Pagination ------------------------------------------------------------ */
.pager{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:center;margin-top:1.6rem}
.pager .page-numbers{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding-inline:.5rem;
	border:1px solid var(--field-line);border-radius:var(--radius-sm);background:var(--card);color:var(--body);font-weight:700;font-size:.92rem}
.pager .page-numbers:hover{border-color:var(--brand);color:var(--brand-700)}
.pager .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff}
:root[data-theme="dark"] .pager .page-numbers.current{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pager .page-numbers.current{color:var(--gold-ink)}}
.pager .dots{border-color:transparent;background:none}

/* --- Trailing content ------------------------------------------------------ */
.intro-panel{margin-top:2rem;max-width:820px;color:var(--body);line-height:1.9}
.link-mesh,.faq-block{margin-top:2rem}
.h-sub{font-size:1.15rem;margin-bottom:.7rem}
.faq-block .panel{margin-top:.7rem}
.faq-block summary{cursor:pointer;font-weight:700;color:var(--ink);min-height:44px;display:flex;align-items:center}
.faq-block p{margin-top:.5rem;color:var(--body)}

/* --- Autocomplete (ARIA 1.2 combobox) -------------------------------------- */
.alex-ac{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:60;background:var(--card);
	border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
	max-height:min(60vh,400px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:none;padding-block:4px}
.alex-ac.open{display:block}
.alex-ac .ac-group{padding:.45rem .85rem .25rem;font-size:.72rem;font-weight:700;letter-spacing:.03em;
	text-transform:uppercase;color:var(--muted)}
.alex-ac [role="option"]{display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.45rem .85rem;
	color:var(--ink);cursor:pointer;font-size:.95rem}
.alex-ac [role="option"]:hover,.alex-ac [role="option"].active{background:var(--brand-50);color:var(--brand-700)}
.alex-ac .ac-ic{flex:0 0 auto;width:22px;height:22px;display:grid;place-items:center;color:var(--brand);opacity:.8}
.alex-ac .ac-ic svg{width:17px;height:17px}
.alex-ac .ac-gloss{color:var(--muted);font-size:.82rem;margin-inline-start:.2rem}
.alex-ac .ac-state{padding:.9rem;color:var(--muted);font-size:.9rem;text-align:center}

/* --- Desktop --------------------------------------------------------------- */
@media (min-width:700px){
	.g-doc{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1024px){
	.results{grid-template-columns:272px minmax(0,1fr);gap:28px}
	.g-doc{grid-template-columns:repeat(2,1fr)}
	/* The panel stops being a dialog and becomes a persistent rail. `display` is
	   forced because a <dialog> without [open] is display:none in the UA sheet. */
	.filters,.filters:not([open]){display:flex!important;position:static;flex-direction:column;
		max-height:none;background:var(--card);border:1px solid var(--card-line);border-radius:var(--radius-lg);
		box-shadow:var(--shadow);animation:none;inset:auto;
		/* The UA sheet gives dialog `width:fit-content` + `margin:auto`; as a static rail
		   that shrink-wrapped the panel and floated it inside its own grid column. */
		width:100%;max-width:none;margin:0;padding:0}
	.filters::backdrop{background:none}
	.filters-x{display:none}
	.filters-body{overflow:visible;padding:6px 16px}
	.search-bar-in{max-width:760px;margin-inline:auto}
}
/* Two columns is the ceiling until there is genuinely room for a third: beside the
   272px filter rail, three cards inside a 1180px wrap are ~270px each, which wraps
   the fee, the title and the CTA labels. */
@media (min-width:1560px){.g-doc{grid-template-columns:repeat(3,1fr)}}

.hero-rail{margin-top:.85rem;padding-bottom:.2rem}
.hero-content,.hero-grid>*,.hero .axp-hs{min-width:0}
.hero-rail .qchip{background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* .85, not .72: the rail sits at the bottom of the hero, i.e. directly on the sea band, and a
   .72 chip over the brightest dark wave left --body at 4.2:1. .85 puts it back on --card. */
:root[data-theme="dark"] .hero-rail .qchip{background:rgba(15,34,51,.85)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hero-rail .qchip{background:rgba(15,34,51,.85)}}
/* Sprite references inherit their size from the rule that draws them; give <use>
   a sane default so an un-sized icon never collapses to 0x0. */
.doc-place svg{width:16px;height:16px}
.doc-stats svg{width:16px;height:16px}
.doc-actions .btn svg{width:18px;height:18px}

/* --- No-JS fallbacks for the filter panel and sort ------------------------------------
   The panel trigger is an <a href="#alex-filters">. With JS the script cancels that and
   opens the real dialog; without it the browser jumps to the fragment and this :target
   rule opens the same panel. `display` needs !important to beat the UA's
   `dialog:not([open]){display:none}`. */
@media (max-width:1023px){
	.filters:target{display:flex!important;position:fixed;inset:auto 0 0 0;width:100%;max-height:88dvh;
		flex-direction:column;background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;
		box-shadow:0 -12px 52px rgba(4,16,30,.34);z-index:80;margin:0;max-width:none;padding:0}
	/* Dim the page behind the :target panel — showModal()'s ::backdrop does not apply here. */
	.filters:target::before{content:"";position:fixed;inset:0;background:rgba(4,20,36,.55);z-index:-1}
}
/* showModal() does not lock background scrolling. This has to sit on the ROOT element, not on
   <body>: html{overflow-x:clip} above means html is the element whose overflow propagates to the
   viewport, so body's own overflow is simply not consulted and `body:has(...)` locked nothing —
   the page kept scrolling behind the open filter sheet and share sheet. */
:root:has(dialog[open]){overflow:hidden}
/* The sort submit button exists only for the no-JS path. */
.results-toolbar.js-on .sort-go{display:none}

/* ============================================================================
   BLOG / ARTICLES
   Appended last on purpose — this file is cascade-ordered and later wins, so a
   fresh .post-* namespace never has to fight the doctor-card rules above it.
   Every value is a design token, so dark mode needs no second block here.
   ============================================================================ */

/* Safety floor for every sprite icon. An <svg> containing only a <use> has NO
   intrinsic size: with no rule matching at all it renders at the replaced-element
   default of 300x150. Specificity 0,1,0 so every existing per-context rule
   (.doc-actions .btn svg, .post-share-b svg, …) still wins. */
.gi{width:1.15em;height:1.15em;flex:0 0 auto;vertical-align:-.15em}

/* --- Hub + archive chrome -------------------------------------------------- */
.sec-blog{padding-top:20px}
.post-hub-head{margin-bottom:1.1rem;max-width:70ch}
.post-eyebrow{display:block;color:var(--brand);font-weight:700;font-size:.82rem;letter-spacing:.02em;margin-bottom:.3rem}
[dir="rtl"] .post-eyebrow{letter-spacing:0}
.post-count{color:var(--muted);font-size:.9rem;margin-top:.5rem}
.post-topics{margin-block:.4rem 1.6rem}
.post-topics .qchip small{opacity:.6;font-weight:600;margin-inline-start:.3rem}
.post-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:34px 20px}
.post-empty .btn{margin-top:.8rem}

/* --- Article card ---------------------------------------------------------- */
/* Own grid + own intrinsic size. .g-doc's 260px is tuned for a doctor card and
   would make the scrollbar jump as 16:9 image cards resolve. */
.g-post{display:grid;grid-template-columns:1fr;gap:18px}
.post-card{position:relative;display:flex;flex-direction:column;background:var(--card);
	border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden;
	transition:box-shadow .2s,transform .2s,border-color .2s;
	content-visibility:auto;contain-intrinsic-size:auto 360px}
/* The hero card is its own child of .post-hero, so the :nth-of-type guard below cannot reach
   it — and it is the one card rendered with fetchpriority=high. */
.post-hero>.post-card,.g-post>.post-card:nth-of-type(-n+3){content-visibility:visible}
.post-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.post-card-media{display:block;line-height:0;background:var(--brand-50);aspect-ratio:16/9;overflow:hidden}
.post-card-media img{width:100%;height:100%;object-fit:cover}
.post-card-ph{display:grid;place-items:center;width:100%;height:100%;
	color:hsl(var(--ph-h,30) 45% 38%);background:hsl(var(--ph-h,30) 55% 93%)}
/* The two hsl() values above are the ONLY non-token colours in this block, because the hue is
   derived per-article. They therefore need explicit dark-mode pairs — without them a card with
   no featured image is a 16:9 near-white panel on a #0e161e page. */
:root[data-theme="dark"] .post-card-ph{color:hsl(var(--ph-h,30) 55% 78%);background:hsl(var(--ph-h,30) 30% 22%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .post-card-ph{
	color:hsl(var(--ph-h,30) 55% 78%);background:hsl(var(--ph-h,30) 30% 22%)}}
.post-card-ph-ic{width:34px;height:34px;opacity:.55}
.post-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:.45rem;flex:1}
.post-card-title{font-size:1.08rem;font-weight:700;line-height:1.45;color:var(--ink)}
.post-card-title a{color:inherit;display:inline-block;padding-block:2px}
.post-card-title a:hover{color:var(--brand-700)}
.post-card-ex{color:var(--body);font-size:.93rem;line-height:1.7;margin:0}
.post-card-foot{margin-top:auto;padding-top:.5rem;display:flex;flex-wrap:wrap;align-items:center;
	gap:.5rem;font-size:.82rem;color:var(--muted)}
/* A bidi-neutral separator glyph reorders at an RTL/LTR boundary; a pseudo-element
   is not part of either neighbour's bidi run. */
.post-card-foot>span:not(:last-child)::after,.post-meta>span:not(:last-child)::after{content:"·";margin-inline-start:.5rem;opacity:.5}
.post-badge-rev{display:inline-flex;align-items:center;gap:.25rem;color:var(--ok);font-weight:700}
.post-badge-rev svg,.post-meta svg{width:14px;height:14px}
.post-card--wide .post-card-title{font-size:clamp(1.2rem,2.6vw,1.55rem)}
.post-card--wide .post-card-ex{font-size:1rem}
.post-hero{margin-bottom:1.8rem}

.post-pill{align-self:flex-start;display:inline-block;padding:.2rem .6rem;border-radius:999px;
	background:var(--brand-50);color:var(--brand-700);border:1px solid var(--brand-100);
	font-size:.76rem;font-weight:700;line-height:1.6}
.post-pill:hover{background:var(--brand-100)}

/* --- Two-column shell ------------------------------------------------------ */
/* minmax(0,1fr), never a bare 1fr: min-width:auto lets a wide table or <pre>
   blow the column out. */
.post-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
.post-aside{display:flex;flex-direction:column;gap:16px;min-width:0}
.post-rail p{color:var(--body);font-size:.93rem;line-height:1.7;margin-bottom:.8rem}
.post-mini-list{list-style:none;margin:0;padding:0;counter-reset:none}
.post-mini{display:flex;gap:.7rem;padding:.6rem 0;border-bottom:1px solid var(--line-2)}
.post-mini:last-child{border-bottom:0;padding-bottom:0}
.post-mini-n{flex:0 0 auto;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;
	background:var(--brand-50);color:var(--brand-700);font-weight:700;font-size:.75rem;
	font-variant-numeric:tabular-nums}
.post-mini a{display:block;font-size:.92rem;font-weight:700;line-height:1.5;color:var(--ink)}
.post-mini a:hover{color:var(--brand-700)}
.post-mini small{display:block;font-weight:400;color:var(--muted);font-size:.78rem;margin-top:.15rem}

/* --- Article page ---------------------------------------------------------- */
.sec-article{padding-top:20px}
.post-head{max-width:760px;margin-bottom:1.2rem}
/* .h-sec is 24px at 360px — too small for an article h1. */
.post-h1{font-size:clamp(1.65rem,4.6vw,2.5rem);line-height:1.3;margin:.5rem 0 .7rem}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;color:var(--muted);font-size:.86rem}
.post-meta>span{display:inline-flex;align-items:center;gap:.3rem}
.post-by{display:inline-flex;align-items:center;gap:.4rem}
.post-by img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--brand-50)}
.post-by-t a{color:var(--ink);font-weight:700}
.post-by-t a:hover{color:var(--brand-700)}
.post-hero-img{margin:0 0 1.6rem;border-radius:var(--radius);overflow:hidden;background:var(--brand-50)}
.post-hero-img img{width:100%;height:auto}
.post-main{min-width:0}

.post-takeaways{background:var(--brand-50);border:1px solid var(--brand-100);
	border-radius:var(--radius);padding:16px 18px;margin-bottom:1.6rem}
.post-takeaways h2{font-size:1rem;color:var(--brand-700);margin-bottom:.6rem}
.post-takeaways ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.post-takeaways li{display:flex;gap:.55rem;align-items:flex-start;color:var(--ink);
	font-size:.95rem;line-height:1.65}
.post-takeaways svg{flex:0 0 auto;width:17px;height:17px;margin-top:.22rem;color:var(--brand)}

/* --- Long-form body -------------------------------------------------------- */
/* the_content() is author-controlled HTML, so every element it can emit is styled
   explicitly. Four global rules further up are undone here: h1-h4{margin:0} (:57),
   p{margin:0} (:58), a{text-decoration:none} (:55) and the img rule (:56).
   NEVER put content-visibility on this element — skipped content has no measurable
   heading offsets, which silently kills the TOC scroll-spy and #anchors. */
.post-body{font-size:1.0625rem;line-height:1.9;color:var(--body);max-width:74ch}
.post-body>:first-child{margin-block-start:0}
.post-body p{margin-block:0 1.15em}
.post-body h2{font-size:clamp(1.28rem,3.9vw,1.6rem);margin-block:1.9em .5em;line-height:1.4}
.post-body h3{font-size:clamp(1.1rem,3.2vw,1.26rem);margin-block:1.55em .42em;line-height:1.45}
.post-body h4{font-size:1.02rem;margin-block:1.3em .4em;line-height:1.5}
/* Tighten Latin only: :lang(ar){letter-spacing:0} (:583) is specificity 0,1,0 and
   would lose to .post-body h2, re-breaking Arabic cursive joining. */
/* letter-spacing removed here too — see the h1-h4 note. Both scripts keep Almarai's own metrics. */
/* No scroll-margin here: html{scroll-padding-block-start:88px} (above) already clears the
   sticky nav, and the two ADD — together they parked every anchored heading 172px down the
   viewport with a band of blank space above it. One source of truth. */
.post-body a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.22em;
	text-decoration-thickness:from-font}
.post-body a:hover{color:var(--brand);text-decoration-thickness:2px}
.post-body strong,.post-body b{color:var(--ink);font-weight:700}
.post-body ul,.post-body ol{margin-block:1.15em;padding-inline-start:1.5em;padding-inline-end:0}
.post-body ul{list-style:disc}
.post-body ol{list-style:decimal}  /* decimal, not arabic-indic — see alex_num() */
.post-body li{margin-block:.42em}
.post-body li::marker{color:var(--brand)}
.post-body li>ul,.post-body li>ol{margin-block:.42em}
.post-body blockquote{margin-block:1.7em;padding:.95rem 1.15rem;background:var(--bg);
	border:1px solid var(--line);border-inline-start:4px solid var(--brand);
	border-radius:var(--radius-sm);color:var(--ink);line-height:1.85}
.post-body blockquote p{margin-block:0}
.post-body blockquote p+p{margin-block-start:.7em}
/* height:auto again at this depth: an inline height attribute on a wide content
   image otherwise survives max-width and renders squashed. */
.post-body img{height:auto;border-radius:var(--radius-sm);margin-block:1.5em}
.post-body figure{margin-block:1.7em;margin-inline:0}
.post-body figure img{margin-block:0}
.post-body figcaption{margin-block-start:.55rem;font-size:.86rem;color:var(--muted);
	line-height:1.6;text-align:start}
/* Bidi isolation for Latin runs inside Arabic sentences — drug names, dosages, lab
   values. Same reasoning as .alex-ltr (:581). */
.post-body bdi,.post-body code,.post-body kbd,.post-body samp,.post-body abbr[title]{unicode-bidi:isolate}
.post-body code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;
	background:var(--bg);border:1px solid var(--line-2);border-radius:7px;padding:.1em .38em;direction:ltr}
.post-body pre{margin-block:1.6em;padding:1rem;background:var(--bg);border:1px solid var(--line);
	border-radius:var(--radius-sm);overflow-x:auto;direction:ltr;text-align:left;font-size:.88rem;line-height:1.7}
.post-body pre code{background:none;border:0;padding:0;font-size:1em}
.post-body hr{margin-block:2.2em;border:0;border-top:1px solid var(--line)}
.post-body sup{font-size:.72em;line-height:0;vertical-align:super}
.post-body mark{background:var(--brand-100);color:var(--ink);padding:.05em .2em;border-radius:5px}
/* An iframe keeps its width/height ATTRIBUTES, so max-width alone squashes a 560x315 embed to
   320x315 — and the core block CSS that used to make embeds responsive is dequeued. A video
   derives its ratio from its own attributes, so height:auto is enough there. */
.post-body iframe{max-width:100%;width:100%;aspect-ratio:16/9;height:auto;border-radius:var(--radius-sm)}
.post-body video{max-width:100%;height:auto;border-radius:var(--radius-sm)}
/* display:block on a <table> destroys cell width distribution, so the wrapper is
   injected around it instead. */
.post-scroll{margin-block:1.7em;overflow-x:auto;overscroll-behavior-inline:contain;
	border:1px solid var(--line);border-radius:var(--radius-sm)}
.post-scroll table{width:100%;border-collapse:collapse;font-size:.94em;min-width:min(100%,420px)}
.post-scroll th,.post-scroll td{padding:.6rem .75rem;text-align:start;
	border-bottom:1px solid var(--line-2);vertical-align:top}
.post-scroll th{background:var(--bg);color:var(--ink);font-weight:700;font-size:.9em;white-space:nowrap}
.post-scroll tr:last-child td{border-bottom:0}

/* Author-marked pull quote with its own share link. */
.post-body .post-pull{background:var(--brand-50);border-color:var(--brand-100);
	font-size:1.1em;font-weight:600}
/* Prefixed with .post-body: this link is INSIDE the article body, so a bare .post-pull-share
   (0,1,0) loses to .post-body a (0,1,1) and rendered as an ordinary gold underlined link. */
.post-body .post-pull-share{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;
	margin-block-start:.5rem;font-size:.84rem;font-weight:700;color:var(--ok);text-decoration:none}
.post-body .post-pull-share:hover{color:var(--ok);text-decoration:underline}
.post-pull-share svg{width:17px;height:17px}

/* --- TOC ------------------------------------------------------------------- */
.post-toc{margin-block:1.4rem}
.post-toc-d{background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);border-radius:var(--radius);padding:14px 18px}
.post-toc-d>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.5rem;
	min-height:44px;font-weight:700;color:var(--ink);font-size:.98rem}
.post-toc-d>summary::-webkit-details-marker{display:none}
/* Physical borders on purpose — an L of right+bottom rotated 45deg points DOWN in
   either writing direction; logical borders flip under RTL and point the wrong way. */
.post-toc-d>summary::after{content:"";margin-inline-start:auto;width:9px;height:9px;flex:0 0 auto;
	border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
	transform:rotate(45deg);margin-block-end:3px;transition:transform .2s}
.post-toc-d[open]>summary::after{transform:rotate(-135deg);margin-block:3px 0}
.post-toc-list{list-style:none;margin:.3rem 0 0;padding:0}
.post-toc-list a{display:block;min-height:44px;padding:.5rem .1rem;padding-inline-start:.7rem;
	font-size:.9rem;line-height:1.5;color:var(--body);border-inline-start:2px solid transparent}
.post-toc-list a:hover{color:var(--brand-700)}
.post-toc-list a.is-cur{color:var(--brand-700);font-weight:700;border-inline-start-color:var(--brand)}
.post-toc-l3 a{padding-inline-start:1.6rem;font-size:.86rem;color:var(--muted)}
.post-toc-desktop{display:none}

/* --- Share kit ------------------------------------------------------------- */
.post-share{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin-block:1.2rem}
.post-share-lbl{font-size:.84rem;font-weight:700;color:var(--muted);margin-inline-end:.15rem}
/* 44px is the target size the rest of this file enforces. Not .btn — that carries
   pill padding and white-space:nowrap. */
.post-share-b{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-sm);
	background:var(--card);border:1px solid var(--field-line);color:var(--body);
	transition:border-color .15s,color .15s,transform .12s}
.post-share-b:hover{border-color:var(--brand);color:var(--brand-700)}
.post-share-b:active{transform:scale(.94)}
/* Load-bearing: a <use> reference with no explicit size renders 0x0. */
.post-share-b svg{width:20px;height:20px}
/* [hidden] only sets display:none in the UA sheet, which any author `display` overrides — so
   the native-share button shipped visible and inert on every browser without navigator.share. */
.post-share-b[hidden]{display:none}
.post-share-whatsapp{background:#25d366;border-color:#25d366;color:#08331b}
.post-share-whatsapp:hover{background:#1fbb59;border-color:#1fbb59;color:#08331b}
.post-share-copy.is-done{border-color:var(--ok);color:var(--ok)}
.post-share--rail{display:none}

/* --- Trust, FAQ, sources, tags --------------------------------------------- */
.post-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-block:1.4rem}
.post-faq{margin-block:2rem}
.post-faq-i{margin-top:.7rem}
.post-faq-i>summary{cursor:pointer;font-weight:700;color:var(--ink);line-height:1.6;
	min-height:44px;display:flex;align-items:center}
.post-faq-i>p{color:var(--body);line-height:1.85;margin-top:.6rem}
.post-sources{margin-block:2rem}
.post-sources ol{padding-inline-start:1.3em;color:var(--body);line-height:1.9;font-size:.94rem}
.post-sources a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.2em}
.post-disclaimer{margin-block:1.6rem;padding:14px 16px;background:var(--bg);
	border:1px solid var(--line);border-radius:var(--radius-sm);
	color:var(--muted);font-size:.88rem;line-height:1.75}
.post-disclaimer strong{color:var(--ok)}

/* --- Author box + directory CTA -------------------------------------------- */
.post-author{display:flex;gap:16px;align-items:flex-start;margin-block:1.8rem;flex-wrap:wrap}
.post-author-ava{width:72px;height:72px;border-radius:var(--radius);object-fit:cover;
	background:var(--brand-50);flex:0 0 auto}
.post-author-body{flex:1;min-width:220px}
.post-author-role{color:var(--brand);font-weight:700;font-size:.8rem;margin-bottom:.15rem}
.post-author-name{font-size:1.12rem;margin-bottom:.2rem}
.post-author-name a{color:var(--ink)}
.post-author-name a:hover{color:var(--brand-700)}
.post-author-spec{color:var(--brand-700);font-weight:600;font-size:.92rem}
.post-author-bio{color:var(--body);font-size:.93rem;line-height:1.75;margin-top:.4rem}
/* align-items:center, not the default stretch: one unexpectedly tall child would
   otherwise stretch every sibling into a mismatched pill. */
.post-author-cta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.9rem}
.post-author-cta .btn svg,.post-cta .btn svg,.post-strip .btn svg{width:18px;height:18px}
.post-author-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:1.4rem}

.post-cta{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;
	margin-block:1.8rem;padding:22px 24px;border-radius:var(--radius-lg);
	background:linear-gradient(120deg,var(--brand-700),var(--brand));color:#fff}
.post-cta h3{color:#fff;font-size:1.16rem;margin-bottom:.3rem}
.post-cta p{color:rgba(255,255,255,.9);font-size:.95rem;line-height:1.7;max-width:52ch}
.post-cta .btn{background:#fff;color:var(--brand-700);border-color:#fff;font-weight:700}
.post-cta .btn:hover{background:var(--brand-50)}
/* The gradient is token-driven and INVERTS in dark mode (--brand-700 #5e4410 -> #c99a2c), so
   white-on-gradient drops to ~2:1. Flip the ink instead, the same way .qchip.is-on and
   .pager .page-numbers.current already do. */
:root[data-theme="dark"] .post-cta,:root[data-theme="dark"] .post-cta h3{color:var(--gold-ink)}
:root[data-theme="dark"] .post-cta p{color:rgba(36,26,6,.82)}
:root[data-theme="dark"] .post-cta .btn{background:var(--gold-ink);color:var(--gold);border-color:var(--gold-ink)}
:root[data-theme="dark"] .post-cta .btn:hover{background:#000;color:var(--gold)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .post-cta,
	:root:not([data-theme="light"]) .post-cta h3{color:var(--gold-ink)}
	:root:not([data-theme="light"]) .post-cta p{color:rgba(36,26,6,.82)}
	:root:not([data-theme="light"]) .post-cta .btn{background:var(--gold-ink);color:var(--gold);border-color:var(--gold-ink)}}

.post-strip,.post-related{margin-top:2.4rem}
.post-related .h-sec{margin-bottom:1.1rem}

/* --- Reading progress ------------------------------------------------------ */
.post-progress{position:fixed;inset-inline:0;top:var(--nav-h);height:3px;z-index:49;pointer-events:none}
/* width, not transform:scaleX — scaleX is physical and fills from the left under
   RTL. A block child of an RTL parent grows from the right for free. */
.post-progress>span{display:block;height:100%;width:0;background:var(--gold)}
@media (prefers-reduced-motion:reduce){.post-progress{display:none}}

/* --- Responsive ------------------------------------------------------------ */
@media (min-width:700px){
	.g-post{grid-template-columns:repeat(2,1fr)}
	.post-card--wide{flex-direction:row;align-items:stretch}
	.post-card--wide .post-card-media{flex:0 0 46%;aspect-ratio:auto}
	.post-card--wide .post-card-body{padding:22px 24px;justify-content:center}
}
@media (min-width:1024px){
	.post-cols{grid-template-columns:minmax(0,1fr) 320px}
	.post-cols--article{grid-template-columns:minmax(0,1fr) 300px}
	.g-post{grid-template-columns:repeat(2,1fr)}
	/* Full-width grids only. The hub grid sits beside a 320px aside inside a 1180px wrap, so a
	   third column there makes every card narrower, not the page wider. */
	.post-related .g-post,.post-strip .g-post{grid-template-columns:repeat(3,1fr)}
	/* Matches the .profile-cols>aside offset rather than hardcoding the nav height. */
	.post-sticky{position:sticky;top:calc(var(--nav-h) + 16px);
		max-height:calc(100dvh - var(--nav-h) - 32px);overflow-y:auto;overscroll-behavior:contain}
	.post-toc-desktop{display:block}
	.post-toc-mobile{display:none}
	/* On mobile the rail would eat ~56px of a 328px content box, and the bottom edge
	   is already contested by .botnav and .mobile-callbar. Desktop only. */
	.post-share--rail{display:flex;margin-top:1rem}
	.post-share--foot{display:none}
}

/* ============================================================================
   SHARE SHEET
   A native <dialog>, cloned from the filter panel above: focus trap, ::backdrop,
   Esc-to-close and background inerting come free, and `:root:has(dialog[open])`
   (already defined) locks scrolling with no JS. Appended last on purpose — this
   file is cascade-ordered, so `.shnet` never has to fight `.btn`.
   ========================================================================= */

/* Mobile call-bar opener. Deliberately NOT a .btn: `.mobile-callbar .btn{flex:1}`
   would hand it an equal third of the bar and squeeze the two conversion CTAs.
   Fixed 48px keeps Call and WhatsApp at ~128px each on a 360px screen. */
.callbar-share{flex:0 0 48px;width:48px;height:48px;display:inline-grid;place-items:center;
	border-radius:var(--radius-sm);background:var(--bg);border:1px solid var(--field-line);color:var(--body)}
.callbar-share:hover{border-color:var(--brand);color:var(--brand)}
.callbar-share:active{transform:scale(.94)}
.callbar-share svg{width:22px;height:22px}

.share-chip{gap:.4rem}
.share-chip svg{width:17px;height:17px}
.share-chip--hero{margin-top:.7rem}

.shsheet{border:0;padding:0;background:transparent;max-width:none;max-height:none;color:inherit}
.shsheet:not([open]){display:none}
.shsheet::backdrop{background:rgba(4,20,36,.55)}
.shsheet[open]{position:fixed;inset:auto 0 0 0;width:100%;max-height:88dvh;display:flex;
	flex-direction:column;background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;
	box-shadow:0 -12px 52px rgba(4,16,30,.34);animation:alex-sheet .24s cubic-bezier(.16,1,.3,1)}
@media (prefers-reduced-motion:reduce){.shsheet[open]{animation:none}}

.shsheet-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;
	padding:14px 18px;border-bottom:1px solid var(--line);flex:0 0 auto}
.shsheet-head h2{font-size:1.05rem}
/* `flex:1` is `flex-basis:0`, which contributes nothing to a content-sized flex
   container and collapses the sheet to its header. Same lesson as .filters-body. */
.shsheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
	padding:14px 18px calc(18px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.shsheet-sub{color:var(--muted);font-size:.9rem;margin-bottom:.9rem;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.shsheet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
@media (max-width:359px){.shsheet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.shnet{display:grid;place-items:center;align-content:center;gap:.35rem;min-height:78px;padding:.4rem;
	border-radius:var(--radius-sm);background:var(--card);border:1px solid var(--field-line);color:var(--body);
	font-size:.72rem;font-weight:700;text-align:center;line-height:1.2;cursor:pointer}
.shnet:hover{border-color:var(--brand);color:var(--brand)}
.shnet:active{transform:scale(.95)}
.shnet svg{width:26px;height:26px}
.shnet span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* [hidden] in the UA sheet is only `display:none` and loses to ANY author display —
   the native-share button shipped visible and inert once because of exactly this. */
.shnet[hidden]{display:none}
.shnet--whatsapp{background:#25d366;border-color:#25d366;color:#08331b}
.shnet--whatsapp:hover{background:#1fbb59;border-color:#1fbb59;color:#08331b}
.shnet--messenger{color:#0084ff}
.shnet--facebook{color:#1877f2}
.shnet--telegram{color:#2aabee}
.shnet--copy.is-done{border-color:var(--ok);color:var(--ok)}

.shsheet-url{display:block;margin-top:1rem}
.shsheet-url .inp{width:100%;font-size:.85rem}

/* Desktop only. The QR encoder is not even fetched below this breakpoint. */
.shsheet-qr{display:none;margin:1.1rem 0 0;text-align:center}
.shsheet-qr canvas{width:180px;height:180px;background:#fff;border-radius:var(--radius-sm);padding:8px;
	border:1px solid var(--line)}
.shsheet-qr figcaption{color:var(--muted);font-size:.8rem;margin-top:.5rem}

@media (min-width:1024px){
	.shsheet[open]{inset:0;margin:auto;max-width:440px;height:fit-content;max-height:86dvh;
		border-radius:var(--radius-lg);animation:none}
	.shsheet-qr{display:block}
}

/* The doctor-page rail sits inside .aside-sticky and is desktop-only, like the
   article rail — on mobile the sheet opener in the call bar covers this job. */
.post-share--doc{display:none}
@media (min-width:1024px){
	.post-share--doc{display:flex;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
}

/* No-JS fallback, mirroring the filter panel's :target rule. `display` needs
   !important to beat the UA's `dialog:not([open]){display:none}`. */
.shsheet:target{display:flex!important;position:fixed;inset:auto 0 0 0;width:100%;max-height:88dvh;
	flex-direction:column;background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;
	box-shadow:0 -12px 52px rgba(4,16,30,.34);z-index:90;margin:0;max-width:none;padding:0}
/* showModal()'s ::backdrop does not apply to a :target-opened dialog. */
.shsheet:target::before{content:"";position:fixed;inset:0;background:rgba(4,20,36,.55);z-index:-1}
@media (min-width:1024px){
	.shsheet:target{inset:0;margin:auto;max-width:440px;height:fit-content;border-radius:var(--radius-lg)}
}

/* ============================================================================
   SHARED UTILITIES
   Appended last, like every block above: this file is cascade-ordered.
   ========================================================================= */

/* Muted small print that still has to be navigable. Reusable on purpose — the doctor page's
   trust note and the reviews-moderation-policy line are the same thing and must look the same.
   The links carry a colour AND an underline: at .82rem in --muted, colour alone is not a
   sufficient affordance, and these are the E-E-A-T trail Google is asked to follow. */
.trust-note{color:var(--muted);font-size:.82rem;line-height:1.7}
.trust-note a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.2em}
.trust-note a:hover{color:var(--brand);text-decoration-thickness:2px}

/* Skip link. Clipped rather than offset — a physical `left:-9999px` in a dir="rtl" document is
   real scrollable overflow and can throw the viewport sideways (see .alex-hp for the full
   story). :focus, not :focus-visible: the only way to reach it is the keyboard.
   --gold/--gold-ink rather than --brand/#fff so it stays legible in both themes with no twin. */
/* The footer accordion trigger. `all:unset` because it lives INSIDE the h5 and must inherit
   its typography — a UA-styled button renders as a boxed control mid-heading — and the flex
   bits make it fill the heading's own 52px tap row rather than sitting inside it. */
.foot-acc{all:unset;flex:1 1 auto;align-self:stretch;display:flex;align-items:center;cursor:pointer}
.foot-acc:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:6px}
.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
	clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;inset-block-start:10px;inset-inline-start:10px;z-index:100;
	width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal;
	display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1.15rem;
	background:var(--gold);color:var(--gold-ink);font-weight:700;font-size:.95rem;
	border-radius:999px;box-shadow:var(--shadow-md)}

/* Form feedback states. These exist so the JS can toggle a class instead of writing an inline
   hex — an inline #b91c1c does not follow the theme and cannot be overridden. */
.is-err{color:var(--warn)}
.is-ok{color:var(--ok)}
/* .cr-panel on the checkout-return page reuses .is-ok/.is-wait as BORDER tones on a whole panel.
   Restore its inherited ink so the bare state rules above cannot repaint that panel's body text. */
.cr-panel.is-ok,.cr-panel.is-wait,.cr-panel.is-bad,.cr-panel.is-muted{color:var(--body)}

/* The clinic-name heading is a link; it had no hover affordance at all. */
.branch-h a:hover{color:var(--brand-700)}

/* ==========================================================================
   NOTICE STRIP  (Alex\Notices\Notices::render)
   One admin-controlled announcement between the header and <main>. Deliberately NOT sticky —
   .nav above it already is, and archive-doctors has a sticky search bar of its own.
   ========================================================================== */
/* `--gtone` is the strip's accent and `--gtone-ink` the text that sits ON that accent. Both are
   real variables because the CTA used to say `background:currentColor;color:#fff` on one element:
   currentColor resolves against that element's OWN color, so the white it had just been given
   became its background too, and the button rendered white on white in every tone. */
.gnotice{border-block-end:1px solid var(--line);background:var(--bg);color:var(--body);
	--gtone:var(--brand-700);--gtone-ink:#fff}
.gnotice-in{max-width:var(--wrap,1180px);margin-inline:auto;padding:.6rem 1rem;
	display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:.9rem;line-height:1.6}
.gnotice-txt{margin:0;flex:1 1 260px;min-width:0}
.gnotice-cta{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:0 .9rem;
	border-radius:999px;font-weight:700;font-size:.84rem;text-decoration:none;
	background:var(--gtone);color:var(--gtone-ink);box-shadow:0 1px 2px rgba(8,30,55,.14)}
.gnotice-cta:hover{filter:brightness(1.08)}
.gnotice-x{flex:0 0 auto;background:none;border:0;cursor:pointer;font-size:1.35rem;line-height:1;
	color:inherit;opacity:.55;min-width:44px;min-height:44px;padding:0}
.gnotice-x:hover{opacity:1}
/* Tone sets both the strip's text colour and the CTA's fill, from the same accent. */
.gnotice--info{background:var(--brand-50);color:var(--brand-700);border-block-end-color:var(--brand-100)}
.gnotice--warn{background:var(--warn-bg);color:var(--warn);--gtone:var(--warn)}
.gnotice--danger{background:#fdeaea;color:#b91c1c;--gtone:#b91c1c}
.gnotice--ok{background:var(--ok-bg);color:var(--ok);--gtone:var(--ok)}
/* var(--card), not #fff: in dark mode a literal white stop put gold text on a white half-strip. */
.gnotice--promo{background:linear-gradient(90deg,var(--brand-50),var(--card));color:var(--brand-700);
	border-block-end-color:var(--brand-100)}
/* Dark theme lightens every accent (gold, orange, mint), so white-on-accent inverts to dark-on-
   accent. `--danger` keeps its light-pink strip and deep-red fill in both themes, so it opts out. */
:root[data-theme="dark"] .gnotice{--gtone-ink:#141c24}
:root[data-theme="dark"] .gnotice--danger{--gtone-ink:#fff}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .gnotice{--gtone-ink:#141c24}
	:root:not([data-theme="light"]) .gnotice--danger{--gtone-ink:#fff}
}
@media(max-width:600px){.gnotice-in{padding:.55rem .8rem;font-size:.85rem}}

/* `.results-nofilters` was the escape hatch for a zero-result listing back when the panel was a
   272px side RAIL and an empty page had to collapse the two-column grid. The panel is a
   full-width band above the grid now (`.ax-sheet` at 1024px up), so the results column is
   already full width whether or not there is anything to refine, and nothing renders the class. */

/* --- Directory hubs: /areas, /areas/{gov}, /specialties -------------------- */
/* The browse surface that replaced the home page's #specialties fragment. Card grid so a
   governorate with 14 areas and one with 2 sit on the same row without stretching. */
.sec-hub{padding-top:22px}
.hub-head{margin-bottom:1.4rem}
.hub-lede{color:var(--body);font-size:.98rem;line-height:1.8;margin-top:.5rem;max-width:70ch}
.hub-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:760px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1240px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hub-card,.hub-area{background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius);
	padding:clamp(16px,3vw,22px)}
.hub-area{margin-bottom:14px}
.hub-area-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .7rem;margin-bottom:.7rem}
.hub-area-h{font-size:1.05rem;font-weight:700;margin:0;min-width:0}
.hub-area-h a{color:var(--ink)}
.hub-area-h a:hover{color:var(--brand-700);text-decoration:underline}
.hub-n{font-size:.82rem;color:var(--muted);white-space:nowrap}
.hub-chips{gap:.4rem}
/* `.hub-sub-label` (a small caps-less sub-heading inside a hub card) is gone — the hub
   templates label their sub-groups with `.search-gov-l`, which says the same thing. */
/* A chip for a place we can name but cannot yet fill. Reads as available-but-quiet rather than
   disabled: it is a live link, it just leads to the nearby-area recovery instead of a listing. */
.chip-quiet{opacity:.72}
.hub-more{display:inline-flex;align-items:center;gap:.35rem;margin-top:.9rem;font-size:.88rem;
	font-weight:700;color:var(--brand-700)}
.hub-more:hover{text-decoration:underline}
.hub-more-arrow{width:15px;height:15px}
html[dir="ltr"] .hub-more-arrow{transform:scaleX(-1)}
.hub-note{color:var(--muted);font-size:.88rem;line-height:1.7;margin-bottom:.6rem}
/* --card-line is TRANSPARENT in light mode (cards here are borderless), so `border-style:dashed`
   alone drew a dashed nothing — the one visual cue that separates a placeholder area block from
   a real one. The dashed edge names its own colour, and drops the shadow, because a shadow is
   what says "this is a real card". */
.hub-area-thin{background:transparent;border-style:dashed;border-color:var(--field-line);box-shadow:none}
.hub-empty{color:var(--muted);padding:2rem 0}
.hub-back{margin-top:1.4rem}

/* --- /specialties: place first, specialty second, sub-specialty third ------- */
/* The jump bar. Not sticky on purpose: a second pinned strip under a sticky header eats ~110px
   of a 640px-tall phone, and the list it links to is three items long. */
.spec-jump{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .7rem;margin-bottom:1.2rem;
	padding:.8rem 1rem;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);border-radius:var(--radius)}
.spec-jump-l{font-size:.82rem;font-weight:700;color:var(--muted);white-space:nowrap}
.spec-jump-c{margin-top:0}
/* scroll-margin, not scroll-padding on the root: the header is sticky, so a fragment target
   would otherwise land underneath it. Matches --nav-h plus the section's own breathing room. */
.spec-gov{scroll-margin-top:calc(var(--nav-h) + 14px)}
.spec-gov + .spec-gov{margin-top:14px}
.spec-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:560px){.spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1180px){.spec-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The specialty block sits INSIDE a .hub-area card, so it is deliberately flatter than one —
   a bordered card inside a bordered card reads as a bug. A tinted panel is enough separation. */
.spec-block{background:var(--bg);border:1px solid var(--line-2);border-radius:var(--radius-sm);
	padding:.85rem .95rem 1rem;min-width:0}
:root[data-theme="dark"] .spec-block{background:var(--line-2);border-color:var(--line)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .spec-block{background:var(--line-2);border-color:var(--line)}}
.spec-block-h{font-size:.98rem;font-weight:700;margin:0;min-width:0}
.spec-block-h a{display:flex;align-items:baseline;gap:.45rem;color:var(--ink);min-width:0}
.spec-block-h a:hover .spec-block-name{color:var(--brand-700);text-decoration:underline}
.spec-block-name{min-width:0;overflow-wrap:anywhere}
.spec-block-n{flex:none;font-size:.72rem;font-weight:700;color:var(--brand-700);background:var(--brand-50);
	border:1px solid var(--brand-100);border-radius:999px;padding:.05rem .45rem;line-height:1.5}
.spec-sub-l{font-size:.74rem;font-weight:700;color:var(--muted);margin:.7rem 0 .3rem;letter-spacing:0}
.spec-block .chips{margin-top:0}
.spec-block .chip{font-size:.83rem;padding:.34rem .78rem}
.spec-all .chip{font-size:.88rem}
/* A sub-specialty is a real destination with real doctors, so it must NOT borrow .chip-quiet —
   that class means "we can name this place but cannot fill it" and dims to .55 opacity, which
   is both the wrong meaning and the wrong contrast. Secondary by hue and weight instead. */
.chip-sub{background:transparent;border-style:dashed;color:var(--muted);font-weight:600}
.chip-sub:hover{background:var(--brand-50);border-style:solid}
/* Touch: a chip cloud is the densest tap surface on the site. Coarse pointers get a taller
   box and a wider gap so neighbouring chips are not one continuous mis-tap zone. */
@media (pointer:coarse){
	.spec-block .chip,.spec-all .chip,.spec-jump .chip{min-height:38px;display:inline-flex;align-items:center}
	.spec-block .chips,.spec-all .chips,.spec-jump-c{gap:.5rem}
}

/* --- Contact reveal panel --------------------------------------------------- */
/* One row per number: the digits, the action, and a copy control. The digits are the point —
   a patient has to be able to read the number back, write it down, or paste it, none of which
   a bare "Call" button whose number lives in the href allows. */
.contact-reveal-wrap{flex-wrap:wrap}
.alex-reveal{gap:.45rem}
.alex-reveal-slot{display:none;width:100%}
.alex-reveal-slot.is-open{display:grid;gap:.5rem;margin-top:.2rem}
.rv-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.5rem .65rem}
.rv-num{font-weight:700;font-size:1.02rem;letter-spacing:.02em;color:var(--ink);
	/* Selectable on purpose: copying by hand must work even if the copy button fails. */
	user-select:all;-webkit-user-select:all;min-width:9.5ch}
.rv-row .btn{margin-inline-start:auto}
.rv-copy{border:1px solid var(--field-line);background:transparent;color:var(--muted);
	border-radius:999px;font:inherit;font-size:.8rem;font-weight:700;
	min-height:38px;min-width:44px;padding:0 .6rem;cursor:pointer}
.rv-copy:hover{border-color:var(--brand);color:var(--brand-700)}
.rv-copy.is-ok{color:var(--ok);border-color:var(--ok)}
.rv-copy:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Under 380px the three controls stop fitting on one line; the number keeps its own row. */
@media (max-width:400px){
	.rv-num{flex:1 0 100%}
	.rv-row .btn{margin-inline-start:0;flex:1}
}
.contact-noscript{margin-top:.5rem}

/* --- "Is this your data?" notice + request page ---------------------------- */
/* The amber panel on an unclaimed profile. Amber, not brand gold: it is an advisory aimed at
   ONE reader (the doctor whose details these are) on a page whose every other element is aimed
   at patients, and it has to be separable from the brand at a glance. */
.own-note{margin-top:14px;background:#fff8e6;border:1px solid #f0d795;border-inline-start:4px solid #d99e0b}
.own-h{display:flex;align-items:center;gap:.4rem;font-weight:700;color:#7a5806;margin:0 0 .4rem}
.own-h svg{width:18px;height:18px;flex:none}
.own-b{color:#6b5312;font-size:.9rem;line-height:1.75;margin:0}
.own-acts{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
:root[data-theme="dark"] .own-note{background:#2b2310;border-color:#5a4712;border-inline-start-color:#d0a02c}
:root[data-theme="dark"] .own-h{color:#f0d18a}
:root[data-theme="dark"] .own-b{color:#d8c79a}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .own-note{background:#2b2310;border-color:#5a4712;border-inline-start-color:#d0a02c}
	:root:not([data-theme="light"]) .own-h{color:#f0d18a}
	:root:not([data-theme="light"]) .own-b{color:#d8c79a}
}
/* Notice under the callback form. Reuses .pause-note's colours; only spacing differs. */
.cb-notice{margin-top:.8rem;font-size:.82rem;line-height:1.7}

/* The request form's intent picker: three big tap targets, not a <select>. Which of "claim",
   "correct" and "remove" you are asking for is the most consequential field on the page, so it
   is the one thing that is never hidden inside a dropdown. */
.rq-types{border:0;padding:0;margin:0}
.rq-types legend{padding:0;margin-bottom:.6rem}
.rq-type{display:flex;gap:.7rem;align-items:flex-start;padding:.95rem 1.1rem;margin-bottom:.5rem;
	border:1px solid var(--field-line);border-radius:var(--radius-sm);background:var(--card);cursor:pointer}
.rq-type:hover{border-color:var(--brand)}
.rq-type input{margin-top:.25rem;flex:none;width:18px;height:18px;accent-color:var(--brand)}
.rq-type input:disabled{cursor:not-allowed}
.rq-type:has(input:disabled){opacity:.6;cursor:not-allowed}
.rq-type:has(input:checked){border-color:var(--brand);background:var(--brand-50);box-shadow:0 0 0 1px var(--brand)}
.rq-type:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.rq-type span{display:block;min-width:0}
.rq-type strong{display:block;font-size:.96rem;color:var(--ink)}
.rq-type em{display:block;font-style:normal;font-size:.85rem;color:var(--muted);line-height:1.65;margin-top:.2rem}
.rq-msg:empty{display:none}

/* --- Branch page ----------------------------------------------------------- */
/* Back-to-doctor: the first control under the trail, because a breadcrumb is a location
   indicator that many readers never treat as navigation. */
.branch-back{display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:700;
	color:var(--brand-700);margin-top:.2rem}
.branch-back:hover{text-decoration:underline}
.branch-back-arrow{width:16px;height:16px}
html[dir="ltr"] .branch-back-arrow{transform:scaleX(-1)}
.branch-lede{color:var(--body);font-size:.95rem;line-height:1.8;margin:.5rem 0 0;max-width:66ch}
/* The doctor card. The clinic is the address; the doctor is the reason anyone is going. */
.branch-doc{display:flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.7rem .85rem;
	border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}
.branch-doc:hover{border-color:var(--brand)}
.branch-doc-ava{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;
	border:2px solid var(--card);box-shadow:var(--shadow-sm)}
.branch-doc-t{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.branch-doc-t strong{color:var(--ink);font-size:1rem}
.branch-doc-t em{font-style:normal;color:var(--muted);font-size:.85rem}
.branch-doc-go{color:var(--brand-700);font-size:.82rem;font-weight:700;margin-top:.15rem}
.branch-addr{display:flex;align-items:flex-start;gap:.4rem;margin-top:.9rem;color:var(--body);font-size:.92rem;line-height:1.7}
.branch-addr svg{width:18px;height:18px;flex:none;margin-top:.15rem;color:var(--brand-700)}
.branch-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.8rem}
.branch-chips .chip{cursor:default}
.branch-chips .chip svg{width:14px;height:14px;vertical-align:-2px}
/* Sibling locations — what turns a multi-branch doctor's pages into a cluster instead of a set
   of orphans reachable only from one profile. */
.branch-sibs{display:grid;gap:.5rem}
.branch-sib{display:flex;flex-direction:column;gap:.15rem;padding:.7rem .85rem;
	border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card)}
.branch-sib:hover{border-color:var(--brand)}
.branch-sib strong{color:var(--ink);font-size:.95rem}
.branch-sib span{color:var(--muted);font-size:.85rem}
.branch-sib-st{font-weight:700;font-size:.8rem;color:var(--muted)}
.branch-sib-st.is-open{color:var(--ok)}
.hr-sep{color:var(--muted)}

/* ============================================================================
   PHOTO LIGHTBOX
   Clinic photos used to be plain links to the image file: tapping one dumped the
   visitor on a bare JPEG in a new tab with no way back into the profile except
   the browser's own chrome. Now the tile opens a native <dialog> viewer.

   <dialog> + showModal() again: focus trap, ::backdrop, Escape, background
   inerting and the TOP LAYER — which is the part that matters here, because the
   viewer is opened from inside .panel and has to escape the sticky nav and the
   fixed mobile call bar without entering a z-index race with either.
   ========================================================================= */

/* --- The grid tile ------------------------------------------------------- */
.gallery-item{position:relative;display:block;border-radius:var(--radius-xs);overflow:hidden;
	/* The tile is the click target, so it gets the affordance: a photo that does
	   nothing on tap and a photo that opens a viewer must not look identical. */
	cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}
.gallery-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.gallery-item:active{transform:none}
.gallery-item:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.gallery-zoom{position:absolute;inset-block-end:6px;inset-inline-end:6px;width:28px;height:28px;
	display:grid;place-items:center;border-radius:var(--radius-xs);background:rgba(4,20,36,.6);color:#fff;
	opacity:0;transform:scale(.9);transition:opacity .18s ease,transform .18s ease;
	backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.gallery-zoom svg{width:16px;height:16px}
.gallery-item:hover .gallery-zoom,.gallery-item:focus-visible .gallery-zoom{opacity:1;transform:none}
/* Hover never fires on touch, so the badge would be invisible on the devices that
   most need the hint. Show it permanently where there is no hover. */
@media (hover:none){.gallery-zoom{opacity:1;transform:none}}

/* --- The viewer ---------------------------------------------------------- */
/* Deliberately NOT themed with --card/--ink: a photo viewer is a dark room in both
   colour schemes, the same way every gallery the user compared this to behaves. */
.lb{border:0;padding:0;margin:0;max-width:none;max-height:none;width:100%;height:100%;
	background:transparent;color:#fff;overflow:hidden}
.lb:not([open]){display:none}
.lb::backdrop{background:rgba(9,15,21,.92);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.lb[open]{position:fixed;inset:0;display:grid;
	/* Rows, not absolute positioning: the image box shrinks by exactly the height of
	   the chrome above and below it, so a tall photo can never slide under either. */
	grid-template-rows:auto 1fr auto;animation:alex-lb-in .22s ease-out}
@keyframes alex-lb-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.lb[open]{animation:none}}

.lb-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;
	padding:calc(10px + env(safe-area-inset-top)) 12px 6px;
	/* Above the stage in paint order so the close button stays clickable over a photo
	   that fills the row it sits in. */
	position:relative;z-index:2}
.lb-count{font-size:.85rem;font-weight:700;color:rgba(255,255,255,.72);
	padding:.25rem .6rem;border-radius:999px;background:rgba(255,255,255,.1)}

.lb-btn{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;
	background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
	transition:background .15s ease,transform .15s ease;-webkit-tap-highlight-color:transparent}
.lb-btn:hover{background:rgba(255,255,255,.24)}
.lb-btn:active{transform:scale(.92)}
.lb-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.lb-btn svg{width:22px;height:22px}
.lb-btn[disabled]{opacity:.28;cursor:default;pointer-events:none}

.lb-stage{position:relative;display:grid;place-items:center;min-height:0;padding:4px 12px;
	/* It carries autofocus so the close button does not, so it must not paint a ring. */
	outline:none;
	/* The browser must not treat a horizontal drag as a scroll gesture — that is the
	   swipe the viewer reads to move between photos. */
	touch-action:pan-y;overflow:hidden}
.lb-img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
	border-radius:var(--radius-sm);box-shadow:0 24px 60px rgba(0,0,0,.5);background:rgba(255,255,255,.04);
	cursor:default;transition:opacity .18s ease,transform .18s ease}
.lb.is-loading .lb-img{opacity:.35}
/* Swipe feedback: JS sets --lb-dx while a finger is down, and drops the class on release. */
.lb.is-drag .lb-img{transition:none;transform:translateX(var(--lb-dx,0))}
.lb-spin{position:absolute;width:34px;height:34px;border-radius:50%;
	border:3px solid rgba(255,255,255,.25);border-top-color:#fff;opacity:0;
	animation:alex-spin .8s linear infinite}
.lb.is-loading .lb-spin{opacity:1}
@media (prefers-reduced-motion:reduce){.lb-spin{animation-duration:2s}}

/* Edge arrows. Centred on the STAGE row, not the viewport, so they never collide
   with the caption or the close button. */
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2}
.lb-nav:active{transform:translateY(-50%) scale(.92)}
.lb-prev{inset-inline-start:8px}
.lb-next{inset-inline-end:8px}
/* The chevrons are drawn pointing left/right; in RTL "previous" is on the right, so
   both glyphs mirror. scaleX on the SVG only — mirroring the button would flip the
   focus ring offset with it. */
[dir="rtl"] .lb-nav svg{transform:scaleX(-1)}

.lb-foot{padding:6px 12px calc(12px + env(safe-area-inset-bottom));position:relative;z-index:2}
.lb-cap{margin:0 auto;max-width:70ch;text-align:center;font-size:.9rem;line-height:1.6;
	color:rgba(255,255,255,.82);
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lb-cap:empty{display:none}

/* Thumbnail strip: reuses the srcset the grid already downloaded, so it costs no
   extra requests. Hidden on small screens where it would eat the photo's height. */
.lb-thumbs{display:none;gap:.4rem;justify-content:center;margin-top:.7rem;
	overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.lb-thumbs::-webkit-scrollbar{display:none}
.lb-thumb{flex:0 0 auto;width:58px;height:44px;padding:0;border:2px solid transparent;
	border-radius:var(--radius-xs);overflow:hidden;background:none;cursor:pointer;opacity:.5;
	transition:opacity .15s ease,border-color .15s ease}
.lb-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lb-thumb:hover{opacity:.85}
.lb-thumb.is-cur{opacity:1;border-color:#fff}
.lb-thumb:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (min-width:640px){
	.lb-thumbs{display:flex}
	.lb-stage{padding:6px 60px}
	.lb-prev{inset-inline-start:16px}
	.lb-next{inset-inline-end:16px}
	.lb-top{padding-top:14px;padding-inline:18px}
}
/* A single photo has nothing to page through — the arrows, counter and strip all go. */
.lb.is-single .lb-nav,.lb.is-single .lb-count,.lb.is-single .lb-thumbs{display:none}

/* ============================================================================
   PWA — install bar, iOS instruction sheet, offline page, app landing page.

   The bar is `position:fixed`, i.e. entirely out of flow, so it contributes
   ZERO layout shift no matter when the script injects it. That is not a style
   preference: Core Web Vitals is the one page-experience input that actually
   feeds ranking, and an install promo that shifts the page would trade a
   ranking signal for an install. It is also capped well under a "small
   fraction of the screen" so it cannot read as an intrusive interstitial.
   ========================================================================= */
.alex-pwa-bar{
	position:fixed;z-index:70;inset-inline:12px;
	/* Clears the mobile bottom nav and the home indicator, so it never sits on
	   top of the site's primary navigation. */
	bottom:calc(var(--botnav-h, 66px) + 12px + env(safe-area-inset-bottom));
	display:flex;align-items:center;gap:12px;
	max-width:520px;margin-inline:auto;padding:12px 14px;
	background:var(--card, #FFFFFF);color:var(--ink, #0E1B2A);
	border:1px solid var(--line, #DEE7F0);border-radius:var(--radius);
	box-shadow:0 12px 40px rgba(8,30,55,.20);
	transform:translateY(140%);opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .32s ease}
.alex-pwa-bar.is-in{transform:translateY(0);opacity:1}
.alex-pwa-ico{flex:none;width:40px;height:40px;border-radius:var(--radius-xs)}
.alex-pwa-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.alex-pwa-txt strong{font-size:.95rem;line-height:1.3}
.alex-pwa-txt span{font-size:.8rem;color:var(--muted, #5A6D80);line-height:1.35}
.alex-pwa-act{flex:none;display:flex;align-items:center;gap:6px}
/* 44px floor on both controls — this is thumb-reach content at the bottom edge. */
.alex-pwa-act button{min-height:44px;padding:0 18px;border-radius:999px;font:inherit;font-weight:700;font-size:.85rem;cursor:pointer;border:1px solid transparent}
.alex-pwa-no{background:transparent;color:var(--muted, #5A6D80)}
.alex-pwa-no:hover{color:var(--ink, #0E1B2A)}
.alex-pwa-yes{background:var(--gold, #2E9BD6);color:var(--gold-ink, #04202F)}
.alex-pwa-yes:hover{filter:brightness(1.06)}
@media (min-width:900px){
	/* No bottom nav on desktop, so the bar sits on the edge itself. */
	.alex-pwa-bar{bottom:18px;inset-inline-start:auto;inset-inline-end:18px;margin-inline:0}
}
@media (max-width:400px){
	/* Below ~400px the two buttons and the copy cannot share a row without the
	   text truncating to nothing. Stack instead of shrinking the tap targets. */
	.alex-pwa-bar{flex-wrap:wrap}
	.alex-pwa-act{width:100%;justify-content:flex-end}
}
@media (prefers-reduced-motion:reduce){
	.alex-pwa-bar{transition:none;transform:none;opacity:1}
}

.alex-pwa-sheet{border:0;border-radius:var(--radius-lg);padding:24px;max-width:400px;width:calc(100% - 32px);
	background:var(--card, #FFFFFF);color:var(--ink, #0E1B2A);box-shadow:0 26px 66px rgba(8,30,55,.34);
	/* The top layer does not inherit the document's inline centring, and `left/right:auto`
	   is what keeps a `dir=rtl` dialog centred rather than pinned to one edge. */
	margin:auto;inset-inline:auto}
.alex-pwa-sheet::backdrop{background:rgba(4,20,36,.6)}
.alex-pwa-sheet h2{font-size:1.05rem;margin:0 0 12px}
.alex-pwa-sheet ol{margin:0 0 18px;padding-inline-start:1.2em;display:flex;flex-direction:column;gap:10px}
.alex-pwa-sheet li{font-size:.9rem;line-height:1.5;color:var(--muted, #5A6D80)}
.alex-pwa-close{width:100%;min-height:46px;border:0;border-radius:999px;background:var(--gold, #2E9BD6);color:var(--gold-ink, #04202F);font:inherit;font-weight:700;cursor:pointer}

.alex-pwa-toast{position:fixed;z-index:80;inset-inline:16px;bottom:calc(var(--botnav-h, 66px) + 16px + env(safe-area-inset-bottom));
	max-width:420px;margin-inline:auto;padding:12px 16px;border-radius:var(--radius-sm);
	background:var(--ink, #0E1B2A);color:#fff;font-size:.87rem;line-height:1.4;box-shadow:0 12px 34px rgba(8,30,55,.30)}

/* --- offline fallback ---------------------------------------------------- */
.alex-offline{display:flex;justify-content:center;padding-block:56px 72px}
.alex-offline-box{max-width:46ch;text-align:center;color:var(--muted, #5A6D80)}
.alex-offline-box svg{color:var(--gold, #2E9BD6);margin-bottom:14px}
.alex-offline h1{font-size:clamp(1.4rem,4vw,1.85rem);color:var(--ink, #0E1B2A);margin-bottom:12px}
.alex-offline-lead{font-size:1rem;line-height:1.7}
.alex-offline-note{margin-top:10px;font-size:.88rem;opacity:.85}
.alex-offline-act{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}
.alex-offline-emg{margin-top:26px;padding-top:18px;border-top:1px solid var(--line, #DEE7F0);font-size:.87rem}
.alex-offline-emg a{font-weight:700;color:var(--ink, #0E1B2A);text-decoration:underline}

/* --- app landing page ---------------------------------------------------- */
.alex-app{padding-block:40px 64px}
.alex-app-hd{text-align:center;max-width:56ch;margin-inline:auto}
.alex-app-icon{width:96px;height:96px;border-radius:var(--radius);box-shadow:0 14px 36px rgba(8,30,55,.18)}
.alex-app h1{font-size:clamp(1.6rem,5vw,2.4rem);margin:18px 0 12px}
.alex-app-lead{font-size:1.02rem;line-height:1.75;color:var(--muted, #5A6D80)}
.alex-app-cta{margin-top:24px}
.alex-app-free{margin-top:12px;font-size:.85rem;color:var(--muted, #5A6D80)}
.alex-app-feat{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
.alex-app-feat li{padding:22px;border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius);background:var(--card, #FFFFFF)}
.alex-app-feat svg{color:var(--gold, #2E9BD6);width:24px;height:24px}
.alex-app-feat h3{font-size:1rem;margin:10px 0 6px}
.alex-app-feat p{font-size:.9rem;line-height:1.65;color:var(--muted, #5A6D80)}
.alex-app-how{display:grid;gap:16px;grid-template-columns:1fr;margin-top:20px}
.alex-app-plat{padding:22px;border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius);background:var(--card)}
.alex-app-plat h3{font-size:.98rem;margin-bottom:12px}
.alex-app-plat ol{margin:0;padding-inline-start:1.25em;display:flex;flex-direction:column;gap:9px}
.alex-app-plat li{font-size:.88rem;line-height:1.6;color:var(--muted, #5A6D80)}
.alex-app-foot{margin-top:30px;text-align:center;font-size:.87rem;line-height:1.7;color:var(--muted, #5A6D80);max-width:60ch;margin-inline:auto}
@media (min-width:760px){
	.alex-app-feat{grid-template-columns:repeat(2,minmax(0,1fr))}
	.alex-app-how{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* An installed app does not need to be told how to install itself. */
.alex-standalone .alex-app-cta,.alex-standalone [data-alex-install]{display:none}

/* ============================================================================
   Consent banner.

   Non-modal, docked to the bottom, `position:fixed` so it is out of flow and
   contributes zero layout shift. It never covers the page: `max-height` plus
   internal scrolling means even the expanded preferences panel cannot grow to
   obscure the content behind it, which is what separates a compliant notice
   from the "pop-up that obscures the main content" Google's rater guidelines
   list as a Lowest-quality signal.
   ========================================================================= */
.alex-cc{position:fixed;z-index:90;inset-inline:0;bottom:0;
	background:var(--card, #FFFFFF);color:var(--ink, #0E1B2A);
	border-top:1px solid var(--line, #DEE7F0);
	box-shadow:0 -10px 40px rgba(8,30,55,.18);
	transform:translateY(100%);transition:transform .34s cubic-bezier(.2,.8,.2,1)}
.alex-cc.is-in{transform:translateY(0)}
.alex-cc[hidden]{display:none}
.alex-cc-in{max-width:940px;margin-inline:auto;padding:14px 16px calc(14px + env(safe-area-inset-bottom));
	max-height:min(66vh, 520px);overflow-y:auto;overscroll-behavior:contain}
.alex-cc-t{font-size:.98rem;margin:0 0 6px}
.alex-cc-d{font-size:.84rem;line-height:1.55;color:var(--muted, #5A6D80);margin:0 0 8px;max-width:78ch}
.alex-cc-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.8rem;margin:0 0 12px}
.alex-cc-links a{color:var(--brand, #134A8E);text-decoration:underline}

/* The two primary buttons are identical in every visual dimension. This rule is
   the compliance requirement, not a style choice: a reject styled weaker than
   accept is the single most-cited deceptive pattern in DPA enforcement. Keep
   them the same width, weight, height and contrast. */
.alex-cc-act{display:flex;flex-wrap:wrap;gap:10px}
.alex-cc-b{flex:1 1 140px;min-height:48px;padding:0 22px;border-radius:999px;
	font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;
	border:1px solid var(--ink, #0E1B2A);background:transparent;color:var(--ink, #0E1B2A);
	transition:background-color .18s ease,color .18s ease}
.alex-cc-b:hover{background:var(--ink, #0E1B2A);color:var(--card, #FFFFFF)}
.alex-cc-b:focus-visible{outline:2px solid var(--brand, #134A8E);outline-offset:2px}
.alex-cc-more{margin:10px 0 0}
.alex-cc-link{background:none;border:0;padding:6px 2px;min-height:44px;font:inherit;font-size:.85rem;
	color:var(--brand, #134A8E);text-decoration:underline;cursor:pointer}
.alex-cc-prefs{margin-top:16px;padding-top:14px;border-top:1px solid var(--line, #DEE7F0);
	display:flex;flex-direction:column;gap:14px}
.alex-cc-prefs[hidden]{display:none}
.alex-cc-row p{font-size:.83rem;line-height:1.6;color:var(--muted, #5A6D80);margin:4px 0 0;max-width:74ch}
.alex-cc-row-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.alex-cc-always{font-size:.78rem;color:var(--muted, #5A6D80);font-weight:600}
.alex-cc-sw{position:relative;display:inline-flex;align-items:center;cursor:pointer;flex:none}
.alex-cc-sw input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.alex-cc-sw-t{width:46px;height:28px;border-radius:999px;background:var(--line, #DEE7F0);
	position:relative;transition:background-color .2s ease}
.alex-cc-sw-t::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;
	border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s ease}
.alex-cc-sw input:checked + .alex-cc-sw-t{background:var(--gold, #2E9BD6)}
/* Logical translate, so the knob travels toward the inline end in both directions. */
.alex-cc-sw input:checked + .alex-cc-sw-t::after{transform:translateX(18px)}
[dir="rtl"] .alex-cc-sw input:checked + .alex-cc-sw-t::after{transform:translateX(-18px)}
.alex-cc-sw input:focus-visible + .alex-cc-sw-t{outline:2px solid var(--brand, #134A8E);outline-offset:2px}
.alex-cc-act-2 .alex-cc-b{flex:0 1 240px;background:var(--gold, #2E9BD6);border-color:var(--gold, #2E9BD6);color:var(--gold-ink, #04202F)}
.alex-cc-act-2 .alex-cc-b:hover{filter:brightness(1.06);background:var(--gold, #2E9BD6);color:var(--gold-ink, #04202F)}
.alex-cc-reopen{min-height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--field-line, #6C849F);
	background:transparent;color:inherit;font:inherit;font-weight:600;font-size:.87rem;cursor:pointer}
.alex-cc-table td code{font-size:.82em;word-break:break-word}
@media (min-width:700px){
	.alex-cc-act{max-width:420px}
}
@media (prefers-reduced-motion:reduce){
	.alex-cc{transition:none}
}
/* While a consent choice is outstanding the bottom nav gets out of the way — two
   stacked fixed bars on a 360px phone is what actually reads as obstruction. */
[data-alex-consent-open] .botnav{display:none}

/* ============================================================================
   THE SEARCH FORM — home-page hero and /{lang}/search/, one component.

   Logical properties throughout (inset-inline, margin-inline, padding-inline):
   the form is rendered in both RTL and LTR from the same rules, and left/right
   would need a mirrored copy of every one of them.

   Contrast notes, because these were failures rather than choices. The focus
   ring used to be --gold (#c99a2c on white = 2.58:1, under the 3:1 WCAG 2.2
   SC 1.4.11 asks of a non-text indicator); it uses --brand. The control
   border went --line (1.13:1) → --brand-100 (1.31:1) → --field-line
   (3.10:1), and only the last of those three is an edge a reader can see —
   the middle step shipped under a comment asserting the failure was fixed,
   which is how a white console on a near-white hero ended up with invisible
   fields in it. EVERY border on a control in this component is --field-line,
   and every corner comes from --radius-ctl / --radius-xs rather than a
   literal.

   Order is markup, not `order`. The Search button is a direct child of the
   form, after the second row, because paint order is the only thing `order`
   changes and a keyboard user was being offered the submit control before
   three of the five filters existed for them.
   ========================================================================= */
.axp-hs{display:flex;flex-direction:column;gap:10px;text-align:start;margin-top:1.1rem}
/* In the hero the whole form is ONE console, not a card holding the first row with the rest
   floating on the background behind it. */
/* Concentric corners: the console's radius is its own padding PLUS the radius of the controls
   inside it. A fixed outer radius around 16px of padding and 16px controls out-curves its own
   contents; 16 + --radius-ctl (32px today) keeps the two curves parallel however either is
   retuned — which is the whole reason this is a calc() and not a number. The console's shadow
   is the brief's "heavy" one: a 72px spread at .22 is what lifts it off a full-bleed scene
   rather than sitting on it. */
.axp-hs--hero{background:var(--card);border:1px solid var(--field-line);border-radius:calc(var(--radius-ctl) + 16px);
	box-shadow:0 4px 12px rgba(8,30,55,.08),0 28px 72px rgba(8,30,55,.22);padding:16px;gap:12px}

/* The primary bar: what and where. The Search button is NOT in here — it is a direct child of
   the form, after the second row; see the media blocks at the end of this section. */
.axp-hs-bar{display:grid;gap:10px;grid-template-columns:1fr}
.axp-hs-row{display:grid;gap:10px;grid-template-columns:1fr}
.axp-hs-fld{display:flex;flex-direction:column;gap:5px;min-width:0;border:0;padding:0;margin:0}
/* A <fieldset>'s rendered <legend> is laid out OUTSIDE the anonymous box that establishes the
   fieldset's formatting context, so it is not a flex item and the 5px gap above never reached
   it: the gender label sat at a different offset from its control than the two labels beside
   it, and at >=860px the three row fields are side by side, so that is a visible break in the
   rhythm in the middle of the hero. Floating a legend is the one thing that makes it an
   ordinary in-flow child in every engine — and an in-flow child of a flex container is a flex
   item, so `gap` is what spaces it and this rule must NOT also carry a bottom margin: 5px of
   margin plus 5px of gap put the segmented control 10px under its own label while the two
   fields beside it sat 5px under theirs. */
.axp-hs-fld > legend{float:inline-start;width:100%;margin:0;padding:0}
.axp-hs-l{font-size:.8rem;font-weight:700;color:var(--ink);padding:0;display:block}
.axp-hs-opt{font-weight:400;color:var(--muted);font-size:.74rem;margin-inline-start:.25em}

/* 16px minimum on every control: anything smaller makes iOS Safari zoom the page on focus,
   which then breaks the layout for the rest of the session.

   `:where()`, not `:is()`. :is() takes the HIGHEST specificity of its arguments, so
   `input[type=search]` made this whole rule (0,2,1) — higher than `.axp-hs-selwrap select`, and
   the icon padding below silently lost to the shorthand here. The icons then sat on top of the
   text. :where() contributes zero, which is what a base layer should do. */
.axp-hs :where(select,input[type=text],input[type=search]){
	width:100%;min-height:50px;font:inherit;font-size:16px;color:var(--ink);
	background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-ctl);
	padding-inline:14px;padding-block:0;appearance:none;-webkit-appearance:none}
.axp-hs input::placeholder{color:var(--muted);opacity:1}
/* The native clear affordance is suppressed because the button at the end of the field would
   sit on top of it. It is REPLACED, not merely removed (.axp-hs-clear below): the placeholder
   invites a whole sentence and voice input can drop a forty-character transcript in here, and
   erasing that one backspace at a time on a phone is not an answer. */
.axp-hs input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
/* :not(:disabled) on hover. The area select is DISABLED when the chosen governorate has no
   registered areas, and a border that lights up under the pointer reads as "interactive" on a
   control that is not. */
.axp-hs :is(select,input):not(:disabled):hover{border-color:var(--brand)}
.axp-hs :is(select,input):focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
/* .85, not .7: this select's placeholder is rewritten to SAY why it is disabled, so that text
   is the only explanation a sighted reader gets and it has to stay legible. */
.axp-hs select:disabled{opacity:.85;cursor:not-allowed;background:var(--bg)}
/* :is() takes the HIGHEST specificity of its arguments, so the two rules above are (0,2,1) and
   (0,3,1) — and an error rule at (0,2,0) lost to both. An invalid field dropped its red border
   on hover and, worse, on focus, which is precisely when the reader is looking at it. */
.axp-hs :is(select,input,textarea)[aria-invalid="true"]{border-color:var(--err-ink)}

/* A field with an icon in it. The icon is decoration; the padding it needs is not. */
.axp-hs-inwrap,.axp-hs-selwrap{position:relative;display:flex;align-items:center;min-width:0}
.axp-hs-ico{position:absolute;inset-inline-start:13px;width:20px;height:20px;color:var(--muted);pointer-events:none}
/* One inset for every field, because every field now has an icon. The area select used to be
   the exception (`--plain`: no icon, 14px inset) — the control directly beneath the governorate,
   answering the same question one level finer, with a different text inset and a different
   visual weight, which reads as an oversight rather than a hierarchy. The two padding rules
   that produced it were both (0,2,0) and were resolved purely by source order, i.e. one
   reordering away from breaking silently. There is no exception any more. */
.axp-hs-inwrap input,.axp-hs-selwrap select{padding-inline-start:42px}

/* ── The text field's icon padding is PHYSICAL on purpose ────────────────────────────────────
 *
 * `#hs-q` carries `dir="auto"` so a franco-arabe query ("asnan") renders left-to-right inside a
 * right-to-left page. That attribute resolves the field's OWN `direction` from its VALUE — and
 * an empty value resolves to `ltr`. The icons do not move with it: the magnifier and the
 * microphone are positioned against `.axp-hs-inwrap`, which keeps the page direction.
 *
 * So on the Arabic site the logical padding above pointed the wrong way in the two states the
 * field is in most of the time. Measured at 360px:
 *
 *   empty        direction:ltr → padding-left 42px, but the mic occupies 45px  → 3px of the
 *                placeholder rendered underneath the microphone button
 *   "asnan"      direction:ltr → same overlap, on the exact input style this audience uses most
 *   "أسنان"      direction:rtl → correct, which is why it survives casual testing
 *
 * A symmetric inset is the fix, not an `html[dir]` override: the reserved space has to be right
 * whichever way the field flips, and it flips per keystroke. 48px clears the microphone (38px
 * box at a 7px inset = 45px) and is generous for the magnifier (20px at 13px = 33px). The
 * placeholder measures 167px against 194px of typing area at 360px, so nothing is lost.
 *
 * The SELECTS keep the logical rule above. They have no `dir="auto"`, so their direction is the
 * page's and it never changes. */
.axp-hs-inwrap.has-end input{padding-left:48px;padding-right:48px}
.axp-hs-selwrap select{padding-inline-end:38px}
/* The caret. A real chevron drawn once as a mask, rather than the classic two-45deg-gradients
   trick the rest of this file used: at any zoom above 100% the two triangles stop meeting and
   the "v" reads as two separate marks. currentColor through the mask also means it inherits the
   field's colour in both themes with no second rule. */
.axp-hs-selwrap::after{content:"";position:absolute;inset-inline-end:14px;width:11px;height:11px;
	background-color:var(--muted);pointer-events:none;
	-webkit-mask:var(--axp-chev) center/11px 11px no-repeat;mask:var(--axp-chev) center/11px 11px no-repeat}
.axp-hs-selwrap:hover::after{background-color:var(--brand-700)}
.axp-hs{--axp-chev:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")}

/* The two buttons that can occupy the end of the query field: the microphone, and the clear
   button that replaces it the moment there is text to clear.

   They SHARE one box, deliberately. Two 38px buttons side by side would eat ~90px of a 292px
   field on a 360px phone — a third of the typing area — and the field is where a whole sentence
   is meant to be typed. So voice is the way you START a query and clear is what you do to one
   that exists, and swapping them costs no layout: same position, same size, one `.has-end`
   class reserving the padding for whichever is showing. */
.axp-hs-mic,.axp-hs-clear{position:absolute;inset-inline-end:7px;display:inline-flex;align-items:center;justify-content:center;
	width:38px;height:38px;padding:0;border:1px solid var(--field-line);border-radius:var(--radius-sm);
	background:var(--bg);color:var(--muted);cursor:pointer}
/* An author `display` beats the UA's `[hidden]{display:none}` whatever the specificity, so
   without this the microphone rendered for every visitor including the ones whose browser has
   no speech recognition at all — a button that cannot do anything, inside the primary field. */
.axp-hs-mic[hidden],.axp-hs-clear[hidden]{display:none}
/* 38px clears WCAG 2.2 SC 2.5.8's 24px floor and misses the 44px one, and this is the worst
   place on the page for that: a miss lands on the <input> behind the button, opens the keyboard
   and drops a caret in the field, which reads as "the button does nothing". The visual box
   stays 38px so the field keeps its typing space; the hit area is 44x44. */
.axp-hs-mic::after,.axp-hs-clear::after{content:"";position:absolute;inset:-3px}
.axp-hs-mic:hover,.axp-hs-clear:hover{color:var(--brand-700);border-color:var(--brand)}
.axp-hs-mic:focus-visible,.axp-hs-clear:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Reserved while EITHER button occupies that corner, and both occupy the SAME box, so swapping
   one for the other never moves the text. Reserved only once a button is real: doing it
   unconditionally cost ~112px of a 320px field on a 360px phone, on every browser with no
   speech support at all. */
/* Superseded by the physical rule near `.axp-hs-inwrap input` above — see the note there for
   why a `dir="auto"` field cannot use logical insets against page-positioned icons. */
.axp-hs-mic.is-rec{background:#c0392b;border-color:#c0392b;color:#fff;animation:axp-rec 1.4s ease-in-out infinite}
@keyframes axp-rec{0%,100%{opacity:1}50%{opacity:.62}}
@media (prefers-reduced-motion:reduce){.axp-hs-mic.is-rec{animation:none}}

/* Gender: a real radio group styled as a segmented control, so arrow keys and the accessible
   name come from the platform instead of being reimplemented. */
.axp-hs-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--field-line);
	border-radius:var(--radius-ctl);overflow:hidden;background:var(--card);position:relative}
.axp-hs-seg input{position:absolute;opacity:0;width:1px;height:1px}
.axp-hs-seg label{display:flex;align-items:center;justify-content:center;min-height:50px;font-size:.88rem;
	font-weight:600;color:var(--muted);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.axp-hs-seg label + input + label{border-inline-start:1px solid var(--field-line)}
/* Deliberately NOT gold. The Search button is the one gold thing in the hero, and a gold
   segment sitting permanently on "Any" — which is the default, i.e. not a choice anybody made —
   competed with it for the eye and implied a filter was active when none was. */
.axp-hs-seg input:checked + label{background:var(--ink);color:var(--card)}
.axp-hs-seg input:focus-visible + label{outline:2px solid var(--brand);outline-offset:-3px}

.axp-hs-combo{position:relative;min-width:0;flex:1}
.axp-hs-go{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
	min-height:50px;padding-inline:24px;border:0;border-radius:var(--radius-ctl);background:var(--gold);
	color:var(--gold-ink);font:inherit;font-size:1rem;font-weight:700;cursor:pointer;white-space:nowrap;
	transition:filter .15s ease}
.axp-hs-go:hover{filter:brightness(1.05)}
.axp-hs-go:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.axp-hs-go[disabled]{opacity:.75;cursor:progress}
.axp-hs-go--wide{width:100%}

/* The suggestion list.

   z-index 70, not 60: it has to beat the sticky header (.nav, 50) AND the fixed mobile bottom
   bar (.botnav, 55). It can only do that now the hero has stopped being a stacking context (see
   .hero) — trapped inside one, no number written here could have won, and the comment that used
   to sit above this rule claiming it painted "above the sticky nav" was false on the one page
   that matters most.

   dvh, not vh. This list only ever opens while the virtual keyboard is up, and `vh` on iOS
   resolves against the LARGE viewport and does not shrink when the keyboard appears: a 320px
   list on a 667px phone with ~300px of visible area ran clean off the bottom of what the reader
   could see. Every other viewport measure in this file was migrated to dvh; this was the one
   straggler. */
.axp-hs-list{position:absolute;z-index:70;inset-inline:0;top:calc(100% + 4px);margin:0;padding:6px;
	list-style:none;background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-ctl);
	box-shadow:0 18px 46px rgba(8,30,55,.22);max-height:min(320px,40dvh);overflow-y:auto;
	overscroll-behavior:contain;scroll-padding-block:2px}
.axp-hs-list[hidden]{display:none}
.axp-hs-list li{padding:8px 12px;border-radius:var(--radius-xs);cursor:pointer;font-size:.92rem;
	min-height:44px;display:flex;align-items:center;gap:10px}
/* Each row carries its own dir="auto" (set in alex-search-form.js), so flex direction follows
   the SUGGESTION's direction rather than the page's: the type badge trails the name at the end
   of the row whether that row is "Dr. Ahmed Ali" or "أسنان". A mixed Arabic/Latin doctor name
   would otherwise reorder against the surrounding RTL context and throw its trailing token to
   the wrong end. */
.axp-hs-s-t{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.axp-hs-s-l{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-hs-s-g{font-size:.76rem;color:var(--muted);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-hs-s-k{flex:none;font-size:.68rem;font-weight:700;padding:3px 8px;border-radius:999px;
	background:var(--brand-50);color:var(--brand-700);white-space:nowrap}
/* A 1.06:1 tint is not a state. --brand-50 on --card is #faf3e2 on #ffffff, and the only other
   cue was a hue shift of near-identical lightness — so the keyboard-navigation state, which is
   also what aria-activedescendant points at, had no perceivable non-text indicator at all, and
   arrow-keying through eight rows on a phone in daylight was blind. The highlighted row now
   gets a filled background AND a 3px accent on its inline-start edge; hover keeps the light
   tint so the two states stay distinguishable. border-inline-start with the padding adjusted
   by the same 3px, rather than an inset box-shadow, because a shadow offset is physical and
   would need a mirrored copy for RTL. */
.axp-hs-list li:hover{background:var(--brand-50);color:var(--brand-700)}
.axp-hs-list li.is-on{background:var(--brand-100);color:var(--brand-700);
	border-inline-start:3px solid var(--brand);padding-inline-start:9px}
.axp-hs-list li.is-on .axp-hs-s-k{background:var(--card)}
/* The "nothing matched" row is a message, not an option: not selectable, not hoverable, and
   role="presentation" in the markup — a bare <li> inside role="listbox" is an owned element
   with a disallowed role, and is dropped or mis-announced. */
.axp-hs-list .axp-hs-none{color:var(--muted);font-size:.86rem;line-height:1.5;cursor:default;
	display:block;padding:11px 12px;min-height:0}
.axp-hs-list .axp-hs-none:hover{background:transparent;color:var(--muted)}

.axp-hs-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;justify-content:space-between}
.axp-hs-hint{font-size:.8rem;color:var(--muted);line-height:1.55;margin:0;min-width:0}
/* flex-basis ONLY inside the row. .axp-hs is a column flex container, so an unscoped
   `flex:1 1 260px` on a direct child resolved against the BLOCK axis and gave the hint a
   260px-tall box — 200px of empty panel under the full form. */
.axp-hs-foot .axp-hs-hint{flex:1 1 260px}
.axp-hs-hint.is-err{color:var(--err-ink);font-weight:600}
.axp-hs-more{display:inline-flex;align-items:center;gap:.3rem;min-height:44px;font-size:.85rem;
	font-weight:700;color:var(--brand-700);text-decoration:underline;text-underline-offset:3px}
.axp-hs-more:hover{color:var(--brand)}
html[dir="ltr"] .axp-hs-more svg{transform:scaleX(-1)}

/* --- the full page variant ------------------------------------------------ */
.axp-hs--full{gap:14px}
.axp-hs-adv{border:1px solid var(--field-line);border-radius:var(--radius);padding:16px;margin:0;background:var(--card)}
.axp-hs-adv-l{font-size:.86rem;font-weight:700;color:var(--ink);padding-inline:6px}
/* Intrinsic, not a rigid 1fr 1fr: a two-digit fee band does not need the same column as a
   specialty list, and at 640-900px a fixed pair wrapped every Arabic label onto three lines. */
.axp-hs-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:6px}
.axp-hs-checks{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px}
.axp-hs-check{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-size:.9rem;
	font-weight:600;color:var(--body);cursor:pointer}
.axp-hs-check input{width:20px;height:20px;accent-color:var(--brand);flex:none}
.axp-hs-check:hover{color:var(--ink)}
.axp-hs-check:has(input:checked){color:var(--brand-700)}
.axp-hs-adv-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px}
.axp-hs-adv-act .axp-hs-go{flex:1 1 220px}
.axp-hs-reset{min-height:44px;display:inline-flex;align-items:center;font-size:.86rem;font-weight:700;
	color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.axp-hs-reset:hover{color:var(--ink)}

/* The full page's bar and row. The hero no longer uses either: it is three stacked sections
   (what, where, the optional rest) laid out further down, in "SEARCH 4.0". Order is still markup,
   never `order` — the submit button is the last control in the DOM in every variant. */
@media (min-width:560px){
	.axp-hs-row{grid-template-columns:1fr 1fr}
}
@media (min-width:860px){
	.axp-hs--full .axp-hs-bar{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
	.axp-hs--full .axp-hs-fld--q{grid-column:1}
	.axp-hs--full .axp-hs-fld--gov{grid-column:2}
	.axp-hs--full .axp-hs-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Windows High Contrast (`forced-colors: active`) discards author backgrounds and repaints
   author colours, and two things in this component depend on exactly those: the select caret is
   a masked pseudo-element, so it collapses to a solid square or vanishes and an appearance:none
   select is left with no drop indicator at all; and the checked gender segment is signalled ONLY
   by a background, so the control shows no selection. Both need a system colour stated by hand. */
@media (forced-colors:active){
	.axp-hs-selwrap::after{forced-color-adjust:none;background-color:CanvasText}
	.axp-hs-seg input:checked + label{outline:2px solid Highlight;outline-offset:-2px;color:Highlight}
	.axp-hs-list li.is-on{outline:2px solid Highlight;outline-offset:-2px}
	.axp-hs-mic.is-rec{outline:2px solid Highlight;outline-offset:-2px}
}

/* ============================================================================
   /{lang}/search/ — the page that asks the question.
   ========================================================================= */
.sec-search{padding-top:22px}
/* `.search-head` / `.search-lede` used to wrap this page's H1 and standfirst. /search/ renders
   the shared `.sec-wash` heading block now — the same one every listing uses — so both are
   unreferenced. */
/* --field-line, not --line: this panel is the visible frame around the form on /search/, and at
   1.13:1 it and the .axp-hs-adv fieldset inside it read as an invisible box-in-box outline. */
.search-panel{background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-lg);
	padding:clamp(16px,3vw,24px);box-shadow:var(--shadow)}
/* Inside the panel the bar is already on a card; a second card around it would be a box in a box. */
.search-panel .axp-hs{margin-top:0}
.search-panel .axp-hs-adv{background:var(--bg)}
.search-browse{margin-top:1.6rem}
.search-gov-l{font-size:.82rem;font-weight:700;color:var(--muted);margin:.9rem 0 .35rem}
.search-browse .hub-area-head .hub-n{color:var(--brand-700);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.search-browse .hub-area-head .hub-n:hover{color:var(--brand)}

/* ============================================================================
   HOME 3.0 — what is left of it.

   The home page was rebuilt around the `.ax-` blocks at the foot of this file:
   the trust claims are `.ax-trust` rows, the specialty tiles `.ax-spec-card`,
   the featured doctors `.ax-feat`, the FAQ `.ax-faq`. Six components of the old
   composition were left behind with no markup to style — the `.alex-trust-strip`
   bar and its `.alex-ts` claim list, the `.alex-sponsored` disclosure line, the
   `.alex-combos` link grid, the `.alex-how` three-step explainer and the
   `.alex-posts` / `.alex-post` article teasers (the blog teasers render from the
   `.post-*` namespace below). None appeared anywhere in templates/ or
   assets/js/, and all six are gone.
   ========================================================================= */
.alex-sub-h{font-size:.92rem;font-weight:700;color:var(--muted);margin:1.3rem 0 .6rem}
.chip-quiet{opacity:.55}
.chip small{font-weight:600;opacity:.7;margin-inline-start:.25em}

.alex-trust-grid{display:grid;gap:14px;grid-template-columns:1fr;margin-top:1.4rem}
.alex-trust-card{display:block;padding:22px;border:1px solid var(--card-line);box-shadow:var(--shadow);border-radius:var(--radius-lg);
	background:var(--card);color:inherit;transition:border-color .16s ease,transform .16s ease}
.alex-trust-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.alex-trust-card h3{font-size:1rem;margin:0 0 .4rem;color:var(--ink)}
.alex-trust-card p{font-size:.86rem;line-height:1.6;color:var(--muted);margin:0}
@media (min-width:760px){.alex-trust-grid{grid-template-columns:1fr 1fr}}
@media (min-width:1100px){.alex-trust-grid{grid-template-columns:repeat(4,1fr)}}
@media (prefers-reduced-motion:reduce){.alex-trust-card:hover{transform:none}}
.alex-corr{margin-top:1.2rem;font-size:.87rem;color:var(--muted)}
.alex-corr a{color:var(--brand);text-decoration:underline;font-weight:600}

/* ============================================================================
   ALEX HEALTHPLUS — the brand's own blocks.

   Appended last on purpose, like every block above it: this file is
   cascade-ordered, so a fresh `.ax-` namespace never has to fight the doctor
   card, chip or button rules further up.

   Two rules hold for everything below.

   1. Every colour is a token. There is no hardcoded hex in this whole section,
      which is why it needs no `:root[data-theme="dark"]` twin — --foam, --card,
      --card-line, --line and --ink all invert themselves. The one place that
      would have needed a twin is the --foam wash, and --foam is a real token
      with a dark value for exactly that reason.
   2. Text on a --foam surface is --ink (14.26:1) or --body (7.45:1), NEVER
      --muted: --muted on --foam is 3.74:1 and would be the one AA failure in
      the section. Where a line under a foam panel needs to read as secondary,
      it does it with size and weight, not by going paler.
   ========================================================================= */

/* --- .sec-wash: the section-heading motif ----------------------------------
   The heading block of a section sits ON a soft foam panel rather than on the
   page. It is the cheapest possible piece of brand — one background and one
   radius — and it is the thing that makes a scroll down this home page feel
   like a different product from a site with the same components in white.
   The 3px --sea-2 bottom edge is a waterline: the panel is the foam, the rule
   under it is the sea. */
.sec-wash{position:relative;background:var(--foam);border-radius:var(--radius-lg);
	border-bottom:3px solid var(--sea-2);
	padding:clamp(18px,3.2vw,30px) clamp(18px,3.2vw,32px);
	margin-bottom:clamp(20px,3vw,32px)}
.sec-wash .eyebrow{color:var(--brand-700)}
.sec-wash .h-sec{color:var(--ink)}
/* --body, not --muted — see the rule at the top of this block. */
.sec-wash .sub-sec{color:var(--body);max-width:64ch}
.sec-wash--center{text-align:center}
.sec-wash--center .sub-sec{margin-inline:auto}
/* The LISTING's wash is tighter than a home-page section's.
   On the home page this panel introduces a section the reader scrolls to, so it can breathe.
   On /ar/{area}/ it is the first thing under the breadcrumb, and everything that matters —
   the chips, the sort row, the filter panel and the first doctor — queues up behind it. At the
   home page's padding, a 1440x900 viewport ended at the filter panel with no result visible;
   the panel is the same motif, just not spending 30px of a 900px viewport on air. */
.sec-wash--list{padding:clamp(14px,2vw,20px) clamp(16px,2.4vw,24px);
	margin-bottom:clamp(14px,1.8vw,20px)}
.sec-wash--list .sub-sec{max-width:78ch}

/* --- Home 1: specialties as large illustrated cards ------------------------
   This is the section that LEADS the page, because an Alexandria reader
   arrives with a need ("أسنان") long before a place.

   The brief asks for a 2xN grid, and 2 is the base here at every width a phone
   or a tablet has. It is NOT held at 2 on a desktop: inside the 1180px wrap
   two columns make each card ~580px wide, at which point it has stopped being
   a card and become a band, and the glyph is stranded 500px from the count it
   belongs to. Two, then three, then four. */
.ax-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2.2vw,20px)}
@media (min-width:900px){.ax-spec-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1200px){.ax-spec-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* The wash runs top-to-bottom, not from a corner: a diagonal gradient is
   PHYSICAL and would arrive from the opposite side of the card in the two
   directions this site renders in, so the same card would be lit from the left
   in Arabic and from the right in English. 180deg is the one angle that is the
   same picture in both. */
.ax-spec-card{display:flex;flex-direction:column;gap:.6rem;min-height:clamp(148px,20vw,186px);
	padding:clamp(15px,2.4vw,22px);border-radius:var(--radius-lg);
	background:linear-gradient(180deg,var(--foam),var(--card) 58%);
	border:1px solid var(--card-line);box-shadow:var(--shadow);color:inherit;
	transition:transform .18s ease,box-shadow .18s ease}
.ax-spec-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.ax-spec-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
/* A --card tile ON the foam: in light it reads as a white chip lifted off the
   wash by --shadow-sm. In dark, --card and --foam are within one step of each
   other and a shadow does not read, which is exactly what --card-line is for —
   the tile takes the same 1px edge every card in dark mode takes. */
.ax-spec-ic{flex:none;width:clamp(46px,6vw,56px);height:clamp(46px,6vw,56px);
	border-radius:var(--radius);display:grid;place-items:center;
	background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);color:var(--brand)}
.ax-spec-ic svg{width:54%;height:54%}
.ax-spec-n{font-size:clamp(.98rem,2.1vw,1.12rem);font-weight:700;color:var(--ink);line-height:1.4}
/* margin-top:auto pins the count to the card's bottom edge, so a one-word
   specialty and a three-word one still line their counts up across a row. */
.ax-spec-c{margin-top:auto;font-size:.86rem;font-weight:700;color:var(--body)}
.ax-spec-c b{color:var(--brand-700);font-variant-numeric:tabular-nums}

/* --- Home 2: the corniche strip -------------------------------------------
   Alexandria's districts as one horizontal scroller ordered west to east along
   the coast, with a sea-coloured rule under it. The strip lays its chips out
   along the INLINE axis in DOM order, so on the Arabic site the first chip
   (العجمي, the western end) sits at the right-hand edge and the reader travels
   left to المنتزه — which is both the reading direction and, for a reader
   standing on the corniche facing the water, the direction the coast runs.

   `min-width:0` is load-bearing, for the same reason it is on .quick-rail: a
   grid or flex item defaults to min-width:auto, so a rail of nowrap chips
   otherwise forces its whole column to min-content width and blows the section
   out past the viewport instead of scrolling. */
.ax-coast{position:relative;padding-bottom:14px}
.ax-coast-track{display:flex;min-width:0;gap:.6rem;overflow-x:auto;padding-block:.2rem .9rem;
	scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ax-coast-track::-webkit-scrollbar{display:none}
/* The rail hides its scrollbar, so the last chip would otherwise be cut off at
   the edge with nothing to say more existed. The mask fades the SCROLL-FORWARD
   edge — left in Arabic, right in English. Suppressed on :focus-within because
   a mask clips the focus ring of whichever chip a keyboard user has landed on,
   and an invisible focus ring is a worse bug than an unhinted scroller. */
.ax-coast-track:not(:focus-within){mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent)}
[dir="ltr"] .ax-coast-track:not(:focus-within){mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}
/* The shoreline. Decorative, so it is a pseudo-element rather than markup the
   template has to remember, and it is direction-neutral: a 90deg gradient
   mirrors with the page and the sea reads the same either way. */
.ax-coast::after{content:"";position:absolute;inset-inline:0;bottom:0;height:5px;border-radius:999px;
	background:linear-gradient(90deg,var(--sea),var(--sea-2),var(--foam));pointer-events:none}
.ax-coast-chip{flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;gap:.4rem;
	min-height:44px;padding-inline:1.15rem;border-radius:999px;background:var(--card);
	border:1px solid var(--field-line);box-shadow:var(--shadow-sm);
	font-size:.9rem;font-weight:700;color:var(--body);white-space:nowrap;
	transition:border-color .15s ease,color .15s ease,background-color .15s ease}
.ax-coast-chip:hover{border-color:var(--brand);color:var(--brand-700);background:var(--brand-50)}
.ax-coast-chip.is-on{background:var(--brand);border-color:var(--brand);color:#fff}
/* --brand inverts to a bright #6FB4EE in dark, where white ink drops to 1.9:1.
   Every brand-filled pill in this file flips to --gold-ink there; this is the
   same flip, written twice for the toggle and for the system preference. */
:root[data-theme="dark"] .ax-coast-chip.is-on{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ax-coast-chip.is-on{color:var(--gold-ink)}}
/* 400, not 500 — Almarai has no 500 face. */
.ax-coast-chip small{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}

/* --- Home 3: featured doctors, editorial two-column -----------------------
   One large lead card beside a stacked list, deliberately NOT a uniform grid:
   a row of five identical cards says "here are five records"; a lead plus a
   list says "here is one, and here are four more". */
.ax-feat{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(14px,2.4vw,22px);align-items:start}
@media (min-width:960px){.ax-feat{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
.ax-feat-lead{display:flex;flex-direction:column;gap:.9rem;height:100%;
	padding:clamp(18px,3vw,28px);border-radius:var(--radius-lg);background:var(--card);
	border:1px solid var(--card-line);box-shadow:var(--shadow)}
.ax-feat-lead-head{display:flex;gap:clamp(14px,2.4vw,20px);align-items:center}
.ax-feat-ava{flex:none;width:clamp(84px,12vw,112px);height:clamp(84px,12vw,112px);
	border-radius:50%;object-fit:cover;aspect-ratio:1;background:var(--brand-50)}
.ax-feat-name{font-size:clamp(1.14rem,2.8vw,1.42rem);font-weight:700;color:var(--ink);line-height:1.35}
.ax-feat-name a{color:inherit;display:inline-block;padding-block:2px}
.ax-feat-name a:hover{color:var(--brand-700)}
.ax-feat-pitch{color:var(--body);font-size:.96rem;line-height:1.8;margin:0;max-width:56ch}
.ax-feat-meta{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-size:.88rem;color:var(--body)}
.ax-feat-meta b{color:var(--ink)}
.ax-feat-lead .btn{margin-top:auto;align-self:flex-start}
.ax-feat-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.ax-feat-row{display:flex;align-items:center;gap:.9rem;padding:12px 14px;border-radius:var(--radius);
	background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);color:inherit;
	transition:box-shadow .18s ease,transform .18s ease}
.ax-feat-row:hover{box-shadow:var(--shadow);transform:translateY(-1px)}
.ax-feat-row-ava{flex:none;width:60px;height:60px;border-radius:50%;object-fit:cover;
	aspect-ratio:1;background:var(--brand-50)}
.ax-feat-row-t{min-width:0;display:flex;flex-direction:column;gap:.1rem}
.ax-feat-row-t strong{color:var(--ink);font-size:.99rem;line-height:1.4;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ax-feat-row-t span{color:var(--body);font-size:.85rem;line-height:1.5;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The glyph points to the inline-end edge, which is LEFT in Arabic; LTR mirrors
   it. Same treatment as .doc-cta-arrow, and the mirror survives reduced motion
   because it is a separate declaration from the nudge. */
.ax-feat-row-go{margin-inline-start:auto;flex:none;width:20px;height:20px;color:var(--brand);
	transition:transform .18s ease}
.ax-feat-row:hover .ax-feat-row-go{transform:translateX(-3px)}
[dir="ltr"] .ax-feat-row-go{transform:scaleX(-1)}
[dir="ltr"] .ax-feat-row:hover .ax-feat-row-go{transform:scaleX(-1) translateX(-3px)}

/* --- Home 4: the trust band -----------------------------------------------
   Three wide rows with large glyphs — verification, no commission, direct
   contact. Rows rather than cards because each one is a SENTENCE the reader is
   meant to finish, and a 3-up grid of them would clamp all three to the height
   of the longest and shrink the type to fit. */
.ax-trust{display:flex;flex-direction:column;gap:clamp(10px,1.8vw,16px);margin:0;padding:0;list-style:none}
.ax-trust-row{display:flex;align-items:flex-start;gap:clamp(14px,2.4vw,22px);
	padding:clamp(16px,2.8vw,26px);border-radius:var(--radius-lg);background:var(--card);
	border:1px solid var(--card-line);box-shadow:var(--shadow)}
.ax-trust-ic{flex:none;width:clamp(52px,7vw,72px);height:clamp(52px,7vw,72px);
	border-radius:var(--radius);display:grid;place-items:center;
	background:var(--foam);color:var(--brand-700)}
.ax-trust-ic svg{width:50%;height:50%}
.ax-trust-t{min-width:0}
.ax-trust-h{font-size:clamp(1.02rem,2.4vw,1.2rem);line-height:1.4;margin:0}
.ax-trust-t p{margin:.35rem 0 0;color:var(--body);font-size:.95rem;line-height:1.8;max-width:62ch}

/* --- Home 5: FAQ ----------------------------------------------------------
   Real <details>/<summary>, so open/close, keyboard operation and the
   accessible name come from the platform and find-in-page can reach the
   answers. The chevron uses PHYSICAL borders on purpose: an L of right+bottom
   rotated 45deg points DOWN in either writing direction, where logical borders
   would flip under RTL and point the wrong way. */
.ax-faq{display:flex;flex-direction:column;gap:10px}
.ax-faq-i{background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);
	border-radius:var(--radius);padding-inline:clamp(16px,2.6vw,22px)}
.ax-faq-i>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.75rem;
	min-height:60px;padding-block:.7rem;font-weight:700;font-size:1rem;color:var(--ink);line-height:1.55}
.ax-faq-i>summary::-webkit-details-marker{display:none}
.ax-faq-i>summary:hover{color:var(--brand-700)}
.ax-faq-i>summary::after{content:"";margin-inline-start:auto;width:10px;height:10px;flex:0 0 auto;
	border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
	transform:rotate(45deg);margin-block-end:4px;transition:transform .2s ease}
.ax-faq-i[open]>summary::after{transform:rotate(-135deg);margin-block:4px 0}
.ax-faq-i[open]>summary{color:var(--brand-700)}
.ax-faq-a{margin:0;padding-bottom:clamp(14px,2.4vw,20px);color:var(--body);
	font-size:.96rem;line-height:1.85;max-width:70ch}
.ax-faq-a a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.2em}
@media (prefers-reduced-motion:reduce){.ax-faq-i>summary::after{transition:none}}

/* --- Home 6: the "for doctors" CTA ----------------------------------------
   The paragraph is FULL --cta-ink, not a faded version of it. The obvious
   move — colour the body copy rgba(255,255,255,.9) — is a light-mode-only
   assumption: --cta-ink is #FFFFFF in light and #04202F in dark, so a white
   wash would print near-white text on a bright #2E9BD6 panel in dark mode at
   roughly 1.5:1. Hierarchy here comes from size and weight, which cost
   nothing in either theme. */
.ax-docs-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
	gap:clamp(16px,2.6vw,24px);padding:clamp(22px,4vw,38px);border-radius:var(--radius-lg);
	background:linear-gradient(135deg,var(--cta),var(--cta-2));color:var(--cta-ink);
	box-shadow:var(--shadow-md)}
.ax-docs-cta-t{min-width:0;flex:1 1 320px}
.ax-docs-cta h2{color:var(--cta-ink);font-size:clamp(1.2rem,3vw,1.6rem);line-height:1.35}
.ax-docs-cta p{margin:.5rem 0 0;color:var(--cta-ink);font-size:.95rem;line-height:1.8;max-width:56ch}
/* The button inverts the panel: --card ground, --cta ink. Both tokens flip
   with the theme, so this needs no dark twin either. */
.ax-docs-cta .btn{background:var(--card);color:var(--cta);border-color:var(--card);flex:0 0 auto}
.ax-docs-cta .btn:hover{background:var(--card);color:var(--cta);filter:brightness(.96)}
.ax-docs-cta .btn:focus-visible{outline:3px solid var(--card);outline-offset:3px}

/* ============================================================================
   LISTINGS — the airy editorial roster (archive-doctors, search).

   Deliberately the opposite of a dense results table: one card per doctor, two
   columns at most, generous padding, a 96px round portrait, and one line of
   facts rather than a strip of cells. The dense .doc-card above is untouched
   and still owns every page that has not moved over.
   ========================================================================= */
.ax-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(14px,2.2vw,20px)}
/* Two, and only two. A third column inside the 1180px wrap gives each card
   ~370px, at which point the 96px portrait plus the name no longer share a
   line and the whole point of the airy card is gone. */
@media (min-width:860px){.ax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ax-doc{position:relative;display:flex;flex-direction:column;gap:.9rem;
	padding:clamp(18px,3vw,26px);border-radius:var(--radius-lg);background:var(--card);
	border:1px solid var(--card-line);box-shadow:var(--shadow);
	transition:box-shadow .2s ease,transform .2s ease;
	content-visibility:auto;contain-intrinsic-size:auto 340px}
.ax-doc:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
/* The first two cards are above the fold at every breakpoint (one column on a
   phone, two on a desktop), and skipping their render would cost more than it
   saves and would hide the LCP element from the browser. */
.ax-grid>.ax-doc:nth-of-type(-n+2){content-visibility:visible}
@media (prefers-reduced-motion:reduce){
	.ax-doc,.ax-feat-row,.ax-spec-card,.ax-feat-row-go{transition:none}
	.ax-doc:hover,.ax-feat-row:hover,.ax-spec-card:hover{transform:none}
	.ax-feat-row:hover .ax-feat-row-go{transform:none}
	[dir="ltr"] .ax-feat-row-go,[dir="ltr"] .ax-feat-row:hover .ax-feat-row-go{transform:scaleX(-1)}
}
.ax-doc-flags{display:flex;flex-wrap:wrap;gap:6px}
.ax-doc-head{display:flex;gap:clamp(14px,2.4vw,20px);align-items:center}
/* 96px and circular, as the brief asks. The double ring is two spread-only
   shadows rather than a border, so the portrait keeps its full 96px of image
   instead of losing 2px to a border box — and both rings are tokens, so the
   outer one appears in dark mode where --line is visible and effectively
   disappears in light where it is a 1.25:1 hairline. */
.ax-doc-ava{flex:none;width:96px;height:96px;border-radius:50%;object-fit:cover;aspect-ratio:1;
	background:var(--brand-50);box-shadow:0 0 0 4px var(--card),0 0 0 5px var(--line)}
/* The initial-letter fallback. The hue comes from --ph-h, set per doctor in the
   markup, exactly as .doc-ava-ph does — so this needs the same explicit dark
   pair, because an hsl() built from a custom property cannot invert itself. */
.ax-doc-ava-ph{display:grid;place-items:center;font-size:2.3rem;font-weight:700;line-height:1;
	color:hsl(var(--ph-h,208) 45% 30%);background:hsl(var(--ph-h,208) 58% 92%)}
:root[data-theme="dark"] .ax-doc-ava-ph{color:hsl(var(--ph-h,208) 55% 78%);background:hsl(var(--ph-h,208) 30% 22%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ax-doc-ava-ph{
	color:hsl(var(--ph-h,208) 55% 78%);background:hsl(var(--ph-h,208) 30% 22%)}}
.ax-doc-t{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.ax-doc-name{font-size:clamp(1.12rem,2.6vw,1.3rem);font-weight:700;color:var(--ink);line-height:1.35;
	display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
/* The name is a text link inside a heading; the block padding lifts it over the
   24px minimum target height without changing how the card looks. */
.ax-doc-name a{color:inherit;display:inline-block;padding-block:2px}
.ax-doc-name a:hover{color:var(--brand-700)}
/* The specialty as a --foam chip. --brand-700 on --foam is 10.78:1 in light and
   4.67:1 in dark, so the one chip that appears on every card in the roster
   clears AA in both themes. */
.ax-doc-chip{display:inline-flex;align-items:center;gap:.35rem;background:var(--foam);
	color:var(--brand-700);border-radius:999px;padding:.3rem .85rem;
	font-size:.84rem;font-weight:700;line-height:1.6}
.ax-doc-chip svg{width:15px;height:15px}
.ax-doc-sub{font-size:.9rem;font-weight:700;color:var(--brand-700);line-height:1.45}
/* Hours and fee on their own line, fenced top and bottom — the one piece of
   rule-drawing on an otherwise borderless card, and it is here because these
   two facts are what a patient compares between cards. */
.ax-doc-line{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.2rem;
	padding-block:.75rem;border-block:1px solid var(--line);font-size:.9rem;color:var(--body)}
.ax-doc-line>span{display:inline-flex;align-items:center;gap:.4rem;min-width:0}
.ax-doc-line svg{width:17px;height:17px;flex:none;color:var(--brand)}
.ax-doc-line b{color:var(--ink);font-weight:700}
.ax-doc-line .is-open{color:var(--ok);font-weight:700}
.ax-doc-where{display:flex;align-items:flex-start;gap:.4rem;font-size:.88rem;color:var(--body);line-height:1.6}
.ax-doc-where svg{width:17px;height:17px;flex:none;color:var(--brand);margin-top:.15rem}
/* Full-width actions, pinned to the bottom edge. `margin-top:auto` is what
   keeps two cards side by side from putting their buttons at different heights
   when one has a longer name or an extra address line — a row of misaligned
   buttons reads as a bug rather than as variety. */
.ax-doc-acts{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;margin-top:auto}
@media (min-width:520px){.ax-doc-acts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ax-doc-acts .btn{width:100%;min-height:50px}
.ax-doc-acts .btn--wide{grid-column:1/-1}

/* --- The filter sheet -----------------------------------------------------
   A slide-over on mobile and a floating rounded panel above the grid on
   desktop, from ONE <dialog> — the same trick .filters already uses in this
   file, so focus trap, ::backdrop, Esc-to-close and background inerting come
   free from showModal() with no JavaScript, and `:root:has(dialog[open])`
   (defined further up) locks the page behind it. */
.ax-sheet{border:0;padding:0;margin:0;background:transparent;color:inherit;
	max-width:none;max-height:none;width:100%;height:100dvh;inset:0}
.ax-sheet:not([open]){display:none}
.ax-sheet::backdrop{background:rgba(4,20,36,.55)}
/* `justify-content:flex-end` and not a physical `right`: flex resolves flex-end
   against the INLINE axis, so the panel docks to the inline-end edge — the left
   in Arabic, the right in English — with no direction override at all. */
.ax-sheet[open]{position:fixed;display:flex;justify-content:flex-end}
.ax-sheet-panel{display:flex;flex-direction:column;width:min(90%,380px);height:100%;
	background:var(--card);box-shadow:0 0 60px rgba(4,16,30,.4);
	border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg);
	animation:ax-slide-rtl .26s cubic-bezier(.16,1,.3,1)}
/* `transform` is PHYSICAL and does NOT flip with direction, which is the exact
   trap documented on .drawer-panel: a single translateX(100%) parks the RTL
   panel a full panel-width INSIDE the viewport and then animates it across the
   whole screen. So the entry has to be written per-direction by hand. The RTL
   panel hangs off the left edge, the LTR panel off the right. */
@keyframes ax-slide-rtl{from{transform:translateX(-100%)}to{transform:none}}
@keyframes ax-slide-ltr{from{transform:translateX(100%)}to{transform:none}}
[dir="ltr"] .ax-sheet-panel{animation-name:ax-slide-ltr}
/* BOTH selectors, and that is not belt-and-braces: `[dir="ltr"] .ax-sheet-panel` above is
   (0,2,0) and a bare `.ax-sheet-panel` here is (0,1,0), so on the English site the LTR entry
   animation would have out-specified this rule and the panel would still have flown in for a
   reader who asked for no motion. Exactly the trap documented on .doc-cta-arrow. */
@media (prefers-reduced-motion:reduce){.ax-sheet-panel,[dir="ltr"] .ax-sheet-panel{animation:none}}
.ax-sheet-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
	padding:14px 18px;border-bottom:1px solid var(--line)}
.ax-sheet-head h2{font-size:1.05rem}
.ax-sheet-x{background:none;border:0;font-size:1.7rem;line-height:1;color:var(--muted);
	min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:var(--radius-sm);cursor:pointer}
.ax-sheet-x:hover{background:var(--bg);color:var(--ink)}
/* `flex:1` is `flex-basis:0`, which contributes NOTHING to a content-sized flex
   container — the same bug .filters-body and .shsheet-body were both fixed for.
   `1 1 auto` lets the body size to its content and still shrink under the
   panel's height. */
.ax-sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
	padding:8px 18px 14px;-webkit-overflow-scrolling:touch}
.ax-sheet-foot{flex:0 0 auto;display:flex;gap:.6rem;padding:12px 18px;
	padding-bottom:calc(12px + env(safe-area-inset-bottom));
	border-top:1px solid var(--line);background:var(--card)}
.ax-sheet-foot .btn{flex:1;justify-content:center;min-height:48px}
.ax-sheet-foot .btn-ghost{flex:0 0 auto}
/* The mobile opener. Desktop hides it, because there the panel is always there. */
.ax-sheet-open{display:inline-flex;align-items:center;gap:.45rem;min-height:48px;padding-inline:1.2rem;
	border-radius:999px;background:var(--card);border:1px solid var(--field-line);
	font-weight:700;font-size:.92rem;color:var(--ink);cursor:pointer;box-shadow:var(--shadow-sm)}
.ax-sheet-open svg{width:19px;height:19px;color:var(--brand)}
.ax-sheet-open:hover{border-color:var(--brand)}
.ax-sheet-n{background:var(--brand);color:#fff;border-radius:999px;min-width:20px;height:20px;
	display:inline-grid;place-items:center;font-size:.72rem;font-weight:700;padding-inline:.3rem}
:root[data-theme="dark"] .ax-sheet-n{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ax-sheet-n{color:var(--gold-ink)}}
@media (min-width:1024px){
	/* The dialog stops being a dialog and becomes a static panel ABOVE the grid.
	   `display` needs !important because a <dialog> without [open] is
	   display:none in the UA sheet, and inset/height/width all have to be
	   unwound or the panel keeps the fixed full-screen box it had as a sheet. */
	/* `.ax-sheet[open]` above is (0,2,0) and sets position:fixed. A bare `.ax-sheet` here is
	   (0,1,0), so `display` won on !important and `position` silently did NOT: an opened filter
	   panel would have stayed a fixed full-screen sheet on a 1440px screen. Every state the
	   element can be in is named. */
	.ax-sheet,.ax-sheet[open],.ax-sheet:not([open]){display:block!important;position:static;inset:auto;
		width:auto;height:auto;margin:0 0 clamp(16px,2.4vw,24px);background:transparent;
		justify-content:normal}
	.ax-sheet::backdrop{background:none}
	.ax-sheet-panel{width:100%;height:auto;animation:none;background:var(--card);
		border:1px solid var(--card-line);border-radius:var(--radius-lg);box-shadow:var(--shadow)}
	.ax-sheet-head,.ax-sheet-x,.ax-sheet-open{display:none}
	/* Horizontal on desktop: the filters read as one floating bar over the roster
	   rather than as a rail beside it, which is what leaves the grid its full
	   width for two genuinely airy cards.
	 *
	 * A GRID, not a wrapping flex — and this is the whole bug that was here.
	 *
	 * The old rule was `display:flex;flex-wrap:wrap;align-items:flex-end` with
	 * `flex:1 1 200px` on the children. Facet groups have wildly different
	 * heights: an open one carries up to five option rows, a collapsed one is a
	 * single summary line. `flex-end` bottom-aligns every group to the tallest
	 * item on its flex line, so a collapsed group's title floated down to sit
	 * level with the BOTTOM of a six-row neighbour, and the open group beside it
	 * started halfway down the panel. Read in RTL it looked like the groups had
	 * been shuffled into each other. `flex:1 1 200px` then grew each line's
	 * items by different amounts, so the six groups wrapped 2 / 3 / 1 with a
	 * dead half-panel to the inline end.
	 *
	 * Six equal columns, each group topped out in its own cell, fixes both: the
	 * count is stable so nothing re-wraps as filters open and close, and
	 * `align-items:start` means a summary is always at the top of its column
	 * where its checkboxes are. Below 1400px it steps down to three columns
	 * rather than reflowing per-item. */
	/* A MULTICOL FLOW, not a grid — and the difference is the whole layout.
	 *
	 * Three attempts landed here, so the reasoning is worth keeping:
	 *
	 *  1. `flex-wrap:wrap` + `align-items:flex-end` (what shipped, and the bug): facet groups
	 *     range from a one-line collapsed summary to five option rows, and flex-end bottom-aligned
	 *     every group to the tallest on its line. A collapsed group's title floated down level
	 *     with a six-row neighbour's LAST row, and read in RTL the groups looked shuffled into
	 *     each other.
	 *  2. `display:grid` with `align-items:start`: fixed the alignment, but a grid ROW is as tall
	 *     as its tallest cell, so the two collapsed groups that wrapped to row two sat ~290px
	 *     below row one with nothing between them — orphaned under a column of empty space.
	 *  3. Multicol. Columns flow independently: a short group packs directly under another short
	 *     group instead of waiting for a row, which is the behaviour a facet panel actually wants
	 *     and what a grid cannot express without masonry.
	 *
	 * `break-inside:avoid` is load-bearing — without it a <details> splits mid-list across a
	 * column boundary. 260px is the floor because a row inside a group is a 20px checkbox, an
	 * Arabic specialty name and a right-aligned count; below that "أطفال وحديثي الولادة" wraps.
	 *
	 * No vertical rules between columns: `column-rule` would draw through the gaps a short
	 * column leaves, and the `:nth-child` reset a border-inline-start needs cannot work when the
	 * column count follows the viewport. The gap separates; it is wider than the row rhythm for
	 * that reason. */
	.ax-sheet-body{display:block;columns:260px;column-gap:clamp(22px,2.6vw,38px);
		overflow:visible;padding:clamp(14px,2.2vw,20px)}
	.ax-sheet-body>*{min-width:0;break-inside:avoid;-webkit-column-break-inside:avoid}
	/* The group's own bottom rule is what separates one group from the next INSIDE a column now,
	   so it stays — but the last group in a column would draw a stray line, and multicol gives
	   no way to select it. A margin plus a lighter rule reads as a divider either way. */
	.ax-sheet-body>.fgroup{border-bottom:1px solid var(--line-2);margin-bottom:14px}
	.ax-sheet-foot{border-top:1px solid var(--line-2);padding-bottom:12px;background:transparent}
	.ax-sheet-foot .btn{flex:0 0 auto}
}
/* A plain floating panel, for the places a listing page needs a rounded surface
   that is not a card and not a dialog (the results toolbar, a sort bar, an
   intro block). Same geometry as everything else here. */
.ax-panel{background:var(--card);border:1px solid var(--card-line);box-shadow:var(--shadow);
	border-radius:var(--radius-lg);padding:clamp(14px,2.4vw,22px)}
.ax-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin-bottom:clamp(12px,2vw,18px)}
.ax-toolbar-count{color:var(--body);font-size:.95rem;min-width:0}
.ax-toolbar-count strong{color:var(--ink);font-variant-numeric:tabular-nums}
.ax-toolbar-sp{margin-inline-start:auto}

/* ============================================================================
   SEARCH 4.0 — the specialty-first hero, the searchable picker, the symptom
   wizard, the validation popup and the results bar.

   Every colour here is a token, so none of these components needs a dark-mode
   block of its own. The few literals — backdrops, the recording red, shadows —
   are the ones this file already uses, and they read the same in both themes.
   ========================================================================= */

/* --- labels, required and optional marks ------------------------------------ */
/* Text on --ok-bg. --ok itself is 4.14:1 on it in light — a colour for icons and borders, not for
   11px text. Dark keeps a light ink; both dark twins, as everywhere in this file. */
:root{--ok-ink:#0b6b4b}
:root[data-theme="dark"]{--ok-ink:#6ee7b7}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ok-ink:#6ee7b7}}
/* The select chevron's mask, at the root: the wizard and the validation popup live OUTSIDE the
   form, and `.axp-hs` — where this used to be the only definition — is the form. Outside it the mask
   resolved to nothing and every chevron in the wizard rendered as a solid 11px square. */
:root{--axp-chev:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")}
/* An EMPTY dir="auto" field resolves to LTR, so on the Arabic site its Arabic placeholder was laid
   out left-to-right: pushed against the wrong edge, away from its own icon, and clipped at its
   beginning when it overflowed. While the placeholder is what is showing, the field takes the
   page's direction; the moment there is text, dir="auto" decides from the text as before. */
[dir="rtl"] .axp-hs input[dir="auto"]:placeholder-shown,[dir="rtl"] .axp-pk-q:placeholder-shown,
[dir="rtl"] .axp-ai textarea:placeholder-shown{direction:rtl;text-align:right}
[dir="ltr"] .axp-hs input[dir="auto"]:placeholder-shown,[dir="ltr"] .axp-pk-q:placeholder-shown,
[dir="ltr"] .axp-ai textarea:placeholder-shown{direction:ltr;text-align:left}
.axp-hs-l{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0;font-size:.84rem}
.axp-hs-num{display:inline-grid;place-items:center;flex:none;width:21px;height:21px;border-radius:50%;
	background:var(--ink);color:var(--card);font-size:.72rem;font-weight:700;line-height:1;margin-inline-end:7px}
.axp-hs-req{color:var(--err-ink);font-weight:700;margin-inline-start:3px}
/* "Not required", in red, beside the doctor's name — the client's own instruction, and the one
   optional field a patient might otherwise think the search depends on. */
.axp-hs-opt--red{color:var(--danger-ink);background:var(--danger-bg);border:1px solid var(--danger-line);
	border-radius:999px;padding:1px 8px;font-weight:700;font-size:.72rem;margin-inline-start:6px}
.axp-hs-err{display:flex;align-items:center;gap:6px;margin:2px 0 0;color:var(--err-ink);font-size:.8rem;font-weight:700;line-height:1.45}
.axp-hs-err[hidden]{display:none}
.axp-hs-err::before{content:"!";content:"!" / "";display:inline-grid;place-items:center;flex:none;width:16px;height:16px;border-radius:50%;
	background:var(--err-ink);color:var(--card);font-size:.7rem;font-weight:700}
/* The invalid border must survive hover — the base rules above are (0,3,1) on hover. */
.axp-hs :is(select,input,textarea)[aria-invalid="true"]:not(:disabled):hover{border-color:var(--err-ink)}

/* The divider that says "everything below this line is optional". */
.axp-hs-sep{display:flex;align-items:center;gap:10px;margin:2px 0 0;font-size:.84rem;font-weight:700;color:var(--ink)}
.axp-hs-sep-t{display:inline-flex;align-items:center}
.axp-hs-sep::after{content:"";order:1;flex:1;min-width:16px;border-top:1px dashed var(--field-line)}
.axp-hs-sep .axp-hs-opt{order:2;margin:0}

/* --- the picker's trigger ------------------------------------------------------ */
/* The native select stays in the form, under the button, invisible and untouchable. */
.axp-pk-native{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0;pointer-events:none;margin:0}
/* NOT positioned: the field's icon and chevron are, and they must keep painting above it. */
.axp-pk-btn{width:100%;min-width:0;min-height:50px;display:flex;flex-direction:column;justify-content:center;gap:1px;
	margin:0;text-align:start;font:inherit;font-size:16px;line-height:1.35;color:var(--ink);background:var(--card);
	border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding-block:5px;padding-inline:42px 38px;
	cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .15s ease,box-shadow .15s ease}
.axp-hs-selwrap--plain .axp-pk-btn{padding-inline-start:14px}
.axp-pk-v{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-pk-k{display:block;font-size:.7rem;font-weight:700;color:var(--muted);line-height:1.2}
.axp-pk-btn.is-ph .axp-pk-v{color:var(--muted)}
.axp-pk-btn[aria-invalid="true"] :is(.axp-pk-v,.axp-pk-k){color:var(--body)}
.axp-pk-btn:not(:disabled):hover,.axp-pk-btn[aria-expanded="true"]{border-color:var(--brand)}
.axp-pk-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.axp-pk-btn:disabled{opacity:.85;cursor:not-allowed;background:var(--bg)}
.axp-pk-btn[aria-invalid="true"],.axp-pk-btn[aria-invalid="true"]:not(:disabled):hover,.axp-pk-btn[aria-invalid="true"]:focus-visible{
	border-color:var(--err-ink);background:var(--danger-bg);box-shadow:0 0 0 1px var(--err-ink)}
.axp-hs-fld.is-invalid .axp-hs-selwrap{animation:axp-nudge .32s ease}
@keyframes axp-nudge{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* --- the picker: a sheet on a phone, a popover anywhere wider --------------------- */
.axp-pk{border:0;padding:0;margin:0;background:transparent;color:var(--ink);max-width:none;max-height:none;overflow:visible;text-align:start}
.axp-pk[open]{display:flex;flex-direction:column}
.axp-pk::backdrop{background:rgba(10,22,34,.45)}
.axp-pk.is-pop::backdrop{background:transparent}
.axp-pk-in{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:var(--card);outline:0;
	border:1px solid var(--field-line);border-radius:var(--radius-ctl);box-shadow:0 18px 48px rgba(10,22,34,.24);overflow:hidden}
.axp-pk.is-pop{position:fixed;inset:auto;animation:axp-pop .14s ease}
.axp-pk.is-sheet{position:fixed;inset:auto 0 var(--pk-kb,0px) 0;width:100%;
	max-height:min(86dvh,calc(var(--pk-vh,100dvh) - 12px));animation:alex-sheet .26s cubic-bezier(.16,1,.3,1)}
.axp-pk.is-sheet .axp-pk-in{border-radius:var(--radius-lg) var(--radius-lg) 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
.axp-pk-head{position:relative;flex:none;display:flex;align-items:center;gap:8px;padding-block:16px 6px;padding-inline:16px 8px}
.axp-pk.is-pop .axp-pk-head{display:none}
.axp-pk-grab{position:absolute;top:6px;left:50%;width:42px;height:4px;margin-left:-21px;border-radius:4px;background:var(--line)}
.axp-pk-t{flex:1;min-width:0;margin:0;font-size:1.02rem;line-height:1.4}
.axp-pk-x{flex:none;min-width:44px;min-height:44px;display:grid;place-items:center;border:0;border-radius:var(--radius-sm);
	background:transparent;color:var(--muted);cursor:pointer}
.axp-pk-x:hover{background:var(--bg);color:var(--ink)}
.axp-pk-search{position:relative;flex:none;display:flex;align-items:center;margin:4px 12px 8px}
.axp-pk.is-pop .axp-pk-search{margin-top:10px}
.axp-pk-search[hidden]{display:none}
.axp-pk-search svg{position:absolute;inset-inline-start:12px;color:var(--muted);pointer-events:none}
/* Symmetric padding: the field is dir="auto", so an empty or Latin query flips it to LTR while the
   magnifier stays on the page's start side. See the `.axp-hs-inwrap` note above. */
.axp-pk-q{width:100%;min-height:46px;margin:0;font:inherit;font-size:16px;color:var(--ink);background:var(--bg);
	border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:0 40px;-webkit-appearance:none;appearance:none}
.axp-pk-q::placeholder{color:var(--muted);opacity:1}
.axp-pk-q:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand);background:var(--card)}
.axp-pk-q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.axp-pk-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 10px;-webkit-overflow-scrolling:touch}
.axp-pk-grp[hidden],.axp-pk-o[hidden]{display:none}
.axp-pk-gh{position:sticky;top:0;z-index:1;padding:10px 12px 5px;background:var(--card);font-size:.74rem;font-weight:700;color:var(--muted)}
.axp-pk-o{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border-radius:var(--radius-xs);
	font-size:1rem;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none}
.axp-pk-o:hover{background:var(--brand-50)}
/* Filled AND edged, like the suggestion list: a tint alone is 1.06:1 and not a state. */
.axp-pk-o.is-act{background:var(--brand-100);border-inline-start:3px solid var(--brand);padding-inline-start:9px}
.axp-pk-o.is-cur{font-weight:700;color:var(--brand-700)}
.axp-pk-o[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.axp-pk-ot{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-pk-on{flex:none;min-width:26px;padding:2px 8px;border-radius:999px;background:var(--bg);color:var(--muted);
	font-size:.74rem;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.axp-pk-ck{flex:none;display:grid;color:var(--brand);visibility:hidden}
.axp-pk-o.is-cur .axp-pk-ck{visibility:visible}
.axp-pk-empty{margin:0;padding:22px 16px;text-align:center;color:var(--muted);font-size:.9rem}
.axp-pk-empty[hidden]{display:none}
.axp-pk-foot{flex:none;padding:8px 12px 10px;border-top:1px solid var(--line)}
.axp-pk-foot[hidden]{display:none}
.axp-pk-ai,.axp-vd-ai{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 12px;margin:0;
	border:1px dashed var(--brand);border-radius:var(--radius-ctl);background:var(--brand-50);color:var(--brand-700);
	font:inherit;font-size:.9rem;font-weight:700;text-align:start;cursor:pointer}
.axp-pk-ai:hover,.axp-vd-ai:hover{background:var(--brand-100)}
.axp-pk-ai svg{flex:none;color:var(--brand)}
.axp-pk-ai:focus-visible,.axp-vd-ai:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* --- the hero: what, where, and the optional rest ----------------------------------- */
.axp-hs--hero{gap:14px;padding:16px}
.axp-hs-sec{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.axp-hs--hero .axp-hs-go{width:100%;min-height:54px;font-size:1.05rem}
.axp-hs--hero .axp-hs-foot{justify-content:center}
@media (min-width:640px){
	.axp-hs-sec--where{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
	.axp-hs-sec--more{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:start}
	.axp-hs-sec--more .axp-hs-sep{grid-column:1/-1}
}
@media (min-width:860px){.axp-hs--hero{padding:18px 20px}}

/* --- "not sure which specialty?" ---------------------------------------------------- */
.axp-hs-ai{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px 12px;margin:0;
	border:1px solid var(--brand);border-radius:var(--radius-ctl);
	background:linear-gradient(135deg,var(--brand-50),var(--card) 70%);color:var(--ink);
	font:inherit;text-align:start;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.axp-hs-ai[hidden]{display:none}
.axp-hs-ai:hover{border-color:var(--brand);box-shadow:0 8px 22px var(--cta-glow)}
.axp-hs-ai:active{transform:translateY(1px)}
.axp-hs-ai:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.axp-hs-ai-ic{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;
	background:linear-gradient(160deg,var(--cta-2),var(--cta));color:var(--cta-ink);box-shadow:0 6px 14px var(--cta-glow)}
.axp-hs-ai-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.45}
.axp-hs-ai-t b{font-size:.95rem;color:var(--ink)}
.axp-hs-ai-t span{font-size:.8rem;color:var(--body)}
.axp-hs-ai-go{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
	border:1px solid var(--field-line);background:var(--card);color:var(--brand-700)}
.axp-hs-ai--page{margin-top:10px;min-height:54px}

/* --- the validation popup ------------------------------------------------------------ */
.axp-vd{border:0;padding:0;inset:0;margin:auto;width:min(420px,calc(100% - 32px));max-width:none;height:fit-content;
	max-height:calc(100dvh - 32px);background:transparent;color:var(--ink);overflow:visible;text-align:center}
.axp-vd::backdrop{background:rgba(10,22,34,.5)}
.axp-vd[open]{animation:axp-pop .16s ease}
.axp-vd-in{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 20px 18px;background:var(--card);
	border-radius:var(--radius-lg);box-shadow:0 26px 70px rgba(10,22,34,.34);max-height:calc(100dvh - 32px);overflow-y:auto}
.axp-vd-ic{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--warn-bg);color:var(--warn)}
.axp-vd-t{margin:0;font-size:1.12rem;line-height:1.4}
.axp-vd-d{margin:0;color:var(--body);font-size:.93rem;line-height:1.7;align-self:stretch;text-align:start}
.axp-vd-list{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:4px}
.axp-vd-fix{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 14px;margin:0;
	border:1px solid var(--danger-line);border-radius:var(--radius-ctl);background:var(--danger-bg);color:var(--danger-ink);
	font:inherit;font-size:.98rem;font-weight:700;text-align:start;cursor:pointer}
.axp-vd-fix:hover{border-color:var(--err-ink)}
.axp-vd-fix .axp-hs-num{background:var(--danger-ink);color:var(--danger-bg);margin:0}
.axp-vd-fix-t{flex:1}
.axp-vd-alt{margin:2px 0 0;font-size:.84rem;color:var(--muted);line-height:1.6;align-self:stretch;text-align:start}
.axp-vd-alt[hidden]{display:none}
.axp-vd-alt a{color:var(--brand-700);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.axp-vd-ok{width:100%;min-height:48px;margin:4px 0 0;border:0;border-radius:var(--radius-ctl);background:var(--ink);color:var(--card);
	font:inherit;font-weight:700;cursor:pointer}
.axp-vd-ok:focus-visible,.axp-vd-fix:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:719px){
	.axp-vd{inset:auto 0 0 0;margin:0;width:100%;max-height:88dvh}
	.axp-vd[open]{animation:alex-sheet .26s cubic-bezier(.16,1,.3,1)}
	.axp-vd-in{border-radius:var(--radius-lg) var(--radius-lg) 0 0;max-height:88dvh;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}
/* showModal() throwing is rare but real; the attribute fallback is a non-modal dialog in normal flow. */
.axp-vd.is-fallback,.axp-ai.is-fallback{position:fixed;z-index:1000;box-shadow:0 0 0 100vmax rgba(10,22,34,.55)}

/* --- the symptom wizard -------------------------------------------------------------- */
.axp-ai{border:0;padding:0;inset:0;margin:auto;width:min(640px,calc(100% - 32px));max-width:none;
	height:min(780px,calc(100dvh - 40px));max-height:none;background:transparent;color:var(--ink);overflow:visible;text-align:start}
.axp-ai[open]{display:flex;animation:axp-pop .18s ease}
.axp-ai::backdrop{background:rgba(10,22,34,.55)}
.axp-ai-in{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--card);
	border-radius:var(--radius-lg);box-shadow:0 26px 70px rgba(10,22,34,.34);overflow:hidden}
.axp-ai-head{flex:none;display:flex;align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;border-bottom:1px solid var(--line)}
.axp-ai-prog{flex:none;display:flex;align-items:center;gap:4px}
.axp-ai-dot{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--field-line);
	background:var(--bg);color:var(--muted);font-size:.8rem;font-weight:700}
.axp-ai-dot.is-on{background:var(--ink);border-color:var(--ink);color:var(--card)}
.axp-ai-dot.is-done{background:var(--ok-bg);border-color:var(--ok);color:var(--ok-ink)}
.axp-ai-line{width:16px;height:2px;border-radius:2px;background:var(--line)}
.axp-ai-titles{flex:1;min-width:0}
.axp-ai-stepl{margin:0;font-size:.74rem;font-weight:700;color:var(--muted)}
.axp-ai-t{margin:0;font-size:1.12rem;line-height:1.35;outline:0}
.axp-ai-x{flex:none;min-width:44px;min-height:44px;display:grid;place-items:center;border:0;border-radius:var(--radius-sm);
	background:transparent;color:var(--muted);cursor:pointer}
.axp-ai-x:hover{background:var(--bg);color:var(--ink)}
.axp-ai-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;-webkit-overflow-scrolling:touch}
.axp-ai-pane{display:flex;flex-direction:column;gap:14px}
.axp-ai-pane[hidden]{display:none}
.axp-ai-safe{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 12px;border-radius:var(--radius-ctl);
	background:var(--ok-bg);color:var(--body);font-size:.82rem;line-height:1.65}
.axp-ai-safe svg{flex:none;margin-top:2px;color:var(--ok)}
/* The microphone is the biggest control on the step: on a phone it is the fastest way to answer. */
.axp-ai-voice{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--field-line);border-radius:var(--radius-lg);
	background:linear-gradient(160deg,var(--brand-50),var(--card) 75%);transition:border-color .2s ease}
.axp-ai-voice[hidden]{display:none}
.axp-ai-voice.is-rec{border-color:#c0392b}
.axp-ai-mic{position:relative;flex:none;display:grid;place-items:center;width:78px;height:78px;padding:0;border:0;border-radius:50%;
	background:linear-gradient(160deg,var(--cta-2),var(--cta));color:var(--cta-ink);cursor:pointer;box-shadow:0 10px 26px var(--cta-glow);
	transition:transform .15s ease}
.axp-ai-mic:hover{transform:scale(1.04)}
.axp-ai-mic:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.axp-ai-mic-off{display:none}
.axp-ai-mic.is-busy{opacity:.8}
.axp-ai-mic.is-rec{background:#c0392b;color:#fff;box-shadow:0 10px 26px rgba(192,57,43,.35)}
.axp-ai-mic.is-rec .axp-ai-mic-on{display:none}
.axp-ai-mic.is-rec .axp-ai-mic-off{display:block}
.axp-ai-mic-ring{position:absolute;inset:-7px;border-radius:50%;border:3px solid rgba(192,57,43,.5);opacity:0;pointer-events:none}
.axp-ai-mic.is-rec .axp-ai-mic-ring{animation:axp-ring 1.3s ease-out infinite}
@keyframes axp-ring{0%{transform:scale(.92);opacity:.95}100%{transform:scale(1.32);opacity:0}}
.axp-ai-vtxt{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.axp-ai-vs{margin:0;font-size:.95rem;font-weight:700;line-height:1.55;color:var(--ink)}
.axp-ai-vs.is-err{color:var(--err-ink)}
.axp-ai-vlang{position:relative;display:inline-flex;align-self:flex-start;border:1px solid var(--field-line);border-radius:999px;
	overflow:hidden;background:var(--card)}
.axp-ai-vlang input{position:absolute;opacity:0;width:1px;height:1px}
.axp-ai-vlang label{display:flex;align-items:center;min-height:44px;padding:0 16px;font-size:.8rem;font-weight:700;color:var(--muted);cursor:pointer}
.axp-ai-vlang input:checked+label{background:var(--ink);color:var(--card)}
.axp-ai-vlang input:focus-visible+label{outline:2px solid var(--brand);outline-offset:-3px}
@media (max-width:479px){.axp-ai-voice{flex-direction:column;text-align:center}.axp-ai-vlang{align-self:center}}
.axp-ai-l{font-size:.86rem;font-weight:700;color:var(--ink)}
.axp-ai-ta{position:relative}
.axp-ai-ta textarea{display:block;width:100%;min-height:108px;margin:0;resize:vertical;font:inherit;font-size:16px;line-height:1.65;
	color:var(--ink);background:var(--card);border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:12px 14px 30px}
.axp-ai-ta textarea::placeholder{color:var(--muted);opacity:1}
.axp-ai-ta textarea:hover{border-color:var(--brand)}
.axp-ai-ta textarea:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.axp-ai-ta textarea[aria-invalid="true"],.axp-ai-ta textarea[aria-invalid="true"]:hover{border-color:var(--err-ink);box-shadow:0 0 0 1px var(--err-ink)}
.axp-ai-cnt{position:absolute;bottom:8px;inset-inline-end:12px;font-size:.72rem;color:var(--muted);pointer-events:none;font-variant-numeric:tabular-nums}
.axp-ai-cnt.is-near{color:var(--warn);font-weight:700}
.axp-ai-err{margin:0;color:var(--err-ink);font-size:.86rem;font-weight:700;line-height:1.55}
.axp-ai-err:empty{display:none}
.axp-ai-novoice{margin:0;font-size:.82rem;line-height:1.6;color:var(--muted)}
.axp-ai-novoice[hidden]{display:none}
.axp-ai-ex{display:flex;flex-wrap:wrap;gap:8px}
.axp-ai-chip{min-height:44px;padding:6px 14px;margin:0;border:1px solid var(--field-line);border-radius:999px;background:var(--bg);
	color:var(--body);font:inherit;font-size:.82rem;font-weight:600;cursor:pointer}
.axp-ai-chip:hover{border-color:var(--brand);color:var(--brand-700)}
.axp-ai-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.axp-ai-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin:0;border:0;
	border-radius:var(--radius-ctl);background:var(--ink);color:var(--card);font:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.axp-ai-go:hover{filter:brightness(1.12)}
.axp-ai-go:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.axp-ai-go[disabled]{opacity:.7;cursor:progress}
.axp-ai-go.is-busy svg{animation:alex-spin 1.1s linear infinite}
.axp-ai-out{display:flex;flex-direction:column;gap:10px}
.axp-ai-out:empty{display:none}
.axp-ai-alert{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 14px;border-radius:var(--radius-ctl);font-size:.88rem;line-height:1.65}
.axp-ai-alert--emg{background:var(--danger-bg);color:var(--danger-ink);border:1px solid var(--danger-line)}
.axp-ai-alert--emg a{color:var(--danger-ink);font-weight:700;text-decoration:underline}
.axp-ai-alert--warn{background:var(--warn-bg);color:var(--ink);border:1px solid var(--field-line)}
.axp-ai-alert--info{background:var(--brand-50);color:var(--ink);border:1px solid var(--brand-100)}
.axp-ai-retry{min-height:44px;padding:0 14px;margin:0;border:1px solid var(--field-line);border-radius:999px;background:var(--card);
	color:var(--ink);font:inherit;font-size:.84rem;font-weight:700;cursor:pointer}
.axp-ai-retry:hover{border-color:var(--brand)}
.axp-ai-load{display:flex;flex-direction:column;gap:8px}
.axp-ai-load p{margin:0;font-size:.88rem;font-weight:700;color:var(--body)}
.axp-ai-sk{height:66px;border-radius:var(--radius-ctl);background:linear-gradient(90deg,var(--bg) 0%,var(--line-2) 50%,var(--bg) 100%);
	background-size:200% 100%;animation:alex-shimmer 1.2s linear infinite}
.axp-ai-rh{margin:4px 0 0;font-size:1rem;outline:0}
.axp-ai-rsub{margin:-4px 0 0;font-size:.8rem;color:var(--muted)}
.axp-ai-opts{display:flex;flex-direction:column;gap:12px;padding-top:6px}
.axp-ai-opt{position:relative;display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--field-line);
	border-radius:var(--radius-ctl);background:var(--card);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}
.axp-ai-opt:hover{border-color:var(--brand)}
.axp-ai-opt:has(input:checked){border-color:var(--gold);background:var(--brand-50);box-shadow:0 0 0 1px var(--gold)}
.axp-ai-opt input{flex:none;width:20px;height:20px;margin:3px 0 0;accent-color:var(--gold)}
.axp-ai-opt input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.axp-ai-opt-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.axp-ai-opt-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.axp-ai-opt-n{min-width:0;font-size:1rem;font-weight:700;color:var(--ink)}
.axp-ai-pct{flex:none;font-size:1rem;font-weight:700;color:var(--brand-700);font-variant-numeric:tabular-nums;unicode-bidi:isolate}
.axp-ai-bar{display:block;height:8px;border-radius:999px;background:var(--bg);border:1px solid var(--line);overflow:hidden}
.axp-ai-bar i{display:block;height:100%;border-radius:inherit;background:var(--gold)}
.axp-ai-why{font-size:.8rem;line-height:1.55;color:var(--muted)}
.axp-ai-why bdi{color:var(--body);font-weight:600}
.axp-ai-cn{font-size:.76rem;color:var(--muted)}
.axp-ai-best{position:absolute;top:-10px;inset-inline-end:12px;padding:1px 9px;border-radius:999px;border:1px solid var(--ok);
	background:var(--ok-bg);color:var(--ok-ink);font-size:.7rem;font-weight:700}
.axp-ai-manual{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px dashed var(--field-line)}
.axp-ai-ml{margin:0;font-size:.86rem;font-weight:700;color:var(--ink)}
.axp-ai-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:12px 14px;border-radius:var(--radius-ctl);
	background:var(--brand-50);border:1px solid var(--brand-100);font-size:.92rem}
.axp-ai-chosen-l{color:var(--muted);font-weight:600}
.axp-ai-chosen b{color:var(--ink)}
.axp-ai-link{margin-inline-start:auto;min-height:44px;min-width:44px;padding:0 6px;border:0;background:none;color:var(--brand-700);font:inherit;
	font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.axp-ai-foot{flex:none;display:flex;gap:10px;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));
	border-top:1px solid var(--line);background:var(--card)}
.axp-ai-back{flex:none;min-height:52px;padding:0 18px;margin:0;border:1px solid var(--field-line);border-radius:var(--radius-ctl);
	background:transparent;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.axp-ai-back:hover{border-color:var(--brand)}
.axp-ai-next{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;margin:0;border:0;
	border-radius:var(--radius-ctl);background:var(--gold);color:var(--gold-ink);font:inherit;font-size:1.02rem;font-weight:700;cursor:pointer}
.axp-ai-next:hover{filter:brightness(1.05)}
.axp-ai-back:focus-visible,.axp-ai-next:focus-visible,.axp-ai-x:focus-visible,.axp-ai-link:focus-visible,.axp-ai-retry:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* The arrow is drawn pointing to the reading direction's "forward" in Arabic; mirror it for English. */
[dir="ltr"] .axp-hs-arrow{transform:scaleX(-1)}
@media (max-width:719px){
	.axp-ai{inset:0;margin:0;width:100%;height:100%;height:100dvh}
	.axp-ai[open]{animation:alex-sheet .28s cubic-bezier(.16,1,.3,1)}
	.axp-ai-in{border-radius:0}
	.axp-ai-head{padding-top:calc(10px + env(safe-area-inset-top))}
	.axp-ai-body{padding:14px}
}

/* --- the results bar: a summary + sheet under 1024px, one row above it -------------------- */
.axp-sb .search-bar-in{gap:8px}
.axp-hs--bar{display:block;flex:1;min-width:0;margin:0}
.axp-sb-sum{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:56px;padding:6px;padding-inline-start:12px;
	border:1px solid var(--field-line);border-radius:var(--radius-ctl);background:var(--bg);color:var(--ink);transition:border-color .15s ease}
.axp-sb-sum:hover{border-color:var(--brand)}
.axp-sb-sum:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.axp-sb-sum-ic{flex:none;display:grid;color:var(--muted)}
.axp-sb-sum-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.axp-sb-sum-t b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-sb-sum-t span{font-size:.78rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.axp-sb-sum-cta{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 12px;border-radius:calc(var(--radius-ctl) - 3px);
	background:var(--gold);color:var(--gold-ink);font-size:.86rem;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px var(--cta-glow)}
@media (max-width:359px){
	.axp-sb-sum-cta span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.axp-sb-sum-cta{padding:0 11px}
}
.axp-cs{border:0;padding:0;background:transparent;max-width:none;max-height:none;color:var(--ink);text-align:start}
.axp-cs:not([open]){display:none}
.axp-cs::backdrop{background:rgba(15,27,38,.5)}
.axp-cs[open]{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-height:92dvh;display:flex;flex-direction:column;background:var(--card);
	border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -8px 40px rgba(0,0,0,.25);animation:alex-sheet .26s cubic-bezier(.16,1,.3,1)}
.axp-cs-head{position:relative;flex:none;display:flex;align-items:center;gap:8px;padding-block:18px 10px;padding-inline:16px 10px;border-bottom:1px solid var(--line)}
.axp-cs-t{flex:1;min-width:0;margin:0;font-size:1.08rem;outline:0}
.axp-cs-x{flex:none;min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:var(--radius-sm);color:var(--muted)}
.axp-cs-x:hover{background:var(--bg);color:var(--ink)}
.axp-cs-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;display:flex;flex-direction:column;gap:12px;
	-webkit-overflow-scrolling:touch}
.axp-cs-what{display:flex;flex-direction:column;gap:10px}
.axp-cs-foot{flex:none;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--card)}
.axp-cs-foot .axp-hs-go{width:100%;min-height:52px}
.axp-cs .axp-pk-k{display:none}
@media (min-width:720px) and (max-width:1023px){
	.axp-cs[open]{inset:0;margin:auto;width:min(560px,calc(100% - 48px));height:fit-content;max-height:86dvh;border-radius:var(--radius-lg);animation:axp-pop .16s ease}
}
/* Without JavaScript the summary is a link to #hs-cs, and :target opens the same sheet. */
@media (max-width:1023px){
	.axp-cs:target{display:flex!important;position:fixed;inset:auto 0 0 0;z-index:80;margin:0;width:100%;max-height:92dvh;flex-direction:column;
		background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -8px 40px rgba(0,0,0,.25)}
	.axp-cs:target::before{content:"";position:fixed;inset:0;background:rgba(15,27,38,.5);z-index:-1}
	/* The sheet lives inside .search-bar, a sticky z-index:40 stacking context, so its own z-index
	   is capped at 40 — under .nav (50) and the bottom nav (55), which then covered its Search
	   button. The JS path is in the top layer and never had this problem; the :target path lifts
	   the whole bar while its sheet is open. */
	.search-bar:has(.axp-cs:target){z-index:95}
}
@supports not selector(:has(*)){
	@media (max-width:899px){.axp-cs:target .axp-cs-foot{padding-bottom:calc(78px + env(safe-area-inset-bottom))}}
}
@media (min-width:720px) and (max-width:1023px){
	.axp-cs:target{inset:0;margin:auto;width:min(560px,calc(100% - 48px));height:fit-content;max-height:86dvh;border-radius:var(--radius-lg)}
}
@media (min-width:1024px){
	.axp-sb .search-bar-in{max-width:var(--wrap)}
	.axp-sb-sum{display:none}
	.axp-cs,.axp-cs:not([open]){position:static;display:flex!important;flex-direction:row;align-items:stretch;gap:8px;inset:auto;margin:0;padding:0;
		width:100%;max-width:none;max-height:none;background:transparent;border-radius:0;box-shadow:none;animation:none}
	.axp-cs::backdrop{background:transparent}
	.axp-cs-head{display:none}
	.axp-cs-body{flex:1;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.85fr) minmax(0,1.1fr) auto;gap:8px;padding:0;overflow:visible}
	.axp-cs-what{display:contents}
	.axp-cs .axp-hs-l,.axp-cs .axp-hs-gender>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.axp-cs .axp-hs-err,.axp-cs .axp-hs-sep,.axp-cs .axp-hs-ai,.axp-cs .axp-hs-fld--q{display:none!important}
	.axp-cs .axp-hs-fld{gap:0}
	.axp-cs .axp-pk-k{display:block}
	.axp-cs .axp-pk-btn{min-height:56px;padding-block:6px}
	.axp-cs .axp-hs-seg label{min-height:56px;padding-inline:14px}
	.axp-cs-foot{flex:none;padding:0;border:0;background:transparent}
	.axp-cs-foot .axp-hs-go{min-height:56px;height:100%;padding-inline:26px}
}

@media (prefers-reduced-motion:reduce){
	.axp-pk.is-pop,.axp-pk.is-sheet,.axp-vd[open],.axp-ai[open],.axp-cs[open]{animation:none}
	.axp-hs-fld.is-invalid .axp-hs-selwrap,.axp-ai-sk,.axp-ai-go.is-busy svg{animation:none}
	.axp-ai-mic.is-rec .axp-ai-mic-ring{animation:none;opacity:1;transform:none}
	.axp-ai-mic:hover,.axp-hs-ai:active{transform:none}
	.axp-hs-ai{transition:none}
}
@media (forced-colors:active){
	.axp-pk-o.is-act,.axp-ai-opt:has(input:checked){outline:2px solid Highlight;outline-offset:-2px}
	.axp-pk-btn[aria-invalid="true"],.axp-ai-mic.is-rec{outline:2px solid Highlight;outline-offset:2px}
	.axp-ai-bar i{forced-color-adjust:none;background:Highlight}
}

/* --- after the four-lens verification pass ------------------------------------------ */
/* The doctor-name list FLOWS under its field on the hero and in the sheet. Absolutely positioned,
   it opened straight over the submit button below it, so a tap on "Show doctors" landed on a
   stranger's profile — and inside the sheet it opened into the clipped part of the scroll box. */
.axp-hs--hero .axp-hs-list,.axp-cs .axp-hs-list{position:static;margin-top:6px;box-shadow:none;max-height:min(300px,45dvh)}
/* Phones: the summary needs the width the old square Filters button and the leading icon took.
   The "غيّر البحث" label stays — it is the control the client asked to see. */
.axp-sb .sb-filters{min-height:56px}
@media (max-width:559px){
	.axp-sb .sb-filters{position:relative;min-width:52px;padding-inline:0;justify-content:center}
	.axp-sb .sb-filters .sb-count{position:absolute;top:5px;inset-inline-end:5px}
}
@media (max-width:479px){
	.axp-sb-sum-ic{display:none}
	.axp-sb-sum{padding-inline-start:12px}
}
/* 1024-1179: the row is tight enough that the field icons cost the values their room. */
@media (min-width:1024px) and (max-width:1179px){
	.axp-cs .axp-hs-ico{display:none}
	.axp-cs .axp-pk-btn{padding-inline-start:14px}
}
/* An overflowing placeholder ends in an ellipsis instead of being cut mid-word. */
.axp-hs input[type=search]{text-overflow:ellipsis}
.axp-hs input::placeholder{text-overflow:ellipsis}
/* 320px English: the header's controls did not fit and widened the layout viewport by 9px, which
   also left a strip of backdrop under every full-screen dialog. */
@media (max-width:359px){
	.nav-in{gap:8px}
	.nav-right{gap:4px}
}
.empty-near{margin-top:1rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
