:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #162c32;
  background: #f3f6f4;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
[hidden] {
  display: none !important;
}
a {
  color: #075f5a;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}
.site-header,
main,
footer {
  max-width: 1600px;
  margin: auto;
  padding: 24px;
}
.site-header {
  padding-top: 44px;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 8px 0;
  line-height: 1.15;
}
h2 {
  font-size: 1.4rem;
  margin-top: 0;
}
h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
}
p {
  margin: 10px 0;
}
.eyebrow {
  color: #075f5a;
  font-weight: 700;
}
.lede {
  font-size: 1.15rem;
  max-width: 70ch;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 2fr);
  align-items: start;
  gap: 24px;
}
.panel {
  padding: 24px;
  border: 1px solid #baccc5;
  border-radius: 12px;
  background: white;
  margin-bottom: 20px;
  min-width: 0;
}
fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  font-weight: 700;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  min-width: 0;
}
input,
select,
button {
  font: inherit;
  border: 1px solid #7b9690;
  border-radius: 5px;
  min-height: 44px;
  padding: 9px;
  width: 100%;
  min-width: 0;
  background: white;
  color: inherit;
}
select {
  font-size: 0.94rem;
}
button {
  width: auto;
  background: #075f5a;
  color: white;
  font-weight: 650;
  cursor: pointer;
}
button.secondary {
  background: white;
  color: #075f5a;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 0;
}
.field-note,
small,
.limitation {
  color: #455f64;
  font-size: 0.9rem;
}
.error {
  color: #8e211a;
  background: #fff0ed;
  padding: 12px;
}
.metric {
  border-bottom: 1px solid #e0e8e4;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.metric strong {
  display: block;
}
.warning {
  padding: 12px;
  background: #fff2cf;
  border-left: 4px solid #875900;
}
ul,
ol {
  padding-left: 24px;
}
li {
  margin: 8px 0;
}
footer {
  font-size: 0.9rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: #162c32;
  color: white;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 850px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .site-header,
  main,
  footer {
    padding: 16px;
  }
  .panel {
    padding: 16px;
  }
}
.workspace-grid > * {
  min-width: 0;
}
p,
li,
summary,
h1,
h2,
h3,
button,
label {
  overflow-wrap: anywhere;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.result-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.coordinate-figure {
  margin: 0 0 24px;
  min-width: 0;
}
.coordinate-figure figcaption {
  font-weight: 650;
  overflow-wrap: anywhere;
}
.coordinate-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #162c32;
}
.plot-frame {
  fill: #f5f8f7;
  stroke: currentColor;
}
.reference-line {
  stroke: currentColor;
  stroke-dasharray: 5 5;
  opacity: 0.6;
}
.plot-tick,
.plot-axis,
.point-label {
  font-family: system-ui, sans-serif;
  font-size: 15px;
  fill: currentColor;
}
.point-label {
  font-weight: 650;
}
.coordinate-point {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}
.estimated .coordinate-point {
  fill: white;
}
.agreement-whisker {
  stroke: currentColor;
  stroke-width: 2;
}
@media (max-width: 1200px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .result-comparison {
    grid-template-columns: 1fr;
  }
}
@media (forced-colors: active) {
  .plot-frame,
  .estimated .coordinate-point {
    fill: Canvas;
  }
}
.direction-fill {
  fill: #dcebe6;
}
.direction-hatch {
  stroke: #718e83;
  stroke-width: 0.7;
  fill: none;
}
.direction-guide {
  stroke-dasharray: 2 3;
  stroke: #365a4f;
  stroke-width: 1.5;
}
.direction-arrow {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
@media (forced-colors: active) {
  .direction-fill {
    fill: Canvas;
  }
  .direction-hatch,
  .direction-guide,
  .direction-arrow {
    stroke: CanvasText;
  }
}
