/* ═══════════════════════════════════════════════════════════════
   WeCare Health — Shared Styles
   Warm medical palette: sage, cream, terracotta, soft navy

   SINGLE SOURCE OF TRUTH FOR DESIGN TOKENS.
   The :root block below defines every colour, ink, and semantic token.
   Rule for all pages: use these tokens (var(--sage), var(--ink), …).
   Never paste a raw hex and never redefine :root in a page — that is
   how the look drifts. The patient pages already follow this; gp.html
   uses parallel names (--teal == --sage) and is the one place to unify
   if/when its CSS is next touched (cosmetic only, not patient-facing).
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary palette */
  --sage: #4A7C6C;
  --sage-dark: #3A6557;
  --sage-light: #E8F0EC;
  --sage-pale: #F4F8F6;

  /* Warm accents */
  --terracotta: #C97758;
  --terracotta-light: #FBEEE6;
  --honey: #D4A574;
  --honey-light: #FAF1E5;

  /* Backgrounds */
  --cream: #FAF7F2;
  --cream-2: #F4F0E8;
  --cream-3: #E8E2D5;

  /* Ink */
  --ink: #2A2A28;
  --ink-2: #4F4F4A;
  --ink-3: #6B6860;   /* a11y: was #7A7872 (~4.0:1, just under AA on white) → now ~4.7:1 for small text */
  --ink-4: #706D65;   /* muted text: AA on white, cream and cream-2 */

  /* Functional */
  --white: #FFFFFF;
  --red: #B85450;
  --red-light: #FCEDEC;
  --red-dark: #8E3C39;
  --amber: #C58A40;
  --amber-light: #FDF4E5;
  --amber-dark: #8A5A12;    /* AA text on amber-light (same pattern as --red-dark) */
  --success: #5C8B7A;

  /* Semantic — use these in pages instead of ad-hoc hexes */
  --info: #3D6FAB;          /* informational blue (use sparingly) */
  --info-light: #EAF2FB;
  --warn: var(--amber);
  --warn-light: var(--amber-light);
  --danger: var(--red);
  --danger-light: var(--red-light);
  --teal: var(--sage);
  --teal-light: var(--sage-pale);

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;

  /* Geometry */
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Shadows */
  --sh: 0 1px 3px rgba(42,42,40,.06), 0 4px 16px rgba(42,42,40,.04);
  --sh-md: 0 4px 16px rgba(42,42,40,.08), 0 1px 4px rgba(42,42,40,.04);
  --sh-lg: 0 12px 40px rgba(42,42,40,.10), 0 2px 8px rgba(42,42,40,.05);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ═══ EMERGENCY BAR ═══ */
.ebar {
  background: var(--ink);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .005em;
}
.ebar strong { color: white; font-weight: 600; }
/* SE-07: 111/1737 must DIAL, not just bold — visually near-identical link */
.ebar a.ebar-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ═══ TOPNAV ═══ */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--cream-3);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.01em;
}
/* WeCare AI lockup (brand decision 2026-06-11): "AI" in sage inside the wordmark;
   optional "by WeCare Health" byline stacks under it (landing page only). */
.logo-ai { color: var(--sage); }
.logo-stack { display: flex; flex-direction: column; justify-content: center; }
.logo-stack .logo-text { line-height: 1.1; }
.logo-byline {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.2;
  letter-spacing: .01em;
}
.nav-space { flex: 1; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--cream-3);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.nav-btn:hover { border-color: var(--sage); color: var(--sage); }
.nav-btn-primary {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}
.nav-btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: white; }

/* ── Universal hamburger button ── */
.nav-hamburger {
  width: 44px; height: 44px; border-radius: 10px;
  background: none; border: 1px solid var(--cream-3);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  transition: background .12s; flex-shrink: 0;
  padding: 0;
}
.nav-hamburger:hover { background: var(--cream); }
.nav-hamburger span { display: block; width: 14px; height: 1.5px; background: var(--ink-2); border-radius: 2px; }
/* Unread signal: a dot on the ☰ + a count pill on the menu item (GP waiting on the patient) */
.nav-hamburger { position: relative; }
/* selector includes the parent so it beats `.nav-hamburger span` (the burger bars) */
.nav-hamburger .nav-hamburger-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #C58A40; border: 1.5px solid var(--white); }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C58A40; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* ── Universal nav drawer ── */
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 270px;
  background: var(--white); border-right: 1px solid var(--cream-3);
  z-index: 400; transform: translateX(-100%);
  transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,.09);
  display: flex; flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.22); z-index: 399;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: all; }
.nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--cream-3);
}
.nav-drawer-logo { font-family: var(--serif); font-size: 16px; color: var(--ink); text-decoration: none; }
.nav-drawer-close {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--cream); cursor: pointer; font-size: 14px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.nav-drawer-close:hover { background: var(--cream-3); }
.nav-drawer-items { flex: 1; min-height: 0; padding: 10px 8px; overflow-y: auto; }
.nav-drawer-group-label {
  padding: 7px 12px 4px; color: var(--ink-4); font-size: 11px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.nav-drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: 14px;
  color: var(--ink); cursor: pointer; transition: background .12s;
  font-family: var(--sans); border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.nav-drawer-item:hover { background: var(--cream); }
[data-service-id][hidden] { display: none !important; }
.wc-service-unavailable { opacity: .68; cursor: default; }
.wc-service-state { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--amber-dark); }
/* Splits the do-things group (top) from the browse/about-us group (bottom). */
.nav-drawer-sep { height: 1px; background: var(--cream-3); margin: 10px 12px; }
.nav-drawer-item-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
  color: var(--sage-dark); /* stroke icons inherit this */
}
.nav-drawer-item.primary .nav-drawer-item-icon { color: white; }
.nav-drawer-item.primary .nav-drawer-item-icon { background: var(--sage); }
/* Small "you're a member" marker on the MedDirect drawer item — an async upgrade,
   see wcUpdateMedDirectNavItem() in shared.js. .nav-drawer-item already gaps its
   children 12px (icon/label), so this needs no margin of its own. */
.nav-drawer-item-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.nav-drawer-footer {
  padding: 14px 16px; border-top: 1px solid var(--cream-3);
  font-size: 11px; color: var(--ink-4); line-height: 1.6;
}

/* The latest consultation remains easy to find without permanently taking
   vertical space from chat. Its full timeline lives in My consultations. */
.nav-drawer-consult {
  display: flex; align-items: center; gap: 12px; margin: 7px 10px 5px; padding: 12px;
  border: 1px solid rgba(74,124,108,.2); border-radius: 12px; background: var(--sage-pale);
  color: var(--sage-dark); text-decoration: none;
}
.nav-drawer-consult[hidden] { display: none !important; }
.nav-drawer-consult:hover { background: #EAF2EE; }
.nav-drawer-consult.needs-you { background: var(--amber-light); color: var(--amber-dark); border-color: rgba(197,138,64,.3); }
.nav-drawer-consult__copy { min-width: 0; flex: 1; }
.nav-drawer-consult__copy small,.nav-drawer-consult__copy strong { display: block; }
.nav-drawer-consult__copy small { margin-bottom: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.nav-drawer-consult__copy strong { overflow: hidden; color: currentColor; font-size: 12px; line-height: 1.4; font-weight: 700; }
.nav-drawer-consult__arrow { flex: 0 0 auto; font-size: 22px; line-height: 1; }

/* ═══ QUINN MARK (shared; legacy class name retained) ═══
   The approved orange Q face. WC_CARA_SVG injects the single shared asset into
   [data-cara]; the old names remain compatibility hooks only. Default 42px;
   override width/height for other sizes and the mark scales with the container.
   Add `.is-online` for the green "online now" status dot. */
.wc-cara {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
}
.wc-cara .wc-quinn-mark { display: block; width: 100%; height: 100%; }
.wc-cara.is-online::after {
  content: "";
  position: absolute;
  right: -2px; bottom: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--white);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s, border-color .15s;
  text-decoration: none;
  border: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary {
  background: var(--sage);
  color: white;
}
.btn-primary:hover { background: var(--sage-dark); color: white; }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--cream-3);
}
.btn-secondary:hover { border-color: var(--sage); color: var(--sage); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: none;
}
.btn-ghost:hover { color: var(--sage); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ═══ FORM FIELDS ═══ */
.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field-input, .field-select, .field-textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-3);
  border-radius: var(--r);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}
/* a11y 10G.29 — visible keyboard focus ring. :focus-visible only fires for
   keyboard/AT focus, so mouse clicks stay clean. Placed after the field rules
   above (and after any `outline:none`) so it wins on specificity + source order. */
a:focus-visible, button:focus-visible, summary:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.field-input:focus-visible, .field-select:focus-visible, .field-textarea:focus-visible {
  /* !important so it survives inline `outline:none` set on some inputs */
  outline: 2px solid var(--sage) !important;
  outline-offset: 2px;
  border-radius: 3px;
}
.field-textarea { resize: vertical; min-height: 80px; }
.field-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; } /* a11y: ink-4 was borderline AA on white at 11px */
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ═══ MODAL ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,42,40,.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--sh-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-x:hover { background: var(--cream-3); }
.modal-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* One patient sign-in overlay, mounted on the page they chose. */
.wc-auth-modal { background:rgba(250,248,244,.88);backdrop-filter:blur(12px); }
.wc-auth-modal .modal { max-width:430px; }
.auth-step { display:none;flex-direction:column;gap:14px; }
.auth-step.active { display:flex; }
.auth-google-btn { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;padding:12px 14px;background:var(--white);border:1.5px solid var(--cream-3);border-radius:var(--r);font-family:var(--sans);font-size:15px;font-weight:500;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s;min-height:48px; }
.auth-google-btn:hover { border-color:var(--ink-4);background:var(--cream); }
.auth-divider { display:flex;align-items:center;gap:12px;color:var(--ink-4);font-size:12px;margin:2px 0; }
.auth-divider::before,.auth-divider::after { content:"";flex:1;height:1px;background:var(--cream-3); }
.auth-title { font-family:var(--serif);font-size:20px;font-weight:500;color:var(--ink);margin-bottom:3px; }
.auth-sub { font-size:13px;color:var(--ink-3);line-height:1.55; }
.auth-context { display:flex;align-items:flex-start;gap:9px;background:var(--sage-pale);border:1px solid var(--cream-3);border-radius:var(--r);padding:10px 12px;font-size:12.5px;color:var(--ink-2);line-height:1.5; }
.auth-context[hidden] { display:none; }
.auth-context strong { color:var(--ink);font-weight:600; }
.auth-context-dot { flex:none;width:8px;height:8px;border-radius:50%;background:var(--sage);margin-top:5px; }
.otp-row { display:flex;gap:8px;justify-content:center; }
.otp-digit { width:44px;height:52px;text-align:center;font-size:22px;font-weight:600;font-family:var(--sans);border:1.5px solid var(--cream-3);border-radius:var(--r);outline:none;color:var(--ink);transition:border-color .15s,background .15s;background:var(--white);caret-color:transparent; }
.otp-digit:focus { border-color:var(--sage); }
.otp-digit.filled { border-color:var(--sage);background:var(--sage-pale); }
.resend-btn { background:none;border:none;font-size:13px;color:var(--sage);cursor:pointer;font-family:var(--sans);padding:0; }
.resend-btn:disabled { color:var(--ink-4);cursor:default; }
.auth-back { background:none;border:none;font-size:13px;color:var(--ink-3);cursor:pointer;font-family:var(--sans);padding:0;display:flex;align-items:center;gap:4px; }
.auth-spinner { width:36px;height:36px;border-radius:50%;border:3px solid var(--cream-3);border-top-color:var(--sage);animation:auth-spin .8s linear infinite;margin:0 auto 16px; }
@keyframes auth-spin { to { transform:rotate(360deg); } }
.auth-success-circle { width:58px;height:58px;border-radius:50%;background:#D1FAE5;border:2px solid #6EE7B7;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;color:#065F46;font-size:26px;font-weight:700; }
.auth-next-hint { background:var(--cream);border:1px solid var(--cream-3);border-radius:var(--r);padding:12px 14px;font-size:13px;color:var(--ink-2);line-height:1.55;display:flex;align-items:flex-start;gap:10px; }
.auth-next-hint-num { width:20px;height:20px;border-radius:50%;background:var(--sage);color:var(--white);font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px; }
.auth-returning-row { display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-3);justify-content:center; }
.auth-returning-dot { width:6px;height:6px;border-radius:50%;background:var(--sage);animation:auth-pulse 1.2s ease-in-out infinite; }
@keyframes auth-pulse { 0%,100% { opacity:1; } 50% { opacity:.2; } }
@media (max-width:360px) { .otp-row{gap:4px}.otp-digit{width:42px;height:50px;font-size:20px;flex-shrink:0} }

/* ═══ FOOTER ═══ */
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.8;
}
.footer strong { color: var(--ink-2); font-weight: 600; }
.footer a { color: var(--ink-3); }
.footer-divider {
  width: 32px;
  height: 1px;
  background: var(--cream-3);
  margin: 16px auto;
}

/* ═══ HELPER UTILITIES ═══ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ═══ STATUS BADGES (shared identity/consultation status pills) ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .01em;
  white-space: nowrap;
}
/* a11y: badge text is 11px/600 = "normal" text → needs 4.5:1. The base hue tokens
   (--amber/--red/--info) sit ~2.6–3.4:1 on their light fills, so use the darker
   variants for the TEXT only (fills unchanged). */
.badge-verified  { background: var(--sage-pale); color: var(--sage-dark); }
.badge-pending   { background: var(--amber-light); color: var(--amber-dark); }
.badge-warn      { background: var(--amber-light); color: var(--amber-dark); }
.badge-danger    { background: var(--red-light);   color: var(--red-dark); }
.badge-info      { background: var(--info-light);  color: #2F5C92; }
.badge-neutral   { background: var(--cream-2);     color: var(--ink-3); }
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

/* Errors */
.err-msg {
  font-size: 12px;
  color: var(--red-dark);
  background: var(--red-light);
  padding: 9px 12px;
  border-radius: 8px;
  margin-top: 8px;
  display: none;
}
.err-msg.show { display: block; }

/* Loading dots */
.loading-dots { display: inline-flex; gap: 4px; align-items: center; }
.loading-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: bounce 1.1s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .18s; }
.loading-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ── SKELETON LOADERS ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.skel-text, .skel-pill, .skel-block {
  display: block;
  background: linear-gradient(90deg, var(--cream-3) 25%, var(--cream-2) 50%, var(--cream-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.skel-pill  { width: 64px;  height: 22px; border-radius: 20px; }
.skel-block { border-radius: var(--r); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep skeletons visible but static */
  .skel-text, .skel-pill, .skel-block { animation: none; background: var(--cream-3); }
}

/* Keyboard navigation and screen-reader page structure. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-to-content {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 2px solid var(--sage-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--sage-dark);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--sh-md);
}
.skip-to-content:focus {
  transform: translateY(0);
  outline: 3px solid rgba(74, 124, 108, .35);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .field-grid-2 { grid-template-columns: 1fr; }
  .field-input, .field-select, .field-textarea { font-size: 16px; }
  .modal { padding: 28px 22px; }
  .topnav { padding: 0 16px; }
  .nav-btn { padding: 6px 12px; font-size: 12px; }
}

/* ═══ ACCESSIBILITY (10G.27/.28) ═══════════════════════════════════════════
   Applied app-wide by wcApplyA11yPrefs() in shared.js from a localStorage
   preference set in account.html → Accessibility. Text size uses CSS `zoom`
   (reliable on this px-based layout); high contrast darkens the grey inks and
   strengthens field borders. */
html.wc-hc {
  --ink-2: #1F1F1D;
  --ink-3: #33332F;
  --ink-4: #4A4A44;   /* was a light grey — now AA on white at any size */
  --cream-3: #8C887C; /* stronger, visible field borders */
}
html.wc-hc .field-input,
html.wc-hc .field-select,
html.wc-hc .field-textarea { border-width: 2px; }

/* Settings UI — segmented text-size control + toggle row (account.html) */
.a11y-seg { display: inline-flex; border: 1.5px solid var(--cream-3); border-radius: var(--r); overflow: hidden; }
.a11y-seg button { padding: 8px 14px; min-height: 44px; background: var(--cream); border: 0; border-right: 1.5px solid var(--cream-3); font-family: var(--sans); cursor: pointer; color: var(--ink-2); }
.a11y-seg button:last-child { border-right: 0; }
.a11y-seg button[aria-pressed="true"] { background: var(--sage); color: var(--white); }

/* ─────────────────────────────────────────────────────────────────────────
   SHARED SITE FOOTER (.foot) — mockup-parity grid footer.
   Lived inline in index.html only; about.html / conditions.html copied the
   markup but not the CSS, so their footer rendered unstyled. Now the single
   source for every public page. (2026-06-29)
   ───────────────────────────────────────────────────────────────────────── */
.foot { background: #2E443C; color: rgba(247,245,240,.7); padding: 56px 24px 32px; }
.foot-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .lg { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: #F7F5F0; }
.foot-brand .lg .ai { color: #9CC3B5; }
.foot-brand .foot-brand-logo { display: block; width: 148px; height: auto; opacity: .94; }
.foot-brand p { font-size: 13.5px; line-height: 1.65; margin-top: 14px; max-width: 280px; color: rgba(247,245,240,.6); }
.foot-col h4 { font-size: 13px; font-weight: 700; color: #F7F5F0; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13.5px; color: rgba(247,245,240,.62); text-decoration: none; margin-bottom: 10px; }
.foot-col a:hover { color: #F7F5F0; }
.foot-bot { max-width: 1080px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(247,245,240,.14); font-size: 12.5px; color: rgba(247,245,240,.5); line-height: 1.6; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .foot { padding-bottom: 96px; } }
