/* TemperMap — survey sheet stylesheet */

:root {
  --paper: #f4eede;
  --paper-deep: #ebe2cc;
  --paper-light: #faf6ea;
  --field: #fffdf6;
  --ink: #1f2a26;
  --ink-soft: #4d564c;
  --forest: #2b4a3b;
  --forest-deep: #1d3529;
  --clay: #9b4526;
  --clay-bright: #b9562f;
  --ochre: #b98a2e;
  --rule: #cfc2a2;
  --rule-faint: #dfd5ba;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 41rem;
  --sheet: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --stride: clamp(3.5rem, 8vw, 6rem);
}

html:lang(ja) {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(43, 74, 59, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 74, 59, 0.045) 1px, transparent 1px);
  background-size: 6rem 6rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  caret-color: var(--clay);
}
main { flex: 1 0 auto; }
main:has(> .threshold) { display: grid; }

::selection { background: #e3c98f; color: var(--ink); }

html:lang(ja) body {
  line-height: 1.85;
  line-break: strict;
  font-feature-settings: "palt" 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}

html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 {
  line-height: 1.45;
  word-break: auto-phrase;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 650; color: var(--forest-deep); }

a {
  color: var(--clay);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--clay-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.jump {
  position: absolute;
  left: -200vw;
  top: 0.5rem;
  background: var(--forest-deep);
  color: var(--paper-light);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.jump:focus { left: 0.5rem; }
.jump:focus, .jump:hover { color: var(--paper-light); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 238, 222, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.masthead__row {
  max-width: var(--sheet);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--forest-deep);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark:hover { color: var(--forest-deep); }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--clay); }

.bearings {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 0.4rem 0 0;
  padding: 0;
  font-size: 0.93rem;
}
.bearings li { margin: 0; }
.bearings a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  white-space: nowrap;
}
.bearings a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 0.45em; }

/* the account link and the language switch are one family of small framed controls */
.gate, .tongues {
  flex: none;
  font-size: 0.86rem;
  line-height: 1;
  border: 1.5px solid var(--forest);
  border-radius: 3px;
}
.gate {
  position: relative;
  padding: 0.56rem 0.9rem;
  font-weight: 600;
  color: var(--forest-deep);
  background: var(--paper-light);
  text-decoration: none;
  white-space: nowrap;
}
.gate:hover, .gate[aria-current] { background: var(--forest); color: var(--paper-light); }
.gate::after, .tongues a::after {
  /* finger-sized hit area around a compact control */
  content: "";
  position: absolute;
  inset: -0.5rem -0.15rem;
}

.tongues { display: inline-flex; }
.tongues a, .tongues span {
  position: relative;
  padding: 0.56rem 0.7rem;
  text-decoration: none;
  color: var(--forest-deep);
  font-family: "Avenir Next", Avenir, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
.tongues span { background: var(--forest); color: var(--paper-light); }
.tongues a:hover { background: var(--paper-deep); }

@media (max-width: 55.99rem) {
  .bearings { display: none; }
}
@media (max-width: 30rem) {
  .wordmark { font-size: 1.16rem; gap: 0.45rem; }
  .wordmark svg { width: 1.75rem; height: 1.75rem; }
  .masthead__row { gap: 0.55rem; }
  .gate { padding-inline: 0.7rem; }
  .tongues a, .tongues span { padding-inline: 0.55rem; }
}
@media (max-width: 22.4rem) {
  .wordmark span { font-size: 1.02rem; }
  .wordmark svg { width: 1.5rem; height: 1.5rem; }
}

/* ---------- overlook (opening of the home page) ---------- */

.overlook {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.overlook__relief {
  position: absolute;
  top: -4rem;
  right: -14rem;
  width: 64rem;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.overlook__text {
  position: relative;
  max-width: var(--sheet);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.overlook__text > * { max-width: 36rem; }

.overlook h1 {
  font-size: clamp(2.3rem, 6.6vw, 4.15rem);
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
}
html:lang(ja) .overlook h1 {
  font-size: clamp(1.85rem, 5.4vw, 3.1rem);
  letter-spacing: 0.02em;
}

.overlook__lede {
  font-size: clamp(1.1rem, 2vw, 1.24rem);
  margin-bottom: 2rem;
}

.trailheads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.trailheads li { margin: 0; }

.waymark {
  display: inline-block;
  padding: 0.82rem 1.45rem;
  border: 1.5px solid var(--forest);
  border-radius: 3px;
  background: var(--forest);
  color: var(--paper-light);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.waymark:hover { background: var(--forest-deep); color: var(--paper-light); }
.waymark:active { transform: translateY(1px); }
.waymark--outline {
  background: var(--paper-light);
  color: var(--forest-deep);
}
.waymark--outline:hover { background: var(--paper-deep); color: var(--forest-deep); }

.overlook__note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 55.99rem) {
  .overlook__relief {
    top: -15rem;
    right: -31rem;
    width: 46rem;
    opacity: 0.55;
  }
}
@media (max-width: 30rem) {
  .trailheads li { flex: 1 1 100%; }
  .trailheads .waymark { display: block; }
}

/* ---------- home sections ---------- */

.stage {
  max-width: var(--sheet);
  margin: 0 auto;
  padding: var(--stride) var(--gutter) 0;
}
.stage:last-child { padding-bottom: var(--stride); }
.stage > p, .stage--pair p { max-width: var(--measure); }

.stage h2, .map-edge h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  margin-bottom: 1.3rem;
}
html:lang(ja) .stage h2, html:lang(ja) .map-edge h2 { font-size: clamp(1.45rem, 3.8vw, 2rem); }

.stage h3 {
  font-size: 1.28rem;
  margin: 0 0 0.4rem;
}
html:lang(ja) .stage h3 { font-size: 1.15rem; }

.isoline {
  display: block;
  width: 100%;
  height: 3.4rem;
  margin: var(--stride) 0 0;
}
.isoline + .stage { padding-top: calc(var(--stride) * 0.7); }

/* numbered waypoints along a dashed route */

.waypoints {
  list-style: none;
  counter-reset: wp;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.waypoints > li {
  counter-increment: wp;
  position: relative;
  padding-left: 3rem;
  margin: 0;
}
.waypoints > li::before {
  content: counter(wp);
  position: absolute;
  z-index: 1;
  left: 0;
  top: -0.12rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--clay);
  color: var(--clay);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.82rem;
  text-align: center;
}
.waypoints > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.1rem;
  bottom: -1.4rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 6px, transparent 6px 11px);
}
.waypoints p { margin-bottom: 0; }

@media (min-width: 52rem) {
  .stage .waypoints { grid-template-columns: repeat(3, 1fr); gap: 2.75rem; }
  .stage .waypoints > li { padding: 3rem 0 0; }
  .stage .waypoints > li::before { top: 0; }
  .stage .waypoints > li:not(:last-child)::after {
    left: 2.4rem;
    right: -2.35rem;
    top: calc(1rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--rule) 0 6px, transparent 6px 11px);
  }
}

/* ---------- legend (the eleven tests) ---------- */

/* framed like a map legend: a neatline with a second, finer line outside it */
.legend, .waypost {
  border: 1.5px solid var(--forest);
  background: var(--paper-light);
  outline: 1px solid var(--rule);
  outline-offset: 5px;
}

.legend { margin: 2rem 5px 5px; }
.legend__title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.4rem;
  border-bottom: 1.5px solid var(--forest);
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-deep);
  margin: 0;
  max-width: none;
}
html:lang(ja) .legend__title { letter-spacing: 0.12em; font-size: 0.82rem; }
.legend__keys {
  list-style: none;
  margin: 0;
  padding: 0.3rem 1.4rem;
  display: grid;
}
.legend__keys li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 0.95rem 0;
  margin: 0;
  border-top: 1px dotted var(--rule);
}
.legend__keys li:first-child { border-top: 0; }
.legend__keys svg {
  width: 2.6rem;
  height: 2.6rem;
}
.legend__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.3;
}
.legend__gloss {
  display: block;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  margin-top: 0.15rem;
}
html:lang(ja) .legend__gloss { line-height: 1.7; }
.stage .legend__caveat {
  margin: 0;
  max-width: none;
  padding: 0.85rem 1.4rem 0.95rem;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

@media (min-width: 44rem) {
  .legend__keys {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: 3.5rem;
  }
  .legend__keys li:nth-child(6n + 1) { border-top: 0; }
}

/* ---------- map edge (not a diagnosis) ---------- */

.map-edge {
  margin-top: var(--stride);
  background: var(--forest-deep);
  color: #ece5d2;
  background-image:
    linear-gradient(to right, rgba(244, 238, 222, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 238, 222, 0.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
}
.map-edge ::selection { background: #f0c3a6; color: var(--forest-deep); }
.map-edge__inner {
  max-width: var(--sheet);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}
.map-edge__inner > * { max-width: var(--measure); }
@media (min-width: 52rem) {
  .map-edge__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4.5rem; }
  .map-edge__inner > * { max-width: none; }
  .map-edge h2 { grid-column: 1 / -1; }
  .map-edge p { margin-bottom: 0; }
}
.map-edge h2 { color: #faf6ea; }
.map-edge strong { color: #faf6ea; }
.map-edge a { color: #f0c3a6; }
.map-edge a:hover { color: #faf6ea; }
.map-edge p:last-child { margin-bottom: 0; }

/* ---------- routes (plans) ---------- */

.routes {
  margin: 1.9rem 0 1.8rem;
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--rule);
  display: grid;
}
.route { padding: 1.5rem 0 1.6rem; }
.route + .route { border-top: 1px solid var(--rule); }
.route h3 { font-size: 1.42rem; margin: 0 0 0.3rem; }
html:lang(ja) .route h3 { font-size: 1.24rem; }
.route__kind {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 0.8rem;
}
html:lang(ja) .route__kind { letter-spacing: 0.06em; font-size: 0.82rem; }
.route p:last-child { margin-bottom: 0; }
.routes__terms { font-size: 0.97rem; }

@media (min-width: 52rem) {
  .routes { grid-template-columns: repeat(3, 1fr); }
  .route { padding: 1.6rem 2rem 1.8rem 0; }
  .route + .route { border-top: 0; border-left: 1px solid var(--rule); padding-left: 2rem; }
  .route:last-child { padding-right: 0; }
}

/* ---------- closing pair: cancelling and contact ---------- */

.stage--pair { display: grid; gap: var(--stride) 4.5rem; }
@media (min-width: 52rem) {
  .stage--pair { grid-template-columns: 1fr 1fr; }
}
.stage__more { font-weight: 600; margin-bottom: 0; }
.post__address {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.6vw, 1.7rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stage p:has(> .post__address) { margin-bottom: 0.4rem; }

/* ---------- folio (legal documents and plain pages) ---------- */

.folio {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) clamp(4rem, 10vw, 6.5rem);
}
.folio__head {
  border-bottom: 2px solid var(--forest);
  padding-bottom: 1.5rem;
  margin-bottom: 2.1rem;
}
.folio__head h1 {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  margin-bottom: 0.8rem;
}
html:lang(ja) .folio__head h1 { font-size: clamp(1.6rem, 4.8vw, 2.3rem); }
.folio__stamp {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.folio__lead { font-size: 1.1rem; margin: 0; }
.folio__preface { font-size: 1.1rem; }
.folio h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.68rem);
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--rule);
}
html:lang(ja) .folio h2 { font-size: clamp(1.2rem, 3.2vw, 1.4rem); }
.folio h3 {
  font-size: 1.14rem;
  margin: 1.8rem 0 0.6rem;
}
.folio .trailheads { margin-bottom: 0; }
.folio .waypoints { margin: 1.3rem 0 0; gap: 1.1rem; }
.folio .waypoints > li { padding-top: 0.12rem; min-height: 2rem; }
.folio .waypoints > li:not(:last-child)::after { bottom: -1rem; }
.folio .loud {
  border: 1.5px solid var(--forest);
  background: var(--paper-light);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1em;
  font-weight: 600;
  color: var(--forest-deep);
}
.folio .loud p:last-child { margin-bottom: 0; }

.ledger {
  margin: 0 0 1.6rem;
  border-top: 2px solid var(--forest);
}
.ledger > div {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 0.3rem 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.ledger dt {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-deep);
}
.ledger dd { margin: 0; overflow-wrap: anywhere; }
.ledger dd p:last-child { margin-bottom: 0; }
@media (max-width: 43.99rem) {
  .ledger > div { grid-template-columns: 1fr; }
}

.folio__next {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--forest);
  font-size: 0.97rem;
}

/* lost page */
.adrift > svg { width: 6rem; height: 6rem; margin-bottom: 1.4rem; }
.adrift section + section { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px dashed var(--rule); }
.adrift h2 { border: 0; padding: 0; margin: 0 0 0.8rem; }
.adrift__ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.5rem;
}
.adrift__ways li { margin: 0; }
.adrift__ways a { display: inline-block; padding: 0.45rem 0; }

/* ---------- account entry ---------- */

.threshold {
  position: relative;
  overflow: hidden;
}
.threshold .overlook__relief {
  top: -7rem;
  right: -19rem;
  opacity: 0.8;
}
@media (max-width: 61.99rem) {
  .threshold .overlook__relief { display: none; }
}
.threshold__col {
  position: relative;
  max-width: var(--sheet);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(3.5rem, 9vw, 6rem);
}
.threshold__col > * { max-width: 27rem; }
.threshold h1 {
  font-size: clamp(2rem, 5.6vw, 2.9rem);
  margin-bottom: 0.9rem;
}
html:lang(ja) .threshold h1 { font-size: clamp(1.6rem, 4.8vw, 2.2rem); }
.threshold__lead { margin: 0; }
.threshold__aside {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}

.waypost {
  margin: 2rem 5px calc(1.5rem + 5px);
  padding: 1.6rem 1.5rem 1.6rem;
}
.threshold__col > .waypost { max-width: calc(27rem - 10px); }
.waypost fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.waypost label {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--forest-deep);
}
.waypost__hint {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0.25rem 0 0.85rem;
}
html:lang(ja) .waypost__hint { line-height: 1.7; }
.waypost input {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--forest);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
}
.waypost input::placeholder { color: #6f766a; opacity: 1; }
.waypost input:focus-visible { outline-offset: 2px; }
.waypost input[aria-invalid="true"] {
  border-color: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay);
  background: #fdf4ec;
}
.waypost__problem {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--clay);
  margin: 0.55rem 0 0;
}
.waypost__problem::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 19 18H1z' fill='none' stroke='%239b4526' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M10 8v4.5' stroke='%239b4526' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='15' r='1.1' fill='%239b4526'/%3E%3C/svg%3E") center / contain no-repeat;
}
.waypost__problem:empty { display: none; }
.waypost button.waymark {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 1.1rem;
  font-family: inherit;
  cursor: pointer;
}
.waypost fieldset:disabled input { background: var(--paper-deep); border-color: var(--rule); }
.waypost fieldset:disabled .waymark { background: var(--ink-soft); border-color: var(--ink-soft); cursor: not-allowed; }

.waypost__reply { overflow-wrap: anywhere; }
.waypost__reply:focus { outline: none; }
.waypost__sent-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--forest-deep);
  margin: 0 0 0.7rem;
}
html:lang(ja) .waypost__sent-title { font-size: 1.22rem; }
.waypost__sent-title::before {
  /* the destination mark from the relief drawing */
  content: "";
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23b9562f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3Cpath d='M20 3v34M3 20h34'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.waypost__sent { font-size: 1rem; margin: 0 0 0.6rem; }
.waypost__again {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clay);
  background: none;
  border: 0;
  padding: 0.6rem 0;
  margin-bottom: -0.6rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.waypost__again:hover { color: var(--forest-deep); }
.waypost__nojs {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--clay);
  margin: 1rem 0 0;
}
.waypost__help {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- colophon ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  font-size: 0.93rem;
  color: var(--ink);
}
.colophon__inner {
  max-width: var(--sheet);
  margin: 0 auto;
  padding: 2.8rem var(--gutter) 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4.5rem;
}
.colophon__entity p { margin-bottom: 0.7em; max-width: 31rem; }
.colophon__entity p:last-child { margin-bottom: 0; }
.colophon__docs {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.colophon__docs li { margin: 0; break-inside: avoid; }
.colophon__docs a { display: inline-block; padding: 0.28rem 0; }
.colophon a { color: var(--forest-deep); }
.colophon a:hover { color: var(--clay); }
.colophon__fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  margin: 0;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
}
.colophon__fine span { display: block; }
@media (max-width: 51.99rem) {
  .colophon__inner { grid-template-columns: 1fr; }
  .colophon__docs a { padding: 0.6rem 0; }
}
@media (max-width: 30rem) {
  .colophon__docs { columns: 1; }
}

@media print {
  .masthead { position: static; border: 0; }
  .bearings, .gate, .tongues, .jump, .overlook__relief, .isoline { display: none; }
  body { background: #fff; font-size: 11pt; }
  .map-edge { background: none; color: var(--ink); border-block: 1px solid var(--ink); }
  .map-edge h2, .map-edge strong { color: var(--ink); }
  .folio h2 { break-after: avoid; }
  a { color: inherit; }
}
