/* =====================================================================
   mefin.ai -- header refinement (2026-10-16)
   Loaded last on every page. Nav pills are 32px tall on every width;
   header padding absorbs the change so the header keeps its height.
   Home: tighter space between the header and the hero headline.
   ===================================================================== */

/* Nav pills: was padding 9px 18px / 7px 11px / 6px 8px (35.6 / 26 / 26px tall) */
.pill-nav { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 32px; padding: 0 16px; line-height: 1; position: relative; }
.topbar { padding-block: 24px; }                     /* 24 + 32 + 24 = 80px (was 79.6px) */
@media (max-width: 620px) {
  .topbar { padding-block: 11px; }                   /* 11 + 32 + 11 = 54px (unchanged) */
  .pill-nav { padding: 0 12px; }
  /* 44px-tall tap area without changing the visible pill */
  .pill-nav::after { content: ""; position: absolute; inset: -6px 0; }
}
@media (max-width: 420px) {
  .pill-nav { padding: 0 10px; }
}

/* Home hero: headline sits close under the header (was clamp(20px, 3vw, 32px) + a label) */
.home .hero { padding-top: clamp(16px, 2vw, 24px); }

/* Footer: one row on phones (MEFIN · links · ©), same 54px height as the mobile header; smaller type below 360px. Tap height kept via link padding. */
@media (max-width: 620px) {
  .site-foot { box-sizing: border-box; height: 54px; padding-block: 0; display: flex; align-items: center; }   /* = mobile header height */
  .site-foot .wrap { flex-wrap: nowrap; gap: 0 12px; padding-inline: 12px; }
  .site-foot p.t-xs { margin: 0; }
  .site-foot .wordmark .name { font-size: 13px; }
  .foot-links { flex-wrap: nowrap; gap: 10px; font-size: 11px; }
  .foot-links a { white-space: nowrap; padding-block: 10px; }
  .site-foot p.t-xs { font-size: 10px; white-space: nowrap; }
}
@media (max-width: 359px) {
  .site-foot .wrap { gap: 0 8px; padding-inline: 10px; }
  .site-foot .wordmark .name { font-size: 11.5px; }
  .foot-links { gap: 7px; font-size: 9.5px; }
  .site-foot p.t-xs { font-size: 9px; }
}

/* Header and footer share one container (2026-10-21): same centred max-width
   and side padding, so the header MEFIN logo lines up with the footer logo,
   and the header's Log in button with the footer's © line. 1320px matches the
   Home hero. The footer links sit centred between the logo and the ©. */
:root { --site-max: 1320px; --site-pad: clamp(20px, 4vw, 56px); }   /* the shared content container */
.public .wrap.topbar,
.public .site-foot .wrap,
.home main .wrap { max-width: var(--site-max); padding-inline: var(--site-pad); }   /* Home sections use it too (2026-10-21) */
@media (min-width: 621px) {
  .public .site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 28px; }
  .public .site-foot .wordmark { justify-self: start; }
  .public .site-foot .foot-links { justify-self: center; }
  .public .site-foot p.t-xs { justify-self: end; margin: 0; white-space: nowrap; }
}
