/* Construction guide in the Horizon project presentation style. */
.guide {
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.guide h1, .guide h2, .guide h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
}
.guidehead {
  padding-block: clamp(2.1rem, 4.5vw, 4.5rem) clamp(1.75rem, 3vw, 3rem);
}
.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.guide-meta p {
  margin: 0;
  font-size: .8125rem;
  color: var(--muted);
}
.guide-meta p:first-child {
  position: relative;
  padding-left: 2.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .115em;
  text-transform: uppercase;
}
.guide-meta p:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.85rem;
  height: 2px;
  background: var(--gold);
}
.guide h1 {
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  letter-spacing: -.04em;
}
.guidehead > p {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.guidehead .meta {
  font-size: .875rem;
  margin-top: .4rem;
}
.stagenav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}
.stagenav a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .65rem;
  padding: 1.1rem clamp(.65rem, 1.1vw, 1.3rem);
  color: var(--ink);
  font: 600 .875rem/1.45 var(--sans);
  text-decoration: none;
}
.stagenav a + a { border-left: 1px solid var(--line); }
.stagenav a span { color: var(--muted); font-weight: 400; }
.stagenav a:hover { background: var(--cream); }
.stagenav a[aria-current=step] { color: var(--paper); background: var(--ink); }
.stagenav a[aria-current=step] span { color: #ead4b2; }
.stagenav a:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.stagenav a[aria-current=step]:focus-visible { outline-color: #ead4b2; }
.stagehead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: end;
  column-gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.1rem, 4vw, 4rem) 1.65rem;
}
.stagehead .section-label {
  grid-column: 1 / -1;
  color: #825d2d;
  margin: 0 0 .75rem;
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .13em;
  font-weight: 600;
  text-transform: uppercase;
}
.stagehead h2 {
  font-size: clamp(2.45rem, 3.8vw, 3.8rem);
  letter-spacing: -.035em;
}
.stagehead > p:last-child { margin: 0; color: var(--muted); line-height: 1.75; }
.aerial-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.site-switch { display: inline-flex; }
.site-switch button {
  min-height: 44px;
  padding: .625rem 1.1rem;
  border: 1px solid #c8c0b3;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 600 .875rem/1.5 var(--sans);
  cursor: pointer;
}
.site-switch button + button { margin-left: -1px; }
.site-switch button:hover { background: var(--cream); }
.site-switch button[aria-pressed=true] { background: var(--ink); color: white; border-color: var(--ink); }
.site-switch button:focus-visible { position: relative; z-index: 1; }
.map-enlarge, .drawing figcaption a, .pager > a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font: 600 .875rem/1.6 var(--sans);
}
.map-enlarge:hover, .drawing figcaption a:hover, .pager > a:not(.button):hover { color: #825d2d; }
.map-enlarge { display: inline-flex; align-items: center; min-height: 44px; }
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(16rem, 1fr);
  gap: clamp(1.35rem, 3vw, 3rem);
  align-items: start;
}
.site-aerial, .drawing { margin: 0; min-width: 0; }
.site-aerial > a, .drawing > a { display: block; cursor: zoom-in; }
.site-aerial img { display: block; width: 100%; height: auto; }
.site-aerial figcaption { border-bottom: 1px solid var(--line); padding: .9rem 0 1rem; }
.site-aerial figcaption strong, .drawing strong {
  display: block;
  color: var(--ink);
  font: 600 .9375rem/1.55 var(--sans);
}
.site-aerial figcaption > span, .drawing figcaption > span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.65;
}
.map-side { min-width: 0; }
.aerial-reading p { margin: 0; color: var(--muted); line-height: 1.65; }
.map-key h3, .aerial-reading h3 { font-size: 2.1rem; letter-spacing: -.025em; margin: 0 0 .75rem; }
.map-key ol { list-style: none; margin: 0; padding: 0; }
.map-key li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
.key-letter {
  display: inline-grid;
  place-items: center;
  min-height: 1.7rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 .875rem/1 var(--sans);
}
.map-key strong { display: block; color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.feature-swatch {
  display: inline-block;
  width: .85em;
  height: .48em;
  margin-right: .4em;
  border: 1px solid #302d2770;
  vertical-align: .12em;
}
.map-key li p, .map-note { font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.map-key li p { margin: .18rem 0 0; }
.map-note { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .875rem; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.drawing { border: 1px solid var(--line); background: white; }
.drawing img {
  display: block;
  width: 100%;
  height: clamp(9.25rem, 12vw, 12rem);
  padding: .55rem;
  object-fit: contain;
}
.drawing figcaption {
  display: block;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.drawing figcaption a { display: inline-block; margin-top: .35rem; }
.stepdetail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-block: 2.5rem;
}
.stepdetail > div { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stepdetail h3 { font-size: 1.9rem; letter-spacing: -.025em; margin: 0 0 .6rem; }
.stepdetail p, .confirm p { margin: 0; line-height: 1.75; color: var(--muted); }
.confirm { margin-top: 1.6rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--gold); background: var(--cream); }
.confirm strong { display: block; color: var(--ink); margin-bottom: .35rem; }
.technical {
  margin-top: 1.25rem;
  border-block: 1px solid var(--line);
}
.technical summary {
  min-height: 48px;
  padding-block: .85rem;
  cursor: pointer;
  color: var(--ink);
  font: 600 1rem/1.55 var(--sans);
}
.technical[open] { padding-bottom: 1rem; }
.technical .stepdetail { margin-top: 1rem; }
.technical .plan-cards { max-width: 58rem; }
.cite { margin: 1rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  padding-top: 1.5rem;
}
.guide [hidden] { display: none; }

@media (min-width: 1100px) {
  .stagenav { position: sticky; top: var(--mast-height, 88px); z-index: 5; }
}
@media (max-width: 1099px) {
  .stagenav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stagenav a:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stagenav a:nth-child(4) { border-left: 0; }
}
@media (max-width: 880px) {
  .map-layout { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
  .stagehead { display: block; }
  .stagehead > p:last-child { margin-top: .85rem; max-width: 45rem; }
  .stagehead h2 { max-width: 42rem; }
}
@media (max-width: 620px) {
  .guidehead { padding-top: 1.75rem; }
  .guidehead > p { margin-top: .75rem; }
  .guide-meta { gap: .75rem; align-items: start; margin-bottom: 1.15rem; }
  .guide-meta p { font-size: .75rem; }
  .guide-meta p:first-child { padding-left: 1.65rem; letter-spacing: .055em; }
  .guide-meta p:first-child::before { width: 1.1rem; }
  .guide h1 { font-size: clamp(2.65rem, 10vw, 3.65rem); }
  .stagenav a { gap: .25rem; padding: .6rem .55rem; display: flex; align-items: start; flex-direction: column; }
  .stagenav a span { line-height: 1.1; font-size: .75rem; }
  .stagehead h2 { font-size: clamp(2.25rem, 8.2vw, 3rem); }
  .aerial-controls { gap: .4rem; }
  .site-switch button { padding-inline: .7rem; }
  .stepdetail { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .drawing img { height: 11rem; }
  .stepdetail { gap: 1.5rem; margin-block: 1.8rem; }
  .confirm { margin-top: 1.6rem; padding: 1rem; }
  .pager { justify-content: space-between; }
}
@media print {
  .walk-page header { position: static; }
  .guide .stage[hidden] { display: block !important; }
  .stagenav, .pager, .mast nav, .aerial-controls { display: none; }
  .stage { break-before: page; }
  .site-aerial, .drawing, .map-key li { break-inside: avoid; }
  .guide { width: 100%; }
  .technical::details-content { content-visibility: visible; }
  .map-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .stepdetail { grid-template-columns: 1fr; }
}

.aerial-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
}
.stage-3d {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 600 .875rem/1.4 var(--sans);
  text-decoration: none;
}
.stage-3d:hover { background: var(--ink); color: var(--paper); }
