/*
 * Styles for the shared site header and footer (tools/partials/*.html) that
 * tools/apply_site_theme.py injects into the guide, tool and city pages.
 * Everything is scoped to .mp-chrome so it cannot change a page's own content,
 * and resets the few inherited properties those pages set globally.
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', Inter, system-ui, sans-serif;
}

.mp-chrome {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', Inter, system-ui, sans-serif;
  color: #0F1222;
  line-height: normal;
  text-align: left;
}

.mp-chrome,
.mp-chrome * {
  box-sizing: border-box;
}

.mp-chrome a {
  color: #3F4BD6;
}

.mp-chrome a:hover {
  color: #2E38B0;
}

.mp-chrome .mp-navlink {
  color: #3B4057;
  text-decoration: none;
}

.mp-chrome .mp-navlink:hover {
  color: #0F1222;
}

.mp-chrome .mp-btn-primary:hover {
  background: #4652E0 !important;
}

.mp-chrome .mp-btn-ghost:hover {
  background: #EEF0FF !important;
}

.mp-chrome a:focus-visible {
  outline: 3px solid #A9B0FA;
  outline-offset: 2px;
}

/* Header links reserve the width of their bold form, matching the marketing pages. */
.mp-chrome [role="banner"] .mp-navlink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mp-chrome [role="banner"] .mp-navlink::after {
  content: attr(data-label);
  font-weight: 700;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}
