/* Atlas 1.7.0 — compact editorial masthead, semantic spatial layers and source-first opportunities. */

:root {
  --atlas-sidebar: 326px;
  --atlas-detail: 368px;
}

/* A shorter, fully legible masthead: the map remains the primary product. */
.atlas-hero {
  min-height: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(156,228,59,.14), transparent 29%),
    linear-gradient(116deg, #001f15 0%, #043a27 64%, #075039 100%);
}
.atlas-hero::after { opacity: .12; }
.atlas-hero__inner,
.atlas-hero__inner:not(.has-hero-sponsor) {
  min-height: 0;
  grid-template-columns: minmax(0, 1.32fr) minmax(350px, .68fr);
  gap: clamp(24px, 3.2vw, 48px);
  padding-block: 25px 34px;
}
.atlas-hero__copy .eyebrow { margin-bottom: 7px; color: var(--lime); font-size: 10.5px; }
.atlas-hero h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(45px, 4.4vw, 64px);
  line-height: .96;
  letter-spacing: -.055em;
}
.atlas-hero h1 span { display: inline; }
.atlas-hero h1 span + span { margin-left: .18em; color: var(--lime); }
.atlas-hero__copy > .atlas-hero__promise {
  max-width: 680px;
  margin-top: 10px;
  color: #f4fff8;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 760;
  line-height: 1.28;
}
.atlas-hero__copy > .atlas-hero__lead {
  max-width: 720px;
  margin-top: 6px;
  color: rgba(237,251,242,.82);
  font-size: 13.5px;
  line-height: 1.48;
}
.atlas-hero .hero-actions { margin-top: 14px; }
.atlas-hero .button { min-height: 42px; padding-inline: 15px; }
.atlas-hero__visual {
  height: 246px;
  border-radius: 18px;
  box-shadow: 0 20px 52px rgba(0,17,11,.31);
}
.atlas-hero__visual > img { object-position: 54% 52%; }
.atlas-hero__visual > figcaption { top: 9px; right: 9px; padding: 4px 7px; font-size: 8px; }
.atlas-hero__visual .atlas-hero__partner { right: 10px; bottom: 10px; left: 10px; }
.atlas-hero__visual .detail-sponsor--hero { padding: 9px 11px; border-radius: 10px; }
.atlas-hero__visual .detail-sponsor__label { margin-bottom: 4px; font-size: 8px; }
.atlas-hero__visual .detail-sponsor__copy p { -webkit-line-clamp: 1; font-size: 9.5px; }
.atlas-stats {
  width: min(100%, 670px);
  margin-top: 12px;
  padding: 3px 6px;
  border-color: rgba(255,255,255,.16);
  background: rgba(0,32,21,.58);
  box-shadow: none;
}
.atlas-stats div { min-height: 43px; padding: 3px 8px; border-color: rgba(255,255,255,.13); }
.atlas-stats dt { color: rgba(235,249,240,.69); font-size: 8.5px; }
.atlas-stats dd { color: #fff; font-size: 22px; }
.atlas-stats-note { margin-top: 5px; color: rgba(235,249,240,.61); font-size: 8.5px; }

.atlas-section { margin-top: -16px; }
.atlas-commandbar { min-height: 62px; }
.atlas-layout,
.atlas-layout.is-list-view { height: clamp(720px, calc(100dvh - 88px), 850px); min-height: 720px; }

/* Explorer rail: familiar checkbox hierarchy with results directly below. */
.filter-form { max-height: 374px; }
.filter-group--spatial { padding-top: 2px; }
.checkbox-list--spatial label { min-height: 29px; }
.checkbox-list--spatial label span { font-weight: 670; }
.checkbox-list--spatial input { border-radius: 3px; }

/* Map scope guide and a legend that explains geometry, not only topic colors. */
.map-scope-guidance {
  position: absolute;
  z-index: 18;
  top: 10px;
  right: 68px;
  max-width: min(420px, calc(100% - 330px));
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(0,54,34,.14);
  border-radius: 9px;
  color: #4e6359;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,39,24,.1);
  backdrop-filter: blur(9px);
  font-size: 10px;
  line-height: 1.35;
}
.map-scope-guidance strong { color: var(--ink); }
.map-legend--v17 { width: min(292px, calc(100% - 28px)); }
.map-stage:has(.map-legend--v17[open]) .map-scope-guidance { opacity: 0; pointer-events: none; }
.map-legend--v17[open] { padding-bottom: 10px; }
.map-legend--v17 > div { display: grid; grid-template-columns: 1fr; gap: 7px; }
.map-legend--v17 > p { margin: 9px 10px 0; color: #607269; font-size: 9.5px; line-height: 1.42; }
.map-legend--v17 span { display: flex; align-items: center; gap: 8px; }
.map-legend--v17 i { width: 17px; height: 12px; flex: 0 0 auto; display: inline-block; }
.map-legend--v17 .legend-pin { width: 10px; height: 10px; margin-inline: 3px 4px; border: 2px solid #fff; border-radius: 50%; background: #2f8e62; box-shadow: 0 0 0 1px #2f8e62; }
.map-legend--v17 .legend-area { border: 2px solid #20784f; border-radius: 3px; background: rgba(32,120,79,.12); }
.map-legend--v17 .legend-research { border: 2px dashed #267ca2; border-radius: 3px; background: rgba(38,124,162,.08); }
.map-legend--v17 .legend-corridor { height: 0; border-top: 3px dashed #157f86; }
.map-legend--v17 .legend-eligible { border: 2px dotted #b17716; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(177,119,22,.13) 0 2px, transparent 2px 5px); }

/* One coordinate system for fallback paths and their labels. */
.map-area-svg {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map-area-shape {
  fill: color-mix(in srgb, var(--area-color) 11%, transparent);
  stroke: var(--area-color);
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: visiblePainted;
  cursor: pointer;
  transition: fill .16s ease, stroke-width .16s ease, filter .16s ease;
}
.map-area-shape[data-precision="indicative"],
.map-area-shape[data-precision="generalized"] { stroke-dasharray: 8 6; }
.map-area-shape[data-coverage-type="eligibility_area"] { fill: color-mix(in srgb, var(--area-color) 5%, transparent); stroke-dasharray: 3 5; }
.map-area-shape[data-kind="corridor"] { fill: none; stroke-width: 4; stroke-dasharray: 11 7; }
.map-area-shape:hover,
.map-area-shape:focus-visible,
.map-area-shape.is-selected { fill: color-mix(in srgb, var(--area-color) 21%, transparent); stroke-width: 4; filter: drop-shadow(0 3px 4px rgba(0,39,24,.22)); outline: none; }
.map-area-shape[data-kind="corridor"]:hover,
.map-area-shape[data-kind="corridor"]:focus-visible,
.map-area-shape[data-kind="corridor"].is-selected { fill: none; stroke-width: 6; }

.map-area-label,
.google-area-label {
  max-width: 138px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px 5px 8px;
  border: 1px solid color-mix(in srgb, var(--area-color) 58%, white);
  border-radius: 999px;
  color: #163f2e;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 14px rgba(0,39,24,.16);
  font-size: 9px;
  font-weight: 820;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}
.map-area-label {
  position: absolute;
  z-index: 7;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}
.map-area-label span,
.google-area-label span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-area-label b,
.google-area-label b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--area-color); font-size: 9px; }
.map-area-label:hover,
.map-area-label:focus-visible,
.map-area-label.is-selected,
.google-area-label:hover,
.google-area-label.is-selected { border-color: var(--lime-strong); box-shadow: 0 0 0 3px rgba(156,228,59,.55), 0 7px 18px rgba(0,39,24,.2); outline: none; }

.map-area-point {
  position: absolute;
  z-index: 8;
  left: var(--x);
  top: var(--y);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--area-color);
  box-shadow: 0 3px 11px rgba(0,39,24,.25);
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.map-area-point:hover,
.map-area-point:focus-visible,
.map-area-point.is-selected { box-shadow: 0 0 0 4px rgba(156,228,59,.66), 0 5px 14px rgba(0,39,24,.3); outline: none; }
.google-area-point {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--area-color);
  box-shadow: 0 3px 11px rgba(0,39,24,.28);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.google-area-point.is-selected { box-shadow: 0 0 0 4px rgba(156,228,59,.65), 0 5px 14px rgba(0,39,24,.3); }

/* National reach is a semantic map badge, never a fabricated country polygon. */
.map-national-badges {
  position: absolute;
  z-index: 19;
  left: 14px;
  bottom: 70px;
  width: min(250px, calc(100% - 82px));
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(0,54,34,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(0,39,24,.12);
  backdrop-filter: blur(9px);
}
.map-national-badges__title {
  width: 100%;
  color: #62756b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.map-national-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px 3px 7px;
  border: 1px solid color-mix(in srgb, var(--area-color) 42%, white);
  border-radius: 999px;
  color: #193f2f;
  background: #f8fbf8;
  font-size: 8px;
  font-weight: 820;
  cursor: pointer;
}
.map-national-badge b {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--area-color);
  font-size: 7px;
}
.map-national-badge:hover,
.map-national-badge:focus-visible,
.map-national-badge.is-selected { border-color: var(--lime-strong); box-shadow: 0 0 0 3px rgba(156,228,59,.5); outline: none; }

/* Reusable, source-rich hover/focus card. */
.atlas-area-popover {
  position: fixed;
  z-index: 1000;
  width: min(350px, calc(100vw - 20px));
  padding: 13px 14px 12px;
  border: 1px solid rgba(0,53,33,.18);
  border-radius: 13px;
  color: #334a3e;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 52px rgba(0,31,19,.24);
  pointer-events: none;
  backdrop-filter: blur(13px);
}
.atlas-area-popover[hidden] { display: none; }
.atlas-area-popover__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.atlas-area-popover__eyebrow { color: #39752f; font-size: 8.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.atlas-area-popover__precision { padding: 4px 6px; border-radius: 999px; color: #466057; background: #eef4ee; font-size: 8px; font-weight: 800; }
.atlas-area-popover__precision--indicative,
.atlas-area-popover__precision--generalized { color: #73521c; background: #fff4dc; }
.atlas-area-popover h3 { margin: 8px 0 0; color: var(--ink); font-size: 17px; line-height: 1.15; }
.atlas-area-popover__point-context { margin: 4px 0 0; color: #557067; font-size: 9px; font-weight: 760; line-height: 1.35; }
.atlas-area-popover__explanation { margin: 7px 0 0; font-size: 11px; line-height: 1.45; }
.atlas-area-popover__units { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: #52685e; font-size: 9.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.atlas-area-popover__meta { margin: 9px 0 0; color: #173f2e; font-size: 10px; font-weight: 820; }
.atlas-area-popover__source { margin: 4px 0 0; color: #6c7c74; font-size: 8.5px; line-height: 1.35; }
.atlas-area-popover__overlap { margin: 8px 0 0; padding: 7px 8px; border-left: 3px solid var(--lime-strong); color: #4c6258; background: #f4f8f2; font-size: 9px; line-height: 1.35; }
.atlas-area-popover__cta { display: block; margin-top: 9px; color: #1d6c48; font-size: 10px; font-weight: 900; }

/* Compact opportunities: verified text cards, without invented imagery. */
.support-section { padding-block: 28px 56px; }
.support-section .section-heading { margin-bottom: 15px; }
.support-section .section-heading h2 { font-size: clamp(27px, 2.5vw, 38px); }
.support-section .section-heading__lead { margin-top: 5px; font-size: 12px; }
.call-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
.call-card,
.call-card--featured {
  min-height: 214px;
  display: block;
  padding: 0;
  border-top: 3px solid var(--call-accent);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(3,44,28,.06);
}
.call-card__media { display: none !important; }
.call-card__content,
.call-card--featured .call-card__content { height: 100%; padding: 13px 14px 12px; }
.call-card__topline { min-height: 20px; }
.call-card__source-status { font-size: 8px; }
.call-card__date-block { margin-top: 6px; }
.call-card__date-block time,
.call-card--featured .call-card__date-block time { font-family: inherit; font-size: 14px; font-weight: 900; }
.call-card__date-block span { font-size: 8.5px; }
.call-card__institution { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.call-card h3,
.call-card--featured h3 { display: -webkit-box; margin-top: 6px; overflow: hidden; font-size: 16px; line-height: 1.16; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.call-card__summary,
.call-card--featured .call-card__summary { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: #5d7066; font-size: 10px; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.call-card__meta { margin-top: 7px; padding-top: 7px; }
.call-card__meta span { font-size: 8.5px; }
.call-card__meta span:nth-child(2),
.call-card__funding,
.call-card__deadline-note { display: none !important; }
.call-card__verified { display: block !important; margin-top: 7px; padding-top: 0; font-size: 8px; }
.call-card__actions { margin-top: auto; padding-top: 7px; }
.call-card button.call-card__cta { min-height: 30px; font-size: 10px; }
.call-card__source-link { min-height: 30px; font-size: 9px; }
.call-card:not(.call-card--featured) .call-card__meta { display: flex; }
.call-card:not(.call-card--featured) .call-card__source-link { display: inline-flex; }

@media (max-width: 1320px) {
  :root { --atlas-sidebar: 314px; }
  .atlas-hero__inner,
  .atlas-hero__inner:not(.has-hero-sponsor) { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
  .atlas-hero h1 { font-size: clamp(43px, 4.1vw, 57px); }
  .atlas-hero__visual { height: 230px; }
}

@media (max-width: 1060px) {
  .atlas-hero__inner,
  .atlas-hero__inner:not(.has-hero-sponsor) { grid-template-columns: 1fr 330px; }
  .atlas-hero__copy > .atlas-hero__lead { max-width: 620px; }
  .call-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .atlas-hero__inner,
  .atlas-hero__inner:not(.has-hero-sponsor) { grid-template-columns: 1fr; gap: 16px; padding-block: 24px 30px; }
  .atlas-hero h1 { font-size: clamp(42px, 10vw, 58px); }
  .atlas-hero__visual { height: min(46vw, 330px); min-height: 230px; }
  .atlas-stats { width: 100%; }
  .atlas-section { margin-top: -10px; }
  .map-scope-guidance { top: 62px; right: 58px; max-width: calc(100% - 76px); }
  .map-area-label { max-width: 112px; transform: translate(-50%, -50%) scale(.9); }
  .map-area-label span { max-width: 76px; }
  .map-national-badges { bottom: 64px; }
}

@media (max-width: 600px) {
  .atlas-hero__inner { padding-block: 22px 27px; }
  .atlas-hero h1 { font-size: clamp(39px, 11.5vw, 52px); }
  .atlas-hero h1 span { display: block; }
  .atlas-hero h1 span + span { margin-left: 0; }
  .atlas-hero__copy > .atlas-hero__promise { font-size: 16px; }
  .atlas-hero__copy > .atlas-hero__lead { font-size: 12px; }
  .atlas-hero__visual { height: 62vw; min-height: 235px; }
  .atlas-stats dt { font-size: 7.5px; }
  .atlas-stats dd { font-size: 19px; }
  .map-scope-guidance { top: 62px; right: 52px; padding: 6px 8px; font-size: 8.5px; }
  .map-scope-guidance strong { display: none; }
  .map-area-label { display: none; }
  .map-national-badges { left: 8px; bottom: 62px; width: min(220px, calc(100% - 64px)); padding: 5px; }
  .map-national-badge { min-height: 23px; font-size: 7.5px; }
  .call-grid { grid-template-columns: 1fr; }
  .call-card,
  .call-card--featured { min-height: 188px; grid-template-columns: 1fr; grid-template-rows: auto; }
  .support-section { padding-block: 24px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-area-shape { transition: none; }
}

@media (forced-colors: active) {
  .map-area-shape { fill: transparent; stroke: CanvasText; }
  .atlas-area-popover { border: 2px solid CanvasText; }
}
