/* ==========================================================================
   Feature-layer map question — public experience
   Themed to the PublicInput public design system: Montserrat (display) /
   Libre Franklin (body), brand blue #0395FF + orange accent #FF7C1D, neutral
   gray ramp on white, soft shadows, 8/12px radii.
   Tokens (source of truth): dev/design — colors_and_type.css.
   The --mfp-* names are kept and remapped to system values so the whole
   stylesheet inherits the new look.
   ========================================================================== */

:root {
  /* PublicInput brand palette */
  --pi-blue: #0395ff;
  --pi-blue-hover: #0278d1;
  --pi-blue-soft: #84d0f7;
  --pi-blue-pale: #dbf1ff;
  --pi-blue-ink: #0a5ea8; /* readable blue text on pale-blue fills */
  --pi-orange: #ff7c1d;
  --pi-ink: #333;
  --pi-gray-700: #696868;
  --pi-gray-500: #8997a1;
  --pi-gray-300: #c4cdd4;
  --pi-gray-200: #eaedef;
  --pi-gray-100: #f5f8fa;
  --pi-teal-deep: #07afaa;

  /* Mapped --mfp-* tokens */
  --mfp-paper: #f8fafb; /* page background (tinted off-white) */
  --mfp-paper-raised: #fff; /* raised panels / cards */
  --mfp-ink: var(--pi-ink);
  --mfp-ink-soft: var(--pi-gray-700);

  /* WCAG 2.1 AA: muted text must clear 4.5:1 on white. --pi-gray-500 (#8997a1)
     is only ~3:1, so this page uses a darker cool gray (~4.8:1) for muted text. */
  --mfp-ink-faint: #6b7280;
  --mfp-hairline: var(--pi-gray-200);
  --mfp-hairline-strong: var(--pi-gray-300);

  /* WCAG 2.1 AA: brand blue #0395ff is only ~3.1:1 against white (and white on it
     is the same), failing for normal-size button/link text. Use an AA-safe blue
     (~5:1 both directions) for text and primary button fills. The --pi-blue tints
     (-soft / -pale) are unchanged since they're used as backgrounds, not text. */
  --mfp-cobalt: #0072c6;
  --mfp-cobalt-deep: #005fa3;
  --mfp-signal: var(--pi-orange); /* brand accent */
  --mfp-signal-ink: #fff;
  --mfp-up: var(--pi-teal-deep); /* affirmative / priority */
  --mfp-up-soft: #e3f6f4;
  --mfp-down: #9b1c1c; /* negative */
  --mfp-down-soft: #fdf0ef;
  --mfp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mfp-shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.12);
  --mfp-radius: 12px; /* cards / containers */
  --mfp-font-display: "Montserrat", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --mfp-font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --mfp-font-mono: var(--mfp-font-body); /* system has no mono — use body */
  --mfp-panel-width: 408px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--mfp-font-body);
  color: var(--mfp-ink);
  background: var(--mfp-paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

/* Skip navigation link — visually hidden until focused (WCAG 2.4.1) */
.mfp-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--mfp-surface);
  color: var(--mfp-ink);
  font-family: var(--mfp-font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid var(--mfp-ink);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--mfp-shadow-sm);
}
.mfp-skip-link:focus {
  top: 0;
  outline: 2px solid var(--mfp-blue);
  outline-offset: 2px;
}

.mfp-app {
  height: 100vh;
  /* stylelint-disable-next-line unit-no-unknown -- dvh keeps the full-screen map sized correctly on mobile */
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mfp-paper);
}

.mfp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.mfp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--mfp-paper-raised);
  border-bottom: 1px solid var(--mfp-hairline-strong);
  position: relative;
  z-index: 30;
}

.mfp-header::after {
  /* brand accent rule */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--mfp-cobalt);
  pointer-events: none;
}

.mfp-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mfp-shield {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
  background: var(--mfp-ink);
  color: #fff;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 10px;
}

.mfp-header__titles {
  min-width: 0;
}

.mfp-eyebrow {
  display: block;
  font-family: var(--mfp-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mfp-ink-faint);
}

.mfp-title {
  margin: 1px 0 0;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfp-header__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.mfp-headline-stats {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--mfp-ink-soft);
}

.mfp-headline-stat strong {
  display: block;
  font-family: var(--mfp-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--mfp-ink);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.mfp-btn {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: 8px;
  border: 1.5px solid var(--mfp-cobalt);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.12s ease-out, color 0.12s ease-out,
    border-color 0.12s ease-out;
  background: transparent;
  color: var(--mfp-cobalt);
}

.mfp-btn:hover {
  background: var(--pi-blue-pale);
}

.mfp-btn--primary {
  background: var(--mfp-cobalt);
  border-color: var(--mfp-cobalt);
  color: #fff;
}

.mfp-btn--primary:hover {
  background: var(--mfp-cobalt-deep);
  border-color: var(--mfp-cobalt-deep);
}

.mfp-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mfp-ink-soft);
}

.mfp-btn--ghost:hover {
  background: var(--pi-gray-100);
  color: var(--mfp-ink);
}

.mfp-btn[disabled] {
  background: var(--pi-gray-200);
  border-color: var(--pi-gray-200);
  color: var(--mfp-ink-faint);
  cursor: progress;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--pi-blue-soft);
  outline-offset: 2px;
}

/* "How this works" shows its label on desktop; the icon collapses it to a
   compact control on phones (see the mobile block). */
.mfp-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mfp-about-btn__icon {
  display: none;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Layout: map + panel
   -------------------------------------------------------------------------- */

.mfp-draft {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  background: #fff1e6;
  border-bottom: 1px solid #ffdec7;
  color: #8a4a12;
  font-size: 13px;
  position: relative;
  z-index: 29;
}

.mfp-draft__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pi-orange);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 124, 29, 0.18);
}

.mfp-main {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.mfp-map-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.mfp-map {
  position: absolute;
  inset: 0;
  background: var(--pi-gray-100);
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.mfp-search {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  width: min(340px, calc(100% - 32px));
}

.mfp-search__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 13px;
  top: 12px;
  color: var(--mfp-ink-faint);
  pointer-events: none;
}

.mfp-search input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px 10px 40px;
  border-radius: var(--mfp-radius);
  border: 1px solid var(--mfp-hairline-strong);
  background: var(--mfp-paper-raised);
  box-shadow: var(--mfp-shadow);
  color: var(--mfp-ink);
}

.mfp-search input::placeholder {
  color: var(--mfp-ink-faint);
}

.mfp-search__results {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: var(--mfp-paper-raised);
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: var(--mfp-radius);
  box-shadow: var(--mfp-shadow-lift);
  max-height: 320px;
  overflow: auto;
}

.mfp-search__results li {
  margin: 0;
}

.mfp-search__result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: var(--mfp-ink);
}

.mfp-search__result:hover,
.mfp-search__result[aria-selected="true"] {
  background: var(--pi-blue-pale);
}

.mfp-search__result .mfp-dot {
  flex: none;
}

.mfp-search__result .mfp-legend__icon {
  width: 22px;
  height: 22px;
  margin-top: 0;
}

.mfp-search__result-title {
  font-weight: 600;
  font-size: 13.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfp-search__result-sub {
  display: block;
  font-size: 12px;
  color: var(--mfp-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfp-search__result-key {
  margin-left: auto;
  font-family: var(--mfp-font-mono);
  font-size: 11.5px;
  color: var(--mfp-ink-soft);
  flex: none;
}

.mfp-search__empty {
  padding: 12px;
  font-size: 13px;
  color: var(--mfp-ink-faint);
}

/* Address / place fallback: the search box doubles as a geocoded map jump, so
   this last row is set off with a hairline and uses a location pin (not a mode
   swatch) plus a cobalt "Go" affordance. */
.mfp-search__geo-row {
  border-top: 1px solid var(--mfp-hairline);
  margin-top: 4px;
  padding-top: 4px;
}

.mfp-search__geo-pin {
  flex: none;
  width: 16px;
  height: 16px;
  background-color: var(--mfp-cobalt);
  -webkit-mask: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.mfp-search__result--geo .mfp-search__result-key {
  color: var(--mfp-cobalt);
  font-family: var(--mfp-font-display);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Legend
   -------------------------------------------------------------------------- */

.mfp-legend {
  position: absolute;
  bottom: 26px;
  left: 16px;
  z-index: 20;
  width: 264px;
  background: var(--mfp-paper-raised);
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: var(--mfp-radius);
  box-shadow: var(--mfp-shadow);
  overflow: hidden;
}

.mfp-legend__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--mfp-hairline);
}

.mfp-legend__title {
  margin: 0;
  font-family: var(--mfp-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mfp-legend__collapse {
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--mfp-cobalt);
  cursor: pointer;
  padding: 2px 4px;
}

.mfp-legend__body {
  padding: 8px 8px 10px;
}

.mfp-legend__hint {
  margin: 0 4px 6px;
  font-size: 11.5px;
  color: var(--mfp-ink-faint);
}

.mfp-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mfp-legend__item {
  /* swatch · name · count — top-aligned so the swatch and count lock to the
     first line when a long category name (e.g. "Congestion Mitigation
     (Non-Highway)") wraps to two lines. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 9px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  color: var(--mfp-ink);
  cursor: pointer;
  transition: background 0.1s ease, opacity 0.1s ease;
}

.mfp-legend__label {
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.mfp-legend__item:hover {
  background: rgba(21, 35, 58, 0.06);
}

.mfp-legend__item[aria-pressed="false"] {
  opacity: 0.42;
}

.mfp-legend__item[aria-pressed="false"] .mfp-dot {
  background: var(--mfp-ink-faint) !important;
}

.mfp-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(21, 35, 58, 0.35);
  flex: none;
}

/* optically center the swatch on the label's first line */
.mfp-legend__item .mfp-dot {
  margin-top: 1.5px;
}

/* Point-category key: the exact marker badge, locked to the first label line. */
.mfp-legend__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: -1px;
  filter: drop-shadow(0 1px 1px rgba(21, 35, 58, 0.25));
}

.mfp-legend__icon svg {
  display: block;
}

.mfp-legend__count {
  font-family: var(--mfp-font-mono);
  font-size: 11.5px;
  line-height: 1.3;
  padding-top: 1px;
  color: var(--mfp-ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Basemap switcher + attribution
   -------------------------------------------------------------------------- */

/* Corner "Layers" button — mounted in the map's RIGHT_BOTTOM control slot, so it
   stacks above the zoom buttons and never competes with search for the top. */
.mfp-baselayer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px 0;
  padding: 9px 13px;
  min-height: 44px;
  background: var(--mfp-paper-raised);
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: 11px;
  box-shadow: var(--mfp-shadow);
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--mfp-ink);
  cursor: pointer;
}

.mfp-baselayer-btn:hover {
  background: var(--pi-gray-100);
}

.mfp-baselayer-btn.is-on {
  border-color: var(--mfp-cobalt);
  color: var(--mfp-cobalt);
}

.mfp-baselayer-btn__ic {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Basemap menu: a popover on desktop, a bottom sheet (with scrim) on mobile. */
.mfp-baselayer-scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(20, 24, 20, 0.42);
}

.mfp-baselayer-menu {
  position: absolute;
  z-index: 61;
  background: var(--mfp-paper-raised);
  box-shadow: var(--mfp-shadow-lift);
  overflow: hidden auto;
}

.mfp-baselayer-menu--popover {
  width: 248px;
  max-height: 320px;
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: var(--mfp-radius);
}

.mfp-baselayer-menu--sheet {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70%;
  border-radius: 16px 16px 0 0;
  padding-bottom: 6px;
}

.mfp-baselayer-menu__head {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mfp-ink-faint);
  padding: 14px 16px 6px;
}

.mfp-baselayer-menu--sheet .mfp-baselayer-menu__head {
  padding-top: 18px;
}

.mfp-baselayer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.mfp-baselayer-item:hover {
  background: var(--pi-gray-100);
}

.mfp-baselayer-item.is-on {
  background: var(--pi-blue-pale);
}

.mfp-baselayer-item:focus-visible {
  outline: 2px solid var(--mfp-cobalt);
  outline-offset: -2px;
}

.mfp-baselayer-item__sw {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.mfp-baselayer-item__sw--streets {
  background: #e6ebe3;
}

.mfp-baselayer-item__sw--satellite {
  background: linear-gradient(135deg, #35422f, #1f2d1d);
}

.mfp-baselayer-item__sw--terrain {
  background: #e7dec9;
}

.mfp-baselayer-item__sw--esri-imagery {
  background: linear-gradient(135deg, #243024, #18221a);
}

.mfp-baselayer-item__sw--esri-topo {
  background: #e7dec9;
}

.mfp-baselayer-item__sw--custom {
  background: linear-gradient(135deg, #4a5a74, #2c3647);
}

.mfp-baselayer-item__tx {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mfp-baselayer-item__lbl {
  font-weight: 700;
  font-size: 14px;
  color: var(--mfp-ink);
}

.mfp-baselayer-item__note {
  font-size: 12px;
  color: var(--mfp-ink-faint);
}

.mfp-baselayer-item__ck {
  color: var(--mfp-cobalt);
  font-weight: 800;
  width: 16px;
  text-align: center;
  flex: none;
}

.mfp-basemap-attr {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 15;
  max-width: 55%;
  padding: 2px 8px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--mfp-ink-soft);
  background: rgba(255, 255, 255, 0.82);
  border-top-right-radius: 6px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Map tooltip
   -------------------------------------------------------------------------- */

.mfp-map-tooltip {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  background: var(--mfp-ink);
  color: var(--mfp-paper-raised);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.5px;
  max-width: 260px;
  box-shadow: var(--mfp-shadow-lift);
  transform: translate(-50%, calc(-100% - 14px));
}

.mfp-map-tooltip strong {
  display: block;
  font-family: var(--mfp-font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--pi-blue-soft);
}

/* --------------------------------------------------------------------------
   Loading overlay
   -------------------------------------------------------------------------- */

.mfp-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: color-mix(in sRGB, var(--mfp-paper) 88%, transparent);
  backdrop-filter: blur(2px);
  transition: opacity 0.35s ease;
}

.mfp-loading--done {
  opacity: 0;
  pointer-events: none;
}

.mfp-loading__crosshair {
  position: relative;
  width: 64px;
  height: 64px;
}

.mfp-loading__crosshair span:nth-child(1) {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--mfp-ink);
  border-radius: 50%;
  border-top-color: transparent;
  animation: mfp-spin 1.1s linear infinite;
}

.mfp-loading__crosshair span:nth-child(2) {
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--mfp-hairline-strong);
}

.mfp-loading__crosshair span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: -6px;
  right: -6px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--mfp-hairline-strong);
}

@keyframes mfp-spin {
  to {
    transform: rotate(360deg);
  }
}

.mfp-loading__text {
  margin: 0;
  font-family: var(--mfp-font-display);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--mfp-ink-soft);
}

/* --------------------------------------------------------------------------
   Side panel
   -------------------------------------------------------------------------- */

.mfp-panel {
  width: var(--mfp-panel-width);
  flex: none;
  background: var(--mfp-paper-raised);
  border-left: 1px solid var(--mfp-hairline-strong);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  z-index: 10;
}

/* The drag handle is a real <button> (keyboard-operable); hidden on desktop, shown on mobile. */
.mfp-panel__handle {
  display: none;
}

.mfp-panel__handle-bar {
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--mfp-hairline-strong);
}

.mfp-panel__intro,
.mfp-project {
  padding: 26px 24px 34px;
}

.mfp-intro__title {
  margin: 6px 0 10px;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.mfp-intro__copy {
  margin: 0 0 18px;
  color: var(--mfp-ink-soft);
}

/* Admin-authored rich-text (page introduction): style the safe HTML subset the editor emits. */
.mfp-richtext p {
  margin: 0 0 10px;
}
.mfp-richtext p:last-child {
  margin-bottom: 0;
}
.mfp-richtext a {
  color: var(--mfp-cobalt, #2456d6);
  text-decoration: underline;
  word-break: break-word;
}
.mfp-richtext ul,
.mfp-richtext ol {
  margin: 0 0 10px;
  padding-left: 22px;
}
.mfp-richtext li {
  margin: 2px 0;
}
.mfp-richtext strong,
.mfp-richtext b {
  font-weight: 700;
}
.mfp-richtext h3,
.mfp-richtext h4 {
  font-family: var(--mfp-font-display);
  margin: 4px 0 6px;
}

.mfp-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mfp-steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--mfp-ink);
  padding: 12px 14px;
  background: var(--mfp-paper);
  border: 1px solid var(--mfp-hairline);
  border-radius: var(--mfp-radius);
  animation: mfp-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mfp-steps li:nth-child(1) {
  animation-delay: 0.05s;
}

.mfp-steps li:nth-child(2) {
  animation-delay: 0.12s;
}

.mfp-steps li:nth-child(3) {
  animation-delay: 0.19s;
}

.mfp-steps__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--mfp-cobalt);
  color: #fff;
  border-radius: 50%;
  font-family: var(--mfp-font-display);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(3px);
}

.mfp-intro__note {
  font-size: 12.5px;
  color: var(--mfp-ink-faint);
  border-left: 3px solid var(--mfp-signal);
  padding-left: 10px;
  margin: 0;
}

@keyframes mfp-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project card */

.mfp-project__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mfp-project__ids {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mfp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 9px;
  border: 1px solid var(--mfp-hairline-strong);
}

.mfp-chip--id {
  letter-spacing: 0.02em;
  background: var(--pi-blue-pale);
  color: var(--pi-blue-ink);
  border-color: transparent;
  position: relative;
}

.mfp-chip--mode {
  background: var(--mfp-paper);
}

.mfp-chip--mode .mfp-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.mfp-chip--mode .mfp-legend__icon {
  width: 16px;
  height: 16px;
  margin-top: 0;
}

.mfp-panel__close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--mfp-hairline-strong);
  background: var(--mfp-paper-raised);
  color: var(--mfp-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mfp-panel__close:hover {
  background: var(--mfp-paper);
}

.mfp-project__title {
  margin: 0 0 8px;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  animation: mfp-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mfp-project__desc {
  margin: 0 0 16px;
  color: var(--mfp-ink-soft);
  font-size: 13.5px;
  animation: mfp-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both;
}

.mfp-facts {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--mfp-hairline);
  border: 1px solid var(--mfp-hairline);
  border-radius: var(--mfp-radius);
  overflow: hidden;
  animation: mfp-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.mfp-facts > div {
  background: var(--mfp-paper);
  padding: 9px 12px;
}

.mfp-facts > div.mfp-facts__wide {
  grid-column: 1 / -1;
}

/* long source-data notes (often ALL CAPS) read quieter than headline facts */
.mfp-facts > div.mfp-facts__note dd {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mfp-ink-soft);
  line-height: 1.45;
}

.mfp-facts dt {
  font-family: var(--mfp-font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mfp-ink-faint);
  margin: 0 0 2px;
}

.mfp-facts dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
}

.mfp-facts dd.mfp-facts__num {
  font-family: var(--mfp-font-mono);
  font-weight: 600;
}

/* Funding-status pill in the detail header. The fill color is set inline from the poll's
   configured StatusStyles (a dynamic runtime value); the rest of the chip is styled here. */
.mfp-status-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--pi-gray-200);
  color: var(--mfp-ink-soft);
  font-family: var(--mfp-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

/* "View full scoring details" link row beneath the facts grid (opens off-map scoring). */
.mfp-facts > div.mfp-facts__link {
  text-align: center;
}

.mfp-facts__link .mfp-scorelink {
  font-family: var(--mfp-font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mfp-cobalt);
  text-decoration: none;
}

.mfp-facts__link .mfp-scorelink:hover {
  color: var(--mfp-cobalt-deep);
  text-decoration: underline;
}

/* Vote module */

.mfp-vote {
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: var(--mfp-radius);
  background: var(--mfp-paper);
  padding: 16px;
  margin-bottom: 22px;
  box-shadow: var(--mfp-shadow);
  animation: mfp-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.14s both;
}

.mfp-vote__prompt {
  margin: 0 0 12px;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 16px;
}

.mfp-vote__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mfp-vote__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: var(--mfp-radius);
  border: 1.5px solid var(--mfp-hairline-strong);
  background: var(--mfp-paper-raised);
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.mfp-vote__btn svg {
  width: 22px;
  height: 22px;
}

.mfp-vote__btn:hover {
  border-color: var(--mfp-ink-faint);
  background: var(--pi-gray-100);
}

.mfp-vote__btn--up {
  color: var(--mfp-up);
}

.mfp-vote__btn--down {
  color: var(--mfp-down);
}

.mfp-vote__btn[aria-pressed="true"].mfp-vote__btn--up {
  background: var(--mfp-up-soft);
  border-color: var(--mfp-up);
}

.mfp-vote__btn[aria-pressed="true"].mfp-vote__btn--down {
  background: var(--mfp-down-soft);
  border-color: var(--mfp-down);
}

.mfp-vote__label {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mfp-ink);
}

.mfp-vote__count {
  font-family: var(--mfp-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mfp-ink-soft);
  background: rgba(21, 35, 58, 0.07);
  padding: 1px 8px;
  border-radius: 99px;
}

.mfp-vote__bar {
  height: 7px;
  margin: 12px 2px 6px;
  border-radius: 99px;
  background: var(--mfp-down-soft);
  border: 1px solid var(--mfp-hairline);
  overflow: hidden;
  display: none;
}

.mfp-vote__bar.is-visible {
  display: block;
}

.mfp-vote__bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--mfp-up);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mfp-vote__hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--mfp-ink-faint);
}

/* tentative state while the vote settles: gentle pulse on the count pills */
.mfp-vote.is-pending .mfp-vote__count {
  animation: mfp-settle 1s ease-in-out infinite;
}

@keyframes mfp-settle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* count "pop" when a tally changes */
.mfp-vote__count.is-bumped {
  animation: mfp-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes mfp-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.25);
    background: var(--mfp-signal);
    color: var(--mfp-signal-ink);
  }

  100% {
    transform: scale(1);
  }
}

/* Comments */

.mfp-comments__title {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 10px;
}

.mfp-comments__count {
  font-family: var(--mfp-font-mono);
  font-size: 12px;
  color: var(--mfp-ink-faint);
  font-weight: 600;
}

.mfp-composer {
  margin-bottom: 16px;
}

.mfp-composer textarea,
.mfp-composer input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--mfp-ink);
  background: var(--mfp-paper);
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: 8px;
  padding: 9px 11px;
  resize: vertical;
}

.mfp-composer textarea::placeholder,
.mfp-composer input::placeholder {
  color: var(--mfp-ink-faint);
}

.mfp-composer__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.mfp-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mfp-comment {
  border: 1px solid var(--mfp-hairline);
  border-left: 3px solid var(--mfp-cobalt);
  border-radius: 8px;
  background: var(--mfp-paper);
  padding: 10px 12px;
}

.mfp-comment--mine {
  border-left-color: var(--mfp-signal);
}

.mfp-comment__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--mfp-ink-faint);
  margin-bottom: 3px;
}

.mfp-comment__name {
  font-weight: 700;
  color: var(--mfp-ink-soft);
}

.mfp-comment__text {
  margin: 0;
  font-size: 13.5px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.mfp-comments__empty {
  font-size: 13px;
  color: var(--mfp-ink-faint);
  border: 1px dashed var(--mfp-hairline-strong);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

/* Skeletons */

.mfp-skel {
  position: relative;
  overflow: hidden;
  background: rgba(21, 35, 58, 0.08);
  border-radius: 6px;
  min-height: 13px;
}

.mfp-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  animation: mfp-shimmer 1.2s infinite;
}

@keyframes mfp-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* --------------------------------------------------------------------------
   Toast + dialog
   -------------------------------------------------------------------------- */

.mfp-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 60;
  background: var(--mfp-ink);
  color: var(--mfp-paper-raised);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 9px;
  padding: 11px 18px;
  box-shadow: var(--mfp-shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(440px, calc(100vw - 40px));
  text-align: center;
}

.mfp-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mfp-toast.has-action {
  pointer-events: auto;
}

.mfp-toast__action {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 7px;
  background: var(--mfp-signal);
  color: var(--mfp-signal-ink);
  font-weight: 700;
  text-decoration: none;
}

.mfp-toast__action:hover {
  filter: brightness(1.05);
}

/* tentative comment while it posts */
.mfp-comment--pending {
  opacity: 0.62;
  border-left-style: dashed;
}

.mfp-comment--pending .mfp-comment__meta span:last-child {
  color: var(--mfp-cobalt);
  font-weight: 600;
}

.mfp-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(21, 35, 58, 0.45);
  padding: 20px;
}

.mfp-dialog[hidden] {
  display: none;
}

.mfp-dialog__card {
  width: min(520px, 100%);
  background: var(--mfp-paper-raised);
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: 14px;
  box-shadow: var(--mfp-shadow-lift);
  padding: 22px 24px;
  max-height: 86vh;
  overflow: auto;
  animation: mfp-rise 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mfp-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mfp-dialog__head h2 {
  margin: 0;
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.005em;
}

.mfp-dialog__card p {
  color: var(--mfp-ink-soft);
  font-size: 14px;
}

.mfp-dialog__list {
  padding-left: 20px;
  color: var(--mfp-ink-soft);
  font-size: 14px;
}

.mfp-dialog__list li {
  margin-bottom: 6px;
}

.mfp-dialog__fineprint {
  font-size: 12.5px !important;
  color: var(--mfp-ink-faint) !important;
  border-top: 1px solid var(--mfp-hairline);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   Hide Google bits we restyle around
   -------------------------------------------------------------------------- */

.mfp-map .gm-style-cc {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Mobile: panel becomes a bottom sheet
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .mfp-header {
    padding: 7px 12px;
    gap: 10px;
  }

  .mfp-header__brand {
    flex: 1 1 0;
    min-width: 0;
  }

  .mfp-header__meta {
    flex: 0 0 auto;
    gap: 8px;
  }

  .mfp-headline-stats {
    display: none;
  }

  /* Collapse "How this works" to a tappable icon and pin it to the header's
     top-right corner. Absolute positioning (rather than relying on flex-shrink
     of a long title) guarantees the control is always visible; the title
     reserves space for it via padding-right below. */
  .mfp-about-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 9px;
    border-radius: 9px;
  }

  .mfp-header__titles {
    padding-right: 46px;
  }

  .mfp-about-btn__icon {
    display: block;
  }

  .mfp-about-btn__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
  }

  .mfp-title {
    font-size: 15px;
    white-space: normal;
  }

  /* On a phone the Layers button collapses to a round, icon-only tap target. */
  .mfp-baselayer-btn {
    padding: 0;
    width: 46px;
    height: 46px;
    min-height: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .mfp-baselayer-btn__lbl {
    display: none;
  }

  .mfp-eyebrow {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
  }

  .mfp-shield {
    width: 42px;
    height: 36px;
    font-size: 11px;
  }

  .mfp-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .mfp-main {
    flex-direction: column;
  }

  .mfp-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 30vh;

    /* Sit above the map overlays (legend z20, basemap z25, draft z29) so the
       expanded bottom sheet cleanly covers them. The collapsed sheet doesn't
       overlap the legend (legend bottom is 30vh + 14px), so it stays visible
       over the map; expanding the sheet hides it. */
    z-index: 45;
    border-left: 0;
    border-top: 1px solid var(--mfp-hairline-strong);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 24px rgba(21, 35, 58, 0.18);
    transition: max-height 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .mfp-panel.is-expanded {
    max-height: 78vh;
  }

  .mfp-panel__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 0 4px;
    margin: 0;
    cursor: pointer;
  }

  .mfp-panel__intro,
  .mfp-project {
    padding: 16px 16px 28px;
  }

  .mfp-legend {
    bottom: calc(30vh + 14px);
    width: 212px;
  }

  .mfp-search {
    width: calc(100% - 32px);
  }

  .mfp-vote__buttons {
    grid-template-columns: 1fr 1fr;
  }

  .mfp-composer__row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gate message shown in place of the questions on a gated feature (item 3). */
.mfp-gate-msg {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: var(--mfp-radius);
  background: var(--mfp-paper-raised);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   Interest form — placement-aware contact-info capture
   Three placements: card (A, default), stickyBar (B), banner (C).
   One consistent form module (.ipf-*) used across all placements.
   ============================================================ */

/* --- Shared form module --- */
.ipf {
  font-family: var(--mfp-font-body);
}

.ipf-head {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.ipf-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mfp-cobalt);
  color: #fff;
  display: grid;
  place-items: center;
}

.ipf-ic svg {
  width: 21px;
  height: 21px;
}

.ipf-ic--accent {
  background: var(--pi-orange);
}

.ipf-ic--sm {
  width: 32px;
  height: 32px;
}

.ipf-ic--sm svg {
  width: 18px;
  height: 18px;
}

.ipf-head-tx {
  min-width: 0;
}

.ipf-h {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--mfp-ink);
  margin: 2px 0 4px;
  line-height: 1.3;
}

.ipf-sub {
  font-size: 13.5px;
  color: var(--mfp-ink-faint);
  line-height: 1.5;
  margin: 0;
}

.ipf-sub--inset {
  margin-bottom: 14px;
}

.ipf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Collapse to single column on the narrower panel */
@media (max-width: 500px) {
  .ipf-grid {
    grid-template-columns: 1fr;
  }
}

.ipf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ipf-lbl {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--mfp-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Required-field marker: a red star next to required field labels. Optional fields
   carry no marker, so the star alone signals "you must fill this in". */
.ipf-req {
  color: var(--mfp-down);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.ipf-in {
  border: 1px solid var(--mfp-hairline-strong);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--mfp-font-body);
  font-size: 14px;
  color: var(--mfp-ink);
  background: #fff;
  width: 100%;
  min-width: 0;
}

.ipf-in:focus {
  outline: 2px solid var(--mfp-cobalt);
  outline-offset: -1px;
  border-color: var(--mfp-cobalt);
}

.ipf-in::placeholder {
  color: var(--mfp-ink-faint);
}

.ipf-in.is-invalid {
  border-color: var(--mfp-down);
  outline-color: var(--mfp-down);
}

.ipf-err {
  font-size: 12px;
  color: var(--mfp-down);
  margin: 2px 0 0;
}

.ipf-submit {
  width: 100%;
  border: 0;
  background: var(--mfp-cobalt);
  color: #fff;
  font-family: var(--mfp-font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  transition: filter 120ms;
}

.ipf-submit:hover:not(:disabled) {
  filter: brightness(0.92);
}

.ipf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ipf-fine {
  font-size: 12px;
  color: var(--mfp-ink-faint);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* Success state */
.ipf-done {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ipf-done-ic {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mfp-up);
  color: #fff;
  display: grid;
  place-items: center;
}

.ipf-done-ic svg {
  width: 19px;
  height: 19px;
}

.ipf-done-body b {
  font-family: var(--mfp-font-display);
  font-size: 15px;
  color: var(--mfp-ink);
  display: block;
  margin-bottom: 4px;
}

.ipf-done-body p {
  font-size: 13.5px;
  color: var(--mfp-ink-faint);
  line-height: 1.5;
  margin: 0;
}

/* Option A — anchored card */
.ipf--card {
  background: var(--pi-blue-pale);
  border-radius: var(--mfp-radius);
  padding: 20px;
  margin-bottom: 22px;
}

/* Option C — highlighted orange banner, collapsed by default */
.ipf--banner {
  border-radius: var(--mfp-radius);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #f3cda6;
  background: #fff7ef;
}

.ipf-banner-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.ipf-banner-tx {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ipf-banner-h {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--mfp-ink);
}

.ipf-banner-sub {
  font-size: 12.5px;
  color: #9a6512;
}

.ipf-banner-chev {
  flex: 0 0 auto;
  color: #b06a18;
  transition: transform 180ms;
}

.ipf-banner-chev svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ipf--banner.is-open .ipf-banner-chev {
  transform: rotate(180deg);
}

.ipf-banner-body {
  display: none;
  padding: 0 16px 16px;
}

.ipf--banner.is-open .ipf-banner-body {
  display: block;
}

/* Option B — sticky footer bar */
.mfp-interest-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-top: 1px solid var(--mfp-hairline);
  background: var(--mfp-paper-raised);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
}

.mfp-interest-foot__tx {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mfp-interest-foot__h {
  font-family: var(--mfp-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--mfp-ink);
}

.mfp-interest-foot__p {
  font-size: 12px;
  color: var(--mfp-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfp-interest-foot__btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--mfp-cobalt);
  color: #fff;
  font-family: var(--mfp-font-body);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.mfp-interest-foot__btn:hover {
  filter: brightness(0.92);
}

/* Option B — scrim + sheet overlay */
.mfp-interest-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.42);
  z-index: 8;
}

.mfp-interest-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  background: var(--mfp-paper-raised);
  border-radius: var(--mfp-radius) var(--mfp-radius) 0 0;
  padding: 22px 20px;
  box-shadow: var(--mfp-shadow-lift);
}

.mfp-interest-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--mfp-hairline);
  background: var(--mfp-paper-raised);
  color: var(--mfp-ink-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

/* Per-field info tooltip affordance (item 2). */
.mfp-facts__info {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: var(--mfp-ink-faint);
  cursor: help;
}

.mfp-facts__info:focus {
  outline: 2px solid var(--mfp-ink-faint);
  outline-offset: 1px;
  border-radius: 50%;
}

/* Tooltip bubble for the ⓘ affordance. Portaled to <body> by attachInfoTip() and
   positioned via fixed coordinates, so the facts grid (overflow:hidden) and the
   scrolling panel can't clip it. */
.mfp-infotip {
  position: fixed;
  z-index: 100000;
  max-width: 260px;
  background: var(--mfp-ink);
  color: #fff;
  font-family: var(--mfp-font-body);
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.mfp-infotip.is-shown {
  opacity: 1;
}

/* Header logo image (media library) shown in the badge box in place of the letters */
.mfp-shield--img {
  background: #fff;
  padding: 3px;
  overflow: hidden;
}
.mfp-shield__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
