@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-normal-300-700-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-300-700-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-normal-300-800-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-italic-300-800-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
:root {
  --navy: #15263b;
  --teal: #1b7f95;
  --paper: #f5f6f2;
  --ink: #15263b;
  --muted: #56677a;
  --line: #d6dbd5;
  --line-strong: #aeb8bf;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --page-gutter: clamp(1.2rem, 3vw, 4rem);
  --header-offset: 64px;
  --map-height: min(
    840px,
    max(400px, calc(100dvh - var(--header-offset) - 6rem))
  );
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: var(--header-offset);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--teal);
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}
button,
input,
select {
  font: inherit;
}
button,
.button-link {
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--navy);
  color: white;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  min-height: 44px;
  font-weight: 600;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0.8rem 0;
}
:focus-visible {
  outline: 3px solid #2d5fb3;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2000;
  background: white;
  padding: 1rem;
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.55rem var(--page-gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.5rem/1 var(--serif);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.brand img {
  flex-shrink: 0;
  width: 26px;
  height: 31px;
  display: block;
}
.brand-dot {
  color: #df5536;
}
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
}
.lang button {
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  min-height: 34px;
  font-size: 0.875rem;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
#menu-toggle {
  background: transparent;
  color: var(--navy);
  padding: 0.6rem;
}
#menu-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}
#main-nav {
  position: absolute;
  right: var(--page-gutter);
  top: 100%;
  width: min(320px, calc(100% - 2.4rem));
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -26px #15263b73;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem;
  min-height: 44px;
  font-weight: 550;
  border-bottom: 2px solid transparent;
}
#main-nav a.active,
#main-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.research-shortcut {
  margin-left: auto;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
#header-selection-count {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-align: center;
}
.cards,
.content {
  max-width: 1180px;
  margin: auto;
  padding: 3rem 1.2rem;
}
.content.route-page {
  padding-top: 1.5rem;
}
#kommunen {
  max-width: none;
  padding-inline: var(--page-gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.address-form label,
#place-search label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.searchbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--search-action-width, 7rem);
  gap: 0.75rem;
  align-items: start;
}
.scoped-query {
  grid-column: 1 / -1;
  min-width: 0;
}
.scoped-query label {
  display: block;
  margin-bottom: 0.4rem;
}
.filters .searchbar button {
  margin-bottom: 0;
}
.searchbar input:focus {
  border-color: #176b7d;
  box-shadow: 0 0 0 3px #1b7f951f;
}
.searchbar :focus-visible,
.search-modes :focus-visible {
  outline-color: #176b7d;
}
.search-suggestions {
  position: relative;
  min-width: 0;
  width: 100%;
}
.searchbar > .search-suggestions {
  width: auto;
}
.suggestion-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(22rem, 45dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 32px #15263b26;
  padding: 0.35rem;
}
.suggestion-option {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.suggestion-option strong,
.suggestion-option small {
  display: block;
}
.suggestion-option small {
  color: var(--muted);
  font-weight: 400;
}
.suggestion-option:hover,
.suggestion-option[aria-selected="true"] {
  background: #e8f2f4;
  border-color: #176b7d;
}
.suggestion-option:focus-visible {
  outline: 2px solid #176b7d;
  outline-offset: -2px;
}
.suggestion-status {
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.suggestion-status:empty {
  display: none;
}
input,
select {
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  width: 100%;
  min-width: 0;
  margin: 0.3rem 0 0.8rem;
  color: var(--ink);
}
.searchbar input {
  margin: 0;
  padding: 0.7rem 1rem;
  border-color: var(--line-strong);
  background: white;
  border-radius: 999px;
}
.searchbar > button {
  min-height: 44px;
  margin: 0;
}
.location-action {
  display: block;
  margin: 0.5rem 0 0 auto;
  font-size: 0.8125rem;
}
.searchbar input::placeholder {
  color: #6b7784;
  opacity: 1;
}
.minor {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 960px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
#kommunen > .cards {
  padding: 2rem 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.card:hover {
  border-color: var(--teal);
}
.card h2 {
  font: 500 1.4rem/1.3 var(--serif);
  color: var(--navy);
}
.card p {
  font-size: 0.88rem;
  color: var(--muted);
}
.section-head {
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.section-head h1,
.section-head h2,
.information-page h1 {
  font: 500 clamp(2rem, 3vw, 2.9rem) / 1.1 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0.3rem 0 1rem;
}
.section-head > p {
  color: var(--muted);
}
.content .page-question {
  position: relative;
  font: 500 clamp(1.4rem, 2.2vw, 2rem) / 1.3 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}
.question-measure {
  visibility: hidden;
}
.question-text {
  position: absolute;
  inset: 0;
}
.is-typing .question-text::after {
  content: "";
  display: inline-block;
  height: 0.9em;
  border-right: 1px solid currentColor;
  margin-left: 0.08em;
}
#kommunen > .section-head {
  max-width: none;
  margin-bottom: 0.6rem;
  text-align: center;
}
.discovery-search {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 0.8rem;
}
.discovery-search > form {
  margin: 0;
}
.discovery-search > .filters {
  padding: 0;
  background: transparent;
}
.discovery-search > .search-modes {
  margin: 0 0 0.35rem auto;
  padding: 3px;
}
.discovery-search > .search-modes button {
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
}
.discovery-search > .search-modes button[aria-pressed="true"] {
  background: var(--navy);
}
.search-modes,
.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0;
}
.search-modes {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  padding: 4px;
  gap: 2px;
}
.search-modes button {
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 1.1rem;
}
.search-modes button[aria-pressed="true"] {
  background: #176b7d;
  color: white;
  box-shadow: 0 2px 5px #15263b26;
}
#place-search,
.address-form {
  margin-bottom: 1.5rem;
}
.location-results {
  display: grid;
  gap: 0.5rem;
}
.location-results button {
  text-align: left;
  background: white;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 10px;
}
.exploration-divider {
  height: clamp(1.25rem, 2.5vw, 2.5rem);
  margin: 1.5rem calc(-1 * var(--page-gutter)) 2rem;
  background: var(--teal);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
  scroll-margin-top: 1rem;
}
.map-shell,
.profile-panel,
.directory-panel {
  min-width: 0;
}
.map-shell {
  position: static;
  background: transparent;
  padding-bottom: 0.5rem;
}
.profile-panel {
  height: var(--map-height);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.map-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem;
  height: var(--map-height);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.map-heading {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.map-heading strong,
.map-heading span {
  display: block;
}
.map-heading strong {
  font-size: 1.15rem;
}
.map-heading span {
  font-size: 0.8rem;
  color: var(--muted);
}
.map-toolbar button {
  flex-shrink: 0;
}
.profile-panel .directory {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}
#exploration-overview {
  padding: 1rem;
  min-height: 100%;
}
#exploration-overview h3 {
  margin: 0 0 0.75rem;
  font: 500 1.2rem/1.35 var(--serif);
}
.profile-panel > #district-detail,
.profile-panel > #municipality-detail {
  margin-top: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
}
.profile-panel > #safety-detail:not(:empty) {
  margin-top: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.profile-panel > #safety-count {
  margin: 0;
  padding: 1rem 1rem 0.5rem;
}
.profile-panel > #safety-list {
  padding: 0 1rem 1rem;
}
.content > .directory-panel {
  margin-top: 1.5rem;
}
#map,
#safety-map {
  height: 100%;
  min-height: 0;
}
.directory-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.directory-panel > label {
  display: block;
  line-height: 1.5;
  font-weight: 650;
}
.directory-panel > p {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.directory {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 360px;
  overflow: auto;
  padding: 0.2rem;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.district-directory {
  margin-bottom: 1rem;
}
.directory button {
  flex-shrink: 0;
  width: 100%;
  padding: 0.9rem 1rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  background: white;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 10px;
}
.directory button strong,
.directory button small {
  display: block;
}
.directory button small {
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.6;
  font-weight: 400;
}
.directory button:hover {
  border-color: var(--teal);
}
.directory button[aria-pressed="true"] {
  border-color: var(--teal);
  background: #e8f2f4;
}
#district-back,
#safety-back {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  margin-top: 1rem;
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.map-legend i {
  width: 12px;
  height: 12px;
  background: #d6dbd5;
  border: 1px solid var(--line-strong);
}
.map-legend i.district {
  background: #acd8e1;
  border-color: #77b8c5;
}
.map-legend i.selected {
  background: #1b98b1;
  border-color: #15263b;
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
  background: #eceee7;
  padding: 1.2rem;
  border-radius: 14px;
}
.filters label {
  font-size: 0.85rem;
  font-weight: 650;
}
.filters button {
  margin-bottom: 0.8rem;
}
.date-filters {
  grid-column: 1 / -1;
}
summary {
  cursor: pointer;
  color: var(--teal);
  min-height: 32px;
}
.date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.document-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.document-card {
  background: white;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.document-card:hover {
  border-color: var(--line-strong);
}
.document-card h3 {
  margin: 0.3rem 0;
  color: var(--navy);
  font: 500 1.25rem/1.35 var(--serif);
}
.document-card > p,
.document-card details p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: pre-line;
}
.document-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.document-card details {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.source-link {
  display: inline-block;
  margin-right: 1rem;
  font-size: 0.8rem;
}
.document-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  min-height: 44px;
  cursor: pointer;
}
.document-select input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}
.tags {
  margin: 0.3rem 0;
}
.tag {
  display: inline-block;
  background: #e8f2f4;
  color: #176477;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.3rem 0 0;
  border-radius: 6px;
  font-size: 0.75rem;
  text-decoration: none;
}
.saved-selection {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
#selection-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#selection-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
#selection-list li:last-child {
  border-bottom: 0;
}
#selection-list span {
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}
#selection-list button {
  background: transparent;
  color: var(--teal);
  border-color: var(--line);
  padding: 0.35rem 0.65rem;
}
.selection-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem 0.5rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  position: sticky;
  top: var(--header-offset);
  z-index: 2;
  background: var(--paper);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 1rem;
}
.selection-bar > span {
  margin-right: auto;
  font-weight: 650;
  font-size: 0.85rem;
  white-space: nowrap;
}
.selection-bar button {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.selection-label-compact {
  display: none;
}
#clear-selection,
#clear-search-selection {
  background: transparent;
  color: var(--teal);
  border-color: var(--line);
}
.research-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
}
.research-actions > button {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.saved-selection > details,
.research-limits {
  margin-top: 1rem;
}
.individual-request .brand-loader {
  min-height: 0;
  padding: 0;
}
.individual-request .brand-loader svg {
  width: 24px;
  height: 28px;
}
#downloads a {
  display: block;
  margin: 0.6rem 0;
  padding: 0.7rem 1rem;
  background: #e8f2f4;
  border-radius: 10px;
}
#load-more {
  display: block;
  margin: 1.5rem auto;
}
#archive-sentinel {
  height: 1px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.about-grid article {
  border-top: 2px solid var(--teal);
  padding: 1rem 0;
}
.about-grid h2 {
  font: 500 1.6rem var(--serif);
  color: var(--navy);
}
.notice {
  background: #e8f2f4;
  border-left: 3px solid var(--teal);
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
}
#district-detail,
#municipality-detail,
#safety-detail:not(:empty) {
  scroll-margin-top: 1rem;
  margin-top: 1.5rem;
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.profile-panel > [aria-busy="true"] {
  display: grid;
  place-items: center;
}
#district-detail h3,
#municipality-detail h3 {
  font: 500 2rem var(--serif);
  margin: 0 0 0.8rem;
}
.detail-block {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.detail-block h4 {
  margin: 1rem 0 0.6rem;
}
.detail-block small {
  display: block;
  color: var(--muted);
}
.detail-block a {
  margin-right: 0.8rem;
}
.safety-item {
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
}
.safety-item button {
  background: transparent;
  border: 0;
  color: var(--teal);
  font-weight: 650;
  padding: 0;
  text-align: left;
}
.safety-item p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
.safety-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.source-grid > h3 {
  grid-column: 1 / -1;
}
.source-grid p {
  font-size: 0.85rem;
  color: var(--muted);
}
.information-page {
  max-width: 960px;
}
.information-page h2 {
  font: 500 1.6rem/1.25 var(--serif);
  margin-top: 2rem;
}
.glossary-list dt {
  font: 600 1.3rem/1.3 var(--serif);
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  scroll-margin-top: 90px;
}
.glossary-list dd {
  color: #33455a;
  margin: 0.5rem 0 1.5rem;
  max-width: 72ch;
}
.feedback-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.feedback-link,
.report-error-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  background: var(--ink);
  border: 1px solid white;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 28px -12px #15263b99;
}
.report-error-link {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}
footer {
  border-top: 1px solid var(--line);
  padding: 2rem max(1.2rem, calc((100% - 1180px) / 2)) 6rem;
  display: grid;
  gap: 1rem;
  color: var(--muted);
}
footer h2 {
  color: var(--ink);
  font: 500 1.5rem var(--serif);
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 0;
  list-style: none;
}
footer a {
  color: inherit;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer nav,
.project-family p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
}
.district-map,
#map > svg,
#safety-map > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.map-area {
  stroke: #56677a;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.map-area.is-selected {
  fill: #1b98b1;
  stroke: #15263b;
  stroke-width: 2;
}
.map-point {
  fill: #df5536;
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.map-point.is-selected {
  fill: #15263b;
  stroke: #e19a12;
  stroke-width: 3;
}
.map-area:focus-visible,
.map-point:focus-visible {
  outline: none;
  stroke: #2d5fb3;
  stroke-width: 4;
}
.brand-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 0.75rem;
}
.brand-loader svg {
  width: 108px;
  height: 126px;
  overflow: visible;
}
#map > .brand-loader,
#safety-map > .brand-loader {
  height: 100%;
}
.brand-loader path {
  animation: brand-stack 1.6s ease-in-out infinite;
}
.brand-loader path:nth-child(2) {
  animation-delay: 0.15s;
}
.brand-loader path:nth-child(3) {
  animation-delay: 0.3s;
}
.brand-loader path:nth-child(4) {
  animation-delay: 0.45s;
}
@keyframes brand-stack {
  0%,
  65%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}
.collection-progress {
  padding: 1.5rem;
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.collection-progress h2 {
  font: 500 1.6rem/1.3 var(--serif);
  margin-top: 0;
}
.progress-track {
  height: 16px;
  overflow: hidden;
  background: #e0e5e1;
  border-radius: 999px;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 0.7s ease;
}
.collection-progress[data-loaded="true"] .progress-fill {
  transform-origin: left;
  animation: collection-reveal 0.7s ease;
}
@keyframes collection-reveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.contact-cards .card {
  min-width: 0;
}
.contact-cards a {
  display: block;
  padding: 0.5rem 0;
  min-height: 44px;
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  }
}
@media (max-width: 700px) {
  :root {
    --header-offset: 108px;
    --map-height: clamp(320px, 58dvh, 520px);
  }
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .brand {
    grid-column: 1 / -1;
    font-size: 1.25rem;
  }
  .research-shortcut {
    grid-column: 1;
    grid-row: 2;
    order: initial;
    margin-left: 0;
    justify-content: flex-start;
    min-height: 34px;
  }
  .lang {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
  }
  #menu-toggle {
    grid-column: 3;
    grid-row: 2;
  }
  .lang button {
    padding: 6px 8px;
    font-size: 0.8125rem;
  }
  #main-nav {
    right: 1rem;
    font-size: 0.9rem;
  }
  .cards,
  .about-grid,
  .source-grid,
  .contact-cards,
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-layout {
    gap: 1rem;
  }
  .map-shell {
    position: static;
  }
  .map-frame {
    padding: 0;
  }
  .map-toolbar {
    gap: 0.4rem;
  }
  .map-heading strong {
    font-size: 1rem;
  }
  .map-heading span {
    font-size: 0.75rem;
  }
  .map-shell .minor,
  .map-shell .map-legend {
    font-size: 0.7rem;
    line-height: 1.35;
    margin: 0.3rem 0;
  }
  .map-shell .map-legend {
    gap: 0.4rem;
  }
  .directory {
    max-height: 290px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters label:first-child,
  .filters > button {
    grid-column: 1 / -1;
  }
  .selection-bar {
    gap: 0.3rem;
    padding: 0.25rem 0.35rem;
  }
  .selection-bar > span,
  .selection-bar button {
    font-size: 0.75rem;
  }
  .selection-bar button {
    padding: 0.3rem 0.55rem;
  }
  .selection-label-full {
    display: none;
  }
  .selection-label-compact {
    display: inline;
  }
}
@media (max-width: 420px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-inline: 12px;
    gap: 6px;
  }
  .brand {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    gap: 7px;
  }
  .research-shortcut {
    grid-column: 1;
    grid-row: 2;
    order: initial;
    justify-content: flex-start;
    margin-left: 0;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  .lang {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
  }
  .brand img {
    width: 22px;
    height: 26px;
  }
  .lang button {
    font-size: 0.75rem;
    padding-inline: 6px;
  }
  #menu-toggle {
    grid-column: 3;
    grid-row: 2;
    padding: 6px;
  }
  #menu-toggle svg {
    width: 22px;
    height: 22px;
  }
  .discovery-search {
    --search-action-width: 5.5rem;
  }
  .filters {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.8rem;
  }
  #district-detail,
  #municipality-detail,
  #safety-detail:not(:empty) {
    padding: 1rem;
  }
  .feedback-actions {
    right: 12px;
    bottom: 12px;
  }
  .feedback-link,
  .report-error-link {
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }
}
@media (max-height: 540px) {
  :root {
    --header-offset: 58px;
  }
  header {
    display: flex;
    min-height: 58px;
    padding-block: 0.25rem;
    gap: 0.4rem;
  }
  .brand {
    font-size: 0.95rem;
  }
  .brand img {
    width: 20px;
    height: 24px;
  }
  .research-shortcut {
    font-size: 0.7rem;
    margin-left: auto;
  }
  .lang button {
    font-size: 0.7rem;
    padding-inline: 4px;
  }
  .map-heading strong {
    font-size: 0.85rem;
  }
  .map-heading span {
    font-size: 0.65rem;
  }
  .map-shell .minor,
  .map-shell .map-legend {
    font-size: 0.65rem;
  }
}
@media (max-height: 540px) and (max-width: 700px) {
  .brand .wordmark {
    display: none;
  }
  #menu-toggle {
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loader path {
    animation: none;
  }
  .progress-fill {
    transition: none;
  }
  .collection-progress[data-loaded="true"] .progress-fill {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
