.phase-nav {
  align-items: center;
}
.technical-note-toggle {
  min-height: 44px;
  padding: 0 8px 0 12px;
  border-inline-start: 1px solid #f6f3ec40;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffcc80;
  white-space: nowrap;
  cursor: pointer;
  font: 700 12px/1.3 ui-monospace, monospace;
}
.technical-note-toggle > span:first-child { font-size: 17px; }
.technical-note-toggle:hover,
.technical-note-toggle[aria-expanded="true"] { color: #fff0d8; }

.technical-note-body {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 90px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid #a97d42;
  border-radius: 10px;
  background: #1c160e;
  color: #ffcc80;
  box-shadow: 0 8px 24px #0005;
}
.technical-note-body[hidden] { display: none; }
.technical-note-body h3 { font: 700 14px/1.3 ui-monospace, monospace; }
.technical-note-body button {
  cursor: pointer;
  min-height: 44px;
  padding-inline: 6px;
  font: 700 12px/1.3 ui-monospace, monospace;
}
.technical-note-body p {
  grid-column: 1 / -1;
  margin: 0;
  color: #f7e7d2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.technical-note-toggle:focus-visible,
.technical-note-body button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
  box-shadow: none;
}
@media (width <= 760px) {
  .technical-note-toggle {
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }
  .technical-note-toggle > span:last-child { display: none; }
  .technical-note-body {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
