@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/atkinson-next-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Text";
  src: url("assets/dm-serif-text-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #102b38;
  --muted: #425962;
  --teal: #08695c;
  --teal-dark: #075349;
  --tint: #e9f4f1;
  --line: #c5d3d3;
  --paper: #fff;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 8, 105, 92;
  --bs-link-hover-color-rgb: 7, 83, 73;
  scroll-behavior: auto;
}

body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.35rem, 4.2vw, 3.45rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: 1.55rem; line-height: 1.1; letter-spacing: -.019em; }
p { margin: 0; }
ul { margin: 0; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[id] { scroll-margin-block-start: 1.1rem; }

.page-width { width: min(calc(100% - 3rem), 1240px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  padding: .7rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.15rem;
  min-height: 4.1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  font: 400 clamp(1.4rem, 2.25vw, 1.95rem)/1 var(--serif);
  white-space: nowrap;
  text-decoration: none;
}
.beacon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}
.beacon span {
  width: 15px;
  height: 20px;
  background: #fff;
  clip-path: polygon(50% 0, 82% 18%, 75% 29%, 68% 29%, 80% 91%, 98% 91%, 98% 100%, 2% 100%, 2% 91%, 20% 91%, 32% 29%, 25% 29%, 18% 18%);
  transform: translateY(-2px);
}
.beacon::after {
  position: absolute;
  inset: auto 8px 7px;
  height: 2px;
  border-radius: 50%;
  background: #9fd2c8;
  content: "";
}
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.4rem); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7.7fr);
  gap: clamp(1.45rem, 3vw, 3.2rem);
  align-items: center;
  padding-block: clamp(1.5rem, 2.8vw, 2.25rem) 1.8rem;
}
.intro p { margin-top: .75rem; max-width: 31rem; font-size: clamp(1.03rem, 1.6vw, 1.26rem); line-height: 1.34; }
.jump-link { display: inline-flex; align-items: center; min-height: 44px; gap: .4rem; font-weight: 700; }
.jump-link span { font-size: 1.1rem; }
.coast { display: block; width: 100%; height: clamp(10rem, 16vw, 14rem); object-fit: cover; border-radius: 10px; }

.workspace {
  display: grid;
  grid-template-columns: clamp(14.25rem, 23vw, 18.25rem) minmax(0, 1fr);
  gap: 1.45rem;
  align-items: start;
}
.filter-panel { padding: 1.15rem 1.25rem; background: var(--tint); border-radius: 12px; }
.filter-heading { margin-bottom: .55rem; }
.mobile-results-link { display: none; }
.filter-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding-left: 0;
  margin-bottom: 0;
}
.filter-option .form-check-input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  border: 1.5px solid #455d64;
  cursor: pointer;
}
.filter-option .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.filter-option .form-check-input:focus { border-color: var(--teal); box-shadow: none; }
.filter-option .form-check-input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.filter-option label {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
}
.filter-rule { margin: .65rem 0 .9rem; color: var(--muted); font-size: .875rem; line-height: 1.3; }
.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: .4rem;
  --bs-btn-padding-y: .48rem;
  --bs-btn-padding-x: .75rem;
  min-height: 44px;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; box-shadow: none; }
.btn-outline-primary {
  --bs-btn-color: var(--teal-dark);
  --bs-btn-border-color: var(--teal);
  --bs-btn-hover-color: var(--teal-dark);
  --bs-btn-hover-bg: #d9eee8;
  --bs-btn-hover-border-color: var(--teal-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--teal-dark);
  --bs-btn-active-border-color: var(--teal-dark);
}
.btn-primary, .is-selected .compare-button {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--teal);
  --bs-btn-border-color: var(--teal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--teal-dark);
  --bs-btn-hover-border-color: var(--teal-dark);
  --bs-btn-active-bg: var(--teal-dark);
  --bs-btn-active-border-color: var(--teal-dark);
}
.reset-button { width: 100%; }

.results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: .8rem;
}
.legend { display: flex; flex-wrap: wrap; gap: .45rem .9rem; list-style: none; padding: 0; }
.criterion-status {
  align-items: flex-start;
  display: inline-flex;
  gap: .34rem;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.25;
}
.status-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 1.12rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  font: 700 .8rem/1 var(--sans);
}
.is-yes { color: #075f4f; }
.is-yes .status-symbol { color: #fff; background: #08735e; }
.is-no { color: #813f32; }
.is-no .status-symbol { color: #fff; background: #813f32; }
.is-unknown { color: #42575f; }
.is-unknown .status-symbol { border: 1px solid #687e84; background: #fff; }

.place-list { display: grid; gap: .6rem; }
.place-card { border: 1px solid var(--line); border-radius: 10px; overflow-wrap: break-word; }
.place-card.is-selected { border-color: var(--teal); background: #fbfefd; }
.place-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: .8rem .95rem .05rem;
}
.place-address { margin-top: .27rem; color: var(--muted); font-size: .9rem; line-height: 1.27; }
.card-provenance, .address-note { margin-top: .3rem; color: var(--muted); font-size: .82rem; line-height: 1.27; }
.address-note { font-weight: 600; }
.place-highlights {
  display: grid;
  gap: .35rem;
  border-inline-start: 1px solid var(--line);
  padding: .14rem 0 .14rem .85rem;
  font-size: .875rem;
  line-height: 1.19;
  list-style: none;
}
.place-highlights li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .18rem .6rem; }
.place-highlights .criterion-status { font-size: .78rem; }
.place-highlights .status-symbol { width: 1rem; height: 1rem; flex-basis: 1rem; }
.compare-button { white-space: nowrap; }
.compare-button[aria-disabled="true"] { opacity: .67; cursor: not-allowed; }
.place-details summary {
  width: fit-content;
  min-height: 44px;
  padding-block: .57rem;
  margin: 0 .95rem 0 auto;
  color: var(--teal-dark);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.details-body { padding: 1rem; border-top: 1px solid var(--line); }
.visit-note { font-weight: 600; }
.note-sources { display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin: .35rem 0 .95rem; }
.place-facts { margin: 0; }
.fact-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: .3rem .8rem;
  border-top: 1px solid var(--line);
  padding: .75rem 0;
}
.fact-row dd { margin: 0; }
.fact-note { margin: .2rem 0 0; color: var(--muted); line-height: 1.33; }
.source-link { display: inline-flex; align-items: center; min-height: 32px; padding-block: .25rem; font-weight: 700; }
.fact-provenance { margin-top: .28rem; }
.address-source { border-top: 1px solid var(--line); padding-top: .65rem; }
.place-sources { margin-top: .75rem; }
.place-sources h4 { margin: 0 0 .15rem; font: 700 1rem/1.2 var(--sans); }
.place-sources ul { list-style: none; padding: 0; }
.place-sources li + li { margin-top: .48rem; }
.source-dates { display: flex; flex-wrap: wrap; gap: .18rem .62rem; font-size: .86em; color: var(--muted); line-height: 1.35; }
.source-dates time { white-space: nowrap; }
.empty-state {
  background: var(--tint);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.empty-state p { margin: .55rem 0 .9rem; }
.compare-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .75rem;
  padding: .6rem .85rem;
  background: var(--tint);
  border-radius: 8px;
  font-weight: 700;
}

.compare-section { margin-top: 1.8rem; }
.compare-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .7rem; }
#compare-status { color: var(--muted); }
.compare-table-wrap { border: 1px solid var(--line); border-radius: 8px; }
.comparison-table { margin: 0; table-layout: fixed; --bs-table-border-color: var(--line); }
.comparison-table th, .comparison-table td { padding: .7rem .8rem; overflow-wrap: anywhere; vertical-align: top; }
.comparison-table thead th { --bs-table-bg: #124348; --bs-table-color: #fff; font-size: 1.08rem; }
.comparison-table thead th:first-child { border-top-left-radius: 7px; }
.comparison-table thead th:last-child { border-top-right-radius: 7px; }
.comparison-table .criterion-heading { --bs-table-bg: #e9f4f1; padding-block: .45rem; }
.comparison-table tbody:nth-of-type(even) td { --bs-table-bg: #f7faf9; }
.comparison-table tr > * + * { border-left: 1px solid var(--line); }
.comparison-table .place-sources { margin: 0; }
.comparison-table .place-sources h4 { display: none; }
.remove-button { display: block; margin-top: .3rem; font-size: .86rem; }
.remove-button:focus-visible { outline-color: #fff; }

.method { margin-top: 2.45rem; border-top: 1px solid var(--line); padding-block: 1.6rem 2rem; }
.method-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; margin-top: 1.05rem; }
.method h3 { font-size: 1.38rem; }
.method p { margin-top: .52rem; color: var(--muted); }
.method-links { margin-top: .65rem; padding-left: 1.1rem; }
.method-links a { display: inline-block; padding-block: .35rem; }
.site-footer { border-top: 1px solid var(--line); background: #f5f8f8; }
.footer-inner { min-height: 4rem; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

.information { padding-block: clamp(1.75rem, 5vw, 4rem); min-height: 52vh; }
.information > * { max-width: 48rem; }
.information h1 { margin-bottom: .9rem; }
.information p { max-width: 70ch; line-height: 1.55; }
.information p + p { margin-top: .55rem; }
.information .information-lead { color: var(--muted); font-size: 1.15rem; }
.information section { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.information h2 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); margin-bottom: .4rem; }
.information .btn { margin-top: 1rem; }

@media (max-width: 1050px) {
  .place-header { grid-template-columns: minmax(0, 1fr) auto; }
  .place-highlights { grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding-left: 0; }
}

@media (max-width: 820px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .workspace { grid-template-columns: minmax(12rem, .4fr) minmax(0, 1fr); gap: .85rem; }
  .place-header { grid-template-columns: minmax(0, 1fr); }
  .place-highlights { grid-column: 1; }
  .compare-button { justify-self: start; }
}

@media (max-width: 620px) {
  .page-width { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; padding-top: .65rem; gap: .25rem .65rem; }
  .site-header nav { gap: 1.15rem; font-size: .95rem; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: .55rem; padding-block: 1.2rem 1.15rem; }
  .coast { height: clamp(7.5rem, 28vw, 10rem); }
  .workspace, .method-columns { grid-template-columns: minmax(0, 1fr); }
  .workspace { gap: 1.4rem; }
  .filter-panel { padding: .95rem; }
  .filter-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .5rem; }
  .mobile-results-link:not(:empty) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
  .place-header { padding: .85rem .85rem .1rem; }
  .place-details summary { margin-right: .85rem; }
  .fact-row { grid-template-columns: minmax(0, 1fr); }
  .comparison-table th, .comparison-table td { padding: .52rem .4rem; font-size: .85rem; }
  .comparison-table thead th { font-size: .91rem; }
  .comparison-table .criterion-status { font-size: .8rem; }
  .comparison-table .status-symbol { width: 1rem; height: 1rem; flex-basis: 1rem; }
  .source-link { min-height: 44px; }
  .comparison-table .source-dates { display: grid; }
  .method-columns { gap: 1rem; }
  .footer-inner { flex-wrap: wrap; padding-top: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
