.case-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.case-copy .section-copy {
  max-width: 42ch;
  font-size: 1.09rem;
  line-height: 1.65;
}
.case-copy > p:not(.eyebrow) { max-width: 48ch; }
.case-map {
  margin: 0;
  overflow: hidden;
  border: 1px solid #c6d2c8;
  border-radius: 9px;
  background: #fafbf7;
  color: #0e2f26;
}
.case-map-tools {
  display: flex;
  align-items: center;
}
.case-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .96rem;
  font-weight: 650;
  min-height: 54px;
  padding: 5px 16px 5px 20px;
  border-bottom: 1px solid #ccd6ce;
}
.case-playback {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: 0 .65rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #355747;
  font: 600 .82rem/1 var(--routura-font);
  cursor: pointer;
}
.case-playback[hidden] { display: none; }
.case-playback:hover { background: #e5efe6; }
.case-playback::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.case-playback[data-playing="true"]::before {
  width: 8px;
  height: 10px;
  border: 0;
  border-inline: 3px solid currentColor;
}
.case-drawing { display: block; width: 100%; height: auto; border-bottom: 1px solid #ccd6ce; }
.case-zones, .case-zone-names { visibility: hidden; }
.case-zones path { stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.case-map[data-map-layer="omraden"] :is(.case-zones,.case-zone-names) { visibility: visible; }
.case-map:not([data-map-layer="rutt"]) :is(.case-order,.case-route) { visibility: hidden; }
.case-map-tools { gap: 3px; padding: 12px 16px 0; }
.case-map-tools[hidden] { display: none; }
.case-map-tools button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid #cbd6cf;
  border-radius: 5px;
  background: transparent;
  color: #183e31;
  font: inherit;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.case-map-tools button:hover { background: #e5efe6; }
.case-map-tools button[aria-pressed="true"] { color: white; background: #173f32; border-color: #173f32; }
.case-map-tools button:focus-visible { outline: 2px solid #276c53; outline-offset: 2px; }
.case-map .case-map-caption {
  min-height: 3.4em;
  margin: 0;
  padding: 12px 19px 15px;
  color: #456053;
  font-size: .83rem;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .case-layout { grid-template-columns: minmax(0,1fr); }
  .case-copy > p:not(.eyebrow) { max-width: 64ch; }
}
@media (max-width: 420px) {
  .case-map-header { padding-inline: 12px; }
  .case-map-tools { padding: 10px 10px 0; }
  .case-map .case-map-caption { padding-inline: 12px; min-height: 4.9em; }
}
.projects { background: var(--routura-deep-green); color: #fff; }
.case-copy .eyebrow { color: var(--routura-mint); }
.case-copy > p:not(.eyebrow) { color: #d9e9df; margin-top: 1.15rem; }
.case-copy .text-link { margin-top: 1rem; text-decoration: underline; text-decoration-color: #68a181; text-underline-offset: .38em; }
.case-copy .text-link:hover { text-decoration-color: white; }
.case-copy :focus-visible { outline-color: var(--routura-mint); }

.case-cartography { position: relative; background: #ecede4; border-bottom: 1px solid #ccd6ce; }
.case-window { width: 100%; aspect-ratio: 720 / 486; overflow: hidden; }
.case-window.is-zoomed { overflow: auto; scrollbar-width: thin; cursor: grab; }
.case-window.is-dragging { cursor: grabbing; user-select: none; }
.case-window:focus-visible { outline-offset: -3px; }
.case-drawing { width: 100%; max-width: none; border: 0; }
.case-zoom {
  position: absolute; z-index: 1; top: .55rem; right: .55rem;
  display: flex; overflow: hidden; border: 1px solid #b2c3b7;
  border-radius: 5px; background: white; box-shadow: 0 1px 4px #1639281a;
}
.case-zoom[hidden] { display: none; }
.case-zoom button { border: 0; color: #173f32; background: white; font: 500 1.25rem/1 var(--routura-font); cursor: pointer; width: 38px; height: 38px; }
.case-zoom button + button { border-left: 1px solid #d7dfd7; }
.case-zoom button:disabled { color: #839187; cursor: default; }
.case-zoom button:enabled:hover { background: #eaf4eb; }
.case-zoom button:focus-visible, .case-credit:focus-visible { outline-offset: -3px; }
.case-credit {
  position: absolute; right: 0; bottom: 0; padding: 2px 6px;
  color: #284437; background: rgb(255 255 255 / .95); border-top-left-radius: 3px;
  font: 500 .71rem/1.55 var(--routura-font); text-decoration: underline; text-underline-offset: 2px;
}
