/* Gemini handoff layer: presentation-only adjustments for static placeholders. */
html body .impact-original-page .impact-section {
  background: #f4f1e9 !important;
  padding: clamp(64px, 7vw, 104px) 0;
}
.impact-original-page .impact-head { display: block; }
.impact-original-page .impact-head h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  text-align: center;
}
.impact-original-page .impact-strip { padding-left: 0; }
.impact-original-page .impact-stat strong { color: #4e76bb; }
.impact-original-page .impact-map-section {
  background: linear-gradient(to bottom, #f4f1e9 0, var(--paper) clamp(180px, 20vw, 300px));
}
.nav-dev,
.menu-button,
.mission-row { cursor: default; }
.nav-dev { display: inline-flex; align-items: center; }
.mission-row { width: 100%; border: 0; font: inherit; text-align: left; }
.button span,
.text-link span,
.all-missions-link span,
.educators-actions a > span:last-child,
.hero-bottom-note a > span { display: inline-block; }
.hero-actions a,
.hero-bottom-note a,
.story-copy > a,
.mission-detail a,
.all-missions-link,
.educators-actions a,
.footer-top > a:last-child,
.footer-bottom a { cursor: default; }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .menu-button { display: inline-flex; }
}

/* Match assignment cards: light borders and a soft shadow on interaction. */
html body .impact-original-page .impact-map-frame,
html body .impact-original-page .completed-project-card {
  border: 1px solid rgba(37, 59, 54, .12) !important;
  box-shadow: none !important;
  transition: box-shadow 500ms cubic-bezier(.165, .84, .44, 1);
}
html body .impact-original-page .impact-map-frame:is(:hover, :focus-within),
html body .impact-original-page .completed-project-card:is(:hover, :focus-within) {
  box-shadow: 0 7px 20px rgba(0, 0, 0, .08) !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .impact-original-page .impact-map-frame,
  html body .impact-original-page .completed-project-card { transition: none; }
}

/* Square completed-project cards and their before/after controls. */
html body .impact-original-page .completed-project-card,
html body .impact-original-page .completed-project-card .project-actions :is(a, button) {
  border-radius: 0 !important;
}

/* Match the map CTA to the site's standard typography and square geometry. */
html body .impact-original-page .impact-map-link {
  border-radius: 0 !important;
  font-family: var(--mapfix-font-body) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Reveal the arrow while keeping the button stationary. */
html body .impact-original-page .completed-projects-more-link {
  position: relative;
  justify-content: center;
  padding-inline: 52px;
  border-radius: 0 !important;
}
html body .impact-original-page .completed-projects-more-link svg {
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}
html body .impact-original-page .completed-projects-more-link:is(:hover, :focus-visible) {
  transform: none;
}
html body .impact-original-page .completed-projects-more-link:is(:hover, :focus-visible) svg {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  html body .impact-original-page .completed-projects-more-link svg {
    transition: none;
    transform: none;
  }
}

/* Match the Mapping Guide's inset banner and centered title. */
.impact-original-page main { padding-top: 22px; background: #f4f1e9; }
.impact-original-page .impact-original-hero { width: min(1250px, calc(100% - 30px)); min-height: 320px; margin: 0 auto; overflow: hidden; border-radius: 0; background-position: center 58%; }
.impact-original-page .impact-original-hero-inner { width: min(1036px, calc(100% - 48px)); min-height: 320px; display: grid; grid-template-columns: 1fr; align-items: center; text-align: center; }
.impact-original-page .impact-original-hero-inner > div:last-child { padding: 24px 0; }
.impact-original-page .impact-original-hero-overlay { background: linear-gradient(90deg, rgba(20,47,41,.66), rgba(20,47,41,.42)) !important; }
.impact-original-page .impact-original-hero h1 { margin-inline: auto; color: #fff; font-size: clamp(48px, 6vw, 78px); letter-spacing: -.055em; text-shadow: 0 2px 18px rgba(8,25,21,.28); }
html body .impact-original-page .impact-original-hero h1 em { color: inherit !important; font-style: normal; }
@media (max-width: 760px) {
  .impact-original-page .impact-original-hero { width: calc(100% - 24px); min-height: 260px; background-position: 43% center; }
  .impact-original-page .impact-original-hero-inner { min-height: 260px; }
  .impact-original-page .impact-original-hero-inner > div:last-child { padding: 20px 0; }
  html body .impact-original-page .impact-original-hero h1 { font-size: clamp(43px, 13vw, 60px) !important; }
}

/* Show a muted map preview beneath the activation cover. */
.impact-original-page .impact-map-stage { display: grid; }
.impact-original-page .impact-map-stage > iframe,
.impact-original-page .impact-map-stage > .impact-map-cover { grid-area: 1 / 1; }
.impact-original-page .impact-map-stage > iframe { height: 100%; min-width: 0; }
.impact-original-page .impact-map-cover {
  z-index: 1;
  background: rgba(223, 228, 216, .68);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 32px 24px;
}

/* Match the other primary actions: centered label and a quiet arrow reveal. */
html body .impact-original-page .impact-map-link {
  position: relative;
  padding-inline: 48px;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}
html body .impact-original-page .impact-map-link:is(:hover, :focus-visible) {
  background: #29483f !important;
  border-color: #29483f !important;
  color: #fbfaf5 !important;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .08) !important;
  transform: none;
}
html body .impact-original-page .impact-map-link:focus-visible {
  outline: 2px solid #36584f;
  outline-offset: 4px;
}
.impact-original-page .impact-map-arrow {
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}
.impact-original-page .impact-map-link:is(:hover, :focus-visible) .impact-map-arrow {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  html body .impact-original-page .impact-map-link,
  .impact-original-page .impact-map-arrow { transition: none !important; }
  .impact-original-page .impact-map-arrow { transform: none; }
}

/* Let the label make room as its arrow arrives. */
html body .impact-original-page :is(.impact-map-link, .completed-projects-more-link) > span:first-child {
  display: inline-block;
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}
html body .impact-original-page :is(.impact-map-link, .completed-projects-more-link):is(:hover, :focus-visible) > span:first-child {
  transform: translateX(-10px);
}
@media (prefers-reduced-motion: reduce) {
  html body .impact-original-page :is(.impact-map-link, .completed-projects-more-link) > span:first-child {
    transition: none;
    transform: none !important;
  }
}
