/* Generated by scripts/port_css.py from prototypes/assets/ag.css + ag-wp.css. Edit those, then run it. */
/* Dr. Amr Gaafar · review prototypes
   Layout concept: the ultrasound sector. Apex-down fans, depth rulers in cm and a week ruler shape the page;
   porcelain ground with a mauve breath, plum-charcoal night bands, the brand's gold gradient as the only metal.
   One look by choice (brand site): every colour is set explicitly, no dark mode. */
:root {
  color-scheme: light;
  --ag-porcelain: #FBF8F9;   /* ground, rose-tinted white from the portrait backdrop */
  --ag-blush: #F2E8ED;       /* soft surfaces */
  --ag-mist: #E6D9E0;        /* lines on blush */
  --ag-mauve: #9A7A8E;       /* decor only (3.6:1) */
  --ag-mauve-deep: #6E5164;  /* mauve text (6.4:1 on porcelain) */
  --ag-ink: #221D24;         /* plum charcoal, headings */
  --ag-char: #4A4A4C;        /* brand charcoal, body */
  --ag-muted: #6B6570;       /* secondary text (5.4:1) */
  --ag-night: #1B171D;       /* dark bands */
  --ag-night-2: #262028;
  --ag-night-line: rgba(241, 223, 160, .14);
  --ag-on-night: #F4EFEA;
  --ag-on-night-mute: #B9AFB6;
  --ag-gold-deep: #7F622A;   /* gold text on light (5.2:1) */
  --ag-gold: #B8A050;
  --ag-gold-hi: #F1DFA0;
  --ag-gold-grad: linear-gradient(105deg, #8C6E2E 0%, #B89A4C 26%, #EAD597 48%, #C4A75A 64%, #8F7232 100%);
  --ag-line: rgba(34, 29, 36, .1);
  --ag-white: #FFFFFF;
  --ag-ok: #2F7A5A;

  --ag-f-display: "El Messiri", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --ag-f-body: "Readex Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ag-f-hand: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --ag-f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --ag-s-1: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);   /* hero */
  --ag-s-2: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);     /* section */
  --ag-s-3: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);  /* card title */
  --ag-s-body: clamp(1rem, .96rem + .2vw, 1.08rem);
  --ag-s-small: .875rem;

  --ag-r-lg: 28px; --ag-r-md: 18px; --ag-r-sm: 12px;
  --ag-shadow: 0 1px 2px rgba(34, 29, 36, .05), 0 12px 32px -12px rgba(54, 32, 48, .18);
  --ag-shadow-lift: 0 2px 4px rgba(34, 29, 36, .06), 0 28px 60px -20px rgba(54, 32, 48, .32);
  --ag-ease: cubic-bezier(.2, .8, .2, 1);
  --ag-wrap: 1240px;
  --ag-gutter: max(16px, env(safe-area-inset-left, 0px));
  --ag-gutter-e: max(16px, env(safe-area-inset-right, 0px));
  --ag-x: -1; /* writing direction: -1 LTR, 1 RTL */
}
[dir="rtl"] { --ag-x: 1; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ag-porcelain); color: var(--ag-char); font: 400 var(--ag-s-body)/1.85 var(--ag-f-body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ag-f-display); color: var(--ag-ink); line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ag-gold-deep); outline-offset: 3px; border-radius: 6px; }
.ag-night :focus-visible { outline-color: var(--ag-gold-hi); }
.ag-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ag-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; }
.ag-ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-ic--svc { width: 30px; height: 30px; stroke-width: 1.35; color: var(--ag-gold-deep); }
.ag-flip { transform: scaleX(-1); }
.ag-skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ag-ink); color: var(--ag-white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.ag-skip:focus { top: 12px; }
.ag-wrap { width: 100%; max-width: calc(var(--ag-wrap) + 32px); margin-inline: auto; padding-left: var(--ag-gutter); padding-right: var(--ag-gutter-e); }
[dir="ltr"] { unicode-bidi: isolate; }

/* Type helpers ----------------------------------------------------------------------- */
.ag-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem/1 var(--ag-f-body); color: var(--ag-mauve-deep); }
.ag-kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--ag-gold-grad); border-radius: 2px; }
.ag-kicker--gold { color: var(--ag-gold-hi); }
.ag-h2 { font-size: var(--ag-s-2); }
.ag-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ag-muted); max-width: 60ch; }
.ag-night .ag-lead { color: var(--ag-on-night-mute); }
.ag-gold-text { background: var(--ag-gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; padding-block: .08em; }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.ag-note-hand { font-family: var(--ag-f-hand); color: var(--ag-mauve-deep); font-size: 1.35rem; line-height: 1.4; }
.ag-night .ag-note-hand { color: var(--ag-gold-hi); }
.ag-mono { font-family: var(--ag-f-mono); letter-spacing: .02em; }
.ag-muted { color: var(--ag-muted); }
.ag-muted-night { color: var(--ag-on-night-mute); }
.ag-head { display: grid; gap: 14px; margin-block-end: clamp(28px, 4vw, 48px); max-width: 720px; }
.ag-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.ag-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 767px) { .ag-head--split { grid-template-columns: minmax(0, 1fr); } }

/* Buttons ------------------------------------------------------------------------------ */
.ag-btn { --ag-mx: 0px; --ag-my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 500 1rem/1 var(--ag-f-body); text-decoration: none; cursor: pointer; transition: transform .35s var(--ag-ease), box-shadow .35s var(--ag-ease), background-color .3s; transform: translate(var(--ag-mx), var(--ag-my)); white-space: nowrap; }
.ag-btn--sm { min-height: 44px; padding: 0 18px; font-size: .93rem; }
.ag-btn--gold { background: var(--ag-gold-grad); background-size: 180% 100%; color: #2A2112; box-shadow: 0 10px 26px -10px rgba(140, 110, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .45); animation: sheen 9s ease-in-out infinite; }
.ag-btn--gold:hover { box-shadow: 0 16px 34px -12px rgba(140, 110, 46, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ag-btn--ink { background: var(--ag-ink); color: var(--ag-porcelain); }
.ag-btn--line { background: transparent; color: var(--ag-ink); box-shadow: inset 0 0 0 1.5px rgba(34, 29, 36, .2); }
.ag-btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ag-gold-deep); }
.ag-btn--ghost-night { background: rgba(255, 255, 255, .06); color: var(--ag-on-night); box-shadow: inset 0 0 0 1px var(--ag-night-line); }
.ag-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ag-white); color: var(--ag-ink); box-shadow: inset 0 0 0 1px var(--ag-line); text-decoration: none; cursor: pointer; transition: transform .3s var(--ag-ease), color .3s; }
.ag-icon-btn:hover { color: var(--ag-gold-deep); transform: translateY(-2px); }
.ag-icon-btn--night { background: rgba(255, 255, 255, .05); color: var(--ag-on-night); box-shadow: inset 0 0 0 1px var(--ag-night-line); }
.ag-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ag-gold-deep); font-weight: 500; text-decoration: none; }
.ag-link-arrow .ag-ic { transition: transform .35s var(--ag-ease); }
.ag-link-arrow:hover .ag-ic { transform: translateX(calc(-5px * var(--ag-x))); }
.ag-night .ag-link-arrow { color: var(--ag-gold-hi); }

/* Top line + dock header --------------------------------------------------------------- */
.ag-topline { background: var(--ag-night); color: var(--ag-on-night-mute); font-size: .82rem; }
.ag-topline__in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.ag-topline__today { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.ag-topline__today b { color: var(--ag-gold-hi); font-weight: 500; }
.ag-topline__em { display: inline-flex; align-items: center; gap: 8px; color: var(--ag-on-night); text-decoration: none; }
.ag-topline__em b { font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.ag-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #E0796A; box-shadow: 0 0 0 0 rgba(224, 121, 106, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(224, 121, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 121, 106, 0); } }
.ag-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ag-lang > * { padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.ag-lang__on { background: rgba(241, 223, 160, .16); color: var(--ag-gold-hi); }
.ag-lang__off { color: var(--ag-on-night); } /* full contrast (was opacity .7, about 2:1) */
@media (max-width: 767px) { .ag-topline__today { display: none; } .ag-topline__in { justify-content: space-between; } }

.ag-dock { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding-block: 12px; transition: transform .45s var(--ag-ease); }
.ag-dock.is-hidden { transform: translateY(-120%); }
.ag-dock__bar { display: flex; align-items: center; gap: 18px; }
.ag-dock__bar::before { content: ""; position: absolute; inset: 8px max(10px, calc(50% - var(--ag-wrap) / 2 - 8px)); border-radius: 22px; background: rgba(251, 248, 249, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--ag-shadow); z-index: -1; transition: inset .45s var(--ag-ease); }
.ag-dock.is-compact .ag-dock__bar::before { inset-block: 4px; }
.ag-dock__logo { display: block; padding-inline-start: 8px; }
.ag-dock__logo img { width: 158px; height: auto; }
.ag-dock__nav { position: relative; margin-inline: auto; }
.ag-dock__nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ag-dock__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 12px; text-decoration: none; font-size: .95rem; color: var(--ag-ink); cursor: pointer; }
.ag-dock__btn .ag-ic { width: 1em; height: 1em; transition: transform .3s var(--ag-ease); }
.ag-dock__btn[aria-expanded="true"] .ag-ic { transform: rotate(180deg); }
.ag-dock__btn[aria-current="page"]::after { content: ""; position: absolute; bottom: 7px; inset-inline: 40%; height: 2px; border-radius: 2px; background: var(--ag-gold-grad); }
.ag-dock__glide { position: absolute; top: 0; height: 44px; border-radius: 12px; background: var(--ag-blush); opacity: 0; transition: transform .4s var(--ag-ease), width .4s var(--ag-ease), opacity .25s; pointer-events: none; }
.ag-dock__act { display: flex; align-items: center; gap: 8px; padding-inline-end: 6px; }
.ag-dock__menu { display: none; }
@media (max-width: 1023px) {
  .ag-dock__nav { display: none; }
  .ag-dock__menu { display: inline-grid; }
  .ag-dock__act { margin-inline-start: auto; }
}
@media (max-width: 479px) { .ag-dock__act .ag-btn { display: none; } .ag-dock__logo img { width: 136px; } }

.ag-panel { position: absolute; inset-inline: 0; top: calc(100% - 4px); padding-top: 6px; }
.ag-panel__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding-block: 22px; }
.ag-panel__in::before { content: ""; position: absolute; inset: 0 max(10px, calc(50% - var(--ag-wrap) / 2 - 8px)); border-radius: 24px; background: var(--ag-white); box-shadow: var(--ag-shadow-lift); z-index: -1; }
.ag-panel { animation: drop .35s var(--ag-ease); }
@keyframes drop { from { transform: translateY(-8px); opacity: .4; } }
.ag-panel__col { display: grid; gap: 14px; align-content: start; padding-inline: 12px; }
.ag-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ag-mini { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; transition: background-color .25s; }
.ag-mini:hover { background: var(--ag-blush); }
.ag-mini span { display: grid; gap: 2px; }
.ag-mini b { font-weight: 500; color: var(--ag-ink); }
.ag-mini small { color: var(--ag-muted); font-size: .84rem; line-height: 1.5; }
.ag-panel__feature { position: relative; display: grid; align-items: end; min-height: 230px; border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--ag-night); color: var(--ag-on-night); }
.ag-panel__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s var(--ag-ease); }
.ag-panel__feature:hover img { transform: scale(1.05); }
.ag-panel__feature span { position: relative; display: grid; gap: 4px; padding: 18px; background: linear-gradient(to top, rgba(27, 23, 29, .9), transparent); }
.ag-panel__feature b { font-family: var(--ag-f-display); font-size: 1.25rem; }
.ag-panel__feature small { color: var(--ag-on-night-mute); }
.ag-panel__feature .ag-ic { color: var(--ag-gold-hi); }
.ag-panel__feature--night { background: var(--ag-night) radial-gradient(circle at 20% 0%, rgba(241, 223, 160, .18), transparent 60%); }
.ag-panel__clinics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ag-cmini { display: grid; gap: 10px; text-decoration: none; padding: 8px; border-radius: 16px; transition: background-color .25s; }
.ag-cmini:hover { background: var(--ag-blush); }
.ag-cmini img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 12px; }
.ag-cmini span { display: grid; gap: 2px; padding-inline: 4px; }
.ag-cmini b { color: var(--ag-ink); font-weight: 500; }
.ag-cmini small { color: var(--ag-muted); font-size: .82rem; line-height: 1.5; }
.ag-cmini.is-today b::after { content: "مفتوحة اليوم"; margin-inline-start: 8px; font-size: .72rem; font-weight: 500; color: var(--ag-ok); }
.ag-panel__portrait { border-radius: 18px; overflow: hidden; }
.ag-panel__portrait img { height: 100%; width: 100%; object-fit: cover; max-height: 300px; }
#p-about .ag-panel__in { grid-template-columns: 260px minmax(0, 1fr); }
.ag-panel__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ag-panel__links a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ag-ink); }
.ag-panel__links a:hover { background: var(--ag-blush); }
.ag-veil { position: fixed; inset: 0; z-index: 30; background: rgba(27, 23, 29, .28); backdrop-filter: blur(2px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }

.ag-sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--ag-porcelain); padding: env(safe-area-inset-top, 0px) var(--ag-gutter-e) env(safe-area-inset-bottom, 0px) var(--ag-gutter); animation: sheet .45s var(--ag-ease); overflow-y: auto; }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } }
.ag-sheet__head { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; }
.ag-sheet__nav { display: grid; padding-block: 8px; }
.ag-sheet__nav > a, .ag-sheet__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--ag-line); font: 600 1.35rem/1.3 var(--ag-f-display); color: var(--ag-ink); text-decoration: none; list-style: none; cursor: pointer; }
.ag-sheet__nav summary::-webkit-details-marker { display: none; }
.ag-sheet__nav details[open] summary .ag-ic { transform: rotate(180deg); }
.ag-sheet__nav details a { display: block; padding: 10px 16px; color: var(--ag-muted); text-decoration: none; }
.ag-sheet__nav [aria-current="page"] { color: var(--ag-gold-deep); }
.ag-sheet__foot { margin-top: auto; display: grid; gap: 10px; padding-block: 20px; }
.ag-sheet__em { text-align: center; color: var(--ag-muted); }

/* Mobile bar + WhatsApp ----------------------------------------------------------------- */
.ag-mbar { position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: none; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(27, 23, 29, .92); backdrop-filter: blur(14px); box-shadow: var(--ag-shadow-lift); }
.ag-mbar a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--ag-on-night); background: rgba(255, 255, 255, .07); text-decoration: none; }
.ag-mbar .ag-mbar__main { flex: 1; display: flex; gap: 10px; justify-content: center; background: var(--ag-gold-grad); color: #2A2112; font-weight: 500; white-space: nowrap; }
@media (max-width: 359px) { .ag-mbar .ag-mbar__main { font-size: .88rem; gap: 6px; } :root:not([dir="rtl"]) .ag-float--c { display: none; } } /* English on the smallest phones: one-line label; the hand note would cover the face */
.ag-wa-fab { position: fixed; inset-inline-start: calc(22px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 14px; border-radius: 999px; background: #1F7A54; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(31, 122, 84, .6); transition: transform .3s var(--ag-ease); }
.ag-wa-fab .ag-ic { width: 26px; height: 26px; }
.ag-wa-fab:hover { transform: translateY(-3px); }
@media (max-width: 767px) { .ag-mbar { display: flex; } .ag-wa-fab { display: none; } body { padding-bottom: 84px; } }

/* Night bands + spotlight ----------------------------------------------------------------- */
.ag-night { --ag-sx: 50%; --ag-sy: 0%; position: relative; background: var(--ag-night); color: var(--ag-on-night); isolation: isolate; }
.ag-night h2, .ag-night h3 { color: var(--ag-on-night); }
.ag-night[data-spot]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--ag-sx) var(--ag-sy), rgba(241, 223, 160, .09), transparent 70%); pointer-events: none; }
.ag-section { padding-block: clamp(64px, 9vw, 120px); }
.ag-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.ag-blush { background: var(--ag-blush); }

/* Hero ------------------------------------------------------------------------------------- */
.ag-hero { position: relative; overflow: clip; padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.ag-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(154, 122, 142, .22), transparent); z-index: -1; }
.ag-hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, rgba(241, 223, 160, .28), transparent); z-index: -1; }
.ag-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ag-hero__text { display: grid; gap: 22px; justify-items: start; }
.ag-hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--ag-white); box-shadow: var(--ag-shadow); font-size: .86rem; color: var(--ag-mauve-deep); }
.ag-hero__badge img { width: 30px; height: 30px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ag-hero h1 { font-size: var(--ag-s-1); line-height: 1.22; letter-spacing: 0; }
.ag-hero h1 .ag-w { display: inline-block; animation: wordUp .9s var(--ag-ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordUp { from { transform: translateY(.45em); opacity: .01; filter: blur(6px); } }
.ag-hero__sub { max-width: 54ch; color: var(--ag-muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); animation: wordUp .9s var(--ag-ease) both .65s; }
.ag-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; animation: wordUp .9s var(--ag-ease) both .8s; }
.ag-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--ag-muted); animation: wordUp .9s var(--ag-ease) both .95s; }
.ag-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.ag-hero__meta .ag-ic { color: var(--ag-gold-deep); }
.ag-open-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(47, 122, 90, .1); color: var(--ag-ok); font-size: .86rem; font-weight: 500; }
.ag-open-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping 2.2s infinite; box-shadow: 0 0 0 0 rgba(47, 122, 90, .5); }
.ag-open-pill.is-closed { background: rgba(110, 81, 100, .1); color: var(--ag-mauve-deep); }
.ag-open-pill.is-closed::before { animation: none; }

/* The ultrasound screen (hero visual): a dark monitor, the sector fan inside, Dr. Amr rising out of its top edge */
.ag-sono { position: relative; aspect-ratio: 1 / 1.06; max-width: 560px; justify-self: center; width: 100%; margin-top: 7%; animation: wordUp 1.2s var(--ag-ease) both .2s; }
.ag-sono__screen { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2B232D, #141015 72%); box-shadow: var(--ag-shadow-lift), inset 0 0 0 1px rgba(241, 223, 160, .14); }
.ag-sono__fan { position: absolute; inset: 6% 7% -2%; clip-path: url(#ag-fan); background: radial-gradient(110% 90% at 50% 0%, #66546B 0%, #352B38 46%, #1E1820 100%); }
.ag-sono__rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 0%, transparent 0 46px, rgba(241, 223, 160, .07) 46px 47px); }
.ag-sono__grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 5px 5px; }
.ag-sono__sweep { position: absolute; left: 50%; top: 0; width: 200%; height: 200%; translate: -50% 0; transform-origin: 50% 0; background: conic-gradient(from 0deg at 50% 0%, transparent 0deg 150deg, rgba(241, 223, 160, .05) 165deg, rgba(241, 223, 160, .3) 179deg, transparent 181deg 360deg); animation: sweep 6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-34deg); } to { transform: rotate(34deg); } }
.ag-sono__edge { position: absolute; inset: 6% 7% -2%; width: 86%; height: 96%; pointer-events: none; overflow: visible; }
.ag-sono__edge path { fill: none; stroke: url(#ag-goldline); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ag-sono__dr { position: absolute; bottom: 0; left: 50%; width: 70%; translate: -50% 0; filter: drop-shadow(0 -12px 30px rgba(20, 10, 18, .35)); }
.ag-sono__hud { position: absolute; font: 400 .66rem/1.6 var(--ag-f-mono); color: rgba(241, 223, 160, .72); letter-spacing: .06em; direction: ltr; text-align: left; }
.ag-sono__hud--tl { top: 5%; left: 6%; }
.ag-sono__hud--bl { bottom: 5%; left: 6%; }
.ag-sono__hud b { color: var(--ag-gold-hi); font-weight: 500; }
.ag-sono__scale { position: absolute; top: 9%; bottom: 18%; right: 4%; width: 30px; direction: ltr; }
.ag-sono__scale span { position: absolute; right: 0; font: 400 .62rem/1 var(--ag-f-mono); color: rgba(241, 223, 160, .6); display: flex; align-items: center; gap: 4px; }
.ag-sono__scale span::before { content: ""; width: 8px; height: 1px; background: currentColor; }
.ag-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: var(--ag-shadow-lift); font-size: .88rem; color: var(--ag-ink); animation: bob 7s ease-in-out infinite; }
.ag-float small { display: block; color: var(--ag-muted); font-size: .76rem; }
.ag-float b { font-weight: 500; }
.ag-float .ag-ic--svc { width: 26px; height: 26px; }
.ag-float--a { top: 30%; inset-inline-end: -9%; }
.ag-float--b { bottom: 13%; inset-inline-start: -7%; animation-delay: -3s; }
.ag-float--c { top: 9%; right: 6%; z-index: 1; padding: 0; background: transparent; box-shadow: none; backdrop-filter: none; animation: none; }
.ag-float--c .ag-note-hand { font-size: 1.2rem; color: var(--ag-gold-hi); transform: rotate(-5deg); text-align: center; }
.ag-float--c svg { position: absolute; width: 60px; height: 46px; left: -34px; top: 46px; fill: none; stroke: rgba(241, 223, 160, .7); stroke-width: 1.4; stroke-linecap: round; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.ag-ecg { width: 56px; height: 22px; fill: none; stroke: #C0566A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; animation: ecg 2.4s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 180; } to { stroke-dashoffset: 0; } }
@media (max-width: 1023px) {
  .ag-hero__in { grid-template-columns: minmax(0, 1fr); }
  .ag-sono { max-width: 480px; order: -1; }
  .ag-float--a { inset-inline-end: -2%; }
  .ag-float--b { inset-inline-start: -2%; }
}
@media (max-width: 479px) { .ag-float { font-size: .78rem; padding: 9px 11px; gap: 8px; } .ag-float small, .ag-ecg { display: none; } .ag-float--c .ag-note-hand { font-size: 1rem; } .ag-float--c svg { display: none; } .ag-sono__scale { display: none; }
  /* English: the hand note stays top right, so the first card moves to the left side under it. */
  :root:not([dir="rtl"]) .ag-float--a { inset-inline-end: auto; inset-inline-start: -2%; }
  :root:not([dir="rtl"]) .ag-float--c { right: 3%; } :root:not([dir="rtl"]) .ag-float--c .ag-note-hand { font-size: .9rem; }
  /* Phones: the emergency line shows the number only (the label stays for screen readers). */
  .ag-topline__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* Trust bar ---------------------------------------------------------------------------- */
.ag-trust { position: relative; margin-top: clamp(-64px, -5vw, -36px); z-index: 2; }
.ag-trust__card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); align-items: center; gap: 8px; padding: 18px; border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: var(--ag-shadow-lift); }
.ag-stat { display: grid; gap: 2px; padding: 10px 18px; border-inline-end: 1px solid var(--ag-line); }
.ag-stat__n { font: 600 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1.1 var(--ag-f-display); color: var(--ag-ink); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 2px; direction: ltr; justify-content: flex-end; }
:root:not([dir="rtl"]) .ag-stat__n { justify-content: flex-start; }
:root:not([dir="rtl"]) .ag-stat__n i { order: 1; } /* English reads "10+" */
.ag-stat__n i { font-style: normal; background: var(--ag-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-stat__l { font-size: .88rem; color: var(--ag-muted); }
.ag-confirm { text-decoration: underline dotted rgba(127, 98, 42, .5); text-underline-offset: 6px; cursor: help; }
.ag-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding-inline: 8px; }
.ag-marquee__label { font-size: .78rem; color: var(--ag-muted); padding-inline: 18px; margin-bottom: 6px; }
.ag-marquee__track { display: flex; gap: 26px; width: max-content; animation: marquee 32s linear infinite; }
.ag-marquee:hover .ag-marquee__track { animation-play-state: paused; }
.ag-marquee__track img { height: 46px; width: auto; border-radius: 8px; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .3s, opacity .3s; }
.ag-marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (max-width: 1023px) {
  .ag-trust__card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-marquee { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--ag-line); }
  .ag-stat:nth-child(3) { border: 0; }
}
@media (max-width: 479px) { .ag-stat { padding: 8px; } .ag-stat__l { font-size: .78rem; } }

/* Services bento ------------------------------------------------------------------------- */
.ag-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); cursor: pointer; font-size: .9rem; color: var(--ag-ink); transition: background-color .25s, color .25s, box-shadow .25s; }
.ag-filters button[aria-pressed="true"] { background: var(--ag-ink); color: var(--ag-porcelain); box-shadow: none; }
.ag-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.ag-svc { position: relative; display: grid; align-content: space-between; gap: 18px; padding: 22px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); text-decoration: none; overflow: hidden; transition: transform .45s var(--ag-ease), box-shadow .45s var(--ag-ease), opacity .35s; }
.ag-svc:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow-lift); }
.ag-svc h3 { font-size: 1.15rem; font-weight: 600; }
.ag-svc p { font-size: .9rem; color: var(--ag-muted); line-height: 1.7; }
.ag-svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.ag-svc__tag { font-size: .74rem; color: var(--ag-mauve-deep); padding: 4px 10px; border-radius: 999px; background: var(--ag-blush); }
.ag-svc__go { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ag-blush); color: var(--ag-gold-deep); opacity: 0; transform: translateX(8px); transition: .4s var(--ag-ease); }
.ag-svc:hover .ag-svc__go { opacity: 1; transform: none; }
.ag-svc--feature { grid-column: span 2; grid-row: span 2; color: var(--ag-on-night); background: var(--ag-night); box-shadow: none; align-content: end; min-height: 400px; }
.ag-svc--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform 1.2s var(--ag-ease); }
.ag-svc--feature:hover img { transform: scale(1.04); }
.ag-svc--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 23, 29, .95) 10%, rgba(27, 23, 29, .1) 70%); }
.ag-svc--feature > *:not(img) { position: relative; z-index: 1; }
.ag-svc--feature h3 { color: var(--ag-on-night); font-size: var(--ag-s-3); }
.ag-svc--feature p { color: var(--ag-on-night-mute); max-width: 44ch; }
.ag-svc--feature .ag-svc__tag { background: rgba(241, 223, 160, .14); color: var(--ag-gold-hi); }
.ag-svc--feature .ag-ic--svc { color: var(--ag-gold-hi); }
.ag-svc--wide { grid-column: span 2; }
.ag-svc--scan { background: var(--ag-night) radial-gradient(90% 120% at 100% 0%, #3A2F3A, transparent); color: var(--ag-on-night); box-shadow: none; }
.ag-svc--scan h3 { color: var(--ag-on-night); }
.ag-svc--scan p { color: var(--ag-on-night-mute); }
.ag-svc--scan .ag-ic--svc { color: var(--ag-gold-hi); }
.ag-svc--scan img { position: absolute; inset-inline-end: -10px; top: 50%; translate: 0 -50%; width: 46%; border-radius: 14px; opacity: .6; mask-image: linear-gradient(to left, #000 40%, transparent); }
.ag-svc--scan > div { max-width: 56%; }
@media (max-width: 599px) { .ag-svc--scan > div { max-width: none; } .ag-svc--scan img { opacity: .25; } }
.ag-svc.is-out { opacity: .22; transform: scale(.98); pointer-events: none; }
.ag-svc__mark { position: absolute; inset-inline-end: -16px; bottom: -20px; width: 128px; height: 128px; fill: none; stroke: var(--ag-gold); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; opacity: .2; transition: transform .8s var(--ag-ease), opacity .4s; pointer-events: none; }
.ag-svc:hover .ag-svc__mark { transform: rotate(-8deg) scale(1.06); opacity: .32; }
.ag-svc--scan .ag-svc__mark { display: none; }
.ag-marquee__dup { display: contents; }
@media (max-width: 1023px) { .ag-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ag-bento { grid-template-columns: minmax(0, 1fr); } .ag-svc--feature, .ag-svc--wide { grid-column: auto; } .ag-svc--feature { grid-row: auto; min-height: 340px; } }

/* Nine-month journey ------------------------------------------------------------------- */
.ag-journey { overflow: clip; }
.ag-journey__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ag-wk { display: grid; gap: 4px; }
.ag-wk__now { font: 700 clamp(4.5rem, 3rem + 6vw, 8.5rem)/1 var(--ag-f-display); font-variant-numeric: tabular-nums; text-align: start; }
.ag-wk__label { color: var(--ag-on-night-mute); }
.ag-ruler { position: relative; margin-top: 30px; padding-bottom: 44px; }
.ag-ruler__track { position: relative; height: 54px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ag-night-line); overflow: hidden; }
.ag-ruler__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p, 30%); background: linear-gradient(calc(180deg + 90deg * var(--ag-x)), rgba(241, 223, 160, .28), rgba(241, 223, 160, .04)); transition: width .5s var(--ag-ease); }
.ag-ruler__ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(241, 223, 160, .26) 0 1px, transparent 1px calc(100% / 42)); mask-image: linear-gradient(to bottom, transparent 55%, #000 55%); }
.ag-ruler__marks { position: absolute; inset-inline: 0; bottom: 14px; height: 1em; font: 400 .66rem/1 var(--ag-f-mono); color: var(--ag-on-night-mute); }
.ag-ruler__marks span { position: absolute; translate: calc(50% * var(--ag-x)) 0; }
.ag-ruler__stops { position: absolute; inset: 0; }
.ag-stop { position: absolute; top: 50%; translate: calc(50% * var(--ag-x)) -50%; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: var(--ag-night); box-shadow: 0 0 0 2px var(--ag-gold); cursor: pointer; transition: transform .3s var(--ag-ease), background-color .3s; z-index: 2; }
.ag-stop::after { content: ""; position: absolute; inset: -14px; }
.ag-stop:hover, .ag-stop[aria-pressed="true"] { transform: scale(1.35); background: var(--ag-gold-hi); }
.ag-ruler input[type="range"] { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 54px; margin: 0; opacity: 0; cursor: grab; }
.ag-ruler__thumb { position: absolute; top: -8px; height: 70px; width: 2px; background: var(--ag-gold-hi); inset-inline-start: var(--p, 30%); translate: calc(50% * var(--ag-x)) 0; transition: left .5s var(--ag-ease), right .5s var(--ag-ease); pointer-events: none; box-shadow: 0 0 18px rgba(241, 223, 160, .7); }
.ag-ruler__thumb::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; translate: -50% 0; border-radius: 50%; background: var(--ag-gold-hi); }
.ag-ruler__ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: .78rem; color: var(--ag-on-night-mute); }
.ag-stage { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--ag-r-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ag-night-line); min-height: 360px; align-content: start; }
.ag-stage__when { font: 400 .78rem/1 var(--ag-f-mono); color: var(--ag-gold-hi); letter-spacing: .06em; direction: rtl; }
.ag-stage h3 { font-size: var(--ag-s-3); }
.ag-stage p { color: var(--ag-on-night-mute); }
.ag-stage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ag-stage li { display: flex; gap: 10px; align-items: flex-start; color: var(--ag-on-night); }
.ag-stage li .ag-ic { color: var(--ag-gold-hi); margin-top: .35em; }
.ag-stage .ag-link-arrow { margin-top: 6px; }
.ag-stage.is-swap > * { animation: swap .5s var(--ag-ease); }
@keyframes swap { from { opacity: .2; transform: translateY(8px); } }
.ag-journey__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ag-journey__nav button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .05); color: var(--ag-on-night-mute); box-shadow: inset 0 0 0 1px var(--ag-night-line); cursor: pointer; font-size: .85rem; }
.ag-journey__nav button[aria-pressed="true"] { background: var(--ag-gold-grad); color: #2A2112; box-shadow: none; }
@media (max-width: 1023px) { .ag-journey__in { grid-template-columns: minmax(0, 1fr); } }

/* Care path (3 steps) ---------------------------------------------------------------------- */
.ag-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.ag-path::before { content: ""; position: absolute; top: 34px; inset-inline: 8%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--ag-gold), transparent); transform-origin: right; transform: scaleX(var(--draw, 1)); transition: transform 1.4s var(--ag-ease); }
.ag-path__step { position: relative; display: grid; gap: 12px; padding: 0 8px; }
.ag-path__num { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--ag-white); box-shadow: var(--ag-shadow), inset 0 0 0 1px var(--ag-line); font: 700 1.5rem/1 var(--ag-f-display); color: var(--ag-gold-deep); }
.ag-path__step h3 { font-size: 1.2rem; }
.ag-path__step p { color: var(--ag-muted); font-size: .95rem; }
@media (max-width: 767px) { .ag-path { grid-template-columns: minmax(0, 1fr); } .ag-path::before { display: none; } }

/* Why Dr. Amr ------------------------------------------------------------------------------- */
.ag-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ag-why__media { position: relative; }
.ag-why__media img.portrait { border-radius: 220px 220px var(--ag-r-lg) var(--ag-r-lg); width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 20%; }
.ag-why__media .ag-note-hand { position: absolute; inset-inline-end: -10px; bottom: 34px; padding: 14px 18px; background: var(--ag-white); border-radius: 16px; box-shadow: var(--ag-shadow-lift); transform: rotate(-3deg); max-width: 260px; font-size: 1.2rem; }
.ag-why__media .ag-sig { position: absolute; top: 18px; inset-inline-start: 18px; width: 120px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.ag-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-why__item { display: grid; gap: 8px; padding: 22px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); }
.ag-why__item h3 { font-size: 1.08rem; font-weight: 600; }
.ag-why__item p { font-size: .92rem; color: var(--ag-muted); line-height: 1.75; }
.ag-why__item .ag-ic { color: var(--ag-gold-deep); width: 26px; height: 26px; }
.ag-why__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .ag-why { grid-template-columns: minmax(0, 1fr); } .ag-why__media { max-width: 460px; } .ag-why__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ag-why__list { grid-template-columns: minmax(0, 1fr); } }

/* Clinics -------------------------------------------------------------------------------- */
.ag-sched { overflow-x: auto; border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: var(--ag-shadow); margin-bottom: 22px; }
.ag-sched table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.ag-sched th, .ag-sched td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--ag-line); }
.ag-sched thead th { font-weight: 500; color: var(--ag-muted); font-size: .84rem; }
.ag-sched tbody th { text-align: start; font-weight: 500; color: var(--ag-ink); white-space: nowrap; }
.ag-sched tbody th small { display: block; font-weight: 400; color: var(--ag-muted); font-size: .78rem; }
.ag-sched td span { display: inline-block; padding: 6px 10px; border-radius: 10px; background: var(--ag-blush); color: var(--ag-mauve-deep); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .84rem; }
.ag-sched td.off { color: rgba(107, 101, 112, .45); }
.ag-sched .is-today { background: rgba(241, 223, 160, .18); }
.ag-sched thead .is-today { color: var(--ag-gold-deep); font-weight: 600; }
.ag-sched tr:last-child > * { border-bottom: 0; }
.ag-clinics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ag-clinic { display: grid; grid-template-rows: auto 1fr; border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); overflow: hidden; transition: box-shadow .4s var(--ag-ease), transform .4s var(--ag-ease); }
.ag-clinic:hover { box-shadow: var(--ag-shadow-lift); transform: translateY(-3px); }
.ag-clinic.is-today { box-shadow: 0 0 0 2px var(--ag-gold), var(--ag-shadow-lift); }
.ag-gal { position: relative; }
.ag-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ag-gal__track::-webkit-scrollbar { display: none; }
.ag-gal__track img { flex: 0 0 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.ag-gal__dots { position: absolute; bottom: 2px; inset-inline: 0; display: flex; justify-content: center; gap: 0; }
/* 24 px tap targets (WCAG 2.5.8) around the small visual dot. */
.ag-gal__dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.ag-gal__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .6); transition: width .3s var(--ag-ease), background-color .3s; }
.ag-gal__dots button[aria-current="true"]::before { width: 20px; background: #fff; }
.ag-clinic__body { display: grid; gap: 12px; padding: 20px; align-content: start; }
.ag-clinic__name { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-clinic__name h3 { font-size: 1.2rem; }
.ag-clinic dl { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.ag-clinic dl div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.ag-clinic dt .ag-ic { color: var(--ag-gold-deep); margin-top: .3em; }
.ag-clinic dd { margin: 0; color: var(--ag-char); line-height: 1.7; }
.ag-clinic dd a { display: inline-block; padding-block: 3px; white-space: nowrap; color: inherit; text-decoration: underline dotted rgba(127, 98, 42, .55); text-underline-offset: 4px; } /* each number stays whole and reads as tappable */
.ag-clinic__act { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 1023px) { .ag-clinics { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* Birth moments strip -------------------------------------------------------------------- */
.ag-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-block: 6px 18px; padding-inline: var(--ag-gutter) var(--ag-gutter-e); scrollbar-width: thin; scrollbar-color: var(--ag-gold) transparent; cursor: grab; }
.ag-strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ag-strip figure { flex: 0 0 clamp(200px, 22vw, 280px); margin: 0; scroll-snap-align: start; border-radius: 22px; overflow: hidden; position: relative; transition: transform .5s var(--ag-ease); }
.ag-strip figure:nth-child(even) { transform: translateY(26px); }
.ag-strip img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; pointer-events: none; }

/* Media pair (video + magazine) ---------------------------------------------------------- */
.ag-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.ag-video { position: relative; display: block; border-radius: var(--ag-r-lg); overflow: hidden; color: #fff; text-decoration: none; min-height: 300px; }
.ag-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ag-ease); }
.ag-video:hover img { transform: scale(1.03); }
.ag-video__play { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.ag-video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); animation: ring 2.6s var(--ag-ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ag-video__play .ag-ic { width: 34px; height: 34px; }
.ag-video__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; background: linear-gradient(to top, rgba(27, 23, 29, .85), transparent); font-family: var(--ag-f-display); font-size: 1.2rem; }
.ag-mag { position: relative; display: grid; align-content: space-between; gap: 18px; padding: 26px; border-radius: var(--ag-r-lg); background: var(--ag-blush); text-decoration: none; overflow: hidden; perspective: 900px; }
.ag-mag__book { position: relative; width: 150px; aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; background: var(--ag-night) url("../img/mark.png") center 38% / 46% no-repeat; box-shadow: 18px 22px 36px -14px rgba(54, 32, 48, .5), inset -8px 0 0 rgba(0,0,0,.25); transform: rotateY(-18deg) rotateX(6deg); transition: transform .7s var(--ag-ease); justify-self: end; }
.ag-mag__book::after { content: "المجلة الطبية"; position: absolute; bottom: 14px; inset-inline: 0; text-align: center; font: 600 .9rem/1 var(--ag-f-display); color: var(--ag-gold-hi); }
.ag-mag:hover .ag-mag__book { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }
.ag-mag h3 { font-size: 1.3rem; }
.ag-mag p { color: var(--ag-muted); font-size: .92rem; }
@media (max-width: 767px) { .ag-pair { grid-template-columns: minmax(0, 1fr); } }

/* FAQ ------------------------------------------------------------------------------------ */
.ag-faq { display: grid; gap: 10px; }
.ag-faq details { border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); transition: box-shadow .3s; }
.ag-faq details[open] { box-shadow: var(--ag-shadow); }
.ag-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 600 1.05rem/1.6 var(--ag-f-display); color: var(--ag-ink); }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary .ag-ic { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ag-blush); color: var(--ag-gold-deep); transition: transform .35s var(--ag-ease); }
.ag-faq details[open] summary .ag-ic { transform: rotate(45deg); }
.ag-faq details p { padding: 0 22px 22px; color: var(--ag-muted); max-width: 72ch; }
.ag-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ag-faq-wrap .ag-head { position: sticky; top: 110px; }
@media (max-width: 1023px) { .ag-faq-wrap { grid-template-columns: minmax(0, 1fr); } .ag-faq-wrap .ag-head { position: static; } }

/* Booking ---------------------------------------------------------------------------------- */
.ag-book { padding-block: clamp(64px, 9vw, 120px); overflow: clip; }
.ag-book::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -160px; background: url("../img/mark.png") center / contain no-repeat; opacity: .05; animation: spin 120s linear infinite; z-index: -1; }
.ag-book__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ag-book__intro { display: grid; gap: 18px; position: sticky; top: 110px; }
.ag-book__ways { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ag-book__ways li { display: flex; gap: 12px; align-items: center; color: var(--ag-on-night-mute); }
.ag-book__ways .ag-ic { color: var(--ag-gold-hi); }
.ag-book__ways a { color: var(--ag-on-night); text-decoration: underline; text-underline-offset: 3px; }
.ag-bk { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--ag-r-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ag-night-line); backdrop-filter: blur(10px); }
.ag-bk__rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-bk__rail li { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid rgba(255, 255, 255, .08); font-size: .84rem; color: var(--ag-on-night-mute); transition: border-color .4s, color .4s; }
.ag-bk__rail li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: .76rem; }
.ag-bk__rail li.is-on { border-color: var(--ag-gold); color: var(--ag-on-night); }
.ag-bk__rail li.is-on span { background: var(--ag-gold-grad); color: #2A2112; }
.ag-bk__step { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.ag-bk__step legend { font: 600 1.3rem/1.4 var(--ag-f-display); color: var(--ag-on-night); margin-bottom: 4px; padding: 0; }
.ag-bk__group { font-size: .78rem; color: var(--ag-on-night-mute); margin-top: 6px; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip input, .ag-pick__card input { position: absolute; opacity: 0; pointer-events: none; }
.ag-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--ag-night-line); color: var(--ag-on-night); font-size: .9rem; cursor: pointer; transition: .25s; }
.ag-chip:hover span { box-shadow: inset 0 0 0 1px rgba(241, 223, 160, .5); }
.ag-chip input:checked + span { background: var(--ag-gold-grad); color: #2A2112; box-shadow: none; }
.ag-chip input:focus-visible + span, .ag-pick__card input:focus-visible + span { outline: 2px solid var(--ag-gold-hi); outline-offset: 2px; }
.ag-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-pick__card span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--ag-r-md); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ag-night-line); cursor: pointer; transition: .25s; }
.ag-pick__card b { color: var(--ag-on-night); font-weight: 500; }
.ag-pick__card small { color: var(--ag-on-night-mute); font-size: .82rem; }
.ag-pick__card em { font-style: normal; color: var(--ag-gold-hi); font-size: .8rem; }
.ag-pick__card input:checked + span { box-shadow: inset 0 0 0 1.5px var(--ag-gold); background: rgba(241, 223, 160, .08); }
.ag-field { display: grid; gap: 6px; min-width: 0; }
.ag-field label { font-size: .88rem; color: var(--ag-on-night-mute); }
.ag-field input, .ag-field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ag-night-line); color: var(--ag-on-night); font: inherit; color-scheme: dark; }
.ag-field input:focus, .ag-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ag-gold); }
.ag-field__hint { font-size: .78rem; color: var(--ag-on-night-mute); }
.ag-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ag-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ag-on-night-mute); }
.ag-consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ag-gold); flex: none; }
.ag-consent a { color: var(--ag-gold-hi); }
.ag-bk__err { color: #F2A7A0; font-size: .88rem; }
.ag-bk__nav { display: flex; justify-content: space-between; gap: 10px; }
.ag-bk__nav [data-next], .ag-bk__nav [data-submit] { margin-inline-start: auto; }
.ag-bk__done { display: grid; gap: 14px; justify-items: start; padding: 10px 0; }
.ag-bk__done h3 { font-size: 1.6rem; }
.ag-bk__done [data-summary] { color: var(--ag-on-night); }
.ag-bk__seal { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: rgba(241, 223, 160, .1); animation: spin 30s linear infinite; }
.ag-js .ag-bk__step:not(.is-active) { display: none; }
@media (max-width: 1023px) { .ag-book__in { grid-template-columns: minmax(0, 1fr); } .ag-book__intro { position: static; } }
@media (max-width: 599px) { .ag-pick, .ag-field-row { grid-template-columns: minmax(0, 1fr); } .ag-bk__rail li { font-size: .74rem; } }

/* Footer ------------------------------------------------------------------------------------ */
.ag-foot { padding-block: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--ag-night-line); }
.ag-foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; }
.ag-foot__brand { display: grid; gap: 16px; align-content: start; }
.ag-foot__brand img { width: 260px; }
.ag-foot__brand p { color: var(--ag-on-night-mute); font-size: .92rem; max-width: 34ch; }
.ag-foot__social { display: flex; gap: 8px; }
.ag-foot__col { display: grid; gap: 10px; align-content: start; }
.ag-foot__col h2 { font: 600 1rem/1.4 var(--ag-f-display); color: var(--ag-gold-hi); margin-bottom: 6px; }
.ag-foot__col a { color: var(--ag-on-night-mute); text-decoration: none; font-size: .93rem; width: fit-content; transition: color .25s; }
.ag-foot__col a:hover { color: var(--ag-on-night); }
.ag-foot__contact a[dir="ltr"] { font-variant-numeric: tabular-nums; }
.ag-foot__hours { display: flex; gap: 8px; align-items: center; color: var(--ag-on-night-mute); font-size: .88rem; }
.ag-foot__hours .ag-ic { color: var(--ag-gold-hi); }
.ag-foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 22px; border-top: 1px solid var(--ag-night-line); font-size: .84rem; color: var(--ag-on-night-mute); }
.ag-foot__base a { color: var(--ag-gold-hi); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .ag-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .ag-foot__in { grid-template-columns: minmax(0, 1fr); } }

/* Inner page hero + reading layout --------------------------------------------------------- */
.ag-phero { position: relative; overflow: clip; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.ag-phero::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(154, 122, 142, .2), transparent); z-index: -1; }
.ag-phero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ag-phero__text { display: grid; gap: 18px; justify-items: start; }
.ag-crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--ag-muted); list-style: none; margin: 0; padding: 0; }
.ag-crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--ag-mist); }
.ag-crumbs a { text-decoration: none; color: var(--ag-mauve-deep); }
.ag-phero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.ag-phero h1 .ag-w { display: inline-block; animation: wordUp .9s var(--ag-ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
.ag-phero__media { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.ag-phero__media img { width: 100%; border-radius: 240px 240px var(--ag-r-lg) var(--ag-r-lg); aspect-ratio: 4 / 4.4; object-fit: cover; animation: wordUp 1.1s var(--ag-ease) both .2s; }
.ag-phero__media--fan img { border-radius: 0; clip-path: url(#ag-fan); }
.ag-phero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-phero__chips a, .ag-phero__chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); font-size: .86rem; text-decoration: none; color: var(--ag-ink); }
@media (max-width: 1023px) { .ag-phero__in { grid-template-columns: minmax(0, 1fr); } .ag-phero__media { max-width: 380px; } }

.ag-read { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ag-toc { position: sticky; top: 110px; display: grid; gap: 4px; padding: 16px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); }
.ag-toc p { font-size: .8rem; color: var(--ag-muted); padding: 4px 10px 8px; }
.ag-toc a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: .9rem; color: var(--ag-char); line-height: 1.5; transition: background-color .25s, color .25s; }
.ag-toc a:hover { background: var(--ag-blush); }
.ag-toc a.is-on { background: var(--ag-blush); color: var(--ag-gold-deep); font-weight: 500; }
.ag-prose { display: grid; gap: 18px; max-width: 72ch; }
.ag-prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin-top: 18px; scroll-margin-top: 110px; }
.ag-prose h3 { font-size: 1.2rem; margin-top: 6px; }
.ag-prose ul, .ag-prose ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 8px; }
.ag-prose li::marker { color: var(--ag-gold); }
.ag-prose strong { color: var(--ag-ink); font-weight: 500; }
.ag-prose figure { margin: 0; display: grid; gap: 8px; }
.ag-prose figure img { border-radius: var(--ag-r-md); background: #000; }
.ag-prose figcaption { font-size: .85rem; color: var(--ag-muted); }
.ag-callout { display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--ag-r-md); background: var(--ag-blush); }
.ag-callout h3 { font-size: 1.05rem; }
.ag-callout--night { background: var(--ag-night); color: var(--ag-on-night); }
.ag-callout--night h3 { color: var(--ag-gold-hi); }
.ag-checks { list-style: none !important; padding: 0 !important; }
.ag-checks li { display: flex; gap: 10px; align-items: flex-start; }
.ag-checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .3em; border-radius: 50%; background: var(--ag-blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F622A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ag-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ag-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); }
.ag-card h3 { font-size: 1.1rem; font-weight: 600; }
.ag-card p { font-size: .92rem; color: var(--ag-muted); }
.ag-card .ag-ic--svc { margin-bottom: 4px; }
@media (max-width: 1023px) { .ag-read { grid-template-columns: minmax(0, 1fr); } .ag-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; } .ag-toc p { display: none; } .ag-toc a { white-space: nowrap; } .ag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ag-cards { grid-template-columns: minmax(0, 1fr); } }
.ag-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ag-tabs__list button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); cursor: pointer; color: var(--ag-ink); }
.ag-tabs__list button[aria-selected="true"] { background: var(--ag-ink); color: var(--ag-porcelain); box-shadow: none; }
.ag-js [role="tabpanel"]:not(.is-on) { display: none; }
.ag-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ag-gallery img { border-radius: var(--ag-r-md); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ag-gallery--sq img { aspect-ratio: 1; }
@media (max-width: 767px) { .ag-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Inner-page parts ------------------------------------------------------------------------- */
.ag-phero__media--cut { display: grid; align-items: end; justify-items: center; aspect-ratio: 4 / 4.4; border-radius: 240px 240px var(--ag-r-lg) var(--ag-r-lg); overflow: hidden; background: radial-gradient(80% 60% at 50% 30%, #fff, transparent), var(--ag-blush); }
.ag-phero__media--cut img { width: 80%; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
.ag-phero__media--fan { aspect-ratio: 1 / 1; border-radius: 34px; overflow: hidden; padding: 6% 7% 0; background: radial-gradient(120% 80% at 50% 0%, #2B232D, #141015 72%); box-shadow: var(--ag-shadow-lift); }
.ag-phero__media--fan img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; clip-path: url(#ag-fan); }
.ag-group-title { display: flex; align-items: center; gap: 10px; margin-block: 30px 12px; font: 600 1.05rem/1.4 var(--ag-f-display); color: var(--ag-mauve-deep); scroll-margin-top: 110px; }
.ag-group-title::after { content: ""; flex: 1; height: 1px; background: var(--ag-line); }
.ag-svc-list { display: grid; gap: 12px; }
.ag-svc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); scroll-margin-top: 110px; transition: box-shadow .3s; }
.ag-svc-row:target { box-shadow: 0 0 0 2px var(--ag-gold), var(--ag-shadow); }
.ag-svc-row__ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--ag-blush); }
.ag-svc-row h3 { font-size: 1.2rem; }
.ag-svc-row p { color: var(--ag-muted); font-size: .94rem; margin-top: 4px; }
.ag-svc-row__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .ag-svc-row { grid-template-columns: 52px minmax(0, 1fr); padding: 18px; } .ag-svc-row__ic { width: 52px; height: 52px; } .ag-svc-row__act { grid-column: 1 / -1; justify-content: flex-start; } }
.ag-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ag-logos img { width: 100%; height: 96px; object-fit: contain; padding: 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ag-line); }
@media (max-width: 767px) { .ag-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) { .ag-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ag-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 1023px) { .ag-split { grid-template-columns: minmax(0, 1fr); } }
.ag-ctg { border-radius: var(--ag-r-lg); padding: 18px 18px 10px; background-color: #FFF8F9; background-image: linear-gradient(rgba(192, 86, 106, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 86, 106, .2) 1px, transparent 1px), linear-gradient(rgba(192, 86, 106, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 86, 106, .08) 1px, transparent 1px); background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; box-shadow: var(--ag-shadow-lift); direction: ltr; }
.ag-ctg svg { width: 100%; height: auto; display: block; }
.ag-ctg path { fill: none; stroke: #2A2226; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ag-ctg .ag-ctg__draw { stroke-dasharray: 3000; animation: trace 7s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
.ag-ctg text { font: 500 11px var(--ag-f-body); fill: #8E3E50; }
.ag-ctg__foot { display: flex; justify-content: space-between; font: 400 .7rem/1 var(--ag-f-mono); color: #8E3E50; padding-top: 6px; }
.ag-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ag-result > div { display: grid; gap: 8px; padding: 20px; border-radius: var(--ag-r-md); }
.ag-result .ag-ok { background: rgba(47, 122, 90, .08); }
.ag-result .ag-ok h3 { color: var(--ag-ok); }
.ag-result .ag-more { background: var(--ag-blush); }
.ag-result h3 { font-size: 1.05rem; }
.ag-result--stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 599px) { .ag-result { grid-template-columns: minmax(0, 1fr); } }
.ag-dua { display: grid; gap: 10px; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--ag-r-lg); background: var(--ag-night) radial-gradient(70% 90% at 50% 0%, rgba(241, 223, 160, .12), transparent); }
.ag-dua p { font: 400 clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem)/1.9 var(--ag-f-hand); color: var(--ag-gold-hi); max-width: 34ch; }
.ag-dua small { color: var(--ag-on-night-mute); }
.ag-cv { display: grid; gap: 10px; }
/* Credentials: a label column (specialty, fellowship, membership, education) and the name. */
.ag-cv li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 18px; border-radius: 14px; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); color: var(--ag-char); list-style: none; }
.ag-cv b { color: var(--ag-gold-deep); font-weight: 500; font-size: .86rem; }
@media (max-width: 479px) { .ag-cv li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.ag-contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ag-ccard { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); }
.ag-ccard .ag-ic { width: 28px; height: 28px; color: var(--ag-gold-deep); }
.ag-ccard h3 { font-size: 1.05rem; }
.ag-ccard a { text-decoration: none; color: var(--ag-ink); }
.ag-ccard p, .ag-ccard a { font-size: .94rem; }
@media (max-width: 1023px) { .ag-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .ag-contact-cards { grid-template-columns: minmax(0, 1fr); } }
.ag-search { position: relative; display: block; width: 100%; max-width: 560px; }
.ag-search .ag-ic { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; color: var(--ag-muted); }
.ag-search input { width: 100%; min-height: 56px; padding-inline: 50px 18px; border-radius: 999px; border: 0; background: var(--ag-white); box-shadow: var(--ag-shadow), inset 0 0 0 1px var(--ag-line); font: inherit; color: var(--ag-ink); }
.ag-search input:focus { outline: none; box-shadow: var(--ag-shadow), inset 0 0 0 1.5px var(--ag-gold); }
.ag-light-form { display: grid; gap: 12px; padding: clamp(20px, 3vw, 30px); border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: var(--ag-shadow); }
.ag-light-form .ag-field label { color: var(--ag-muted); }
.ag-light-form .ag-field input, .ag-light-form .ag-field textarea { background: var(--ag-porcelain); color: var(--ag-ink); box-shadow: inset 0 0 0 1px var(--ag-line); color-scheme: light; }
.ag-light-form .ag-field input:focus, .ag-light-form .ag-field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ag-gold-deep); }

.ag-toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 70; translate: -50% 16px; opacity: 0; padding: 12px 20px; border-radius: 14px; background: var(--ag-ink); color: var(--ag-porcelain); font-size: .9rem; box-shadow: var(--ag-shadow-lift); transition: opacity .3s, translate .4s var(--ag-ease); pointer-events: none; }
.ag-toast.is-on { opacity: 1; translate: -50% 0; }
.ag-js [data-stage]:not(.is-on) { display: none; }
.ag-stages { display: grid; gap: 14px; }

/* Reveal: elements stay visible; entering the screen only adds a settle motion ------------ */
.ag-rv.in { animation: settle .9s var(--ag-ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes settle { from { transform: translateY(22px); } }
.ag-rv-img.in img, img.rv-img.in { animation: unveil 1.2s var(--ag-ease) both; }
@keyframes unveil { from { clip-path: inset(6% 6% 6% 6% round 28px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ag-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .ag-marquee__dup { display: none; }
  .ag-sono__sweep { display: none; }
}

/* WordPress / Elementor specifics (appended to ag.css by scripts/port_css.py). ------------------------- */

/* Header: fixed at the top (it lives inside an Elementor template, where sticky has no room), with a spacer. */
.ag-header { position: fixed; top: env(safe-area-inset-top, 0px); inset-inline: 0; z-index: 40; transition: transform .45s var(--ag-ease); }
.ag-header .ag-dock { position: relative; top: auto; }
.ag-header.is-scrolled { transform: translateY(-40px); }
.ag-header.is-hidden { transform: translateY(-140%); }
.ag-header-space { height: 112px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--ag-night); }
body.elementor-editor-active .ag-header, body.elementor-editor-preview .ag-header, .elementor-edit-area .ag-header { position: relative; transform: none; }
body.elementor-editor-active .ag-header-space, .elementor-edit-area .ag-header-space { display: none; }
body.admin-bar .ag-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ag-header { top: 46px; } }

.ag-header.is-compact .ag-dock__bar::before { inset-block: 4px; }
.ag-panel--about .ag-panel__in { grid-template-columns: 260px minmax(0, 1fr); }
.ag-sheet__head img, .ag-dock__logo img { width: 158px; height: auto; }
.ag-sheet__head img { width: 140px; }

/* Widget parts that the prototype built with page markup. */
.ag-head { margin-block-end: 0; max-width: 760px; }
.ag-head__main { display: grid; gap: 14px; justify-items: start; }
.ag-head--center { margin-inline: auto; }
.ag-head--center .ag-head__main { justify-items: center; text-align: center; }
.ag-head--row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; max-width: none; }
@media (max-width: 767px) { .ag-head--row { grid-template-columns: minmax(0, 1fr); } }
.ag-faq-wrap .ag-head, .ag-journey__in .ag-head, .ag-why .ag-head { margin-block-end: clamp(24px, 3vw, 36px); }
.ag-trust--flat { margin-top: 0; }
.ag-book { position: relative; isolation: isolate; } /* keeps the rotating mark inside the booking band */
.ag-filters { margin-block-end: 20px; }
.ag-steps__note { margin-top: 28px; }
.ag-pair--one { grid-template-columns: minmax(0, 1fr); }
.ag-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-gallery--pair img:nth-child(2) { margin-top: 36px; }
.ag-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .ag-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ag-cards--4 { grid-template-columns: minmax(0, 1fr); } }
.ag-callout__body { display: grid; gap: 8px; }
.ag-callout__text { color: var(--ag-muted); }
.ag-callout__text p { margin: 0 0 .6em; }
.ag-callout__text p:last-child { margin: 0; }
.ag-callout--white { background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); }
.ag-callout--ok { background: rgba(47, 122, 90, .08); }
.ag-callout--ok h3 { color: var(--ag-ok); }
.ag-callout--night .ag-callout__text { color: var(--ag-on-night-mute); }
.ag-callout--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.ag-faq__empty { padding: 20px; }
.ag-phero--text .ag-phero__in { grid-template-columns: minmax(0, 1fr); }
.ag-night::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--ag-sx, 50%) var(--ag-sy, 0%), rgba(241, 223, 160, .09), transparent 70%); }

/* English (LTR) pages: forward arrows point right. */
:root:not([dir="rtl"]) .ag-ic--arrow { scale: -1 1; }

/* Section backgrounds, set on Elementor containers (Advanced → CSS Classes). */
.e-con.ag-night, .e-con.ag-blush { --background-color: transparent; }
.e-con.ag-blush { background-color: var(--ag-blush); }
.e-con.ag-porcelain { background-color: var(--ag-porcelain); }

/* Core widgets inside our sections. */
.elementor-widget-heading .elementor-heading-title { line-height: 1.4; font-family: var(--ag-f-display); color: var(--ag-ink); }
.ag-night .elementor-widget-heading .elementor-heading-title { color: var(--ag-on-night); }
.elementor-widget-heading.ag-prose-h .elementor-heading-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
.elementor-widget-text-editor.ag-prose { max-width: 72ch; }
.ag-prose p { margin: 0 0 1em; }
.ag-prose p:last-child { margin-bottom: 0; }
.ag-prose ul, .ag-prose ol { margin: 0 0 1em; padding-inline-start: 1.3em; display: grid; gap: 8px; }
.ag-prose li::marker { color: var(--ag-gold); }
.ag-prose strong { color: var(--ag-ink); font-weight: 500; }
.ag-prose figure { margin: 0 0 14px; display: inline-grid; gap: 6px; width: min(100%, 360px); vertical-align: top; margin-inline-end: 12px; }
.ag-prose figure img { border-radius: var(--ag-r-md); background: #000; width: 100%; height: auto; }
.ag-prose figcaption { font-size: .85rem; color: var(--ag-muted); }
.ag-checks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ag-cv ul { margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-anchor { scroll-margin-top: 120px; }
[id] { scroll-margin-top: 120px; }

/* Hello reset leftovers: our buttons never take the theme's pink. */
.ag-site button, .ag-site [type="button"], .ag-site [type="submit"] { text-transform: none; }
.ag-site button:hover, .ag-site button:focus { background-color: inherit; }

/* Clinics: consultation fee and branches whose hours are given on the phone. */
.ag-clinic__fee { color: var(--ag-gold-deep); font-weight: 500; }
.ag-sched td.ag-sched__appt { color: var(--ag-muted); font-size: .86rem; text-align: start; white-space: normal; } /* start, so phones see it before the table scrolls */
.ag-pick__fee { display: block; margin-top: 2px; color: var(--ag-gold-hi); font-size: .78rem; }

/* Booking on WhatsApp (AG Booking): one card per clinic with its button. */
.ag-wab { gap: 14px; }
.ag-wab__q { font: 600 1.3rem/1.4 var(--ag-f-display); color: var(--ag-on-night); margin: 0; }
.ag-wab__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-wab__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: var(--ag-r-md); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--ag-night-line); transition: box-shadow .25s, background-color .25s; }
.ag-wab__card.is-picked { box-shadow: inset 0 0 0 1.5px var(--ag-gold); background: rgba(241, 223, 160, .08); }
.ag-wab__card.is-online { background: rgba(241, 223, 160, .05); }
.ag-wab__info { display: grid; gap: 3px; min-width: 0; }
.ag-wab__info b { color: var(--ag-on-night); font-weight: 500; }
.ag-wab__info small { color: var(--ag-on-night-mute); font-size: .84rem; }
.ag-wab__info em { font-style: normal; color: var(--ag-gold-hi); font-size: .84rem; }
.ag-wab__card .ag-btn { min-height: 46px; padding: 0 20px; font-size: .95rem; }
@media (max-width: 599px) { .ag-wab__card { grid-template-columns: minmax(0, 1fr); } .ag-wab__card .ag-btn { width: 100%; } }

/* Articles: cards, topic links, the article page and topic pages (AG Core Articles + AG Articles widget). */
.ag-posts { display: grid; gap: 22px; }
.ag-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .ag-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ag-posts__grid { grid-template-columns: minmax(0, 1fr); } }
.ag-posts__empty { color: var(--ag-muted); }
.ag-post { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); overflow: hidden; transition: box-shadow .4s var(--ag-ease), transform .4s var(--ag-ease); }
.ag-post:hover { box-shadow: var(--ag-shadow-lift); transform: translateY(-3px); }
.ag-post:focus-within { box-shadow: 0 0 0 2px var(--ag-gold), var(--ag-shadow-lift); }
.ag-post__media { aspect-ratio: 1200 / 630; background: var(--ag-night); overflow: hidden; }
.ag-post__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ag-ease); }
.ag-post:hover .ag-post__img { transform: scale(1.04); }
.ag-post__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; }
.ag-post__topic { position: relative; z-index: 1; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--ag-blush); color: var(--ag-mauve-deep); font-size: .76rem; text-decoration: none; }
.ag-post__title { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.ag-post__title a { color: var(--ag-ink); text-decoration: none; outline: none; }
.ag-post__title a::after { content: ""; position: absolute; inset: 0; } /* the whole card opens the article */
.ag-post__ex { margin: 0; color: var(--ag-muted); font-size: .92rem; }
.ag-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: auto 0 0; padding-top: 4px; color: var(--ag-muted); font-size: .8rem; }
.ag-post__meta .ag-ic { width: 15px; height: 15px; color: var(--ag-gold-deep); }
.ag-post__meta > span:not(.ag-post__go)::before { content: "·"; margin-inline-end: 10px; }
.ag-post__go { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--ag-gold-deep); font-weight: 500; }
.ag-post__go .ag-ic { transition: transform .35s var(--ag-ease); }
.ag-post:hover .ag-post__go .ag-ic { transform: translateX(calc(-3px * var(--ag-x))); }

/* Articles page (AG Articles, layout "index"): the newest article wide, a bar with topics and search,
   and cards that the topics and search filter in place. */
.ag-pindex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ag-posts { grid-template-columns: minmax(0, 1fr); }
.ag-pindex__bar .ag-chips { min-width: 0; }
.ag-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); overflow: hidden; transition: box-shadow .4s var(--ag-ease), transform .4s var(--ag-ease); }
.ag-feature:hover { box-shadow: var(--ag-shadow-lift); transform: translateY(-3px); }
.ag-feature:focus-within { box-shadow: 0 0 0 2px var(--ag-gold), var(--ag-shadow-lift); }
.ag-feature__media { position: relative; display: grid; align-items: center; overflow: hidden; background: var(--ag-night); }
.ag-feature__fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.15); transform: scale(1.25); opacity: .75; }
.ag-feature__img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .7s var(--ag-ease); }
.ag-feature:hover .ag-feature__img { transform: scale(1.03); }
.ag-feature__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(22px, 3.4vw, 44px); }
.ag-feature__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ag-feature__new { padding: 3px 10px; border-radius: 999px; background: var(--ag-night); color: var(--ag-gold-hi); font-size: .76rem; }
.ag-feature__title { margin: 0; font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.05rem); line-height: 1.4; text-wrap: balance; }
.ag-feature__title a { color: var(--ag-ink); text-decoration: none; outline: none; }
.ag-feature__title a::after { content: ""; position: absolute; inset: 0; }
.ag-feature__ex { margin: 0; max-width: 46ch; color: var(--ag-muted); }
.ag-feature .ag-post__meta { margin: 0; width: auto; }
.ag-feature__btn { pointer-events: none; min-height: 46px; padding: 0 22px; font-size: .95rem; }
.ag-pindex__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.ag-pindex__search { display: none; align-items: center; gap: 8px; flex: 0 1 300px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); color: var(--ag-muted); }
.ag-js .ag-pindex__search { display: flex; } /* the search needs ag.js */
.ag-pindex__search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ag-gold); }
.ag-pindex__search .ag-ic { flex: none; width: 18px; height: 18px; }
.ag-pindex__search input[type="search"] { flex: 1; min-width: 0; min-height: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: var(--ag-ink); font: inherit; font-size: .92rem; }
.ag-pindex__count { margin: 0; color: var(--ag-muted); font-size: .9rem; }
.ag-pindex__none { margin: 0; padding: 28px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); color: var(--ag-muted); text-align: center; }
.ag-pindex__none a { color: var(--ag-mauve-deep); }
.ag-pindex:not(.is-filtering) .ag-post.is-lead, .ag-post.is-out, .ag-feature.is-out { display: none; }
@media (max-width: 899px) { .ag-feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .ag-pindex__search { flex-basis: 100%; } .ag-pindex__bar .ag-chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .ag-pindex__bar .ag-chips a { flex: none; } }

/* Branch pages: one clinic card, photos beside the details on wide screens; clinic names link to their branch page. */
.ag-clinics.ag-clinics--one { grid-template-columns: minmax(0, 1fr); max-width: none; }
@media (min-width: 768px) { .ag-clinics--one .ag-clinic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; } }
.ag-clinic__name h3 a { color: inherit; text-decoration: none; }
.ag-clinic__name h3 a:hover, .ag-clinic__name h3 a:focus-visible { color: var(--ag-gold-deep); text-decoration: underline; text-underline-offset: 4px; }

/* AG Hero with the badge as the H1 (doctor and specialty for search engines): the badge keeps its pill look,
   the tagline keeps the H1 look. */
.ag-hero h1.ag-hero__badge { font: 400 .86rem/1.5 var(--ag-f-body); color: var(--ag-mauve-deep); text-wrap: wrap; }
.ag-hero p.ag-hero__title { margin: 0; font-family: var(--ag-f-display); font-weight: 700; color: var(--ag-ink); font-size: var(--ag-s-1); line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
.ag-hero p.ag-hero__title .ag-w { display: inline-block; animation: wordUp .9s var(--ag-ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }

/* Text-only page heroes: the glow was a 760px square cut by the boxed container into a hard-edged block;
   now an ellipse that fades out inside the hero. */
.ag-phero--text::before { inset: 0 auto 0 0; width: 55%; height: 100%; max-width: none; max-height: none; background: radial-gradient(closest-side, rgba(154, 122, 142, .16), transparent); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); color: var(--ag-ink); font-size: .9rem; text-decoration: none; }
.ag-chips a span { color: var(--ag-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.ag-chips a.is-on { background: var(--ag-ink); color: var(--ag-porcelain); box-shadow: none; }
.ag-chips a.is-on span { color: var(--ag-on-night-mute); }

.ag-article { display: grid; gap: 28px; padding-block: 24px 88px; }
.ag-article__head { display: grid; gap: 14px; justify-items: start; }
.ag-article__title { max-width: 24em; margin: 0; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.35; text-wrap: balance; }
.ag-article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; color: var(--ag-muted); font-size: .88rem; }
.ag-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ag-article__meta .ag-ic { width: 16px; height: 16px; color: var(--ag-gold-deep); }
.ag-article__meta b { color: var(--ag-ink); font-weight: 500; }
.ag-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ag-article__main { display: grid; gap: 24px; min-width: 0; }
.ag-article__cover { margin: 0; }
.ag-article__cover img { display: block; width: 100%; height: auto; border-radius: var(--ag-r-lg); background: var(--ag-night); }
.ag-article__body { max-width: 72ch; font-size: 1.04rem; line-height: 1.95; }
.ag-article__body h2 { margin: 1.6em 0 .6em; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); scroll-margin-top: 120px; }
.ag-article__body h3 { margin: 1.2em 0 .4em; font-size: 1.15rem; }
.ag-article__body a { color: var(--ag-gold-deep); text-underline-offset: 3px; }
.ag-article__body > :first-child { margin-top: 0; }
.ag-alert, .ag-tip { margin: 1.4em 0; padding: 16px 20px; border-radius: var(--ag-r-md); font-size: .98rem; }
.ag-alert { background: rgba(192, 86, 106, .07); box-shadow: inset 0 0 0 1px rgba(192, 86, 106, .28); }
.ag-alert > strong:first-child { display: block; margin-bottom: 6px; color: #9A3B4E; }
.ag-tip { background: var(--ag-blush); }
.ag-tip > strong:first-child { display: block; margin-bottom: 6px; color: var(--ag-mauve-deep); }
.ag-alert ul, .ag-tip ul { margin-bottom: 0; }
/* Article parts of the 2026-11-18 format (content/articles/WRITING.md): summary, tables, questions, sources, video. */
.ag-sum { margin: 1.2em 0 1.6em; padding: 16px 20px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); border-inline-start: 4px solid var(--ag-gold); font-size: .98rem; }
.ag-sum > strong:first-child { display: block; margin-bottom: 6px; color: var(--ag-gold-deep); font-family: var(--ag-f-display); font-size: 1.05rem; }
.ag-sum ul { margin-bottom: 0; }
.ag-table { margin: 1.2em 0 1.6em; overflow-x: auto; border-radius: var(--ag-r-md); box-shadow: inset 0 0 0 1px var(--ag-line); background: var(--ag-white); }
.ag-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .94rem; line-height: 1.7; }
.ag-table th, .ag-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--ag-line); }
.ag-table th { background: var(--ag-blush); color: var(--ag-ink); font-weight: 500; }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-qa { margin-top: 1.6em; }
.ag-qa details { border-bottom: 1px solid var(--ag-line); }
.ag-qa summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; color: var(--ag-ink); font-weight: 500; list-style: none; }
.ag-qa summary::-webkit-details-marker { display: none; }
.ag-qa summary::after { content: "+"; flex: none; color: var(--ag-gold-deep); font-size: 1.3rem; line-height: 1; }
.ag-qa details[open] summary::after { content: "−"; }
.ag-qa details > p { margin: 0 0 14px; }
.ag-sources { margin-top: 1.8em; font-size: .9rem; color: var(--ag-muted); }
.ag-article__body .ag-sources h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.ag-sources ol { gap: 4px; }
.ag-sources a { color: var(--ag-muted); overflow-wrap: anywhere; }
.ag-prose figure.ag-yt { display: grid; width: 100%; margin: 1.4em 0; }
.ag-yt a, .ag-yt__frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ag-r-md); background: var(--ag-night); }
.ag-yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .82; transition: opacity .3s var(--ag-ease); }
.ag-yt a:hover img { opacity: 1; }
.ag-yt a::before { content: ""; position: absolute; inset: 50% auto auto 50%; z-index: 1; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(27, 23, 29, .82); box-shadow: inset 0 0 0 1.5px var(--ag-gold-hi); }
.ag-yt a::after { content: ""; position: absolute; inset: 50% auto auto 50%; z-index: 2; margin: -10px 0 0 -6px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--ag-gold-hi); }
.ag-yt a span { position: absolute; inset: auto 0 0; z-index: 1; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(27, 23, 29, .85)); color: var(--ag-on-night); font-size: .92rem; }
.ag-yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Pregnancy calculator (AG Pregnancy Calculator, shortcode [ag_pregnancy_calc]). */
.ag-calc { display: grid; gap: 18px; margin: 1.4em 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--ag-r-lg); background: var(--ag-white); box-shadow: var(--ag-shadow); }
.ag-calc__title { margin: 0; font-size: var(--ag-s-3); }
.ag-calc__form { display: none; gap: 16px; }
.ag-js .ag-calc__form { display: grid; }
.ag-js .ag-calc__nojs { display: none; }
.ag-calc__nojs { margin: 0; color: var(--ag-muted); }
.ag-calc fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ag-calc legend { margin-bottom: 8px; color: var(--ag-ink); font-weight: 500; }
.ag-calc__mode { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-calc__mode legend { flex-basis: 100%; }
.ag-calc__mode label, .ag-calc__age label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ag-porcelain); box-shadow: inset 0 0 0 1px var(--ag-line); cursor: pointer; }
.ag-calc__mode label:has(input:checked), .ag-calc__age label:has(input:checked) { background: var(--ag-blush); box-shadow: inset 0 0 0 1.5px var(--ag-gold-deep); color: var(--ag-ink); }
.ag-calc input[type="radio"] { accent-color: var(--ag-gold-deep); }
.ag-calc__fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ag-calc__fields[hidden] { display: none; }
.ag-calc__field { display: grid; gap: 6px; margin: 0; }
.ag-calc__age { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-calc__age legend { flex-basis: 100%; margin-bottom: 0; }
.ag-calc__field label { color: var(--ag-ink); font-weight: 500; }
.ag-calc input[type="date"], .ag-calc select { min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--ag-r-sm); background: var(--ag-porcelain); box-shadow: inset 0 0 0 1px var(--ag-mist); color: var(--ag-ink); font: inherit; }
.ag-calc input[type="date"]:focus-visible, .ag-calc select:focus-visible { outline: 2px solid var(--ag-gold-deep); outline-offset: 1px; }
.ag-calc__actions { margin: 0; }
.ag-calc__err { margin: 0; color: #9A3B4E; font-size: .95rem; }
.ag-calc__out { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ag-line); }
.ag-calc__out[hidden] { display: none; }
.ag-calc__big { margin: 0; color: var(--ag-ink); font-family: var(--ag-f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.4; }
.ag-calc__big small { display: block; color: var(--ag-muted); font-family: var(--ag-f-body); font-size: .95rem; }
.ag-calc__facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; }
.ag-calc__facts div { padding: 12px 14px; border-radius: var(--ag-r-sm); background: var(--ag-porcelain); }
.ag-calc__facts dt { color: var(--ag-muted); font-size: .85rem; }
.ag-calc__facts dd { margin: 2px 0 0; color: var(--ag-ink); font-weight: 500; }
.ag-calc__next { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--ag-r-md); background: var(--ag-blush); }
.ag-calc__next p { margin: 0; }
.ag-calc__next-title { color: var(--ag-mauve-deep); font-weight: 500; }
.ag-calc__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px !important; }
.ag-calc__note { margin: 0; color: var(--ag-muted); font-size: .86rem; }
.ag-article__review { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 16px; border-radius: var(--ag-r-md); background: rgba(47, 122, 90, .08); color: var(--ag-ok); font-size: .92rem; }
.ag-article__note { max-width: 72ch; margin: 0; padding-top: 14px; border-top: 1px solid var(--ag-line); color: var(--ag-muted); font-size: .86rem; }
.ag-article__aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.ag-toc-box { padding: 18px 20px; border-radius: var(--ag-r-md); background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); font-size: .9rem; }
.ag-toc-box__title, .ag-toc-box summary { margin: 0 0 8px; color: var(--ag-ink); font-weight: 500; cursor: pointer; }
.ag-toc-box--inline summary { margin: 0; }
.ag-toc-box--inline[open] summary { margin-bottom: 8px; }
.ag-toc-box ol { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.2em; }
.ag-toc-box li::marker { color: var(--ag-gold); }
.ag-toc-box a { color: var(--ag-char); text-decoration: none; }
.ag-toc-box a:hover { color: var(--ag-gold-deep); text-decoration: underline; }
.ag-article__cta { display: grid; gap: 10px; padding: 20px; border-radius: var(--ag-r-md); background: var(--ag-night); color: var(--ag-on-night); }
.ag-article__cta p { margin: 0; color: var(--ag-on-night-mute); font-size: .92rem; }
.ag-article__cta .ag-article__cta-title { color: var(--ag-gold-hi); font-family: var(--ag-f-display); font-size: 1.15rem; }
.ag-article__cta .ag-btn--line { color: var(--ag-on-night); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.ag-article__cta .ag-link-arrow { color: var(--ag-gold-hi); }
.ag-article__more, .ag-topic__list { display: grid; gap: 22px; }
.ag-article__more { padding-top: 28px; border-top: 1px solid var(--ag-line); }
.ag-topic .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-topic .page-numbers { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 999px; background: var(--ag-white); box-shadow: inset 0 0 0 1px var(--ag-line); color: var(--ag-ink); text-decoration: none; }
.ag-topic .page-numbers.current { background: var(--ag-ink); color: var(--ag-porcelain); }
@media (min-width: 1024px) { .ag-toc-box--inline { display: none; } }
@media (max-width: 1023px) {
	.ag-article__layout { grid-template-columns: minmax(0, 1fr); }
	.ag-article__aside { position: static; }
	.ag-article__aside .ag-toc-box { display: none; }
}
