/* Preserve the homepage eyebrow's appearance without inserting a heading level. */
.brand-container .ma-home-eyebrow {
  text-align:center !important;
  margin:0 auto 20px;
  width:100% !important;
  font-family:var(--ma-font) !important;
  font-size:.7rem !important;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.18em !important;
  text-transform:uppercase !important;
  color:var(--ma-accent) !important;
}

body.ma-practice-page .ma-sec1 .topicabout-inner .ma-practice-methods-title {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--muted);
  margin:16px 0 8px;
}
.ma-practice-question-source { font-weight:500; }

/* The compact nav is already the complete mobile header. */
@media (max-width:1099px) {
  :root { --ma-mobile-anchor-clearance:88px; }
  html { scroll-padding-top:var(--ma-mobile-anchor-clearance); }
  body .site-header { display:none; }
  body .site-container { padding-top:76px; }
  .ma-navbar,
  .ma-navbar.ma-navbar--scrolled {
    top:var(--wp-admin--admin-bar--height, 0px);
    padding:0 12px;
  }
  .ma-navbar .ma-navbar-inner,
  .ma-navbar.ma-navbar--scrolled .ma-navbar-inner {
    min-height:64px;
    padding:8px 12px;
    margin-top:0;
  }
  .ma-navbar-logo-mobile { min-width:0; max-width:180px; flex-shrink:1; }
  .ma-navbar-logo-mobile img { width:auto; height:44px; max-width:100%; object-fit:contain; }
  .ma-burger { width:44px; height:44px; }
  /* Existing guide/question scroll margins assume a taller header. Use one
     measured root offset, plus a small gap, across all public page anchors. */
  body .site-inner [id] { scroll-margin-top:12px !important; }
  #ma-mobile-panel { max-width:100vw; }
  #ma-fab-modal { padding:16px; }
  .ma-fab-modal-inner {
    max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .ma-fab-modal-close { width:44px; height:44px; }
}

@media (max-width:768px) {
  html { scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  /* Outrank the existing, later inline body{padding:0} theme reset. */
  body[class] { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  #ma-fab-trigger {
    right:max(12px, env(safe-area-inset-right));
    bottom:calc(12px + env(safe-area-inset-bottom));
    gap:8px;
    max-width:calc(100vw - 24px);
  }
  #ma-fab-trigger .ma-fab-circle { width:44px; height:44px; flex-shrink:0; }
  #ma-fab-trigger .ma-fab-label { font-size:13px; padding:8px 12px; }
  /* The menu and diagram viewer supply their own close controls. */
  body.ma-panel-open #ma-fab-trigger { visibility:hidden; }
}

@media (max-width:599px) {
  /* This link remains prominent at the top of the expanded mobile menu. */
  .ma-navbar-right-controls .ma-navbar-cta-intel { display:none; }
}
