:root {
  --bg: #04121c;
  --bg2: #07202f;
  --panel: #0b2a3d;
  --line: #16425c;
  --ink: #dfeef6;
  --dim: #8fb3c6;
  --accent: #35d6c0;
  --accent2: #7aa7ff;
  --warn: #ffb45c;
  --err: #ff7a7a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 70% -15%, #0e3b55 0%, transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 55%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #06202e; border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px; color: #9fe8dc;
}

/* ---- chrome ---- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 28, .72);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-weight: 700; letter-spacing: .04em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; font-size: 17px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
header.site nav { display: flex; gap: 20px; font-size: 14px; }
header.site nav a { color: var(--dim); }

main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }

footer.site {
  border-top: 1px solid var(--line); color: var(--dim);
  font-size: 13px; padding: 20px 28px; text-align: center;
}

/* ---- cover ---- */
.hero { margin-bottom: 34px; }
.hero h1 {
  font-size: 44px; margin: 0 0 10px;
  background: linear-gradient(92deg, #eaf9ff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: #c6e2ef; max-width: 62ch; margin: 0 0 10px; }

.cover {
  min-height: 56vh; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; margin: 0;
}
.cover h1 { font-size: 54px; }
.cover .lede { font-size: 21px; margin-bottom: 30px; }

.taxon { color: var(--accent); font-style: italic; font-size: 13px; margin: 0; }
.taxon.big { font-size: 17px; margin-bottom: 18px; }

/* ---- next button ---- */
.nextwrap { margin: 40px 0 0; }
.nextbtn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--accent); color: #04121c; font-weight: 700;
  letter-spacing: .03em; background: var(--accent);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.nextbtn:hover {
  text-decoration: none; transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(53, 214, 192, .28);
}
.nextbtn.busy { opacity: .55; cursor: progress; transform: none; }

/* ---- entry ---- */
.entry { max-width: 76ch; }
.crumbs { color: var(--dim); font-size: 13px; margin: 0 0 6px; }
.entry h1 { font-size: 36px; margin: 0 0 4px; }
.entry h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin: 34px 0 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.summary { font-size: 17px; color: #d5ecf6; }

.datasheet {
  display: grid; gap: 1px; margin: 22px 0 26px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.datasheet > div { background: #082230; padding: 12px 14px; }
.datasheet dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--dim); margin-bottom: 4px;
}
.datasheet dd { margin: 0; font-size: 15px; font-weight: 600; }

.facts { padding-left: 20px; }
.facts li { margin-bottom: 8px; color: #cfe6f1; }


/* ---- /received collector ---- */
.rxclear { margin: 18px 0 26px; }
.rxclear button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 9px 18px; border-radius: 9px;
  color: #04121c; background: var(--warn); border: 1px solid var(--warn);
}
.rxclear button:hover { box-shadow: 0 6px 18px rgba(255, 180, 92, .25); }

table.rx {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
table.rx th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); background: #06202e; padding: 9px 12px;
}
table.rx td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.rx tr:nth-child(even) td { background: #082230; }
.rxwhen, .rxlen { white-space: nowrap; color: var(--dim); }
.rxnone { color: var(--dim); font-size: 12px; }
pre.rxval {
  margin: 0; max-height: 14em; overflow: auto; white-space: pre-wrap;
  word-break: break-all; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #9fe8dc;
}

/* ---- reference links ---- */
.refs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.refs .ref {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #082230; color: var(--ink);
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.refs .ref::before { content: "\2192"; color: var(--accent); margin-right: 10px; }
.refs .ref:hover {
  text-decoration: none; border-color: var(--accent);
  background: #0a2c3f; transform: translateX(3px);
}
.ref-label { flex: 1; font-weight: 600; }
.ref-kind {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 9px;
}
.refs .ref.busy { opacity: .6; border-color: var(--accent); cursor: progress; }
.refs .ref.busy::before { content: "\27F3"; }

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  header.site { padding: 12px 16px; }
  main { padding: 24px 16px 56px; }
}
