/* /nasdara/bunkers (views/nasdara-bunkers.ejs). Theme tokens only: the page
   follows whichever of the twelve palettes the reader picked. */

.nb .nb-card { margin-bottom: 1rem; min-width: 0; }
.nb .nb-card h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.nb .nb-card p { overflow-wrap: anywhere; }
.nb [hidden] { display: none !important; }

.nb .nb-form { display: flex; flex-direction: column; gap: 0.5rem; }
.nb .nb-code { width: 100%; min-height: 4.5rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nb .nb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; overflow-wrap: normal; }

.nb .nb-result { margin-top: 1rem; }
.nb .nb-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}
.nb .nb-facts > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius, 10px);
  background: var(--sk-surface-2);
}
.nb .nb-facts dt { color: var(--sk-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nb .nb-facts dd { margin: 0.25rem 0 0; font-weight: 600; }
.nb .nb-pin { font-size: 1.6rem; letter-spacing: 0.12em; color: var(--sk-text); }

.nb .nb-range { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; color: var(--sk-muted); }
.nb .nb-range input { flex: 1 1 auto; max-width: 16rem; min-height: 44px; }
.nb .nb-file { position: relative; overflow: hidden; }
.nb .nb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nb .nb-status { color: var(--sk-muted); margin: 0.25rem 0; }
.nb .nb-symbols { min-height: 1.5em; margin: 0.25rem 0 0.75rem; color: var(--sk-text); }

.nb .nb-heard { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nb .nb-heard-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius, 10px);
  background: var(--sk-surface-2);
  min-width: 0;
}
.nb .nb-heard-what { flex: 1 1 10rem; min-width: 0; }
.nb .nb-heard-pin strong { font-size: 1.2rem; letter-spacing: 0.1em; }
.nb .nb-heard-count { color: var(--sk-muted); }

.nb .nb-morse {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
}
.nb .nb-morse li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--sk-border);
  border-radius: var(--sk-radius, 10px);
}
.nb .nb-morse-digit { font-weight: 700; font-size: 1.1rem; min-width: 1ch; }

.nb .nb-table-wrap { overflow-x: auto; min-width: 0; position: relative; } /* anchors .nb-sr: an absolute label with no positioned ancestor escapes the scroll box and widens the page */
.nb .nb-table { width: 100%; border-collapse: collapse; }
.nb .nb-table th, .nb .nb-table td { padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid var(--sk-border); white-space: nowrap; }
.nb .nb-table th { color: var(--sk-muted); font-weight: 600; font-size: 0.85rem; }
.nb .nb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prose links take the readable accent, not the fill Skynet UI paints <a> with. */
.nb .pgv2-foot a:not(.sk-btn), .nb .nb-card p a:not(.sk-btn) { color: var(--sk-primary-text); }

/* The map. Its colours sit on the map picture, not the page, so they are
   fixed rather than palette tokens, and every label carries its own fill. */
.nb .nb-map { width: 100%; aspect-ratio: 1 / 1; max-height: min(80vh, 820px); min-height: 280px; border-radius: var(--sk-radius, 10px); overflow: hidden; background: #2a2620; margin-top: 0.5rem; }
.nb .nb-map img, .nb .nb-map canvas { max-width: none !important; }
.nb .nb-map-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-end; margin: 0.75rem 0 0.25rem; }
.nb .nb-grid-find { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.nb .nb-grid-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nb .nb-grid-row .sk-input { width: 9rem; min-height: 44px; }
.nb .nb-toggles { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nb .nb-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; cursor: pointer; }
.nb .nb-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--sk-primary); }
.nb .nb-icon { background: none; border: 0; }
.nb .nb-grid-label {
  display: inline-block;
  margin: 2px 0 0 2px;
  padding: 0 3px;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
}
.nb .nb-town {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 0 4px;
  font: 600 11px/1.4 Inter, system-ui, sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.nb .nb-town-city { font-size: 13px; font-weight: 700; }
.nb .nb-far .nb-town:not(.nb-town-city) { display: none; }

/* On this page: the long page's jump links. */
.nb .nb-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.nb .nb-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--sk-border);
  border-radius: 999px;
  color: var(--sk-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.nb .nb-jump a:hover, .nb .nb-jump a:focus-visible { border-color: var(--sk-primary); color: var(--sk-primary-text); }

/* Hear it and practise. */
.nb .nb-morse li { justify-content: flex-start; }
.nb .nb-morse-play { margin-left: auto; min-width: 36px; }
.nb .nb-player { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.nb .nb-now { min-height: 1.5em; margin: 0; color: var(--sk-text); }
.nb .nb-sub { margin: 0.75rem 0 0.25rem; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* The guide. */
.nb .nb-steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.nb .nb-steps h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.nb .nb-steps p { margin: 0; color: var(--sk-muted); }
.nb .nb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem 1.5rem; }
.nb .nb-two > div { min-width: 0; }
.nb .nb-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; overflow-wrap: anywhere; }
.nb .nb-faq { border-top: 1px solid var(--sk-border); padding: 0.6rem 0; }
.nb .nb-faq:last-child { border-bottom: 1px solid var(--sk-border); }
.nb .nb-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.nb .nb-faq p { margin: 0.4rem 0 0; color: var(--sk-muted); }

/* Entrances and the report form. */
.nb .nb-table td.nb-where { white-space: normal; min-width: 12rem; }
.nb .nb-report-form { max-width: 36rem; }
.nb .nb-short { max-width: 10rem; }
.nb .nb-optional { color: var(--sk-muted); font-weight: 400; }

/* The signal light beside "Number 3 of 10" (nasdara-bunkers-morse.js). Off
   is a dim lamp; on is lit. Only opacity and a glow change, and the script
   never lights it under reduced motion. */
.nb .nb-now-row { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.nb .nb-now-row .nb-now { margin: 0; min-width: 0; }
.nb .nb-lamp { flex: none; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--sk-warning); opacity: 0.25; border: 1px solid var(--sk-border); }
.nb .nb-lamp.is-on { opacity: 1; box-shadow: 0 0 0.6rem 0.15rem color-mix(in srgb, var(--sk-warning) 70%, transparent); }
