@font-face {
  font-family: DM;
  src: url("/assets/DM-Sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Display;
  src: url("/assets/Display.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f8f7f2;
  color: #173d40;
  font:
    1rem/1.55 DM,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
.button {
  background: #173d40;
  color: #fff;
  border: 1px solid #173d40;
  padding: 12px 22px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
}
button:hover,
.button:hover {
  background: #285559;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.quiet {
  background: transparent;
  color: #173d40;
  border-color: #d0d9d4;
}
.quiet:hover {
  background: #e8eeea;
}
.danger {
  background: #a23e30;
  border-color: #a23e30;
}
.text-button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #173d40;
  text-decoration: underline;
}
.header {
  height: 96px;
  border-bottom: 1px solid #dce1da;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 30px;
  background: #f8f7f2;
}
.brand {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-period {
  color: #c34e32;
  margin-left: -8px;
}
.brand-mark {
  background: #173d40;
  color: #f8f7f2;
  border-radius: 9px;
  width: 36px;
  height: 39px;
  text-align: center;
  font-family: Display;
  font-size: 1.9375rem;
  line-height: 35px;
  letter-spacing: -2px;
}
.header nav {
  display: flex;
  gap: 36px;
  height: 100%;
  align-items: center;
}
.header nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  height: 100%;
  display: flex;
  align-items: center;
}
.header nav a.active {
  border-color: #c34e32;
}
.header .quiet {
  border: 0;
}
.small {
  font-size: 1.375rem;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 45px 5% 70px;
  min-height: 70vh;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1,
h2 {
  font-family: Display, Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.2px;
}
h1 {
  font-size: 3.625rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.3px;
}
p {
  color: #506366;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 750;
  color: #925137;
  margin-bottom: 12px;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.intro p {
  max-width: 570px;
  font-size: 1.125rem;
  margin: 0;
}
.intro .privacy-tag {
  font-size: 0.8125rem;
  white-space: nowrap;
  background: #e6eee7;
  padding: 7px 12px;
  border-radius: 30px;
  color: #32584e;
}
.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid #cdd8d2;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px #173d4007;
}
.sidebar {
  padding: 25px;
  border-right: 1px solid #dce4de;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.sidebar h2 {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.sidebar p {
  font-size: 0.875rem;
  margin: 0;
}
.search-wrap {
  position: relative;
}
.search-wrap input {
  padding-left: 15px;
}
.results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 8;
  max-height: 310px;
  overflow: auto;
  background: #fff;
  border: 1px solid #bacbc6;
  border-radius: 8px;
  box-shadow: 0 8px 24px #173d401a;
}
.results:empty {
  display: none;
}
.results button {
  width: 100%;
  text-align: left;
  display: block;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  border-radius: 0;
  background: #fff;
  color: #173d40;
  padding: 12px 15px;
  line-height: 1.35;
  font-weight: 500;
}
.results button:hover,
.results button:focus {
  background: #edf2ef;
}
.results small {
  display: block;
  color: #617476;
  margin-top: 3px;
  font-size: 0.75rem;
}
.results p {
  padding: 12px;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.count strong {
  display: block;
  font-family: Display;
  font-size: 1.875rem;
  line-height: 1.2;
}
.count span {
  font-size: 0.75rem;
  color: #607477;
  white-space: nowrap;
}
.marker-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  background: #c14f32;
  vertical-align: middle;
}
.marker-key.visited {
  background: #177d88;
  border-radius: 50%;
}
.marker-key.want {
  background: transparent;
  border: 2px solid #936b1d;
  transform: rotate(45deg);
}
.city-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 270px;
  overflow: auto;
}
.city-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e5eae5;
  border-radius: 0;
  color: #173d40;
  padding: 12px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.city-row:hover {
  background: #f6f8f4;
}
.city-row small {
  display: block;
  font-size: 0.75rem;
  color: #627575;
}
.city-row .arrow {
  font-size: 1.375rem;
  color: #9aa9a2;
}
.subtle {
  font-size: 0.8125rem;
  color: #647675;
}
.map-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #e9f0eb;
}
.map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 25px;
  background: #f0f4ef;
}
.map-top strong {
  font-size: 0.875rem;
  font-weight: 550;
}
.map-tools {
  display: flex;
  gap: 6px;
}
.map-tools button {
  padding: 4px 11px;
  min-height: 34px;
  font-size: 0.875rem;
  border-color: #c7d4ce;
  background: #f9faf7;
  color: #173d40;
}
.map {
  position: relative;
  flex: 1;
  min-height: 365px;
  overflow: hidden;
}
.map svg {
  width: 100%;
  height: 100%;
  min-height: 365px;
  display: block;
  touch-action: none;
  background: #e9f0eb;
}
.land {
  fill: #c8d8cd;
  stroke: #aec7b9;
  stroke-width: 0.3;
  vector-effect: non-scaling-stroke;
}
.graticule {
  stroke: #dbe5dc;
  stroke-width: 0.6;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.map circle,
.map rect,
.map polygon {
  vector-effect: non-scaling-stroke;
}
.map [role="button"] {
  cursor: pointer;
  outline: none;
}
.map [role="button"]:focus > * {
  stroke: #122b39;
  stroke-width: 3;
}
.map-note {
  position: absolute;
  left: 25px;
  bottom: 18px;
  max-width: 250px;
  padding: 16px 20px;
  background: #fcfcf4ef;
  border: 1px solid #d5dfd3;
  border-radius: 8px;
  box-shadow: 0 6px 20px #173d4008;
  pointer-events: none;
}
.map-note h3 {
  font-family: Display;
  font-size: 1.4375rem;
  font-weight: 400;
  margin: 0 0 4px;
}
.map-note p {
  font-size: 0.8125rem;
  margin: 0;
}
.map-bottom {
  padding: 13px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #d3ded4;
  font-size: 0.75rem;
  color: #526c65;
}
.legend {
  display: flex;
  gap: 18px;
}
.map-caption {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.below-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 28px;
}
.feature-card {
  border: 1px solid #d4dcd4;
  border-radius: 10px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}
.feature-card h2 {
  font-size: 1.6875rem;
  letter-spacing: -0.6px;
  margin: 4px 0 10px;
}
.feature-card p {
  font-size: 0.875rem;
  max-width: 330px;
  margin: 0;
}
.feature-card .eyebrow {
  font-size: 0.6875rem;
}
.feature-card.print-card {
  background: #ede9dd;
}
.feature-card .button {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.empty-list {
  padding: 10px 0 0;
}
.empty-list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 6px;
}
label {
  font-size: 0.875rem;
  font-weight: 650;
  display: block;
  margin: 15px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #bdccc6;
  border-radius: 6px;
  background: #fff;
  color: #173d40;
}
input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  min-height: 19px;
  accent-color: #173d40;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b77e21;
  outline-offset: 3px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-row label {
  font-weight: 500;
  display: flex;
  align-items: center;
  border: 1px solid #c9d5ce;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin: 0;
}
.pill-row label:has(input:checked) {
  background: #e8f0e9;
  border-color: #173d40;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
legend {
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 10px;
}
dialog {
  border: 1px solid #c3d1c6;
  border-radius: 14px;
  padding: 35px;
  max-width: 600px;
  width: calc(100% - 28px);
  max-height: 90vh;
  color: #173d40;
  background: #fcfcf8;
  box-shadow: 0 20px 100px #102e3940;
}
dialog::backdrop {
  background: #0c293978;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 2.25rem;
  padding-right: 45px;
  margin-top: 13px;
}
dialog p {
  font-size: 0.9375rem;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  padding: 4px 11px;
  min-height: 32px;
  font-size: 0.75rem;
}
.divider {
  border: 0;
  border-top: 1px solid #d5ddd7;
  margin: 24px 0;
}
.form-error {
  color: #a13529;
  font-size: 0.875rem;
}
.checkline {
  font-weight: 400;
  display: flex;
  align-items: start;
  gap: 4px;
}
.checkline input {
  flex-shrink: 0;
  margin-top: 3px;
}
.notice {
  background: #eaf0e8;
  border: 1px solid #d3dfd1;
  padding: 14px 18px;
  border-radius: 7px;
  margin: 18px 0;
  font-size: 0.875rem;
}
.test-banner {
  background: #f3d79e;
  color: #4c3a16;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.8125rem;
}
.narrow {
  max-width: 780px;
  margin: auto;
}
.narrow h1 {
  font-size: 3.0625rem;
}
.narrow > p {
  font-size: 1.0625rem;
}
.panel {
  background: #fff;
  border: 1px solid #d0dacf;
  border-radius: 10px;
  padding: 30px;
  margin: 22px 0;
}
.question-panel {
  padding: 42px;
}
.question-panel h2 {
  font-size: 2.4375rem;
  line-height: 1.2;
}
.choice {
  display: block;
  width: 100%;
  text-align: left;
  justify-content: start;
  background: #fff;
  color: #173d40;
  border-color: #c5d3c9;
  margin: 12px 0;
  padding: 16px 20px;
}
.choice:hover {
  background: #eaf1ea;
}
.result-row {
  margin: 18px 0;
}
.result-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.9375rem;
}
.result-row progress {
  width: 100%;
  height: 12px;
  accent-color: #177d88;
}
.question-city {
  margin-top: 25px;
  max-width: 400px;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dfe5dc;
  padding: 18px 0;
}
.connection p {
  margin: 4px 0;
  font-size: 0.875rem;
}
.connection button,
.connection .button {
  font-size: 0.8125rem;
  padding: 7px 12px;
}
.print-preview {
  display: block;
  max-width: 100%;
  width: 360px;
  margin: 24px auto;
  box-shadow: 0 12px 35px #173d4026;
}
.photo {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  margin: 15px 0;
}
.checklist {
  max-height: 230px;
  overflow: auto;
  border: 1px solid #d5ded6;
  padding: 0 15px;
  border-radius: 6px;
}
.checklist label {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-nav button {
  justify-content: start;
  background: transparent;
  color: #3c5a5a;
  border: 0;
  padding: 12px 15px;
  font-size: 0.875rem;
}
.admin-nav button.selected {
  background: #173d40;
  color: #fff;
}
.admin-content {
  min-width: 0;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.admin-top h1 {
  font-size: 2.625rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid #d4ded5;
  border-radius: 9px;
  padding: 20px;
  min-width: 0;
}
.stat strong {
  font-family: Display;
  font-size: 2.1875rem;
  display: block;
  line-height: 1.25;
}
.stat span {
  color: #57716c;
  font-size: 0.8125rem;
}
.stat small {
  display: block;
  font-size: 0.75rem;
  color: #687b73;
}
.stat.dark {
  background: #173d40;
  color: #fff;
}
.stat.dark span {
  color: #c2d6ca;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #d5ded6;
  border-radius: 8px;
  background: #fff;
  margin: 20px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9e2;
  vertical-align: top;
}
th {
  font-weight: 600;
  background: #eef2ea;
  white-space: nowrap;
}
td {
  max-width: 320px;
  overflow-wrap: anywhere;
}
td button {
  font-size: 0.75rem;
  padding: 5px 9px;
  min-height: 30px;
  margin: 3px;
}
.badge {
  border-radius: 30px;
  background: #173d40;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
}
.badge.alert {
  background: #b44230;
}
.muted {
  color: #6a7974;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #57736c;
}
footer {
  border-top: 1px solid #d9dfd6;
  margin: 0 5%;
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 0.8125rem;
  color: #59716a;
}
footer > div {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
footer small {
  width: 100%;
  font-size: 0.6875rem;
  color: #596f66;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #173d40;
  color: #fff;
  box-shadow: 0 10px 25px #142d3d33;
  z-index: 30;
  padding: 13px 23px;
  border-radius: 8px;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  z-index: 50;
  padding: 15px;
}
.skip:focus {
  top: 0;
}
.empty {
  padding: 35px 15px;
  text-align: center;
  color: #65766c;
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.share-grid h3 {
  font-size: 1.125rem;
}
.share-grid ul {
  padding-left: 20px;
}
.legal h2 {
  font-size: 1.625rem;
  margin-top: 30px;
}
.link-input {
  font-size: 0.875rem;
}
.checkbox-note {
  font-size: 0.75rem;
  margin-left: 28px;
}
.print-list {
  max-height: 220px;
  overflow: auto;
}
.print-city {
  padding: 8px 0;
  border-bottom: 1px solid #d9e2d7;
}
.print-city label {
  margin: 5px 0;
  font-weight: 450;
}
.print-city .memory-check {
  font-size: 0.75rem;
  margin-left: 25px;
}
.mobile-view {
  display: none;
}
.list-only .map-side {
  display: none;
}
.list-only.workspace {
  grid-template-columns: 1fr;
}
.list-only .sidebar {
  border: 0;
}
.list-only .city-list {
  max-height: none;
}
.list-only .counts {
  max-width: 350px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1500px) {
  .map {
    min-height: 440px;
  }
  .map svg {
    min-height: 440px;
  }
}
@media (max-width: 1050px) {
  .header {
    padding: 0 4%;
    gap: 15px;
  }
  .header nav {
    gap: 20px;
  }
  main {
    padding: 35px 4% 50px;
  }
  .workspace {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px;
  }
  .below-map {
    gap: 15px;
  }
  .feature-card {
    padding: 22px;
    display: block;
  }
  .feature-card .button {
    margin-top: 18px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-layout {
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }
  .legend {
    gap: 10px;
  }
  .map-bottom {
    padding: 13px;
  }
  .map-caption {
    display: none;
  }
}
@media (max-width: 700px) {
  .header {
    height: auto;
    min-height: 116px;
    position: relative;
    flex-wrap: wrap;
    padding: 15px 5% 0;
    gap: 10px;
  }
  .brand {
    font-size: 1.625rem;
  }
  .brand-mark {
    width: 30px;
    height: 33px;
    font-size: 1.6875rem;
    line-height: 30px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    height: 46px;
    gap: 20px;
  }
  .header nav a {
    font-size: 0.875rem;
  }
  .header .quiet {
    padding: 5px 0;
    min-height: 35px;
    font-size: 0.875rem;
  }
  main {
    padding: 27px 5% 45px;
  }
  h1 {
    font-size: 2.625rem;
    letter-spacing: -1px;
  }
  .intro {
    display: block;
    margin-bottom: 22px;
  }
  .intro p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .intro .privacy-tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.75rem;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
  }
  .sidebar {
    padding: 20px;
    border-right: 0;
    gap: 14px;
  }
  .sidebar h2 {
    font-size: 1.5rem;
  }
  .sidebar .city-list {
    max-height: 185px;
  }
  .map-side {
    order: 2;
  }
  .map {
    min-height: 280px;
  }
  .map svg {
    min-height: 280px;
  }
  .map-top {
    padding: 12px 17px;
  }
  .map-top strong {
    font-size: 0.75rem;
  }
  .map-note {
    left: 15px;
    bottom: 15px;
    padding: 12px 15px;
    max-width: 205px;
  }
  .map-note h3 {
    font-size: 1.25rem;
  }
  .map-note p {
    font-size: 0.75rem;
  }
  .map-bottom {
    font-size: 0.6875rem;
    padding: 12px 15px;
  }
  .map-bottom .legend {
    gap: 13px;
  }
  .below-map {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  .feature-card {
    padding: 24px;
  }
  .feature-card h2 {
    font-size: 1.75rem;
  }
  .feature-card .button {
    margin-top: 18px;
  }
  .count strong {
    font-size: 1.6875rem;
  }
  .counts {
    max-width: 330px;
  }
  .mobile-view {
    display: inline-flex;
  }
  .intro .actions {
    margin-top: 18px;
  }
  .narrow h1 {
    font-size: 2.5rem;
  }
  .panel,
  .question-panel {
    padding: 24px 21px;
  }
  .question-panel h2 {
    font-size: 2rem;
  }
  .settings-grid,
  .share-grid {
    grid-template-columns: 1fr;
  }
  .fields {
    gap: 10px;
  }
  dialog {
    padding: 27px 21px;
    max-height: 92dvh;
  }
  dialog h2 {
    font-size: 2rem;
  }
  dialog .pill-row label {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }
  .actions button,
  .actions .button {
    flex: 1;
    font-size: 0.875rem;
  }
  .admin-layout {
    display: block;
  }
  .admin-nav {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 22px;
    padding-bottom: 6px;
    gap: 5px;
  }
  .admin-nav button {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 13px;
  }
  .admin-top {
    align-items: start;
    gap: 12px;
  }
  .admin-top h1 {
    font-size: 2.25rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 1.875rem;
  }
  .stat span {
    font-size: 0.75rem;
  }
  .table-wrap {
    margin: 15px 0;
  }
  td,
  th {
    padding: 12px;
    font-size: 0.8125rem;
  }
  .connection {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer {
    font-size: 0.75rem;
    gap: 15px;
  }
  footer > div {
    margin: 0;
    width: 100%;
    gap: 23px;
  }
  footer small {
    font-size: 0.6875rem;
  }
  .loading {
    padding: 50px 10px;
  }
  .test-banner {
    font-size: 0.75rem;
  }
  .print-preview {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the map directly beneath search and counts on phones. */
.sidebar .actions button {
  font-size: 0.875rem;
  padding: 10px 14px;
}
@media (max-width: 700px) {
  .workspace {
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .workspace .sidebar {
    display: contents;
  }
  .workspace .sidebar > * {
    margin-left: 18px;
    margin-right: 18px;
  }
  .workspace .sidebar > div:first-child {
    order: 0;
  }
  .workspace #citySearch {
    order: 1;
  }
  .workspace .counts {
    order: 2;
  }
  .workspace .map-side {
    order: 3;
  }
  .workspace #filterCities {
    order: 4;
    width: calc(100% - 36px);
  }
  .workspace #cityList {
    order: 5;
  }
  .workspace .sidebar > .actions {
    order: 6;
    margin-top: 0;
  }
  .workspace .sidebar > p {
    order: 7;
  }
  .workspace .map-top strong {
    display: none;
  }
  .workspace .map-top {
    justify-content: flex-end;
    padding: 10px 15px;
  }
  .workspace .map-tools button {
    white-space: nowrap;
  }
  .workspace .map {
    min-height: 240px;
  }
  .workspace .map svg {
    min-height: 240px;
  }
  .workspace.list-only .map-side {
    display: none;
  }
  .intro .privacy-tag {
    margin-top: 8px;
  }
  .intro .eyebrow {
    margin-bottom: 8px;
  }
  main {
    padding-top: 22px;
  }
  .intro h1 {
    font-size: 2.4375rem;
  }
  .intro p {
    font-size: 0.9375rem;
  }
  .workspace .sidebar h2 {
    font-size: 1.375rem;
    margin-bottom: 3px;
  }
  .workspace .sidebar > p.subtle {
    margin-bottom: 0;
  }
  .workspace .sidebar .city-list {
    max-height: 200px;
  }
}

.count span {
  white-space: normal;
}
.legend {
  flex-wrap: wrap;
}
.header nav {
  min-width: 0;
}
.header nav a {
  flex-shrink: 0;
}
.feature-card .button {
  white-space: normal;
}
@media (max-width: 700px) {
  .header nav {
    overflow-x: auto;
    flex-shrink: 0;
  }
  .header > button {
    max-width: 45%;
    overflow-wrap: anywhere;
  }
  .stat strong {
    font-size: clamp(1.35rem, 8vw, 1.9rem);
  }
  .map-tools {
    flex-wrap: wrap;
  }
  .map-tools button {
    font-size: 0.8rem;
  }
  .counts {
    width: auto;
  }
  .count span {
    font-size: 0.75rem;
  }
  .intro h1 {
    overflow-wrap: normal;
  }
  .actions {
    flex-wrap: wrap;
  }
  .sidebar .actions button {
    flex: 1 1 120px;
  }
  .header .brand {
    flex-shrink: 0;
  }
}
.intro .privacy-tag {
  white-space: normal;
  max-width: 100%;
}

/* My places: one primary search, with an optional filter for larger maps. */
.workspace:not(.list-only) #cityList { max-height: 29rem; }
#cityList .city-row { flex-shrink: 0; }
.places-filter { margin: 0; }
.places-filter summary { color: #173d40; font-size: .875rem; cursor: pointer; }
.places-filter input { margin-top: 10px; width: 100%; }
@media (max-width: 700px) {
  .workspace #placesFilter { order: 4; }
  .workspace #placesFilter #filterCities { width: 100%; }
}

.art-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.art-previews figure { margin:0; min-width:0; }
.art-previews figcaption { font-weight:700; margin-bottom:8px; }
.art-previews img { display:block; width:100%; border:1px solid var(--line,#d7dfd7); border-radius:4px; }
@media(max-width:480px) { .art-previews { grid-template-columns:1fr; } }
@font-face { font-family:ArtSans;src:url('/assets/art-sans.ttf') format('truetype');font-display:swap; }
@font-face { font-family:ArtDisplay;src:url('/assets/art-display.ttf') format('truetype');font-display:swap; }
.map-picker { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin:0 0 22px; }
.map-picker>div { flex:1; min-width:200px; max-width:420px; }
.map-picker label { margin-top:0; }
.map-picker select { margin-bottom:0; }
.composition-panel { margin:24px 0; padding:16px; background:#edf0e9; border-radius:10px; }
#artCanvas { display:block; width:100%; max-width:480px; height:auto; margin:0 auto; border:1px solid #d8dfd5; }
.composition-panel .actions { gap:8px; }
.composition-panel button { font-size:13px; padding:10px 12px; }
.style-examples { margin:16px 0; }
@media(max-width:480px) { .map-picker>div { flex-basis:100%;max-width:none; } }
.composition-panel .subtle { color:#4b5c51; }
.analytics-filters { display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0; }
.analytics-filters>div { min-width:130px;flex:1; }
.analytics-filters input,.analytics-filters select { margin-bottom:0; }
.analytics-tables { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px; }
.analytics-tables .panel { min-width:0;overflow-wrap:anywhere; }
.analytics-chart { background:#fffdf7;border:1px solid #d7dfd5;border-radius:12px;padding:15px;margin:16px 0; }
.analytics-chart svg { display:block;width:100%;height:auto; }
.analytics-chart text { font:13px sans-serif;fill:#43564d; }
.chart-axis { fill:none;stroke:#a5b3a9;stroke-width:1; }
.chart-visitors,.chart-views { fill:none;stroke-width:3;stroke-linejoin:round; }
.chart-visitors { stroke:#24654b; }.chart-views { stroke:#b14f32; }.chart-dot { fill:#24654b; }
.chart-legend { display:flex;flex-wrap:wrap;gap:20px;font-size:13px;color:#43564d; }
.visitor-counter { text-align:left;cursor:pointer;color:#173d40;background:#eef3e9;border:2px solid #789683;font:inherit;width:100%; }
.visitor-counter:hover { background:#e0eadb;color:#173d40; }
.visitor-counter:focus-visible { outline:3px solid #936b1d;outline-offset:3px; }
#analyticsCSV { margin:14px 0; }
@media(max-width:850px){.analytics-tables{grid-template-columns:1fr;}}
.admin-content .subtle,.admin-content .stat small { color:#425b54; }
.admin-content .stat.dark small { color:#d6e5dc; }
