/* GMRS Node Tracking — shared styles */
:root {
  --navy-900: #071a33;
  --navy-800: #0d2748;
  --steel:    #24466f;
  --signal:   #3d9be9;
  --pin:      #82c341;
  --pin-dark: #5e9a28;
  --paper:    #edf2f7;
  --ink:      #0d2748;
  --text:     #e8eff7;
  --muted:    #a3b6cb;
  --danger:   #e0564f;

  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body:    "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--signal); }
a:hover { color: #7cbcf2; }

:focus-visible {
  outline: 3px solid var(--pin);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid rgba(163, 182, 203, 0.18);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
}
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.topnav { display: flex; gap: 1.25rem; font-weight: 500; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-go {
  background: var(--pin);
  color: var(--navy-900);
}
.btn-go:hover { background: #95d257; color: var(--navy-900); }
.btn-line {
  border-color: rgba(232, 239, 247, 0.55);
  color: var(--text);
}
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(61, 155, 233, 0.20), transparent 70%),
    var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 13ch;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-logo {
  width: min(100%, 300px);
  justify-self: center;
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* The one moving thing: a position report pinging on the map */
.ping { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ping { animation: ping 2.8s ease-out infinite; }
  .ping.late { animation-delay: 1.4s; }
}
@keyframes ping {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- Light "map paper" section ---------- */
.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper a { color: #1f6fb8; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.explain {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.explain h2, .steps-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.explain p { max-width: 38rem; margin: 0 0 1.1em; }

.shows {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.shows li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.shows svg { width: 2rem; height: 2rem; }
.shows strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }

/* Sample map popup — shows what a report looks like */
.report {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #cdd8e4;
  box-shadow: 0 18px 40px -22px rgba(13, 39, 72, 0.55);
  overflow: hidden;
}
.report-map { display: block; width: 100%; height: auto; background: #dbe6f0; }
.report-body { padding: 1.1rem 1.25rem 1.3rem; }
.report-call {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.report-name { color: #4b617a; margin: 0.2rem 0 0.9rem; }
.report dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.97rem;
}
.report dt { color: #4b617a; }
.report dd { margin: 0; font-weight: 600; }
.report .live { color: var(--pin-dark); }
.report-caption { font-size: 0.9rem; color: #4b617a; margin: 0.75rem 0 0; }

/* ---------- Steps (a real sequence) ---------- */
.steps-head { max-width: 40rem; margin-bottom: 2.5rem; }
.steps-head p { color: var(--muted); margin: 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  position: relative;
}
.steps::before {
  /* the route line connecting the steps */
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  right: 12%;
  border-top: 2px dashed rgba(130, 195, 65, 0.55);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-right: 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--pin);
  color: var(--pin);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
}
.steps h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }

.cta-band {
  margin-top: 3.5rem;
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--navy-800);
  border: 1px solid rgba(163, 182, 203, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band p { margin: 0; max-width: 34rem; }
.cta-band strong { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1.2; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(163, 182, 203, 0.18);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Sign-up page ---------- */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.signup-intro h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.signup-intro p { color: var(--muted); }
.signup-intro ul { padding-left: 1.2rem; color: var(--muted); }
.signup-intro li { margin-bottom: 0.4rem; }

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field .hint { display: block; font-size: 0.9rem; color: #4b617a; margin-top: 0.3rem; }
.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b7c6d6;
  border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(61, 155, 233, 0.3); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: #b3261e; font-size: 0.92rem; margin-top: 0.3rem; font-weight: 600; }
#callsign { text-transform: uppercase; letter-spacing: 0.04em; }
.field input.math-input { width: 6rem; text-align: center; font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card .btn { width: 100%; margin-top: 0.4rem; }
.form-card .btn-go:hover { background: var(--pin-dark); color: #fff; }
.fine { font-size: 0.9rem; color: #4b617a; margin: 1rem 0 0; }

.notice {
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.notice-bad { background: #fde8e6; color: #7d1c15; border: 1px solid #f3b8b2; }
.notice-good { background: #e7f5da; color: #2d5310; border: 1px solid #b9dd96; }
.notice h2 { font-size: 1.6rem; margin-bottom: 0.3em; color: inherit; }
.notice p { margin: 0 0 0.5em; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .explain, .signup { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 180px; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .topnav { gap: 0.9rem; font-size: 0.95rem; }
  .brand span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Setup guide ---------- */
.guide-hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) 2.5rem; }
.guide-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); max-width: 16ch; }
.guide-hero p { color: var(--muted); max-width: 40rem; font-size: 1.15rem; margin: 0; }

.guide {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: 1.5rem;
  font-size: 0.97rem;
}
.toc p { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: #24466f; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.guide-body { max-width: 46rem; }
.guide-body section { scroll-margin-top: 1.5rem; }
.guide-body section + section { margin-top: 3.5rem; }
.guide-body h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.guide-body h3 { font-size: 1.45rem; margin-top: 1.8rem; }
.guide-body p, .guide-body li { max-width: 40rem; }

.gear {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid #cdd8e4;
}
.gear li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #cdd8e4;
  max-width: none;
}
.gear strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.gear p { margin: 0; }
.gear .eg { display: block; color: #4b617a; font-size: 0.95rem; margin-top: 0.25rem; }

.howto { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.howto > li {
  counter-increment: s;
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 2.5rem;
  max-width: none;
}
.howto > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--pin);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}
.howto h3 { margin-top: 0; }

.code {
  position: relative;
  margin: 0.9rem 0 1.1rem;
  background: var(--navy-900);
  color: #dbe7f3;
  border-radius: 10px;
  overflow-x: auto;
}
.code pre {
  margin: 0;
  padding: 1rem 4.5rem 1rem 1.1rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre;
}
.code .copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(219, 231, 243, 0.35);
  background: transparent;
  color: #dbe7f3;
  font: 500 0.85rem var(--body);
  cursor: pointer;
}
.code .copy:hover { border-color: #dbe7f3; }
code.inline {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
  background: #dbe4ee;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.callout {
  border-left: 4px solid var(--signal);
  background: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1rem 0;
}
.callout p { margin: 0; }

.trouble dt { font-weight: 600; margin-top: 1.1rem; }
.trouble dd { margin: 0.25rem 0 0; color: #33475e; max-width: 40rem; }

@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  .gear li { grid-template-columns: 1fr; }
  .howto > li { padding-left: 0; padding-top: 3rem; }
}

/* ---------- Setup guide: dark theme (v1.5) ---------- */
.guide-section {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(163, 182, 203, 0.18);
}
.guide-section .toc { padding-top: 2.5rem; }
.guide-section .guide-body { padding-top: 2.5rem; }
.guide-section .toc a { color: var(--muted); }
.guide-section .toc a:hover { color: var(--text); }
.guide-section .guide-body h2 { color: var(--text); }
.guide-section .guide-body h3 { color: var(--text); }
.guide-section .guide-body p,
.guide-section .guide-body li { color: #ccd8e5; }
.guide-section a { color: #7cbcf2; }
.guide-section a:hover { color: #a9d3f7; }

.guide-section .gear { border-top-color: rgba(163, 182, 203, 0.22); }
.guide-section .gear li { border-bottom-color: rgba(163, 182, 203, 0.22); }
.guide-section .gear strong { color: var(--pin); }
.guide-section .gear .eg { color: var(--muted); }

.guide-section .howto > li::before {
  background: transparent;
  border: 2px solid var(--pin);
}

.guide-section .code {
  background: #04101f;
  border: 1px solid rgba(163, 182, 203, 0.2);
}
.guide-section code.inline {
  background: var(--navy-800);
  color: #e8eff7;
  border: 1px solid rgba(163, 182, 203, 0.2);
}

.guide-section .callout {
  background: var(--navy-800);
  border-left-color: var(--pin);
}

.guide-section .trouble dt { color: var(--text); }
.guide-section .trouble dd { color: #b7c7d8; }

/* ---------- Setup guide: settings + map pins (v1.6) ---------- */
.guide-body h3.sub { font-size: 1.3rem; margin-top: 2rem; color: var(--pin); }
.settings {
  margin: 0.75rem 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  border-top: 1px solid rgba(163, 182, 203, 0.22);
}
.settings dt, .settings dd {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(163, 182, 203, 0.22);
}
.settings dt code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}
.settings dd { color: #ccd8e5; padding-left: 1rem; }

.pins {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.6rem;
}
.guide-body .pins li { max-width: none; }
.pin {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.4rem 0.7rem;
  background: var(--navy-800);
  border: 1px solid rgba(163, 182, 203, 0.2);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.pin:hover { border-color: rgba(163, 182, 203, 0.55); }
.pin.done { border-color: var(--pin); box-shadow: 0 0 0 1px var(--pin) inset; }
.pin img { width: 48px; height: 48px; object-fit: contain; }
.pin-slot {
  /* pin image not uploaded yet: empty slot instead of a broken image */
  width: 48px;
  height: 48px;
  border: 1.5px dashed rgba(163, 182, 203, 0.4);
  border-radius: 10px;
}
.pin code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  color: #dbe7f3;
  word-break: break-word;
  text-align: center;
}
.copied-msg { min-height: 1.5em; color: var(--pin); font-weight: 600; }

@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .settings dt { border-bottom: 0; padding-bottom: 0; }
  .settings dd { padding-left: 0; padding-top: 0.3rem; }
}

/* ---------- Setup guide: GitHub README (v1.9) ---------- */
.gh-link { margin: 0 0 1rem; font-weight: 600; }
.readme-box {
  border: 2px solid var(--pin);
  border-radius: 14px;
  background: #04101f;
  padding: clamp(1.1rem, 3vw, 2rem);
  overflow-x: auto;
}
.readme-box .markdown-body {
  background: transparent;
  color: #ccd8e5;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}
.guide-body .readme-box .markdown-body p,
.guide-body .readme-box .markdown-body li { max-width: none; }
.readme-box .markdown-body h1,
.readme-box .markdown-body h2,
.readme-box .markdown-body h3 {
  font-family: var(--display);
  color: var(--pin);
  border-bottom-color: rgba(130, 195, 65, 0.35);
}
.readme-box .markdown-body h1 { font-size: 2rem; }
.readme-box .markdown-body h2 { font-size: 1.6rem; }
.readme-box .markdown-body h3 { font-size: 1.3rem; }
.readme-box .markdown-body a { color: #7cbcf2; }
.readme-box .markdown-body code {
  background: var(--navy-800);
  color: #e8eff7;
}
.readme-box .markdown-body .code { margin: 0.9rem 0 1.1rem; }
.readme-box .markdown-body .code pre {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 1rem 4.5rem 1rem 1.1rem;
}
.readme-box .markdown-body .code pre code { background: transparent; padding: 0; }
.readme-box .markdown-body table tr { background: transparent; }
.readme-box .markdown-body table tr:nth-child(2n) { background: rgba(163, 182, 203, 0.06); }
.readme-status { color: var(--muted); font-style: italic; margin: 0; }
.readme-error { color: #f3a39e; font-style: normal; }

/* ---------- Setup guide: README only (v2.0) ---------- */
.readme-only { max-width: 58rem; padding-top: 2.5rem; }
.readme-box .markdown-body img { background: transparent; display: inline-block; }
.readme-box .markdown-body > p > img:first-child { max-width: min(100%, 360px); }
.readme-box .markdown-body blockquote.gh-alert {
  border-left: 4px solid var(--signal);
  background: var(--navy-800);
  color: #ccd8e5;
  padding: 0.8rem 1.1rem;
  border-radius: 0 10px 10px 0;
}
.readme-box .markdown-body blockquote.gh-alert-note { border-left-color: var(--signal); }
.readme-box .markdown-body blockquote.gh-alert-tip { border-left-color: var(--pin); }
.readme-box .markdown-body blockquote.gh-alert-warning,
.readme-box .markdown-body blockquote.gh-alert-caution,
.readme-box .markdown-body blockquote.gh-alert-important { border-left-color: #e0a23d; }
.gh-alert-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.3rem !important;
}
.readme-only { max-width: none; }
.readme-only > * { max-width: 58rem; }
.readme-box .markdown-body .code pre {
  white-space: pre-wrap;       /* long commands wrap instead of sliding under the Copy button */
  overflow-wrap: anywhere;
}
.readme-box .markdown-body blockquote.gh-alert { margin: 1rem 0; }

/* ---------- README code blocks: Copy button in its own top strip (v2.2) ---------- */
.readme-box .markdown-body .code pre {
  padding: 2.6rem 1.1rem 1rem;          /* room above the code for the button */
}
.readme-box .markdown-body .code .copy {
  top: 0.45rem;
  right: 0.5rem;
  padding: 0.2rem 0.7rem;
  background: var(--navy-800);
  border-color: rgba(163, 182, 203, 0.45);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.4;
}
.readme-box .markdown-body .code .copy:hover { border-color: var(--pin); color: var(--pin); }

/* ---------- Setup guide: wider GitHub listing (v2.3) ---------- */
.guide-section .wrap.guide { width: min(100% - 2.5rem, 84rem); gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 12rem minmax(0, 1fr); }
.guide-section .guide-body { max-width: none; }
.guide-section #hardware, .guide-section #pins { max-width: 50rem; }
@media (max-width: 860px) {
  .guide-section .wrap.guide { grid-template-columns: 1fr; }
}

/* ---------- Setup guide title on one line (v2.5) ---------- */
.guide-hero h1 { max-width: none; }

/* ---------- Sign-up form: dark card (v2.6) ---------- */
.form-card {
  background: var(--navy-800);
  color: var(--text);
  border: 1px solid rgba(163, 182, 203, 0.22);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.form-card .field label { color: var(--text); }
.form-card .field .hint { color: var(--muted); }
.form-card .field input {
  background: #04101f;
  color: var(--text);
  border-color: rgba(163, 182, 203, 0.35);
}
.form-card .field input::placeholder { color: #6f849b; }
.form-card .field input:focus {
  border-color: var(--pin);
  box-shadow: 0 0 0 3px rgba(130, 195, 65, 0.25);
}
.form-card .field input[aria-invalid="true"] { border-color: #f0766f; }
.form-card .field .err { color: #f3a39e; }
.form-card .fine { color: var(--muted); }
.form-card .btn-go:hover { background: #95d257; color: var(--navy-900); }

.form-card .notice-bad { background: rgba(224, 86, 79, 0.14); color: #f7c3bf; border-color: rgba(224, 86, 79, 0.5); }
.form-card .notice-good { background: rgba(130, 195, 65, 0.14); color: #d3ecb8; border-color: rgba(130, 195, 65, 0.5); }
.form-card .notice h2 { color: var(--pin); }

/* Browser autofill keeps the dark field instead of turning yellow/white */
.form-card .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #04101f inset;
  caret-color: var(--text);
}

/* ---------- Sign-up form: stands out more, lighter fields (v2.7) ---------- */
.form-card {
  background: linear-gradient(180deg, #13335b 0%, #0e2848 100%);
  border: 2px solid var(--pin);
  box-shadow:
    0 0 0 6px rgba(130, 195, 65, 0.10),
    0 30px 60px -25px rgba(0, 0, 0, 0.85);
}
.form-card .field input {
  background: #24466f;
  color: #ffffff;
  border-color: rgba(203, 218, 234, 0.45);
}
.form-card .field input::placeholder { color: #a9bbcf; }
.form-card .field input:focus {
  background: #2a5080;
  border-color: var(--pin);
  box-shadow: 0 0 0 3px rgba(130, 195, 65, 0.3);
}
.form-card .field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #24466f inset;
}
.form-card .field .hint, .form-card .fine { color: #b4c5d8; }

/* ---------- Sign-up: City + State side by side (v2.8) ---------- */
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 1rem;
}
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 2.4rem 0.65rem 0.85rem;
  font: inherit;
  border-radius: 10px;
  border: 1.5px solid #b7c6d6;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
}
.form-card .field select {
  background-color: #24466f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d6e2ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: #ffffff;
  border-color: rgba(203, 218, 234, 0.45);
}
.form-card .field select:focus {
  outline: none;
  background-color: #2a5080;
  border-color: var(--pin);
  box-shadow: 0 0 0 3px rgba(130, 195, 65, 0.3);
}
.form-card .field select[aria-invalid="true"] { border-color: #f0766f; }
.form-card .field select option { background: #0e2848; color: #ffffff; }
.form-card .field select:invalid { color: #a9bbcf; }   /* "Choose…" looks like a placeholder */
.form-card .field select option:not([value=""]) { color: #ffffff; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Sign-up: short state codes (v2.9) ---------- */
.field-row { grid-template-columns: minmax(0, 1fr) 7.5rem; }
@media (max-width: 520px) {
  .field-row { grid-template-columns: minmax(0, 1fr) 6.5rem; }   /* stays side by side on phones */
}

/* ---------- Footer centered (v3.2) ---------- */
.footer .wrap { justify-content: center; text-align: center; }

/* ---------- Landing: "What is node tracking" on dark (v3.3) ---------- */
.what-dark { border-top: 1px solid rgba(163, 182, 203, 0.18); border-bottom: 1px solid rgba(163, 182, 203, 0.18); background: #06172e; }
.what-dark .explain p { color: #ccd8e5; }
.what-dark .shows strong { color: var(--text); }
.what-dark .shows div { color: #b7c7d8; }
.what-dark .shows svg { stroke: var(--pin); }
.what-dark .shows svg circle[fill="#edf2f7"] { fill: #06172e; }

/* ---------- Node card preview (matches the map card) ---------- */
.ncard-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ncard {
  --cy: #35c9e8;
  width: 100%;
  max-width: 290px;
  background:
    linear-gradient(rgba(53, 201, 232, 0.04) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(53, 201, 232, 0.04) 1px, transparent 1px) 0 0 / 14px 14px,
    #0b1a26;
  border: 1px solid rgba(53, 201, 232, 0.55);
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(53, 201, 232, 0.25), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  color: #dfe9f0;
  font-family: var(--body);
  overflow: hidden;
}
.ncard p { margin: 0; }
.ncard-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: start;
  padding: 0.9rem 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(53, 201, 232, 0.15);
}
.ncard-dot {
  width: 12px; height: 12px; margin-top: 0.45rem;
  border-radius: 50%;
  background: #2fd66b;
  box-shadow: 0 0 0 3px rgba(47, 214, 107, 0.25), 0 0 8px #2fd66b;
}
.ncard-call {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cy);
  line-height: 1.2;
}
.ncard-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem !important; }
.ncard-tags span {
  font-size: 0.72rem; font-weight: 600;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--cy);
  color: var(--cy);
}
.ncard-tags span.plain { border-color: rgba(223, 233, 240, 0.35); color: #dfe9f0; }
.ncard-status {
  font-size: 0.75rem; font-weight: 700;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: #2fd66b;
  color: #062312;
  margin-top: 0.2rem;
}
.ncard-motion {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
}
.ncard-compass { width: 70px; height: 70px; color: var(--cy); }
.ncard-label { font-size: 0.75rem; color: #9fb3c2; }
.ncard-mph { font-size: 0.8rem; color: #9fb3c2; font-family: ui-monospace, Consolas, monospace; }
.ncard-mph strong {
  font-size: 1.9rem; line-height: 1.1;
  color: #ff4d4d;
  text-shadow: 0 0 12px rgba(255, 77, 77, 0.5);
}
.ncard-bar { height: 5px; margin: 0.3rem 0 0.35rem; border-radius: 3px; background: rgba(223, 233, 240, 0.12); overflow: hidden; }
.ncard-bar span { display: block; height: 100%; background: #ff4d4d; border-radius: 3px; }
.ncard-heading { font-size: 0.75rem; color: #9fb3c2; }
.ncard-heading strong { color: #dfe9f0; font-weight: 600; }
.ncard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0 0.9rem;
}
.ncard-tile {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(223, 233, 240, 0.04);
  border: 1px solid rgba(223, 233, 240, 0.1);
}
.ncard-val { font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem; color: #eef5f9; margin-top: 0.1rem !important; }
.ncard-sats { width: 22px; height: 12px; fill: var(--cy); vertical-align: -1px; margin-right: 0.2rem; }
.ncard-sats .off { fill: rgba(223, 233, 240, 0.25); }
.ncard-coords {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0.55rem 0.9rem 0.8rem;
  padding: 0.4rem 0.5rem 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}
.ncard-coords code { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; color: #dfe9f0; }
.ncard-btn {
  font-size: 0.75rem; padding: 0.1rem 0.55rem;
  border: 1px solid rgba(223, 233, 240, 0.35); border-radius: 6px;
}
.ncard-actions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(53, 201, 232, 0.15);
}
.ncard-actions span {
  text-align: center;
  padding: 0.7rem 0;
  font-weight: 700; font-size: 0.85rem;
}
.ncard-actions span + span { border-left: 1px solid rgba(53, 201, 232, 0.15); }
.ncard-actions .on { color: var(--cy); }
.ncard-wrap .report-caption { color: var(--muted); text-align: center; padding: 0; margin-top: 0.9rem; }
