* {
  box-sizing: border-box;
}
.study-guide {max-width: 56rem; padding-bottom: 4rem;}
.study-guide article {line-height: 1.65;}
.study-guide h1 {font-size: clamp(2rem,5vw,3.5rem); line-height: 1.07;}
.study-guide h2 {margin-top: 2rem;}
.study-guide code {overflow-wrap: anywhere;}
body {
  margin: 0;
  background: #f4f3ed;
  color: #223733;
  font:
    16px "Segoe UI",
    system-ui,
    sans-serif;
}
header,
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bdc8bd;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  text-decoration: none;
  font-size: 21px;
}
.brand img {
  width: 34px;
}
.title,
#controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.title {
  margin: 36px 0 20px;
}
small,
output,
label {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0.06em;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  margin: 5px 0;
}
h1 {
  font-size: clamp(32px, 5vw, 66px);
  letter-spacing: -0.05em;
}
select,
button {
  padding: 8px;
  background: #fffefa;
  color: inherit;
  border: 1px solid #abb9ae;
  border-radius: 3px;
}
#stage {
  position: relative;
  background: #b6cdc8;
}
canvas {
  width: 100%;
  height: min(56vh, 650px);
  display: block;
  touch-action: none;
}
output {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #19322bea;
  color: white;
  padding: 7px 10px;
}
#controls {
  align-items: center;
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #bdc8bd;
}
button {
  cursor: pointer;
  touch-action: none;
}
#reference {
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
#reference[hidden] {
  display: none;
}
video {
  width: 35%;
  max-width: 360px;
}
p {
  max-width: 48ch;
  line-height: 1.5;
}
.notes {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.4rem 0 3rem;
}
.notes details {
  border-top: 1px solid #bdc8bd;
  padding: 0.65rem 0;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
}
pre {
  max-height: 24rem;
  overflow: auto;
  font-size: 0.85rem;
}
.notes > div {
  min-width: 0;
}
#selection,
#buttons {
  display: flex;
  gap: 0.4rem;
  align-items: end;
  flex-wrap: wrap;
}
#selection label {
  display: grid;
  gap: 0.3rem;
}
input {
  width: 8rem;
  padding: 8px;
  border: 1px solid #abb9ae;
  border-radius: 3px;
}
[data-key] {
  text-transform: capitalize;
}
@media (max-width: 650px) {
  .notes {
    grid-template-columns: 1fr;
  }
  .title {
    margin-top: 18px;
  }
}

#edit-prototypes { display:block; width:100%; box-sizing:border-box; font:inherit; font-family:monospace; }
#exchange-status { display:block; position:static; }
#exchange-status:empty { display:none; }
#motion-inspector { border-bottom:1px solid #bdc8bd; padding:20px 0; }
#motion-inspector[hidden] { display:none; }
.inspector-header,.layers,.plot-labels {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.layers label,.station-label {display:flex;align-items:center;gap:6px;}
.layers input {width:auto; accent-color:#37685b;}
.inspector-body {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);margin-top:20px;}
.inspector-body h3 {font:600 16px Georgia,serif; margin:0 0 12px;}
.inspector-body p {margin:8px 0 16px;max-width:unset;}
#edge-state[data-blocked="true"] {color:#93452b;}
#speed-plot {width:100%;height:72px;background:#e6eae0;touch-action:auto;}
.plot-labels,#station-values,#mesh-cost,table {font:13px ui-monospace,monospace;font-variant-numeric:tabular-nums;}
.plot-labels {padding:4px 0;}
.station-label {margin:8px 0;}
.station-label input {width:auto;flex:1;accent-color:#37685b;}
#launches {width:100%;border-collapse:collapse;text-align:left;}
#launches th,#launches td {padding:6px 8px 6px 0;border-bottom:1px solid #d0d6c8;}
#launches [data-pass="false"] {color:#93452b;}
#fly-skimmer {display:inline-block;padding:8px;}
.report-file {display:block;margin-top:12px;}
.report-file input {display:block;width:100%;max-width:32rem;}
:focus-visible {outline:2px solid #37685b;outline-offset:3px;}
@media(max-width:700px) {.inspector-body {grid-template-columns:1fr;}.layers {justify-content:flex-start;}}
