/* The site-wide palette, type families and navigation come from base.css. */
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.witness-skip {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 121;
  padding: .75rem;
  background: var(--bone);
  color: var(--ink);
  transform: translateY(-160%);
}
.witness-skip:focus { transform: translateY(0); }
.witness-page { padding-bottom: clamp(3rem, 7vw, 6rem); }
.witness-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "heading map" "intro map";
  align-items: start;
  gap: 1.35rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.witness-heading { grid-area: heading; }
.witness-intro { grid-area: intro; max-width: 64ch; color: var(--muted); }
.witness-intro p { margin: 0; }
.witness-intro p + p { margin-top: .8rem; }
.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  margin-right: .75rem;
  vertical-align: middle;
  background: currentColor;
}
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.028em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.65rem, 5.4vw, 4.8rem); text-wrap: balance; }
h2 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3.3vw, 2.35rem); }
.reconstruction { grid-area: map; align-self: center; min-width: 0; margin: 0; }
.reconstruction iframe { display: block; width: 100%; height: clamp(34rem, 40vw, 36rem); border: 1px solid var(--line-2); background: #101a16; }
.reconstruction figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.reconstruction a { text-decoration: underline; text-underline-offset: .2em; }
.reconstruction a:hover { color: var(--gold); }
.witness-start {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--bone);
  font-weight: 600;
}
.witness-start:hover { color: var(--gold); border-color: var(--gold); }
.witness-content { max-width: 49rem; margin: clamp(1.5rem, 4vw, 3rem) auto 0; scroll-margin-top: 8rem; }
.notice {
  margin: 0 0 1rem;
  padding: .65rem 1rem;
  border-left: 2px solid var(--ember-lite);
  background: rgba(229, 140, 96, .08);
  color: var(--bone);
}
.error { font-weight: 600; }
form { margin-top: 1.5rem; }
.card { min-width: 0; padding-block: clamp(1.6rem, 4vw, 2.6rem); border-top: 1px solid var(--line-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; margin-block: .95rem; }
.field { min-width: 0; margin-block: .95rem; }
.pair .field, .card > :last-child { margin: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: .4rem; }
input, select, textarea, button { font: inherit; }
.field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: rgba(241, 236, 227, .035);
  color: var(--bone);
}
.field select option { background: var(--ink); }
textarea { resize: vertical; }
fieldset { margin: 1rem 0; padding: 0; border: none; }
.options { display: grid; gap: .45rem; }
.options label { display: flex; align-items: start; gap: .65rem; }
input[type=checkbox], input[type=radio] {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  flex: none;
  margin: .2rem 0 0;
  accent-color: var(--ember-lite);
}
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.upload { padding: .9rem; border: 1px dashed var(--line-2); }
::file-selector-button { margin-inline-end: .6rem; font: inherit; }
.map { border-color: var(--gold); }
form button {
  padding: .75rem 1.2rem;
  border: 1px solid var(--ember-lite);
  border-radius: 2px;
  background: var(--ember-lite);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
form button:hover { background: var(--bone); border-color: var(--bone); }
form button:disabled { opacity: .65; cursor: wait; }
.upload-actions { margin-top: 1.25rem; }
.upload-actions button { margin-top: .75rem; }
.upload-status { margin: .65rem 0 0; color: var(--gold); }
.upload-status:empty { margin: 0; }
.upload-status[data-error] { color: var(--ember-lite); }
.evidence-media .hint { margin-bottom: .75rem; }
.evidence-media:not(:has(input[value=yes]:checked)) ~ .evidence-upload-controls,
.evidence-media:not(:has(input[value=no]:checked)) ~ .evidence-save-controls { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.witness-content a, .witness-footer a { text-decoration: underline; text-underline-offset: .2em; }
.witness-footer { border-top: 1px solid var(--line); padding: 1.7rem 0 2.2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
.witness-content a:hover, .witness-footer a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .witness-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "map" "intro";
  }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
}
@media (max-width: 36rem) {
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 23rem) {
  .reconstruction iframe { height: 37rem; }
}
