:root {
  --ink: #102f3b;
  --muted: #526773;
  --navy: #082e3b;
  --teal: #007f73;
  --mint: #54dacb;
  --line: #dbe4e7;
  --paper: #f3f7f8;
  --white: #fff;
  --amber: #946008;
  --blue: #315f98;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d99515;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
p {
  line-height: 1.6;
}
.small {
  font-size: 0.875rem;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.app-nav svg,
.map-search svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.masthead {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) 0.5rem
    max(0.75rem, env(safe-area-inset-left));
  padding-top: max(0.5rem, env(safe-area-inset-top));
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  flex: 1;
}
.brand-mark {
  color: var(--mint);
  font-size: 1.6rem;
  vertical-align: middle;
  margin-right: 0.1rem;
}
.location {
  display: none;
  font-size: 0.875rem;
}
.location span {
  color: #bdd0d7;
}
.light {
  background: transparent;
  color: #fff;
  border-color: #527380;
  font-size: 0.875rem;
  padding: 0.55rem 0.7rem;
}
.atlas-app .masthead .light {
  display: none;
}
.download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 750;
  border-radius: 10px;
  background: var(--mint);
  color: #062f37;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
}
.atlas-app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.app-panel {
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.app-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-shrink: 0;
  z-index: 800;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.3rem max(0.5rem, env(safe-area-inset-right))
    max(0.35rem, env(safe-area-inset-bottom))
    max(0.5rem, env(safe-area-inset-left));
}
.app-nav a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 56px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.875rem;
}
.app-nav a[aria-current="page"] {
  background: #e6f5f1;
  color: #00675d;
}
.app-nav svg {
  width: 23px;
  height: 23px;
}
.map-wrap {
  position: relative;
  height: 100%;
  background: #d9e9ee;
  isolation: isolate;
}
#map {
  height: 100%;
  width: 100%;
  background: #d8eaf0;
}
.map-toolbar {
  position: absolute;
  z-index: 650;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: none;
}
.map-toolbar > * {
  pointer-events: auto;
}
.map-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  min-height: 48px;
  border: 1px solid #cbdde3;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 3px 12px #082e3b18;
  flex: 1;
  min-width: 0;
  margin-right: 84px;
  font-size: 0.875rem;
  font-weight: 650;
}
.map-search svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}
.map-search span {
  flex: 1;
}
.map-search strong {
  background: #eaf4f3;
  color: #006c61;
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 0.2rem 0.35rem;
}
.layers {
  position: absolute;
  right: 0;
  top: 0;
  background: #fff;
  box-shadow: 0 3px 12px #082e3b18;
  border: 1px solid #cbdde3;
  border-radius: 12px;
  font-size: 0.875rem;
}
.layers summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.layers summary::-webkit-details-marker {
  display: none;
}
.layers summary::after {
  content: "⌄";
  margin-left: 0.4rem;
}
.layers[open] {
  min-width: 226px;
  padding-bottom: 0.45rem;
}
.layers[open] summary {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.layers label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
}
.layers input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}
.legend-area {
  width: 15px;
  height: 11px;
  background: #54dacb40;
  border: 1px solid var(--teal);
}
.legend-line {
  width: 16px;
  border-top: 3px dashed #a66310;
}
.legend-wind {
  font-size: 1.2rem;
  color: var(--blue);
}
.map-banner {
  position: absolute;
  z-index: 500;
  top: 72px;
  left: 12px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 80px);
}
.map-banner > span {
  background: #fffffff0;
  color: var(--ink);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
}
.map-banner a {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.5rem;
  border-radius: 7px;
  background: #fffffff2;
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
}
.map-banner b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  color: white;
}
.legend-a {
  background: var(--teal);
}
.legend-b {
  background: var(--blue);
}
.legend-c {
  background: var(--amber);
}
.map-fit {
  position: absolute;
  z-index: 500;
  right: 12px;
  top: 190px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 12px #082e3b18;
  font-weight: 650;
  font-size: 0.875rem;
}
.map-note {
  position: absolute;
  z-index: 500;
  bottom: 21px;
  left: 12px;
  right: 12px;
  pointer-events: none;
  font-size: 0.75rem;
  line-height: 1.3;
  width: fit-content;
  max-width: calc(100% - 24px);
  background: #ffffffed;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
}
.selected-preview {
  position: absolute;
  z-index: 550;
  bottom: 58px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  padding: 0.85rem;
  border: 1px solid #b7d2d6;
  border-radius: 16px;
  box-shadow: 0 5px 24px #082e3b26;
  width: calc(100% - 24px);
}
.selected-preview .preview-copy {
  min-width: 0;
}
.selected-preview strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0.2rem 0;
}
.selected-preview .preview-kicker {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 750;
}
.selected-preview .preview-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.preview-action {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--teal);
  text-align: center;
}
.preview-action span {
  font-size: 1.4rem;
  display: block;
  line-height: 1;
}
.map-empty {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  width: min(300px, calc(100% - 24px));
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 18px #082e3b22;
}
.map-empty p {
  font-size: 0.875rem;
  margin: 0.35rem 0;
}
.leaflet-top.leaflet-right {
  top: 66px;
  right: 2px;
}
.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
}
.leaflet-control-attribution {
  font-size: 10px !important;
}
.leaflet-control-scale {
  margin-bottom: 3px !important;
}
.leaflet-tooltip {
  font:
    14px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.target-pin {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
}
.pin-content {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 4px #082e3b88;
  font-weight: 800;
  font-size: 13px;
}
.pin-content.B {
  background: var(--blue);
}
.pin-content.C {
  background: var(--amber);
}
.pin-content.selected {
  outline: 3px solid #e1a436;
  transform: scale(1.15);
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: white;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar > * {
  flex-shrink: 0;
}
.side-head {
  padding: 1.25rem 1rem 1rem;
}
.side-head p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}
.search-field {
  padding: 0 1rem 0.75rem;
}
label {
  font-size: 0.875rem;
  font-weight: 650;
  display: block;
}
input[type="search"],
select {
  display: block;
  width: 100%;
  background: #f8fafb;
  color: var(--ink);
  border: 1px solid #b8cbd2;
  border-radius: 9px;
  padding: 0.65rem 0.6rem;
  margin-top: 0.3rem;
  font-size: 1rem;
  min-height: 48px;
}
.filter-disclosure {
  margin: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.filter-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 750;
  list-style: none;
}
.filter-disclosure > summary::-webkit-details-marker {
  display: none;
}
.filter-disclosure > summary::after {
  content: "+";
  font-size: 1.15rem;
}
.filter-disclosure[open] > summary::after {
  content: "−";
}
#filter-summary {
  flex: 1;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.filters {
  padding: 0 0.75rem 0.75rem;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.filters .small {
  margin: 0.65rem 0;
  line-height: 1.4;
}
.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
}
.filter-actions a {
  font-size: 0.875rem;
}
.text-button {
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 650;
}
.list-head {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.target-list {
  min-height: 100px;
}
.target-card {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
  padding: 1rem;
  position: relative;
}
.target-card:hover {
  background: #f3faf8;
}
.target-card[aria-pressed="true"] {
  background: #e8f6f3;
  box-shadow: inset 4px 0 var(--teal);
}
.grade {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: #dff4ef;
  color: #006356;
  font-size: 1rem;
  flex-shrink: 0;
}
.grade.B {
  background: #e7eef8;
  color: #315f98;
}
.grade.C {
  background: #fff1d5;
  color: #845603;
}
.target-card strong {
  font-size: 1rem;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.3rem;
}
.target-card .meta {
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
}
.target-card .id {
  font-size: 0.75rem;
  color: var(--muted);
}
.side-foot {
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}
.detail-pane {
  overflow-y: auto;
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
}
.detail {
  padding: 1rem;
  background: #fff;
}
.detail p {
  color: var(--muted);
  font-size: 1rem;
}
.empty-detail {
  padding: 2rem 0.5rem;
}
.detail-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.detail-top .grade {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}
.detail-top .eyebrow {
  margin-bottom: 0.25rem;
}
.detail-top h2 {
  margin: 0;
  font-size: 1.35rem;
}
.coordinates {
  display: block;
  padding: 0.7rem;
  background: #f0f5f7;
  border-radius: 8px;
  font:
    0.875rem/1.5 ui-monospace,
    monospace;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.grade-explanation {
  padding: 0.85rem;
  border-left: 3px solid var(--teal);
  background: #f3faf8;
  border-radius: 0 8px 8px 0;
}
.grade-explanation p {
  font-size: 0.875rem;
  margin: 0.35rem 0 0.65rem;
}
.grade-explanation a {
  font-size: 0.875rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
}
.stat span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.stat strong {
  font-size: 1.25rem;
}
.detail-section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.detail .tag {
  display: inline-flex;
  border: 1px solid #d4e1e5;
  border-radius: 20px;
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  margin: 0 0.2rem 0.4rem 0;
  color: var(--muted);
}
.detail .primary {
  width: 100%;
  margin-top: 0.5rem;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 750;
}
.evidence-note {
  background: #f0f5f7;
  padding: 0.85rem;
  border-radius: 10px;
}
.evidence-note p {
  margin: 0;
  font-size: 0.875rem;
}
.metric-row {
  margin-bottom: 1rem;
}
.metric-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.metric-row strong {
  white-space: nowrap;
}
.metric-row .metric-explanation {
  font-size: 0.875rem;
  margin: 0.25rem 0 0.7rem;
}
.meter {
  height: 6px;
  background: #e5ecef;
  border-radius: 4px;
  margin: 0.35rem 0 0.1rem;
}
.meter > span {
  height: 100%;
  display: block;
  background: var(--teal);
  border-radius: 4px;
}
.score-points {
  font-size: 0.75rem;
  color: var(--muted);
}
dialog {
  max-width: 650px;
  width: calc(100% - 1.5rem);
  max-height: calc(100dvh - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #082e3b88;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dialog-head button,
.sheet-header button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.7rem;
  line-height: 1;
}
.spot-sheet {
  width: 100%;
  max-width: 700px;
  height: 87dvh;
  max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  box-shadow: 0 -5px 35px #082e3b33;
}
.spot-sheet[open] {
  display: flex;
  flex-direction: column;
}
.sheet-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.sheet-header h2 {
  font-size: 1rem;
  margin: 0;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}
.sheet-actions button,
.sheet-actions a {
  font-size: 0.875rem;
}
.spot-sheet #download-target {
  display: none;
}
.guide-panel,
.forecast {
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
}
.view-heading {
  padding: 1.5rem 1rem 0.5rem;
}
.view-heading p {
  color: var(--muted);
}
.map-guide {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.map-guide p {
  color: var(--muted);
}
.grade-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}
.grade-guide-grid > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.grade-guide-grid .grade {
  float: left;
  margin-right: 0.75rem;
}
.grade-guide-grid h3 {
  margin: 0 0 0.65rem;
  padding-top: 0.15rem;
}
.grade-guide-grid h3 small {
  color: var(--muted);
  font-size: 0.875rem;
  margin-left: 0.4rem;
}
.grade-guide-grid p {
  margin: 0;
  clear: both;
}
.geometry-guide summary,
.forecast-metadata summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  padding: 0.5rem 0;
}
.charter-evidence {
  background: #f5f9fa;
}
.evidence-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.evidence-counts span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.7rem;
  font-size: 0.875rem;
}
.source-links {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.source-links a {
  padding: 0.35rem 0;
}
.forecast {
  padding: 1.25rem 1rem 2rem;
}
.forecast-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
.forecast-heading h2 {
  margin: 0;
  font-size: 1.5rem;
}
.forecast-heading .eyebrow {
  margin-bottom: 0.35rem;
}
.forecast-heading button {
  width: 100%;
}
.forecast > p {
  color: var(--muted);
  margin: 1rem 0;
}
.forecast-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.forecast-controls label:first-child {
  grid-column: 1 / -1;
}
.weather-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}
.weather-card {
  padding: 0.85rem;
  background: #f3f7f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.weather-card h3 {
  font-size: 0.875rem;
  line-height: 1.35;
}
.weather-card strong {
  font-size: 1.4rem;
}
.weather-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}
.weather-card .unavailable {
  font-size: 1rem;
  color: #886018;
}
.forecast-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
caption {
  padding: 0.7rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--muted);
}
th,
td {
  padding: 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-weight: 700;
}
.forecast-notice {
  background: #fff4dc;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin: 1rem 0;
  color: #664b11;
}
.forecast-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.forecast-links a {
  padding: 0.35rem 0;
}
.forecast-metadata {
  margin-top: 1rem;
}
.station-marker {
  background: white;
  border: 1px solid var(--blue);
  border-radius: 7px;
  box-shadow: 0 1px 5px #082e3b44;
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.station-marker .wind-arrow {
  display: inline-block;
  color: var(--blue);
  font-size: 18px;
  vertical-align: middle;
}
.evidence-table th,
.evidence-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.source-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background: white;
}
.source-page h2 {
  margin-top: 2rem;
  scroll-margin-top: 1rem;
}
.source-page li {
  margin-bottom: 0.7rem;
}
.source-page code {
  overflow-wrap: anywhere;
}
.source-page .evidence-table {
  font-size: 0.875rem;
}
.source-page summary {
  min-height: 44px;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 650;
}
.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 3000;
  background: #fff;
  padding: 0.6rem;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.toast {
  position: fixed;
  bottom: calc(85px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  z-index: 2000;
  width: max-content;
  max-width: calc(100vw - 24px);
  text-align: center;
  font-size: 0.875rem;
  pointer-events: none;
}
.error {
  padding: 1rem;
  color: #8b3519;
  background: #fff3ef;
  font-size: 1rem;
}
.no-results {
  padding: 1.25rem;
  color: var(--muted);
}
@media (min-width: 700px) {
  .atlas-app .masthead .light {
    display: block;
  }
  .masthead {
    gap: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .brand {
    flex: 0 0 auto;
    font-size: 1.4rem;
  }
  .location {
    display: grid;
    flex: 1;
    padding-left: 1rem;
    border-left: 1px solid #42616c;
  }
  .app-nav {
    padding-left: max(calc((100% - 640px) / 2), 1rem);
    padding-right: max(calc((100% - 640px) / 2), 1rem);
  }
  .map-toolbar {
    left: 20px;
    right: 20px;
    top: 20px;
    max-width: 450px;
  }
  .map-banner {
    top: 82px;
    left: 20px;
  }
  .selected-preview {
    max-width: 460px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 50px;
  }
  .sidebar {
    max-width: 700px;
    margin: auto;
    border-inline: 1px solid var(--line);
  }
  .forecast,
  .guide-panel {
    max-width: 900px;
    margin: auto;
  }
  .forecast {
    padding: 2rem;
  }
  .forecast-heading button {
    width: auto;
  }
  .forecast-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .forecast-controls label:first-child {
    grid-column: auto;
  }
  .grade-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grade-guide-grid .grade {
    float: none;
    margin: 0 0 0.75rem;
  }
  .grade-guide-grid h3 small {
    display: block;
    margin: 0.25rem 0 0;
  }
  .map-guide,
  .view-heading {
    padding: 1.5rem 2rem;
  }
  .source-page {
    padding: 2rem;
    margin: 1.5rem auto;
  }
  .spot-sheet {
    height: 85dvh;
  }
}
@media (min-width: 1200px) {
  .atlas-app[data-view="map"] .workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 350px;
  }
  .atlas-app[data-view="map"] .sidebar {
    margin: 0;
    border-left: 0;
    width: 100%;
  }
  .atlas-app[data-view="map"] .map-column {
    grid-column: 2;
  }
  .atlas-app[data-view="map"] .detail-pane {
    grid-column: 3;
  }
  .atlas-app[data-view="map"] .map-search {
    display: none;
  }
  .atlas-app[data-view="map"] .map-toolbar {
    left: auto;
    right: 12px;
    top: 12px;
    width: 100px;
  }
  .atlas-app[data-view="map"] .map-banner {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 112px);
  }
  .atlas-app[data-view="map"] .selected-preview {
    display: none;
  }
  .detail {
    padding: 1.25rem;
  }
  .side-head h1 {
    font-size: 1.45rem;
  }
  .atlas-app[data-view="map"] .sidebar .target-card strong {
    font-size: 0.9375rem;
  }
}
@media (max-height: 530px) and (orientation: landscape) {
  .masthead {
    min-height: 52px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .app-nav a {
    min-height: 44px;
    flex-direction: row;
    gap: 0.5rem;
  }
  .app-nav svg {
    width: 20px;
    height: 20px;
  }
  .selected-preview {
    left: 12px;
    right: 80px;
    bottom: 42px;
    max-width: 390px;
    transform: none;
    padding: 0.6rem;
  }
  .selected-preview .preview-kicker {
    display: none;
  }
  .map-fit {
    top: auto;
    bottom: 45px;
  }
  .map-fit span {
    display: none;
  }
  .spot-sheet {
    height: 95dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
