:root {
  color-scheme: light;
  --ink: #17293a;
  --muted: #4a6072;
  --line: #dce5ed;
  --accent: #155d83;
  --wash: #edf5f9;
  font: 100%/1.65 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbfcfe; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #0c405d; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.masthead { background: #14293b; color: white; }
.masthead nav { max-width: 90rem; margin: auto; padding: .9rem clamp(1rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.5rem; }
.masthead a { color: white; }
.brand { font-weight: 750; margin-right: auto; text-decoration: none; }
.shell { max-width: 90rem; margin: auto; padding: clamp(1rem, 4vw, 3.5rem); display: grid; grid-template-columns: 13rem minmax(0, 48rem); gap: clamp(1.5rem, 5vw, 5rem); justify-content: center; }
.contents { align-self: start; position: sticky; top: 1.5rem; }
.contents details { border: 1px solid var(--line); background: white; border-radius: .5rem; padding: .85rem 1rem; }
summary { cursor: pointer; font-weight: 700; }
.contents ul { list-style: none; padding: 0; margin: .65rem 0 0; }
.contents ul ul { border-left: 1px solid var(--line); margin: .15rem 0 .55rem .25rem; padding-left: .7rem; }
.contents a { display: block; padding: .17rem 0; font-size: .875rem; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
main { min-width: 0; }
.breadcrumbs, figcaption { color: var(--muted); font-size: .875rem; }
.intro { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.055em; margin: .5rem 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.035em; margin-top: 2.6rem; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
h3 { font-size: 1.22rem; margin-top: 1.85rem; }
h2, h3 { scroll-margin-top: 1.2rem; }
.intro p { margin: .6rem 0 0; color: var(--muted); font-size: 1.1rem; }
.system-map { background: var(--wash); border: 1px solid var(--line); padding: 1rem; border-radius: .55rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; }
.system-map a { display: block; background: white; padding: .65rem .8rem; border: 1px solid #c4d8e4; border-radius: .35rem; font-weight: 650; }
.note { border-left: 3px solid #7facc2; padding: .65rem 1rem; background: var(--wash); }
figure { margin: 1.25rem 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; gap: 1rem; margin: 1.25rem 0; }
.annotated-photo { width: 100%; max-width: 25rem; margin: 0; scroll-margin-top: 1.2rem; }
.photo-frame { position: relative; display: block; overflow: hidden; background: #233745; border: 1px solid var(--line); border-radius: .45rem; }
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid white;
  border-radius: 50%;
  background: #123b58;
  box-shadow: 0 1px 4px #0009;
  color: white;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
figcaption { margin-top: .4rem; }
.annotated-photo figcaption strong { color: var(--ink); }
.annotated-photo ol { margin: .25rem 0 0; padding-left: 1.4rem; }
.annotated-photo li::marker { color: var(--accent); font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--wash); }
code { overflow-wrap: anywhere; font-size: .92em; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 46rem) {
  .shell { display: flex; flex-direction: column; }
  main { display: contents; }
  .intro { order: -1; }
  .contents { position: static; width: 100%; }
  h2:first-child { margin-top: 0; }
}
