/* Foundation hero film (restored): the looping background video sits behind the hero copy,
   and the telemetry map keeps its own solid #18342F card so the flight paths never fight the film. */
.precision-system.foundation-compact .foundation-video-hero{position:relative;isolation:isolate;overflow:hidden;background:#142B28!important}
.foundation-video-backdrop{position:absolute;inset:0;z-index:0;background:#142B28 url('foundation-hero-background-poster.webp') center/cover no-repeat;pointer-events:none}
.foundation-hero-background-video{display:block;inline-size:100%;block-size:100%;object-fit:cover;object-position:center;pointer-events:none}
.foundation-video-backdrop::after{content:'';position:absolute;inset:0;background:rgba(20,43,40,.74);pointer-events:none}
.precision-system.foundation-compact .foundation-video-hero>.foundation-hero-grid{position:relative;z-index:1}
.foundation-video-controls{position:relative;z-index:1;display:flex;justify-content:flex-end;padding-block-start:.75rem}
.precision-system .foundation-video-toggle{min-block-size:44px;padding:.4rem .75rem;border:1px solid #91AA9D;border-radius:2px;background:#142B28;color:#F6F8F7;font-size:.875rem;line-height:1.5}
.foundation-video-toggle[hidden]{display:none}
.precision-system .foundation-video-toggle:hover{background:#1B3B36;border-color:#C6D8CD}
.precision-system .foundation-video-toggle:focus-visible{outline-color:#C6D8CD}

/* The map is a solid card surface on top of the film: nothing bleeds behind the SVG paths. */
.precision-system.foundation-compact .foundation-network{display:flex;flex-direction:column;gap:.65rem;min-inline-size:0}
.precision-system.foundation-compact .foundation-network-map{
  position:relative;
  inline-size:min(100%,420px)!important;
  margin-inline:auto;
  padding:clamp(.5rem,1.6vw,1rem);
  box-sizing:content-box;
  border:1px solid #45635B;
  border-radius:2px;
  background-color:#18342F;
  background-image:linear-gradient(#45635B26 1px,transparent 1px),linear-gradient(90deg,#45635B26 1px,transparent 1px);
  background-size:24px 24px;
  overflow:hidden;
}

/* Pause control sits below the map instead of on top of the Iraq outline. */
.precision-system.foundation-compact .network-motion-row{display:flex;justify-content:flex-end;padding-block-start:.15rem}
.precision-system.foundation-compact .network-motion{position:static!important;inline-size:auto;min-block-size:44px;padding:.4rem .75rem;border:1px solid #91AA9D;border-radius:2px;background:#142B28;color:#F6F8F7;font-size:.875rem;line-height:1.5}
.precision-system.foundation-compact .network-motion:hover{background:#1B3B36;border-color:#C6D8CD}
.precision-system.foundation-compact .network-motion:focus-visible{outline-color:#C6D8CD}

/* Sector thumbnails: a clean 4-column strip under the map, never an overlay. */
.precision-system.foundation-compact .network-sector-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;inline-size:100%}
.precision-system.foundation-compact .network-sector-strip .network-photo{
  position:static!important;
  inset:auto!important;
  inline-size:auto!important;
  transform:none!important;
  display:flex;
  flex-direction:column;
  min-inline-size:0;
  overflow:hidden;
  border:1px solid #668579;
  border-radius:2px;
  background:#142B28;
  color:#F6F8F7;
  box-shadow:none;
}
.precision-system.foundation-compact .network-sector-strip .network-photo img{display:block;inline-size:100%;block-size:auto;aspect-ratio:1.6;object-fit:cover;border-radius:0}
.precision-system.foundation-compact .network-sector-strip .network-photo span{display:block;padding:.3rem .4rem;font-size:.8125rem;font-weight:600;line-height:1.4;background:#142B28;color:#F6F8F7;overflow-wrap:anywhere}
.precision-system.foundation-compact .network-sector-strip .network-photo:hover,
.precision-system.foundation-compact .network-sector-strip .network-photo:focus-visible{transform:none!important;border-color:#A6C8B7}
.precision-system.foundation-compact .network-sector-strip .network-photo:focus-visible{outline:2px solid #C6D8CD;outline-offset:2px}
/* Per-sector crop offsets kept from the overlay version. */
.precision-system.foundation-compact .network-sector-strip .network-photo-energy img{object-position:50% 64%}
.precision-system.foundation-compact .network-sector-strip .network-photo-communications img{object-position:50% 35%}
.precision-system.foundation-compact .network-sector-strip .network-photo-electronics img{object-position:50% 50%}
.precision-system.foundation-compact .network-sector-strip .network-photo-mobility img{object-position:50% 53%}

@media(max-width:767px){
  .precision-system.foundation-compact .foundation-network-map{inline-size:min(100%,360px)!important}
  .precision-system.foundation-compact .network-motion-row{justify-content:flex-start}
  .precision-system.foundation-compact .network-sector-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foundation-video-backdrop::after{background:rgba(20,43,40,.8)}
  .foundation-video-controls{justify-content:flex-start;padding-block-start:.5rem}
}
@media(max-width:380px){
  .precision-system.foundation-compact .network-sector-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
  .precision-system.foundation-compact .network-sector-strip .network-photo span{font-size:.75rem;padding:.25rem .3rem}
}
