/* =============================================================================
   /assets/styles/home-2026.css — homepage polish (loaded after home-plus.css)
   Alignment fixes + phone/tablet layout. Overrides only; markup hooks unchanged.
============================================================================= */

/* ── Section heads: centred variants were laid out as one squashed row ── */
.mmtSection__head--center{ flex-direction: column; align-items: center; gap: 0; }
.mmtSection__head--center .mmtSection__subtitle{ margin-left: auto; margin-right: auto; }
.mmtSection__head .mmtKicker{ margin-left: 0; padding-left: 0; }
.mmtSection__title{ letter-spacing: -.02em; }
.mmtSection__subtitle{ line-height: 1.6; }

/* ── Hero ── */
.mmtHero__title{ letter-spacing: -.025em; }
.mmtSearch__bar{ box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(37,99,235,.10); }
.mmtTrust__num{ font-variant-numeric: tabular-nums; }

/* ── Exam cards: steadier rhythm, clearer CTA ── */
.mmtExamGrid{ grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mmtExamCard{ min-height: 0; padding: 20px 18px 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.mmtExamCard__logoWrap{ width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; }
.mmtExamCard__title{ margin-bottom: 12px; }
.mmtExamCard__cta{ margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(15,23,42,.08); width: 100%; justify-content: space-between; }

/* ── Continue banner ── */
.mmtContinue__body{ align-self: center; }

/* ── Tablet (portrait) ── */
@media (max-width: 940px){
  /* Headline first, promo image second — students should see what the site is before an advert */
  .mmtHero__right{ order: 0; }
  .mmtHero__card{ max-width: 460px; margin: 0 auto; }
  .mmtHero__left{ text-align: left; }
}
@media (max-width: 860px){
  .mmtExamGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ── Phones ── */
@media (max-width: 640px){
  .mmtHero{ padding: 22px 0 18px; }
  .mmtHero__inner{ gap: 22px; }
  .mmtPill{ font-size: 12.5px; }
  .mmtHero__subtitle{ font-size: 15px; line-height: 1.6; }
  .mmtSearch__input{ font-size: 16px; }          /* stops iOS zooming into the field */
  .mmtSearch__btn{ min-width: 46px; min-height: 42px; }

  /* Trust stats: three equal columns, no orphaned third item */
  .mmtTrust{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .mmtTrust__sep{ display: none; }
  .mmtTrust__item{ background: rgba(255,255,255,.7); border: 1px solid rgba(15,23,42,.07); border-radius: 12px; padding: 10px 8px; text-align: center; }
  .mmtTrust__num{ font-size: 18px; }
  .mmtTrust__lbl{ font-size: 11.5px; line-height: 1.3; }

  .mmtHero__card{ padding: 10px; border-radius: 18px; }

  /* Continue banner: logo + text aligned, full-width button */
  .mmtContinue{ grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; }
  .mmtContinue__logoRing{ width: 56px; height: 56px; border-radius: 14px; padding: 6px; }
  .mmtContinue__tag{ font-size: 11px; }
  .mmtContinue__title{ font-size: 18px; margin-bottom: 4px; }
  .mmtContinue__meta{ font-size: 12.5px; }
  .mmtContinue__btn{ padding: 12px 18px; }

  /* Exam grid: two compact cards per row — 7 exams fit on ~1.5 screens instead of 4 */
  .mmtExamGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mmtExamCard{ padding: 14px 12px 12px; border-radius: 16px; }
  .mmtExamCard__logoWrap{ width: 48px; height: 48px; border-radius: 13px; padding: 6px; margin-bottom: 10px; }
  .mmtExamCard__badge{ font-size: 10px; padding: 2px 8px; margin-bottom: 6px; }
  .mmtExamCard__title{ font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mmtExamCard__cta{ font-size: 12.5px; padding-top: 8px; }
  .mmtExamCard:hover{ transform: none; }
  .mmtExamCard > div[style*="position:absolute"]{ top: 8px !important; right: 8px !important; padding: 2px 8px !important; font-size: 10px !important; }

  .mmtSection__title{ font-size: 24px; }
  .mmtSection__head--center .mmtSection__subtitle{ font-size: 14.5px; }
}

/* Keep two columns down to small phones (the old rule dropped to one huge card at ≤400px) */
@media (max-width: 400px){
  .mmtExamGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 330px){
  .mmtExamGrid{ grid-template-columns: 1fr; }
  .mmtTrust{ grid-template-columns: 1fr 1fr; }
}
