/* Keep the title and distance scale outside the live map. */
.atlas-map-frame {
  border-color:#43524a;
  background:#f3e4bf;
  box-shadow:0 2px 0 #a58d60,0 4px 0 -1px #f4e9c9,0 5px 0 -1px #9c8663;
}
.atlas-sheet-title {
  display:flex;align-items:center;gap:10px;min-height:var(--atlas-sheet-height);
  padding:2px clamp(10px,1.4vw,22px);overflow:hidden;
  border-bottom:1px solid #ae9d78;color:#173e43;
  background:radial-gradient(#99763d22 .6px,transparent .9px) 0 0/4px 4px,#f6e9c8;
}
.atlas-sheet-title h2 {margin:0;font:700 clamp(19px,1.65vw,25px)/1.06 var(--font-display);letter-spacing:-.04em;}
.atlas-sheet-title h2 em {color:#854632;font-weight:580;}
.atlas-mileage {margin-left:auto;flex:none;display:grid;gap:4px;justify-items:center;color:#284a49;min-width:72px;}
.atlas-mileage-text {font:560 12px/1 var(--font-data);white-space:nowrap;}
.atlas-mileage i {
  display:block;position:relative;width:var(--mile-bar-width);height:5px;border:1px solid currentColor;
  background:linear-gradient(90deg,currentColor 25%,transparent 25% 50%,currentColor 50% 75%,transparent 75%);
}
.atlas-mileage i::before,.atlas-mileage i::after {position:absolute;content:'';bottom:-1px;height:8px;width:1px;background:currentColor;}
.atlas-mileage i::before {left:-1px;}.atlas-mileage i::after {right:-1px;}
.atlas-state-imprint {position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:hidden;}
.atlas-outside-ink {fill:#b09d78;opacity:.21;}
.atlas-state-edge {fill:none;stroke:#8f553e;stroke-opacity:.76;stroke-width:1.25;vector-effect:non-scaling-stroke;}
#home-screen[data-atlas-national=true] .atlas-art::after {
  background:linear-gradient(90deg,transparent 32.7%,#4f401413 33.3%,#fff6db2b 33.37%,transparent 33.9%,
    transparent 65.96%,#4f401413 66.58%,#fff6db2b 66.68%,transparent 67.15%);
  box-shadow:inset 0 0 0 2px #6e544e20;
}
.atlas-map-frame #home-screen, .atlas-map-frame #home-screen #home-landscape {
  background:repeating-linear-gradient(-40deg,#887d5920 0 .75px,transparent .75px 5px),#e3dac2;
}
@media(max-width:620px) {
  .atlas-mileage {min-width:54px;gap:3px;}
  .atlas-mileage-text {font-size:10px;}
}

.atlas-map-frame:has(#home-screen:not([data-state=all])) .atlas-sheet-title h2 {
  display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;letter-spacing:-.02em;
}
.atlas-map-frame:has(#home-screen:not([data-state=all])) #atlas-sheet-place {
  color:#34524e;font:600 11px/1 var(--font-data);letter-spacing:.025em;
}
.atlas-map-frame:has(#home-screen:not([data-state=all])) #atlas-sheet-caption {
  font-size:clamp(15px,1.4vw,21px);white-space:nowrap;
}
