/*
 * Non-text contrast (WCAG 2.2 SC 1.4.11, minimum 3:1), computed with the WCAG relative-luminance formula.
 *
 *   token             colour    against                         ratio
 *   --focus           #0f766e   #ffffff page                    5.47
 *                               #f7faf9 dialog steps            5.21
 *                               #f3f8f6 tinted sections         5.10
 *                               #ebf6f1 hero                    4.95
 *                               #e8f5f1 mint                    4.89
 *   --focus-on-dark   #ffffff   #0b5d55 call-to-action band     7.75
 *                               #0a3934 top bar                12.7
 *                               #0f2928 footer                 15.3
 *   (video frames, skip link, floating WhatsApp button: white ring with its own #0f2928 halo, 15.3)
 *   --field-border    #6f8b85   #ffffff field background        3.68
 *
 * The focus ring is drawn outside the control (outline-offset), so it is compared with the section behind it.
 * tests/e2e/contrast.spec.cjs measures both tokens in the browser.
 */
:root {
    --navy: #0f172a;
    --muted: #50636a;
    --teal: #0f766e;
    --deep: #095c54;
    --emerald: #10b981;
    --line: #dbe8e5;
    --mint: #e8f5f1;
    --paper: #fff;
    --focus: #0f766e;
    --focus-on-dark: #fff;
    --field-border: #6f8b85;
    --heading: "Plus Jakarta Sans", system-ui, sans-serif;
    --body: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--navy);
    font-family: var(--body);
    font-size: 16px;
    scroll-behavior: smooth;
}
[lang=ar] { --body: Tajawal, system-ui, sans-serif; --heading: Cairo, Tajawal, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.24; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
/* On the dark bands the ring is white (see the contrast table at the top of this file). */
.topbar :focus-visible, .cta-band :focus-visible, .footer :focus-visible { outline-color: var(--focus-on-dark); }
/* Over a video poster the picture behind the ring is unknown, so the ring carries its own dark halo: white on #0f2928
   is 15.3:1 whatever the image shows. */
/* Fixed controls float over whatever section is scrolled beneath them (dark top bar, dark footer), so their ring
   carries its own halo like the rings over pictures below. */
.skip-link:focus-visible, .float-wa:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 2px; box-shadow: 0 0 0 7px #0f2928; }
.youtube-frame :focus-visible, .post-video :focus-visible,
/* The player's own controls take the keyboard focus inside the video element; the frame is then marked through
   :focus-within (the browser's default for a focused video is an inset ring, lost on a dark picture). */
.post-video video:focus, .post-video video:focus-within { outline: 3px solid var(--focus-on-dark); outline-offset: 2px; box-shadow: 0 0 0 7px #0f2928; }
/* Once the YouTube player is loaded it fills the frame, which clips anything drawn around the player. The frame
   itself is outlined instead while focus is inside it; that ring lies on the page background (5.47:1 on white). */
.youtube-frame:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 10; padding: 10px; background: white; transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.icon { inline-size: 21px; block-size: 21px; flex: 0 0 auto; }
.topbar { background: #0a3934; color: #effbf8; font-size: .85rem; font-weight: 600; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; gap: 29px; }
.topbar span { display: flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: #7ce1c5; }
.header { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid #e4eeeb; }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand strong { display: block; font: 900 1.34rem/1.22 var(--heading); white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--teal); font: 750 .53rem/1.4 var(--body); letter-spacing: .11em; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--teal); object-fit: contain; }
.brand-mark .icon { width: 26px; height: 26px; }
.navigation { display: flex; align-items: center; gap: clamp(11px, 1.55vw, 26px); }
.navigation a { display: block; white-space: nowrap; position: relative; padding: 26px 0 23px; font-weight: 700; font-size: .92rem; color: #34464b; }
.navigation a:hover, .navigation a[aria-current] { color: var(--teal); }
.navigation a[aria-current]::after { content: ""; position: absolute; bottom: 14px; inset-inline: 0; height: 2px; background: var(--emerald); border-radius: 4px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.language { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding-inline: 9px; border: 1px solid #cddfdb; border-radius: 9px; font-weight: 800; font-size: .79rem; color: var(--deep); white-space: nowrap; }
.language:hover { background: var(--mint); border-color: #b0d6ce; }
.language .icon { width: 17px; height: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; min-height: 45px; border-radius: 10px; font-weight: 800; line-height: 1.23; white-space: nowrap; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; }
.btn-primary { color: #fff; background: var(--teal); box-shadow: 0 6px 15px #106e6521; }
.btn-primary:hover:not(:disabled) { background: var(--deep); }
.btn-secondary { color: var(--deep); background: #fff; border-color: #cddfdb; }
.btn-secondary:hover { background: var(--mint); border-color: #b0d6ce; }
.header-book { min-height: 42px; font-size: .86rem; padding-inline: 12px; }
.header-book .icon { width: 17px; height: 17px; }
.icon-button { display: grid; place-items: center; background: #fff; color: var(--deep); padding: 0; border: 1px solid var(--line); border-radius: 9px; width: 40px; height: 40px; }
.icon-button:hover:not(:disabled) { background: var(--mint); }
.menu-toggle { display: none; }
.hero { background: linear-gradient(112deg, #ebf6f1, #f6faf7 62%, #eef7f4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(30px, 5vw, 78px); min-height: 565px; padding-block: 54px 80px; }
.hero-copy { padding-block: 7px; }
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #c9e7dc; border-radius: 30px; background: #e8f6ef; color: #0a6458; font-size: .82rem; font-weight: 800; }
.eyebrow span { background: var(--emerald); width: 7px; height: 7px; border-radius: 50%; }
.hero h1 { font-size: clamp(2.5rem, 4.75vw, 4.6rem); font-weight: 900; line-height: 1.22; margin-block: 19px 18px; letter-spacing: -.045em; }
[lang=ar] .hero h1 { letter-spacing: -.037em; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-copy > p { max-width: 440px; font-size: clamp(1.02rem, 1.5vw, 1.25rem); line-height: 1.7; color: #435a5d; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn { min-height: 49px; }
.hero-stats { display: flex; gap: clamp(13px, 2vw, 25px); margin-top: 33px; }
.hero-stats > div { display: grid; gap: 2px; min-width: 72px; }
.hero-stats > div + div { border-inline-start: 1px solid #d0e5df; padding-inline-start: clamp(13px, 2vw, 25px); }
.hero-stats strong { font-family: var(--heading); font-size: 1.65rem; line-height: 1.08; color: var(--teal); font-weight: 900; }
.hero-stats span { font-size: .82rem; font-weight: 700; color: #486263; white-space: nowrap; }
.hero-figure { position: relative; isolation: isolate; min-height: 420px; border-radius: 25px; overflow: hidden; background: #dce9e2; box-shadow: 0 17px 45px rgba(32,78,66,.13); }
.hero-figure img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 66% 45%; }
.hero-figure figcaption { position: absolute; inset-block-end: 17px; inset-inline-start: 17px; background: #fff; padding: 8px 11px; border-radius: 11px; display: flex; align-items: center; gap: 8px; color: #203a39; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 24px #203d3624; }
.photo-icon, .quick-icon { display: grid; place-items: center; color: var(--teal); background: var(--mint); border-radius: 10px; }
.photo-icon { width: 31px; height: 31px; }
.photo-icon .icon { width: 17px; height: 17px; }
.quick-wrap { position: relative; margin-top: -42px; z-index: 1; }
.quick { display: grid; grid-template-columns: 1.05fr 1.10fr .65fr; align-items: center; gap: clamp(15px, 3vw, 44px); background: white; border-radius: 16px; border: 1px solid #dfebe7; padding: 20px 24px; box-shadow: 0 12px 38px #18483d13; }
.quick-title { display: flex; gap: 12px; align-items: center; }
.quick-icon { width: 49px; height: 49px; flex: 0 0 auto; }
.quick-icon .icon { width: 25px; height: 25px; }
.quick h2 { font-size: 1.13rem; font-weight: 900; }
.quick p { color: var(--muted); margin-top: 2px; font-size: .91rem; }
.quick-field { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-weight: 800; }
.quick select { min-width: 0; }
.quick-button { width: 100%; }
.section { padding-block: 72px; scroll-margin-top: 20px; }
.section-head { margin-bottom: 27px; }
.section-head h2, .cta-band h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 900; letter-spacing: -.035em; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 1.04rem; }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--teal); font-size: .84rem; font-weight: 800; }
.specialty-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.specialty-card { border: 1px solid var(--line); border-radius: 16px; padding: 23px; background: #fff; }
.category-icon { width: 51px; height: 51px; display: grid; place-items: center; background: var(--mint); color: var(--teal); border-radius: 13px; margin-bottom: 15px; }
.category-icon .icon { width: 29px; height: 29px; }
.specialty-card h3, .doctor-card h3, .article-card h3 { font-size: 1.24rem; font-weight: 900; }
.specialty-card p { color: var(--muted); min-height: 49px; margin-top: 7px; }
.service-links { display: grid; gap: 4px; padding-block: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
.service-links button { display: flex; align-items: center; gap: 7px; color: #304e4a; background: none; border: 0; padding: 6px 0; text-align: start; }
.service-links button:hover { color: var(--teal); text-decoration: underline; }
.service-links .icon { width: 15px; height: 15px; color: var(--teal); }
.text-link { background: none; border: none; padding: 0; display: inline-block; color: var(--teal); font-weight: 800; text-decoration: underline; text-decoration-color: #9bcec3; text-underline-offset: 5px; }
.text-link:hover { color: var(--deep); text-decoration-color: currentColor; }
.doctors-section { background: #f3f8f6; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { border: 1px solid var(--line); color: #36544e; background: #fff; border-radius: 30px; padding: 7px 13px; font-weight: 800; }
.filters button:hover { border-color: var(--teal); }
.filters button[aria-pressed=true] { background: var(--teal); color: #fff; border-color: var(--teal); }
.doctor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.doctor-card, .article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doctor-photo { aspect-ratio: 1.36; overflow: hidden; background: #deeee9; display: grid; place-items: center; color: var(--teal); }
.doctor-photo img, .article-image img { width: 100%; height: 100%; object-fit: cover; }
.doctor-body { padding: 15px; display: grid; gap: 7px; }
.doctor-specialty { color: var(--teal); font-weight: 800; font-size: .88rem; }
.doctor-bio { color: var(--muted); font-size: .94rem; min-height: 46px; }
.doctor-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #4a625f; font-size: .82rem; }
.doctor-meta .icon { width: 15px; height: 15px; }
.doctor-meta span + span { border-inline-start: 1px solid var(--line); padding-inline-start: 7px; }
.doctor-body .btn { margin-top: 6px; font-size: .89rem; padding: 10px; white-space: normal; }
.no-doctors { padding-block: 10px; color: var(--muted); }
.article-image { display: block; aspect-ratio: 1.85; overflow: hidden; background: var(--mint); }
.article-image img { transition: transform .4s; }
.article-image:hover img { transform: scale(1.035); }
.article-card-body { display: grid; gap: 9px; padding: 17px; }
.article-card-body p { color: var(--muted); }
.cta-wrap { padding-bottom: 63px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 35px; border-radius: 17px; background: radial-gradient(ellipse at 4% 115%, #13897c, transparent 55%), #0b5d55; color: #fff; }
.cta-band h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); }
.cta-band p { color: #deeeea; margin-top: 7px; }
.cta-band .btn { background: #fff; color: var(--deep); }
.footer { background: #0f2928; color: #d6e9e3; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; padding-block: 38px 28px; }
.footer .brand strong, .footer h2 { color: #fff; }
.footer .brand { margin-bottom: 11px; }
.footer h2 { font-size: 1.03rem; margin: 9px 0 12px; }
.footer p { max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 5px; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; border-top: 1px solid #31504b; font-size: .82rem; color: #b4d0c8; }
.float-wa { position: fixed; z-index: 4; inset-inline-end: 23px; bottom: 23px; display: grid; place-items: center; color: white; background: var(--teal); width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 9px 19px #0b524c44; }
.float-wa:hover { background: var(--deep); }
.float-wa .icon { width: 25px; height: 25px; }
.inner-hero { background: #edf7f3; padding-block: 37px 51px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #49655f; font-weight: 700; font-size: .83rem; margin-bottom: 17px; }
.breadcrumbs a { color: var(--teal); }
.breadcrumbs .icon { width: 15px; height: 15px; }
[dir=rtl] .breadcrumbs .icon { transform: rotate(180deg); }
.inner-hero h1, .confirmation-panel h1 { font-size: clamp(2rem, 4.4vw, 3.65rem); font-weight: 900; letter-spacing: -.04em; }
.inner-hero p, .confirmation-panel > p:not(.eyebrow) { color: var(--muted); font-size: 1.13rem; margin-top: 8px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: start; }
.about-grid img, .post-cover, .map { border-radius: 17px; }
.prose { max-width: 780px; margin-inline: auto; color: #344f4b; font-size: 1.12rem; line-height: 1.9; }
.prose h2 { color: var(--navy); margin-bottom: 13px; }
.prose .btn { margin-top: 16px; }
.post-cover { width: 100%; max-height: 390px; object-fit: cover; margin-bottom: 20px; }
.contact-panel { display: grid; gap: 19px; }
.contact-panel > div { display: flex; gap: 11px; align-items: flex-start; }
.contact-panel .icon { color: var(--teal); }
.contact-panel h2 { font-size: 1.09rem; }
.contact-panel p { margin-top: 4px; color: var(--muted); }
.contact-panel a:not(.btn) { display: block; color: var(--teal); }
.contact-panel .btn { width: fit-content; }
.contact-panel .btn .icon { color: inherit; }
.map { width: 100%; min-height: 330px; border: 1px solid var(--line); }
.confirmation { background: #fff; }
.confirmation-panel { margin: auto; width: min(660px, 100%); text-align: center; }
.confirmation-panel .eyebrow { margin-block: 16px 13px; }
.confirmation-panel .hero-actions { justify-content: center; margin-bottom: 16px; }
.confirm-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-inline: auto; border-radius: 21px; background: var(--mint); color: var(--teal); }
.confirm-icon .icon { width: 35px; height: 35px; }
.receipt { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; text-align: start; border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: #f5faf8; margin-top: 24px; }
.receipt dt { color: var(--muted); font-size: .88rem; }
.receipt dd { margin: 3px 0 0; font-weight: 800; text-align: match-parent; }
.dialog-open { overflow: hidden; }
.booking-dialog { padding: 0; border: 1px solid var(--line); border-radius: 19px; width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 18px 90px #0e2f2e50; color: var(--navy); }
.booking-dialog::backdrop { background: #092c2db0; backdrop-filter: blur(3px); }
.dialog-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 19px 23px 14px; }
.dialog-head h2 { font-size: 1.28rem; font-weight: 900; }
.dialog-head p { font-size: .87rem; color: var(--muted); }
.booking-steps { list-style: none; padding: 13px 20px; margin: 0; border-block: 1px solid var(--line); background: #f7faf9; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.booking-steps li { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; color: var(--muted); font-size: .81rem; }
.booking-steps li span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #eaf1ee; flex: 0 0 auto; }
.booking-steps li[aria-current] { color: var(--teal); font-weight: 900; }
.booking-steps li[aria-current] span { background: var(--teal); color: white; }
.dialog-body { padding: 19px 23px; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 13px 23px; border-top: 1px solid var(--line); }
/* Long labels wrap inside the button instead of pushing a neighbour out of the dialog. */
.dialog-footer .btn { white-space: normal; min-width: 0; max-width: 100%; text-align: center; }
.booking-pane { display: grid; gap: 12px; }
.booking-pane label { display: block; font-weight: 800; }
.booking-pane label small { color: var(--muted); font-weight: 600; }
select, input:not([type=file]), textarea { width: 100%; border: 1px solid var(--field-border); border-radius: 8px; background-color: #fff; padding: 8px 11px; min-height: 43px; color: var(--navy); }
select { appearance: none; padding-inline-end: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%230f766e' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
[dir=rtl] select { background-position: left 11px center; }
select:disabled { color: #60726f; background-color: #f5f8f7; }
.booking-pane label > input, .booking-pane label > select, .booking-pane label > textarea, .booking-field > input { margin-top: 4px; }
.booking-pane input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; margin-inline-end: 8px; vertical-align: -3px; accent-color: var(--teal); }
.booking-pane details { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.booking-pane summary { cursor: pointer; }
textarea { display: block; resize: vertical; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking-error { padding: 8px 11px; border-radius: 7px; color: #8f2525; background: #fff2f1; border: 1px solid #f7d3cd; margin-bottom: 12px; font-weight: 700; }
.booking-review { background: #eef7f3; border-radius: 8px; padding: 8px 11px; color: var(--deep); font-weight: 700; }
.month-navigation { display: flex; align-items: center; justify-content: space-between; }
.month-navigation strong { font-family: var(--heading); }
.month-navigation .icon-button { width: 35px; height: 35px; }
.month-navigation button:disabled { opacity: .4; }
[dir=ltr] .month-prev .icon, [dir=rtl] .month-next .icon { transform: rotate(180deg); }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-days .weekday { text-align: center; color: var(--muted); font-weight: 700; font-size: .8rem; }
.calendar-days button, .time-slots button { min-height: 35px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--deep); background: #fff; font-weight: 800; }
.calendar-days button:disabled { color: #6d807b; background: #f5f8f7; opacity: .72; }
.calendar-days button:hover:not(:disabled), .time-slots button:hover { background: var(--mint); }
.calendar-days button[aria-pressed=true], .time-slots button[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fff; }
.slot-status { color: var(--muted); }
.slot-status:empty, .time-slots:empty { display: none; }
.time-slots { display: grid; gap: 7px; max-height: 160px; overflow-y: auto; padding: 2px; }
.slot-group-heading { color: var(--muted); font-size: .84rem; font-weight: 800; margin-bottom: 4px; }
.slot-group-times { display: flex; flex-wrap: wrap; gap: 5px; }
.time-slots button { min-width: 58px; }
.upload-zone { display: flex; gap: 10px; background: #f8fbfa; border: 1px dashed #b6d2ca; padding: 10px; border-radius: 9px; }
.upload-zone p, .booking-privacy { font-size: .83rem; color: var(--muted); }
.booking-paused { margin-top: 18px; padding: 13px 16px; border: 1px solid #cddfdb; border-inline-start: 4px solid var(--teal); border-radius: 10px; background: #fff; color: var(--ink, #10231f); }
.booking-paused p { margin: 0; font-weight: 700; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px !important; }
.contact-links a { color: var(--deep); font-weight: 800; text-decoration: underline; text-underline-offset: .15em; }
.booking-paused-band { margin-top: 12px; }
.service-links .service-name { display: flex; align-items: center; gap: 7px; color: #304e4a; padding: 6px 0; }
.field-hint { display: block; margin-top: 4px; font-size: .83rem; color: var(--muted); }
.upload-zone > div { flex: 1; min-width: 0; }
.upload-icon, .booking-privacy .icon { color: var(--teal); }
.booking-privacy { display: flex; gap: 6px; align-items: center; }
.booking-privacy .icon { width: 17px; height: 17px; }
@media (max-width: 1120px) {
    .wrap { width: calc(100% - 64px); }
    .navigation { gap: 11px; }
    .navigation a { font-size: .84rem; }
    .header-actions { gap: 8px; }
    .header-book { font-size: .78rem; padding-inline: 9px; }
    .hero-grid { min-height: 510px; }
    .hero-figure { min-height: 368px; }
}
@media (min-width: 941px) and (max-width: 1280px) {
    .header-with-records .menu-toggle { display: grid; }
    .header-with-records .navigation {
        display: none; position: absolute; inset: 100% 0 auto; padding: 8px 32px;
        background: #fff; box-shadow: 0 13px 17px #25463d17;
    }
    .header-with-records .navigation.is-open { display: grid; grid-template-columns: 1fr 1fr; }
    .header-with-records .navigation a { padding: 8px 0; }
    .header-with-records .navigation a[aria-current]::after { display: none; }
}
@media (max-width: 940px) {
    .menu-toggle { display: grid; }
    .navigation { display: none; position: absolute; inset: 100% 0 auto; padding: 8px 32px; background: #fff; box-shadow: 0 13px 17px #25463d17; }
    .navigation.is-open { display: grid; grid-template-columns: 1fr 1fr; }
    .navigation a { padding: 8px 0; }
    .navigation a[aria-current]::after { display: none; }
    .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick { gap: 12px; }
    .quick-field { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 34px); }
    .topbar { font-size: .74rem; }
    .topbar-inner { gap: 11px; min-height: 32px; justify-content: center; }
    .topbar .icon { width: 13px; height: 13px; }
    .header-inner { min-height: 64px; gap: 8px; }
    .brand strong { font-size: 1.08rem; }
    .brand-mark { width: 37px; height: 37px; border-radius: 10px; }
    .brand-mark .icon { width: 22px; height: 22px; }
    .brand { gap: 7px; }
    .header-book { display: none; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 26px 57px; }
    .hero h1 { margin-block: 12px; font-size: clamp(2.75rem, 11vw, 3.55rem); }
    .hero-actions { margin-top: 16px; gap: 7px; }
    .hero-actions .btn { font-size: .9rem; min-height: 45px; padding-inline: 12px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
    .hero-stats > div { min-width: 0; }
    .hero-stats > div + div { padding-inline-start: 8px; }
    .hero-stats span { white-space: normal; }
    .hero-figure { min-height: 270px; border-radius: 16px; }
    .quick { grid-template-columns: 1fr; padding: 14px; }
    .quick-field { grid-template-columns: auto 1fr; gap: 8px; }
    .section { padding-block: 43px; }
    .section-head { margin-bottom: 16px; }
    .section-head-split { align-items: flex-start; flex-direction: column; }
    .specialty-grid, .article-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 12px; }
    .specialty-card { padding: 16px; }
    .specialty-card p { min-height: auto; }
    .doctor-grid { gap: 8px; }
    .doctor-body { padding: 10px; }
    .doctor-bio { font-size: .84rem; min-height: 49px; }
    .doctor-card h3 { font-size: 1.02rem; }
    .doctor-body .btn { min-height: 42px; padding: 5px; font-size: .78rem; }
    .cta-wrap { padding-bottom: 37px; }
    .cta-band { flex-direction: column; align-items: flex-start; gap: 12px; padding: 21px; }
    .footer-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 21px 18px; }
    .footer-bottom { flex-direction: column; gap: 3px; }
    .inner-hero { padding-block: 25px 31px; }
    .float-wa { inset-inline-end: 13px; bottom: 13px; width: 45px; height: 45px; }
    .dialog-head { padding: 12px; }
    .booking-steps { padding: 8px; }
    .booking-steps li { flex-direction: column; font-size: .75rem; text-align: center; }
    .dialog-body, .dialog-footer { padding: 12px; }
    /* Phones: footer buttons share the row and wrap to full width when they do not fit; paired fields stack. */
    .dialog-footer .btn { flex: 1 1 auto; }
    .fields-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.article-byline { color: #45635d; font-size: .87rem; font-weight: 700; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #315850; }
.post-meta .avatar { flex: none; width: 45px; height: 45px; border-radius: 50%; background: var(--mint); object-fit: cover; object-position: center center; }
.post-meta div { line-height: 1.35; }
.post-meta small { display: block; color: var(--muted); margin-top: 3px; }
.post > p + p { margin-top: 1.02rem; }
.post-video { margin-block: 29px; }
.post-video video, .youtube-frame { display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: 15px; overflow: hidden; background: #0f2928; }
.post-video video { object-fit: contain; }
.youtube-frame { position: relative; display: grid; place-items: center; }
.youtube-frame img, .youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.youtube-frame img { opacity: .52; }
.youtube-frame button { position: relative; }
.author-panel { margin-top: 23px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; background: #eff8f4; border-radius: 12px; padding: 14px; }
.author-panel h2 { margin-bottom: 3px; font-size: 1.1rem; }
.author-panel p { font-size: .94rem; }
.related-articles { margin-top: 50px; }

.post-subheading { margin-top: 1.35rem; }

.hero-grid.hero-text-only { grid-template-columns: 1fr; min-height: 395px; }
.hero-text-only .hero-copy { max-width: 720px; }
@media (max-width: 650px) { .hero-grid.hero-text-only { min-height: 0; } }

.manage-appointment { max-width: 500px; margin: 21px auto; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.manage-appointment h2 { font-size: 1.09rem; margin-block-end: 8px; }
.manage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.manage-contact { margin-block: 10px; }
.manage-dialog-body { text-align: start; }
.manage-dialog-body .slot-status { margin-block-start: 9px; }
.manage-danger-link { color: #863838; }
.manage-danger-link:hover { color: #782d2d; background: #fff2f1; border-color: #edc7c3; }
.manage-danger { color: #fff; background: #9b3734; border-color: #9b3734; }
.manage-danger:hover { background: #822f2c; }

/* Booking: decoy field for form-filling scripts (never shown), and the status line of the automatic check. */
.booking-decoy { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.booking-proof { margin: 0; min-block-size: 1.5em; color: var(--muted, #475569); font-size: .9rem; }
.booking-proof:empty { display: none; }
