:root {
  --paper: #f6f3e9;
  --white: #fffcf3;
  --ink: #152925;
  --muted: #4b5f56;
  --green: #154e42;
  --deep: #0d392f;
  --soft: #e7eee3;
  --line: #b9c8bb;
  --gold: #eaa672;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font:
    100%/1.55 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
main:focus {
  outline: none;
}
.wrap {
  width: min(73rem, 100% - 2.6rem);
  margin-inline: auto;
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #ab5023;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
ol,
ul,
dl {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: -0.038em;
}
h1 {
  font-size: clamp(2.45rem, 6.3vw, 5rem);
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.top {
  border-bottom: 1px solid var(--line);
}
.mast {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}
.brand {
  font: 700 clamp(1.75rem, 4vw, 2.45rem) / 1 var(--serif);
  letter-spacing: -0.07em;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand span {
  color: var(--green);
}
nav {
  display: flex;
  gap: 0.2rem clamp(0.8rem, 2.7vw, 2.1rem);
  flex-wrap: wrap;
}
.mast nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 680;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.mast nav a:hover,
.mast nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.42rem;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  transform: translateY(-250%);
  background: var(--white);
  padding: 0.6rem;
}
.skip:focus {
  transform: none;
}
.footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.hero {
  margin-top: clamp(1.1rem, 3vw, 2.2rem);
  padding: clamp(2rem, 6vw, 4.75rem);
  border-radius: 0.52rem;
  background: var(--deep);
  color: var(--white);
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  margin: 0.8rem 0 1.2rem;
}
.hero h1 span {
  color: var(--gold);
}
.hero p:not(.kicker) {
  color: #e2eae0;
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  max-width: 48ch;
}
.hero .kicker {
  color: #f2d2a4;
}
.hero .search {
  margin-top: 1.65rem;
}
.hero .search label {
  color: var(--white);
}
.section {
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.section-head.bottom {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-top: 1rem;
}
.section-head .action {
  min-height: 2.3rem;
}
.kicker {
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 750;
  color: var(--green);
}
.heading {
  padding: clamp(2.15rem, 6vw, 4.2rem) 0 1.5rem;
}
.heading .kicker {
  margin-bottom: 0.7rem;
}
.lede {
  color: var(--muted);
  max-width: 63ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-top: 1rem;
}
.bread {
  padding-top: 0.5rem;
}
.bread ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
  align-items: center;
}
.bread li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.4rem;
}
.bread li + li::before {
  content: "›";
}
.bread + .heading {
  padding-top: 1.65rem;
}
.three,
.two,
.four {
  display: grid;
  gap: 0.85rem;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards,
.directory {
  margin-top: 0.9rem;
}
.citycard,
.directory a,
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--ink);
}
.citycard:hover,
.directory a:hover,
.metric:hover {
  border-color: var(--green);
  background: var(--soft);
}
.citycard p,
.directory span,
.metric span {
  color: var(--muted);
}
.citycard p {
  flex: 1;
}
.citycard h3 {
  margin-block: 0.15rem;
}
.cardfoot {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 670;
}
.directory a strong {
  font: 700 clamp(1.15rem, 2.2vw, 1.45rem) / 1.15 var(--serif);
}
.directory a strong::after {
  content: " ↗";
  font: 0.9rem system-ui;
  color: var(--green);
}
.search {
  max-width: 52rem;
}
.search label,
.form label,
.toolbar label {
  display: block;
  font-size: 0.94rem;
  font-weight: 680;
  margin-bottom: 0.35rem;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 0.42rem;
  padding: 0.3rem;
}
.searchbox:focus-within {
  outline: 2px solid #9bbb9e;
  outline-offset: 2px;
}
.searchbox input {
  flex: 1;
  border: 0;
  min-width: 0;
  padding-inline: 0.15rem;
  background: none;
}
.lens {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: relative;
  flex: none;
  margin-left: 0.7rem;
}
.lens::after {
  content: "";
  position: absolute;
  background: var(--green);
  height: 2px;
  width: 0.5rem;
  top: 0.82rem;
  left: 0.67rem;
  transform: rotate(45deg);
}
.filters {
  margin-top: 1rem;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1rem;
  min-height: 2.75rem;
  border-radius: 0.28rem;
  font-weight: 700;
}
.action {
  padding: 0.42rem 0.72rem;
  color: var(--green);
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--white);
}
.action:hover {
  background: var(--soft);
  border-color: var(--green);
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--green);
  color: var(--white);
}
button:hover {
  background: var(--deep);
}
button.quiet {
  background: var(--soft);
  color: var(--green);
  border-color: var(--line);
}
button.quiet:hover {
  border-color: var(--green);
}
button.danger {
  background: #8e3c30;
}
.hero button {
  background: var(--green);
  min-width: 4.4rem;
}
.hero button:hover {
  background: #226654;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #82978b;
  background: var(--white);
  color: var(--ink);
  padding: 0.52rem 0.65rem;
  border-radius: 0.28rem;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: none;
}
.form .tick,
.tick {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.45;
  cursor: pointer;
}
.searchbox input[type="search"] {
  border: 0;
  padding-inline: 0.1rem;
}
.form {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}
.form label:not(.tick) {
  margin: 0.4rem 0 0;
}
.form button {
  margin-top: 0.45rem;
}
.form.compact {
  max-width: 37rem;
}
.form.wide {
  max-width: 56rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin: 1rem 0;
}
.toolbar form {
  margin: 0;
}
.toolbar > div {
  min-width: min(100%, 12rem);
}
.paging {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.reading {
  max-width: 68ch;
  margin-block: 1rem;
  line-height: 1.73;
}
.stack > * + * {
  margin-top: 1rem;
}
.notice {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 0.85rem 1rem;
  margin: 0.8rem 0;
  max-width: 75ch;
}
.notice.error {
  background: #f7e4db;
  border-left-color: #8e3c30;
}
.records {
  padding: 0;
  list-style: none;
}
.record {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr) 1.15rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.15rem;
  min-height: 4.3rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.record strong {
  font: 700 clamp(1.15rem, 2.5vw, 1.6rem) / 1.15 var(--serif);
  overflow-wrap: anywhere;
}
.record small {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
}
.record:hover strong {
  text-decoration: underline;
  color: var(--green);
}
.symbol {
  display: grid;
  place-items: center;
  height: 2.55rem;
  border-radius: 0.35rem;
  background: var(--soft);
  color: var(--green);
  font: 700 1.25rem var(--serif);
}
.symbol.rota {
  background: #f0e5d3;
  color: #6e3c25;
}
.arrow {
  color: var(--green);
  font-size: 1.2rem;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.source {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}
.stops,
.sources {
  padding: 0 0 0 1.35rem;
  margin: 1rem 0;
}
.stops li {
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.stops li::marker {
  font-weight: 750;
  color: var(--green);
}
.stops a {
  font-weight: 720;
}
.stops p {
  margin-top: 0.25rem;
}
.sources li {
  margin: 0.45rem 0;
}
.admin .top {
  background: var(--soft);
}
.admin .heading {
  padding-bottom: 1rem;
}
.admin main > .form {
  margin-bottom: 1.5rem;
}
.metrics {
  margin-top: 1rem;
}
.metric strong {
  font: 700 2.5rem/1.05 var(--serif);
  color: var(--green);
}
.table-scroll {
  overflow: auto;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.table-scroll th {
  background: var(--soft);
  white-space: nowrap;
}
.table-scroll small {
  display: block;
  color: var(--muted);
}
.proof {
  width: 100%;
  margin: 0.25rem 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--white);
}
.proof summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
  min-height: 2.8rem;
}
.proof[open] summary {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.proof-body {
  padding: 0.4rem 1rem 1rem;
}
.proof-body .tick {
  margin-top: 0.85rem;
}
.proof-body .two {
  margin-top: 0.5rem;
}
.hint {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0.5rem 0;
}
.history {
  padding: 0;
  list-style: none;
}
.history li,
.inbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.history span,
.inbox span {
  color: var(--muted);
  font-size: 0.94rem;
}
.inbox .toolbar {
  margin: 0;
}
@media (max-width: 48rem) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .mast {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 0.7rem 0 0.35rem;
  }
  .mast nav {
    gap: 0.1rem 0.8rem;
  }
  .mast nav a {
    font-size: 0.87rem;
  }
  .hero {
    padding: 1.45rem;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 5rem);
  }
  .hero .search {
    margin-top: 1.2rem;
  }
  .directory,
  .cards {
    grid-template-columns: 1fr;
  }
  .citycard {
    min-height: 8.5rem;
  }
  .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer .mast {
    padding-bottom: 0.7rem;
  }
}
@media (max-width: 30rem) {
  .three.filters,
  .two {
    grid-template-columns: 1fr;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .searchbox {
    gap: 0.55rem;
  }
  .lens {
    margin-left: 0.3rem;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 10.6vw, 3.3rem);
  }
  .hero {
    padding: 1rem;
  }
  .inbox {
    align-items: flex-start;
  }
  .heading {
    padding-top: 2.05rem;
  }
}
