/* ============================================================
   Mascot Healthcare — site shell (blue theme)
   The homepage's app-shell (side rail, main column, footer, mobile dock,
   chat assistant) shared by every client-facing page.

   Every class is prefixed "mhs-" so it can't collide with the page's own
   styles (pages keep their own content CSS), and the chrome uses <div
   role=…> rather than header/nav/footer so old element rules such as
   `nav { position: fixed }` in a page's stylesheet can't reach it.

   Markup is injected by _tools/apply_shell.py between <!--mhs:…--> markers.
   ============================================================ */
:root {
  --mhs-navy: #0a2240;
  --mhs-navy-2: #0d3361;
  --mhs-ink: #06172e;
  --mhs-blue-900: #1e3a8a;
  --mhs-blue-800: #1e40af;
  --mhs-blue-700: #1d4ed8;
  --mhs-blue-600: #2563eb;
  --mhs-blue-500: #3b82f6;
  --mhs-blue-400: #60a5fa;
  --mhs-blue-300: #93c5fd;
  --mhs-blue-100: #e8f0fe;
  --mhs-blue-50: #f4f7ff;
  --mhs-wa: #25D366;
  --mhs-text: #1e293b;
  --mhs-muted: #5b6b82;
  --mhs-line: #dbe3f0;
  --mhs-radius: 16px;
  --mhs-shadow: 0 24px 60px -18px rgba(10,34,64,.38);
  --mhs-display: 'Sora', system-ui, -apple-system, sans-serif;
  --mhs-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mhs-rail-w: 300px;
  --mhs-dock-h: 64px;
}

/* ── Neutralise page-level body layout (old fixed navbars, centred bodies) ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.mhs-body {
  margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important;
  display: block !important; min-height: 100vh;
  font-family: var(--mhs-body); color: var(--mhs-text); line-height: 1.65;
  overflow-x: clip;
}
@supports not (overflow: clip) { body.mhs-body { overflow-x: hidden; } }
body.mhs-body h1, body.mhs-body h2, body.mhs-body h3, body.mhs-body h4 { font-family: var(--mhs-display); }
.mhs-legacy { display: none !important; }

.mhs-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--mhs-blue-600); color: #fff;
  padding: 10px 16px; border-radius: 10px; font: 700 .95rem var(--mhs-body); text-decoration: none; transition: top .15s;
}
.mhs-skip:focus { top: 12px; }
.mhs-shell :focus-visible, .mhs-dock :focus-visible, .mhs-chat :focus-visible {
  outline: 3px solid var(--mhs-blue-400); outline-offset: 3px; border-radius: 6px;
}

/* ── Shell grid ── */
.mhs-shell {
  display: grid; grid-template-columns: var(--mhs-rail-w) minmax(0, 1fr); min-height: 100vh;
  margin: 0; padding: 0; position: static;
}
.mhs-shell *, .mhs-dock *, .mhs-chat * { box-sizing: border-box; }

/* ── Buttons (shell only) ── */
.mhs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; margin: 0; border-radius: 8px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--mhs-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; min-height: 44px; box-shadow: none; width: auto;
}
.mhs-btn-primary { background: var(--mhs-blue-600); color: #fff; }
.mhs-btn-primary:hover { background: var(--mhs-blue-800); color: #fff; }
.mhs-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.mhs-btn-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.mhs-btn-block { display: flex; width: 100%; }

/* ── Rail (side navigation) ── */
.mhs-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 900;
  background: var(--mhs-navy); color: #fff; margin: 0; width: auto;
  padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 24px;
  font-family: var(--mhs-body); font-size: 17px; line-height: 1.5; text-align: left;
}
.mhs-rail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mhs-rail-brand { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mhs-logo {
  font: 800 1.35rem/1.15 var(--mhs-display); letter-spacing: -.02em; color: #fff; text-decoration: none;
}
.mhs-logo:hover { color: #fff; }
.mhs-status { margin: 0; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.4; }
.mhs-status.is-open { color: #8ee6bb; }
.mhs-status.is-closed { color: #fcd34d; }
.mhs-rail-book { display: none; }
.mhs-menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; margin: 0;
  border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1.1rem; cursor: pointer;
}
.mhs-nav ul { list-style: none; margin: 0; padding: 0; }
.mhs-nav li { margin: 0; padding: 0; list-style: none; }
.mhs-nav li::before, .mhs-nav li::marker { content: none; }
.mhs-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font: 600 .98rem/1.35 var(--mhs-display); color: rgba(255,255,255,.68); text-decoration: none;
  transition: color .2s, padding .2s; background: none;
}
.mhs-nav a i { width: 18px; text-align: center; font-size: .9rem; color: rgba(255,255,255,.4); transition: color .2s; }
.mhs-nav li:first-child a { border-top: 1px solid rgba(255,255,255,.08); }
.mhs-nav a:hover, .mhs-nav a[aria-current] { color: #fff; }
.mhs-nav a:hover i, .mhs-nav a[aria-current] i { color: var(--mhs-blue-400); }
.mhs-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--mhs-blue-400); padding-left: 12px; }
.mhs-rail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mhs-rail-call {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px;
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.mhs-rail-call:hover { color: var(--mhs-blue-300); }
.mhs-rail-meta { margin: 0; font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.55; }

/* ── Main column ── */
.mhs-main { min-width: 0; margin: 0; padding: 0; position: relative; display: block; }

/* ── Footer ── */
.mhs-footer {
  background: var(--mhs-ink); color: rgba(255,255,255,.7); padding: 64px 0 32px; margin: 0;
  font-family: var(--mhs-body); font-size: 16px; line-height: 1.6; text-align: left;
}
.mhs-wrap { max-width: 1000px; margin: 0 auto; padding: 0 48px; }
.mhs-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.mhs-footer-brand .mhs-footer-name { font: 800 1.35rem/1.2 var(--mhs-display); color: #fff; margin: 0 0 12px; }
.mhs-footer-brand > p { font-size: .92rem; max-width: 34ch; margin: 0 0 20px; color: rgba(255,255,255,.7); }
.mhs-social { display: flex; gap: 10px; }
.mhs-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center;
  color: rgba(255,255,255,.75); text-decoration: none; transition: background .2s, color .2s;
}
.mhs-social a:hover { background: var(--mhs-blue-600); color: #fff; border-color: transparent; }
.mhs-areas-label { margin: 24px 0 0; font-size: .86rem; color: rgba(255,255,255,.5); }
.mhs-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mhs-area {
  display: inline-block; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82); padding: 5px 12px; border-radius: 8px; font-size: .8rem; font-weight: 500;
  text-decoration: none; transition: background .2s, color .2s;
}
.mhs-area:hover { background: var(--mhs-blue-600); border-color: var(--mhs-blue-600); color: #fff; }
.mhs-footer-col .mhs-footer-h { font: 700 .95rem/1.3 var(--mhs-display); color: #fff; margin: 0 0 16px; }
.mhs-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.mhs-footer-col li { margin: 0; padding: 0; }
.mhs-footer-col li::before { content: none; }
.mhs-footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .92rem; }
.mhs-footer-col a:hover { color: #fff; }
.mhs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .86rem;
}
.mhs-footer-bottom p { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; color: rgba(255,255,255,.7); }
.mhs-footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.mhs-footer-bottom a:hover { color: #fff; }
.mhs-footer-bottom a.mhs-btn { color: #fff; padding: 9px 16px; font-size: .88rem; min-height: 0; }

/* ── WhatsApp float (tablet only; rail and dock cover other sizes) ── */
.mhs-wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 999; width: 54px; height: 54px; border-radius: 50%;
  background: var(--mhs-wa); display: none; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

/* ── Chat assistant ── */
.mhs-chat { position: fixed; bottom: 24px; right: 24px; z-index: 999; font-family: var(--mhs-body); font-size: 16px; line-height: 1.5; text-align: left; }
.mhs-chat-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; padding: 0; margin: 0;
  background: var(--mhs-blue-600); color: #fff; font-size: 1.45rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--mhs-shadow); transition: background .2s, transform .2s;
}
.mhs-chat-btn:hover { background: var(--mhs-blue-800); transform: translateY(-2px); }
.mhs-chat-panel {
  position: absolute; bottom: 76px; right: 0; width: 370px; height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 22px; box-shadow: var(--mhs-shadow); border: 1px solid #e2e8f0;
  display: none; flex-direction: column; overflow: hidden;
}
.mhs-chat-panel.open { display: flex; animation: mhsChatIn .25s ease-out; }
@keyframes mhsChatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mhs-chat-head { background: var(--mhs-navy); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.mhs-chat-head-info { display: flex; align-items: center; gap: 12px; }
.mhs-chat-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--mhs-blue-600); display: grid; place-items: center; }
.mhs-chat-name { font: 700 .98rem var(--mhs-display); }
.mhs-chat-sub { font-size: .76rem; color: rgba(255,255,255,.7); }
.mhs-chat-close { background: rgba(255,255,255,.1); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem; padding: 0; margin: 0; }
.mhs-chat-close:hover { background: rgba(255,255,255,.2); }
.mhs-chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--mhs-blue-50); }
.mhs-chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.mhs-chat-msg.bot { align-self: flex-start; }
.mhs-chat-msg.user { align-self: flex-end; }
.mhs-chat-bubble { padding: 11px 15px; border-radius: 18px; font-size: .9rem; line-height: 1.5; margin: 0; }
.mhs-chat-msg.bot .mhs-chat-bubble { background: #fff; color: var(--mhs-text); border: 1px solid #e2e8f0; border-bottom-left-radius: 5px; }
.mhs-chat-msg.user .mhs-chat-bubble { background: var(--mhs-blue-600); color: #fff; border-bottom-right-radius: 5px; }
.mhs-chat-bubble a { color: var(--mhs-blue-600); font-weight: 600; }
.mhs-chat-note { padding: 8px 16px; font-size: .72rem; color: var(--mhs-muted); background: var(--mhs-blue-50); border-top: 1px solid #e2e8f0; line-height: 1.4; margin: 0; }
.mhs-chat-note a { color: var(--mhs-blue-600); }
.mhs-chat-row { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-top: 1px solid #e2e8f0; margin: 0; }
.mhs-chat-input { flex: 1; min-width: 0; border: 1.5px solid var(--mhs-line); border-radius: 8px; padding: 10px 16px; font: 16px var(--mhs-body); outline: none; margin: 0; background: #fff; color: var(--mhs-text); }
.mhs-chat-input:focus { border-color: var(--mhs-blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.mhs-chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--mhs-blue-600); border: none; color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; padding: 0; margin: 0; }
.mhs-chat-send:hover { background: var(--mhs-blue-800); }
.mhs-typing { display: flex; gap: 5px; padding: 13px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; border-bottom-left-radius: 5px; width: fit-content; }
.mhs-typing span { width: 7px; height: 7px; background: var(--mhs-blue-400); border-radius: 50%; animation: mhsBlink 1.2s infinite; }
.mhs-typing span:nth-child(2) { animation-delay: .2s; }
.mhs-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes mhsBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Mobile dock ── */
.mhs-dock { display: none; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .mhs-shell { grid-template-columns: 1fr; }
  .mhs-rail { height: auto; max-height: 100vh; overflow-y: visible; gap: 0; padding: 10px 24px; }
  .mhs-rail-top { align-items: center; }
  .mhs-rail-brand { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .mhs-logo { font-size: 1.12rem; }
  .mhs-status { font-size: .8rem; }
  .mhs-rail-book { display: inline-flex; padding: 10px 16px; font-size: .88rem; margin-left: auto; }
  .mhs-menu-toggle { display: grid; }
  .mhs-nav, .mhs-rail-actions, .mhs-rail-meta { display: none; }
  .mhs-rail.menu-open { overflow-y: auto; padding-bottom: 20px; }
  .mhs-rail.menu-open .mhs-nav { display: block; margin-top: 14px; }
  .mhs-rail.menu-open .mhs-rail-actions { display: flex; margin-top: 18px; }
  .mhs-rail.menu-open .mhs-rail-meta { display: block; margin-top: 14px; }
  .mhs-wrap { padding: 0 32px; }
  .mhs-wa-float { display: flex; }
}
@media (max-width: 860px) {
  .mhs-footer-grid { grid-template-columns: 1fr 1fr; }
  .mhs-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mhs-wrap { padding: 0 20px; }
  .mhs-rail { padding: 10px 16px; }
  .mhs-rail-book { display: none; }
  .mhs-footer-grid { grid-template-columns: 1fr; }
  .mhs-footer { padding-bottom: 24px; }
  .mhs-wa-float { display: none; }
  .mhs-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    background: rgba(10,34,64,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1);
  }
  .mhs-dock a, .mhs-dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; border-radius: 12px; border: 0; background: none; cursor: pointer; margin: 0; padding: 0;
    color: rgba(255,255,255,.82); font: 500 .72rem var(--mhs-body); text-decoration: none;
  }
  .mhs-dock i { font-size: 1.1rem; }
  .mhs-dock .mhs-dock-book { background: var(--mhs-blue-600); color: #fff; font-weight: 700; }
  .mhs-footer { padding-bottom: calc(24px + var(--mhs-dock-h) + env(safe-area-inset-bottom)); }

  .mhs-chat { bottom: calc(var(--mhs-dock-h) + 12px + env(safe-area-inset-bottom)); right: 12px; left: 12px; pointer-events: none; }
  .mhs-chat-btn { display: none; }
  .mhs-chat-panel { pointer-events: auto; bottom: 0; width: 100%; height: 520px; max-height: calc(100dvh - var(--mhs-dock-h) - 100px); }

  /* page content: stop long words / wide tables forcing horizontal scroll */
  .mhs-main h1, .mhs-main h2, .mhs-main h3, .mhs-main p, .mhs-main li, .mhs-main td, .mhs-main a { overflow-wrap: break-word; }
  .mhs-main img, .mhs-main video, .mhs-main iframe { max-width: 100%; height: auto; }
  .mhs-main input, .mhs-main select, .mhs-main textarea { font-size: 16px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mhs-chat-panel.open, .mhs-typing span { animation: none !important; }
}
@media print {
  .mhs-rail, .mhs-dock, .mhs-chat, .mhs-wa-float, .mhs-footer { display: none !important; }
  .mhs-shell { display: block; }
}

/* ── Content kit for pages built on the shell (areas, 404, library hub) ──
   Mirrors the homepage's hero / section / list styles. */
.mhs-page { font-size: 17px; }
.mhs-page .mhs-hero { padding: 72px 0 56px; background: var(--mhs-blue-50); border-bottom: 1px solid var(--mhs-line); }
.mhs-page .mhs-eyebrow { display: inline-block; font: 700 .8rem var(--mhs-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mhs-blue-700); margin: 0 0 12px; }
.mhs-page h1 { font: 800 clamp(2.1rem, 4.6vw, 3.3rem)/1.06 var(--mhs-display); color: var(--mhs-navy); letter-spacing: -.035em; max-width: 18ch; margin: 0; }
.mhs-page .mhs-lede { margin: 18px 0 0; font-size: 1.12rem; color: var(--mhs-muted); max-width: 56ch; }
.mhs-page .mhs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mhs-page .mhs-btn-line { background: #fff; color: var(--mhs-navy); border-color: var(--mhs-line); }
.mhs-page .mhs-btn-line:hover { border-color: var(--mhs-blue-600); color: var(--mhs-blue-600); }
.mhs-page .mhs-section { padding: 72px 0; }
.mhs-page .mhs-section-alt { background: var(--mhs-blue-50); }
.mhs-page h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--mhs-display); color: var(--mhs-navy); letter-spacing: -.02em; margin: 0 0 10px; }
.mhs-page .mhs-sub { color: var(--mhs-muted); font-size: 1.03rem; max-width: 60ch; margin: 0 0 32px; }
.mhs-page h3 { font: 700 1.12rem/1.3 var(--mhs-display); color: var(--mhs-navy); margin: 0; }
.mhs-page .mhs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mhs-line); }
.mhs-page .mhs-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 18px; align-items: center;
  padding: 20px 10px; border-bottom: 1px solid var(--mhs-line); text-decoration: none; color: inherit; transition: background .2s;
}
.mhs-page a.mhs-row:hover { background: var(--mhs-blue-50); }
.mhs-page .mhs-row-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--mhs-blue-100); color: var(--mhs-blue-600); display: grid; place-items: center; font-size: 1.15rem; }
.mhs-page .mhs-row p { margin: 4px 0 0; font-size: .95rem; color: var(--mhs-muted); max-width: 62ch; }
.mhs-page .mhs-row-arrow { color: var(--mhs-muted); }
.mhs-page a.mhs-row:hover .mhs-row-arrow { color: var(--mhs-blue-600); transform: translateX(4px); }
.mhs-page .mhs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mhs-page .mhs-card { display: block; background: #fff; border: 1.5px solid var(--mhs-line); border-radius: var(--mhs-radius); padding: 20px 22px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 90px; }
.mhs-page a.mhs-card:hover { border-color: var(--mhs-blue-400); box-shadow: 0 8px 28px -10px rgba(10,34,64,.25); }
.mhs-page .mhs-card p { margin: 6px 0 0; font-size: .93rem; color: var(--mhs-muted); }
.mhs-page .mhs-card .mhs-count { font-size: .82rem; font-weight: 600; color: var(--mhs-blue-700); margin-top: 10px; display: block; }
.mhs-page .mhs-card:target { border-color: var(--mhs-blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.mhs-page .mhs-search { position: relative; max-width: 460px; margin: 0 0 26px; }
.mhs-page .mhs-search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--mhs-muted); pointer-events: none; }
.mhs-page .mhs-search input { width: 100%; padding: 13px 18px 13px 46px; border: 1.5px solid var(--mhs-line); border-radius: 8px; font: 1rem var(--mhs-body); background: #fff; color: var(--mhs-text); outline: none; }
.mhs-page .mhs-search input:focus { border-color: var(--mhs-blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.mhs-page .mhs-cta { background: var(--mhs-blue-700); color: #fff; padding: 60px 0; }
.mhs-page .mhs-cta h2 { color: #fff; }
.mhs-page .mhs-cta p { color: rgba(255,255,255,.82); margin: 8px 0 0; }
.mhs-page .mhs-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.mhs-page .mhs-btn-white { background: #fff; color: var(--mhs-navy); }
.mhs-page .mhs-btn-white:hover { background: var(--mhs-blue-50); color: var(--mhs-navy); }
@media (max-width: 760px) {
  .mhs-page .mhs-hero { padding: 44px 0 36px; }
  .mhs-page .mhs-section { padding: 56px 0; }
  .mhs-page .mhs-row { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 14px; padding: 16px 4px; }
  .mhs-page .mhs-row-icon { width: 42px; height: 42px; font-size: 1rem; }
  .mhs-page .mhs-actions .mhs-btn { flex: 1 1 auto; }
}

/* Pages with their own assistant (selfservice.html, chat.html) keep theirs;
   the shared floating button is hidden there (the dock's Ask still works). */
body[data-mhs-nochat] .mhs-chat-btn { display: none; }

/* ── Forms & result panels (calculators) ── */
.mhs-page .mhs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: #fff; border: 1.5px solid var(--mhs-line); border-radius: var(--mhs-radius); padding: 26px; max-width: 760px; }
.mhs-page .mhs-field { display: flex; flex-direction: column; gap: 6px; }
.mhs-page .mhs-field-wide { grid-column: 1 / -1; }
.mhs-page .mhs-field label { font-weight: 600; font-size: .92rem; color: var(--mhs-navy); }
.mhs-page .mhs-field input, .mhs-page .mhs-field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--mhs-line); border-radius: 8px; font: 16px var(--mhs-body); color: var(--mhs-text); background: #fff; outline: none; }
.mhs-page .mhs-field input:focus, .mhs-page .mhs-field select:focus { border-color: var(--mhs-blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.mhs-page .mhs-form .mhs-btn { grid-column: 1 / -1; justify-self: start; }
.mhs-page .mhs-result { margin-top: 20px; max-width: 760px; background: var(--mhs-blue-50); border: 1.5px solid var(--mhs-line); border-radius: var(--mhs-radius); padding: 20px 24px; }
.mhs-page .mhs-result:empty { display: none; }
.mhs-page .mhs-result p { margin: 6px 0; }
.mhs-page .mhs-result strong { color: var(--mhs-navy); }
.mhs-page .mhs-note { font-size: .88rem; color: var(--mhs-muted); max-width: 70ch; margin-top: 14px; }
.mhs-page .mhs-suggest { list-style: none; margin: 6px 0 0; padding: 0; border: 1.5px solid var(--mhs-line); border-radius: 8px; background: #fff; max-height: 240px; overflow-y: auto; }
.mhs-page .mhs-suggest:empty { display: none; }
.mhs-page .mhs-suggest li { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--mhs-line); }
.mhs-page .mhs-suggest li:last-child { border-bottom: 0; }
.mhs-page .mhs-suggest li:hover, .mhs-page .mhs-suggest li:focus { background: var(--mhs-blue-50); outline: none; }
@media (max-width: 760px) { .mhs-page .mhs-form { grid-template-columns: 1fr; padding: 20px; } }

/* Visually hidden, still read by screen readers and search engines */
.mhs-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Related pages (topic clusters, built by _tools/build_related.py) ── */
.mhs-related { background: var(--mhs-blue-50); border-top: 1px solid var(--mhs-line); padding: 48px 0; font-family: var(--mhs-body); font-size: 16px; line-height: 1.5; text-align: left; clear: both; }
.mhs-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.mhs-related-h { font: 700 1.05rem/1.3 var(--mhs-display); color: var(--mhs-navy); margin: 0 0 12px; }
.mhs-related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mhs-line); }
.mhs-related li { margin: 0; padding: 0; border-bottom: 1px solid var(--mhs-line); }
.mhs-related li::before { content: none; }
.mhs-related a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--mhs-navy); font-weight: 500; text-decoration: none; }
.mhs-related a::after { content: '→'; color: var(--mhs-muted); transition: transform .2s, color .2s; }
.mhs-related a:hover { color: var(--mhs-blue-600); }
.mhs-related a:hover::after { color: var(--mhs-blue-600); transform: translateX(3px); }
.mhs-hub { background: #fff; }
.mhs-hub + .mhs-related { border-top: 0; }

/* "See prices" links that stand in for hardcoded prices (_tools/strip_prices.py) */
.mhs-price-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: inherit; }
.mhs-price-link:hover { color: var(--mhs-blue-600); }
