/* MedCairo front-end design system — RTL-first, mobile-first, lean (no framework).
   Accent: Cairo brick red, from the MedCairo wordmark. Type: self-hosted Cairo (see fonts.css).
   Geometry: SQUARED and architectural — no pill buttons, flat shadows, 1px card borders.
   Motion: subtle, reduced-motion aware. */

:root{
	/* The brick-red ramp. --brand is the readable mid (6.11:1 on --card, and white on it is the
	   same 6.11:1, so it works as ink AND as a fill); --brand-700 is the LINK end (10.40:1 on
	   --card, 9.48:1 on --brand-50) and is what every body-copy link uses.

	   --gold keeps its token NAME so nothing downstream breaks, but it is no longer a metal: it
	   is the BRIGHT CTA SURFACE, and it now carries WHITE ink (#FFFFFF on #CE3A2E = 4.92:1)
	   where the origin's gold carried near-black. That inversion is the one change in this file
	   with a blast radius: five rules wrote a literal dark ink (#141b24) onto a var(--gold)
	   fill, which would have shipped 3.3:1 buttons. They all read var(--gold-ink) now. If you
	   ever retune --gold, retune --gold-ink with it and nothing else has to move. */
	--brand:#B2352A; --brand-600:#95291F; --brand-700:#782018; --brand-50:#FDF2F0; --brand-100:#F6D2CC;
	--gold:#CE3A2E; --gold-ink:#FFFFFF;
	/* Membership tier accents (Gold > Silver > Bronze). Unchanged from the origin on purpose:
	   these are MEMBERSHIP SEMANTICS, not brand colour, and a patient reading "gold doctor"
	   expects gold. They are the only non-brick accents left in the light palette. */
	--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);
	/* Warm neutrals, not the origin's cool blue-greys: every one of these is mixed toward the
	   brick, so a page of body copy sits in the same temperature as the accent on it.
	   Measured on --card #FFFFFF: --ink 17.98:1, --body 9.83:1, --muted 5.06:1. On --bg
	   #FAF7F6: --body 9.23:1, --muted 4.75:1.
	   --muted is one step darker than the brand spec's #6A7381, which measures 4.496:1 on
	   --bg — i.e. it rounds to 4.5 and is not 4.5. It is the colour of every secondary line
	   on the site, so it is the last token that should be sitting on the boundary.
	   It is still NOT dark enough for text on --line-2 (4.35:1): the two rules that used to
	   do that — .chip-n and .doc-rate--new — now use --body instead. */
	--ink:#14171B; --body:#3D444E; --muted:#676F7D; --line:#E8E3E1; --line-2:#F1EDEB;
	/* --line SEPARATES blocks of content, and 1.27: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: #998C88 is 3.25:1 on #FFFFFF and 3.05:1 on --bg #FAF7F6, so it holds whether the
	   control sits on a card or on the page.

	   DEVIATION FROM THE BRAND SPEC, on purpose. The spec sets --field-line:#C2B9B6 and
	   annotates it "3.0:1 on #FFFFFF". It is not: #C2B9B6 measures 1.93:1, i.e. below even the
	   --brand-100 value the origin had already rejected for exactly this reason. The hue is the
	   spec's warm taupe; only the lightness moved, far enough to clear 3:1. --brand-100 stays,
	   for decorative fills and chip edges. */
	--field-line:#998C88;
	/* The suggestion modal's semantic colours, and the form's error channel. These were four
	   hardcoded light-only values with no dark counterpart anywhere in the file, so in dark mode
	   the emergency notice — the single element in this product that carries 123 and 112 —
	   rendered as a bright pink slab inside a dark dialog, and the voice-recognition error
	   text measured 3.02:1 on the same card. Every other dark override here is deliberately
	   written twice; these were written zero times.
	   Deliberately NOT re-hued toward the brand: the brand is now itself a red, and an alert
	   channel that shares the brand's hue stops reading as an alert. This is the one place in
	   the file where staying cool-red against a warm-red brand is the accessible choice. */
	--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;
	/* Warm off-white, not the origin's cool #f6f9fb. */
	--bg:#FAF7F6; --card:#FFFFFF; --ok:#1D7A52; --ok-bg:#E6F5EE; --warn:#A85818; --warn-bg:#FDF0E6;
	/* The single card CTA. Deliberately the DEEP end of the brick ramp rather than a
	   contrasting colour: a navy slab repeated twelve times down a warm results page reads as a
	   second brand. Depth, not hue, is what separates it from the bright --gold fill in the
	   header — and white on #8F231B is 8.66:1, on #B2352A 6.11:1, so the gradient passes AA at
	   both ends. */
	--cta:#8F231B; --cta-2:#B2352A; --cta-ink:#FFFFFF; --cta-glow:rgba(178,53,42,.30);
	/* The full-bleed "for doctors" band, and anything else that has to be a dark brick slab
	   with white text in BOTH themes. A token rather than two literals because the brick ramp
	   INVERTS between themes: a band built from --cta/--brand-700 would be deep red in light and
	   pale coral in dark, and white on pale coral is ~3:1. White on --band is 8.66:1 and on
	   --band-2 13.01:1 here, 10.37:1 / 15.85:1 in dark. */
	--band:#8F231B; --band-2:#5E1811; --band-ink:#FFFFFF;
	/* GEOMETRY — the loudest differentiator against the origin, which was a pill system
	   (--radius:14px, --radius-lg:22px, buttons at 999px). MedCairo is squared and
	   architectural. --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-btn and --radius-chip are new and exist so the two shapes the brand is
	   recognised by are stated once: a 9px button and a 6px chip/tab/badge. Nothing in this
	   file may write 999px on a button, chip, tab or badge again — the only survivors of that
	   value are the two SWITCH tracks (.tt-track, .medc-cc-sw-t) and the round dismiss/dot
	   affordances, which are shapes with a meaning rather than corner styling. */
	--radius:10px; --radius-sm:7px; --radius-lg:14px; --radius-ctl:8px; --radius-xs:5px;
	--radius-btn:9px; --radius-chip:6px;
	/* Much flatter than the origin's. Cards carry a 1px --line border and this shadow, so depth
	   comes from the EDGE, not from a 24px blur. --shadow-md was referenced by .gallery-item's
	   hover and never defined anywhere in the origin file — an undefined custom property makes
	   the whole box-shadow declaration invalid at computed-value time, so that hover state has
	   simply never painted. It is defined now. */
	--shadow:0 1px 2px rgba(20,23,27,.05),0 6px 18px rgba(20,23,27,.06);
	--shadow-sm:0 1px 2px rgba(20,23,27,.06);
	--shadow-md:0 2px 6px rgba(20,23,27,.06),0 10px 26px rgba(20,23,27,.10);
	--wrap:1180px; --nav-h:68px;
	/* Cairo, self-hosted at 400/500/700 (assets/fonts/cairo-6|7|8.woff2, wired in fonts.css). */
	--sans:"Cairo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
	--nav-bg:rgba(255,255,255,.9); --hero-1:#FDF2F0; --hero-2:var(--bg);
	/* MedCairo's own accents. --nile is the river band in the hero scene and the secondary data
	   accent (5.66:1 on --card, so it may carry text); --nile-2 is 3.53:1 and is NON-TEXT only
	   (strokes, fills, the far wave). --sand is 2.42:1 on --card — it is the minaret/dome
	   highlight in the hero scene and nothing else. Do not put a label in --sand. */
	--nile:#1E6F8C; --nile-2:#2E93B4; --sand:#C9A227;
	/* 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 in the footer
	   rules. Ratios on --foot-bg: --foot-ink 10.84:1, --foot-hi 17.62:1, --foot-muted 6.44:1,
	   --foot-dim 4.74:1. --foot-dim is the copyright line, i.e. real body text, which is why it
	   is one step lighter than the spec's #847C78 (4.31:1, under the floor). */
	--foot-bg:#16191E; --foot-ink:#CFCAC7; --foot-hi:#FFFFFF;
	--foot-muted:#A29B97; --foot-dim:#8B837F; --foot-line:#2A2E35;
	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).
   The two blocks below are IDENTICAL BY DESIGN and must stay that way: the first fires only
   once the visitor has actually clicked the toggle, the second covers everyone whose OS is
   dark and who never touched it. Change a value in one, change it in both. */
:root[data-theme="dark"]{
	/* --brand-700 is #E4695B, not the spec's #D95A4B. In dark the ramp inverts and --brand-700
	   becomes the DARKEST coral, i.e. the least readable — and it is the link colour. #D95A4B
	   measures 4.34:1 on --card and 3.90:1 on --brand-100, so every hovered chip and every
	   highlighted suggestion row would have failed. #E4695B is 5.09:1 on --card, 5.22:1 on
	   --brand-50 and 4.58:1 on --brand-100. It sits very close to --brand-600, which costs
	   nothing: --brand-600 is not referenced by a single rule in this file. */
	--brand:#F0786A; --brand-600:#E86A5B; --brand-700:#E4695B; --brand-50:#2A1815; --brand-100:#3A211C;
	--gold:#E8604F; --gold-ink:#1A0B08;
	--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:#232c36; --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:#F4F1F0; --body:#CDC6C3; --muted:#948C89; --line:#2C2F35; --line-2:#23262B;
	--bg:#131518; --card:#1C1F24; --ok:#4ade80; --ok-bg:#123227; --warn:#fb9a5a; --warn-bg:#33230f;
	/* --cta-2 is #D6402F, not the spec's #E24C3F. .btn-cta paints white on a
	   linear-gradient(180deg,--cta-2,--cta), so --cta-2 is the top HALF of a button carrying a
	   label: white on #E24C3F is 3.93:1. #D6402F is 4.53:1. The gradient is nearly flat as a
	   result, which is the intended look in a system this square anyway. The origin's dark
	   --cta-glow was a gold rgba; it follows --cta-2. */
	--cta:#CE3A2E; --cta-2:#D6402F; --cta-ink:#FFFFFF; --cta-glow:rgba(214,64,47,.32);
	--band:#7A1E17; --band-2:#43110D; --band-ink:#FFFFFF;
	/* #646C76, not the spec's #575E66 (2.52:1 on --card). Control borders need 3:1 in BOTH
	   themes; this is 3.11:1 on --card and 3.44:1 on --bg. Worth noting for anyone comparing
	   with the origin: the origin's dark value #4a5866 shipped under a comment claiming 3.02:1
	   and actually measured 2.28:1, so dark-mode field borders have never met 1.4.11 here
	   until now. */
	--field-line:#646C76;
	--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 1px 2px rgba(0,0,0,.32),0 6px 18px rgba(0,0,0,.38);
	--shadow-sm:0 1px 2px rgba(0,0,0,.32);
	--shadow-md:0 2px 6px rgba(0,0,0,.4),0 10px 26px rgba(0,0,0,.45);
	--nav-bg:rgba(19,21,24,.88); --hero-1:#241412; --hero-2:var(--bg);
	/* The spec gives --nile/--nile-2/--sand once, as light values. On a #1C1F24 card #1E6F8C is
	   2.92:1, so the light values cannot be reused for anything that carries text or has to be
	   seen as a boundary. These are the dark twins: --nile 6.15:1, --nile-2 8.67:1. --sand is
	   still scene-only. */
	--nile:#57A8C5; --nile-2:#7FC6DD; --sand:#D9B54A;
}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]){
	--brand:#F0786A; --brand-600:#E86A5B; --brand-700:#E4695B; --brand-50:#2A1815; --brand-100:#3A211C;
	--gold:#E8604F; --gold-ink:#1A0B08;
		--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:#232c36; --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:#F4F1F0; --body:#CDC6C3; --muted:#948C89; --line:#2C2F35; --line-2:#23262B;
		--bg:#131518; --card:#1C1F24; --ok:#4ade80; --ok-bg:#123227; --warn:#fb9a5a; --warn-bg:#33230f;
		--cta:#CE3A2E; --cta-2:#D6402F; --cta-ink:#FFFFFF; --cta-glow:rgba(214,64,47,.32);
		--band:#7A1E17; --band-2:#43110D; --band-ink:#FFFFFF;
		--field-line:#646C76;
		--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 1px 2px rgba(0,0,0,.32),0 6px 18px rgba(0,0,0,.38);
		--shadow-sm:0 1px 2px rgba(0,0,0,.32);
		--shadow-md:0 2px 6px rgba(0,0,0,.4),0 10px 26px rgba(0,0,0,.45);
		--nav-bg:rgba(19,21,24,.88); --hero-1:#241412; --hero-2:var(--bg);
		--nile:#57A8C5; --nile-2:#7FC6DD; --sand:#D9B54A;
	}
}
*{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}
/* 15.5px / 1.7, not the origin's 16px / 1.65. Cairo renders optically larger than Tajawal at
   the same px — its x-height is taller and its Arabic bowls are wider — so the same number set
   a heavier page. The line-height goes UP as the size comes down because Cairo's ascenders and
   its Arabic diacritics need the room; at 1.65 the tashkeel on one line touched the descenders
   of the line above. Note this changes only what INHERITS from body: every rem in this file
   still resolves against the 16px root, so no control, heading or icon shrinks with it — which
   is also why the 16px iOS-zoom floor on the search inputs is untouched. */
body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--body);line-height:1.7;font-size:15.5px;
	-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:var(--radius-xs)}
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, not 800. fonts.css ships Cairo at 400, 500 and 700 for all three unicode ranges
   (cairo-6 arabic, cairo-7 latin-ext, cairo-8 latin) — there is no 800 face, so CSS font
   matching resolves 800 DOWN to 700 and the declaration would only ever state an intent the
   stylesheet cannot honour. Left at 800 it is also a trap: if a weight-limited subset is ever
   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.

   -.015em, tightened from the origin's -.01em because Cairo sets looser than Tajawal at
   display sizes. It reaches LATIN ONLY: `:lang(ar){letter-spacing:0}` further down is (0,1,0)
   and out-specifies this (0,0,4) selector, which is the mechanism that keeps negative tracking
   off a joining script. Do not raise this selector's specificity without checking that. */
h1,h2,h3,h4{color:var(--ink);line-height:1.2;margin:0;font-weight:700;letter-spacing:-.015em}
/* h5/h6 had no reset at all, so they kept the UA's ~1.67em block margins. The footer's column
   heads are h5s, and on mobile that margin sat INSIDE each accordion row above the label — every
   row was 80px tall with its label pushed to the bottom third. */
h5,h6{margin:0}
/* Balanced headings: a two-line Arabic title with one orphaned word on line two is the most
   common ragged edge on this site. Progressive — engines without text-wrap ignore it. */
h1,h2,h3{text-wrap:balance}
::selection{background:var(--brand-100);color:var(--ink)}
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}
/* The brand motif: a short 3px brick rule above every section heading. It is a ::before on
   the heading rather than a border on a wrapper so it travels with the heading wherever the
   heading goes, and so no template has to add an element for it. block, not inline-block, so
   it takes its own line and the heading's own margin still works.
   3px of --brand on --bg is 5.73:1 in light and 6.62:1 in dark, far past the 3:1 a non-text
   graphic needs — it is a brand mark, not a decoration that can afford to be invisible. */
.h-sec{font-size:clamp(1.5rem,3.4vw,2.15rem);margin-bottom:.4rem}
.h-sec::before{content:"";display:block;inline-size:34px;block-size:3px;margin-block-end:.6rem;
	background:var(--brand);border-radius:2px}
/* A centred heading needs its rule centred with it, and the rule is a block box, so
   text-align cannot move it — the auto inline margins can. */
.center .h-sec::before,.h-sec.center::before{margin-inline:auto}
.sub-sec{color:var(--muted);max-width:60ch}
.center{text-align:center;margin-inline:auto}

/* Buttons */
/* var(--radius-btn) = 9px, NOT 999px. The pill is the origin's signature and squaring it is
   the single most visible thing in this file. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;font-size:.95rem;
	padding:.72rem 1.3rem;border-radius:var(--radius-btn);border:1px solid transparent;
	transition:transform .15s,background-color .15s,border-color .15s,color .15s,box-shadow .15s,filter .15s;
	white-space:nowrap;line-height:1.5;min-height:46px;font-family:inherit;text-decoration:none;
	-webkit-user-select:none;user-select:none;touch-action:manipulation}
.btn:active{transform:translateY(1px)}
.btn svg{flex:0 0 auto}
/* A visible ring that clears the button's own fill and glow — the global 2px outline sat ON a
   2px brick shadow and disappeared into it on every primary button. */
.btn:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:var(--radius-btn)}
/* THE primary fill, shared with .btn-cta and every bespoke main action (.mdc-hs-go, .mdc-ai-next,
   .medc-pwa-yes …): the deep brick gradient with white ink in both themes. The flat --gold fill
   used to ship beside it — bright red here, coral with near-black ink in dark — so two "main"
   buttons with different colours and inks sat on one screen. */
.btn-primary{background:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);border-color:var(--cta);
	box-shadow:0 1px 1px rgba(20,23,27,.08),0 2px 8px var(--cta-glow)}
.btn-primary:hover{background:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);filter:brightness(1.14);
	box-shadow:0 1px 1px rgba(20,23,27,.08),0 4px 14px var(--cta-glow)}
.btn-ghost{background:var(--card);color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand-700)}
.btn-sm{padding:.5rem .9rem;font-size:.85rem;min-height:40px}
/* .btn-lg was used by the app page's install button and defined nowhere. */
.btn-lg{padding:.85rem 1.7rem;font-size:1.02rem;min-height:52px}
.btn-block{display:flex;width:100%}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.6;cursor:not-allowed;filter:none;transform:none}
/* Touch: every button reaches the 44px floor, including the compact size. */
@media (pointer:coarse){.btn-sm{min-height:44px}}
@media (prefers-reduced-motion:reduce){.btn{transition:none}.btn:active{transform:none}}

/* 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 4px 14px rgba(20,23,27,.07)}
.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:36px}} /* +20% on phones (was 30px) */
@media (max-width:360px){.brand-logo{height:31.2px}} /* +20% (was 26px) */
.footer .brand-logo{height:54px}
.nav-links{display:flex;align-items:center;gap:4px;margin-inline-start:8px}
/* Child combinator, not descendant. `.nav-links a` (0,1,1) also reached every link INSIDE the
   mega panels, and out-specified `.btn-primary` (0,1,0) on the panel's CTA: the "Get started"
   button rendered --body ink on a brick fill (~2:1) and went pale pink on hover. */
.nav-links>a{padding:.5rem .8rem;border-radius:var(--radius-ctl);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)}
.nav-right{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
/* The bar's CTA matches the 44px language/bell boxes beside it instead of standing 4px shorter. */
.nav-right .btn{min-height:44px}
/* 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;font-size:.88rem;letter-spacing:.02em;color:var(--body);padding-inline:.6rem;border-radius:var(--radius-ctl);
	border:1px solid var(--line);background:var(--card);
	min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
	transition:color .15s,border-color .15s,background-color .15s}
/* "ع" is one Arabic letter set in a Latin-sized box — at .88rem it read as a speck beside "EN". */
.lang-tog[lang="ar"]{font-size:1.12rem;letter-spacing:0;padding-bottom:3px}
/* 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 .6rem;border-radius:var(--radius-ctl);line-height:1.4}
.nav-logout:hover{color:var(--brand-700);background:var(--brand-50)}
.lang-tog:hover{color:var(--brand-700);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}
/* The two switch tracks in this file (.tt-track, .medc-cc-sw-t) keep border-radius:999px in a
   system that squares everything else. A switch is not a button with round corners — the pill
   IS the affordance, and a squared track with a round knob reads as a broken control. The
   gradient is warmed from the origin's blue-greys so the one skeuomorphic object on the page
   is not the only cool thing on it. */
.tt-track{position:relative;direction:ltr;width:58px;height:30px;border-radius:999px;
	background:linear-gradient(135deg,#F3ECE9,#E4D9D5);border:1px solid var(--line);
	box-shadow:inset 0 1px 3px rgba(20,23,27,.14);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(120,32,24,.32),0 0 0 1px rgba(20,23,27,.05);
	transition:transform .45s cubic-bezier(.34,1.45,.5,1),background .4s ease}
.theme-toggle:hover .tt-track{border-color:var(--brand)}
/* The ring goes on the track, the visible object — on the button it drew a 72×44 box around a
   58×30 pill with 7px of nothing in between. */
.theme-toggle:focus-visible{outline:none}
.theme-toggle:focus-visible .tt-track{outline:2px solid var(--brand);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.tt-knob,.tt-track,.tt-ic{transition:none}}
.theme-toggle.is-dark .tt-track{background:linear-gradient(135deg,#22262C,#2F353D);border-color:#3B424B;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}
/* The burger wears the language switch's box, so the right end of the bar reads as one row of
   matching 44px controls instead of a bordered square beside a bare glyph. */
.nav-burger{display:none;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-ctl);
	padding:0;color:var(--ink);transition:border-color .15s,color .15s}
.nav-burger:hover{border-color:var(--brand);color:var(--brand-700)}
.nav-burger svg{width:22px;height:22px}
.nav-burger[aria-expanded="true"]{border-color:var(--brand);color:var(--brand-700)}
/* The notification bell (logged-in only). It used to be the 🔔 emoji at 1.15rem in a 30px box —
   an emoji renders in a different colour scheme per OS and ignores the theme entirely. */
.nav-right .notif-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;
	border:1px solid var(--line);border-radius:var(--radius-ctl);background:var(--card);color:var(--ink);font-size:0}
.nav-right .notif-btn:hover{border-color:var(--brand);color:var(--brand-700)}
.nav-right .notif-btn svg{width:21px;height:21px}
.nav-right .notif-dot{top:7px;inset-inline-end:8px;background:var(--gold)}
/* A 300px panel anchored to a bell near the middle of a 360px bar hung off the screen edge. */
@media (max-width:560px){
	.nav-right .medc-notif{position:static}
	.nav-right .notif-panel{inset-inline:12px;width:auto;top:calc(var(--nav-h) - 4px)}
}
/* mobile drawer */
/* visibility is delayed on the way OUT by the panel's own duration — flipping it at once hid the
   sheet on the first frame, so the slide-out was never seen and closing read as a blink. */
.drawer{position:fixed;inset:0;z-index:60;visibility:hidden;pointer-events:none;transition:visibility 0s linear .28s}
.drawer.open{visibility:visible;pointer-events:auto;transition-delay:0s}
.drawer-bg{position:absolute;inset:0;background:rgba(20,23,27,.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(86%,340px);background:var(--card);
	transform:translateX(-100%);transition:transform .28s cubic-bezier(.16,1,.3,1);
	padding:0 16px;box-shadow:0 0 40px rgba(20,23,27,.22);
	display:flex;flex-direction:column;gap:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
	/* The head and foot are pinned (sticky) over this scroller, so Tab focus-scrolling has to
	   aim for the strip between them or a focused link lands behind the ~125px foot (WCAG 2.4.11).
	   The bottom value is the foot's height: 12 + 48 + 8 + 44 + 12 padding/rows, plus slack. */
	scroll-padding-block:calc(var(--nav-h) + env(safe-area-inset-top) + 8px) calc(140px + env(safe-area-inset-bottom))}
[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. */
/* Pinned head: lockup + close stay put while the tree scrolls under them. Full-bleed via the
   negative inline margin so its hairline runs edge to edge; the safe-area top is its padding. */
.drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;
	margin:0 -16px 4px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px 16px;padding-inline:16px 10px;
	min-height:calc(var(--nav-h) + env(safe-area-inset-top));background:var(--card);border-bottom:1px solid var(--line)}
.drawer-brand{display:inline-flex;align-items:center;min-width:0}
.drawer-brand .brand-logo{height:30px;max-width:150px}
.drawer-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;
	background:none;border:1px solid var(--line);border-radius:var(--radius-ctl);color:var(--ink);cursor:pointer;
	transition:border-color .15s,color .15s}
.drawer-close:hover{border-color:var(--brand);color:var(--brand-700)}
.drawer-close svg{width:20px;height:20px}
@media (prefers-reduced-motion:reduce){
	.drawer,.drawer-panel,.drawer-bg{transition:none}
}
/* ---------------------------------------------------------------------------------------------
   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)}
/* Current section = brick ink + underline; OPEN panel = tinted fill. They used to share the
   fill, so with a panel open the bar showed two identical "selected" items side by side. */
.nav-top.is-on{color:var(--brand-700)}
.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 12px 12px;box-shadow:0 18px 44px rgba(16,32,52,.14);
	animation:medcMegaIn .18s cubic-bezier(.2,.8,.3,1)}
@keyframes medcMegaIn{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-flex;align-items:center;gap:.25rem;margin-top:.5rem;padding:.35rem .5rem;font-size:.83rem;font-weight:700;color:var(--brand-700)}
.mega-more:hover{text-decoration:underline}
/* "See all ›" chevrons are SVG, flipped in RTL. The &rsaquo; they replaced set as a speck glued
   to the last Arabic letter, and its bidi mirroring depended on the font. */
.nav-fwd{width:14px;height:14px;flex:0 0 auto}
[dir="rtl"] .nav-fwd{transform:scaleX(-1)}
.mega-more:hover .nav-fwd,.dr-more:hover .nav-fwd{translate:2px 0}
[dir="rtl"] .mega-more:hover .nav-fwd,[dir="rtl"] .dr-more:hover .nav-fwd{translate:-2px 0}
.mega-list a{transition:background-color .12s,color .12s}
.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:.8rem .5rem;border-radius:0;font-weight:700;font-size:1rem;color:var(--ink);min-height:54px;cursor:pointer;
	transition:background-color .15s,color .15s}
/* Hover only where hover exists: on a phone `:hover` sticks to the last row tapped, so the row
   that opened a group stayed tinted pink until something else was touched. Touch gets :active. */
@media (hover:hover){.dr-top:hover{background:var(--brand-50);color:var(--brand-700)}}
.dr-top:active{background:var(--brand-50)}
.dr-top.is-on{color:var(--brand-700)}
/* "You are here" carries a mark, not just a hue: a 3px brick bar at the inline start, the same
   device the section headings use. Colour alone is not enough to say "current" (WCAG 1.4.1).
   Out of the flow (absolute), so the current row's label keeps the same .5rem inset as every
   other row instead of being pushed ~7px in by a flex-child bar and its gap. */
.dr-top{position:relative}
.dr-top.is-on::before{content:"";position:absolute;inset-inline-start:0;inset-block:.7rem;width:3px;
	border-radius:2px;background:var(--brand)}
.dr-top.is-on>span{margin-inline-end:auto}
.dr-group[open]>.dr-top .nav-chev{transform:rotate(180deg)}
.dr-top .nav-chev{width:18px;height:18px;opacity:.7}
/* The open group hangs off a rule at the inline start, so 20 links read as children of the row
   above them rather than as more top-level rows. */
.dr-body{margin:0 .5rem .7rem;padding-inline-start:.25rem;border-inline-start:2px solid var(--line);
	display:flex;flex-direction:column}
.dr-body a{padding-block:.5rem;padding-inline:.85rem .5rem;border-radius:var(--radius-ctl);
	font-weight:600;font-size:.94rem;line-height:1.45;color:var(--body);min-height:44px;display:flex;align-items:center;border:0}
@media (hover:hover){.dr-body a:hover{background:var(--brand-50);color:var(--brand-700)}}
.dr-body a:active{background:var(--brand-50);color:var(--brand-700)}
.dr-head{margin:.75rem 0 .1rem;padding-inline-start:.85rem;font-size:.74rem;font-weight:700;
	letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dr-head:first-child{margin-top:.25rem}
.dr-more{color:var(--brand-700)!important;font-weight:700!important;gap:.3rem}
/* The footer of the sheet — the one conversion action and the language switch — is pinned to
   the bottom edge. With a 20-row group open it used to sit two full screens below the fold. */
.dr-foot{margin-top:auto;position:sticky;bottom:0;z-index:2;
	/* No bottom padding on the panel and no negative margin here: a sticky box pins to the
	   scrollport's padding edge, so the panel's old 16px bottom padding left a strip under this
	   footer through which the open group's links scrolled. The safe-area inset is this box's own. */
	margin-inline:-16px;
	padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line);
	display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dr-foot>.btn{grid-column:1 / -1;min-height:48px}
/* A phone on its side is ~360px tall: a pinned 68px head and 125px foot left three rows for the
   tree. There the foot goes back into the flow (it ends the list, one scroll away) and the head
   slims to the close button's own 44px plus a hairline of padding. */
@media (max-height:480px){
	.drawer-panel{scroll-padding-block:calc(52px + env(safe-area-inset-top)) 8px}
	/* flex:none — the head is a flex item of the scrolling column and would otherwise shrink. */
	.drawer-head{flex:none;min-height:calc(52px + env(safe-area-inset-top));padding-block:calc(4px + env(safe-area-inset-top)) 4px}
	.dr-foot{position:static}
}
.dr-quiet{border:1px solid var(--line);padding:.55rem .6rem;border-radius:var(--radius-ctl);font-weight:700;font-size:.9rem;color:var(--body);
	min-height:44px;display:flex;align-items:center;justify-content:center;gap:.45rem;text-align:center;line-height:1.3;
	transition:border-color .15s,color .15s}
.dr-quiet svg{width:18px;height:18px;flex:0 0 auto;opacity:.8}
.dr-quiet:hover{border-color:var(--brand);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);justify-content:flex-start}

/* MedCairo's own reading of the panel: a squared sheet ruled like a printed index.

   The columns are separated by real hairlines rather than by whitespace alone, and the sheet is
   capped by a crimson rule the width of the whole bar. It is the same geometry decision the rest
   of this design system makes — 10px radii, ruled tables, square chips — applied to the one
   surface that did not have it yet. The rule is a border on the flex container, not a
   pseudo-element, so it scrolls away with the panel when a long group overflows. */
.mega-in{border-top:3px solid var(--brand)}
.mega-col + .mega-col{padding-inline-start:clamp(18px,2.4vw,34px);
	margin-inline-start:calc(-1 * clamp(18px,2.4vw,34px) / 2);border-inline-start:1px solid var(--line-2)}
.mega-cta{border-color:var(--brand-200,var(--line))}
.mega-head{color:var(--brand-700);opacity:.85}

/* Hero + search */
.hero{position:relative;background:
	radial-gradient(1200px 400px at 80% -10%,var(--hero-1),transparent 60%),
	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. */
	}
/* 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.

   `.hero-content .chips` used to sit here too. The hero has contained no .chips since the
   counter strip was removed — the only ones on the page are in the regions section, outside
   this box entirely. */
.hero-content{width:100%;max-width:820px;text-align:center;margin-inline:auto}
.hero-content .mdc-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}}

/* ============================================================================
   HERO SCENE — Cairo at dusk, from the Nile.

   Replaces the origin's pyramid-and-sun composition entirely. The markup is a single
   inline <svg viewBox="0 0 1200 620" preserveAspectRatio="xMidYMax slice"> inside
   .hero-scene, aria-hidden, pointer-events:none. Every colour is set HERE, not in the
   markup, so the whole scene re-skins with the theme and the template carries no hexes.

   Composition, back to front, which is also the DOM order the template must use:
     .sky            dusk gradient wash  (fill:url(#medc-sky), stops .sky-a/.sky-b/.sky-c)
     .scene-stars > .star  scattered points, twinkling on four staggered loops.
                     NOT .stars — that is the review rating row further down this file.
     .sun-glow       soft halo           (fill:url(#medc-sun), stops .sun-a/.sun-b/.sun-c)
     .sun-disc       the low warm disc
     .skyline        flat silhouette of Islamic Cairo — domes and minarets
     .skyline-near   the same band one step darker and one step lower, for depth
     .tower          Cairo Tower, right of centre and the tallest thing in the frame
     .bridge         Qasr El Nil deck across the lower third
     .nile-band      the water
     .nile-glow      the sun's reflection column on it
     .wave           two or three drifting ripple paths
     .felucca        the boat, crossing on a long loop

   OPACITY, not lightness, carries the "this is a background" job: the scene is behind
   the H1 and the search console, and .hero-scene's opacity is what keeps the headline
   readable over it. Do not raise it to make the artwork prettier — the LCP text sits on
   top of this.

   MOTION: five loops, all long and all shallow. Every one of them is switched off by the
   `prefers-reduced-motion` block further down (`.hero-scene *{animation:none!important}`),
   so each animation is written so that its NON-ANIMATED state is a correct picture — in
   particular .felucca must be authored at its mid-frame position and the keyframes travel
   symmetrically either side of it, or a reduced-motion reader gets an empty river.

   The whole thing is hidden below 601px (see the @media at the end of the hero rules) —
   at that width `slice` crops ~1000px of a 1200px composition and what survives is a
   texture, not a skyline, for the cost of five compositing loops behind the LCP element. */
.hero-scene{position:absolute;inset:0;z-index:0;pointer-events:none;contain:paint;opacity:.85}
.hero-scene svg{width:100%;height:100%;display:block}

/* --- gradient stops (theme-aware) ---------------------------------------- */
/* WHERE COPY CROSSES THE SCENE, THE SCENE IS A TEXT BACKGROUND AND OWES 4.5:1. Check that
   before pushing any value here, because the arithmetic is brutal: `.hero .lead` is --body
   (#3D444E light / #CDC6C3 dark), so a pixel under it can never drop below L=0.4304 in
   light or rise above L=0.0885 in dark, and TWO objects that both satisfy that can differ
   from each other by at most (1.05)/(0.4806) = 2.18:1 in light, (0.1385)/(0.05) = 2.77:1
   in dark. Anything under the lead is therefore capped at roughly 2:1 against its own
   background — no colour choice can buy a 3:1 silhouette there.

   That cap used to bind the tower and is the reason it washed out: it stood at viewBox
   x=806, dead under the lead's centre lines, measured 1.53:1 against the sky, and put
   --body on 2.73:1 — a text failure — at the same time. The geometry pass moved it to the
   east strip (x 1102..1170, screen x 1322..1404 at 1440x900), which no card and no copy
   reaches at any width the scene is shown at, so the values below are free and the tower
   is a 3.4:1 silhouette. IF IT EVER MOVES BACK INTO THE COPY COLUMN the cap returns and
   these fills must come back up with it. The skyline, bridge, water, waves and felucca are
   clear of copy for the same reason and are pushed just as hard; that, and the sky's own
   travel, is where the composition's depth comes from.

   Dusk over the Nile: the sky travels from a deep warm horizon glow up to the pale ground
   the H1 sits on. Only sky-c is the shared edge with the .hero box's own wash — sky-a is
   at viewBox y=620, entirely under the water, so it is free to go as deep as the picture
   wants and the thin far-water stop below is what shows it. Measured on the rendered page:
   bare sky runs L=0.87 in the copy band down to L=0.69 at the horizon, where it was 0.92
   down to 0.90 and gave the skyline nothing to stand against. That travel is most of what
   stopped the scene reading as one flat pale wash. */
.hero-scene .sky-a{stop-color:#E7A98F}
.hero-scene .sky-b{stop-color:#F8DCCE}
.hero-scene .sky-c{stop-color:#FDF6F2}
/* The glow was a 200-unit haze at .55 that fogged the whole right half of the frame,
   including the sky the tower has to read against — it cost ~0.15 of the sky's luminance
   at x=858 and took the tower's headroom with it. Tighter and warmer: a sun, not a fog. */
.hero-scene .sun-a{stop-color:#FFF6EE}
.hero-scene .sun-b{stop-color:#F3A277;stop-opacity:.30}
.hero-scene .sun-c{stop-color:#F3A277;stop-opacity:0}
/* The river is the one place --nile and --nile-2 are actually painted, which is what the
   brand spec names them for. They are full-strength brand teals, so the BAND carries an
   opacity rather than the stops carrying washed-out hexes: that way retuning the token
   retunes the river, and the river stays a background instead of a teal slab under the
   headline. Dark overrides both stops outright — the same tokens invert to bright cyans
   there, which is right for a chip and wrong for a night river.

   STOP-OPACITY IS DOING TWO JOBS AT ONCE, and it is the whole fix for the bridge.
   Gradient stops interpolate PREMULTIPLIED, so a thin far stop over an opaque near stop
   makes the band's alpha ramp 0.36 -> 1.0 down the water rather than sit flat at one
   value. That gets both things the flat band could not:
     - depth. Far water is mostly sky, so it mirrors the horizon glow and comes out pale;
       near water is opaque --nile. Far vs near went 1.18:1 -> 1.86:1 measured, which is
       what makes it read as a receding surface instead of a rectangle.
     - the bridge. `.bridge` is painted UNDER this band (see parts-hero-scene.php — the
       paint order is deliberate and must not be reordered), and the deck sits at y=488,
       high in the band where the ramp has only reached ~0.46. Better than half the deck
       now survives the wash. At the old flat .5-with-opaque-stops setting only the band's
       own opacity stood between the deck and the water, and the deck measured 1.02:1 in
       dark — the invisible-bridge bug the template flags and points here to fix.
   Do not set nile-a's stop-opacity back to 1: that re-flattens the water AND re-erases
   the bridge in one edit. */
.hero-scene .nile-a{stop-color:var(--nile-2);stop-opacity:.36}
.hero-scene .nile-b{stop-color:var(--nile);stop-opacity:1}

/* --- flat fills ----------------------------------------------------------- */
.hero-scene .sky{fill:url(#medc-sky)}
.hero-scene .sun-glow{fill:url(#medc-sun)}
.hero-scene .sun-disc{fill:#FFE7CE}
.hero-scene .star{fill:#C08B7A;opacity:.5}
/* The skyline is a SILHOUETTE: one flat fill for the whole band, no internal detail, so
   it reads at 40% scale on a laptop and does not compete with the tower. It lives at
   viewBox y 320..468, which the two hero cards cover across the middle at 1440x900, so
   most of it is free to carry real weight and it is where the depth the composition was
   missing actually comes from.

   ONE EXCEPTION, and it is measured at 1920x700, not at 1440x900. There the hero is wide and
   short, `slice` shows viewBox y 196..590, and the lead's last line lands at viewBox y~358 —
   straight across Sultan Hassan's dome and the Muhammad Ali minarets, which at 1440x900 are
   safely behind the search console. So the FAR band is a text background at that width and
   owes --body 4.5:1: at the .72 this rule wanted it measured 4.07:1 on the rendered page.
   .60 is the value that clears it (4.57:1) while keeping the fill saturated rather than
   washing the band out to reach the same luminance. Check this at 1920x700 before raising it.
   The NEAR band is under the console at 1440x900 and under it or in a bare side strip at
   1920x700 — no copy reaches it at either width — so the depth the far band gave up is
   pushed into it instead: 2.2:1 in front of the far band, where the two used to sit 1.14:1
   apart and read as one haze. */
.hero-scene .skyline{fill:#A8705C;opacity:.6}
.hero-scene .skyline-near{fill:#6B3C30;opacity:.88}
/* --sand is the one place this token is used: the lit face of a dome or a minaret cap.
   It is 2.42:1 on white and must never carry text — see the token comment. Raised with the
   band: against a silhouette this much darker, .42 was no longer a lit face. */
.hero-scene .skyline-lit{fill:var(--sand);opacity:.66}
/* The tower is the subject and, since the geometry pass put it in the east strip, the
   darkest silhouette in the frame again. Graded head-heavy (disc darkest, shaft lightest)
   so the lotus crown and the observation disc, which are the tower's signature, carry the
   most weight. Measured against the sky beside it, before -> after:
     shaft 1.53:1 -> 3.46:1    crown 2.89:1 -> 4.41:1    disc 3.46:1 -> 4.96:1
   The shaft was the bad one, and the lattice below is why. */
.hero-scene .tower-shaft{fill:#77554C}
.hero-scene .tower-crown{fill:#684A42}
.hero-scene .tower-disc{fill:#5D433B}
/* The lattice is drawn as strokes over the shaft, not as a fill, so the criss-cross keeps
   its weight when `slice` scales the artwork up on a narrow laptop. vector-effect keeps it
   hairline-thin at any scale.
   It is LIGHTER than the shaft on purpose — the Cairo Tower's shaft is open latticework and
   you see sky through it — but it used to be #F7E3DC, the sky's own colour, at .4 over a
   shaft only 2.1:1 darker than that sky, which is not "sky through the lattice", it is the
   sky painted back over the tower: it lifted the rendered shaft to #CDB2AA and 1.53:1 and
   was the second reason the tower washed out. The shaft below is now dark enough that the
   same trick reads as openwork instead — ribs 1.9:1 on the shaft. */
.hero-scene .tower-lattice{fill:none;stroke:#F4E3DA;stroke-width:1.6;opacity:.42;
	vector-effect:non-scaling-stroke}
/* The beacon is the one part of the tower NO copy crosses — it sits at viewBox y=212, in
   the gap between the H1's descenders and the lead's first line — so it is the only place
   the tower is allowed full strength. It does the work the silhouette is not permitted to. */
.hero-scene .tower-beacon{fill:#E8604F}
.hero-scene .tower-beacon-halo{fill:#E8604F;opacity:.3}
/* Middle distance, and painted UNDER .nile-band, so whatever is set here is seen through
   about half the water. #B5928A/.8 came out at 1.35:1 against the river — past haze and
   into absent. This is dark enough to survive the wash: 2.72:1 below the deck and 3.14:1
   above it, still hazy, which is the documented intent, but now a bridge. Dark inverts the
   logic rather than the value — see the note on the dark .bridge rule. */
.hero-scene .bridge{fill:#331D17;opacity:.95}
.hero-scene .bridge-arch{fill:none;stroke:#331D17;stroke-width:3;opacity:.8}
.hero-scene .bridge-lamp{fill:var(--sand);opacity:.85}
/* --nile is the token the brand names for exactly this band. The opacity works with the
   stops' premultiplied alpha ramp above, not against it: raised from .5 because the far
   stop's own .42 now supplies the transparency the flat .5 used to supply everywhere,
   including at the deck, where it was erasing the bridge. */
.hero-scene .nile-band{fill:url(#medc-nile);opacity:.82}
/* The sun's reflection column. On water this deep it is the strongest single cue that the
   band is a liquid surface and not a fill, so it is no longer the whisper it was at .3 — but
   it is a REFLECTION, and much past this it stops shimmering and starts reading as an opaque
   wedge laid on the river, with its two straight edges showing and the ripples lost under it.
   The ripples must stay visible THROUGH it; that is what makes it water rather than a beam. */
.hero-scene .nile-glow{fill:#FFD2A8;opacity:.32}
/* Aerial perspective on the ripples, using the same adjacent-sibling chain the animation
   block staggers the durations with: the far ripple is thin and faint, the near one thick
   and bright. Three identical strokes read as three lines drawn on a rectangle; graded,
   they read as a surface receding from the reader. */
.hero-scene .wave{fill:none;stroke:#FFFFFF;stroke-width:1.6;stroke-linecap:round;opacity:.3}
.hero-scene .wave + .wave{stroke-width:2.2;opacity:.42}
.hero-scene .wave + .wave + .wave{stroke-width:3;opacity:.55}
.hero-scene .felucca-hull{fill:#3A211B}
.hero-scene .felucca-sail{fill:#FFF6F0;opacity:.95}

/* --- animation ------------------------------------------------------------ */
/* transform-box:view-box on anything that TRAVELS across the frame (the felucca) and
   fill-box on anything that pulses IN PLACE (the sun, the beacon): fill-box would make a
   translate resolve against the boat's own tiny bounding box origin, which is harmless for
   translation but wrong the moment a scale is added, and view-box would put the sun's
   scale origin at the corner of the artboard. */
.hero-scene .sun-glow{transform-box:fill-box;transform-origin:center;animation:medc-sun 7s ease-in-out infinite}
.hero-scene .star{animation:medc-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}
/* The aircraft-warning light. Long dark interval, short double flash — a beacon, not a
   blinking cursor. */
.hero-scene .tower-beacon{animation:medc-beacon 3.6s ease-in-out infinite}
.hero-scene .tower-beacon-halo{transform-box:fill-box;transform-origin:center;
	animation:medc-beacon-halo 3.6s ease-in-out infinite}
/* Adjacent-sibling chains, not :nth-of-type or :nth-child: the waves only have to be
   CONSECUTIVE SIBLINGS for this to stagger them, so the template is free to put them in a
   group with anything else. (The stars above do use :nth-child, which is the origin's
   pattern and does require .star to be the only children of their group.) */
.hero-scene .wave{transform-box:view-box;animation:medc-wave 14s ease-in-out infinite}
.hero-scene .wave + .wave{animation-duration:19s;animation-delay:-4s}
.hero-scene .wave + .wave + .wave{animation-duration:24s;animation-delay:-9s}
/* 58s, linear, one direction: a felucca crossing the frame is the slowest thing here and
   is meant to be noticed only by someone who stays. The keyframes are symmetric about 0 so
   the reduced-motion still frame (transform:none) is the boat mid-river, which is why the
   template must author it at its centre position. */
.hero-scene .felucca{transform-box:view-box;animation:medc-felucca 58s linear infinite}
@keyframes medc-sun{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.07);opacity:1}}
@keyframes medc-twinkle{0%,100%{opacity:.2}50%{opacity:.85}}
@keyframes medc-beacon{0%,42%{opacity:.12}48%,54%{opacity:1}60%,100%{opacity:.12}}
@keyframes medc-beacon-halo{0%,42%{opacity:0;transform:scale(.6)}50%{opacity:.28;transform:scale(1)}62%,100%{opacity:0;transform:scale(1.3)}}
@keyframes medc-wave{0%,100%{transform:translateX(-16px)}50%{transform:translateX(16px)}}
@keyframes medc-felucca{0%{transform:translateX(-760px)}100%{transform:translateX(780px)}}

/* --- Dark: the same city an hour later ------------------------------------ */
/* Written twice, like every other dark override in this file: the attribute selector alone
   misses every visitor whose OS is dark and who has never touched the toggle. Kept in one
   order, one rule per line, no per-rule comments — the two runs have to stay identical and
   anything written here would have to be written twice too, so the reasoning is all below.

   DARK IS NOT THE LIGHT SCENE DIMMED. It inverts three relationships, because the sky
   inverts: at L~0.008 a night sky cannot hold a dark silhouette, so anything that read by
   being DARKER than the sky has to read by being LIGHTER than it instead. That is also the
   truthful picture — this is the city an hour later, and an hour later Cairo is lit.
     - THE TOWER is floodlit amber (#987547/#AC8551/#BC9158) where light has it in warm
       shadow. Same head-heavy grading, same job, opposite sign: 3.20:1 shaft, 3.99:1 crown,
       4.66:1 disc against the sky, up from 1.55:1 / 1.28:1 / 1.53:1 where it was a brown
       silhouette on a brown sky and simply was not there.
     - THE BRIDGE is the fix the template asks for by name, and the same inversion is why
       the light-mode answer (make it darker) could not work here: `.bridge` is under
       `.nile-band`, the sky behind it is already almost black, so a dark deck and the sky
       composite to the same value and no opacity buys separation. A LIT deck does —
       Qasr El Nil is lit after dark — and #EDB489 under the water's thinned far stop gives
       3.04:1 below the deck and 3.40:1 above it, from the measured 1.02:1.
     - THE SKYLINE far band goes LIGHTER than the night sky (city glow behind it) and the
       near band DARKER (closer, less air in between): 1.61:1 and 1.54:1 apart, from 1.00:1
       where both bands and the sky were one value.
   The nile stops stay hexes here rather than the tokens: --nile/--nile-2 invert to bright
   cyans in dark, which is right for a chip and wrong for a night river. */
:root[data-theme="dark"] .hero-scene{opacity:.8}
:root[data-theme="dark"] .hero-scene .sky-a{stop-color:#43231A}
:root[data-theme="dark"] .hero-scene .sky-b{stop-color:#181117}
:root[data-theme="dark"] .hero-scene .sky-c{stop-color:#0E0D12}
:root[data-theme="dark"] .hero-scene .sun-a{stop-color:#FFD9BC}
:root[data-theme="dark"] .hero-scene .sun-b{stop-color:#C25A42;stop-opacity:.34}
:root[data-theme="dark"] .hero-scene .sun-c{stop-color:#C25A42;stop-opacity:0}
:root[data-theme="dark"] .hero-scene .sun-disc{fill:#E09A72}
:root[data-theme="dark"] .hero-scene .star{fill:#FFE6D6;opacity:.6}
:root[data-theme="dark"] .hero-scene .skyline{fill:#633C31;opacity:1}
:root[data-theme="dark"] .hero-scene .skyline-near{fill:#2E1A17;opacity:1}
:root[data-theme="dark"] .hero-scene .skyline-lit{fill:var(--sand);opacity:.42}
:root[data-theme="dark"] .hero-scene .tower-shaft{fill:#987547}
:root[data-theme="dark"] .hero-scene .tower-crown{fill:#AC8551}
:root[data-theme="dark"] .hero-scene .tower-disc{fill:#BC9158}
:root[data-theme="dark"] .hero-scene .tower-lattice{stroke:#FFD9AE;opacity:.42}
:root[data-theme="dark"] .hero-scene .bridge{fill:#EDB489;opacity:.95}
:root[data-theme="dark"] .hero-scene .bridge-arch{stroke:#C08A63;opacity:.8}
:root[data-theme="dark"] .hero-scene .nile-band{opacity:.95}
:root[data-theme="dark"] .hero-scene .nile-a{stop-color:#6FCCE8;stop-opacity:.24}
:root[data-theme="dark"] .hero-scene .nile-b{stop-color:#061319;stop-opacity:1}
:root[data-theme="dark"] .hero-scene .nile-glow{fill:#F0A88A;opacity:.26}
:root[data-theme="dark"] .hero-scene .wave{stroke:#8FC8D8;stroke-width:1.6;opacity:.22}
:root[data-theme="dark"] .hero-scene .wave + .wave{stroke-width:2.2;opacity:.32}
:root[data-theme="dark"] .hero-scene .wave + .wave + .wave{stroke-width:3;opacity:.44}
:root[data-theme="dark"] .hero-scene .felucca-hull{fill:#5A3A2C}
:root[data-theme="dark"] .hero-scene .felucca-sail{fill:#F2E2D6;opacity:.88}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .hero-scene{opacity:.8}
	:root:not([data-theme="light"]) .hero-scene .sky-a{stop-color:#43231A}
	:root:not([data-theme="light"]) .hero-scene .sky-b{stop-color:#181117}
	:root:not([data-theme="light"]) .hero-scene .sky-c{stop-color:#0E0D12}
	:root:not([data-theme="light"]) .hero-scene .sun-a{stop-color:#FFD9BC}
	:root:not([data-theme="light"]) .hero-scene .sun-b{stop-color:#C25A42;stop-opacity:.34}
	:root:not([data-theme="light"]) .hero-scene .sun-c{stop-color:#C25A42;stop-opacity:0}
	:root:not([data-theme="light"]) .hero-scene .sun-disc{fill:#E09A72}
	:root:not([data-theme="light"]) .hero-scene .star{fill:#FFE6D6;opacity:.6}
	:root:not([data-theme="light"]) .hero-scene .skyline{fill:#633C31;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .skyline-near{fill:#2E1A17;opacity:1}
	:root:not([data-theme="light"]) .hero-scene .skyline-lit{fill:var(--sand);opacity:.42}
	:root:not([data-theme="light"]) .hero-scene .tower-shaft{fill:#987547}
	:root:not([data-theme="light"]) .hero-scene .tower-crown{fill:#AC8551}
	:root:not([data-theme="light"]) .hero-scene .tower-disc{fill:#BC9158}
	:root:not([data-theme="light"]) .hero-scene .tower-lattice{stroke:#FFD9AE;opacity:.42}
	:root:not([data-theme="light"]) .hero-scene .bridge{fill:#EDB489;opacity:.95}
	:root:not([data-theme="light"]) .hero-scene .bridge-arch{stroke:#C08A63;opacity:.8}
	:root:not([data-theme="light"]) .hero-scene .nile-band{opacity:.95}
	:root:not([data-theme="light"]) .hero-scene .nile-a{stop-color:#6FCCE8;stop-opacity:.24}
	:root:not([data-theme="light"]) .hero-scene .nile-b{stop-color:#061319;stop-opacity:1}
	:root:not([data-theme="light"]) .hero-scene .nile-glow{fill:#F0A88A;opacity:.26}
	:root:not([data-theme="light"]) .hero-scene .wave{stroke:#8FC8D8;stroke-width:1.6;opacity:.22}
	:root:not([data-theme="light"]) .hero-scene .wave + .wave{stroke-width:2.2;opacity:.32}
	:root:not([data-theme="light"]) .hero-scene .wave + .wave + .wave{stroke-width:3;opacity:.44}
	:root:not([data-theme="light"]) .hero-scene .felucca-hull{fill:#5A3A2C}
	:root:not([data-theme="light"]) .hero-scene .felucca-sail{fill:#F2E2D6;opacity:.88}
}
/* Negative tracking is a Latin-display trick. Arabic is a joining script: squeezing the letters
   pulls the connectors together and degrades the kashida, on the largest and most-read text on
   the site. LTR keeps it; RTL does not. */
.hero h1{font-size:clamp(1.9rem,4.6vw,2.9rem);text-wrap:balance}
html[dir="ltr"] .hero h1{letter-spacing:-.02em}
/* 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(--line-2);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}
/* inline-flex + a min-height so a chip is one predictable box: as a bare inline element its height
   was whatever the line-height made it (~34px), the count badge inside it sat on the text
   baseline instead of the chip's centre, and two chips with different badges were different
   heights. 38px on a fine pointer, 42px on touch (below). */
.chip{display:inline-flex;align-items:center;min-height:38px;line-height:1.45;background:var(--card);border:1px solid var(--brand-100);border-radius:var(--radius-chip);padding:.3rem .9rem;font-weight:600;font-size:.9rem;color:var(--brand-700);
	transition:border-color .15s,background-color .15s,color .15s}
.chip:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-50)}
/* --brand-100 is #3A211C in dark — 1.2:1 on the card, so a chip's edge vanished and a cloud of
   them read as loose coloured words. --line is the dark hairline the rest of the page uses. */
:root[data-theme="dark"] .chip{border-color:var(--line)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chip{border-color:var(--line)}}
:root[data-theme="dark"] .chip:hover{border-color:var(--brand)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chip:hover{border-color:var(--brand)}}
@media (pointer:coarse){.chip{min-height:42px}}

/* Grid helpers */
.grid{display:grid;gap:18px}
.g-doc{grid-template-columns:1fr}
.g-region{grid-template-columns:repeat(2,1fr)}

/* Specialty card */
.spec-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:.5rem;transition:transform .18s,box-shadow .18s,border-color .18s}
.spec-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--brand-100)}
.spec-ic{width:46px;height:46px;border-radius:var(--radius-sm);background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center}
.spec-ic svg{width:24px;height:24px}
.spec-card b{color:var(--ink);font-size:1.02rem}
.spec-card small{color:var(--muted)}

/* 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}
/* Never the <body>: WordPress gives a tag archive body class="tag". blog-taxonomy.php renames it,
   but any tag page that template does not serve would still turn pink. :where() keeps this at
   one class of specificity so .tag-soft / .tag-link still override it as before. */
.tag:where(:not(body)){background:var(--brand-50);color:var(--brand-700);font-size:.78rem;font-weight:700;padding:.18rem .6rem;border-radius:var(--radius-chip)}
.badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:700;padding:.2rem .6rem;border-radius:var(--radius-chip)}
.badge-ok{background:var(--ok-bg);color:var(--ok)}
.badge-off{background:var(--warn-bg);color:var(--warn)}
/* Hero open/closed chip — jumps to #clinics now that the profile leads with the bio. */
.ph-open{margin:.6rem 0 0}
.ph-open .badge{text-decoration:none;font-size:.82rem;padding:.3rem .75rem;min-height:32px}
.ph-open .badge:hover,.ph-open .badge:focus-visible{text-decoration:underline}
/* 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:#232c36;color:#c3cdd9}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge-pause{background:#232c36;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);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}

.filter-group{border-top:1px solid var(--line-2);padding-block:.8rem}
.filter-group select{width:100%;border:1px solid var(--line);border-radius:var(--radius-ctl);font-family:inherit;font-size:.95rem;background-color:var(--card);color:var(--ink);min-height:46px;padding:.6rem .8rem;cursor:pointer}
.filter-group select:focus-visible{border-color:var(--brand)}
/* No-JS / fallback: desktop native selects get a styled chevron (mobile keeps native arrow). */
@media (min-width:900px){
	/* `.results-toolbar select`, NOT `.sort-select select`: .sort-select is the <label>, and the
	   <select id="medc-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,.filter-group 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"] .filter-group 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"] .filter-group 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. ===== */
.mdc-select-wrap{position:relative;flex:1 1 auto;min-width:0}
.mdc-select-btn,.mdc-select-menu{display:none}
@media (min-width:900px){
	.mdc-select-wrap[data-mdc-enhanced] .mdc-select-native{display:none}
	.mdc-select-wrap[data-mdc-enhanced] .mdc-select-btn{display:flex}
}
.mdc-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}
.mdc-select-btn:hover{border-color:var(--brand-100)}
.mdc-select-btn:focus-visible,.mdc-select-wrap.open .mdc-select-btn{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.mdc-select-btn .mdc-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mdc-select-btn .mdc-chev{flex:0 0 auto;width:16px;height:16px;color:var(--muted);transition:transform .2s}
.mdc-select-wrap.open .mdc-select-btn .mdc-chev{transform:rotate(180deg)}
/* Hero field: the .field is the visual box, so the trigger is transparent/borderless */
.field .mdc-select-btn{background:transparent;border:0;border-radius:0;padding:0;min-height:auto;font-size:1rem}
.field .mdc-select-btn:hover{border:0}
.field .mdc-select-btn:focus-visible,.field .mdc-select-wrap.open .mdc-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. */
.mdc-select-menu{position:fixed;z-index:1000;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:6px;transform-origin:top;animation:mdc-pop .14s ease}
@keyframes mdc-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.mdc-select-search{width:100%;min-height:40px;border:1px solid var(--field-line);border-radius:var(--radius-ctl);padding:.5rem .7rem;font-family:inherit;font-size:.9rem;background:var(--bg);color:var(--ink);margin-bottom:6px}
.mdc-select-search:focus-visible{outline:none;border-color:var(--brand)}
.mdc-select-list{max-height:min(46vh,300px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mdc-select-opt{display:flex;align-items:center;gap:.5rem;min-height:40px;padding:.5rem .6rem;border-radius:var(--radius-xs);cursor:pointer;color:var(--ink);font-size:.92rem;line-height:1.4}
.mdc-select-opt:hover,.mdc-select-opt.active{background:var(--brand-50)}
.mdc-select-opt[aria-selected="true"]{color:var(--brand-700);font-weight:700}
.mdc-select-opt .mdc-check{margin-inline-start:auto;flex:0 0 auto;width:16px;height:16px;color:var(--brand);opacity:0}
.mdc-select-opt[aria-selected="true"] .mdc-check{opacity:1}
.mdc-select-empty{padding:.7rem;color:var(--muted);text-align:center;font-size:.88rem}
@media (prefers-reduced-motion:reduce){.mdc-select-menu{animation:none}}

/* Doctor profile */
/* single-doctor.php. Everything page-specific is scoped to `.prof` (the page's <section>), which
   is what lets these rules out-rank the generic .review / .rev-dims / .cred-list / .helpful-btn
   leftovers in the "v1.2 additions" block below without depending on source order. The base
   .panel / .branch / .hours / .contact-actions rules further down stay generic: the branch page,
   the claim page and checkout share them. */
.prof{padding-top:16px}
.profile-hero{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);
	padding:16px;box-shadow:var(--shadow-sm)}
/* Paid tiers get a 3px rule in the tier's own colour along the top edge — the same signal the
   result card's ribbon gives, so the card a patient tapped and the page it opens still match.
   An inset shadow rather than border-top: it follows the corner radius instead of squaring it. */
.profile-hero--gold{box-shadow:inset 0 3px 0 var(--tier-gold),var(--shadow-sm)}
.profile-hero--silver{box-shadow:inset 0 3px 0 var(--tier-silver),var(--shadow-sm)}
.profile-hero--bronze{box-shadow:inset 0 3px 0 var(--tier-bronze),var(--shadow-sm)}
/* Phone: photo, badges and share on one row, then the name across the FULL card width. Beside a
   photo the name got ~160px and a three-word Arabic name broke over three lines; underneath it,
   it gets the whole card. .ph-id goes display:contents so its three children can take the grid
   areas directly; from 700px it is a normal block beside a larger photo again. */
.ph-top{display:grid;grid-template-columns:72px minmax(0,1fr) auto;
	grid-template-areas:"ava badges share" "name name name" "spec spec spec";column-gap:12px;align-items:center}
.ph-top>.doc-ava{grid-area:ava;width:72px;height:72px;border-radius:var(--radius);box-shadow:0 0 0 1px var(--line)}
.ph-id{display:contents}
.ph-name{grid-area:name;margin-top:14px;font-size:clamp(1.35rem,5.4vw,2rem);line-height:1.35;text-wrap:balance;overflow-wrap:anywhere}
/* Flex-wrap with a column gap rather than a margin on the area: when the area wraps under a
   long title it starts flush at the line start instead of indented by the margin. */
.ph-spec{grid-area:spec;display:flex;flex-wrap:wrap;align-items:center;column-gap:.6rem;margin:4px 0 0;color:var(--body);font-size:.93rem;line-height:1.65}
.ph-area{display:inline-flex;align-items:center;gap:3px;color:var(--muted);font-weight:600;white-space:nowrap}
.ph-area .gi{width:15px;height:15px;color:var(--brand)}
.ph-badges{grid-area:badges;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.ph-badges .badge,.ph-badges .tier-badge{min-height:26px}
.ph-badges .badge .gi{width:14px;height:14px}
/* Share: a 44px icon in the corner on a phone (the label stays in the link's aria-label), the
   labelled chip from 700px. Margin reset because the share kit gives .share-chip--hero a top
   margin meant for the old flex-row hero. */
.profile-hero .share-chip--hero{grid-area:share;margin:0;align-self:start}
@media (max-width:699px){
	.profile-hero .share-chip--hero{width:44px;min-height:44px;padding:0}
	.profile-hero .share-chip--hero>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (min-width:700px){
	.profile-hero{padding:24px}
	.ph-top{grid-template-columns:120px minmax(0,1fr) auto;grid-template-areas:"ava id share";column-gap:20px;align-items:start}
	.ph-top>.doc-ava{width:120px;height:120px}
	.ph-id{display:block;grid-area:id;align-self:center;min-width:0}
	.ph-name{margin-top:0}
	.ph-badges{margin-top:10px}
}
/* 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:62ch;margin:14px 0 0;
	padding:9px 12px;background:var(--brand-50);border-inline-start:3px solid var(--brand);
	border-radius:var(--radius-sm);font-size:.92rem;font-weight:600;line-height:1.65;color:var(--body)}
.hero-pitch svg{width:17px;height:17px;flex:0 0 auto;color:var(--brand);margin-top:3px}
/* The four comparison numbers as one ruled strip. The 1px grid gap over a --line background
   draws the dividers, the way the result card's facts strip does, so there are no per-cell
   borders to double up. Two columns on a phone; an odd last cell spans the row. */
.ph-facts{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
	gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.ph-fact{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;background:var(--card)}
.ph-fact:last-child:nth-child(odd){grid-column:1 / -1}
.ph-fact--rate{padding:0}
.ph-fact--rate a{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:44px;padding:12px;color:inherit;text-decoration:none}
.ph-fact--rate a:hover{background:var(--brand-50)}
.ph-fact--rate a:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.ph-fact-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:var(--radius-sm);background:var(--brand-50);color:var(--brand)}
.ph-fact-ic .gi{width:18px;height:18px}
.ph-fact--rate .ph-fact-ic{background:var(--tier-gold-bg);color:var(--tier-gold)}
.ph-fact-t{display:flex;flex-direction:column;min-width:0;line-height:1.35}
/* The value may wrap between number and unit ("400–600 / ج.م"); the number itself never splits.
   It used to be nowrap as a whole and the strip's overflow:hidden cut the unit off at 360px. */
.ph-fact-t b{color:var(--ink);font-size:1.05rem}
.ph-fact-t b .medc-ltr{white-space:nowrap}
.ph-fact-t small{color:var(--muted);font-size:.76rem;font-weight:600;line-height:1.3;overflow-wrap:normal;word-break:normal}
.ph-unit{font-size:.8em;font-weight:600;color:var(--body)}
/* Two cells at 320–399px leave 52–72px for text beside a 36px tile: "Experience" broke
   mid-word. A smaller tile under 400px, none under 360px (the label still names the fact). */
@media (max-width:399px){
	.ph-fact:not(.ph-fact--rate),.ph-fact--rate a{gap:8px;padding:10px}
	.ph-fact-ic{width:28px;height:28px}
	.ph-fact-ic .gi{width:16px;height:16px}
}
@media (max-width:359px){.ph-fact-ic{display:none}}
@media (min-width:700px){
	.ph-facts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
	.ph-fact:last-child:nth-child(odd){grid-column:auto}
}
.ph-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:14px}
.ph-chip{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--brand-100);
	border-radius:var(--radius-chip);background:var(--card);color:var(--brand-700);font-size:.85rem;font-weight:700;text-decoration:none}
.ph-chip:hover{background:var(--brand-50);border-color:var(--brand)}
.ph-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (pointer:coarse){.ph-chip{min-height:44px}}
.ph-langs{display:inline-flex;align-items:center;gap:6px;color:var(--body);font-size:.86rem;line-height:1.5}
.ph-langs .gi{width:16px;height:16px;color:var(--muted)}
/* Block, not flex: the Arabic sentence is text nodes around two isolated numbers, and as flex
   items each piece became its own column at 360px. A fact, so body ink rather than link crimson. */
.profile-hero .social-proof{display:block;margin-top:12px;color:var(--body);line-height:1.7}
.profile-hero .social-proof .gi{display:inline-block;width:16px;height:16px;vertical-align:-3px;margin-inline-end:6px;color:var(--brand)}
/* In-page section index. A tab strip, not a list: the hairline under it is the rail the active
   tab's 2px brick underline sits on. Scrolls sideways on a phone (full-bleed, so the last tab
   is not cut off 20px short of the screen edge) and pins under the nav from 900px, where there
   is height to spare for it. */
.prof-toc{margin-top:12px;border-bottom:1px solid var(--line);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.prof-toc::-webkit-scrollbar{display:none}
.prof-toc ul{display:flex;list-style:none;margin:0;padding:0}
.prof-toc li{flex:none}
.prof-toc a{display:flex;align-items:center;min-height:46px;padding:0 12px;margin-bottom:-1px;border-bottom:2px solid transparent;
	color:var(--muted);font-size:.88rem;font-weight:700;white-space:nowrap;text-decoration:none}
.prof-toc a:hover{color:var(--ink)}
.prof-toc a.is-cur{color:var(--brand-700);border-bottom-color:var(--brand)}
.prof-toc a:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
/* A fade at the inline END says "more tabs this way" — in Arabic the fifth tab sat entirely
   off-screen with nothing to suggest it existed. The list's end padding lets the last tab
   scroll clear of the fade. `to right` puts the transparent stop on the LEFT (RTL's end). */
@media (max-width:899px){
	.prof-toc{margin-inline:-20px;padding-inline:8px;
		-webkit-mask-image:linear-gradient(to right,transparent 0,#000 32px);mask-image:linear-gradient(to right,transparent 0,#000 32px)}
	[dir="ltr"] .prof-toc{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 32px);mask-image:linear-gradient(to left,transparent 0,#000 32px)}
	.prof-toc ul{padding-inline-end:28px}
}
@media (min-width:900px){
	/* The box-shadow + clip-path pair paints the strip's background out to the viewport edges
	   without a wrapper element, so content scrolling under it never shows at the sides. */
	.prof-toc{position:sticky;top:var(--nav-h);z-index:30;background:var(--bg);
		box-shadow:0 0 0 100vmax var(--bg);clip-path:inset(0 -100vmax)}
}
.profile-cols{display:grid;grid-template-columns:1fr;gap:22px;margin-top:22px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
/* 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 .medc-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}

/* --- Profile: columns + panels --- */
/* Flex columns with a gap, so the spacing between panels is one number instead of a
   margin-top on every panel that each template wrote inline and slightly differently. */
.prof .profile-cols{gap:12px;margin-top:16px}
.prof-main,.prof-aside{display:flex;flex-direction:column;gap:12px;min-width:0}
.prof-main>.panel,.prof-aside>.panel{margin:0}
.prof .panel{padding:16px}
.prof .panel-h{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:1.12rem;line-height:1.4;margin:0 0 14px}
.prof .panel-h>.gi{width:19px;height:19px;color:var(--brand)}
.panel-h-n{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:var(--radius-chip);
	background:var(--line-2);color:var(--body);font-size:.78rem;font-weight:700;line-height:1}
.prof-empty{margin:0;color:var(--muted);font-size:.92rem}
@media (min-width:700px){
	.prof-main,.prof-aside,.prof .profile-cols{gap:16px}
	.prof .panel{padding:20px 24px}
}
@media (min-width:900px){
	.prof{padding-top:24px}
	.prof .profile-cols{gap:24px}
	/* Clears the sticky section index (46px) as well as the nav. No max-height/inner scroll here:
	   an unclaimed profile's rail (contact + claim note + callback form) runs ~1250px, and a
	   capped rail became a hidden inner scroller that sliced the callback form mid-field. Instead
	   the top offset goes negative by however much the rail overflows the viewport (--aside-h is
	   measured in medc.js), so a tall rail scrolls with the page and then pins by its BOTTOM with
	   every field visible; a short one pins by its top as before. Without JS the 100vh fallback
	   makes the offset negative, i.e. the rail simply scrolls — nothing is ever unreachable. */
	.prof .profile-cols>aside{max-height:none;overflow:visible;
		top:min(calc(var(--nav-h) + 62px),calc(100vh - var(--aside-h,100vh) - 16px))}
	/* The contact card is the conversion point of the page: one brick rule along its top edge
	   marks it as the action panel among the reading panels. */
	.prof-aside>.aside-sticky{box-shadow:inset 0 3px 0 var(--brand)}
}

/* --- Profile: clinic cards --- */
.prof .branch{margin:0 0 12px;padding:14px;background:var(--card);border-radius:var(--radius)}
.prof .branch:last-child{margin-bottom:0}
.branch-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
.prof .branch-h{margin:0;font-size:1.02rem;line-height:1.5;min-width:0}
.prof .branch-h a{color:var(--ink);text-decoration:none;padding-block:7px;margin-block:-7px}
.branch-top .badge{flex:none;margin-top:2px}
/* The "open now" dot, drawn rather than typed: the "●" it replaces came from whatever fallback
   font had it, at a different size on every Android skin. */
.badge .dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.branch-loc{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;color:var(--body);font-size:.9rem;line-height:1.65}
.branch-loc .gi{width:16px;height:16px;margin-top:3px;color:var(--brand)}
.branch-facts{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0}
.branch-facts li{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border:1px solid var(--line-2);
	border-radius:var(--radius-chip);background:var(--bg);color:var(--body);font-size:.8rem;font-weight:600}
.branch-facts .gi{width:15px;height:15px;color:var(--muted)}
.branch-facts .is-fee{background:var(--brand-50);border-color:var(--brand-100);color:var(--brand-700)}
.branch-facts .is-fee .gi{color:var(--brand)}
.prof .map-embed{margin:12px 0 0}
/* The iframe paints nothing until OpenStreetMap answers, which on mobile data is a white slab
   that reads as a broken embed. A neutral tile holds the place instead. */
.map-embed iframe{display:block;width:100%;height:220px;border:0;border-radius:var(--radius);background:var(--line-2)}
/* Hours, collapsed to today. The summary is one 48px row: what today looks like, and the way
   to the full week at its far end. */
.hours-acc{margin-top:12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}
.hours-acc>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:48px;padding:6px 12px;cursor:pointer;
	font-size:.9rem;border-radius:inherit}
.hours-acc>summary::-webkit-details-marker{display:none}
.hours-acc>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hours-acc>summary>.gi{width:17px;height:17px;color:var(--brand)}
.hours-sum-l{color:var(--muted);font-weight:600;flex:none}
.hours-sum-v{flex:1 1 auto;min-width:0;color:var(--ink);font-weight:700}
.hours-sum-more{display:inline-flex;align-items:center;gap:2px;flex:none;margin-inline-start:auto;color:var(--brand-700);
	font-size:.8rem;font-weight:700;white-space:nowrap}
.hours-sum-more .gi{width:17px;height:17px;transition:transform .2s ease}
.hours-acc[open] .hours-sum-more .gi{transform:rotate(180deg)}
/* At 360px "كل المواعيد" pushed today's hours onto a second line. The words stay for screen
   readers (font-size:0 hides glyphs, not text); the chevron alone carries the affordance. */
@media (max-width:400px){.hours-sum-more{font-size:0;gap:0}}
.hours-acc .hours{width:calc(100% - 24px);margin:0 12px 6px}
/* The clinic card's map disclosure wears the hours row's frame; stacked under it, a tighter gap. */
.hours-acc+.map-acc{margin-top:8px}
.prof .map-acc .map-embed{margin:0 12px 12px}
.map-acc .map-embed iframe{border-radius:var(--radius-sm)}
.map-acc .hours-sum-v{font-weight:600}
.hours tr:last-child>*{border-bottom:0}
.hours tr.is-today>*{color:var(--ink);font-weight:700}
.hours tr.is-today th::before{content:"";display:inline-block;width:6px;height:6px;margin-inline-end:6px;border-radius:50%;
	background:var(--brand);vertical-align:middle}
/* Regular weight: the scan target is when the clinic IS open, so "Closed" must not out-shout
   the ranges. Today's row and the summary value keep their 700 (they set it on the row). */
.hr-closed{color:var(--muted);font-weight:400}
.hours tr:not(.is-today) td{color:var(--ink)}
.hours tr.is-today .hr-closed,.hours-sum-v .hr-closed,.br-today .hr-closed{font-weight:inherit}
.hr-24{color:var(--ok);font-weight:700}
.branch-note{margin:10px 0 0;color:var(--muted);font-size:.84rem;line-height:1.7}
.prof .branch .contact-actions{margin-top:12px}
.branch-more{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:4px;color:var(--brand-700);
	font-size:.88rem;font-weight:700;text-decoration:none}
.branch-more:hover{text-decoration:underline}
.branch-more-ic{width:16px;height:16px}
[dir="ltr"] .branch-more-ic{transform:scaleX(-1)}
@media (prefers-reduced-motion:reduce){.hours-sum-more .gi{transition:none}}

/* --- Profile: about + credentials --- */
.prof-about{max-width:72ch;color:var(--body);line-height:1.9}
.prof-about p{margin:0}
.prof-about p+p{margin-top:.8em}
.prof .video-embed{margin-top:16px}
.prof .cred-list{display:block;margin:0;font-size:.93rem}
.cred-list>div{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:2px 12px;padding:10px 0;border-bottom:1px solid var(--line-2)}
.cred-list>div:first-child{padding-top:0}
.cred-list>div:last-child{border-bottom:0}
.cred-list dt{color:var(--muted);font-size:.85rem;font-weight:600;line-height:1.7}
.cred-list dd{margin:0;color:var(--ink);line-height:1.7;overflow-wrap:anywhere}
.cred-list dd .badge{margin-inline-start:4px;padding:.15rem .35rem;vertical-align:middle}
@media (max-width:359px){.cred-list>div{grid-template-columns:1fr}}
.cred-group{margin-top:16px;padding-top:14px;border-top:1px solid var(--line-2)}
.cred-list+.cred-group,.prof .cred-group:first-of-type{margin-top:14px}
.cred-h{margin:0 0 8px;color:var(--body);font-size:.88rem;font-weight:700}
.prof .doc-tags{display:flex;flex-wrap:wrap;gap:6px}
.prof .doc-tags .tag{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 10px;font-size:.82rem}
/* Plain chips and link chips at one height, so the credentials panel keeps one rhythm; the
   44px touch floor only where it is needed (and where the link chips have it anyway). */
.prof .doc-tags .tag,.prof .doc-tags .tag-link{min-height:36px}
@media (pointer:coarse){.prof .doc-tags .tag,.prof .doc-tags .tag-link{min-height:44px}}
.ph-badges .badge,.ph-badges .tier-badge{font-size:.75rem}
.prof .tag .gi{width:14px;height:14px}
.prof .socials{margin-top:16px}
.prof .social-link .gi{width:14px;height:14px}

/* --- Profile: reviews --- */
/* Score and dimension bars side by side from 560px; stacked under it. */
.rv-sum{display:grid;gap:14px;margin-bottom:6px;padding:14px;background:var(--bg);border:1px solid var(--line-2);border-radius:var(--radius)}
.rv-score{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"avg stars" "avg n";align-items:center;column-gap:12px;row-gap:2px}
.rv-avg{grid-area:avg;color:var(--ink);font-size:2.5rem;font-weight:700;line-height:1}
.rv-score>.rv-stars{grid-area:stars}
.rv-score>small{grid-area:n;color:var(--muted);font-size:.8rem;font-weight:600}
@media (min-width:560px){
	.rv-sum{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:24px;padding:16px 20px}
	.rv-score{padding-inline-end:24px;border-inline-end:1px solid var(--line)}
}
/* Fractional stars without a font: two identical rows of sprite stars, the filled one clipped
   to the rating's width. inset-inline-start anchors the clip at the reading start, so 4.5 fills
   from the right in Arabic and from the left in English, with no second rule. */
.rv-stars{position:relative;display:inline-block;line-height:0;white-space:nowrap;vertical-align:middle}
.rv-stars-base,.rv-stars-fill{display:inline-flex;gap:2px}
.rv-stars-base{color:var(--field-line);opacity:.35}
.rv-stars-fill{position:absolute;inset-block:0;inset-inline-start:0;overflow:hidden;color:var(--tier-gold)}
.rv-stars .gi{width:18px;height:18px}
.rv-stars--sm .gi{width:14px;height:14px}
.prof .rev-dims{list-style:none;display:grid;gap:8px;margin:0;padding:0;font-size:.84rem;color:var(--body)}
.prof .rev-dims li{display:grid;grid-template-columns:minmax(6.5rem,auto) minmax(0,1fr) 2rem;align-items:center;gap:10px}
.rev-dim-n{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.rev-dim-n .gi{width:15px;height:15px;color:var(--muted)}
.rev-dim-bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.rev-dim-bar>span{display:block;height:100%;border-radius:inherit;background:var(--tier-gold)}
.prof .rev-dims b{color:var(--ink);text-align:end}
.prof .review{padding:16px 0;border-top:1px solid var(--line-2)}
.prof #medc-reviews-list>.review:first-child{border-top:0}
.prof .review .who{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:10px;color:inherit;font-weight:400}
/* A square initial tile, the same shape every avatar on the site has. */
.rv-ava{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-sm);
	background:var(--brand-50);color:var(--brand-700);font-size:1rem;font-weight:700;line-height:1}
.rv-who{display:flex;flex-direction:column;gap:3px;min-width:0}
.rv-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.rv-name{color:var(--ink);font-size:.95rem;font-weight:700}
.prof .review .verified-badge{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:var(--radius-chip);
	background:var(--ok-bg);color:var(--ok);font-size:.72rem;font-weight:700}
.verified-badge .gi{width:12px;height:12px}
.prof .review .rating{line-height:0}
.rv-date{color:var(--muted);font-size:.78rem}
.rv-text{margin:8px 0 0;color:var(--body);font-size:.94rem;line-height:1.85;overflow-wrap:anywhere}
.prof .review-reply{margin:10px 0 0;padding:10px 12px;border-inline-start:3px solid var(--brand);border-radius:var(--radius-sm);
	background:var(--bg);color:var(--body);font-size:.88rem;line-height:1.75}
.prof .review-reply b{display:block;margin-bottom:2px;color:var(--brand-700);font-size:.8rem}
.prof .helpful-btn{margin-top:10px;min-height:36px;padding:0 12px;gap:6px;border-radius:var(--radius-sm);
	font-family:inherit;font-size:.8rem;font-weight:600}
.helpful-btn .gi{width:15px;height:15px}
/* Disabled = already voted. It used to look identical, so a second tap read as a dead button. */
.prof .helpful-btn:disabled{background:var(--brand-50);border-color:var(--brand-100);color:var(--brand-700);cursor:default}
.helpful-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (pointer:coarse){.prof .helpful-btn{min-height:44px}}
.prof .rv-more{width:100%;margin-top:8px}
/* From 560px the body of a review hangs under the name, not under the avatar, so a page of
   reviews reads as a column of threads rather than a ragged left edge. */
/* Padding on the article (page direction) with the header pulled back, not a margin on each
   child: a dir="auto" English review would resolve margin-inline-start to its OWN start and
   indent from the wrong side of an Arabic page. */
@media (min-width:560px){.prof .review{padding-inline-start:50px}.prof .review>.who{margin-inline-start:-50px}}
/* The desktop share rail has 292px inside the aside: label + five 44px buttons only fit with
   a tighter gap, and the "more" button used to drop onto a line of its own. */
.prof-aside .post-share{gap:6px;flex-wrap:nowrap}
.prof-empty--rv{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 12px;text-align:center;
	background:var(--bg);border:1px dashed var(--line);border-radius:var(--radius)}
.prof-empty--rv .rv-stars .gi{width:22px;height:22px}
.prof-empty--rv p{margin:0;color:var(--body);font-weight:600}
/* The write-a-review disclosure. With no reviews yet it is open on load and the empty state
   above already says "be the first", so its toggle row would only repeat that — it goes. */
.rv-write{margin-top:16px;padding-top:16px;border-top:1px solid var(--line-2)}
.rv-write>summary{list-style:none;cursor:pointer}
.rv-write>summary::-webkit-details-marker{display:none}
.rv-write>summary .gi{width:18px;height:18px;color:var(--tier-gold)}
.rv-write[open]>summary{border-color:var(--brand);color:var(--brand-700)}
.prof-empty--rv~.rv-write{border-top:0;padding-top:0}
.prof-empty--rv~.rv-write>summary{display:none}
@media (max-width:699px){.rv-write>summary{display:flex;width:100%}}

/* --- Profile: contact aside --- */
.aside-lede{margin:0;color:var(--body);font-size:.9rem;line-height:1.7}
.aside-branch{display:flex;align-items:center;gap:4px;margin-top:6px;color:var(--ink);font-size:.82rem;font-weight:700}
.aside-branch .gi{width:15px;height:15px;color:var(--brand)}
.aside-fee{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line-2);
	color:var(--body);font-size:.88rem}
.aside-fee .gi{width:18px;height:18px;color:var(--brand)}
.aside-fee b{margin-inline-start:auto;color:var(--ink);font-size:1rem}
.prof-aside .own-note{margin:0}
/* The one action the notice exists for gets the full row; correct/remove share the next. */
.prof .own-acts .btn-cta{flex:1 1 100%}
.prof .own-acts .btn-ghost{flex:1 1 0;min-width:max-content}
.cb-panel .cb-lede{margin:0 0 12px}
.cb-field{display:flex;flex-direction:column;gap:6px}
.cb-lbl{color:var(--body);font-size:.84rem;font-weight:700}
.cb-lbl small{color:var(--muted);font-weight:500}
[dir="rtl"] .cb-field .inp[dir="ltr"]{text-align:right}
.cb-panel .cb-msg:empty{min-height:0}
.prof .inp{min-height:48px;font-size:1rem}
.prof textarea.inp{min-height:88px}

/* --- Profile: FAQ, trust note, related --- */
.prof-faq-i{border-bottom:1px solid var(--line-2)}
.prof-faq-i:last-child{border-bottom:0}
.prof-faq-i>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;
	padding:10px 0;cursor:pointer;color:var(--ink);font-size:.95rem;font-weight:700;line-height:1.6}
.prof-faq-i:first-child>summary{padding-top:0}
.prof-faq-i>summary::-webkit-details-marker{display:none}
.prof-faq-i>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:var(--radius-xs)}
.prof-faq-ic{width:18px;height:18px;color:var(--muted);transition:transform .2s ease}
.prof-faq-i[open] .prof-faq-ic{transform:rotate(180deg);color:var(--brand)}
.prof-faq-i p{margin:0 0 14px;color:var(--body);font-size:.92rem;line-height:1.85}
@media (prefers-reduced-motion:reduce){.prof-faq-ic{transition:none}}
.prof-trust{display:grid;gap:8px;margin-top:16px;padding:14px 16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.prof-trust-h{margin:0;color:var(--body);font-size:.9rem;line-height:1.75}
.prof-trust-h strong{color:var(--ink)}
.prof-trust-h .gi{width:17px;height:17px;color:var(--nile)}
.prof-trust .trust-note,.prof-trust .medc-claim-pending{margin:0}
/* Vertical padding on an inline link grows its hit area without touching the line box, so the
   24px policy links reach a thumb-sized target with no change to the note's layout. */
.prof-trust .trust-note a{padding-block:9px}
.prof-related{margin-top:32px}
.prof-related .h-sec{margin-bottom:16px}

/* --- Sticky mobile contact bar (profile + branch page) --- */
/* `body` prefix: the bar sits outside .prof, and this has to out-rank the v1.2 definition. */
body .mobile-callbar{gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(20,23,27,.08)}
body .mobile-callbar .btn{min-height:48px;padding:0 12px;gap:8px;font-size:.95rem}
body .mobile-callbar .btn .gi{width:19px;height:19px;flex:none}
/* The buttons may shrink below their label (min-width:0) and the label ellipsises instead of
   pushing the 48px share square off the screen: at 320px the bar measured 358px wide. */
body .mobile-callbar .btn{flex:1 1 auto;min-width:0}
.mobile-callbar .cb-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Under 375px three labelled controls do not fit at all: WhatsApp keeps its green and its icon
   (the label stays as its accessible name), Contact numbers gets the room. */
@media (max-width:374px){
	body .mobile-callbar{gap:6px;padding-inline:8px}
	body .mobile-callbar .btn{padding:0 10px;gap:6px;font-size:.9rem}
	body .mobile-callbar .btn-wa{flex:0 0 48px;padding:0}
	body .mobile-callbar .btn-wa .cb-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
/* 761–899px (tablets, landscape phones) is still the one-column layout, where the contact panel
   lands after every section — so the bar shows there too, in the botnav's place (the body's
   reserve shrinks from the botnav's 66px to the bar's own 65px). */
@media (min-width:761px) and (max-width:899px){
	body .mobile-callbar{display:flex}
	body:has(.mobile-callbar) .botnav{display:none}
	body:has(.mobile-callbar){padding-bottom:calc(65px + env(safe-area-inset-bottom))}
}
/* One primary on the doctor and clinic pages. The reveal and claim buttons are .btn-cta (brick
   gradient, white in both themes); the bar, review and callback submits were the flat, brighter
   .btn-primary — and in dark mode near-black on coral — so three "main" reds sat on one screen.
   .btn-primary itself now carries this fill site-wide; the restatement guards these two contexts
   against any later page-level override of the default. */
body .mobile-callbar .btn-primary,.prof .btn-primary{background:linear-gradient(180deg,var(--cta-2),var(--cta));
	color:var(--cta-ink);border-color:var(--cta);box-shadow:0 2px 8px var(--cta-glow)}
body .mobile-callbar .btn-primary:hover,.prof .btn-primary:hover{background:linear-gradient(180deg,var(--cta-2),var(--cta));
	color:var(--cta-ink);filter:brightness(1.14)}
/* Focus and in-page jumps must clear the fixed bar (WCAG 2.4.11). */
@media (max-width:899px){
	html:has(.mobile-callbar){scroll-padding-block-end:calc(84px + env(safe-area-inset-bottom))}
}

/* 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:.98rem;font-weight:700;margin:0 0 .8rem;line-height:1.4}
.footer a{color:var(--foot-muted);display:block;padding:.3rem 0;transition:color .15s}
.footer a:hover{color:var(--foot-hi)}
/* The global ring is --brand, which in the LIGHT theme is #B2352A on this always-dark band:
   about 2.6:1, i.e. a focus indicator that fails the 3:1 it exists to provide. */
.footer :focus-visible{outline-color:var(--foot-hi)}
/* Emergency line in the closing strip. A directory that is not an emergency service says so on
   every page, with the number one tap away — a tel: link works with no data connection at all. */
.foot-emg{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.35rem .6rem;margin:0 0 .7rem;
	color:var(--foot-ink);font-size:.88rem}
.foot-emg>svg{width:16px;height:16px;flex:0 0 auto;color:var(--gold)}
/* The two numbers are the same compact outline call buttons the offline, contact and emergency
   pages use — not underlined words, which read as two more footer links. The pair stays one
   unit so a wrap never strands 112 on a line of its own. */
.foot-emg-acts{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:8px}
.footer .foot-emg a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;color:var(--foot-hi);font-weight:700;
	border:1px solid rgba(255,255,255,.24);border-radius:var(--radius-ctl);text-decoration:none;
	transition:border-color .15s,background-color .15s}
.footer .foot-emg a svg{width:16px;height:16px;flex:0 0 auto;color:var(--gold)}
.footer .foot-emg a b{font-variant-numeric:tabular-nums}
.footer .foot-emg a:hover{border-color:var(--foot-hi);background:rgba(255,255,255,.06)}
.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:var(--radius-ctl);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:28px;padding:14px max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
	color:var(--foot-dim);font-size:.85rem;text-align:center}
.foot-copy{margin:0}
/* The two long lists (every specialty, every district): full-width grids of short rows instead of
   one-link-per-line columns. medc.js adds .foot-clip, which shows the first --foot-rows rows and a
   "show all" button; without JS every link is simply visible. Links never leave the HTML. */
.footer .foot-wide{--foot-rows:4;--foot-rh:2.3rem}
.footer .foot-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:minmax(var(--foot-rh),auto);column-gap:24px}
.footer .foot-list a{display:flex;align-items:center;padding:.2rem 0;min-width:0;overflow-wrap:anywhere}
.footer .foot-clip:not(.is-open) .foot-list{max-height:calc(var(--foot-rows) * var(--foot-rh));overflow:hidden;
	-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
.footer .foot-more-btn{display:inline-flex;align-items:center;gap:.45rem;min-height:40px;margin-top:.6rem;padding:0 14px;background:none;
	border:1px solid var(--foot-line);border-radius:var(--radius-ctl);color:var(--foot-hi);font:inherit;font-size:.86rem;font-weight:600;cursor:pointer;
	transition:border-color .15s,background-color .15s}
.footer .foot-more-btn::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.footer .foot-clip.is-open .foot-more-btn::after{transform:translateY(2px) rotate(-135deg)}
.footer .foot-more-btn:hover{border-color:var(--foot-hi);background:rgba(255,255,255,.06)}
.footer .foot-more-btn[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.footer .foot-more-btn{transition:none}}
@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)}
	/* The h5 is only a wrapper now: the BUTTON inside it owns the 54px row, the padding and the
	   chevron. They used to belong to the h5, so the 16px above and below the label and the
	   chevron itself were dead ground — the tap target was the 27px line of text in the middle. */
	.footer .wrap > div:not(:first-child) h5{display:flex;margin:0;padding:0}
	.footer .wrap > div:not(:first-child) .foot-acc{justify-content:space-between;gap:12px;min-height:54px;padding:0 2px;box-sizing:border-box}
	.footer .wrap > div:not(:first-child) .foot-acc::after{content:"";flex:0 0 auto;width:8px;height:8px;margin-inline:4px;
		border-right:2px solid var(--foot-muted);border-bottom:2px solid var(--foot-muted);transform:translateY(-2px) rotate(45deg);transition:transform .25s ease}
	.footer .wrap > div:not(:first-child).open .foot-acc::after{transform:translateY(2px) rotate(-135deg)}
	.footer .wrap > div:not(:first-child) > a{display:none;padding:.5rem 2px;min-height:44px;align-items:center}
	.footer .wrap > div:not(:first-child).open > a{display:flex}
	.footer .wrap > div:not(:first-child).open{padding-bottom:10px}
	/* Long lists inside the accordion: two columns of 44px rows, six rows before "show all". */
	.footer .wrap > div.foot-wide{--foot-rows:6;--foot-rh:44px}
	.footer .wrap > div.foot-wide > .foot-list{display:none;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
	.footer .wrap > div.foot-wide.open > .foot-list{display:grid}
	.footer .wrap > div.foot-wide > .foot-list a{padding:.4rem 2px}
	.footer .wrap > div.foot-wide:not(.open) > .foot-more-btn{display:none}
	.footer .wrap > div.foot-wide.open > .foot-more-btn{margin-bottom:.4rem}
	@media (prefers-reduced-motion:reduce){.footer .wrap > div:not(:first-child) .foot-acc::after{transition:none}}
	.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:""}
/* The padding grows the hit area to ~43px and the equal negative margin hands the space back, so
   the trail keeps its compact line while "Home" stops being a 23px target. */
.crumbs a{color:var(--brand-700);padding-block:10px;margin-block:-10px}
.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 */
/* Tiles keep a 4:3 box (no layout shift while the lazy images arrive) and the grid is shaped by
   the photo COUNT so there is never one orphan tile on a row of its own: an odd count on a
   phone gives the first photo the full row; on wider screens 2 → two columns, 3 or 6 → three,
   5 → the first photo takes a 2×2 block beside four small ones. */
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:.6rem}
.gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-sm);
	border:1px solid var(--line);background:var(--line-2)}
.gallery-item:first-child:nth-last-child(odd){grid-column:1 / -1}
.gallery-item:first-child:nth-last-child(odd) img{aspect-ratio:16/9}
@media (min-width:640px){
	.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}
	.gallery-item:first-child:nth-last-child(odd){grid-column:auto}
	.gallery-item:first-child:nth-last-child(odd) img{aspect-ratio:4/3}
	.gallery:has(>.gallery-item:first-child:nth-last-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
	.gallery:has(>.gallery-item:first-child:nth-last-child(3)),
	.gallery:has(>.gallery-item:first-child:nth-last-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))}
	.gallery-item:only-child{grid-column:span 2}
	.gallery-item:first-child:nth-last-child(5){grid-column:span 2;grid-row:span 2}
	/* The 2×2 photo is taken out of intrinsic sizing: the four small 4:3 tiles define the two row
	   heights and this image just fills the area they make. Left in flow with height:100%, it fed
	   its own height back into the spanned rows and the gallery grew to ~1500px tall. */
	.gallery-item:first-child:nth-last-child(5) img{position:absolute;inset:0;height:100%;aspect-ratio:auto}
}

/* Global form controls (used by review, callback, contact forms) */
.inp{width:100%;border:1px solid var(--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(--line)}
.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{margin:0 0 12px;font-size:1.02rem;font-weight:700;color:var(--ink)}
/* Inside the profile's write-a-review disclosure the summary row above is the separator. */
.rv-write .review-form{border-top:0;margin-top:14px;padding-top:0}
.rv-form-lbl{margin:0 0 2px;color:var(--body);font-size:.84rem;font-weight:700}
.review-form #medc-stars{margin:0 0 10px;margin-inline-start:-8px}
.review-form #medc-stars .star{font-size:1.9rem}
/* At 320px five 46px stars and the pull-back ran 8–17px past the form's edges. */
@media (max-width:359px){.review-form #medc-stars{margin-inline-start:0}.review-form #medc-stars .star{font-size:1.6rem}}
/* Inside the write-a-review disclosure its summary already says "Write a review"; the form's own
   heading stays for screen-reader heading navigation only. */
.rv-write .review-form>h4{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The three dimension rows as a ruled list: label at the start, five 44px stars at the end.
   Without the boxed panel's padding a row fits 318px — a 390px phone — on one line; under
   that, flex-wrap drops the stars under their label rather than overflowing. */
.review-form .rev-dim-inputs{gap:0;margin:0 0 14px;padding:0 8px 0 10px;background:var(--bg);border-color:var(--line)}
.review-form .rev-dim{padding:4px 0;border-bottom:1px solid var(--line-2);color:var(--body)}
.review-form .rev-dim:last-child{border-bottom:0}
.review-form .stars-sm{gap:0;margin:0}
/* 42px wide (still 44px tall): the two pixels per star are what keep "Cleanliness" and its
   five stars on one row at 390px. */
.review-form .stars-sm .star{font-size:1.1rem;padding:0;min-width:42px}
.rv-fields{display:grid;gap:12px}
.review-form .cb-field .inp[dir="ltr"]{text-align:start}
[dir="rtl"] .review-form .cb-field .inp[dir="ltr"]{text-align:right}
#medc-rv-msg{margin:12px 0 0}
#medc-rv-msg:empty{margin:0}
.review-form .rv-submit{width:100%;margin-top:14px}
.review-form .trust-note{margin:10px 0 0}
@media (min-width:700px){.review-form .rv-submit{width:auto;min-width:200px}}
.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:#f5b301;opacity:1}
.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. */
.medc-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) */
.medc-form{display:flex;flex-direction:column;gap:16px}
.medc-field{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.medc-field-row{display:grid;gap:16px}
@media(min-width:560px){.medc-field-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* --body, not --muted, and 700: a label is the field's name, and at .82rem in --muted it read as
   the hint text under it. The asterisk uses the error ink token, which has a dark twin. */
.medc-label{font-size:.86rem;font-weight:700;color:var(--body);line-height:1.4}
.medc-label em{color:var(--err-ink);font-style:normal}
.medc-label small{font-weight:500;color:var(--muted);font-size:.92em}
.medc-hint{color:var(--muted);font-size:.84rem;line-height:1.6;margin:0}
.medc-hint a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.2em}
.medc-form .btn[type="submit"]{min-height:50px;font-size:1rem}
.medc-form .btn[aria-busy="true"]{cursor:progress;opacity:.75}
/* The stacked form's fields (contact, claim) wear the field system the home search uses, not the
   global .inp: a --line edge on a --bg fill inside a white card measured ~1.2:1 and read as a
   grey slab, and 15.2px text made iOS Safari zoom the page on focus. 1rem is the no-zoom floor.
   Colour longhands, not `background`, so the select chevron below survives :focus. */
.medc-form .inp{min-height:48px;font-size:1rem;line-height:1.5;border-color:var(--field-line);background-color:var(--card)}
@media (hover:hover){.medc-form .inp:hover{border-color:var(--ink)}}
.medc-form .inp:focus{border-color:var(--brand);background-color:var(--card)}
/* Set by the form's script on an empty required field; cleared as soon as it has content. */
.medc-form .inp[aria-invalid="true"]{border-color:var(--err-ink)}
.medc-form .inp[aria-invalid="true"]:focus{box-shadow:0 0 0 3px var(--danger-line)}
/* The stroked chevron every other disclosure on the site uses, instead of the global .inp's
   two-gradient filled triangle. A data URI cannot read a token, so dark restates the stroke
   with dark --muted (#948C89), in both dark dialects. */
.medc-form select.inp{background-repeat:no-repeat;background-size:16px 16px;
	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='%23676F7D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
[dir="rtl"] .medc-form select.inp{background-position:14px 50%;padding-left:2.6rem}
[dir="ltr"] .medc-form select.inp{background-position:calc(100% - 14px) 50%;padding-right:2.6rem}
:root[data-theme="dark"] .medc-form select.inp{
	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='%23948C89' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .medc-form select.inp{
	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='%23948C89' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}}
/* The form's one status line. A real box once it has something to say, so success and failure
   cannot be missed under a 50px button on a phone; empty, it reserves nothing. */
.medc-status:empty{display:none}
.medc-status{display:flex;align-items:flex-start;gap:.5rem;padding:.7rem .85rem;border-radius:var(--radius-ctl);
	font-size:.9rem;font-weight:600;line-height:1.55;border:1px solid var(--line);background:var(--bg)}
.medc-status.is-ok{color:var(--ok);background:var(--ok-bg);border-color:transparent}
.medc-status.is-err{color:var(--err-ink);background:var(--danger-bg);border-color:var(--danger-line)}
.cb-msg,#medc-rv-msg{font-size:.85rem;min-height:1.1em}
/* Callback form on doctor profile */
#medc-callback-form{display:flex;flex-direction:column;gap:10px}
#medc-callback-form .inp{margin-bottom:0!important}
#medc-callback-form .btn{margin-top:.2rem}
/* Both profile forms' status lines become a tinted box once they say something, so a success
   or a refusal under a full-width button on a phone cannot be missed. */
.cb-msg.is-ok,.cb-msg.is-err,#medc-rv-msg.is-ok,#medc-rv-msg.is-err{padding:10px 12px;border-radius:var(--radius-ctl);
	font-size:.88rem;font-weight:600;line-height:1.6}
.cb-msg.is-ok,#medc-rv-msg.is-ok{background:var(--ok-bg);color:var(--ok)}
.cb-msg.is-err,#medc-rv-msg.is-err{background:var(--danger-bg);color:var(--err-ink);border:1px solid var(--danger-line)}

/* Mobile bottom nav */
.botnav{display:none}
@media (max-width:899px){
	/* One number for the bar's height, read by the PWA bar and toast (which already fall back to
	   66px) and by the body reserve below. */
	:root{--botnav-h:66px}
	/* The fixed bar must not hide what focus or scrollIntoView lands on (WCAG 2.4.11): a form's
	   submit button tabbed to at the foot of the viewport ended up under it. End side only — the
	   start side is set with the sticky search bar. */
	html{scroll-padding-block-end:calc(var(--botnav-h) + env(safe-area-inset-bottom) + 8px)}
	.botnav{display:grid;grid-template-columns:repeat(4,minmax(0,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);box-shadow:0 -4px 16px rgba(20,23,27,.05);
		padding:6px max(4px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))}
	.botnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
		font-size:.72rem;line-height:1.25;color:var(--muted);min-height:53px;font-weight:600;border-radius:var(--radius-ctl);
		-webkit-user-select:none;user-select:none;touch-action:manipulation}
	/* The current tab gets a SHAPE as well as a hue — a tinted plate behind the icon and a brick
	   tick on the bar's top edge. Colour alone was the only signal, which is the one cue that
	   fails for a colour-blind reader and in direct sunlight. */
	.botnav a::before{content:"";position:absolute;top:3px;left:50%;width:54px;height:30px;margin-left:-27px;
		border-radius:var(--radius-btn);background:var(--brand-50);opacity:0;transform:scale(.7);
		transition:opacity .2s ease,transform .2s cubic-bezier(.2,.8,.3,1)}
	.botnav a.on::before{opacity:1;transform:none}
	.botnav a.on::after{content:"";position:absolute;top:-7px;left:50%;width:28px;margin-left:-14px;height:3px;
		border-radius:0 0 3px 3px;background:var(--brand)}
	.botnav a.on{color:var(--brand-700)}
	@media (hover:hover){.botnav a:hover{color:var(--brand-700)}}
	.botnav a:active svg{transform:scale(.9)}
	.botnav svg{position:relative;width:22px;height:22px;margin-top:2px;transition:transform .12s}
	.botnav a.on svg{stroke-width:2.3}
	.botnav span,.botnav a{white-space:nowrap}
	.botnav a:focus-visible{outline-offset:-2px}
	@media (prefers-reduced-motion:reduce){.botnav a::before,.botnav svg{transition:none}}
	body{padding-bottom:calc(var(--botnav-h) + env(safe-area-inset-bottom))}
}

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

/* Responsive */
@media (min-width:640px){
	.g-region{grid-template-columns:repeat(3,1fr)}
}
@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}
	/* Five columns (brand, browse, for-doctors, more, legal); the two long lists take full rows. */
	.footer .wrap{grid-template-columns:1.3fr repeat(4,minmax(0,1fr));column-gap:28px}
	.footer .wrap > .foot-wide{grid-column:1 / -1}
}
/* 900–1179: seven columns at ~110px each wrapped every second label onto two lines. The brand
   column takes its own row there and the six link columns share the width beneath it. */
@media (min-width:900px) and (max-width:1179px){
	.footer .wrap{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:30px}
	.footer .wrap>div:first-child{grid-column:1 / -1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
		align-items:center;column-gap:28px}
	.footer .wrap>div:first-child .foot-tag{margin-top:0}
	.footer .wrap>div:first-child .foot-social{margin-top:0}
}
/* 1180+: link columns sized by their content instead of six equal 133px tracks, which wrapped the
   Legal column's long labels ("إعدادات ملفات تعريف الارتباط", "Request data deletion") while the
   short columns sat half empty. The brand column takes what is left (~220-260px). Measured
   max-content of all six link columns: ~700px ar, ~660px en, inside a 1132px wrap. */
@media (min-width:1180px){
	.footer .wrap{grid-template-columns:minmax(190px,1fr) repeat(4,auto);column-gap:36px}
}
@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}
}
/* 320–374px. Signed in, the bar carries a fifth control (the bell), and at 320px the English row
   measured 334px: the burger — the only way into the menu — was clipped off the screen edge.
   The gaps and the toggle's side padding give the room back; every control keeps its 44px height. */
@media (max-width:374px){
	.nav-in{gap:8px}
	.nav-right{gap:4px}
	.theme-toggle{padding-inline:1px}
	.nav-in:has(.medc-notif){gap:6px}
	.nav-in:has(.medc-notif) .brand-logo{height:26px}
}
/* 4px between four 44px boxes read as one fused slab at 360px, and there is ~60px to spare
   there. Only true 320–359px phones need the squeeze above (the English logo is 78px wide). */
@media (min-width:360px) and (max-width:374px){.nav-right{gap:7px}}
@media (prefers-reduced-motion:reduce){
	.reveal{opacity:1;transform:none;transition:none}
	*{scroll-behavior:auto!important}
	.hero-scene *{animation:none!important}
	.hero-scene .star{opacity:.6}
	/* With the animation off every element renders at its AUTHORED position, which is why the
	   template draws the felucca mid-river and the keyframes travel symmetrically either side
	   of it. Nothing to restate here — this comment exists so the next person to touch
	   @keyframes medc-felucca knows the still frame is load-bearing. */
}
/* 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 quarter of the picture, which
   at that crop is one bridge pier and some water — a texture, not "Cairo from the Nile". For
   that it would keep five 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.

   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 .lead{font-size:.97rem;margin-top:.55rem;max-width:100%}
	.hero .eyebrow{font-size:.82rem}
	.hero-scene{display:none}
}

/* ============================================================
   v1.2 additions — cards, trust, maps, conversion, search UX
   ============================================================ */
.doc-card.is-featured{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand-100)}
/* Membership-tier framing: Gold gets the strongest treatment, then Silver, then Bronze. */
.doc-card--gold{border-color:var(--tier-gold);box-shadow:0 0 0 1px var(--tier-gold-glow),0 6px 16px var(--tier-gold-glow)}
.doc-card--gold:hover{box-shadow:0 0 0 1px var(--tier-gold-glow),0 8px 20px var(--tier-gold-glow);transform:translateY(-2px)}
.doc-card--silver{border-color:var(--tier-silver);box-shadow:0 0 0 1px var(--tier-silver-glow)}
.doc-card--bronze{border-color:var(--tier-bronze);box-shadow:0 0 0 1px var(--tier-bronze-glow)}
.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:5px;font-size:.7rem;font-weight:700;line-height:1.7;border-radius:var(--radius-chip);padding:0 7px;vertical-align:middle;letter-spacing:.02em;white-space:nowrap}
/* A drawn diamond, not the "◆" character: the glyph came from whichever fallback font had it,
   so it rendered at a different size and baseline on every Android skin, and a screen reader
   announced "black diamond" before the tier name. */
.tier-badge::before{content:"";flex:none;width:5px;height:5px;background:currentColor;transform:rotate(45deg);border-radius:1px}
.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;gap:.35rem;min-height:44px;margin-top:.4rem;font-size:.85rem;font-weight:600;color:var(--brand-700);text-decoration:none}
.map-open .gi{width:15px;height:15px;flex:none}
.map-open:hover{text-decoration:underline;text-underline-offset:3px}
/* No .video-embed box: the facade markup carries its own aspect-ratio and is sized by
   `.medc-video-embed iframe,.medc-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 -2px 12px rgba(20,23,27,.07);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}
	/* 65px = the bar exactly (48px buttons + 8px + 8px padding + 1px border, see :1496). 70px
	   left a 5px strip of page background between the dark footer and the bar. */
	body:has(.mobile-callbar){padding-bottom:calc(65px + 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. */
.medc-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:medc-shimmer 1.4s ease infinite;border-radius:var(--radius-sm)}
@keyframes medc-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(--line);border-radius:var(--radius-ctl);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) */
/* A meter, not a pill button: --radius-xs on an 8px bar still reads as a rounded track and
   stops the one progress element on the dashboard from being the roundest thing on the page. */
.completeness{height:8px;background:var(--line-2);border-radius:var(--radius-xs);overflow:hidden}
.completeness>span{display:block;height:100%;background:var(--brand);border-radius:var(--radius-xs)}
/* notifications bell */
.medc-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(--line);border-radius:var(--radius);box-shadow:var(--shadow);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-item:last-child{border-bottom:0}
.notif-item:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
/* Sticky so a long list still says what it is once scrolled. */
.notif-head{position:sticky;top:0;z-index:1;padding:.6rem .9rem;background:var(--card);border-bottom:1px solid var(--line);
	color:var(--ink);font-size:.86rem;font-weight:700}
.notif-empty{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:1.4rem 1.2rem 1.5rem;text-align:center;
	color:var(--muted);font-size:.84rem;line-height:1.55}
.notif-empty b{color:var(--ink);font-size:.95rem;font-weight:700}
.notif-empty>span:last-child{max-width:30ch;text-wrap:balance}
.notif-empty-ic{display:grid;place-items:center;width:48px;height:48px;margin-bottom:.3rem;border-radius:var(--radius);
	background:var(--brand-50);color:var(--brand-700)}
.notif-empty-ic svg{width:22px;height:22px}
/* 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);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}
.star.on{color:#f59e0b;opacity:1}
/* #6.10 click-to-load video facade (no third-party asset until the visitor clicks play) */
.medc-video-facade{position:relative;aspect-ratio:16/9;width:100%;background:linear-gradient(135deg,#2A2320,#14100E);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;border:1px solid var(--line)}
.medc-video-facade:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.medc-video-facade .medc-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}
.medc-video-facade:hover .medc-video-play{background:var(--brand);transform:scale(1.06)}
.medc-video-embed iframe,.medc-video-facade iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius);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. */
.medc-ltr{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.medc-tel{font-variant-numeric:tabular-nums;letter-spacing:.02em}
: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 2px 8px rgba(20,23,27,.04)}
.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(--line-2);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{display:inline-flex;align-items:center;gap:.4rem;min-height:48px;padding-inline:.9rem;
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius-ctl);font-weight:700;font-size:.92rem;color:var(--ink)}
.sb-filters svg{width:19px;height:19px;color:var(--brand)}
.sb-filters:hover{border-color:var(--brand)}
/* --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. */
.sb-count{background:var(--brand);color:#fff;border-radius:var(--radius-chip);min-width:20px;height:20px;
	display:inline-grid;place-items:center;font-size:.72rem;font-weight:700;padding-inline:.3rem}
:root[data-theme="dark"] .sb-count,:root[data-theme="dark"] .fgroup-on{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sb-count,
	: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,.sb-filters span:not(.sb-count){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.sb-go svg{display:block}
	.sb-go{padding-inline:.85rem}
	.sb-filters{padding-inline:.8rem}
}

/* --- 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. */
/* A two-column grid whose text wrapper is `display:contents`, so the share control sits on the
   HEADING's row at the inline end and the lede/match note run the full width beneath both. As a
   wrapping flex row the share chip dropped onto a line of its own under the lede on every phone,
   spending ~60px of the first screen on one button. The wrapper is a plain <div> with no role,
   so `contents` costs nothing in the accessibility tree. */
.results-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start;margin-bottom:1.1rem}
.results-head-t{display:contents}
.results-head .h-sec{grid-column:1;grid-row:1;font-size:clamp(1.4rem,5.2vw,1.95rem);line-height:1.35;margin-bottom:0;text-wrap:balance}
.results-head .match-note,.results-head .results-lede{grid-column:1/-1}
.results-head>.share-chip{grid-column:2;grid-row:1;align-self:end;margin-bottom:2px}
/* On a phone the chip is the icon alone: its accessible name is the aria-label on the <a>, not
   the visible word, so nothing is lost for AT and the heading keeps the width. */
@media (max-width:559px){
	.results-head>.share-chip{inline-size:44px;block-size:44px;min-height:44px;padding:0}
	.results-head>.share-chip>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.results-head>.share-chip svg{width:19px;height:19px}
}
.results-count{color:var(--muted);font-size:.95rem;margin-top:.25rem}
/* The column gap owns the spacing inside the wrapper; the margin would double it. */
.results-head .results-count{margin-top:0}
/* 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:.55rem;max-width:68ch;text-wrap:pretty}
.results-count strong{color:var(--ink);font-variant-numeric:tabular-nums}
.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:var(--radius-chip);padding-block:.42rem;padding-inline:.8rem .55rem;
	font-size:.85rem;font-weight:600;min-height:44px;max-width:100%;transition:border-color .15s,background-color .15s}
.chip-active:hover{border-color:var(--brand);background:var(--brand-100)}
/* A facet label can be long ("التخصص: أطفال وحديثي الولادة"); it truncates rather than pushing
   the × off the chip's edge on a 320px screen. min-width:0 is what lets a flex item shrink. */
.chip-active-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip-active .chip-x{flex:none}
/* 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}
/* Almost no start padding: when it wraps under the chips it starts a line, and .7rem there
   indented the link off the column's edge. The flex gap already spaces it from a chip. */
.chip-clear{display:inline-flex;align-items:center;min-height:44px;padding-inline:.2rem .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-all` (the panel opener) is listed beside .qchip rather than carrying it: medc-analytics.js
   logs every `a.qchip` tap as a facet "apply", and the opener applies nothing. */
.qchip,.qchip-all{flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;gap:.35rem;min-height:44px;
	padding-inline:.95rem;border-radius:var(--radius-chip);background:var(--card);border:1px solid var(--line);
	font-size:.88rem;font-weight:700;color:var(--body);white-space:nowrap}
.qchip:hover,.qchip-all: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)}}
/* The rail's icons carry the brand when the chip is off and the chip's own ink when it is on, so
   an applied filter reads as one solid object rather than a red glyph on a red fill. */
.quick-rail .qchip .gi,.quick-rail .qchip-all .gi{width:17px;height:17px;color:var(--brand)}
.quick-rail .qchip.is-on .gi{color:inherit}
.qchip,.qchip-all{transition:border-color .15s,background-color .15s,color .15s}
/* The panel opener that leads the rail. Ink-edged rather than brand-filled: it is a door to more
   choices, not a choice, and it must not read as an applied filter. */
.qchip-all{border-color:var(--field-line);color:var(--ink)}
.qchip-n{display:inline-grid;place-items:center;min-width:20px;height:20px;padding-inline:5px;border-radius:var(--radius-xs);
	background:var(--brand);color:#fff;font-size:.72rem;font-weight:700;line-height:1}
:root[data-theme="dark"] .qchip-n{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .qchip-n{color:var(--gold-ink)}}
/* On a phone the results rail bleeds to both screen edges, so the chips scroll out from under the
   gutter instead of being sliced off 20px short of the glass. scroll-padding keeps snap points
   aligned with the text column. Results page only — the home hero rail sits in a padded card. */
@media (max-width:1023px){
	.mc-results-main>.quick-rail{margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
}
@media (min-width:1024px){.qchip-all{display:none}}

/* --- 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;align-items:center;justify-content:flex-start;gap:.45rem;margin:0;min-width:0}
.sort-select{font-size:.85rem;color:var(--muted);font-weight:600;white-space:nowrap}
/* The chevron is the wrapper's ::after, drawn ONCE for every width and both directions, instead
   of the native arrow below 900px and a gradient pair above it. `.sort-wrap` is a positioning
   box only; the <select> keeps its own id, name and data attribute for the form and the JS. */
.sort-wrap{position:relative;display:inline-flex;min-width:0}
.sort-wrap::after{content:"";position:absolute;inset-inline-end:.8rem;top:50%;width:7px;height:7px;pointer-events:none;
	/* Physical borders on purpose — the same down-pointing L as .fgroup's chevron. */
	border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg)}
/* --field-line, not --line: this is a control boundary and owes 3:1 (SC 1.4.11). The selector is
   doubled up with the wrapper so it outranks the generic ≥900px `.results-toolbar select`
   gradient-chevron rule further up at (0,2,1), which would otherwise paint a second arrow. */
.results-toolbar .sort-wrap select{-webkit-appearance:none;appearance:none;background-image:none;min-height:44px;min-width:0;max-width:min(52vw,230px);
	border:1px solid var(--field-line);border-radius:var(--radius-ctl);background-color:var(--card);color:var(--ink);
	font-family:inherit;font-size:.9rem;font-weight:700;padding-block:0;padding-inline:.8rem 2.1rem;cursor:pointer;
	text-overflow:ellipsis;white-space:nowrap;overflow:hidden;transition:border-color .15s}
.results-toolbar .sort-wrap select:hover{border-color:var(--brand)}
.results-toolbar .sort-wrap select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.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(--line);border-radius:var(--radius);overflow:hidden;padding:14px;
	transition:box-shadow .2s,transform .2s,border-color .2s;content-visibility:auto;contain-intrinsic-size:auto 320px}
.doc-card:hover{box-shadow:var(--shadow);transform:translateY(-2px);border-color:var(--brand-100)}
/* 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. */
.doc-card:has(>.tier-ribbon){padding-top:18px}
.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-sm)}
/* 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. */
/* A SQUARE portrait with a small radius, not a circle and not the origin's 18px superellipse:
   the roster row's 64px avatar sets this shape and the card follows it, so the same face is the
   same shape wherever it appears. */
.doc-ava{width:84px;height:84px;border-radius:var(--radius-sm);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:var(--radius-chip);
	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}
/* --body, not --muted: --muted on --line-2 is 4.12:1, and this is .78rem text. The pill still
   reads as the quiet one because it has lost the tier-gold fill and border, not because its
   label is faint. */
.doc-rate--new{margin-top:6px;background:var(--line-2);color:var(--body);border-color:var(--line);box-shadow:none}

.doc-body{flex:1;min-width:0;padding-top:1px}
/* Block + inline, not a wrapping flex row: as flex items, a name that filled the line pushed the
   verified tick onto a line of its own. Inline, the tick follows the last word like text. */
.doc-name{font-size:1.06rem;font-weight:700;line-height:1.35;color:var(--ink);display:block}
/* 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;padding-block:2px}
.doc-name .doc-verify{vertical-align:-.2em;margin-inline-start:.3rem}
.doc-name a:hover,.doc-card-main:hover .doc-name a{color:var(--brand-700)}
/* The name was a 27px-tall target. Its link stretches an ::after over the whole portrait + name
   block (the same pattern as .mc-row), so a tap anywhere on the face, the name or the specialty
   opens the profile — one real link, nothing nested in an <a>. The rating pill already sits at
   z-index:1; the verified mark is lifted too so both keep their tooltips. */
.doc-card-main{position:relative}
.doc-name a::after{content:"";position:absolute;inset:0;z-index:0;border-radius:var(--radius-sm)}
/* …and the link's own box is 44px too (padding out, negative margin back), for anything that
   measures the element rather than the overlay. Net layout change: zero. */
.doc-card-main .doc-name a{padding-block:10.5px;margin-block:-8.5px}
.doc-card-main .doc-verify{position:relative;z-index:1}
@supports selector(:has(*)){
	.doc-card-main:has(.doc-name a:focus-visible){outline:2px solid var(--brand);outline-offset:3px;border-radius:var(--radius-sm)}
	.doc-name a:focus-visible{outline:none}
}
.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}
/* Bio excerpt (the default card text — see IndexRepo::card_text()). Prose, not a credential:
   regular weight, no award icon, still clamped to two lines; the full excerpt stays in the HTML. */
.doc-pitch--bio{display:block;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.doc-pitch--bio span{line-clamp:2}

/* 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}
/* Child combinator: the value inside <b> carries its digits in a medc_ltr() <span>, and a bare
   `.doc-stats span` shrank "25"/"600" to muted label text while the unit stayed bold ink. */
.doc-stats li>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 1rem;border-radius:var(--radius-btn);
	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 2px 8px 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}
/* Wraps rather than ellipsizes: in the ~270px home rail card the Arabic label lost its last
   word ("…عن الدك…"), and a half-sentence on the card's only button reads as broken. */
.doc-cta>span{min-width:0;white-space:normal;text-align:start;line-height:1.35}
/* 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(20,23,27,.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 -4px 24px rgba(20,23,27,.22);
	animation:medc-sheet .24s cubic-bezier(.16,1,.3,1)}
@keyframes medc-sheet{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.filters[open]{animation:none}}
.filters-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
	padding:16px 18px 12px;border-bottom:1px solid var(--line);flex:0 0 auto}
/* The grab handle every bottom sheet on Android carries: it says "this slid up and can go back
   down" before the reader finds the ×. Decorative only — the sheet is closed by ×, Esc, the
   backdrop or "show results"; nothing here pretends to be draggable. */
.filters-head::before{content:"";position:absolute;top:6px;inset-inline:0;margin-inline:auto;width:36px;height:4px;
	border-radius:2px;background:var(--line)}
.filters-head h2{font-size:1.05rem}
.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-ctl)}
.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}
.filters-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)}
.filters-foot .btn{flex:1;justify-content:center;min-height:48px}
.filters-foot .btn-ghost{flex:0 0 auto}
.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:var(--radius-chip);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)}
/* --field-line, not --line: an unticked box is a control boundary and owes 3:1 (SC 1.4.11); on
   --line it was a ghost square that read as decoration on a phone in daylight. */
.fopt-box{flex:0 0 auto;width:20px;height:20px;border:2px solid var(--field-line);border-radius:var(--radius-xs);background:var(--card);
	transition:background-color .15s,border-color .15s}
.fopt:hover .fopt-box{border-color:var(--brand)}
/* An area under its governorate (see medc_filter_panel()): indented one step and joined to the
   parent by a hairline on the inline-start edge, so the two levels read as a tree. */
/* 12px = the parent's .15rem padding + half its 20px box, so the line drops from the centre of
   the governorate's checkbox like a tree's trunk. */
.fopt-sub{margin-inline-start:12px;padding-inline-start:14px;border-inline-start:2px solid var(--line-2);border-radius:0}
.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. %231a0b08 is --gold-ink; the dark-mode --brand is a light
   coral (#F0786A) and a white tick on it is ~2.5:1, i.e. a checked filter looks unchecked.
   If --gold-ink is ever retuned, these two URIs are the only place it is duplicated. */
: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='%231a0b08' 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='%231a0b08' 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:var(--radius-xs)}

/* --- Empty state ----------------------------------------------------------- */
.empty-state{grid-column:1/-1;background:var(--card);border:1px solid var(--line);
	border-radius:var(--radius);padding:clamp(20px,5vw,32px);text-align:center}
.empty-state h2{font-size:1.2rem;margin-bottom:.4rem;text-wrap:balance}
.empty-ic{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 14px;border-radius:var(--radius);
	background:var(--brand-50);color:var(--brand-700);box-shadow:inset 0 0 0 1px var(--brand-100)}
.empty-ic svg{width:26px;height:26px}
.empty-state-slim .empty-ic{display:none}
.empty-state .btn{min-height:44px}
.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}
/* Unboxed: each group holds roster rows that are cards already, and a card of cards cost a
   phone 26px of nested padding per row and read as a frame around a frame. A group is a
   heading line — area, distance, count — closed by a hairline, then its rows. */
.fb-group{margin-bottom:22px}
.fb-group-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .7rem;margin-bottom:12px;padding-bottom:8px;
	border-bottom:1px solid var(--line)}
.fb-area a{display:inline-flex;align-items:center;min-height:44px}
.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:var(--radius-chip);padding:.1rem .55rem}
.fb-count{font-size:.82rem;color:var(--muted)}
.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(--body);background:var(--line-2);border-radius:var(--radius-xs);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(--line);border-radius:var(--radius-ctl);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}
/* The FAQ is the home page's .mc-faq list (styled in the polish block); here it only drops that
   component's top margin, which the .h-sub above already provides. */
.faq-block .mc-faq{margin-top:0}
/* The intro is editorial copy, not a form: no panel padding of 20px on a 390px phone, a readable
   measure, and the paragraphs spaced as paragraphs. */
.intro-panel p+p{margin-top:.8rem}
/* In the results column the panel runs the roster's full width — an 820px cap in an 832px column
   stopped it 12px short of every row above, which read as a misalignment, not a measure. The
   measure is held on the text instead. */
.mc-results-main .intro-panel{max-width:none}
.mc-results-main .intro-panel p{max-width:75ch}
@media (max-width:559px){.intro-panel{padding:16px}}

/* --- Autocomplete (ARIA 1.2 combobox) -------------------------------------- */
.medc-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}
.medc-ac.open{display:block}
.medc-ac .ac-group{padding:.45rem .85rem .25rem;font-size:.72rem;font-weight:700;letter-spacing:.03em;
	text-transform:uppercase;color:var(--muted)}
.medc-ac [role="option"]{display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.45rem .85rem;
	color:var(--ink);cursor:pointer;font-size:.95rem}
.medc-ac [role="option"]:hover,.medc-ac [role="option"].active{background:var(--brand-50);color:var(--brand-700)}
.medc-ac .ac-ic{flex:0 0 auto;width:22px;height:22px;display:grid;place-items:center;color:var(--brand);opacity:.8}
.medc-ac .ac-ic svg{width:17px;height:17px}
.medc-ac .ac-gloss{color:var(--muted);font-size:.82rem;margin-inline-start:.2rem}
.medc-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(--line);border-radius:var(--radius);
		box-shadow:none;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-head,.filters-x{display:none}
	.filters-body{overflow:visible;padding:6px 16px}
	.filters-foot{position:sticky;bottom:0;border-top:1px solid var(--line-2)}
	.filters-foot .btn-primary{display:none}   /* links apply instantly on desktop */
	.filters-foot .btn-ghost{flex:1}
	/* With the primary hidden, a foot without "clear" (every unrefined landing page) was an empty
	   25px band under a hairline at the bottom of the rail. */
	.filters-foot:not(:has(.btn-ghost)){display:none}
	.sb-filters{display:none}
	.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 .mdc-hs{min-width:0}
.hero-rail .qchip{background:rgba(255,255,255,.72);backdrop-filter:blur(4px)}
:root[data-theme="dark"] .hero-rail .qchip{background:rgba(22,31,40,.72)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hero-rail .qchip{background:rgba(22,31,40,.72)}}
/* 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="#medc-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;
		/* The second shadow is the scrim — showModal()'s ::backdrop does not apply here. It was a
		   fixed ::before at z-index:-1, but the fixed panel is its own stacking context, so a
		   negative-z child paints ABOVE the panel's background: the whole sheet came up grey,
		   as if disabled. A spread shadow is drawn outside the box only. */
		box-shadow:0 -4px 24px rgba(20,23,27,.22),0 0 0 100vmax rgba(20,23,27,.55);z-index:80;margin:0;max-width:none;padding:0}
}
/* 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:1rem;max-width:70ch}
.post-hub-head .h-sec,.post-author-head .h-sec{text-wrap:balance}
.post-hub-head .sub-sec{line-height:1.75}
/* An eyebrow already labels the heading; the .h-sec accent bar between the two read as an
   underline on the eyebrow rather than a mark on the title. One label, not two. */
.post-eyebrow+.h-sec::before{display:none}
.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;font-variant-numeric:tabular-nums}
.post-topics{margin-block:.2rem 1.4rem}
/* The count is a quiet badge, not a second faded word — opacity also faded it below AA. */
.post-topics .qchip small{font-size:.72rem;font-weight:700;line-height:1.5;min-width:1.5em;text-align:center;
	padding-inline:.35em;border-radius:var(--radius-xs);background:var(--line-2);color:var(--body);
	font-variant-numeric:tabular-nums}
.post-topics .qchip.is-on small{background:rgba(255,255,255,.22);color:inherit}
/* On a phone the rail runs edge to edge, so the fade sits on the SCREEN edge and the first chip
   still lines up with the heading above it. */
@media (max-width:699px){
	.post-topics{margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
	/* Only here, where the rail scrolls: the active topic could sit past the fade, so it is pulled
	   to the front, right after "All articles". Desktop keeps the DOM order, so the chips do not
	   shuffle as you move between topics when they all fit on one row anyway. */
	.post-topics>.qchip:first-child{order:-2}
	.post-topics>.qchip.is-on{order:-1}
}
.post-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:.6rem;
	text-align:center;color:var(--muted);padding:40px 20px}
.post-empty-ic{width:40px;height:40px;color:var(--brand);opacity:.7}
.post-empty .btn{margin-top:.4rem}

/* --- 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(--line);border-radius:var(--radius);overflow:hidden;
	transition:box-shadow .2s,transform .2s,border-color .2s;
	content-visibility:auto;contain-intrinsic-size:auto 340px}
/* 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}
/* Hover lift only where hover exists: on touch a :hover sticks after the tap and leaves the card
   floating when the reader comes Back to the list. */
@media (hover:hover){
	.post-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:var(--brand-100)}
	.post-card:hover .post-card-media img{transform:scale(1.03)}
	.post-card:hover .post-card-title a{color:var(--brand-700)}
	/* Colour hovers too, for the same reason: the title's stretched ::after covers the whole card,
	   so after a tap and Back (bfcache) the tapped card's title stayed brick on touch screens. */
	.post-pill:hover{background:var(--brand-100)}
	.post-mini a:hover,.post-by-t a:hover,.post-author-name a:hover{color:var(--brand-700)}
	.post-toc-list a:hover{color:var(--brand-700);border-inline-start-color:var(--brand-100)}
}
/* The whole card is the article link: the title's ::after is stretched over the card (the card
   is its containing block), so a tap on the image, the excerpt or the date opens the article.
   The pill is its own link, lifted above that layer. Focus is drawn on the CARD — the stretched
   box would otherwise ring the title alone while the whole card is the target. */
.post-card-title a::after{content:"";position:absolute;inset:0;z-index:0}
/* Behind @supports: without :has() (Chrome < 105, older Android WebViews) the card rule is dropped,
   and an unconditional outline:none on the link would leave keyboard focus with no ring at all. */
@supports selector(:has(*)){
	.post-card-title a:focus-visible{outline:none}
	.post-card:has(.post-card-title a:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
}
/* 40:21 is the covers' own shape (1200x630, the OG size). In a 16:9 box ~3% was cut off each side
   and long titles set into the generated covers touched the card edge. */
.post-card-media{display:block;line-height:0;background:var(--brand-50);aspect-ratio:40/21;overflow:hidden}
.post-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.16,1,.3,1)}
@media (prefers-reduced-motion:reduce){.post-card,.post-card-media img{transition:none}
	.post-card:hover,.post-card:hover .post-card-media img{transform:none}}
.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:40px;height:40px;opacity:.6}
/* The stand-in for a generated cover in the phone list rows (shown only there, see the
   max-width:699px block). Both stops are Cover::render()'s, so the tile and the full card that
   the article page shows read as the same object. Dark already, so it needs no dark-mode pair. */
.post-card-cv{display:none;place-items:center;width:100%;height:100%;color:rgba(255,255,255,.82);
	background:radial-gradient(110% 70% at 10% 110%,rgba(201,162,39,.18),transparent 70%),
		linear-gradient(180deg,hsl(var(--cv-h,0) 42% 16%),hsl(calc(var(--cv-h,0) + 18) 55% 30%))}
.post-card-body{padding:16px 18px 16px;display:flex;flex-direction:column;gap:.5rem;flex:1}
.post-card-title{font-size:1.1rem;font-weight:700;line-height:1.5;color:var(--ink);text-wrap:balance}
.post-card-title a{color:inherit;display:inline-block;padding-block:2px}
/* Three lines, whatever the excerpt length: an even rhythm down a phone-width list matters more
   than the last few words, which the article itself repeats one tap away. */
.post-card-ex{color:var(--body);font-size:.93rem;line-height:1.75;margin:0;
	display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.post-card-foot{margin-top:auto;padding-top:.7rem;border-top:1px solid var(--line-2);display:flex;flex-wrap:wrap;
	align-items:center;justify-content:space-between;gap:.35rem .8rem;font-size:.8rem;color:var(--muted)}
.post-card-meta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.2rem .5rem;font-variant-numeric:tabular-nums}
/* A bidi-neutral separator glyph reorders at an RTL/LTR boundary; a pseudo-element
   is not part of either neighbour's bidi run. Scoped to the date/read-time run only, so the
   review badge never inherits a separator that dangles when it wraps. */
.post-card-meta>*+*::before{content:"·";margin-inline-end:.5rem;opacity:.6}
.post-badge-rev{display:inline-flex;align-items:center;gap:.3rem;color:var(--ok);font-weight:700}
.post-badge-rev svg{width:15px;height:15px}
.post-card--wide .post-card-title{font-size:clamp(1.22rem,2.6vw,1.6rem);line-height:1.4}
.post-card--wide .post-card-ex{font-size:1rem;-webkit-line-clamp:4;line-clamp:4}
/* Phones: grid cards become compact list rows — a square thumb beside pill + title, then the
   excerpt and the date line at full width. As full stacked cards each was ~470px tall (a cover that
   repeats the title in type, then the title again), and ten of them were ~4,700px of thumb-scrolling
   for ten headlines. The hub's featured card is not in .g-post and keeps the big layout.
   .post-card-body is display:contents so its children can join the card's grid; the stretched title
   link still covers the card, because the card (not the body) is its containing block. */
@media (max-width:699px){
	.g-post{gap:12px}
	.g-post>.post-card{display:grid;grid-template-columns:84px minmax(0,1fr);
		grid-template-areas:"media pill" "media title" "ex ex" "foot foot";grid-template-rows:auto 1fr auto auto;
		column-gap:14px;padding:14px;contain-intrinsic-size:auto 200px}
	.g-post>.post-card .post-card-body{display:contents}
	.g-post>.post-card .post-card-media{grid-area:media;align-self:start;aspect-ratio:1;border-radius:var(--radius-sm)}
	/* The generated covers set their type flush right; a centre crop showed the middle of a word. */
	.g-post>.post-card .post-card-media img{object-position:right center}
	.g-post>.post-card .post-card-ph-ic{width:30px;height:30px}
	/* A generated title card at 84px is the headline again as illegible micro-type beside the
	   real one. Rows show a text-free tile in the cover's own gradient instead (same hue, from
	   Cover::hue()); the lazy <img> is display:none here, so a phone never even downloads it. */
	.g-post>.post-card .post-card-media--gen img{display:none}
	.g-post>.post-card .post-card-media--gen .post-card-cv{display:grid}
	.g-post>.post-card .post-pill{grid-area:pill;justify-self:start;margin-bottom:.4rem}
	.g-post>.post-card .post-card-title{grid-area:title;align-self:start;font-size:1.02rem;line-height:1.55}
	.g-post>.post-card .post-card-ex{grid-area:ex;margin-top:.65rem;font-size:.9rem;line-height:1.7;
		-webkit-line-clamp:2;line-clamp:2}
	.g-post>.post-card .post-card-foot{grid-area:foot;margin-top:.7rem;padding-top:.6rem}
}
.post-hero{margin-bottom:2rem}
.post-hero>.post-eyebrow{display:flex;align-items:center;gap:.5rem;margin-bottom:.6rem}
.post-hero>.post-eyebrow::before{content:"";inline-size:8px;block-size:8px;border-radius:2px;background:var(--brand)}

/* Lifted above the card's stretched title link. The ::after widens the hit area to ~44px tall
   without making a 28px label look like a button. */
.post-pill{position:relative;z-index:1;align-self:flex-start;display:inline-block;padding:.2rem .6rem;border-radius:var(--radius-chip);
	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::after{content:"";position:absolute;inset:-8px -4px}

/* --- 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-rail .h-sub{display:flex;align-items:center;gap:.5rem}
.post-mini{display:flex;align-items:flex-start;gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--line-2)}
.post-mini:first-child{padding-top:.2rem}
.post-mini:last-child{border-bottom:0;padding-bottom:0}
.post-mini-n{flex:0 0 auto;width:28px;height:28px;border-radius:var(--radius-sm);display:grid;place-items:center;
	background:var(--brand-50);color:var(--brand-700);font-weight:700;font-size:.82rem;
	font-variant-numeric:tabular-nums}
.post-mini:first-child .post-mini-n{background:var(--brand);color:var(--gold-ink)}
.post-mini a{flex:1;min-width:0;display:block;min-height:44px;font-size:.93rem;font-weight:700;line-height:1.55;color:var(--ink)}
.post-mini small{display:block;font-weight:500;color:var(--muted);font-size:.78rem;margin-top:.2rem}
.post-rail-cta{background:var(--brand-50);border-color:var(--brand-100)}
.post-rail-cta .h-sub{color:var(--ink)}

/* --- Article page ---------------------------------------------------------- */
.sec-article{padding-top:20px}
.post-head{max-width:760px;margin-bottom:1.4rem}
/* .h-sec is 24px at 360px — too small for an article h1. */
.post-h1{font-size:clamp(1.65rem,5.4vw,2.5rem);line-height:1.35;margin:.7rem 0 1rem;text-wrap:balance}
[dir="ltr"] .post-h1{line-height:1.2;letter-spacing:-.015em}
/* The people who wrote and vouched for the piece, as a row of their own above the dates. */
.post-bylines{display:flex;flex-wrap:wrap;gap:.7rem 1.5rem;margin-bottom:.9rem}
/* The whole byline (photo + two lines) is the tap target; the name link's ::after covers it. */
.post-by{position:relative;display:inline-flex;align-items:center;gap:.6rem;min-width:0}
.post-by img{width:40px;height:40px;border-radius:var(--radius-sm);object-fit:cover;background:var(--brand-50);flex:0 0 auto}
.post-by-t{display:flex;flex-direction:column;min-width:0;line-height:1.4;font-size:.93rem}
.post-by-l{font-size:.76rem;font-weight:600;color:var(--muted)}
.post-by-t a{color:var(--ink);font-weight:700}
.post-by-t a::after{content:"";position:absolute;inset:-4px}
/* Base gap stays tight: static-page.php's .sp-meta is a .post-meta made of bare text nodes, and
   every one of them is a flex item — a wide column gap split "Last updated:" from its date. */
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;color:var(--muted);font-size:.86rem}
/* The article's meta row has no "·" separators (they reorder at bidi boundaries and dangle when a
   line wraps), so its items are spaced apart instead. */
.post-head .post-meta{gap:.35rem 1.1rem}
.post-meta>span{display:inline-flex;align-items:center;gap:.35rem}
.post-meta svg{width:15px;height:15px;opacity:.8}
.post-hero-img{margin:0 0 1.8rem;border-radius:var(--radius);overflow:hidden;background:var(--brand-50)}
.post-hero-img img{width:100%;height:auto}
.post-hero-img picture{display:contents}
.post-main{min-width:0}
/* Phones: the first screen goes to the article, not to repeats of its title.
   - The current-page crumb IS the h1 directly below it (two lines of it, in either language). The
     JSON-LD BreadcrumbList still carries it; the trail now ends on the topic it sits in.
   - A generated cover restates the topic and the h1 in type; single-post.php also stops phones
     downloading it. A human-uploaded cover is not .post-hero-img--auto and still shows. */
@media (max-width:699px){
	.sec-article .crumbs .crumb-item:last-child{display:none}
	.sec-article .crumbs .crumb-item:nth-last-child(2) .crumb-sep{display:none}
	.post-hero-img--auto{display:none}
}

.post-takeaways{background:var(--brand-50);border:1px solid var(--brand-100);border-inline-start:4px solid var(--brand);
	border-radius:var(--radius);padding:16px 18px 18px;margin-bottom:1.8rem}
.post-takeaways h2{font-size:1.02rem;color:var(--brand-700);margin-bottom:.7rem}
.post-takeaways ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.post-takeaways li{display:flex;gap:.6rem;align-items:flex-start;color:var(--ink);
	font-size:.97rem;line-height:1.75}
.post-takeaways svg{flex:0 0 auto;width:18px;height:18px;margin-top:.3rem;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;overflow-wrap:break-word}
/* Latin needs less leading than Arabic: 1.9 is right for Cairo's tall Arabic forms and reads as
   double-spaced in English. */
[dir="ltr"] .post-body{line-height:1.75}
.post-body>:first-child{margin-block-start:0}
.post-body p{margin-block:0 1.15em;text-wrap:pretty}
.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. */
[dir="ltr"] .post-body h2,[dir="ltr"] .post-body h3{letter-spacing:-.012em}
/* 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}
/* Phone numbers in page copy (the emergency-numbers page) are call buttons first: bold, never
   split across lines, digits isolated from the Arabic around them, and a 44px-tall hit area
   that the negative margin keeps out of the line height. */
.post-body a[href^="tel:"]{display:inline-block;min-width:44px;padding:.55rem .3rem;margin-block:-.55rem;
	text-align:center;font-weight:700;white-space:nowrap;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.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 medc_num() */
.post-body li{margin-block:.42em}
.post-body li::marker{color:var(--brand)}
.post-body ol>li::marker{font-weight:700;font-variant-numeric:tabular-nums}
.post-body li{padding-inline-start:.2em}
.post-body li>ul,.post-body li>ol{margin-block:.42em}
/* margin-inline:0 — the UA's 40px blockquote indent survived here and squeezed every quote to
   ~250px on a phone, a narrower column inside the column. */
.post-body blockquote{margin-block:1.7em;margin-inline:0;padding:.95rem 1.15rem;background:var(--card);
	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 .medc-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:var(--radius-xs);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:var(--radius-xs)}
/* 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. */
/* border-color is a shorthand: without the start-colour restated it also repainted the 4px brick
   accent pale pink, and the quote lost the one mark that sets it apart from a callout. */
.post-body .post-pull{background:var(--brand-50);border-color:var(--brand-100);border-inline-start-color:var(--brand);
	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}
/* In the desktop rail the TOC card is the first thing in its column: no top margin, so its top
   edge lines up with the cover's in the reading column beside it. */
.post-toc-desktop .post-toc{margin-block:0 1.2rem}
.post-toc-d{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 16px}
.post-toc-d[open]{padding-bottom:10px}
/* The summary is the whole header row (52px), not a 44px strip inside 12px of dead padding. */
.post-toc-d>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.55rem;
	min-height:52px;font-weight:700;color:var(--ink);font-size:.98rem;
	-webkit-tap-highlight-color:transparent}
.post-toc-d>summary::-webkit-details-marker{display:none}
.post-toc-d>summary:focus-visible{outline-offset:4px}
.post-toc-ic{width:19px;height:19px;color:var(--brand)}
.post-toc-n{min-width:1.6em;padding-inline:.4em;border-radius:var(--radius-xs);background:var(--line-2);
	color:var(--body);font-size:.75rem;line-height:1.7;text-align:center;font-variant-numeric:tabular-nums}
.post-toc-d[open]>summary{border-bottom:1px solid var(--line-2);margin-bottom:.3rem}
/* 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:flex;align-items:center;min-height:44px;padding:.45rem .1rem;padding-inline-start:.8rem;
	font-size:.9rem;line-height:1.5;color:var(--body);border-inline-start:2px solid var(--line-2);
	transition:color .15s,border-color .15s}
.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. */
/* padding:0 — the copy/native ones are <button>s, whose UA inline padding made them wider than
   the <a> ones once the row shares width evenly on a small phone. */
.post-share-b{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:var(--radius-ctl);
	background:var(--card);border:1px solid var(--line);color:var(--body);
	transition:border-color .15s,color .15s,transform .12s}
@media (hover:hover){.post-share-b:hover{border-color:var(--brand);color:var(--brand-700)}}
.post-share-b:active{transform:scale(.94)}
/* Below 390px the label + six 44px buttons no longer fit one row, and the sixth wrapped alone
   onto a second line. Drop the visible label (every button carries its own aria-label) and let
   the buttons share the row evenly instead. */
@media (max-width:389px){
	.post-share{flex-wrap:nowrap;gap:.4rem}
	.post-share-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.post-share-b{flex:1 1 0;width:auto;min-width:44px;max-width:52px}
}
/* 320–359: six 44px targets are 264px of a 280px row, so the gap gives way, not the targets. */
@media (max-width:359px){.post-share{gap:2px}}
/* 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:.5rem;margin-block:1.8rem}
/* .tag-link is 44px tall for touch; with the base .tag's tiny padding that read as a tall pink
   block with a word floating in it. A bordered chip carries the height honestly. */
.post-tags .tag-link{padding-inline:.85rem;border:1px solid var(--brand-100);font-size:.84rem}
.post-tags .tag-link::before{content:"#";opacity:.55;margin-inline-end:.2rem}
.post-faq{margin-block:2.2rem}
/* These are h2s, siblings of the body's h2s: at the generic .h-sub 1.15rem, "Frequently asked
   questions" read as a caption under the much larger last body heading. Scoped to the article —
   static pages reuse .post-faq with their own heading. */
.post-main .post-faq>.h-sub,.post-main .post-sources>.h-sub{font-size:clamp(1.2rem,3.6vw,1.45rem);line-height:1.4;margin-bottom:.9rem;text-wrap:balance}
/* Static pages reuse .post-faq with their own .fgroup rows, so everything below is scoped to
   the article's .post-faq-i. */
/* The same component as every other FAQ on the site (.mc-faq on home/listings, .sp-faq on static
   pages): ONE bordered list with 1px dividers and a chevron that flips — not a stack of separate
   cards with a pink plus/minus, which read as a different widget. The items keep `.panel` in the
   markup; the joins below flatten it so consecutive items share their borders. */
.post-faq-i{margin:0;padding:0;border-radius:0;overflow:hidden}
.post-faq-i+.post-faq-i{border-top-color:var(--line-2);margin-top:-1px}
.post-faq>.h-sub+.post-faq-i{border-start-start-radius:var(--radius);border-start-end-radius:var(--radius)}
.post-faq-i:last-child{border-end-start-radius:var(--radius);border-end-end-radius:var(--radius)}
.post-faq-i>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.8rem;
	min-height:56px;padding:.75rem 1.1rem;font-weight:700;color:var(--ink);line-height:1.6;
	-webkit-tap-highlight-color:transparent;transition:color .15s ease,background-color .15s ease}
.post-faq-i>summary::-webkit-details-marker{display:none}
/* The open/closed state has to be visible on the row itself, or a list of questions reads as a
   list of headings — hence the chevron, drawn with the same mask as .mc-faq-q. */
.post-faq-i>summary::after{content:"";flex:0 0 auto;margin-inline-start:auto;width:13px;height:13px;
	background-color:var(--muted);transition:transform .2s ease;
	-webkit-mask:var(--mdc-chev) center/13px 13px no-repeat;mask:var(--mdc-chev) center/13px 13px no-repeat}
@media (hover:hover){.post-faq-i>summary:hover{color:var(--brand-700);background:var(--brand-50)}
	.post-faq-i>summary:hover::after{background-color:var(--brand)}}
.post-faq-i[open]>summary::after{transform:rotate(180deg);background-color:var(--brand)}
.post-faq-i[open]>summary{color:var(--brand-700)}
.post-faq-i>p{color:var(--body);line-height:1.85;margin:0;padding:0 1.1rem 1rem;max-width:68ch}
.post-faq-i>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
@media (prefers-reduced-motion:reduce){.post-faq-i>summary,.post-faq-i>summary::after{transition:none}}
.post-sources{margin-block:2.2rem}
.post-sources ol{display:grid;gap:.5rem;padding-inline-start:1.4em;color:var(--body);line-height:1.7;font-size:.92rem}
.post-sources li::marker{color:var(--muted);font-weight:700}
.post-sources a{color:var(--brand-700);text-decoration:underline;text-underline-offset:.2em;
	text-decoration-thickness:from-font;overflow-wrap:anywhere}
.post-disclaimer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem .75rem;align-items:start;
	margin-block:1.8rem;padding:14px 16px;background:var(--card);
	border:1px solid var(--line);border-radius:var(--radius-sm);
	color:var(--muted);font-size:.88rem;line-height:1.75}
.post-disclaimer>p{grid-column:2;margin:0}
.post-disclaimer-ic{grid-row:1;grid-column:1;width:20px;height:20px;margin-top:.15rem;color:var(--muted)}
.post-disclaimer a{color:var(--brand-700);font-weight:600;text-decoration:underline;text-underline-offset:.2em;
	text-decoration-thickness:from-font}
/* A wrapping flex row with no joiner glyph: the date sits beside the label when it fits and starts
   a clean line when it does not — a "—" or "·" between them always ended up dangling at a wrap. */
.post-disclaimer-rev{display:flex;flex-wrap:wrap;align-items:center;column-gap:.5rem;
	padding-top:.5rem;border-top:1px solid var(--line-2);color:var(--body)}
.post-disclaimer-rev svg{width:16px;height:16px;color:var(--ok);margin-inline-end:-.2rem}
.post-disclaimer strong{color:var(--ok)}
.post-disclaimer-date{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
/* flex-basis:100% is the line break. (A max-inline-size here would clamp the basis and undo it.) */
.post-disclaimer-pol{flex-basis:100%;margin-block-start:.2rem}

/* --- Author box + directory CTA -------------------------------------------- */
.post-author{margin-block:2rem;padding:18px}
.post-author-top{display:flex;gap:14px;align-items:center}
.post-author-ava{width:64px;height:64px;border-radius:var(--radius);object-fit:cover;
	background:var(--brand-50);flex:0 0 auto}
.post-author-id{min-width:0}
.post-author-role{color:var(--brand);font-weight:700;font-size:.78rem;margin-bottom:.1rem}
/* The site-wide verified seal, after the name — printed only for a doctor who carries the flag. */
.post-author-ver{display:inline-flex;vertical-align:-.12em;margin-inline-start:.35rem;color:var(--ok)}
.post-author-ver svg{width:17px;height:17px}
.post-author-name{font-size:1.14rem;line-height:1.4;margin-bottom:.1rem}
.post-author-name a{color:var(--ink)}
.post-author-spec{color:var(--brand-700);font-weight:600;font-size:.9rem}
.post-author-bio{color:var(--body);font-size:.93rem;line-height:1.8;margin-top:.9rem}
/* Two equal columns on a phone, so call + WhatsApp sit side by side as a pair and the two
   secondary links under them; an odd last button takes the full row instead of hanging alone. */
.post-author-cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:1rem}
.post-author-cta .btn{min-height:44px;padding-inline:.6rem}
.post-author-cta>.btn:last-child:nth-child(odd){grid-column:1/-1}
.post-author-cta .btn svg,.post-cta .btn svg,.post-strip .btn svg{width:18px;height:18px}
@media (min-width:700px){
	.post-author{padding:22px 24px}
	.post-author-ava{width:72px;height:72px}
	.post-author-body{padding-inline-start:86px}
	.post-author-cta{display:flex;flex-wrap:wrap;align-items:center}
	.post-author-cta>.btn:last-child:nth-child(odd){grid-column:auto}
}

/* The author archive's header is the page's ONE identity block: photo + name, then the bio and the
   Call / WhatsApp / profile buttons (the same .post-author-cta as the end-of-article box). */
.post-author-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 16px;align-items:center;
	margin-bottom:1.6rem;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg)}
.post-author-head .h-sec{margin-bottom:.1rem;font-size:clamp(1.35rem,4.6vw,1.9rem)}
.post-author-head .sub-sec{color:var(--brand-700);font-weight:600;font-size:.95rem}
.post-author-head .post-count{margin-top:.25rem}
.post-author-head>.post-author-bio,.post-author-head>.post-author-cta{grid-column:1/-1;margin-top:0;max-width:70ch}
@media (min-width:700px){
	.post-author-head{padding:22px 24px;column-gap:20px}
	.post-author-head .post-author-ava{width:88px;height:88px}
	/* Under the name, not under the photo: one text edge for the whole card. */
	.post-author-head>.post-author-bio,.post-author-head>.post-author-cta{grid-column:2}
}

/* --band, not the brick ramp: --brand/--brand-700 INVERT in dark mode, so the old gradient became
   a bright coral slab with near-black text on a dark page. --band is a deep brick in both themes
   and carries white at 8.66:1 / 10.37:1, so one rule serves light and dark. */
.post-cta{position:relative;overflow:hidden;display:flex;gap:16px 24px;align-items:center;justify-content:space-between;flex-wrap:wrap;
	margin-block:2rem;padding:22px;border-radius:var(--radius-lg);color:var(--band-ink);
	background:radial-gradient(120% 140% at 100% 0,rgba(255,255,255,.12),transparent 55%),
		linear-gradient(135deg,var(--band),var(--band-2))}
.post-cta-t{flex:1 1 260px;min-width:0}
.post-cta h3{color:var(--band-ink);font-size:1.18rem;line-height:1.45;margin-bottom:.35rem;text-wrap:balance}
.post-cta p{color:rgba(255,255,255,.86);font-size:.95rem;line-height:1.75;max-width:52ch}
.post-cta .btn{background:#fff;color:var(--band);border-color:#fff;font-weight:700;min-height:48px;padding-inline:1.4rem;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.post-cta .btn:hover{background:#fff;color:var(--band-2);filter:none;box-shadow:0 4px 16px rgba(0,0,0,.26)}
.post-cta .btn:focus-visible{outline-color:#fff}
.post-cta-arrow{transition:transform .18s}
[dir="ltr"] .post-cta-arrow{transform:scaleX(-1)}
@media (hover:hover){.post-cta .btn:hover .post-cta-arrow{transform:translateX(-3px)}
	[dir="ltr"] .post-cta .btn:hover .post-cta-arrow{transform:scaleX(-1) translateX(-3px)}}
@media (max-width:699px){.post-cta .btn{width:100%}}

.post-strip,.post-related{margin-top:2.4rem}
.post-related .h-sec{margin-bottom:1.1rem}
/* The pager's sprite arrows (medc_blog_pager): gi-arrow is drawn pointing LEFT, which is the
   inline end — "next" — only in RTL. So RTL mirrors "previous" and LTR mirrors "next". */
.pager .pager-prev,.pager .pager-next{width:18px;height:18px}
[dir="rtl"] .pager .pager-prev,[dir="ltr"] .pager .pager-next{transform:scaleX(-1)}

/* --- 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);
	border-start-end-radius:2px;border-end-end-radius:2px}
@media (prefers-reduced-motion:reduce){.post-progress{display:none}}

/* --- Responsive ------------------------------------------------------------ */
/* Below the two-column breakpoint the article aside holds only the desktop TOC and the share
   rail, both display:none — but as an empty grid row it still added the 26px grid gap above
   the related-articles section. */
@media (max-width:1023px){
	.post-aside--article{display:none}
	.post-related{margin-top:2rem}
}
@media (min-width:700px){
	.g-post{grid-template-columns:repeat(2,1fr);gap:20px}
	.post-card--wide{flex-direction:row;align-items:stretch}
	/* The cover's own ratio sets the card's minimum height, so a short body never crops the
	   cover's sides; only a body taller than the cover stretches it (and crops it, a little). */
	.post-card--wide .post-card-media{flex:0 0 46%;aspect-ratio:40/21}
	.post-card--wide .post-card-body{padding:24px 26px;justify-content:center;gap:.65rem}
	.post-card--wide .post-card-foot{margin-top:.6rem}
	/* Tablet: the hub's rail panels sit side by side instead of two full-width slabs. */
	.post-aside:not(.post-aside--article){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
}
@media (min-width:1024px){
	.post-cols{grid-template-columns:minmax(0,1fr) 320px;gap:32px}
	.post-aside:not(.post-aside--article){display:flex}
	/* The reading column is capped at the body's own measure and the rail pushed to the far edge.
	   With a 1fr column the takeaways, FAQ and CTA ran ~110px wider than the 74ch paragraphs
	   between them, so the article had two right edges. */
	.post-cols--article{grid-template-columns:minmax(0,740px) 280px;justify-content:space-between;gap:40px}
	.post-main .post-body{max-width:none}
	.post-share--rail{gap:.4rem}
	.post-share--rail .post-share-lbl{flex-basis:100%;margin-bottom:.1rem}
	.post-share--rail .post-share-b{width:40px;height:40px}
	.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-ctl);background:var(--bg);border:1px solid var(--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(20,23,27,.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 -4px 24px rgba(20,23,27,.22);animation:medc-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}
/* A grabber on the phone sheet: the shape that says "this slid up and slides back down".
   Decorative only — dismissal is the × button, Esc and the backdrop, as before. */
@media (max-width:1023px){
	.shsheet-head{position:relative;padding-top:20px}
	.shsheet-head::before{content:"";position:absolute;top:7px;left:50%;width:36px;height:4px;margin-left:-18px;
		border-radius:2px;background:var(--line)}
}
.shsheet-sub{font-weight:600}
/* `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);background:var(--card);border:1px solid var(--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);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 -4px 24px rgba(20,23,27,.22);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(20,23,27,.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 .medc-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(--foot-hi);outline-offset:-2px;border-radius:var(--radius-xs)}
@media (min-width:900px){.foot-acc{cursor:default}}
.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:var(--radius-btn);box-shadow:var(--shadow)}

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

/* --- Static pages: about / policies / FAQ / emergency (static-page.php), contact, 404 ------- */
/* These replace the inline style="" attributes the templates carried, so the page system has one
   place to tune its rhythm. The prose itself is still .post-body (the article typography). */
.sp-sec{padding-top:18px}
/* ONE measure for the whole static page. The wrap used to give the header, FAQ and related
   blocks 780px while .post-body stopped at its own 74ch (740px), so in RTL every block shared the
   right edge and the prose alone ended 40px short on the left — a ragged column. The wrap now
   sets the reading measure (740px of content) and the prose fills it like everything else. */
.sp-wrap{max-width:780px}
.sp-page .post-body{max-width:none}
.sp-wrap--wide{max-width:960px}
.sp-head{margin-bottom:1.4rem}
/* The brand's 3px brick rule over the title, as on contact, the app page and the 404 (.h-sec), so
   every page in the trust surface opens with the same mark rather than half of them. */
.sp-head .post-h1{text-wrap:balance}
.sp-head .post-h1::before{content:"";display:block;inline-size:34px;block-size:3px;margin-block-end:.7rem;
	background:var(--brand);border-radius:2px}
.sp-meta{margin-top:.5rem}
.sp-draft{margin-bottom:1.2rem}
/* Block-editor tables in a policy page (the cookie list). Articles get a .post-scroll wrapper
   injected around theirs; page content ships the editor's own <figure class="wp-block-table">, which
   had no styling at all — four unruled columns at 350px, with cookie names broken mid-token down
   the cell. Same look as .post-scroll, and the figure owns the sideways scroll on a phone. */
.sp-page .wp-block-table{margin:1.6em 0;overflow-x:auto;overscroll-behavior-inline:contain;
	border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card)}
.sp-page .wp-block-table table{width:100%;min-width:540px;border-collapse:collapse;font-size:.9em;line-height:1.6}
.sp-page .wp-block-table th,.sp-page .wp-block-table td{padding:.6rem .75rem;text-align:start;vertical-align:top;
	border-bottom:1px solid var(--line-2)}
.sp-page .wp-block-table th{background:var(--bg);color:var(--ink);font-weight:700;white-space:nowrap}
.sp-page .wp-block-table tr:last-child td{border-bottom:0}
/* Auto layout handed the identifier column half the width; the purpose column is the one people read. */
.sp-page .wp-block-table th:first-child{width:30%}
/* Break between words of a cookie name, never inside one (the old break-word split
   "medc_conse|nt"); nowrap went too far the other way and let the name column eat the screen. */
.sp-page .wp-block-table td code{word-break:normal;overflow-wrap:normal}
.sp-page .wp-block-table figcaption{padding:.5rem .75rem;font-size:.82rem;color:var(--muted)}
/* LTR inputs (email, phone) inside an RTL form still line up with the RTL fields around them. */
[dir="rtl"] .medc-form input[dir="ltr"]{text-align:right}
[dir="rtl"] .medc-form input[dir="ltr"]::placeholder{text-align:right}

/* Emergency call card. Danger tokens, not the brand red: an alert that shares the brand's hue
   stops reading as an alert (see the --danger-* note in :root). Both buttons are 56px tel: links
   — a tel: link needs a phone signal, not a data connection. */
.sp-emg{margin:0 0 1.6rem;padding:16px;border:1px solid var(--danger-line);border-inline-start:4px solid var(--danger-ink);
	border-radius:var(--radius);background:var(--danger-bg);color:var(--danger-ink)}
.sp-emg-t{margin:0 0 .75rem;font-weight:700;font-size:1.02rem;line-height:1.5;color:var(--danger-ink)}
.sp-emg-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
.sp-emg-b{display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:56px;padding:.5rem 1rem;
	border-radius:var(--radius-btn);border:1px solid var(--danger-line);background:var(--card);color:var(--danger-ink);
	font-weight:700;font-size:1rem;text-decoration:none;transition:filter .15s,transform .15s}
.sp-emg-b b{font-size:1.3em;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.sp-emg-b svg{width:22px;height:22px;flex:0 0 auto}
.sp-emg-b--main{background:var(--danger-ink);border-color:var(--danger-ink);color:var(--card)}
.sp-emg-b:hover{filter:brightness(.95)}
.sp-emg-b:active{transform:translateY(1px)}
.sp-emg--compact{margin:14px 0 0;padding:14px}
.sp-emg--compact .sp-emg-t{font-size:.92rem;margin-bottom:.6rem}
.sp-emg--compact .sp-emg-acts{grid-template-columns:1fr 1fr}
.sp-emg--compact .sp-emg-b{min-height:48px;font-size:.92rem;padding:.4rem .6rem;gap:.4rem}
.sp-emg--compact .sp-emg-b svg{width:18px;height:18px}

/* FAQ accordion on static pages. Each item keeps `.fgroup` for the analytics hook; this styles
   it as a ruled card list rather than as a listing filter group. */
.sp-faq{margin-top:2.4rem}
.sp-faq-h{font-size:clamp(1.25rem,3.6vw,1.5rem);margin-bottom:.9rem}
.sp-faq-h::before{content:"";display:block;inline-size:34px;block-size:3px;margin-block-end:.6rem;background:var(--brand);border-radius:2px}
.sp-faq-list{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}
.sp-faq-i.fgroup{border-bottom:1px solid var(--line-2)}
.sp-faq-i.fgroup:last-child{border-bottom:0}
.sp-faq-i.fgroup>summary{min-height:56px;padding:.8rem 1rem;gap:.9rem;justify-content:space-between;
	font-size:.98rem;line-height:1.55;transition:background-color .15s}
.sp-faq-i.fgroup>summary::after{content:none}
.sp-faq-i.fgroup>summary>span{flex:1 1 auto;min-width:0}
@media (hover:hover){.sp-faq-i.fgroup>summary:hover{background:var(--brand-50)}}
.sp-faq-i[open]>summary{color:var(--brand-700)}
.sp-faq-chev{width:20px;height:20px;flex:0 0 auto;color:var(--muted);transition:transform .2s ease}
.sp-faq-i[open] .sp-faq-chev{transform:rotate(180deg);color:var(--brand-700)}
.sp-faq-i>summary:focus-visible{outline-offset:-3px}
.sp-faq-a{padding:0 1rem 1rem}
.sp-faq-a p{color:var(--body);line-height:1.85;max-width:68ch}
@media (prefers-reduced-motion:reduce){.sp-faq-chev,.sp-faq-i.fgroup>summary{transition:none}}

.sp-related{margin-top:2rem}
.sp-related-h{font-size:1.05rem;margin-bottom:.8rem}
.sp-related-list{flex-wrap:wrap}
/* Chips on these pages are navigation a thumb aims at, so they meet the 44px floor here; the
   global .chip (42px) belongs to the chips owner and is left alone. */
.sp-page .chip,.e404-chips .chip{min-height:44px;padding-inline:14px}
/* One orphaned word on line two of an Arabic question ("…المعروفة / دقيقة؟") at 360-390px. */
.sp-faq-i summary>span,.sp-page .post-body h3{text-wrap:pretty}
/* For-doctors action band (static-page.php, under the title and again after the prose). */
.sp-cta{margin:0 0 1.6rem;padding:16px;border:1px solid var(--line);border-inline-start:4px solid var(--brand);
	border-radius:var(--radius);background:var(--card)}
.post-body + .sp-cta{margin:2rem 0 0}
.sp-cta-t{margin:0 0 .75rem;font-weight:700;font-size:1.02rem;line-height:1.5;color:var(--ink);text-wrap:balance}
.sp-cta-acts{display:grid;gap:10px}
.sp-cta-acts .btn{min-height:48px;width:100%}
.sp-cta-link{justify-self:center;display:inline-flex;align-items:center;min-height:44px;padding-inline:.5rem;
	color:var(--brand-700);font-weight:700;text-decoration:underline;text-underline-offset:.2em}
@media (min-width:560px){
	.sp-cta-acts{grid-template-columns:auto auto 1fr;align-items:center}
	.sp-cta-acts .btn{width:auto}
	.sp-cta-link{justify-self:start}
}

/* Contact page */
.contact-about-h{font-size:1.1rem;margin:0}
.contact-about-p{color:var(--body);margin-top:.5rem;line-height:1.75}
.contact-about-note{color:var(--muted);font-size:.85rem;margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--line-2)}

/* 404 */
.e404{padding-top:20px}
.e404-wrap{max-width:760px}
.e404-head{text-align:center;margin-bottom:1.6rem}
.e404-code{display:inline-flex;align-items:center;justify-content:center;margin:0 0 .6rem;padding:.15rem .9rem;
	font-size:clamp(2.6rem,11vw,4.2rem);font-weight:700;line-height:1.1;letter-spacing:.04em;color:var(--brand);
	border:2px solid var(--brand-100);border-radius:var(--radius-lg);background:var(--brand-50);font-variant-numeric:tabular-nums}
.e404-head .sub-sec{margin-inline:auto;text-wrap:pretty}
.e404-form{max-width:520px;margin:0 auto 2rem}
.e404-block{margin-bottom:1.6rem}
.e404-h{font-size:1.05rem;margin-bottom:.75rem}
.e404-chips{flex-wrap:wrap}
.e404-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px}
.e404-acts .btn{width:100%}

/* ==========================================================================
   NOTICE STRIP  (Medc\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:var(--radius-btn);font-weight:700;font-size:.84rem;text-decoration:none;
	background:var(--gtone);color:var(--gtone-ink);box-shadow:0 1px 2px rgba(20,23,27,.12)}
.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:.72;min-width:44px;min-height:44px;padding:0}
.gnotice-x:hover{opacity:1;background:color-mix(in srgb,currentColor 10%,transparent)}
.gnotice-x-i{width:18px;height:18px;flex:none}
/* 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)}
/* Danger reads the --danger-* tokens, which have dark twins: the literal pink strip it used to be
   was a bright slab across the top of every dark-mode page. */
.gnotice--danger{background:var(--danger-bg);color:var(--danger-ink);--gtone:var(--danger-ink);border-block-end-color:var(--danger-line)}
.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, and now the danger red too), so
   white-on-accent inverts to dark-on-accent for every tone. */
:root[data-theme="dark"] .gnotice{--gtone-ink:#1A0B08}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .gnotice{--gtone-ink:#1A0B08}
}
.gnotice-cta:focus-visible,.gnotice-x:focus-visible{outline-color:currentColor}
.gnotice-x{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-ctl)}
@media(max-width:600px){
	/* Phones: the message takes the full width with the × beside it, and the CTA sits under the
	   message at the start edge. Three across, a real system notice ("You are on the free plan…")
	   was squeezed into a 140px column five lines tall beside a button that owned half the strip. */
	.gnotice-in{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
		padding-block:.45rem;padding-inline:1rem .3rem;font-size:.86rem;gap:.35rem .5rem}
	.gnotice-txt{grid-column:1;padding-block:.2rem}
	.gnotice-x{grid-column:2;grid-row:1;align-self:start}
	.gnotice-cta{grid-column:1;justify-self:start;min-height:40px;padding:0 .9rem;margin-bottom:.3rem}
}

/* A zero-result listing has no filter rail (there is nothing to refine), so the two-column
   grid must collapse or the fallback renders in a 272px-narrower column for no reason. */
@media (min-width:1024px){.results-nofilters{grid-template-columns:minmax(0,1fr)}}

/* --- 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(--line);border-radius:var(--radius);
	padding:clamp(14px,3vw,18px)}
.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}
/* 44px hit boxes on the hub's two kinds of text link, with the extra height taken out of the
   margins so the cards do not grow. */
.hub-area-h a{display:inline-flex;align-items:center;min-height:44px;margin-block:-10px;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}
/* Where the count is a link ("كل المناطق" on /search/), it gets a 44px hit box; the negative
   margin keeps the heading row the height it was. */
a.hub-n{display:inline-flex;align-items:center;min-height:44px;margin-block:-10px}
.hub-chips{gap:.4rem}
.hub-sub-label{font-size:.8rem;font-weight:700;color:var(--muted);margin:.8rem 0 .4rem;
	text-transform:none;letter-spacing:0}
/* 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}
/* Inside a hub the quiet chip is dashed and --muted instead of faded. The later HOME 3.0
   `.chip-quiet{opacity:.55}` won the cascade here and took --brand-700 text below 4.5:1 — a
   name the patient is scanning for was the least legible word on the page. Two classes so this
   outranks it wherever it sits in the file. */
.hub-chips .chip-quiet{opacity:1;color:var(--muted);background:transparent;border-style:dashed;border-color:var(--field-line)}
.hub-chips .chip-quiet:hover{color:var(--brand-700);border-color:var(--brand);border-style:solid}
/* A secondary, fully live link that sits among chips ("all specialties", "+3 areas"): ink on a
   card fill with the control-boundary edge, never faded and never dashed. A dashed edge means ONE
   thing on these pages — "no doctors here yet" (.chip-quiet) — and these are not that. */
.chip-plain{color:var(--ink);background:var(--card);border-style:solid;border-color:var(--field-line)}
.chip-plain:hover{border-color:var(--brand);color:var(--brand-700)}

/* Tiles: a hub's chip cloud as an even grid. As wrapping pills, twelve names of different
   lengths made a ragged right edge in Arabic and a ragged left one in English, with a lone
   chip on the last line — the eye had nothing to run down. A grid gives every name the same
   box, a 48px target, and the count pinned to the same edge on every tile. Two columns from
   ~320px, more as the card widens; a long name wraps inside its tile rather than widening it. */
.hub-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr));gap:8px}
.hub-tiles>.chip{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:48px;
	padding:.45rem .8rem;border-radius:var(--radius-sm);line-height:1.4;font-size:.9rem;min-width:0;overflow-wrap:anywhere}
.hub-tiles>.chip .chip-n{flex:none;margin-inline-start:0}
/* One tile alone in a grid cell reads as a misplaced half on a phone; it takes the row there.
   Not wider: on a laptop a lone full-row tile is a 700px bar with its count stranded at the far
   end. */
@media (max-width:759px){.hub-tiles>.chip:only-child{grid-column:1/-1}}
/* /areas/{gov}: area cards in the hub grid; the grid's gap replaces their stacking margin. */
.hub-grid-areas{margin-bottom:14px}
.hub-grid-areas>.hub-area{margin-bottom:0}
/* Two columns on every phone. The auto-fill minimum (148px) needed 304px and a 360px phone's card
   has 290, so the most common Android width got one long column — /areas was fourteen stacked
   full-width tiles. A long name wraps inside its tile (overflow-wrap above). */
@media (max-width:759px){.hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:760px){.hub-tiles{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
/* A directory with one governorate (this one, today) put its only card in a third of the row
   and stacked fourteen tiles one per line beside two empty columns. */
.hub-grid>.hub-card:only-child{grid-column:1/-1}
/* "Specialty · place" labels are long, and broken across a 160px tile they split at the "·" —
   one search per full-width line on a phone instead. */
.link-mesh .hub-tiles{margin-top:0;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}
.hub-more{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;margin-top:.5rem;margin-bottom:-.5rem;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}
/* Solid, like every other card: the dashes belong to the empty-area TILES inside it, so "no
   doctors yet" looks the same on /areas and /areas/{gov}. */
.hub-area-thin{background:transparent}
.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:.7rem .85rem;background:var(--card);border:1px solid var(--line);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. */
/* A two-column grid: the heading spans it, and each "in areas" / "sub-specialties" label sits
   BESIDE its chips rather than on a line of its own above them. Stacked, a specialty with one
   area cost ~150px of phone for one link; side by side it is a heading and one row. */
.spec-block{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.7rem;align-items:center;align-content:start;
	background:var(--bg);border:1px solid var(--line-2);border-radius:var(--radius-sm);
	padding:.7rem .95rem .85rem;min-width:0}
.spec-block>.spec-block-h{grid-column:1/-1}
: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}
/* The specialty name is the block's main link, so it is a full-width 44px row with an arrow at
   the inline end — not a 21px line of text the thumb had to find. */
.spec-block-h a{display:flex;align-items:center;gap:.45rem;min-height:44px;margin-block:-6px -2px;color:var(--ink);min-width:0}
.spec-block-h a:hover .spec-block-name{color:var(--brand-700);text-decoration:underline}
.spec-block-arrow{width:16px;height:16px;flex:none;margin-inline-start:auto;color:var(--brand);transition:transform .18s}
html[dir="ltr"] .spec-block-arrow{transform:scaleX(-1)}
.spec-block-h a:hover .spec-block-arrow{transform:translateX(-3px)}
html[dir="ltr"] .spec-block-h a:hover .spec-block-arrow{transform:scaleX(-1) translateX(-3px)}
@media (prefers-reduced-motion:reduce){.spec-block-arrow{transition:none}}
.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:var(--radius-chip);padding:.05rem .45rem;line-height:1.5}
.spec-sub-l{font-size:.78rem;font-weight:700;color:var(--muted);margin:.5rem 0 0;letter-spacing:0;white-space:nowrap}
.spec-block .chips{margin-top:.5rem}
.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:solid;border-color:var(--line);color:var(--body);font-weight:600}
.chip-sub:hover{background:var(--brand-50);border-color:var(--brand-100)}
/* 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. */
/* 44px, and NOT `.spec-all .chip`: those are .hub-tiles tiles at 48px, and this rule — same
   specificity, later in the file — was cutting them back to 38. */
@media (pointer:coarse){
	.spec-block .chip,.spec-jump .chip{min-height:44px;display:inline-flex;align-items:center}
	.spec-block .chips,.spec-jump-c{gap:.5rem}
}
/* Phones: the specialty blocks flatten into rows split by hairlines. A tinted, bordered panel per
   specialty inside the bordered governorate card was a card in a card, ~120px a block.
   `:root .spec-grid>.spec-block` matches the specificity of the dark overrides above (0,3,0)
   and comes later, so the flat form holds in dark mode too. */
@media (max-width:559px){
	.spec-grid{gap:0}
	:root .spec-grid>.spec-block{background:none;border:0;border-top:1px solid var(--line-2);border-radius:0;
		padding-inline:0;padding-block:.75rem .9rem}
	:root .spec-grid>.spec-block:first-child{border-top:0;padding-top:.2rem}
}

/* --- 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. */
/* Flex, not the auto-fit grid .contact-actions draws: the reveal's label is a full sentence
   ("اضغط هنا لإظهار رقمي التواصل") and in a half-width grid cell .btn's nowrap clipped it at
   both ends. The reveal (and the numbers that replace it) take the whole row; Directions follows. */
.contact-reveal-wrap{display:flex;flex-wrap:wrap;gap:8px}
.contact-reveal-wrap>.btn{flex:1 1 auto}
.contact-reveal-wrap>.medc-reveal,.contact-reveal-wrap>.medc-reveal-slot{flex:1 1 100%}
/* Where a row has room for both (the branch page, a wide clinic card) the reveal and Directions
   share it 2:1; in the 292px aside the basis no longer fits and they stack as before. */
@media (min-width:560px){.contact-reveal-wrap>.medc-reveal{flex:2 1 300px}.contact-reveal-wrap>.btn-ghost{flex:1 1 140px}}
.medc-reveal{gap:.45rem;min-height:48px;white-space:normal;text-align:center;line-height:1.4}
.medc-reveal .gi{width:18px;height:18px}
.medc-reveal-slot{display:none;width:100%}
.medc-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(--line);background:transparent;color:var(--muted);
	border-radius:var(--radius-sm);font:inherit;font-size:.8rem;font-weight:700;
	min-height:48px;min-width:48px;padding:0 .7rem;cursor:pointer}
/* Copy matches the 48px Call / WhatsApp beside it: at 38px it was under the touch floor and
   made the row look unfinished. */
/* The digits are an LTR isolate; on their own row in an RTL card they hugged the LEFT edge,
   opposite every other line of the panel. Aligned to the page's start instead. */
[dir="rtl"] .rv-num{text-align:right}
.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:.85rem 1rem;margin-bottom:.5rem;
	border:1px solid var(--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}
.rq-type input{accent-color:var(--brand)}
@media (pointer:coarse){.rq-type{min-height:56px}}
/* The request page and the /claim/ finder (claim.php, claim-find.php). Both wear `.prof`, so
   their panels and fields are the profile's. */
.rq-wrap{max-width:760px}
.rq-head{margin:4px 0 16px}
.rq-eyebrow{margin:0 0 4px;color:var(--brand-700);font-size:.82rem;font-weight:700;letter-spacing:.02em}
.rq-h1{margin:0;font-size:clamp(1.45rem,5.6vw,2.1rem);line-height:1.35;text-wrap:balance}
.rq-lede{margin:8px 0 0;max-width:62ch;color:var(--body);font-size:.97rem;line-height:1.85}
.rq-doc{margin:0 0 12px}
.rq-doc-k{color:var(--muted);font-size:.78rem;font-weight:600}
.rq-pending{margin:0 0 12px}
.rq-pending p{margin:0;color:var(--body)}
.rq .rq-panel{padding:clamp(16px,4vw,24px)}
.rq-file{padding-block:.55rem;min-height:48px;cursor:pointer}
.rq-file::file-selector-button{margin-inline-end:.7rem;padding:.4rem .8rem;border:1px solid var(--field-line);border-radius:var(--radius-ctl);
	background:var(--card);color:var(--ink);font:inherit;font-size:.85rem;font-weight:700;cursor:pointer}
.rq-after{display:flex;align-items:flex-start;gap:8px}
.rq-after .gi{width:16px;height:16px;margin-top:4px;color:var(--muted)}
.rq-else{margin-top:16px}
.rq-else a{color:var(--brand-700);font-weight:700}
/* The finder: one field and one button as a single row on every width — the button keeps its
   label, the field takes what is left. */
.rq-find{display:flex;gap:8px;margin:0 0 16px}
.rq-find-in{position:relative;flex:1;min-width:0}
.rq-find-in .inp{min-height:52px;padding-inline-start:2.6rem;font-size:1rem;border-color:var(--field-line);background:var(--card)}
.rq-find-ic{position:absolute;inset-inline-start:.9rem;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.rq-find .btn{min-height:52px;padding-inline:1.2rem}
.rq-results{margin:0 0 16px}
.rq-res-h{margin:0 0 10px;font-size:1rem;color:var(--ink)}
.rq-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rq-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 12px;align-items:center;padding:12px;
	background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.rq-row-ava{grid-row:span 2;width:56px;height:56px;border-radius:var(--radius-sm);object-fit:cover;background:var(--brand-50)}
.rq-row-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.rq-row-name{align-self:flex-start;padding-block:9px;margin-block:-9px;color:var(--ink);font-weight:700;text-decoration:none}
.rq-row-name:hover{color:var(--brand-700);text-decoration:underline}
.rq-row-sub{color:var(--muted);font-size:.84rem;line-height:1.55}
.rq-row-st{display:inline-flex;align-items:center;gap:4px;color:var(--ok);font-size:.78rem;font-weight:700}
.rq-row-st.is-wait{color:var(--warn)}
.rq-row-st .gi{width:14px;height:14px}
.rq-row-acts{display:flex;gap:8px}
.rq-row-acts .btn{flex:1}
@media (min-width:560px){
	.rq-row{grid-template-columns:56px minmax(0,1fr) auto}
	.rq-row-ava{grid-row:auto}
	.rq-row-acts .btn{flex:none}
}
.rq-none{margin:10px 0 0;color:var(--body);font-size:.9rem;line-height:1.75}
.rq-steps{list-style:none;counter-reset:rq;margin:0;padding:0;display:grid;gap:12px}
.rq-steps li{counter-increment:rq;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;align-items:start;align-content:start}
.rq-short{margin:0 0 16px}
/* Squared numerals in a brick chip, the same step marker the home page's "how it works" uses. */
.rq-steps li::before{content:counter(rq);grid-row:span 2;display:grid;place-items:center;width:32px;height:32px;
	border-radius:var(--radius-sm);background:var(--brand-50);color:var(--brand-700);font-weight:700}
.rq-steps strong{color:var(--ink);font-size:.95rem}
.rq-steps span{color:var(--body);font-size:.88rem;line-height:1.7}
@media (min-width:700px){.rq-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
.rq-new{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:16px;
	border:1px dashed var(--field-line);border-radius:var(--radius)}
.rq-new p{margin:0;color:var(--body);font-size:.92rem;line-height:1.7}
.rq-new strong{color:var(--ink)}
@media (max-width:559px){.rq-new .btn{width:100%}}

/* --- 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. */
/* single-branch.php wears `.prof` too, so its panels, chips, hours table and form controls are
   the profile's — one clinic looks the same on both pages. Only the page frame lives here. */
.br-wrap{max-width:900px}
.br .panel{margin-top:12px}
.branch-back{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-size:.9rem;font-weight:700;
	color:var(--brand-700);text-decoration:none}
.branch-back:hover{text-decoration:underline}
.branch-back-arrow{width:16px;height:16px}
/* gi-arrow points to the inline END (forward); "back" points to the START, so the mirror runs
   the other way round from every forward arrow on the site: flipped in RTL, native in LTR. */
html[dir="rtl"] .branch-back-arrow{transform:scaleX(-1)}
.br-hero{position:relative}
.br-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.br-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0}
.br-h1{margin:0;font-size:clamp(1.35rem,5vw,1.9rem);line-height:1.35;text-wrap:balance;overflow-wrap:anywhere}
.br-head .share-chip--hero{flex:none;margin:0}
@media (max-width:699px){
	.br-head .share-chip--hero{width:44px;min-height:44px;padding:0}
	.br-head .share-chip--hero>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.branch-lede{color:var(--body);font-size:.95rem;line-height:1.85;margin:10px 0 0;max-width:66ch}
.branch-addr{display:flex;align-items:flex-start;gap:.4rem;margin:12px 0 0;color:var(--ink);font-size:.95rem;font-weight:600;line-height:1.7}
.branch-addr svg{width:18px;height:18px;flex:none;margin-top:.2rem;color:var(--brand)}
.br-contact{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-2)}
.br-nocontact{margin-top:14px}
.br-nocontact a{color:var(--brand-700);font-weight:700}
/* The doctor card. The clinic is the address; the doctor is the reason anyone is going. */
.branch-doc{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;text-decoration:none;
	border:1px solid var(--line);border-radius:var(--radius);background:var(--card);transition:border-color .15s}
.branch-doc:hover{border-color:var(--brand)}
.branch-doc:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Square, matching .mc-row-ava and .doc-ava — a doctor's face is the same shape everywhere. */
.branch-doc-ava{width:64px;height:64px;border-radius:var(--radius-sm);object-fit:cover;flex:none;
	border:2px solid var(--card);box-shadow:0 0 0 1px var(--line)}
.branch-doc-t{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}
.branch-doc-t strong{color:var(--ink);font-size:1rem}
.branch-doc-t em{font-style:normal;color:var(--muted);font-size:.85rem;line-height:1.55}
.branch-doc-go{color:var(--brand-700);font-size:.82rem;font-weight:700;margin-top:.15rem}
.branch-doc-arrow,.branch-sib-arrow{width:18px;height:18px;flex:none;color:var(--brand-700)}
[dir="ltr"] .branch-doc-arrow,[dir="ltr"] .branch-sib-arrow{transform:scaleX(-1)}
.br-grid{display:grid;gap:0 16px}
@media (min-width:900px){.br-grid--2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}}
.br-today{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:10px 12px;border-radius:var(--radius-sm);
	background:var(--bg);font-size:.92rem}
.br-hours .hours{margin-top:4px}
.br-hours .hours th,.br-hours .hours td{padding-block:.5rem}
.br-map .map-embed{margin:0}
/* 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:8px}
.branch-sib{display:flex;align-items:center;gap:12px;padding:12px 14px;text-decoration:none;
	border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--card);transition:border-color .15s}
.branch-sib:hover{border-color:var(--brand)}
.branch-sib:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.branch-sib-t{display:flex;flex-direction:column;gap:.15rem;min-width:0;flex:1}
.branch-sib strong{color:var(--ink);font-size:.95rem}
.branch-sib-t span{color:var(--muted);font-size:.85rem;line-height:1.6}
.branch-sib-st{flex:none;font-weight:700;font-size:.8rem;color:var(--muted)}
.branch-sib-st.is-open{color:var(--ok)}
.br-region{margin-top:16px}
.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-sm);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}
/* Lift on real hover only: on touch :hover sticks to the last tile tapped, which then sat 2px
   proud of its row until the next tap elsewhere. */
@media (hover:hover){.gallery-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}}
@media (prefers-reduced-motion:reduce){.gallery-item,.gallery-zoom{transition:none}.gallery-item:hover{transform:none}}
.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(20,23,27,.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(12,10,10,.93);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:medc-lb-in .22s ease-out}
@keyframes medc-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:var(--radius-chip);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);box-shadow:0 16px 40px 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:medc-spin .8s linear infinite}
/* Defined HERE, beside its only consumer. It used to live inside the hero-scene block (it
   spun the old pyramid scene's sun rays); when that scene was replaced the keyframes went
   with it and this spinner silently stopped turning. */
@keyframes medc-spin{to{transform:rotate(360deg)}}
.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.
   ========================================================================= */
.medc-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, #fff);color:var(--ink, #14171B);
	border:1px solid var(--line, #E8E3E1);border-radius:var(--radius-lg);
	box-shadow:0 6px 22px rgba(20,23,27,.14);
	transform:translateY(140%);opacity:0;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .32s ease}
.medc-pwa-bar.is-in{transform:translateY(0);opacity:1}
.medc-pwa-ico{flex:none;width:40px;height:40px;border-radius:var(--radius-sm)}
.medc-pwa-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.medc-pwa-txt strong{font-size:.95rem;line-height:1.3}
.medc-pwa-txt span{font-size:.8rem;color:var(--muted, #6A7381);line-height:1.35}
.medc-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. */
.medc-pwa-act button{min-height:44px;padding:0 14px;border-radius:var(--radius-btn);font:inherit;font-weight:700;font-size:.85rem;cursor:pointer;border:1px solid transparent}
.medc-pwa-no{background:transparent;color:var(--muted, #6A7381)}
.medc-pwa-no:hover{color:var(--ink, #14171B)}
/* The site's one primary fill (see .btn-primary): on a doctor page this bar stacks directly on
   the call bar's brick buttons, and a brighter flat red here read as a second, competing CTA. */
.medc-pwa-yes{background:linear-gradient(180deg,var(--cta-2, #B2352A),var(--cta, #8F231B));color:var(--cta-ink, #FFFFFF)}
.medc-pwa-yes:hover{filter:brightness(1.14)}
@media (min-width:900px){
	/* No bottom nav on desktop, so the bar sits on the edge itself. */
	.medc-pwa-bar{bottom:18px;inset-inline-start:auto;inset-inline-end:18px;margin-inline:0}
}
@media (max-width:440px){
	/* Below ~440px the two buttons and the copy cannot share a row without the text truncating
	   to nothing. A grid, not flex-wrap: wrapping let the copy fall onto a row of its own under
	   a lone icon (English), and parked both buttons at one end of an otherwise empty row.
	   Now: icon + copy on top, the two actions sharing the full width beneath. */
	.medc-pwa-bar{display:grid;grid-template-columns:40px minmax(0,1fr);row-gap:12px}
	.medc-pwa-act{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
	.medc-pwa-act .medc-pwa-no{border-color:var(--line, #E8E3E1);color:var(--body, #3D444E)}
}
@media (prefers-reduced-motion:reduce){
	.medc-pwa-bar{transition:none;transform:none;opacity:1}
}

.medc-pwa-sheet{border:0;border-radius:var(--radius-lg);padding:22px;max-width:400px;width:calc(100% - 32px);
	background:var(--card, #fff);color:var(--ink, #14171B);box-shadow:0 12px 36px rgba(20,23,27,.28);
	/* inset:0 + margin:auto is what centres a modal dialog. The old `inset-inline:auto` undid the
	   UA's inset, and the sheet hung 16px off the inline-end edge of a phone in both directions. */
	position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 32px);overflow-y:auto}
.medc-pwa-sheet::backdrop{background:rgba(20,23,27,.58)}
.medc-pwa-sheet h2{font-size:1.08rem;margin:0 0 14px;line-height:1.45;text-wrap:balance}
/* The same squared brick step counters as the app page's install steps. */
.medc-pwa-sheet ol{margin:0 0 20px;padding:0;list-style:none;counter-reset:medc-ios;display:flex;flex-direction:column;gap:12px}
.medc-pwa-sheet li{counter-increment:medc-ios;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start;
	font-size:.92rem;line-height:1.6;color:var(--body, #3D444E)}
.medc-pwa-sheet li::before{content:counter(medc-ios);display:inline-grid;place-items:center;width:26px;height:26px;
	border-radius:var(--radius-xs);background:var(--brand-50);color:var(--brand-700);font-weight:700;font-size:.8rem}
@media (prefers-reduced-motion:no-preference){.medc-pwa-sheet[open]{animation:medc-toast-in .22s cubic-bezier(.2,.8,.2,1)}}
.medc-pwa-close{width:100%;min-height:46px;border:0;border-radius:var(--radius-btn);background:linear-gradient(180deg,var(--cta-2, #B2352A),var(--cta, #8F231B));color:var(--cta-ink, #FFFFFF);font:inherit;font-weight:700;cursor:pointer}

.medc-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);
	background:var(--ink, #14171B);color:var(--card, #fff);font-size:.87rem;line-height:1.4;box-shadow:0 6px 20px rgba(20,23,27,.26);
	animation:medc-toast-in .24s cubic-bezier(.2,.8,.2,1)}
/* --card, not #fff: --ink turns near-white in dark mode, and a literal white label on it was
   white-on-white — the offline notice was unreadable in exactly the moment it mattered. */
@keyframes medc-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.medc-pwa-toast{animation:none}}

/* --- offline fallback ---------------------------------------------------- */
.medc-offline{display:flex;justify-content:center;padding-block:56px 72px}
.medc-offline-box{max-width:46ch;text-align:center;color:var(--muted, #6A7381)}
/* The glyph sits on a squared brick tile, the same plate the app page's feature icons use, so the
   error state reads as part of the product rather than as a bare browser-style icon. */
.medc-offline-ic{display:inline-grid;place-items:center;width:76px;height:76px;margin-bottom:18px;
	border-radius:var(--radius-lg);background:var(--brand-50);border:1px solid var(--brand-100);color:var(--brand)}
.medc-offline-ic svg{width:40px;height:40px}
.medc-offline h1{font-size:clamp(1.4rem,4vw,1.85rem);color:var(--ink, #14171B);margin-bottom:12px}
.medc-offline-lead{font-size:1rem;line-height:1.7;color:var(--body);text-wrap:pretty}
.medc-offline-note{margin-top:10px;font-size:.88rem;opacity:.85}
.medc-offline-act{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}
/* The emergency numbers are the shared .sp-emg compact card (contact page, emergency page):
   two 48px tel: buttons instead of two underlined words in a sentence. */
.medc-offline .medc-offline-emg{margin-top:28px;text-align:start}

/* --- app landing page ---------------------------------------------------- */
.medc-app{padding-block:32px 64px}
/* The hero sits on a soft brick wash, the same --hero-1 the home hero uses, so the page opens
   like a product page and not like a document. */
.medc-app-hd{text-align:center;max-width:none;margin-inline:auto;padding:28px 18px 26px;border-radius:var(--radius-lg);
	background:linear-gradient(180deg,var(--hero-1),var(--hero-2));border:1px solid var(--line)}
.medc-app-hd>*{max-width:56ch;margin-inline:auto}
/* img is display:block site-wide, so text-align never centred it — it hung at the start edge. */
.medc-app-icon{display:block;margin-inline:auto;width:88px;height:88px;border-radius:22px;box-shadow:0 8px 22px rgba(20,23,27,.18)}
.medc-app h1{font-size:clamp(1.6rem,5vw,2.4rem);margin:16px auto 10px}
.medc-app-lead{font-size:1.02rem;line-height:1.75;color:var(--body)}
.medc-app-cta{margin-top:22px}
.medc-app-cta .btn{min-width:min(100%,240px)}
.medc-app-free{margin-top:12px;font-size:.85rem;color:var(--muted)}
.medc-app-h{margin-top:2.6rem}
.medc-app-feat{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px;grid-template-columns:1fr}
.medc-app-feat li{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:start;
	padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.medc-app-feat-ic{grid-row:1 / span 2;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-ctl);
	background:var(--brand-50);color:var(--brand)}
.medc-app-feat svg{color:currentColor;width:22px;height:22px}
.medc-app-feat h3{font-size:1rem;margin:0 0 4px;align-self:end}
.medc-app-feat p{font-size:.9rem;line-height:1.65;color:var(--body)}
.medc-app-how{display:grid;gap:12px;grid-template-columns:1fr;margin-top:16px}
.medc-app-plat{padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.medc-app-plat h3{font-size:.98rem;margin-bottom:12px}
/* Numbered as steps, not as a list: a brick counter in a square chip, the brand's own shape. */
.medc-app-plat ol{margin:0;padding:0;list-style:none;counter-reset:medc-step;display:flex;flex-direction:column;gap:10px}
.medc-app-plat li{counter-increment:medc-step;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start;
	font-size:.9rem;line-height:1.6;color:var(--body)}
.medc-app-plat li::before{content:counter(medc-step);display:inline-grid;place-items:center;width:26px;height:26px;margin-top:1px;
	border-radius:var(--radius-xs);background:var(--brand-50);color:var(--brand-700);font-weight:700;font-size:.8rem}
.medc-app-foot{margin-top:30px;text-align:center;font-size:.87rem;line-height:1.7;color:var(--muted, #6A7381);max-width:60ch;margin-inline:auto}
@media (min-width:760px){
	.medc-app-feat{grid-template-columns:repeat(2,minmax(0,1fr))}
	.medc-app-how{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* An installed app does not need to be told how to install itself. */
.medc-standalone .medc-app-cta,.medc-standalone [data-medc-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.
   ========================================================================= */
.medc-cc{position:fixed;z-index:90;inset-inline:0;bottom:0;
	background:var(--card, #fff);color:var(--ink, #14171B);
	border-top:1px solid var(--line, #E8E3E1);
	box-shadow:0 -4px 22px rgba(20,23,27,.14);
	transform:translateY(100%);transition:transform .34s cubic-bezier(.2,.8,.2,1)}
.medc-cc.is-in{transform:translateY(0)}
.medc-cc[hidden]{display:none}
.medc-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}
.medc-cc-t{font-size:.98rem;margin:0 0 6px}
.medc-cc-d{font-size:.84rem;line-height:1.55;color:var(--muted, #6A7381);margin:0 0 8px;max-width:78ch}
.medc-cc-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.8rem;margin:0 0 12px}
/* Inline links grown to a real tap height — at .8rem they were a 20px strip directly above two
   48px buttons, so a thumb aimed at the policy landed on Reject. */
.medc-cc-links a{display:inline-flex;align-items:center;min-height:40px;color:var(--brand-700, #782018);
	text-decoration:underline;text-underline-offset:.2em}
.medc-cc-links{margin-bottom:8px;gap:0 10px}

/* 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. */
.medc-cc-act{display:flex;flex-wrap:wrap;gap:10px}
.medc-cc-b{flex:1 1 140px;min-height:48px;padding:0 18px;border-radius:var(--radius-btn);
	font:inherit;font-weight:700;font-size:.9rem;cursor:pointer;
	border:1px solid var(--ink, #14171B);background:transparent;color:var(--ink, #14171B);
	transition:background-color .18s ease,color .18s ease}
.medc-cc-b:hover{background:var(--ink, #14171B);color:var(--card, #fff)}
.medc-cc-b:focus-visible{outline:2px solid var(--gold, #CE3A2E);outline-offset:2px}
.medc-cc-more{margin:4px 0 -6px}
.medc-cc-link{background:none;border:0;padding:6px 2px;min-height:44px;font:inherit;font-size:.85rem;
	color:var(--brand, #B2352A);text-decoration:underline;cursor:pointer}
.medc-cc-prefs{margin-top:16px;padding-top:14px;border-top:1px solid var(--line, #E8E3E1);
	display:flex;flex-direction:column;gap:14px}
.medc-cc-prefs[hidden]{display:none}
.medc-cc-row p{font-size:.83rem;line-height:1.6;color:var(--muted, #6A7381);margin:4px 0 0;max-width:74ch}
.medc-cc-row-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.medc-cc-always{font-size:.78rem;color:var(--muted, #6A7381);font-weight:600}
.medc-cc-sw{position:relative;display:inline-flex;align-items:center;cursor:pointer;flex:none}
.medc-cc-sw input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
/* Pill, like .tt-track and for the same reason — see the note there. */
/* The OFF track is --field-line, not --line: a white knob on #E8E3E1 is 1.2:1, so an unticked
   switch read as no control at all (1.4.11 asks 3:1 for a control's boundary). */
.medc-cc-sw-t{width:46px;height:28px;border-radius:999px;background:var(--field-line, #998C88);
	position:relative;transition:background-color .2s ease}
.medc-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}
.medc-cc-sw input:checked + .medc-cc-sw-t{background:var(--gold, #CE3A2E)}
/* Logical translate, so the knob travels toward the inline end in both directions. */
.medc-cc-sw input:checked + .medc-cc-sw-t::after{transform:translateX(18px)}
[dir="rtl"] .medc-cc-sw input:checked + .medc-cc-sw-t::after{transform:translateX(-18px)}
.medc-cc-sw input:focus-visible + .medc-cc-sw-t{outline:2px solid var(--gold, #CE3A2E);outline-offset:2px}
/* The one primary fill (see .btn-primary), so "accept" matches every other main action. */
.medc-cc-act-2 .medc-cc-b{flex:0 1 240px;background:linear-gradient(180deg,var(--cta-2, #B2352A),var(--cta, #8F231B));border-color:var(--cta, #8F231B);color:var(--cta-ink, #FFFFFF)}
.medc-cc-act-2 .medc-cc-b:hover{filter:brightness(1.14);background:linear-gradient(180deg,var(--cta-2, #B2352A),var(--cta, #8F231B));color:var(--cta-ink, #FFFFFF)}
.medc-cc-reopen{min-height:44px;padding:0 16px;border-radius:var(--radius-btn);border:1px solid var(--line, #E8E3E1);
	background:transparent;color:inherit;font:inherit;font-weight:600;font-size:.87rem;cursor:pointer}
.medc-cc-table td code{font-size:.82em;word-break:break-word}
@media (min-width:700px){
	.medc-cc-act{max-width:420px}
}
/* Desktop: the copy on the start side, the two equal choices beside it on the end side — a
   180px-tall slab across a 1366px screen becomes a ~120px band. The preferences panel, when
   open, spans both columns underneath. Source order (and so reading and tab order) is unchanged. */
@media (min-width:900px){
	.medc-cc-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);column-gap:40px;
		align-items:start;max-width:1120px;padding-block:18px}
	.medc-cc-t,.medc-cc-d,.medc-cc-links{grid-column:1}
	.medc-cc-links{margin-bottom:0}
	.medc-cc-act{grid-column:2;grid-row:1 / span 2;align-self:end;max-width:none}
	.medc-cc-more{grid-column:2;grid-row:3;justify-self:center;margin:0}
	.medc-cc-prefs{grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){
	.medc-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-medc-consent-open] .botnav{display:none}
/* The open drawer marks every other child of <body> inert (medc.js setInert), and both docked bars
   are such children with a HIGHER z-index than the drawer — so they painted over the drawer's
   pinned footer as dead, untappable slabs. They step aside for as long as the sheet is open and
   come back untouched when it closes. */
:root:has(#medc-drawer.open) .medc-cc,
:root:has(#medc-drawer.open) .medc-pwa-bar{visibility:hidden}

/* ============================================================================
   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.
   ========================================================================= */
.mdc-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. That makes it 22px today (14px padding + an 8px --radius-ctl) — knowingly the
   roundest single object in a system whose cards are 10px, because a 14px outer around 14px
   of padding and 8px fields draws two curves that visibly diverge at the corner. The number
   is not a style choice to retune on its own: change the padding and the radius follows it. */
.mdc-hs--hero{background:var(--card);border:1px solid var(--field-line);border-radius:calc(var(--radius-ctl) + 14px);
	box-shadow:0 1px 2px rgba(20,23,27,.05),0 8px 24px rgba(120,32,24,.10);padding:14px;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. */
.mdc-hs-bar{display:grid;gap:10px;grid-template-columns:1fr}
.mdc-hs-row{display:grid;gap:10px;grid-template-columns:1fr}
.mdc-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. */
.mdc-hs-fld > legend{float:inline-start;width:100%;margin:0;padding:0}
.mdc-hs-l{font-size:.8rem;font-weight:700;color:var(--ink);padding:0;display:block}
.mdc-hs-opt{font-weight:500;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 `.mdc-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. */
.mdc-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}
.mdc-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 (.mdc-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. */
.mdc-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. */
.mdc-hs :is(select,input):not(:disabled):hover{border-color:var(--brand)}
.mdc-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. */
.mdc-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. */
.mdc-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. */
.mdc-hs-inwrap,.mdc-hs-selwrap{position:relative;display:flex;align-items:center;min-width:0}
.mdc-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. */
.mdc-hs-inwrap input,.mdc-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 `.mdc-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. */
.mdc-hs-inwrap.has-end input{padding-left:48px;padding-right:48px}
.mdc-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. */
.mdc-hs-selwrap::after{content:"";position:absolute;inset-inline-end:14px;width:11px;height:11px;
	background-color:var(--muted);pointer-events:none;
	-webkit-mask:var(--mdc-chev) center/11px 11px no-repeat;mask:var(--mdc-chev) center/11px 11px no-repeat}
.mdc-hs-selwrap:hover::after{background-color:var(--brand-700)}
.mdc-hs{--mdc-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. */
.mdc-hs-mic,.mdc-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-xs);
	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. */
.mdc-hs-mic[hidden],.mdc-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. */
.mdc-hs-mic::after,.mdc-hs-clear::after{content:"";position:absolute;inset:-3px}
.mdc-hs-mic:hover,.mdc-hs-clear:hover{color:var(--brand-700);border-color:var(--brand)}
.mdc-hs-mic:focus-visible,.mdc-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 `.mdc-hs-inwrap input` above — see the note there for
   why a `dir="auto"` field cannot use logical insets against page-positioned icons. */
.mdc-hs-mic.is-rec{background:#c0392b;border-color:#c0392b;color:#fff;animation:mdc-rec 1.4s ease-in-out infinite}
@keyframes mdc-rec{0%,100%{opacity:1}50%{opacity:.62}}
@media (prefers-reduced-motion:reduce){.mdc-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. */
.mdc-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}
.mdc-hs-seg input{position:absolute;opacity:0;width:1px;height:1px}
.mdc-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}
.mdc-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. */
.mdc-hs-seg input:checked + label{background:var(--ink);color:var(--card)}
.mdc-hs-seg input:focus-visible + label{outline:2px solid var(--brand);outline-offset:-3px}

.mdc-hs-combo{position:relative;min-width:0;flex:1}
.mdc-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:linear-gradient(180deg,var(--cta-2),var(--cta));box-shadow:0 2px 8px var(--cta-glow);
	color:var(--cta-ink);font:inherit;font-size:1rem;font-weight:700;cursor:pointer;white-space:nowrap;
	transition:filter .15s ease}
.mdc-hs-go:hover{filter:brightness(1.14)}
.mdc-hs-go:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.mdc-hs-go[disabled]{opacity:.75;cursor:progress}
.mdc-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. */
.mdc-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 8px 22px rgba(20,23,27,.16);max-height:min(320px,40dvh);overflow-y:auto;
	overscroll-behavior:contain;scroll-padding-block:2px}
.mdc-hs-list[hidden]{display:none}
.mdc-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 medc-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. */
.mdc-hs-s-t{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.mdc-hs-s-l{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-hs-s-g{font-size:.76rem;color:var(--muted);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-hs-s-k{flex:none;font-size:.68rem;font-weight:700;padding:3px 8px;border-radius:var(--radius-chip);
	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. */
.mdc-hs-list li:hover{background:var(--brand-50);color:var(--brand-700)}
.mdc-hs-list li.is-on{background:var(--brand-100);color:var(--brand-700);
	border-inline-start:3px solid var(--brand);padding-inline-start:9px}
.mdc-hs-list li.is-on .mdc-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. */
.mdc-hs-list .mdc-hs-none{color:var(--muted);font-size:.86rem;line-height:1.5;cursor:default;
	display:block;padding:11px 12px;min-height:0}
.mdc-hs-list .mdc-hs-none:hover{background:transparent;color:var(--muted)}

.mdc-hs-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;justify-content:space-between}
.mdc-hs-hint{font-size:.8rem;color:var(--muted);line-height:1.55;margin:0;min-width:0}
/* flex-basis ONLY inside the row. .mdc-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. */
.mdc-hs-foot .mdc-hs-hint{flex:1 1 260px}
.mdc-hs-hint.is-err{color:var(--err-ink);font-weight:600}
.mdc-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}
.mdc-hs-more:hover{color:var(--brand)}
html[dir="ltr"] .mdc-hs-more svg{transform:scaleX(-1)}

/* --- the full page variant ------------------------------------------------ */
/* `.mdc-hs--page`: the form's class is built from $medc_sf_variant, and the page variant is
   called 'page'. These rules were written against `--full` (the PHP's $sf_full flag), a class
   nothing ever rendered, so the advanced page never got its gap or its desktop two-column bar —
   the free-text field, the symptom helper and the governorate all stacked full-width at 1366px. */
.mdc-hs--page{gap:14px}
.mdc-hs-adv{border:1px solid var(--field-line);border-radius:var(--radius);padding:16px;margin:0;background:var(--card)}
.mdc-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. */
.mdc-hs-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:6px}
.mdc-hs-checks{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px}
.mdc-hs-check{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-size:.9rem;
	font-weight:600;color:var(--body);cursor:pointer}
.mdc-hs-check input{width:20px;height:20px;accent-color:var(--brand);flex:none}
.mdc-hs-check:hover{color:var(--ink)}
.mdc-hs-check:has(input:checked){color:var(--brand-700)}
.mdc-hs-adv-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:16px}
.mdc-hs-adv-act .mdc-hs-go{flex:1 1 220px}
.mdc-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}
.mdc-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){
	.mdc-hs-row{grid-template-columns:1fr 1fr}
}
@media (min-width:860px){
	.mdc-hs--page .mdc-hs-bar{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
	.mdc-hs--page .mdc-hs-fld--q{grid-column:1}
	.mdc-hs--page .mdc-hs-fld--gov{grid-column:2}
	.mdc-hs--page .mdc-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){
	.mdc-hs-selwrap::after{forced-color-adjust:none;background-color:CanvasText}
	.mdc-hs-seg input:checked + label{outline:2px solid Highlight;outline-offset:-2px;color:Highlight}
	.mdc-hs-list li.is-on{outline:2px solid Highlight;outline-offset:-2px}
	.mdc-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{margin-bottom:1.1rem}
.search-lede{color:var(--body);font-size:.98rem;line-height:1.8;margin-top:.5rem;max-width:70ch}
/* --field-line, not --line: this panel is the visible frame around the form on /search/, and at
   1.13:1 it and the .mdc-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(14px,3vw,20px);box-shadow:var(--shadow-sm)}
/* Inside the panel the bar is already on a card; a second card around it would be a box in a box. */
.search-panel .mdc-hs{margin-top:0}
.search-panel .mdc-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}
/* The "all areas / all specialties" links: their 44px target (and the negative margin that keeps
   the head row its height) comes from the shared `a.hub-n` rule; here only the look. */
.search-browse .hub-area-head .hub-n{color:var(--brand-700);font-weight:700;text-decoration:underline;text-underline-offset:3px;
	padding-inline:4px}
.search-browse .hub-area-head .hub-n:hover{color:var(--brand)}
/* Heading at the start edge, its "see all" at the end: the pattern every other section head on
   the site uses, and it stops the link reading as part of the title. */
.search-browse .hub-area-head{justify-content:space-between;align-items:center}

/* ============================================================================
   HOME 3.0 — trust strip, most-searched combos, how-it-works, trust cards,
   article teasers.
   ========================================================================= */
.medc-trust-strip{padding-block:18px;background:var(--card);border-bottom:1px solid var(--line)}
.medc-ts{display:grid;gap:10px 22px;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:0}
.medc-ts li{display:flex;align-items:center;gap:8px;font-size:.84rem;font-weight:600;color:var(--body);min-height:32px}
.medc-ts svg{flex:none;width:18px;height:18px;color:var(--gold)}
/* The two clickable claims are bare inline <a>s inside a 32px <li>, so their hit box was the
   text line box — roughly 24px tall — two rows deep on a phone, on the block that inherited the
   removed counter strip's job of being the hero's trust payload. The <li> min-height rises with
   the anchor, which costs about 24px of page height for four rows and is worth it here. */
.medc-ts a{display:inline-flex;align-items:center;min-height:44px;color:var(--body);
	text-decoration:underline;text-underline-offset:3px}
.medc-ts a:hover{color:var(--brand)}
@media (min-width:900px){.medc-ts{grid-template-columns:repeat(4,1fr)}}

.medc-sponsored{font-size:.78rem;color:var(--muted);margin-top:.35rem;max-width:64ch}
.medc-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}

.medc-combos{display:grid;gap:8px 16px;grid-template-columns:1fr;list-style:none;margin:1.2rem 0 0;padding:0}
.medc-combos a{display:block;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius);
	background:var(--bg);color:var(--body);font-size:.9rem;font-weight:600;min-height:44px;
	display:flex;align-items:center;transition:border-color .16s ease,color .16s ease}
.medc-combos a:hover{border-color:var(--gold);color:var(--ink)}
@media (min-width:640px){.medc-combos{grid-template-columns:1fr 1fr}}
@media (min-width:1000px){.medc-combos{grid-template-columns:repeat(3,1fr)}}

.medc-how{display:grid;gap:16px;grid-template-columns:1fr;list-style:none;margin:1.4rem 0 0;padding:0;counter-reset:none}
.medc-how li{padding:20px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--card)}
/* Squared, and var(--gold-ink) rather than a literal dark ink — the step numeral sits on the
   red CTA surface now, where white is the readable pairing (4.92:1). */
.medc-how-n{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
	border-radius:var(--radius-sm);background:var(--gold);color:var(--gold-ink);font-weight:700;font-size:1rem}
.medc-how h3{font-size:1.02rem;margin:.7rem 0 .35rem}
.medc-how p{font-size:.9rem;line-height:1.65;color:var(--muted);margin:0}
@media (min-width:760px){.medc-how{grid-template-columns:repeat(3,1fr)}}

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

.medc-posts{display:grid;gap:16px;grid-template-columns:1fr;margin-top:1.2rem}
.medc-post{display:block;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:var(--card);color:inherit}
.medc-post img{width:100%;height:170px;object-fit:cover;display:block}
.medc-post h3{font-size:1rem;line-height:1.45;margin:14px 16px 6px;color:var(--ink)}
.medc-post-rev{display:block;margin:0 16px 16px;font-size:.79rem;color:var(--muted);font-weight:600}
.medc-post:hover h3{color:var(--brand)}
@media (min-width:760px){.medc-posts{grid-template-columns:repeat(3,1fr)}}

/* ============================================================================
   MEDCAIRO HOME — the hero, the district grid, the dense specialty list,
   the featured rail, the steps and the for-doctors band.

   Appended last on purpose: this file is cascade-ordered, so a fresh `mc-`
   namespace never has to fight the origin's card rules above it. Every colour
   is a token, so with two exceptions (both noted at the rule) nothing here
   needs a second dark-mode block.
   ========================================================================= */

/* --- 1. Hero ---------------------------------------------------------------- */
/* The split hero and its "directory in numbers" glass panel were removed at the client's request.
   The hero is the origin's single centred column again — .hero-content's own rules above
   (max-width 820px, centred headline, start-aligned form and rail) — so it needs nothing here. */

/* --- 2. Cairo districts --------------------------------------------------- */
/* A Cairo reader picks a district before a specialty, so this is the first section
   under the hero and it is DENSE: as many real places as fit, each with its real
   count, rather than six illustrated cards.
   Both class names are styled. `.district-grid` is the name the brand spec uses;
   `.mc-district-grid` is the prefixed twin, so whichever the template carries, the
   grid lays out. Do not "clean this up" by deleting one without grepping templates/. */
.district-grid,.mc-district-grid{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1.2rem}
@media (min-width:560px){.district-grid,.mc-district-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:900px){.district-grid,.mc-district-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1180px){.district-grid,.mc-district-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* `.district-grid > a` as well as `.mc-district`, so a bare anchor in the grid is
   already a cell and the template is not obliged to carry a second class. */
.mc-district,.district-grid>a,.mc-district-grid>a{
	display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0;
	min-height:52px;padding:.55rem .75rem;background:var(--card);border:1px solid var(--line);
	border-radius:var(--radius-sm);color:var(--body);font-size:.92rem;font-weight:600;
	transition:border-color .15s ease,color .15s ease,background-color .15s ease}
.mc-district:hover,.district-grid>a:hover,.mc-district-grid>a:hover{
	border-color:var(--brand);color:var(--brand-700);background:var(--brand-50)}
/* The name may be two words of Arabic that must not be truncated mid-word; the count
   never wraps. min-width:0 on the name is what lets the ellipsis happen at all. */
.mc-district-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-district-n{flex:none;font-size:.78rem;font-weight:700;color:var(--muted);
	font-variant-numeric:tabular-nums}
.mc-district:hover .mc-district-n{color:var(--brand-700)}
/* The "all districts" cell: a live link, deliberately quieter, always last. */
.mc-district--all{background:var(--bg);border-style:dashed;color:var(--brand-700);justify-content:center}

/* --- 3. Specialties, dense two-column list -------------------------------- */
/* Not the origin's card grid. A specialty is a word and a number; a card around it is
   40px of chrome per word. A hairline between rows is the whole treatment. */
.mc-spec-list{list-style:none;margin:1.1rem 0 0;padding:0;display:grid;grid-template-columns:1fr;
	gap:0 32px}
@media (min-width:760px){.mc-spec-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mc-spec-row{border-bottom:1px solid var(--line-2);min-width:0}
.mc-spec-a{display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-width:0;
	min-height:52px;padding-block:.35rem;color:var(--body);font-size:.95rem;font-weight:600}
.mc-spec-a:hover{color:var(--brand-700)}
.mc-spec-a:hover .mc-spec-name{text-decoration:underline;text-underline-offset:.22em}
.mc-spec-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-spec-n{flex:none;font-size:.8rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.mc-spec-a:hover .mc-spec-n{color:var(--brand-700)}
/* The last row in each COLUMN should not carry a rule, and which row that is depends on
   the column count — so the rule is turned off for the final item and, at two columns,
   for the second-to-last as well. */
.mc-spec-row:last-child{border-bottom:0}
@media (min-width:760px){.mc-spec-row:nth-last-child(2):nth-child(odd){border-bottom:0}}

/* --- 4. Featured doctors: a rail on mobile, a 3-up grid on desktop -------- */
/* `min-width:0` is load-bearing, exactly as on .quick-rail: grid and flex items default
   to min-width:auto, so a row of nowrap cards would force the whole column to its
   min-content width and blow the page out sideways instead of scrolling. */
.mc-feat-rail{display:grid;min-width:0;gap:14px;margin-top:1.3rem;
	grid-auto-flow:column;grid-auto-columns:minmax(258px,82%);
	overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
	padding-block:.15rem .7rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mc-feat-rail::-webkit-scrollbar{display:none}
.mc-feat-rail>*{scroll-snap-align:start;min-width:0}
/* The rail hides its scrollbar, so the next card is simply cut off at the edge with
   nothing to say more exists. 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 card a keyboard user has landed on, and an invisible focus ring is a worse
   bug than an unhinted scroller. (Same reasoning, same shape, as .quick-rail.) */
.mc-feat-rail:not(:focus-within){mask-image:linear-gradient(to left,#000 calc(100% - 34px),transparent)}
[dir="ltr"] .mc-feat-rail:not(:focus-within){mask-image:linear-gradient(to right,#000 calc(100% - 34px),transparent)}
@media (min-width:900px){
	/* Off the rail entirely: grid-auto-flow back to row, no scroller, no mask — a
	   horizontal scroller with a mouse is a worse control than three visible cards. */
	.mc-feat-rail{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));
		grid-auto-columns:auto;overflow:visible;padding-block:0}
	.mc-feat-rail:not(:focus-within),[dir="ltr"] .mc-feat-rail:not(:focus-within){mask-image:none}
}

/* --- 5. How it works: three numbered, squared steps ----------------------- */
/* `.medc-how` is listed alongside so the block the origin already ships keeps working
   while templates move over; both render identically. */
.mc-steps,.medc-how{display:grid;gap:14px;grid-template-columns:1fr;list-style:none;
	margin:1.4rem 0 0;padding:0}
.mc-step,.medc-how li{padding:20px;border:1px solid var(--line);border-radius:var(--radius);
	background:var(--card)}
/* Squared, not a circle: the numeral is a step marker in an architectural system, and it
   is the one place the brand mark's own geometry shows up at 34px. */
.mc-step-n,.medc-how-n{display:inline-flex;align-items:center;justify-content:center;
	width:34px;height:34px;border-radius:var(--radius-sm);background:var(--gold);
	color:var(--gold-ink);font-weight:700;font-size:1rem;font-variant-numeric:tabular-nums}
.mc-step h3,.medc-how h3{font-size:1.02rem;margin:.7rem 0 .35rem}
.mc-step p,.medc-how p{font-size:.9rem;line-height:1.7;color:var(--body);margin:0}
@media (min-width:760px){.mc-steps,.medc-how{grid-template-columns:repeat(3,1fr)}}

/* --- 6. For-doctors CTA band --------------------------------------------- */
/* Built from --band/--band-2/--band-ink rather than --cta/--brand, because the brick ramp
   INVERTS between themes: a band painted with --brand-700 would be a deep red slab in
   light and a pale coral one in dark, and white on pale coral is ~3:1. --band is a deep
   brick in both themes (white on it: 8.66:1 light, 10.37:1 dark), so this block needs no
   dark twin at all. */
.mc-cta-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
	gap:18px 24px;padding:clamp(20px,4vw,30px) clamp(18px,4vw,32px);border-radius:var(--radius-lg);
	background:linear-gradient(135deg,var(--band-2),var(--band));color:var(--band-ink)}
.mc-cta-band-t{min-width:0;flex:1 1 320px}
.mc-cta-band-t h2{color:var(--band-ink);font-size:clamp(1.25rem,3vw,1.6rem);margin-bottom:.4rem}
/* .88 alpha over an 8.66:1 ground still clears 4.5:1 with room; a token would have to be
   a fourth --band-* value for one paragraph. */
.mc-cta-band-t p{color:rgba(255,255,255,.88);font-size:.96rem;line-height:1.75;max-width:56ch;margin:0}
.mc-cta-band-a{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.6rem}
/* Inverted: the band is the fill, so its button is the paper. --band on --band-ink is the
   same 8.66:1 / 10.37:1 read backwards. */
.mc-cta-band .btn-primary{background:var(--band-ink);color:var(--band);border-color:var(--band-ink);box-shadow:none}
.mc-cta-band .btn-primary:hover{background:var(--band-ink);filter:brightness(.94)}
.mc-cta-band .btn-ghost{background:transparent;color:var(--band-ink);border-color:rgba(255,255,255,.5)}
.mc-cta-band .btn-ghost:hover{background:rgba(255,255,255,.12);color:var(--band-ink);border-color:var(--band-ink)}
.mc-cta-band :focus-visible{outline:2px solid var(--band-ink);outline-offset:2px}

/* ============================================================================
   MEDCAIRO LISTINGS — the roster.

   The origin's results page is a grid of airy cards. MedCairo's is a dense,
   scannable ROSTER: one row per doctor, a brand rule down its inline-start edge,
   a square portrait, and everything else on two lines of text. A patient
   comparing eleven doctors is reading down a column, not across a mosaic.
   ========================================================================= */

/* --- Layout: sticky filter rail on the inline-start, roster beside it ------ */
.mc-results{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
.mc-results-main{min-width:0}
@media (min-width:1024px){
	/* The rail leads, because in a directory the filters are the navigation. */
	.mc-results{grid-template-columns:280px minmax(0,1fr);gap:28px}
	/* align-self:start is what makes `sticky` possible at all: a grid item stretched to
	   the main column's height has nothing left to travel against, which is the exact bug
	   .profile-cols>aside documents further up. The max-height keeps a long filter list
	   reachable instead of stranding its bottom off-screen. */
	/* 92px, not 16: the sticky search bar (about 79px at this width) pins directly under the nav, and
	   a rail that sticks at nav + 16px slid about 60px of itself under that bar. */
	.mc-rail{align-self:start;position:sticky;top:calc(var(--nav-h) + 92px);
		max-height:calc(100dvh - var(--nav-h) - 108px);overflow-y:auto;overscroll-behavior:contain}
}
.mc-rail{min-width:0}

/* --- The chip bar above the roster ---------------------------------------- */
/* Result count and active filters in one squared strip, so the answer to "what am I
   looking at, and why is it this short?" is a single object rather than three margins. */
/* Two lines inside one strip: the count and the sort on the first (they are one reading of the
   list — "11 results, by recommendation"), the removable chips under them. Unboxed and closed by a
   hairline: the rows below are cards, and a bordered strip on top of a stack of bordered cards
   was one box too many. */
.mc-chipbar{display:flex;flex-direction:column;gap:.55rem;margin-bottom:14px;padding-bottom:12px;
	border-bottom:1px solid var(--line)}
.mc-chipbar-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem .75rem;min-height:44px;min-width:0}
.mc-chipbar-n{margin:0;font-size:.95rem;color:var(--body);white-space:nowrap}
.mc-chipbar-n strong{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.mc-chipbar-chips{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}

/* --- The roster ----------------------------------------------------------- */
.mc-roster{list-style:none;margin:0;padding:0;display:grid;gap:12px}
/* The 3px inline-start rule is the row's identity — it is what makes a list of rows read
   as a roster rather than as an accidental stack of divs. --brand on --card is 6.11:1 in
   light and 5.98:1 in dark, so it clears the 3:1 a non-text graphic needs twice over.
   `border-inline-start`, not a left border: this page is RTL first and the rule belongs on
   the reading edge in both directions.
   content-visibility skips the render of rows below the fold; contain-intrinsic-size is a
   ROW height (~150px on a phone with its foot), not a card height, or the scrollbar jumps as
   they resolve.

   A GRID, not a wrapping flex row: portrait | text on top, and the foot (fee · status ·
   action) spanning the full width beneath — then portrait | text | foot as three columns from
   760px, where the fee becomes a column a patient can scan straight down. The three children
   place themselves by source order; nothing in the markup is positioned. */
.mc-row{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 14px;align-items:start;
	padding:14px;background:var(--card);border:1px solid var(--line);
	border-inline-start:3px solid var(--brand);border-radius:var(--radius);
	transition:border-color .15s ease,box-shadow .15s ease;
	content-visibility:auto;contain-intrinsic-size:auto 150px}
/* The whole row is the target. The name's link stretches an ::after over the row (the row is
   the containing block), so a tap on the portrait, the specialty or the empty space lands on
   the profile — on a phone the name alone was a 27px-tall target inside a 150px object. The
   row stays an <li> with ONE real link plus the explicit CTA; nothing is nested in an <a>.
   The CTA and the verified mark are lifted above the overlay so they keep their own hover
   and tooltip. */
.mc-row-name a::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:0}
.mc-row .mc-row-act,.mc-row .doc-verify{position:relative;z-index:1}
/* Focus is shown on the ROW, since the row is what the link now covers. Inside @supports so a
   browser without :has() keeps the link's own ring rather than losing both. */
@supports selector(:has(*)){
	.mc-row:has(.mc-row-name a:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
	.mc-row-name a:focus-visible{outline:none}
}
/* The first four rows are above the fold on every breakpoint; skipping their render costs
   more than it saves and hides the LCP element from the browser. */
.mc-roster>.mc-row:nth-of-type(-n+4){content-visibility:visible}
.mc-row:hover{box-shadow:var(--shadow);border-inline-start-color:var(--brand-700)}
/* Paid placement / membership tiers reuse the ramp the rest of the file already has, so a
   featured row is the same object with a different edge, not a different component.
   The wash is HALF of --brand-50 over the card: the full tint made every featured row a pink
   slab, and a page whose first three rows are pink reads as an advert block, not a list. */
.mc-row--featured{border-inline-start-color:var(--gold);background:var(--brand-50);
	background:color-mix(in srgb,var(--brand-50) 55%,var(--card))}
.mc-row--gold{border-inline-start-color:var(--tier-gold)}
.mc-row--silver{border-inline-start-color:var(--tier-silver)}
.mc-row--bronze{border-inline-start-color:var(--tier-bronze)}

/* 64px SQUARE, --radius-sm — not the origin's circle. A square portrait at this size keeps
   more of the face at the same width, and it is the shape .doc-ava and .branch-doc-ava now
   share. aspect-ratio + object-fit means a non-square upload is cropped, never squashed. */
.mc-row-ava{flex:0 0 auto;width:64px;height:64px;aspect-ratio:1;object-fit:cover;
	border-radius:var(--radius-sm);background:var(--brand-50);box-shadow:0 0 0 1px var(--line)}
/* A row with no photo uses the existing .doc-ava-ph initial-tile (it already carries the
   per-doctor hue and both dark-mode twins) — put both classes on the element rather than
   duplicating those rules here. */
.mc-row-ava.doc-ava-ph{font-size:1.55rem}
.mc-row-body{min-width:0}
.mc-row-name{font-size:1.05rem;font-weight:700;line-height:1.4;color:var(--ink);margin:0;
	display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem}
.mc-row .doc-verify svg{width:18px;height:18px}
/* Padding, not a bigger font: it lifts the link over the 24px minimum target height
   without changing how the row looks. */
.mc-row-name a{color:inherit;display:inline-block;padding-block:2px}
.mc-row-name a:hover,.mc-row:hover .mc-row-name a{color:var(--brand-700)}
/* Seniority in the brand accent, two lines at most: "أستاذ ورئيس قسم القلب بطب عين شمس" was
   cut to its first three words by a one-line clamp, which is exactly the part that differs. */
.mc-row-title{margin:.1rem 0 0;font-size:.88rem;font-weight:700;color:var(--brand-700);line-height:1.5;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* specialty · district (the fee, rating and status live in the foot). The separator is a
   PSEUDO-ELEMENT, never a "·" typed into the markup: a bidi-neutral glyph between two runs of
   different direction reorders at
   the boundary and lands on the wrong side of one of them. A pseudo-element is not part of
   either neighbour's bidi run. Same fix as .post-card-foot. */
/* The "·" sits in the GAP before each item and the line clips its inline-start edge, so when the
   district wraps under the specialty (a long specialty at 320px) its dot falls outside the box
   and is clipped instead of dangling at the end of the line above. */
.mc-row-meta{margin:.3rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .9rem;overflow:hidden;
	font-size:.85rem;color:var(--muted);line-height:1.6}
/* Bio / own tagline: two lines, clamped; the full excerpt stays in the HTML. */
.mc-row-bio{margin:.4rem 0 0;font-size:.88rem;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;
	display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.mc-row-meta>span{position:relative;min-width:0}
.mc-row-meta>span::before{content:"·";position:absolute;inset-inline-start:-.9rem;width:.9rem;text-align:center;opacity:.55}
.mc-row-meta svg{width:14px;height:14px;vertical-align:-2px;color:var(--brand)}
/* A district stays on one line and, if it still does not fit, ellipsises in its INNER span — an
   overflow on the item itself would clip its own "·", which is drawn outside its box. The
   street-address fallback (.mc-row-addr) is allowed to wrap. */
.mc-row-where{display:flex;align-items:center;gap:.25rem;white-space:nowrap}
.mc-row-where>svg{flex:none}
.mc-row-where-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.mc-row-addr{display:block;white-space:normal}
/* The rating is a fact the patient compares, so it is ink and bold with a gold star; the
   review count beside it is the quiet half. --tier-gold is a NON-TEXT colour here (the star). */
.mc-row-rate{display:inline-flex;align-items:center;gap:.25rem;font-size:.9rem;color:var(--ink);font-weight:700;white-space:nowrap}
.mc-row-rate svg{width:15px;height:15px;color:var(--tier-gold)}
.mc-row-rate small{font-size:.78rem;font-weight:600;color:var(--muted)}
/* "No reviews yet": quiet text, not a tag. As a boxed "جديد" it was identical grey noise on every
   row and read as a verdict on the doctor ("newly qualified"). It sits on the line under the fee
   (see .mc-row-fee), never trailing a sentence, so a muted word cannot read as a typo here. */
.mc-row-new{font-size:.78rem;font-weight:600;line-height:1.6;color:var(--muted)}

/* --- The row's foot: fee, open state, action --------------------------------------------
   On a phone it spans the row under a hairline; the action is pushed to the inline end by
   `margin-inline-start:auto`, which is direction-aware (left in Arabic, right in English). */
.mc-row-foot{grid-column:1/-1;display:flex;align-items:center;gap:.5rem .75rem;
	padding-top:12px;border-top:1px solid var(--line-2);min-width:0}
/* The facts wrap among themselves (fee, rating, status) and never push the action off its line. */
.mc-row-facts{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .6rem}
/* The fee is the one number in the line the patient is actually comparing, so it is ink and
   the largest figure on the row — and its digits are wrapped in .medc-ltr in the markup so they
   do not reorder inside the Arabic sentence around them. */
/* The fee takes the facts' first line by itself and the rating / status share the second. Left to
   wrap, the 360px foot (fee + tag + a 120px CTA) dropped the tag alone under the fee on some
   widths and not others; a fixed two-line pair is the same shape on every row and phone, and is
   no taller than the 44px CTA beside it. */
.mc-row-fee{flex-basis:100%;display:flex;align-items:baseline;gap:.3rem;margin:0;font-size:.85rem;color:var(--body);white-space:nowrap}
.mc-row-fee small{font-size:.78rem;font-weight:600;color:var(--muted)}
.mc-row-fee b{font-size:1.08rem;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
/* A live dot on "open now": the one state on the row that can change while the patient reads. */
.mc-row-open::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.mc-row-act{display:flex;flex:none;margin-inline-start:auto}
/* Tinted, not solid. The row itself is the link (see the ::after above), so this is the visible
   affordance, not the only target — twelve solid red slabs down a phone screen outweighed the
   names they belonged to. It fills to the solid brand on row hover/focus, so the intent is
   still unmistakable at the moment of choice. --brand-700 on --brand-50: 9.48:1 light, 5.22:1
   dark. */
.mc-row-cta{min-height:44px;padding-inline:1rem .8rem;gap:.35rem;background:var(--brand-50);color:var(--brand-700);
	border-color:var(--brand-100);transition:background-color .15s,color .15s,border-color .15s}
.mc-row-cta:hover,.mc-row:hover .mc-row-cta,.mc-row:focus-within .mc-row-cta{background:var(--brand);border-color:var(--brand);color:#fff}
:root[data-theme="dark"] .mc-row-cta:hover,:root[data-theme="dark"] .mc-row:hover .mc-row-cta,
:root[data-theme="dark"] .mc-row:focus-within .mc-row-cta{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){
	:root:not([data-theme="light"]) .mc-row-cta:hover,:root:not([data-theme="light"]) .mc-row:hover .mc-row-cta,
	:root:not([data-theme="light"]) .mc-row:focus-within .mc-row-cta{color:var(--gold-ink)}
	:root:not([data-theme="light"]) .mc-row-cta{border-color:var(--line)}
}
:root[data-theme="dark"] .mc-row-cta{border-color:var(--line)}
/* The arrow points to the inline-end edge (left in Arabic); LTR mirrors it, and the hover nudge
   travels along the same mirrored axis so it always moves FORWARD. */
.mc-row-cta .mc-row-cta-arrow{width:16px;height:16px;transition:transform .18s}
.mc-row:hover .mc-row-cta-arrow{transform:translateX(-3px)}
[dir="ltr"] .mc-row-cta-arrow{transform:scaleX(-1)}
[dir="ltr"] .mc-row:hover .mc-row-cta-arrow{transform:scaleX(-1) translateX(-3px)}
@media (prefers-reduced-motion:reduce){
	.mc-row,.mc-row-cta,.mc-row-cta-arrow{transition:none}
	.mc-row:hover .mc-row-cta-arrow{transform:none}
	[dir="ltr"] .mc-row-cta-arrow,[dir="ltr"] .mc-row:hover .mc-row-cta-arrow{transform:scaleX(-1)}
}
/* 320px: the fee, a status badge and the CTA cannot share one line; the CTA takes its own
   full-width line rather than squeezing the fee into an ellipsis. */
@media (max-width:359px){
	.mc-row{padding:12px;gap:10px 12px;grid-template-columns:56px minmax(0,1fr)}
	.mc-row-ava{width:56px;height:56px}
	.mc-row-foot{flex-wrap:wrap}
	.mc-row-act{flex:1 1 100%}
	.mc-row-cta{flex:1;justify-content:center}
}
@media (min-width:760px){
	/* The third track is a FIXED width, not `auto`: every row is its own grid, so an auto track
	   sized to each row's own fee made the price column and its hairline jog left and right down
	   the roster — the one column built to be scanned straight down. */
	.mc-row{grid-template-columns:72px minmax(0,1fr) 200px;align-items:center;column-gap:18px;padding:16px 18px;
		contain-intrinsic-size:auto 120px}
	.mc-row-ava{width:72px;height:72px}
	.mc-row-ava.doc-ava-ph{font-size:1.75rem}
	/* The foot becomes the row's third column: fee on top, status, then the action — a
	   price column down the whole roster. Separated by a vertical hairline, not a box. */
	.mc-row-foot{grid-column:auto;flex-direction:column;flex-wrap:nowrap;align-items:flex-end;justify-content:center;
		align-self:stretch;gap:.45rem;min-width:150px;padding-top:0;border-top:0;
		padding-inline-start:18px;border-inline-start:1px solid var(--line-2)}
	/* The same fee-over-facts pair as on a phone, pinned to the column's inline end so the fees
	   line up down the roster. */
	.mc-row-facts{flex:none;max-width:100%;justify-content:flex-end;gap:.15rem .6rem}
	.mc-row-fee{justify-content:flex-end}
	.mc-row-act{margin-inline-start:0}
}
/* An empty roster is still a page. Reuses .empty-state's chrome one level up. */
.mc-roster-empty{padding:clamp(18px,4vw,28px);background:var(--card);border:1px solid var(--line);
	border-radius:var(--radius);text-align:center;color:var(--muted)}

/* ============================================================================
   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 `.mdc-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{--mdc-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"] .mdc-hs input[dir="auto"]:placeholder-shown,[dir="rtl"] .mdc-pk-q:placeholder-shown,
[dir="rtl"] .mdc-ai textarea:placeholder-shown{direction:rtl;text-align:right}
[dir="ltr"] .mdc-hs input[dir="auto"]:placeholder-shown,[dir="ltr"] .mdc-pk-q:placeholder-shown,
[dir="ltr"] .mdc-ai textarea:placeholder-shown{direction:ltr;text-align:left}
.mdc-hs-l{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0;font-size:.84rem}
.mdc-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}
.mdc-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. */
.mdc-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}
.mdc-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}
.mdc-hs-err[hidden]{display:none}
.mdc-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. */
.mdc-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". */
.mdc-hs-sep{display:flex;align-items:center;gap:10px;margin:2px 0 0;font-size:.84rem;font-weight:700;color:var(--ink)}
.mdc-hs-sep-t{display:inline-flex;align-items:center}
.mdc-hs-sep::after{content:"";order:1;flex:1;min-width:16px;border-top:1px dashed var(--field-line)}
.mdc-hs-sep .mdc-hs-opt{order:2;margin:0}

/* --- the picker's trigger ------------------------------------------------------ */
/* The native select stays in the form, under the button, invisible and untouchable. */
.mdc-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. */
.mdc-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}
.mdc-hs-selwrap--plain .mdc-pk-btn{padding-inline-start:14px}
.mdc-pk-v{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-pk-k{display:block;font-size:.7rem;font-weight:700;color:var(--muted);line-height:1.2}
.mdc-pk-btn.is-ph .mdc-pk-v{color:var(--muted)}
.mdc-pk-btn[aria-invalid="true"] :is(.mdc-pk-v,.mdc-pk-k){color:var(--body)}
.mdc-pk-btn:not(:disabled):hover,.mdc-pk-btn[aria-expanded="true"]{border-color:var(--brand)}
.mdc-pk-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.mdc-pk-btn:disabled{opacity:.85;cursor:not-allowed;background:var(--bg)}
.mdc-pk-btn[aria-invalid="true"],.mdc-pk-btn[aria-invalid="true"]:not(:disabled):hover,.mdc-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)}
.mdc-hs-fld.is-invalid .mdc-hs-selwrap{animation:mdc-nudge .32s ease}
@keyframes mdc-nudge{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* --- the picker: a sheet on a phone, a popover anywhere wider --------------------- */
.mdc-pk{border:0;padding:0;margin:0;background:transparent;color:var(--ink);max-width:none;max-height:none;overflow:visible;text-align:start}
.mdc-pk[open]{display:flex;flex-direction:column}
.mdc-pk::backdrop{background:rgba(10,22,34,.45)}
.mdc-pk.is-pop::backdrop{background:transparent}
.mdc-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}
.mdc-pk.is-pop{position:fixed;inset:auto;animation:mdc-pop .14s ease}
.mdc-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:medc-sheet .26s cubic-bezier(.16,1,.3,1)}
.mdc-pk.is-sheet .mdc-pk-in{border-radius:var(--radius-lg) var(--radius-lg) 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
.mdc-pk-head{position:relative;flex:none;display:flex;align-items:center;gap:8px;padding-block:16px 6px;padding-inline:16px 8px}
.mdc-pk.is-pop .mdc-pk-head{display:none}
.mdc-pk-grab{position:absolute;top:6px;left:50%;width:42px;height:4px;margin-left:-21px;border-radius:4px;background:var(--line)}
.mdc-pk-t{flex:1;min-width:0;margin:0;font-size:1.02rem;line-height:1.4}
.mdc-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}
.mdc-pk-x:hover{background:var(--bg);color:var(--ink)}
.mdc-pk-search{position:relative;flex:none;display:flex;align-items:center;margin:4px 12px 8px}
.mdc-pk.is-pop .mdc-pk-search{margin-top:10px}
.mdc-pk-search[hidden]{display:none}
.mdc-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 `.mdc-hs-inwrap` note above. */
.mdc-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}
.mdc-pk-q::placeholder{color:var(--muted);opacity:1}
.mdc-pk-q:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand);background:var(--card)}
.mdc-pk-q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.mdc-pk-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 10px;-webkit-overflow-scrolling:touch}
.mdc-pk-grp[hidden],.mdc-pk-o[hidden]{display:none}
.mdc-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)}
.mdc-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}
.mdc-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. */
.mdc-pk-o.is-act{background:var(--brand-100);border-inline-start:3px solid var(--brand);padding-inline-start:9px}
.mdc-pk-o.is-cur{font-weight:700;color:var(--brand-700)}
.mdc-pk-o[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.mdc-pk-ot{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-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}
.mdc-pk-ck{flex:none;display:grid;color:var(--brand);visibility:hidden}
.mdc-pk-o.is-cur .mdc-pk-ck{visibility:visible}
.mdc-pk-empty{margin:0;padding:22px 16px;text-align:center;color:var(--muted);font-size:.9rem}
.mdc-pk-empty[hidden]{display:none}
.mdc-pk-foot{flex:none;padding:8px 12px 10px;border-top:1px solid var(--line)}
.mdc-pk-foot[hidden]{display:none}
.mdc-pk-ai,.mdc-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}
.mdc-pk-ai:hover,.mdc-vd-ai:hover{background:var(--brand-100)}
.mdc-pk-ai svg{flex:none;color:var(--brand)}
.mdc-pk-ai:focus-visible,.mdc-vd-ai:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

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

/* --- "not sure which specialty?" ---------------------------------------------------- */
.mdc-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}
.mdc-hs-ai[hidden]{display:none}
.mdc-hs-ai:hover{border-color:var(--brand);box-shadow:0 8px 22px var(--cta-glow)}
.mdc-hs-ai:active{transform:translateY(1px)}
.mdc-hs-ai:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mdc-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)}
.mdc-hs-ai-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.45}
.mdc-hs-ai-t b{font-size:.95rem;color:var(--ink)}
.mdc-hs-ai-t span{font-size:.8rem;color:var(--body)}
.mdc-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)}
.mdc-hs-ai--page{margin-top:10px;min-height:54px}

/* --- the validation popup ------------------------------------------------------------ */
.mdc-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}
.mdc-vd::backdrop{background:rgba(10,22,34,.5)}
.mdc-vd[open]{animation:mdc-pop .16s ease}
.mdc-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}
.mdc-vd-ic{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--warn-bg);color:var(--warn)}
.mdc-vd-t{margin:0;font-size:1.12rem;line-height:1.4}
.mdc-vd-d{margin:0;color:var(--body);font-size:.93rem;line-height:1.7;align-self:stretch;text-align:start}
.mdc-vd-list{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:4px}
.mdc-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}
.mdc-vd-fix:hover{border-color:var(--err-ink)}
.mdc-vd-fix .mdc-hs-num{background:var(--danger-ink);color:var(--danger-bg);margin:0}
.mdc-vd-fix-t{flex:1}
.mdc-vd-alt{margin:2px 0 0;font-size:.84rem;color:var(--muted);line-height:1.6;align-self:stretch;text-align:start}
.mdc-vd-alt[hidden]{display:none}
.mdc-vd-alt a{color:var(--brand-700);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.mdc-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}
.mdc-vd-ok:focus-visible,.mdc-vd-fix:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:719px){
	.mdc-vd{inset:auto 0 0 0;margin:0;width:100%;max-height:88dvh}
	.mdc-vd[open]{animation:medc-sheet .26s cubic-bezier(.16,1,.3,1)}
	.mdc-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. */
.mdc-vd.is-fallback,.mdc-ai.is-fallback{position:fixed;z-index:1000;box-shadow:0 0 0 100vmax rgba(10,22,34,.55)}

/* --- the symptom wizard -------------------------------------------------------------- */
.mdc-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}
.mdc-ai[open]{display:flex;animation:mdc-pop .18s ease}
.mdc-ai::backdrop{background:rgba(10,22,34,.55)}
.mdc-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}
.mdc-ai-head{flex:none;display:flex;align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;border-bottom:1px solid var(--line)}
.mdc-ai-prog{flex:none;display:flex;align-items:center;gap:4px}
.mdc-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}
.mdc-ai-dot.is-on{background:var(--ink);border-color:var(--ink);color:var(--card)}
.mdc-ai-dot.is-done{background:var(--ok-bg);border-color:var(--ok);color:var(--ok-ink)}
.mdc-ai-line{width:16px;height:2px;border-radius:2px;background:var(--line)}
.mdc-ai-titles{flex:1;min-width:0}
.mdc-ai-stepl{margin:0;font-size:.74rem;font-weight:700;color:var(--muted)}
.mdc-ai-t{margin:0;font-size:1.12rem;line-height:1.35;outline:0}
.mdc-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}
.mdc-ai-x:hover{background:var(--bg);color:var(--ink)}
.mdc-ai-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;-webkit-overflow-scrolling:touch}
.mdc-ai-pane{display:flex;flex-direction:column;gap:14px}
.mdc-ai-pane[hidden]{display:none}
.mdc-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}
.mdc-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. */
.mdc-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}
.mdc-ai-voice[hidden]{display:none}
.mdc-ai-voice.is-rec{border-color:#c0392b}
.mdc-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}
.mdc-ai-mic:hover{transform:scale(1.04)}
.mdc-ai-mic:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.mdc-ai-mic-off{display:none}
.mdc-ai-mic.is-busy{opacity:.8}
.mdc-ai-mic.is-rec{background:#c0392b;color:#fff;box-shadow:0 10px 26px rgba(192,57,43,.35)}
.mdc-ai-mic.is-rec .mdc-ai-mic-on{display:none}
.mdc-ai-mic.is-rec .mdc-ai-mic-off{display:block}
.mdc-ai-mic-ring{position:absolute;inset:-7px;border-radius:50%;border:3px solid rgba(192,57,43,.5);opacity:0;pointer-events:none}
.mdc-ai-mic.is-rec .mdc-ai-mic-ring{animation:mdc-ring 1.3s ease-out infinite}
@keyframes mdc-ring{0%{transform:scale(.92);opacity:.95}100%{transform:scale(1.32);opacity:0}}
.mdc-ai-vtxt{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.mdc-ai-vs{margin:0;font-size:.95rem;font-weight:700;line-height:1.55;color:var(--ink)}
.mdc-ai-vs.is-err{color:var(--err-ink)}
.mdc-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)}
.mdc-ai-vlang input{position:absolute;opacity:0;width:1px;height:1px}
.mdc-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}
.mdc-ai-vlang input:checked+label{background:var(--ink);color:var(--card)}
.mdc-ai-vlang input:focus-visible+label{outline:2px solid var(--brand);outline-offset:-3px}
@media (max-width:479px){.mdc-ai-voice{flex-direction:column;text-align:center}.mdc-ai-vlang{align-self:center}}
.mdc-ai-l{font-size:.86rem;font-weight:700;color:var(--ink)}
.mdc-ai-ta{position:relative}
.mdc-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}
.mdc-ai-ta textarea::placeholder{color:var(--muted);opacity:1}
.mdc-ai-ta textarea:hover{border-color:var(--brand)}
.mdc-ai-ta textarea:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.mdc-ai-ta textarea[aria-invalid="true"],.mdc-ai-ta textarea[aria-invalid="true"]:hover{border-color:var(--err-ink);box-shadow:0 0 0 1px var(--err-ink)}
.mdc-ai-cnt{position:absolute;bottom:8px;inset-inline-end:12px;font-size:.72rem;color:var(--muted);pointer-events:none;font-variant-numeric:tabular-nums}
.mdc-ai-cnt.is-near{color:var(--warn);font-weight:700}
.mdc-ai-err{margin:0;color:var(--err-ink);font-size:.86rem;font-weight:700;line-height:1.55}
.mdc-ai-err:empty{display:none}
.mdc-ai-novoice{margin:0;font-size:.82rem;line-height:1.6;color:var(--muted)}
.mdc-ai-novoice[hidden]{display:none}
.mdc-ai-ex{display:flex;flex-wrap:wrap;gap:8px}
.mdc-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}
.mdc-ai-chip:hover{border-color:var(--brand);color:var(--brand-700)}
.mdc-ai-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mdc-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:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);font:inherit;font-size:1rem;font-weight:700;cursor:pointer}
.mdc-ai-go:hover{filter:brightness(1.14)}
.mdc-ai-go:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mdc-ai-go[disabled]{opacity:.7;cursor:progress}
.mdc-ai-go.is-busy svg{animation:medc-spin 1.1s linear infinite}
.mdc-ai-out{display:flex;flex-direction:column;gap:10px}
.mdc-ai-out:empty{display:none}
.mdc-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}
.mdc-ai-alert--emg{background:var(--danger-bg);color:var(--danger-ink);border:1px solid var(--danger-line)}
.mdc-ai-alert--emg a{color:var(--danger-ink);font-weight:700;text-decoration:underline}
.mdc-ai-alert--warn{background:var(--warn-bg);color:var(--ink);border:1px solid var(--field-line)}
.mdc-ai-alert--info{background:var(--brand-50);color:var(--ink);border:1px solid var(--brand-100)}
.mdc-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}
.mdc-ai-retry:hover{border-color:var(--brand)}
.mdc-ai-load{display:flex;flex-direction:column;gap:8px}
.mdc-ai-load p{margin:0;font-size:.88rem;font-weight:700;color:var(--body)}
.mdc-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:medc-shimmer 1.2s linear infinite}
.mdc-ai-rh{margin:4px 0 0;font-size:1rem;outline:0}
.mdc-ai-rsub{margin:-4px 0 0;font-size:.8rem;color:var(--muted)}
.mdc-ai-opts{display:flex;flex-direction:column;gap:12px;padding-top:6px}
.mdc-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}
.mdc-ai-opt:hover{border-color:var(--brand)}
.mdc-ai-opt:has(input:checked){border-color:var(--gold);background:var(--brand-50);box-shadow:0 0 0 1px var(--gold)}
.mdc-ai-opt input{flex:none;width:20px;height:20px;margin:3px 0 0;accent-color:var(--gold)}
.mdc-ai-opt input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mdc-ai-opt-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mdc-ai-opt-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.mdc-ai-opt-n{min-width:0;font-size:1rem;font-weight:700;color:var(--ink)}
.mdc-ai-pct{flex:none;font-size:1rem;font-weight:700;color:var(--brand-700);font-variant-numeric:tabular-nums;unicode-bidi:isolate}
.mdc-ai-bar{display:block;height:8px;border-radius:999px;background:var(--bg);border:1px solid var(--line);overflow:hidden}
.mdc-ai-bar i{display:block;height:100%;border-radius:inherit;background:var(--gold)}
.mdc-ai-why{font-size:.8rem;line-height:1.55;color:var(--muted)}
.mdc-ai-why bdi{color:var(--body);font-weight:600}
.mdc-ai-cn{font-size:.76rem;color:var(--muted)}
.mdc-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}
.mdc-ai-manual{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px dashed var(--field-line)}
.mdc-ai-ml{margin:0;font-size:.86rem;font-weight:700;color:var(--ink)}
.mdc-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}
.mdc-ai-chosen-l{color:var(--muted);font-weight:600}
.mdc-ai-chosen b{color:var(--ink)}
.mdc-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}
.mdc-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)}
.mdc-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}
.mdc-ai-back:hover{border-color:var(--brand)}
.mdc-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:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);font:inherit;font-size:1.02rem;font-weight:700;cursor:pointer}
.mdc-ai-next:hover{filter:brightness(1.14)}
.mdc-ai-back:focus-visible,.mdc-ai-next:focus-visible,.mdc-ai-x:focus-visible,.mdc-ai-link:focus-visible,.mdc-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"] .mdc-hs-arrow{transform:scaleX(-1)}
@media (max-width:719px){
	.mdc-ai{inset:0;margin:0;width:100%;height:100%;height:100dvh}
	.mdc-ai[open]{animation:medc-sheet .28s cubic-bezier(.16,1,.3,1)}
	.mdc-ai-in{border-radius:0}
	.mdc-ai-head{padding-top:calc(10px + env(safe-area-inset-top))}
	.mdc-ai-body{padding:14px}
}

/* --- the results bar: a summary + sheet under 1024px, one row above it -------------------- */
.mdc-sb .search-bar-in{gap:8px}
.mdc-hs--bar{display:block;flex:1;min-width:0;margin:0}
.mdc-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}
.mdc-sb-sum:hover{border-color:var(--brand)}
.mdc-sb-sum:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mdc-sb-sum-ic{flex:none;display:grid;color:var(--muted)}
.mdc-sb-sum-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.mdc-sb-sum-t b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-sb-sum-t span{font-size:.78rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdc-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:linear-gradient(180deg,var(--cta-2),var(--cta));color:var(--cta-ink);font-size:.86rem;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px var(--cta-glow)}
@media (max-width:359px){
	.mdc-sb-sum-cta span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.mdc-sb-sum-cta{padding:0 11px}
}
.mdc-cs{border:0;padding:0;background:transparent;max-width:none;max-height:none;color:var(--ink);text-align:start}
.mdc-cs:not([open]){display:none}
.mdc-cs::backdrop{background:rgba(15,27,38,.5)}
.mdc-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:medc-sheet .26s cubic-bezier(.16,1,.3,1)}
.mdc-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)}
.mdc-cs-t{flex:1;min-width:0;margin:0;font-size:1.08rem;outline:0}
.mdc-cs-x{flex:none;min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:var(--radius-sm);color:var(--muted)}
.mdc-cs-x:hover{background:var(--bg);color:var(--ink)}
.mdc-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}
.mdc-cs-what{display:flex;flex-direction:column;gap:10px}
.mdc-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)}
.mdc-cs-foot .mdc-hs-go{width:100%;min-height:52px}
.mdc-cs .mdc-pk-k{display:none}
@media (min-width:720px) and (max-width:1023px){
	.mdc-cs[open]{inset:0;margin:auto;width:min(560px,calc(100% - 48px));height:fit-content;max-height:86dvh;border-radius:var(--radius-lg);animation:mdc-pop .16s ease}
}
/* Without JavaScript the summary is a link to #hs-cs, and :target opens the same sheet. */
@media (max-width:1023px){
	.mdc-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)}
	.mdc-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(.mdc-cs:target){z-index:95}
}
@supports not selector(:has(*)){
	@media (max-width:899px){.mdc-cs:target .mdc-cs-foot{padding-bottom:calc(78px + env(safe-area-inset-bottom))}}
}
@media (min-width:720px) and (max-width:1023px){
	.mdc-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){
	.mdc-sb .search-bar-in{max-width:var(--wrap)}
	.mdc-sb-sum{display:none}
	.mdc-cs,.mdc-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}
	.mdc-cs::backdrop{background:transparent}
	.mdc-cs-head{display:none}
	.mdc-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}
	.mdc-cs-what{display:contents}
	.mdc-cs .mdc-hs-l,.mdc-cs .mdc-hs-gender>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	.mdc-cs .mdc-hs-err,.mdc-cs .mdc-hs-sep,.mdc-cs .mdc-hs-ai,.mdc-cs .mdc-hs-fld--q{display:none!important}
	.mdc-cs .mdc-hs-fld{gap:0}
	.mdc-cs .mdc-pk-k{display:block}
	.mdc-cs .mdc-pk-btn{min-height:56px;padding-block:6px}
	.mdc-cs .mdc-hs-seg label{min-height:56px;padding-inline:14px}
	.mdc-cs-foot{flex:none;padding:0;border:0;background:transparent}
	.mdc-cs-foot .mdc-hs-go{min-height:56px;height:100%;padding-inline:26px}
}

@media (prefers-reduced-motion:reduce){
	.mdc-pk.is-pop,.mdc-pk.is-sheet,.mdc-vd[open],.mdc-ai[open],.mdc-cs[open]{animation:none}
	.mdc-hs-fld.is-invalid .mdc-hs-selwrap,.mdc-ai-sk,.mdc-ai-go.is-busy svg{animation:none}
	.mdc-ai-mic.is-rec .mdc-ai-mic-ring{animation:none;opacity:1;transform:none}
	.mdc-ai-mic:hover,.mdc-hs-ai:active{transform:none}
	.mdc-hs-ai{transition:none}
}
@media (forced-colors:active){
	.mdc-pk-o.is-act,.mdc-ai-opt:has(input:checked){outline:2px solid Highlight;outline-offset:-2px}
	.mdc-pk-btn[aria-invalid="true"],.mdc-ai-mic.is-rec{outline:2px solid Highlight;outline-offset:2px}
	.mdc-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. */
.mdc-hs--hero .mdc-hs-list,.mdc-cs .mdc-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. */
.mdc-sb .sb-filters{min-height:56px}
@media (max-width:559px){
	.mdc-sb .sb-filters{position:relative;min-width:52px;padding-inline:0;justify-content:center}
	.mdc-sb .sb-filters .sb-count{position:absolute;top:5px;inset-inline-end:5px}
}
@media (max-width:479px){
	.mdc-sb-sum-ic{display:none}
	.mdc-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){
	.mdc-cs .mdc-hs-ico{display:none}
	.mdc-cs .mdc-pk-btn{padding-inline-start:14px}
}
/* An overflowing placeholder ends in an ellipsis instead of being cut mid-word. */
.mdc-hs input[type=search]{text-overflow:ellipsis}
.mdc-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}
}

/* --- polish pass: home, hero console, picker, wizard, /search/ ------------------------------ */
/* Last in the file on purpose, so these refinements win on source order with no !important and
   no specificity race against the component rules above. Every colour is a token. */

/* Hero copy on a phone: ONE edge. The H1 and eyebrow used to centre while the lead, the console
   and the rail below them started at the start edge — three alignments in one screen. Below 640px
   everything reads from the start edge; from 640px up the headline block centres over the
   console as before. */
@media (max-width:639px){
	.hero{padding-top:18px;padding-bottom:22px}
	.hero-content{text-align:start}
	.hero .eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;margin-bottom:.45rem}
	.hero .eyebrow::before{content:"";flex:none;width:18px;height:2px;border-radius:2px;background:currentColor}
	.hero h1{font-size:clamp(1.6rem,7.6vw,1.95rem);line-height:1.3}
	.hero .lead{font-size:.95rem;line-height:1.75;margin-top:.55rem;color:var(--body)}
	.mdc-hs--hero{padding:14px;gap:14px;margin-top:1rem;border-radius:calc(var(--radius-ctl) + 12px)}
}

/* The rail under the console bleeds to the screen edges below 900px: clipped at the .wrap
   gutter, its last chip was cut mid-word 20px short of the edge with a blank strip beside it,
   which reads as a rendering fault rather than as "scroll for more". scroll-padding keeps a
   snapped chip off the very edge, and the rail's own fade mask still marks the forward end. */
@media (max-width:899px){
	.hero-rail,.mc-feat-rail{margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}
}
.hero-rail .qchip{box-shadow:var(--shadow-sm)}

/* "Not sure which specialty?" — tightened so its title fits on one line at 390px instead of
   wrapping into a 190px column beside two round icons. */
.mdc-hs-ai{gap:12px;padding:12px;border-color:var(--brand-100)}
.mdc-hs-ai:hover{border-color:var(--brand)}
.mdc-hs-ai-ic{width:40px;height:40px;border-radius:var(--radius-sm)}
.mdc-hs-ai-t b{font-size:.93rem;line-height:1.4}
.mdc-hs-ai-t span{font-size:.79rem;line-height:1.55}
.mdc-hs-ai-go{width:34px;height:34px;border-radius:var(--radius-sm)}
@media (max-width:399px){
	.mdc-hs-ai{gap:10px;padding:10px}
	.mdc-hs-ai-ic{width:36px;height:36px}
	.mdc-hs-ai-go{width:30px;height:30px}
}

/* Squared geometry, as the brand asks: small badges and toggles get the chip radius instead of
   a full pill, so they sit in the same family as the console's fields and segmented control. */
.mdc-hs-opt--red{border-radius:var(--radius-chip)}
.mdc-pk-on{border-radius:var(--radius-xs)}
.mdc-ai-chip,.mdc-ai-retry{border-radius:var(--radius-chip)}
.mdc-ai-vlang{border-radius:var(--radius-ctl)}
.mdc-ai-bar{border-radius:var(--radius-xs)}

/* Counts as quiet badges. A bare "1" floating at the far end of a 170px cell read as a stray
   digit; on a tinted plate it reads as a count. Shared by the home grid/list and /search/. */
.mc-district-n,.mc-spec-n{display:inline-block;min-width:24px;padding:1px 7px;border-radius:var(--radius-xs);
	background:var(--bg);color:var(--muted);font-size:.76rem;line-height:1.6;text-align:center}
.mc-district:hover .mc-district-n,.mc-spec-a:hover .mc-spec-n{background:var(--brand-100);color:var(--brand-700)}
.mc-district{box-shadow:var(--shadow-sm)}
.mc-district--all{box-shadow:none;gap:6px}
.mc-district:focus-visible,.mc-spec-a:focus-visible,.medc-combos a:focus-visible,.medc-trust-card:focus-visible{
	outline:2px solid var(--brand);outline-offset:2px}

/* Combos: a cell on the card colour (it was --bg on a --bg section, i.e. only an outline), with a
   chevron at the end so a row of plain text reads as a destination. The chevron is the shared
   down-chevron mask turned to point "forward": left in Arabic, right in English. */
.medc-combos a{justify-content:space-between;gap:10px;background:var(--card);line-height:1.5}
.medc-combos a::after{content:"";flex:none;width:12px;height:12px;background-color:currentColor;opacity:.45;
	-webkit-mask:var(--mdc-chev) center/12px 12px no-repeat;mask:var(--mdc-chev) center/12px 12px no-repeat;transform:rotate(90deg)}
[dir="ltr"] .medc-combos a::after{transform:rotate(-90deg)}
.medc-combos a:hover{border-color:var(--brand);color:var(--brand-700)}
.medc-combos a:hover::after{opacity:1}

/* How it works, below 760px: one card holding three steps joined by a dashed rail, the numeral
   beside its text rather than above it. Three stacked cards with the number on its own line cost
   ~560px of phone; this is the same content in ~330px, and the rail says "sequence" without words. */
@media (max-width:759px){
	.mc-steps{gap:0;padding-block:4px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius)}
	.mc-step{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;
		padding:14px 16px;border:0;border-radius:0;background:transparent}
	.mc-step-n{grid-row:1 / span 2}
	.mc-step h3{margin:.25rem 0 .2rem}
	.mc-step:not(:last-child)::before{content:"";position:absolute;inset-inline-start:32px;top:54px;bottom:-6px;
		border-inline-start:2px dashed var(--brand-100)}
}

/* The policy cards: an icon plate so four cards of similar prose are distinguishable at a glance,
   and a forward chevron in the corner — on a phone, where nothing hovers, that is the only sign
   the whole card is a link. Icon beside the text while the cards are wide; above it in the
   4-up row, where a side column would squeeze the prose into three words a line. */
.medc-trust-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:start;
	padding:18px;padding-inline-end:40px;background:var(--card);box-shadow:var(--shadow-sm)}
.medc-trust-card:hover{border-color:var(--brand)}
.medc-trust-ic{grid-row:1 / span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-sm);
	background:var(--brand-50);color:var(--brand)}
.medc-trust-ic svg{width:20px;height:20px}
.medc-trust-card h3{margin:.15rem 0 .3rem}
.medc-trust-card::after{content:"";position:absolute;top:22px;inset-inline-end:16px;width:12px;height:12px;background-color:var(--muted);
	-webkit-mask:var(--mdc-chev) center/12px 12px no-repeat;mask:var(--mdc-chev) center/12px 12px no-repeat;transform:rotate(90deg)}
[dir="ltr"] .medc-trust-card::after{transform:rotate(-90deg)}
.medc-trust-card:hover::after{background-color:var(--brand)}
@media (min-width:1100px){
	.medc-trust-card{grid-template-columns:minmax(0,1fr);row-gap:12px}
	.medc-trust-ic{grid-row:auto}
}
/* The trust strip's icons on a plate, matching the cards above. */
.medc-ts svg{width:30px;height:30px;padding:6px;border-radius:var(--radius-sm);background:var(--brand-50);color:var(--brand)}
.medc-ts li{gap:10px;line-height:1.5}

/* FAQ: one bordered list, a drawn chevron, a 56px question row. */
.mc-faq-wrap{max-width:820px}
.mc-faq{margin-top:1.1rem;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.mc-faq-i + .mc-faq-i{border-top:1px solid var(--line)}
.mc-faq-q{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px;padding:12px 16px;
	list-style:none;cursor:pointer;font-weight:700;color:var(--ink);line-height:1.55;transition:color .15s ease,background-color .15s ease}
.mc-faq-q::-webkit-details-marker{display:none}
.mc-faq-q::marker{content:""}
.mc-faq-q::after{content:"";flex:none;width:13px;height:13px;background-color:var(--muted);transition:transform .2s ease;
	-webkit-mask:var(--mdc-chev) center/13px 13px no-repeat;mask:var(--mdc-chev) center/13px 13px no-repeat}
.mc-faq-q:hover{color:var(--brand-700);background:var(--brand-50)}
.mc-faq-q:hover::after{background-color:var(--brand)}
.mc-faq-q:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.mc-faq-i[open] > .mc-faq-q{color:var(--brand-700)}
.mc-faq-i[open] > .mc-faq-q::after{transform:rotate(180deg);background-color:var(--brand)}
.mc-faq-a{margin:0;padding:0 16px 16px;color:var(--body);line-height:1.85;max-width:68ch}

/* /search/ on a phone. The advanced fieldset was a bordered box inside the bordered panel — 34px
   of the 350px panel spent on two frames — with ten selects stacked one per row, ~900px of form
   before the submit button. Below 560px it becomes a titled divider and a two-up grid (the
   specialty, which has an icon and long values, keeps the full row), which halves that height. */
@media (max-width:559px){
	.mdc-hs--page .mdc-hs-adv,.search-panel .mdc-hs--page .mdc-hs-adv{border:0;border-top:1px solid var(--field-line);border-radius:0;
		padding:12px 0 0;background:transparent}
	.mdc-hs--page .mdc-hs-adv-l{padding-inline:0 10px;font-size:.92rem}
	.mdc-hs--page .mdc-hs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
	.mdc-hs--page .mdc-hs-grid > .mdc-hs-fld:first-child{grid-column:1 / -1}
	.mdc-hs--page .mdc-hs-grid .mdc-hs-l{font-size:.8rem}
}
/* The three flags as toggle chips: a 44px bordered target instead of a 20px box beside a word,
   with the checked state shown by the chip itself as well as by the tick. */
.mdc-hs-checks{gap:8px}
.mdc-hs-check{padding-inline:12px 14px;border:1px solid var(--field-line);border-radius:var(--radius-ctl);background:var(--card);
	transition:border-color .15s ease,background-color .15s ease}
.mdc-hs-check:hover{border-color:var(--brand)}
.mdc-hs-check:has(input:checked){border-color:var(--brand);background:var(--brand-50)}
.mdc-hs-check:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.search-panel{box-shadow:var(--shadow)}
.search-panel .mdc-hs-hint{margin-top:2px}

/* Featured rail: a little wider per card on a phone, so a two-word name and its specialty do
   not each break onto a second line inside a 287px card. The next card still peeks. */
@media (max-width:899px){.mc-feat-rail{grid-auto-columns:minmax(270px,86%)}}

/* Article teasers. One reviewed article in a 3-up grid left two empty thirds of a desktop row;
   a lone teaser spans the row as a horizontal card instead. */
.medc-post{transition:border-color .15s ease,box-shadow .15s ease}
.medc-post:hover{border-color:var(--brand-100);box-shadow:var(--shadow)}
.medc-post:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (min-width:760px){
	/* The image spans both rows; without it the byline wrapped into the second row of the IMAGE
	   column and sat under the picture, a whole column away from its headline. */
	/* The image column is capped near the 300px `medium` source, which a half-row stretched to
	   530px and blurred. */
	.medc-post:only-child{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);grid-template-rows:1fr 1fr}
	.medc-post:only-child img{grid-row:1 / span 2;height:100%;min-height:200px;max-height:260px}
	.medc-post:only-child h3{grid-column:2;align-self:end;font-size:1.2rem;margin:20px 24px 8px;text-wrap:balance}
	.medc-post:only-child .medc-post-rev{grid-column:2;align-self:start;margin:0 24px 20px}
}

@media (prefers-reduced-motion:reduce){
	.mc-faq-q,.mc-faq-q::after,.mdc-hs-check{transition:none}
}

/* 320-359px: the "not sure?" helper had three columns to share 250px and its title broke after
   two words. The trailing mic is decorative (aria-hidden — the whole helper is the button), so
   it goes, and the text gets its width back. */
@media (max-width:359px){
	.mdc-hs-ai-go{display:none}
}
/* The symptom box's character count sat on the resize grip, which both engines draw in the
   inline-end bottom corner in either direction. */
.mdc-ai-cnt{inset-inline-end:24px}

/* --- review pass ------------------------------------------------------------------------ */

/* Helper title and blurb: balance the two-line title instead of leaving "تخصص؟" / "need?"
   alone on line two, and keep the blurb from ending on a one-word line. */
.mdc-hs-ai-t b{text-wrap:balance}
.mdc-hs-ai-t span{text-wrap:pretty}

/* /search/: the query field has its own dictation mic, and the helper's decorative mic sat 40px
   under it — two identical glyphs doing different things. The helper is one button, so its
   glyph is decoration; on this page it goes. The hero has no field mic and keeps it. */
.mdc-hs--page .mdc-hs-ai-go{display:none}
.mdc-hs-ai--page{margin-top:0}
/* Desktop: the helper is a grid item of the bar now (see parts-search-form.php), spanning the
   row under the query AND the governorate instead of leaving a blank cell under the latter. */
@media (min-width:860px){
	.mdc-hs--page .mdc-hs-bar > .mdc-hs-ai{grid-column:1 / -1;grid-row:2}
	.mdc-hs--page .mdc-hs-bar > .mdc-hs-fld--gov{grid-row:1}
}

/* Hero step 3 is headed "optional" already; the same mark again on the gender legend was a
   third copy in one block. Visually hidden, not removed, so the legend still says it to a
   screen reader. The doctor's-name pill stays, as the client asked. */
.mdc-hs-sec--more .mdc-hs-gender .mdc-hs-opt,.mdc-cs .mdc-hs-gender .mdc-hs-opt{position:absolute;width:1px;height:1px;
	margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Segmented control focus. The old ring was inset in --brand, ~3:1 on the --ink checked fill
   (~2.3:1 in dark). The group (not clipped by its own overflow) gets the outer ring, and the
   focused segment a --brand ring on a --card halo, legible on either fill in either theme. */
.mdc-hs-seg:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.mdc-hs-seg input:focus-visible + label{outline:0;box-shadow:inset 0 0 0 2px var(--card),inset 0 0 0 4px var(--brand)}

/* Picker sheet: a searchable list holds its height. Sized by content, it fell from 86dvh to a
   third of the screen when a filter left one match, dragging the field being typed in ~400px
   down under the thumb on each keystroke. Short lists (no search box) still fit their content.
   With nothing matching, the message sits under the field rather than at the sheet's foot. */
.mdc-pk.is-sheet:has(.mdc-pk-search:not([hidden])){height:min(86dvh,calc(var(--pk-vh,100dvh) - 12px))}
.mdc-pk-in:has(.mdc-pk-empty:not([hidden])) .mdc-pk-list{flex:0 0 auto}
.mdc-pk-in:has(.mdc-pk-empty:not([hidden])) .mdc-pk-empty{flex:1 1 auto}

/* Wizard, one primary per state (syncPrimary() in medc-search-form.js). Nothing chosen: Next
   is an outline — still pressable, and with symptoms typed it runs the analysis. Something
   chosen: Next takes the colour and "Suggest a specialty" steps back to an outline. */
.mdc-ai-next.is-wait{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--field-line)}
.mdc-ai-next.is-wait:hover{filter:none;box-shadow:inset 0 0 0 1px var(--brand)}
.mdc-ai.has-pick .mdc-ai-go{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--field-line)}
.mdc-ai.has-pick .mdc-ai-go:hover{filter:none;box-shadow:inset 0 0 0 1px var(--brand)}

/* /search/ phone: the filter fold (#hs-fold), the orphan cell, and the flags. */
.mdc-hs-fold{display:none}
@media (max-width:559px){
	.mdc-hs-fold:not([hidden]){grid-column:1 / -1;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;
		padding:8px 14px;margin:0;border:1px dashed var(--field-line);border-radius:var(--radius-ctl);background:var(--card);
		color:var(--ink);font:inherit;text-align:start;cursor:pointer;transition:border-color .15s ease}
	.mdc-hs-fold:hover{border-color:var(--brand)}
	.mdc-hs-fold:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
	.mdc-hs-fold svg{flex:none;color:var(--brand)}
	.mdc-hs-fold-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;line-height:1.4}
	.mdc-hs-fold-t{font-size:.92rem;font-weight:700}
	.mdc-hs-fold-s{font-size:.78rem;color:var(--muted)}
	.mdc-hs-fold[aria-expanded="true"] .mdc-hs-fold-s{display:none}
	.mdc-hs-fold-n{flex:none;padding:2px 8px;border-radius:var(--radius-xs);background:var(--brand-50);color:var(--brand-700);
		font-size:.76rem;font-weight:700;white-space:nowrap}
	.mdc-hs-fold-n[hidden]{display:none}
	.mdc-hs-fold .mdc-hs-fold-c{color:var(--muted);transition:transform .2s ease}
	.mdc-hs-fold[aria-expanded="true"] .mdc-hs-fold-c{transform:rotate(180deg)}
	.mdc-hs-adv.is-folded .mdc-hs-grid > .mdc-hs-fld:not(:first-child),.mdc-hs-adv.is-folded .mdc-hs-checks{display:none}
	/* The grid is: specialty (full row), the fold toggle (full row), then two-up fields. An odd
	   number of two-up fields — i.e. the last child at an odd index — leaves the last one alone
	   in half a row; it takes the whole row instead. Counted, not keyed to #hs-sort, because the
	   sub-specialty and condition fields are only rendered when they have terms. */
	.mdc-hs--page .mdc-hs-grid > .mdc-hs-fld:last-child:nth-child(odd){grid-column:1 / -1}
	/* Flags fill their rows edge to edge instead of wrapping ragged. */
	.mdc-hs--page .mdc-hs-check{flex:1 1 auto;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
	.mdc-hs-fold,.mdc-hs-fold .mdc-hs-fold-c{transition:none}
}
.empty-near{margin-top:1rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
