/* Tashkheesa public site — the ONE shared sheet (16 Nov 2026, "one design").
 *
 * Loaded by every public page: the home page (views/index.ejs, before
 * marketing.css) and every page on layouts/public.ejs (after the old
 * /styles.css + portal sheets, so it wins the cascade). Never loaded by the
 * portal, auth, doctor or admin layouts.
 *
 *   1. TOKENS AND PRIMITIVES — the approved Oct 2026 tokens (docs/redesign
 *      BRIEF.md) and the buttons, eyebrow and display type built on them.
 *   2. HEADER, PHONE MENU, FOOTER — partials/site_header.ejs and
 *      partials/site_footer.ejs. Moved here verbatim, in the same order, from
 *      marketing.css (the reference block and its port additions), so the
 *      home page renders exactly as before.
 *   3. MOTION — page-to-page view transitions and the section rise-in; both
 *      stand down under prefers-reduced-motion.
 *   4. INNER PAGES — everything for the pages on layouts/public.ejs, scoped
 *      under body.tk-site. Those pages still load /styles.css and the portal
 *      sheets, whose selectors (.btn, .form-control, .container, .site-header,
 *      the --primary / --deep-blue variables …) the portal, auth, doctor and
 *      admin pages share: they are re-skinned here, under .tk-site, and never
 *      edited at the source.
 *
 * Home-only rules (the laptop reveal and the home sections) stay in
 * marketing.css. Element rules (body, a, h1–h3, p, img) are never written
 * unscoped here.
 */

/* ============================================================
   1. TOKENS AND PRIMITIVES
   ============================================================ */
/* 17 Nov 2026 — the patient app's palette (tashkheesa-app,
   constants/colors.ts; the logo is the app icon's tile). Ziad, 17 Nov: one
   dark colour, one accent, one tint, no gold, no navy ground, no beige.
     --green       app primaryDark. THE one dark colour: header, footer, hero
                   bands, dark sections, the primary button on light, links.
     --green-hover app primary — the logo tile's own green. Only the hover /
                   pressed state of a green fill; never a surface of its own.
     --mint        app primarySoft. The one accent, on --green only: labels,
                   highlighted words, the current menu item, small icons.
                   Never text on a light ground (1.4:1).
     --tint        app primaryLight. The one tint: tinted cards and bands.
     --line        app primaryTint. Decorative card and rule borders.
     --control     control borders (inputs, choice chips): 3:1 on white,
                   cream and tint (WCAG 1.4.11).
     --cream / --paper / --ink / --body: app background / surfaceElevated /
                   textPrimary / textSecondary. --muted is the app's
                   textTertiary darkened to pass 4.5:1 on cream (#6B7A8A is 4.0).
     --ok          app success. Paid / report-ready states only. */
:root{
  --cream:#F8F5EF; --paper:#FFFFFF; --ink:#0F1E2D; --body:#2C3A4A; --muted:#55606B;
  --green:#074B43; --green-hover:#0B6B5F;
  --mint:#B7DAD3; --tint:#E8F3F1; --line:#D4E9E5; --control:#6A8780;
  --on-dark:#F8F5EF; --on-dark-muted:#D4E9E5;
  --ok:#047857; --ok-tint:#E2F1EA;
  /* Older names, re-pointed by role so every rule that reads them follows
     the palette (no second green, no black stage). */
  --teal:var(--green); --teal-deep:var(--green); --teal-ink:var(--green); --stage:var(--green);
  --teal-tint:var(--tint); --teal-tint-2:var(--tint); --teal-line:var(--line);
  --ease:cubic-bezier(.2,.7,.2,1);
  --font-display:Fraunces, Georgia, serif;
  --font-body:Inter, system-ui, sans-serif;
  --font-ar:'Noto Sans Arabic', sans-serif;
}
.wrap{max-width:1240px;margin:0 auto;padding-left:40px;padding-right:40px}
@media (max-width:760px){.wrap{padding-left:20px;padding-right:20px}}
.display{font-family:var(--font-display);font-weight:500;letter-spacing:-.02em;line-height:1.06}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.on-dark .eyebrow,.eyebrow.on-dark{color:var(--mint)}
.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:14px 24px;border-radius:12px;font-weight:600;font-size:16px;text-decoration:none;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
.btn:hover{transform:translateY(-1px)}
/* Primary on a dark ground: cream fill, green text. */
.btn-cream{background:var(--cream);color:var(--green)}
.btn-cream:hover{background:#fff;box-shadow:0 10px 24px -12px rgba(0,0,0,.45)}
/* Primary on a light ground: green fill, white text. */
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:var(--green-hover)}
/* Secondary: an outline, on dark (.btn-ghost-dark) or on light (.btn-ghost). */
.btn-ghost-dark{color:var(--cream);border:1.5px solid rgba(248,245,239,.6)}
.btn-ghost-dark:hover{background:rgba(248,245,239,.1)}
.btn-ghost{color:var(--green);border:1.5px solid var(--green)}
.btn-ghost:hover{background:var(--tint)}
.card{transition:transform .24s var(--ease),box-shadow .24s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 22px 44px -24px rgba(7,75,67,.3)}
/* Booking held shut (src/services/public_cta.js): "Start your case" renders as
   an inert span instead of a link. */
.btn.is-cta-locked{background:rgba(248,245,239,.14);color:rgba(248,245,239,.62);box-shadow:none;transform:none;cursor:not-allowed;pointer-events:none}

/* ============================================================
   2. HEADER, PHONE MENU, FOOTER
   ============================================================ */
.site-header{position:fixed;top:0;left:0;right:0;z-index:30;background:var(--green);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(248,245,239,.08);view-transition-name:site-header}
.nav{display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--cream);margin-right:auto;view-transition-name:brand}
/* The logo: the app icon's tile (public/assets/brand/app-tile-*.png, cut from
   tashkheesa-app/assets/icon.png — not redrawn, not recoloured). */
.brand .tile{width:36px;height:36px;display:block;flex:0 0 auto}
.brand .name{display:flex;flex-direction:column;line-height:1}
.brand .name b{font-size:18px;letter-spacing:-.01em}
.brand .name span{font-family:var(--font-ar);font-weight:700;font-size:12px;color:var(--mint);margin-top:3px}
.nav a.link{text-decoration:none;color:var(--cream);font-weight:500;font-size:15px;transition:color .15s ease}
.nav a.link:hover{color:var(--mint)}
.nav .ar{font-family:var(--font-ar);font-weight:600;font-size:14px;padding:6px 10px;border:1px solid rgba(248,245,239,.35);border-radius:999px}
.nav .btn{min-height:44px;padding:12px 20px;font-size:15px}
@media (max-width:900px){.nav a.link{display:none}.nav .ar{display:none}}
/* The current page (aria-current, partials/site_header.ejs): mint, with a
   mint rule under it in the bar, a mint mark beside it in the panel. */
.nav a.link[aria-current="page"]{color:var(--mint);box-shadow:inset 0 -2px 0 var(--mint)}

/* Phone / tablet header. The bar hides every link and leaves the logo and
   Start; the menu button opens a panel holding the links, Sign in and the
   language switch. A native <details>: no script needed to open it. One row
   at every width down to 320px. The menu takes over at ≤1220px: the full
   row (logo, six links, the switch, Sign in and Start) is about 1,115px in
   both languages, plus the 80px .wrap padding — narrower and it would wrap
   onto a second row over the page. */
.menu{display:none}
.menu summary{list-style:none;cursor:pointer;width:44px;height:44px;border-radius:12px;border:1.5px solid rgba(248,245,239,.35);color:var(--cream);display:inline-flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.menu summary::-webkit-details-marker{display:none}
.menu summary::marker{content:""}
.menu[open] summary{background:rgba(248,245,239,.12)}
.menu .i-close{display:none}
.menu[open] .i-close{display:block}
.menu[open] .i-open{display:none}
.menu summary:focus-visible,.menu-panel a:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.menu-panel{position:absolute;top:100%;inset-inline:0;display:flex;flex-direction:column;padding:6px 20px 20px;background:var(--teal-ink);border-top:1px solid rgba(248,245,239,.08);border-bottom:1px solid rgba(248,245,239,.12);box-shadow:0 28px 40px -28px rgba(0,0,0,.7);max-height:calc(100vh - 73px);max-height:calc(100dvh - 73px);overflow-y:auto}
.menu-panel a{display:flex;align-items:center;min-height:50px;color:var(--cream);text-decoration:none;font-weight:500;font-size:17px;border-bottom:1px solid rgba(248,245,239,.08)}
.menu-panel a:hover{color:var(--mint)}
.menu-panel a[aria-current="page"]{color:var(--mint);box-shadow:inset 3px 0 0 var(--mint);padding-inline-start:12px}
html[dir="rtl"] .menu-panel a[aria-current="page"]{box-shadow:inset -3px 0 0 var(--mint)}
.menu-panel a.menu-lang{align-self:flex-start;min-height:44px;margin-top:14px;padding:0 16px;border:1px solid rgba(248,245,239,.35);border-radius:999px;font-family:var(--font-ar);font-weight:600;font-size:15px}
.menu-panel a.menu-lang:lang(en){font-family:var(--font-body)}
@media (max-width:1220px){
  .nav a.link,.nav .ar{display:none}
  .menu{display:block}
  .nav{flex-wrap:nowrap;gap:10px}
  .nav .btn{white-space:nowrap}
  .brand{min-width:0}
}
@media (min-width:761px) and (max-width:1220px){.menu-panel{padding-left:40px;padding-right:40px}}
@media (max-width:420px){
  .nav .btn{padding:12px 14px;font-size:14px}
}
@media (max-width:374px){
  .wrap.nav{padding-left:14px;padding-right:14px}
  .nav{gap:8px}
  .brand{gap:8px}
  .brand .tile{width:32px;height:32px;border-radius:9px}
  .brand .name b{font-size:16px}
  .nav .btn{padding:12px 12px}
  .menu-panel{padding-left:14px;padding-right:14px}
}
@media (max-width:339px){.brand .name{display:none}}
/* The phone menu's first item: Start, as the primary action, to the header
   button's route. */
.menu-panel a.menu-start,.menu-panel span.menu-start{display:flex;align-items:center;justify-content:center;min-height:50px;margin-block:14px 8px;border-radius:12px;border-bottom:none;background:var(--cream);color:var(--green);font-weight:600;font-size:17px;text-decoration:none}
.menu-panel a.menu-start:hover{background:#fff;color:var(--green)}
.menu-panel .menu-start.is-cta-locked{background:rgba(248,245,239,.14);color:rgba(248,245,239,.62)}

/* The footer (partials/site_footer.ejs). */
.footer{background:var(--green);color:var(--on-dark-muted)}
.footer .wrap{padding-top:64px;padding-bottom:32px;display:flex;flex-direction:column;gap:40px}
.footer .cols{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between}
.footer .col{flex:0 1 180px;display:flex;flex-direction:column;gap:10px;font-size:14px}
.footer .col.brandcol{flex:1 1 300px;max-width:360px;gap:16px}
.footer .col .h{font-weight:600;color:#fff;font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.footer a{color:var(--on-dark-muted);text-decoration:none}
.footer .bottom{border-top:1px solid rgba(248,245,239,.14);padding-top:24px;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;font-size:13px;color:var(--mint)}
/* The brand line and the two wider columns (inline styles in the home
   page's footer until it became the shared partial). */
.footer .footer-brand{display:flex;align-items:center;gap:10px;color:#fff}
.footer .footer-tile{width:32px;height:32px;display:block;flex:0 0 auto}
.footer .footer-brand b{font-size:17px}
.footer .footer-brand span[lang="ar"]{font-family:var(--font-ar);font-weight:700;font-size:14px;color:var(--mint)}
.footer .footer-blurb{font-size:14px}
.footer .footer-hospital{font-size:13px;color:var(--mint)}
.footer .col.col-legal{flex-basis:220px}
.footer .col.col-reach{flex-basis:240px}
.footer a:hover{color:#fff}
.footer a:focus-visible{outline:2px solid var(--mint);outline-offset:2px;border-radius:4px}

/* Arabic, shared. Latin keeps Inter / Fraunces; Arabic glyphs, which neither
   face has, fall through to Noto Sans Arabic. Letter-spacing pulls joined
   Arabic letters apart; :lang() follows the nearest lang attribute. Arabic
   sits taller on the line than Latin, so display leading opens up. */
html[lang="ar"]{--font-display:Fraunces,'Noto Sans Arabic',Georgia,serif;--font-body:Inter,'Noto Sans Arabic',system-ui,sans-serif}
h1:lang(ar),h2:lang(ar),h3:lang(ar),.eyebrow:lang(ar),.display:lang(ar),.footer .col .h:lang(ar){letter-spacing:0}
.display:lang(ar){line-height:1.3}
/* The language switch reads "English" on the Arabic page. */
.nav .ar:lang(en){font-family:var(--font-body)}
/* Direction-neutral spelling of the reference's physical offset. */
.brand{margin-right:0;margin-inline-end:auto}

/* Tap targets on phones: every link in the header, the menu and the footer
   is at least 44px tall. */
@media (max-width:760px){
  .brand{min-height:44px}
  .footer .col{gap:0}
  .footer .col .h{margin-bottom:6px}
  .footer .col a{display:flex;align-items:center;min-height:44px}
}

/* The WhatsApp button (partials/whatsapp-fab.ejs) in site colours, on the
   public pages only: the partial's own <style> keeps WhatsApp green for the
   patient portal, which includes it too and must not change. WhatsApp's
   green is on the glyph alone. "html body" outranks the partial's later,
   single-class rules. (The phone's sticky Start / WhatsApp bar is drawn only
   on public pages, so the partial carries its colours itself.) */
html body .tk-wa-fab{background:var(--paper);color:var(--green);box-shadow:0 8px 24px -8px rgba(7,75,67,.45),0 0 0 1px var(--line)}
html body .tk-wa-fab:hover,html body .tk-wa-fab:focus-visible{color:var(--green);box-shadow:0 12px 28px -8px rgba(7,75,67,.5),0 0 0 1px var(--line)}
html body .tk-wa-fab:focus-visible{box-shadow:0 0 0 3px var(--paper),0 0 0 6px var(--green)}
html body .tk-wa-fab svg,html body .tk-cta-bar__wa svg{color:#25D366}

/* ============================================================
   3. MOTION — page-to-page, and the section rise-in
   ============================================================ */
@view-transition{navigation:auto}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(8px)}}
::view-transition-old(root){animation:vt-out 180ms var(--ease)}
::view-transition-new(root){animation:vt-in 320ms var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@supports (animation-timeline: view()){
  .reveal{animation:rise .8s var(--ease) both;animation-timeline:view();animation-range:entry 0% entry 38%}
}
@media (prefers-reduced-motion: reduce){
  .reveal{animation:none !important}
  ::view-transition-old(root),::view-transition-new(root){animation:none !important}
  .btn,.card,.nav a.link{transition:none !important}
  .btn:hover,.card:hover{transform:none !important}
}

/* ============================================================
   4. INNER PAGES — body.tk-site (layouts/public.ejs)
   ============================================================ */

/* 4a. The old palette, re-pointed at the tokens for these pages only. The
   variables are declared on :root by /styles.css and the portal sheets (the
   portal keeps them); redefining them on body.tk-site re-skins every rule
   that reads them, here, without editing a shared rule. */
body.tk-site{
  --primary:var(--teal); --primary-hover:var(--teal-deep); --primary-light:var(--teal-tint);
  --primary-ultra-light:var(--cream); --primary-dark:var(--teal-ink);
  --primary-blue:var(--teal); --primary-blue-dark:var(--teal-deep); --primary-blue-light:var(--teal-tint);
  --trust-blue:var(--teal); --trust-teal:var(--teal); --trust-teal-light:var(--teal-tint);
  --secondary-blue:var(--teal-deep); --accent-blue:var(--teal); --color-info:var(--teal);
  --deep-blue:var(--teal-ink); --medical-blue:var(--teal); --medical-blue-light:var(--teal); --medical-blue-dark:var(--teal-deep);
  --accent-teal:var(--teal); --accent-teal-dark:var(--teal-deep); --accent-teal-light:var(--teal-line);
  --surface-blue:var(--teal-tint); --surface-blue-subtle:rgba(11,107,95,.08); --surface-active:var(--teal-tint);
  --alert-info-bg:var(--teal-tint); --alert-info-text:var(--teal-ink); --alert-info-border:var(--teal-line);
  --site-bg:var(--cream); --site-card:#fff; --site-border:var(--line); --site-text:var(--ink); --site-muted:var(--muted);
  --dd-blue:var(--teal); --dd-blue-soft:var(--teal-tint); --dd-card-border:var(--teal-line); --dd-text-main:var(--ink); --dd-text-sub:var(--muted);
  --text:var(--ink); --text-primary:var(--ink); --text-secondary:var(--muted); --bg:var(--cream); --border:var(--line); --border-default:var(--line);
  --neutral-black:var(--ink); --neutral-dark:var(--body); --neutral-offwhite:var(--cream); --light-gray:var(--cream);
  --font-heading:var(--font-body);
  --shadow:0 18px 40px -24px rgba(7,75,67,.3); --shadow-focus:0 0 0 3px rgba(11,107,95,.25); --ring-primary:0 0 0 3px rgba(11,107,95,.22);
  background:var(--cream);color:var(--ink);font-family:var(--font-body);
  /* the fixed header is 77px tall (.nav: 14 + the 48px Start button + 14,
     and its 1px rule) */
  padding-top:77px;
}
body.tk-site.tk-site--bare{padding-top:0}
/* Page-to-page motion is the view transition (section 3); the old sheet's
   fade-up of every <main> on load is not part of the design. */
.tk-site main.app-shell,.tk-site main{animation:none}

/* 4b. The header and footer meet /styles.css rules for the same classes
   (.site-header, .btn, p, the 480px full-width .btn). */
/* The home page's body is 17px / 1.6, and its header is measured off that
   (the 48px Start button makes the bar 77px tall); the same here. */
.tk-site .site-header{z-index:1000;box-shadow:none;font-size:17px;line-height:1.6}
.tk-site .site-header .btn{line-height:inherit;border:0;width:auto;position:static;overflow:visible;font-family:inherit;justify-content:center}
.tk-site .site-header .btn:hover{color:var(--green)}
.tk-site .site-header .btn:focus-visible,.tk-site .site-header a:focus-visible{outline:2px solid var(--mint);outline-offset:3px;box-shadow:none}
.tk-site .site-header b,.tk-site .footer b{color:inherit}
.tk-site .footer p{margin:0;color:var(--on-dark-muted)}
.tk-site .footer .footer-hospital{color:var(--mint)}
.tk-site .footer .tk-app-badge-row{margin-top:6px}
/* The old layout leaves the footer inside <main> (partials/footer.ejs closes
   a <div>, not the <main> the layout opened), so the content-link rule below
   reaches it; the footer keeps its own link colours. */
.tk-site main footer.footer a{color:var(--on-dark-muted)}
.tk-site main footer.footer a:hover{color:#fff}

/* The old sheet paints .page-shell / .page-inner grey-blue with !important
   (styles.css "Fix overly dark backgrounds on order pages"); on these pages
   they sit on the cream ground. */
.tk-site .page-shell,.tk-site .page-inner{background:var(--cream) !important;color:var(--ink) !important}
.tk-site .page-inner{padding-top:24px}

/* 4c. Type, links, buttons, forms — every inner page. Fraunces for h1 / h2,
   Inter for the rest; teal links; primary buttons teal on light; ghost
   buttons a 1.5px outline; inputs with a teal focus ring. An input's border
   is --muted at 75% (#808890 on white, 3.6:1): a field's edge must reach
   3:1 (WCAG 1.4.11), which the decorative --line / --teal-line do not.
   Colour is never set on headings here: a heading on a dark band keeps the
   colour its component gives it. */
.tk-site main h1,.tk-site main h2{font-family:var(--font-display);font-weight:500;letter-spacing:-.01em}
.tk-site main h1:lang(ar),.tk-site main h2:lang(ar){letter-spacing:0;line-height:1.35}
.tk-site main h3,.tk-site main h4{font-family:var(--font-body)}
/* :where() keeps this at (0,1,1), so a page's own link rule (".x a")
   that comes later always wins. */
.tk-site main :where(a:not([class])){color:var(--teal);text-underline-offset:3px}
.tk-site main :where(a:not([class])):hover{color:var(--teal-deep)}
.tk-site a:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}
.tk-site .btn-primary{background:var(--teal);color:#fff;border:0;border-radius:12px;box-shadow:none;min-height:44px;font-weight:600}
.tk-site .btn-primary:hover{background:var(--teal-deep);color:#fff;transform:translateY(-1px);box-shadow:none}
.tk-site .btn-primary:active{transform:none}
.tk-site .btn-secondary,.tk-site .btn-outline{background:transparent;color:var(--teal);border:1.5px solid var(--teal);border-radius:12px;box-shadow:none;min-height:44px}
.tk-site .btn-secondary:hover,.tk-site .btn-outline:hover{background:var(--teal-tint);color:var(--teal-deep);transform:translateY(-1px)}
.tk-site main .btn:focus-visible{outline:2px solid var(--teal);outline-offset:2px;box-shadow:none}
.tk-site .form-control,.tk-site main input[type="text"],.tk-site main input[type="email"],.tk-site main input[type="tel"],.tk-site main input[type="number"],.tk-site main input[type="url"],.tk-site main input[type="password"],.tk-site main select,.tk-site main textarea{border-color:rgba(85,96,107,.75);border-radius:12px;color:var(--ink)}
.tk-site .form-control:focus,.tk-site main input:focus,.tk-site main select:focus,.tk-site main textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(11,107,95,.22);outline:none}
.tk-site main input[type="checkbox"],.tk-site main input[type="radio"]{accent-color:var(--teal)}
.tk-site .form-label,.tk-site main label{color:var(--ink)}
.tk-site ::selection{background:var(--teal-tint);color:var(--ink)}

/* 4c'. Shared partials that carry inline styles because they also render
   inside the portal (partials/what_you_get — the pay page; partials/
   consultant_cards — the home page too). On these pages only, the tokens;
   !important because the values are inline. */
.tk-site .what-you-get{border-color:var(--teal-line) !important;border-radius:18px !important;color:var(--ink) !important;background:#fff !important}
.tk-site .what-you-get>div:first-child{color:var(--teal-ink) !important;font-family:var(--font-display);font-weight:500 !important;font-size:19px}
.tk-site .what-you-get a{color:var(--teal) !important}

/* 4e. The article card — .content-card.legal-page: About, Contact, the
   legal pages, account deletion. A white card on cream with a teal-line
   border; its H1 and subtitle become the page's teal-tint hero band (the
   card's first rows, bled to its edges); Fraunces headings, Inter body at a
   readable measure (~70 characters), token tables and links. */
.tk-site .content-card{background:#fff;border:1px solid var(--teal-line);border-radius:18px;box-shadow:none;padding:0 48px 44px;overflow:hidden;max-width:880px;margin-inline:auto}
.tk-site .legal-page>h1{margin:0 -48px;padding:48px 48px 12px;background:var(--teal-tint);font-family:var(--font-display);font-weight:500;font-size:clamp(32px,4.2vw,46px);line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
.tk-site .legal-page>h1:lang(ar){letter-spacing:0;line-height:1.35}
.tk-site .legal-page>h1+.subtitle{margin:0 -48px 28px;padding:0 48px 36px;background:var(--teal-tint);font-size:17px;line-height:1.6;color:var(--body);max-width:none}
.tk-site .legal-page>h1:not(:has(+ .subtitle)){padding-bottom:36px;margin-bottom:28px}
.tk-site .legal-page .legal-updated{font-size:13px;color:var(--muted);margin-bottom:28px}
.tk-site .legal-page h2{font-family:var(--font-display);font-weight:500;font-size:clamp(22px,2.6vw,28px);line-height:1.2;letter-spacing:-.01em;margin:40px 0 12px;color:var(--ink)}
.tk-site .legal-page h2:lang(ar){letter-spacing:0;line-height:1.4}
.tk-site .legal-page h3{font-family:var(--font-body);font-size:17px;font-weight:600;margin:26px 0 8px;color:var(--ink)}
.tk-site .legal-page p,.tk-site .legal-page li{font-size:16px;line-height:1.7;color:var(--body);max-width:70ch}
.tk-site .legal-page strong{color:var(--ink)}
.tk-site .legal-page ul,.tk-site .legal-page ol{padding-left:0;padding-inline-start:24px}
.tk-site .legal-page li::marker{color:var(--teal)}
.tk-site .legal-page a{color:var(--teal);text-decoration:underline;text-decoration-color:rgba(11,107,95,.35);text-underline-offset:3px}
.tk-site .legal-page a:hover{color:var(--teal-deep);text-decoration-color:currentColor}
.tk-site .legal-page table{border-collapse:separate;border-spacing:0;border:1px solid var(--teal-line);border-radius:14px;overflow:hidden;max-width:100%}
.tk-site .legal-page th,.tk-site .legal-page td{border:0;border-bottom:1px solid var(--teal-tint);text-align:start;color:var(--body);vertical-align:top}
.tk-site .legal-page tr:last-child td{border-bottom:0}
.tk-site .legal-page th{background:var(--teal-tint);color:var(--teal-ink);font-weight:600}
@media (max-width:640px){
  .tk-site .content-card{padding:0 20px 28px;border-radius:18px}
  .tk-site .legal-page>h1{margin:0 -20px;padding:32px 20px 10px}
  .tk-site .legal-page>h1+.subtitle{margin:0 -20px 22px;padding:0 20px 26px;font-size:16px}
  .tk-site .legal-page>h1:not(:has(+ .subtitle)){padding-bottom:26px;margin-bottom:22px}
  .tk-site .legal-page table{display:block;overflow-x:auto}
}

/* 4f. Contact (/contact): the three reach-us cards and the form. Token
   borders and a teal focus ring; the green / red result banners stay
   (semantic states). */
.tk-site .contact-info-card{background:var(--cream);border-color:var(--teal-line);border-radius:16px}
.tk-site .contact-info-card h3{color:var(--ink);font-size:16px}
.tk-site .contact-info-card p{color:var(--body);max-width:none}
.tk-site .contact-info-card a{color:var(--teal);text-decoration:none}
.tk-site .contact-form .form-label{color:var(--ink)}
.tk-site .contact-form .form-control{border-color:rgba(85,96,107,.75);border-radius:12px;min-height:44px;font-size:15px;background:#fff;color:var(--ink)}
.tk-site .contact-form .form-control:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(11,107,95,.22)}
.tk-site .contact-hours{border-top-color:var(--teal-line)}
.tk-site .contact-response-note{color:var(--muted)}
.tk-site .contact-response-note:lang(ar){font-style:normal}
.tk-site .contact-social a{color:var(--teal)}
.tk-site .btn-primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--teal);color:#fff;border:0;border-radius:12px;padding:10px 24px;font-size:15px;font-weight:600;cursor:pointer;transition:background-color .18s ease,transform .18s ease}
.tk-site .btn-primary-link:hover{background:var(--teal-deep);color:#fff;transform:translateY(-1px)}
.tk-site .btn-primary-link:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* partials/consultant_cards (/doctors, /start): the same cards, on the
   tokens — the home page keeps its inline colours. */
.tk-site .cc-h{color:var(--ink) !important;font-weight:500}
.tk-site .cc-sub{color:var(--body) !important}
.tk-site .cc-card{border-color:var(--teal-line) !important;border-radius:18px !important;color:var(--ink) !important;transition:transform .24s var(--ease),box-shadow .24s ease,border-color .2s ease}
.tk-site .cc-card:hover{transform:translateY(-3px);box-shadow:0 22px 44px -24px rgba(7,75,67,.3);border-color:var(--teal) !important}
.tk-site .cc-card img{background:var(--teal-tint) !important}
.tk-site .cc-sp{color:var(--teal-deep) !important;font-weight:600 !important}
.tk-site .cc-meta{color:var(--muted) !important}
@media (prefers-reduced-motion: reduce){.tk-site .cc-card{transition:none}.tk-site .cc-card:hover{transform:none}}

/* 4d. The section rise-in (the home page's .reveal), on the inner pages'
   own sections — whole sections, never the cards in them, so a card's hover
   lift is never fought by the animation. Browsers without view timelines
   show everything as it is. */
@supports (animation-timeline: view()){
  .tk-site .sv3-sec:not(.sv3-final){animation:rise .8s var(--ease) both;animation-timeline:view();animation-range:entry 0% entry 38%}
}
@media (prefers-reduced-motion: reduce){
  .tk-site .sv3-sec{animation:none !important}
  .tk-site .btn-primary:hover,.tk-site .btn-secondary:hover,.tk-site .btn-outline:hover,.tk-site .btn-primary-link:hover{transform:none}
}
