:root {
  --fm-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fm-font-display: 'Source Serif 4', Georgia, serif;
  --fm-hero-ink: #183d32;
  --fm-hero-accent: #46765f;
  --fm-hero-paper: #f4f5ee;
  --fm-hero-muted: #43594e;
}

html,
body,
button,
input,
select,
textarea,
optgroup,
body p,
body li,
body td,
body th,
body label,
body div,
body span {
  font-family: var(--fm-font-sans) !important;
}

body {
  font-size: 16px !important;
  font-style: normal !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

body h1,
.fm-hero-title,
.fm-display-title {
  font-family: var(--fm-font-display) !important;
}

body h1 {
  font-weight: 500;
  font-style: normal;
}

/* Main menu — same display face as Impact Story heroes. */
header,
header a,
header button,
header span,
nav.sticky,
nav.sticky a,
nav.sticky button,
nav.sticky span,
#mobile-menu,
#mobile-menu a,
#mobile-menu button,
#mobile-menu span {
  font-family: var(--fm-font-display) !important;
}

body p {
  font-size: 1.08rem !important;
  font-style: normal !important;
  line-height: 1.72 !important;
  letter-spacing: 0px !important;
  word-spacing: 0px !important;
}

/* Impact Story ladder: subhead, story title, small heading, kicker, quote. */
body h2,
body h4,
body h5,
body h6,
.fm-kicker,
.section-kicker,
.city-kicker,
cite {
  font-family: var(--fm-font-sans) !important;
}

body h2 {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
}

/* Display-scale section titles use the hero face.
   Compact h2 subheads with no title size, including “Explore local impact”, stay DM Sans. */
h2[class*="text-xl"],
h2[class*="text-2xl"],
h2[class*="text-3xl"],
h2[class*="text-4xl"],
h2[class*="text-5xl"],
h2[class*="text-6xl"],
.nx-display {
  font-family: var(--fm-font-display) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

body h3 {
  font-family: var(--fm-font-display) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.12;
}

footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  font-family: var(--fm-font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body h4,
body h5,
body h6 {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.fm-kicker,
.section-kicker,
.city-kicker {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em !important;
  line-height: 1.2;
}

body blockquote p {
  font-family: var(--fm-font-display) !important;
  font-weight: 500 !important;
  font-size: 1.16rem !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

cite {
  font-size: 0.77rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

body h1 *,
body h3 * {
  font-family: inherit !important;
}

.fm-hero-title,
.fm-display-title {
  font-family: var(--fm-font-display) !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0px !important;
  word-spacing: 0px !important;
}

.fm-hero-title *,
.fm-display-title * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  word-spacing: inherit !important;
}

.fm-hero-title {
  margin: 0 !important;
  max-width: 39.625rem !important;
  font-size: 3.75rem !important;
  line-height: 1.04 !important;
  color: var(--fm-hero-ink) !important;
  text-align: left !important;
}

.fm-hero-title em,
.fm-hero-title span {
  color: var(--fm-hero-accent) !important;
  font-style: italic !important;
}

@media (max-width: 760px) {
  .fm-hero-title {
    font-size: 3rem !important;
  }
}

/* Hide ALL Google Website Translator UI — we drive translation from our globe menu. */

/* Wrapper div Google inserts as first child of body */
body > .skiptranslate:has(iframe.goog-te-banner-frame),
body > div.skiptranslate:has(.goog-te-banner-frame) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate:first-child iframe,
body > iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

/* Gadget, tooltips, menus */
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-te-ftab,
.goog-te-spinner-pos,
#goog-gt-tt,
.goog-te-gadget-icon {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Google pushes body down — force it back */
html,
body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: static !important;
}

html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body {
  top: 0 !important;
  margin-top: 0 !important;
}

.goog-tooltip,
.goog-tooltip:hover { display: none !important; }

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

#google_translate_element,
#google_translate_element * {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Language picker */
.fm-lang-picker { position: relative; display: inline-flex; flex-shrink: 0; }
.fm-lang-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.fm-lang-picker__btn:hover { background: #e5e7eb; }
.fm-lang-picker__btn svg { flex-shrink: 0; }
.fm-lang-picker__code {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fm-lang-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  z-index: 9999;
  width: 15rem;
  max-height: min(24rem, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 0.375rem 0;
}
.fm-lang-picker__menu--mobile {
  position: static;
  width: 100%;
  max-height: none;
  margin-top: 0.25rem;
  box-shadow: none;
  border-radius: 0.5rem;
}
.fm-lang-picker__heading {
  padding: 0.5rem 1rem 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.fm-lang-picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: #374151;
  cursor: pointer;
}
.fm-lang-picker__item:hover { background: #f9fafb; }
.fm-lang-picker__item.is-active {
  background: #ecfdf5;
  color: #166534;
  font-weight: 600;
}
.fm-lang-picker__check { flex-shrink: 0; color: #16a34a; }
.fm-lang-picker--block { display: block; width: 100%; }
.fm-lang-picker--block .fm-lang-picker__btn { width: 100%; justify-content: flex-start; }

/* Floating picker for pages without inline nav mount */
.fm-floating-lang-picker {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9998;
}
.fm-floating-lang-picker .fm-lang-picker__menu {
  bottom: calc(100% + 0.375rem);
  top: auto;
}

@media (max-width: 640px) {
  .fm-floating-lang-picker {
    bottom: 1rem;
    right: 1rem;
  }
}
