/* Signed-out header and footer (DESIGN.md 6). Loaded by core/base.html for signed-out visitors only,
 * after site.css / site-overrides.css (whose !important rules are matched here where needed). */

:root { --mh-header-h: 4.5rem; }

/* ---------------------------------------------------------------- container gutters */
.mh-shell .mh-container { padding-inline: 16px; max-width: 1232px; }
@media (min-width: 768px) { .mh-shell .mh-container { padding-inline: 24px; max-width: 1248px; } }
@media (min-width: 1280px) { .mh-shell .mh-container { padding-inline: 32px; max-width: 1264px; } }

/* ---------------------------------------------------------------- header */
.mh-shell .mh-site-header {
  padding: 0;
  background: color-mix(in srgb, var(--pr-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--pr-line);
}
.mh-shell .mh-site-header .mh-container {
  max-width: 1264px !important;
  width: 100% !important;
  padding: 0 16px !important;
}
@media (min-width: 768px) { .mh-shell .mh-site-header .mh-container { padding: 0 24px !important; } }
@media (min-width: 1280px) { .mh-shell .mh-site-header .mh-container { padding: 0 32px !important; } }
.mh-shell .mh-header-shell {
  min-height: 72px;
  padding: 0;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.mh-shell .mh-header-brand { gap: 10px !important; color: var(--pr-ink); }
.mh-shell .mh-header-brand .mh-logo-squircle {
  width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important;
  max-width: 36px !important; max-height: 36px !important; border-radius: 10px; box-shadow: none;
}
.mh-shell .mh-header-brand-name { font-size: 1.125rem !important; font-weight: 600; letter-spacing: -.02em; color: var(--pr-ink); }
[dir="rtl"] .mh-shell .mh-header-brand-name { letter-spacing: 0; }
.mh-shell .mh-header-brand-sub { text-transform: none; letter-spacing: 0; font-size: .75rem; color: var(--pr-ink-3); }
.mh-shell .mh-header-nav { gap: 4px; }
.mh-shell .mh-nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--pr-ink-2);
  background: transparent;
}
.mh-shell .mh-nav-link:hover { color: var(--pr-ink); background: var(--pr-glass); }
.mh-shell .mh-nav-link.active { color: var(--pr-ink); background: transparent; box-shadow: inset 0 -2px 0 var(--pr-accent); border-radius: 0; }
.mh-shell .mh-header-actions { gap: 8px; }
.mh-shell .mh-header-theme-btn,
.mh-shell .mh-header-lang-btn,
.mh-shell .mh-hamburger {
  width: 40px !important; min-width: 40px !important; height: 40px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid var(--pr-line) !important;
  color: var(--pr-ink-2) !important;
  box-shadow: none !important;
  transform: none !important;
}
.mh-shell .mh-header-lang-btn { width: auto !important; padding: 0 10px !important; font-size: .8125rem; font-weight: 600; }
.mh-shell .mh-header-theme-btn:hover,
.mh-shell .mh-header-lang-btn:hover,
.mh-shell .mh-hamburger:hover { border-color: var(--pr-line-2) !important; color: var(--pr-ink) !important; background: var(--pr-glass) !important; }
[data-theme="dark"] .mh-shell .mh-header-theme-btn .mh-theme-icon--to-light { color: var(--pr-ink-2); }
[data-theme="light"] .mh-shell .mh-header-theme-btn .mh-theme-icon--to-dark { color: var(--pr-ink-2); }
.mh-shell .mh-header-signin {
  min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: .9375rem; font-weight: 600; color: var(--pr-ink);
}
.mh-shell .mh-header-signin:hover { text-decoration: none; background: var(--pr-glass); }
.mh-shell .mh-header-cta.mh-btn-primary { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
@media (max-width: 1023px) {
  .mh-shell .mh-header-shell { min-height: 60px; }
  :root { --mh-header-h: 3.75rem; }
}
@media (max-width: 767px) {
  .mh-shell .mh-header-shell { min-height: 56px; gap: 8px; }
  :root { --mh-header-h: 3.5rem; }
  .mh-shell .mh-header-brand .mh-logo-squircle { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; max-width: 32px !important; max-height: 32px !important; border-radius: 9px; }
  .mh-shell .mh-header-brand-sub { display: none !important; }
}
@media (max-width: 400px) {
  .mh-shell .mh-header-brand-name { font-size: 1rem !important; }
  .mh-shell .mh-header-actions { gap: 6px; }
}

/* ---------------------------------------------------------------- mobile menu */
.mh-shell .mh-mobile-menu { background: var(--pr-bg); }

/* ---------------------------------------------------------------- footer */
.mh-shell .mh-site-footer {
  margin-top: 0;
  padding-top: 0;
  background: var(--pr-bg-2);
  border-top: 1px solid var(--pr-line);
  color: var(--pr-ink-2);
}
.mh-shell .mh-site-footer::before { content: none; }
.mh-shell .mh-site-footer > .mh-container { padding-top: 56px; padding-bottom: 32px; }
.mh-shell .mh-site-footer > .mh-container > .mh-divider:first-child { display: none; }
.mh-shell .mh-site-footer .mh-divider { opacity: 1; background: var(--pr-line); }
.mh-shell .mh-site-footer .mh-footer-heading {
  text-transform: none;
  letter-spacing: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pr-ink);
}
.mh-shell .mh-site-footer a.block { color: var(--pr-ink-2); font-size: .9375rem; }
.mh-shell .mh-site-footer a.block:hover { color: var(--pr-ink); }
.mh-shell .mh-site-footer p.text-sm { color: var(--pr-ink-2); font-size: .9375rem; line-height: 1.6; }
/* "Reviewed by the MediHelp clinical team": a plain line with a mint mark, not an all-caps pill. */
.mh-shell .mh-site-footer .rounded-full.w-max { padding: 0; border: 0; background: none; gap: 8px; }
.mh-shell .mh-site-footer .rounded-full.w-max > span:last-child {
  text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 500; color: var(--pr-ink-2);
}
.mh-shell .mh-site-footer .rounded-full.w-max > span:first-child { background: var(--pr-mint); }
.mh-shell .mh-site-footer .mh-utility-chip {
  min-height: 40px; width: 40px; padding: 0; border-radius: 10px;
  background: transparent; border: 1px solid var(--pr-line); color: var(--pr-ink-2);
}
.mh-shell .mh-site-footer .mh-utility-chip:hover { color: var(--pr-ink); border-color: var(--pr-line-2); }
.mh-shell .mh-site-footer .text-center { color: var(--pr-ink-3); }

/* Footer accent: a thin brand gradient on the top edge and a larger wordmark. */
.mh-shell .mh-site-footer { position: relative; }
.mh-shell .mh-site-footer::after {
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pr-accent) 30%, var(--pr-mint) 70%, transparent); opacity: .6;
}
.mh-shell .mh-site-footer .text-lg.font-bold { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.mh-shell .mh-site-footer a.block { transition: color .18s var(--pr-ease), translate .18s var(--pr-ease); }
@media (hover: hover) { .mh-shell .mh-site-footer a.block:hover { translate: 3px 0; } [dir="rtl"] .mh-shell .mh-site-footer a.block:hover { translate: -3px 0; } }

/* Phones: a compact, centred footer (brand block, then the link groups two to a row). */
@media (max-width: 767px) {
  .mh-shell .mh-site-footer > .mh-container { padding-top: 36px; padding-bottom: 24px; }
  .mh-shell .mh-site-footer .grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-block: 8px 24px; text-align: center; }
  .mh-shell .mh-site-footer .grid > div:first-child { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
  .mh-shell .mh-site-footer .grid > div:first-child p { margin-inline: auto; }
  .mh-shell .mh-site-footer .grid > div:first-child .flex { justify-content: center; }
  .mh-shell .mh-site-footer .mh-footer-heading { margin-bottom: 4px; }
  .mh-shell .mh-site-footer .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 8px; }
  .mh-shell .mh-site-footer a.block { min-height: 32px; display: flex; align-items: center; justify-content: center; }
}

/* ---------------------------------------------------------------- touch targets on phones and tablets (QC 2026-10-20)
   DESIGN.md 5b: 44 px minimum. Header icon buttons, footer social chips, the password eye and the pricing
   audience tabs were 39 to 40 px; breadcrumb links were 20 px tall. Breadcrumbs get a 44 px hit area through
   padding offset by an equal negative margin, so the text does not move. */
@media (max-width: 1023px) {
  .mh-shell .mh-header-theme-btn, .mh-shell .mh-hamburger { width: 44px !important; min-width: 44px !important; height: 44px !important; }
  .mh-shell .mh-header-lang-btn { min-width: 44px !important; height: 44px !important; }
  .mh-shell .mh-site-footer .mh-utility-chip { min-height: 44px; width: 44px; }
  .mh-shell .mh-password-toggle { min-width: 44px; min-height: 44px; }
  .mh-shell .sb-page .sb-audience__tab, .mh-shell .hm-toggle__btn { min-height: 44px; }
  .mh-shell .mh-header-brand { min-height: 44px; }
  .mh-shell :is(.seo-crumbs, .pm-crumbs, .xt-crumbs, .ci-detail-header nav) a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
}
