/* Interactive industry and public-facility site plan. */
.eogok-page .ipm {
  --ipm-ink: #1d1b17;
  --ipm-muted: #6d665c;
  --ipm-line: #ddd7cc;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--ipm-ink);
}

.eogok-page .ipm__stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 760 / 665;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 2vw, 20px);
  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(228, 222, 211, 0.34),
      transparent 58%
    ),
    #faf9f6;
  touch-action: manipulation;
}

.eogok-page .ipm__map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.eogok-page .ipm__source-image {
  pointer-events: none;
  user-select: none;
}

.eogok-page .ipm__stage--source-plan {
  padding: 0;
  background: #f3f1ec;
}

.eogok-page .ipm__stage--source-plan .ipm__region {
  opacity: 0;
  stroke: transparent;
}

.eogok-page .ipm__stage--source-plan.ipm__stage--source-regions .ipm__region {
  opacity: 0.84;
  stroke: rgba(255, 255, 255, 0.96);
}

.eogok-page
  .ipm.has-active
  .ipm__stage--source-plan
  .ipm__region:not(.is-active):not(.is-related) {
  opacity: 0;
}

.eogok-page
  .ipm.has-active
  .ipm__stage--source-plan.ipm__stage--source-regions
  .ipm__region:not(.is-active):not(.is-related) {
  opacity: 1;
  fill-opacity: 0.2;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-opacity: 1;
  stroke-width: 2.5;
  filter: none;
}

.eogok-page .ipm__stage--source-plan .ipm__region:is(.is-active, .is-related),
.eogok-page
  .ipm__stage--source-plan
  .ipm__region[data-ipm-interactive]:focus-visible {
  opacity: 0.44;
  stroke: #11100e;
  stroke-width: 4;
}

.eogok-page
  .ipm__stage--source-plan.ipm__stage--source-regions
  .ipm__region:is(.is-active, .is-related),
.eogok-page
  .ipm__stage--source-plan.ipm__stage--source-regions
  .ipm__region[data-ipm-interactive]:focus-visible {
  opacity: 1;
  stroke-width: 4;
}

.eogok-page .ipm__site-base {
  fill: #eeece6;
  stroke: none;
}

.eogok-page .ipm__region {
  cursor: default;
  fill: var(--ipm-region-color);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-linejoin: round;
  stroke-width: 3.5;
  opacity: 0.9;
  transition:
    opacity 160ms ease,
    fill-opacity 160ms ease,
    filter 160ms ease,
    stroke 160ms ease,
    stroke-opacity 160ms ease,
    stroke-width 160ms ease;
}

.eogok-page .ipm__region[data-ipm-interactive] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.eogok-page .ipm__region--industry {
  stroke: #171512;
  stroke-width: 1.45;
  filter: saturate(0.9);
}

.eogok-page .ipm__region--parcel {
  stroke: #171512;
  stroke-width: 1.45;
  filter: saturate(0.78);
}

.eogok-page .ipm__region--facility {
  stroke: #171512;
  stroke-width: 1.5;
}

.eogok-page .ipm__region--stroke,
.eogok-page .ipm__region--boundary-stroke {
  fill: none;
  stroke: var(--ipm-region-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--ipm-stroke-width);
  pointer-events: stroke;
}

.eogok-page .ipm__region--boundary-stroke {
  opacity: 0.92;
}

.eogok-page .ipm__region--divider {
  fill: none;
  stroke: #171512;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--ipm-stroke-width);
  opacity: 0.94;
  pointer-events: none;
}

.eogok-page .ipm__stroke-edge {
  fill: none;
  stroke: #bdb8ad;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.eogok-page .ipm__boundary {
  fill: none;
  stroke: #171512;
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  pointer-events: none;
}

.eogok-page .ipm__active-layer,
.eogok-page .ipm__active-outline {
  pointer-events: none;
}

.eogok-page .ipm__active-outline {
  fill: none;
  stroke: #090908;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  opacity: 0;
}

.eogok-page .ipm__active-outline.is-visible {
  opacity: 1;
}

.eogok-page .ipm.has-active .ipm__region:not(.is-active):not(.is-related) {
  opacity: 0.3;
}

.eogok-page .ipm__region.is-active,
.eogok-page .ipm__region.is-related {
  opacity: 1;
  filter: saturate(0.92) brightness(0.96)
    drop-shadow(0 3px 4px rgba(20, 18, 15, 0.22));
  stroke: var(--ipm-ink);
  stroke-width: 3.2;
}

.eogok-page .ipm__region--stroke.is-active,
.eogok-page .ipm__region--boundary-stroke.is-active,
.eogok-page .ipm__region--stroke.is-related,
.eogok-page .ipm__region--boundary-stroke.is-related {
  stroke: var(--ipm-region-color);
  stroke-width: calc(var(--ipm-stroke-width) + 4);
  filter: drop-shadow(0 0 3px rgba(17, 16, 14, 0.8));
}

.eogok-page .ipm__region.is-current {
  stroke: #090908;
  stroke-width: 4;
}

.eogok-page .ipm__region[data-ipm-interactive]:focus {
  outline: none;
}

.eogok-page .ipm__region[data-ipm-interactive]:focus-visible {
  outline: none;
  stroke: #090908;
  stroke-width: 4;
  filter: saturate(0.96) brightness(0.96)
    drop-shadow(0 0 4px rgba(20, 18, 15, 0.38));
}

.eogok-page .ipm__region--divider:is(.is-active, .is-related, .is-current) {
  stroke: #171512;
  stroke-width: var(--ipm-stroke-width);
  filter: none;
}

.eogok-page .ipm__tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  width: min(310px, calc(100% - 20px));
  gap: 10px;
  padding: 14px 15px 15px;
  border: 1px solid rgba(214, 181, 111, 0.45);
  border-radius: 8px;
  background: rgba(22, 20, 17, 0.96);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 18, 15, 0.24);
  pointer-events: none;
}

.eogok-page .ipm__tooltip[hidden] {
  display: none;
}

.eogok-page .ipm__tooltip-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.eogok-page .ipm__tooltip-swatch {
  display: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(17, 16, 14, 0.72);
  border-radius: 3px;
  background: var(--ipm-tooltip-color, #d7d2c8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.eogok-page .ipm__tooltip-heading > strong {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.eogok-page .ipm__tooltip-code {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 4px;
  color: #e5c786;
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.eogok-page .ipm__tooltip-metrics {
  display: grid;
  gap: 6px;
}

.eogok-page .ipm__tooltip-metrics > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.eogok-page .ipm__tooltip-metrics small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
}

.eogok-page .ipm__tooltip-metrics strong {
  color: #fff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.eogok-page .ipm__tooltip > p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.5;
}

.eogok-page section.ipm__legend-region {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ipm-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  animation: none;
}

.eogok-page .eogok-facility-legend-host {
  --ipm-ink: #1d1b17;
  --ipm-muted: #6d665c;
  --ipm-line: #ddd7cc;
  margin-top: clamp(16px, 2vw, 24px);
  border: 1px solid var(--industry-line, #ddd7cc);
  background: #fff;
}

.eogok-page .eogok-facility-legend-host:empty {
  display: none;
}

.eogok-page .eogok-facility-legend-host > section.ipm__legend-region {
  border-top: 0;
}

.eogok-page .ipm__legend-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 11px;
}

.eogok-page .ipm__legend-heading strong {
  color: var(--ipm-ink);
  font-size: 0.78rem;
}

.eogok-page .ipm__legend-heading span {
  color: var(--ipm-muted);
  font-size: 0.62rem;
  line-height: 1.45;
  text-align: right;
}

.eogok-page .ipm__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.eogok-page .ipm__legend > li {
  min-width: 0;
  border-top: 1px solid #ece7df;
}

.eogok-page .ipm__legend > li:not(:nth-child(3n)) {
  border-right: 1px solid #ece7df;
}

.eogok-page .ipm__legend-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ipm-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.eogok-page .ipm__legend-button:is(:hover, :focus-visible, .is-map-active) {
  outline: none;
  background: var(--ipm-ink);
  color: #fff;
}

.eogok-page .ipm__legend-button.is-map-related {
  background: #efebe3;
}

.eogok-page .ipm__legend-button:focus-visible {
  box-shadow: inset 0 0 0 3px #b4864a;
}

.eogok-page .ipm__legend-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(37, 34, 29, 0.35);
  border-radius: 4px;
  background: var(--ipm-swatch-color);
}

.eogok-page .ipm__legend-swatch--public {
  border: 2px solid #777168;
  background: linear-gradient(
    135deg,
    #fff 0 43%,
    #bdb7ac 43% 57%,
    #fff 57% 100%
  );
}

.eogok-page .ipm__legend-swatch--landscape-green {
  background: repeating-linear-gradient(135deg, #cee189 0 5px, #a8cb68 5px 7px);
}

.eogok-page .ipm__legend-swatch--road-slope {
  border: 1px solid #a99b88;
}

.eogok-page .ipm__legend-swatch--road {
  background: #fff;
}

.eogok-page .ipm__legend-swatch--buffer {
  background: repeating-linear-gradient(135deg, #e6f8df 0 5px, #42ca2c 5px 7px);
}

.eogok-page .ipm__legend-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.eogok-page .ipm__legend-copy strong {
  min-width: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.eogok-page .ipm__legend-copy small {
  color: var(--ipm-muted);
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.eogok-page
  .ipm__legend-button:is(:hover, :focus-visible, .is-map-active)
  .ipm__legend-copy
  small {
  color: rgba(255, 255, 255, 0.72);
}

.eogok-page .eogok-industry-composition-table tr[data-industry-plan-target] {
  cursor: pointer;
}

.eogok-page
  .eogok-industry-composition-table
  tr[data-industry-plan-target]:focus-visible {
  outline: 3px solid #8a5e1a;
  outline-offset: -3px;
}

.eogok-page
  .eogok-industry-composition-table
  tr[data-industry-plan-target].is-map-active
  > * {
  background: #eee8de;
  color: #171511;
}

@media (max-width: 1120px) {
  .eogok-page .ipm__legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .eogok-page .ipm__tooltip {
    position: absolute;
    top: 9px !important;
    right: 9px;
    bottom: auto;
    left: auto !important;
    z-index: 8;
    width: min(228px, calc(100% - 18px));
    gap: 6px;
    padding: 9px 10px 10px;
    border: 1px solid rgba(115, 91, 48, 0.42);
    border-radius: 6px;
    background: rgba(255, 253, 248, 0.96);
    color: var(--ipm-ink);
    box-shadow: 0 8px 20px rgba(20, 18, 15, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .eogok-page .ipm__tooltip-heading {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    gap: 2px 7px;
  }

  .eogok-page .ipm__tooltip-swatch {
    display: block;
    grid-row: 1 / span 2;
    grid-column: 1;
    margin-top: 2px;
  }

  .eogok-page .ipm__tooltip-code,
  .eogok-page .ipm__tooltip-heading > strong {
    grid-column: 2;
  }

  .eogok-page .ipm__tooltip-code {
    min-height: 0;
    width: fit-content;
    padding: 0;
    border: 0;
    color: #805817;
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .eogok-page .ipm__tooltip-heading > strong {
    color: var(--ipm-ink);
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .eogok-page .ipm__tooltip-metrics {
    gap: 3px;
    padding-top: 5px;
    border-top: 1px solid rgba(115, 91, 48, 0.2);
  }

  .eogok-page .ipm__tooltip-metrics:empty {
    display: none;
  }

  .eogok-page .ipm__tooltip-metrics > span {
    gap: 8px;
  }

  .eogok-page .ipm__tooltip-metrics small {
    color: #756d62;
    font-size: 0.57rem;
  }

  .eogok-page .ipm__tooltip-metrics strong {
    color: var(--ipm-ink);
    font-size: 0.64rem;
  }

  .eogok-page .ipm__tooltip > p {
    display: none;
  }
}

@media (max-width: 720px) {
  .eogok-page .ipm__stage {
    padding: 6px;
  }

  .eogok-page .ipm__legend-heading {
    display: grid;
    gap: 3px;
  }

  .eogok-page .ipm__legend-heading span {
    text-align: left;
  }

  .eogok-page .ipm__legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eogok-page .ipm__legend > li:not(:nth-child(3n)) {
    border-right: 0;
  }

  .eogok-page .ipm__legend > li:nth-child(odd) {
    border-right: 1px solid #ece7df;
  }
}

@media (max-width: 460px) {
  .eogok-page .ipm__tooltip {
    top: 7px !important;
    right: 7px;
    width: min(190px, calc(100% - 14px));
    padding: 8px 9px 9px;
  }

  .eogok-page .ipm__legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .eogok-page .ipm__legend > li:nth-child(n) {
    border-right: 0;
  }

  .eogok-page .ipm__legend-button {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eogok-page .ipm__region,
  .eogok-page .ipm__legend-button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .eogok-page .ipm__boundary,
  .eogok-page .ipm__region,
  .eogok-page .ipm__stroke-edge,
  .eogok-page .ipm__active-outline {
    forced-color-adjust: auto;
    stroke: CanvasText;
  }
}
