/* Keep the Highline canvas and give its controls the site's editorial treatment. */
.map-toolbar {
  display:flex; flex:none; flex-wrap:wrap; align-items:center; gap:2px 12px;
  padding:0 8px; background:#fff; border-bottom:1px solid var(--line);
}
.map-toolbar nav,.map-toolbar .headcontrols,.map-toolbar .actions {
  display:flex; flex-wrap:wrap; align-items:center; gap:2px 4px;
}
.map-toolbar button { min-height:44px; min-width:44px; }
.map-toolbar nav .mode { border:0; border-radius:0; background:transparent; color:#202123; }
.map-toolbar nav .mode[aria-pressed=true] { box-shadow:inset 0 -2px #8c4024; }
.map-toolbar :focus-visible { outline:2px solid #174b77; outline-offset:2px; }
.map-embedded { display:flex; height:100dvh; overflow:hidden; }
.map-embedded .app { display:flex; flex:1; min-height:0; height:100%; }
.map-embedded .legend,.map-embedded .footbar,.map-embedded .safety-mobile { display:none; }
@media (max-width:760px), (max-height:450px) and (pointer:coarse) {
  .app > .viewport,.app > .map-area { display:block; height:clamp(340px,60svh,620px); }
  .map-embedded .app > .viewport,.map-embedded .app > .map-area { height:auto; }
  .map-toolbar { gap:2px; }
  .map-toolbar nav .mode { padding-inline:6px; }
  .safety-mobile > summary { min-height:44px; padding-block:10px; cursor:pointer; font-weight:700; }
}
.pattern-index { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:12px; }
.pattern-index a { display:flex; align-items:center; gap:8px; min-height:44px; padding:6px 8px; border:1px solid var(--line); color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.pattern-index a:hover { text-decoration:underline; }
.pattern-index span { color:#8c4024; font-size:21px; flex:none; }
.pattern-index ~ .hero-grid { margin-top:24px; }
.flow .node[open] { border-color:#8c4024; }
@media (max-width:740px) {
  .pattern-index { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .flow .node + .node::before {
    content:"↓"; display:block; position:absolute; left:18px; top:-16px; right:auto;
    color:#8c4024; font-weight:700; transform:none; background:none; width:auto;
  }
}
.flow .node[open] > p { animation:highline-stage-reveal 180ms ease-out; }
@keyframes highline-stage-reveal {
  from { opacity:0; transform:translateY(-4px); }
  to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce) {
  .flow .node[open] > p { animation:none; }
}
