#topbar .static-navigation {
  color: var(--rw-white);
  height: auto;
  min-height: var(--atlas-header-height);
  flex-wrap: wrap;
}
#topbar .static-navigation a:hover { text-decoration: underline; text-underline-offset: .2em; }

.turn-guide { max-width: 72rem; }
.turn-guide .eyebrow { margin-bottom: var(--rw-space-2); }
.turn-guide .identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--rw-space-2) var(--rw-space-3);
  margin-bottom: var(--rw-space-4);
}
.turn-guide .identity > div { min-width: 0; }
.turn-guide .identity h1 {
  font: 700 clamp(2.25rem, 5vw, 3.35rem)/1 var(--rw-font-display);
  overflow-wrap: anywhere;
}
.turn-guide #country, .turn-guide #layout {
  margin: .375rem 0 0;
  color: var(--rw-muted);
}
.turn-guide #country { font-size: .875rem; }
.turn-guide p:empty { display: none; }

.turn-guide #board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 1px solid var(--rw-rule);
  border-radius: var(--rw-radius-panel);
  overflow: hidden;
}
.turn-guide .map-panel {
  --lap-surface: var(--rw-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lap-surface);
  color: var(--rw-white);
}
.turn-guide .map-heading, .turn-guide .map-footer {
  padding: .75rem var(--rw-space-3);
  font: 400 .875rem/1.4 var(--rw-font-mono);
}
.turn-guide .map-heading { display: flex; flex-wrap: wrap; gap: .375rem var(--rw-space-3); }
.turn-guide #legend::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  margin-right: .5rem;
  border-top: 3px solid #ff5b66;
  vertical-align: middle;
}
.turn-guide #basis, .turn-guide .map-footer { color: var(--rw-muted-on-dark); }
.turn-guide #diagram { height: clamp(14rem, 33vw, 23rem); cursor: crosshair; touch-action: manipulation; }
.turn-guide .spot { fill: #ff5b66; stroke: var(--lap-surface); stroke-width: 3; }
.turn-guide .tick { fill: var(--rw-white); stroke: var(--lap-surface); stroke-width: 1.5; }
.turn-guide .map-tag {
  fill: var(--rw-white);
  font: 700 17px var(--rw-font-ui);
  stroke: var(--lap-surface);
  stroke-width: 5;
  paint-order: stroke;
  pointer-events: none;
}

.turn-guide .turn-panel, .turn-guide #picker { padding: clamp(1rem, 2.5vw, 2rem); }
.turn-guide #picker { border: 1px solid var(--rw-rule); border-radius: var(--rw-radius-panel); }
.turn-guide #picker h2, .turn-guide #learn-controls { margin-bottom: var(--rw-space-3); }
.turn-guide label, .turn-guide .kicker {
  display: block;
  margin-bottom: var(--rw-space-1);
  color: var(--rw-muted);
  font-weight: 600;
}
.turn-guide input, .turn-guide select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--rw-control-boundary);
  background: var(--rw-white);
}
.turn-guide #story p { margin: var(--rw-space-2) 0 0; }
.turn-guide #story:focus { outline-offset: 0; }
.turn-guide #actions, .turn-guide #links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rw-space-2) var(--rw-space-3);
  margin-top: var(--rw-space-3);
}
.turn-guide #actions button { flex: 1 1 auto; }
.turn-guide #actions.answers { flex-direction: column; }
.turn-guide #actions.answers button, .turn-guide #matches button {
  justify-content: flex-start;
  text-align: left;
}
.turn-guide #actions:empty, .turn-guide #links:empty, .turn-guide #sharing:empty { display: none; }
.turn-guide #matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--rw-space-2);
  margin-top: var(--rw-space-3);
  max-height: 16rem;
  overflow: auto;
  padding: .25rem;
}

.turn-guide a, .turn-guide summary {
  text-decoration: underline;
  text-decoration-color: var(--rw-control-boundary);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.turn-guide :is(a, summary, .quiet):hover { color: var(--rw-red); }
.turn-guide .practice { margin-top: var(--rw-space-3); border-top: 1px solid var(--rw-rule); }
.turn-guide .quiet { padding-inline: 0; font-weight: 600; }
.turn-guide #refs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 var(--rw-space-3);
  margin-top: var(--rw-space-3);
  border-top: 1px solid var(--rw-rule);
}
.turn-guide summary { width: fit-content; min-height: var(--rw-target-min); padding: .625rem 0; cursor: pointer; }
.turn-guide #credits p { max-width: 72ch; margin-bottom: var(--rw-space-2); }
.turn-guide #credits a + a { margin-inline-start: var(--rw-space-2); }
.turn-guide #match-status, .turn-guide #status { margin: var(--rw-space-2) 0 0; color: var(--rw-muted); }
.turn-guide #sharing { margin-top: var(--rw-space-2); }

@media (max-width: 760px) {
  .turn-guide #board { grid-template-columns: minmax(0, 1fr); }
  .turn-guide .map-heading, .turn-guide .map-footer { padding: .5rem var(--rw-space-3); }
}
