/* the map fills the screen; a label card, the tools and the credit float over it */
:root {
  --ground: #BBA987;          /* the map's paving colour, shown past its edge */
  --card: rgba(250, 247, 240, 0.92);
  --ink: #121114;             /* the map's pen */
  --muted: #5C5648;
  --line: rgba(18, 17, 20, 0.18);
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--font); }
#map { position: fixed; inset: 0; background: var(--ground); }
.leaflet-container { background: var(--ground); outline: 0; font-family: var(--font); }
.card, .tools button, .foot, .eds, .toast {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card {
  position: fixed; z-index: 1000; padding: 10px 14px;
  top: calc(12px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px));
  max-width: min(320px, calc(100vw - 120px));
}
.card h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }
.card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.tools {
  position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 6px;
  top: calc(12px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
}
.tools button {
  min-width: 44px; height: 44px; padding: 0 10px; font: 600 18px/1 var(--font); color: var(--ink);
  cursor: pointer;
}
.tools #share { font-size: 13px; }
.tools button:disabled { color: var(--line); cursor: default; }
.tools button:focus-visible, .eds button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.eds {
  position: fixed; z-index: 1000; display: flex; gap: 4px; padding: 4px;
  top: calc(84px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px));
}
.eds button {
  border: 0; border-radius: 4px; padding: 6px 10px; font: 600 12px/1 var(--font);
  background: transparent; color: var(--muted); cursor: pointer;
}
.eds button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.foot {
  position: fixed; z-index: 1000; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 32px); padding: 6px 10px; font-size: 12px; color: var(--muted);
}
.foot a { color: inherit; }
.scale { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.scale i { display: block; height: 5px; border: 1.5px solid var(--ink); border-top: 0; }
.toast {
  position: fixed; z-index: 1001; left: 50%; transform: translateX(-50%);
  top: calc(64px + env(safe-area-inset-top, 0px)); padding: 8px 14px; font-size: 14px;
}
