/* About HYPERSPACE: Wikipedia-style article in a terminal skin (all classes prefixed ab-) */
.ab-root { max-width: 100%; min-width: 0; font-family: var(--mono); }
.ab-article { display: flow-root; max-width: 100%; min-width: 0; line-height: 1.6; }

/* infobox */
.ab-infobox {
  position: relative; float: right; width: 300px; max-width: 100%;
  margin: 0 0 16px 24px; border: 1px solid var(--green); background: #000;
  font-size: 14px; overflow: hidden;
}
.ab-infobox::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 255, 110, 0.05) 0 1px, transparent 1px 3px);
}
.ab-ibtitle {
  padding: 6px 10px; background: var(--green); color: var(--bg);
  font: 700 14px/1.3 var(--head); letter-spacing: 0.2em; text-align: center;
}
.ab-facts { margin: 0; padding: 0; }
.ab-frow { display: flex; gap: 10px; padding: 6px 10px; border-top: 1px solid var(--line-soft); }
.ab-fk { flex: 0 0 96px; margin: 0; color: var(--muted); }
.ab-fv { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--mint); overflow-wrap: anywhere; }
.ab-frow:first-child { border-top: 0; }

/* title and lead */
.ab-title {
  margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font: 700 clamp(18px, 3.4vw, 24px)/1.25 var(--head); letter-spacing: 0.08em;
  color: var(--green); overflow-wrap: anywhere;
}
.ab-cursor { margin-left: 6px; animation: ab-blink 1.1s steps(1) infinite; }
@keyframes ab-blink { 50% { opacity: 0; } }
.ab-lead { margin: 0 0 14px; color: var(--mint); max-width: 70ch; }

/* contents box */
.ab-toc { display: inline-block; max-width: 100%; margin: 0 0 12px; border: 1px solid var(--line); background: rgba(0, 20, 10, 0.5); }
.ab-toc-h { padding: 6px 12px; cursor: pointer; color: var(--green); font-weight: bold; letter-spacing: 0.1em; }
.ab-toc-h:hover { background: var(--green); color: var(--bg); }
.ab-toc-h:focus-visible, .ab-tog:focus-visible, .ab-link:focus-visible, .ab-tl:focus-visible { outline: 1px dashed var(--green); outline-offset: 2px; }
.ab-toc-list { margin: 0; padding: 4px 12px 10px 38px; color: var(--muted); }
.ab-toc-list li { padding: 1px 0; }
.ab-tl { color: var(--mint); text-decoration: none; }
.ab-tl:hover { background: var(--green); color: var(--bg); }

.ab-ctl { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ab-link, .ab-tog {
  padding: 0; border: 0; background: none; font: inherit; color: var(--green); cursor: pointer;
}
.ab-link:hover, .ab-tog:hover { background: var(--green); color: var(--bg); }

/* sections */
.ab-sec { clear: none; min-width: 0; }
.ab-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
  margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line-soft);
  font: 700 15px/1.4 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
  scroll-margin-top: 12px;
}
.ab-hp { color: var(--muted); white-space: pre; margin-right: -10px; }
.ab-tog { font: 14px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ab-body { min-width: 0; padding-left: 4px; }
.ab-body[hidden] { display: none; }
.ab-sum { margin: 4px 0 6px; color: var(--mint); max-width: 70ch; }
.ab-list { margin: 0 0 6px; padding: 0; list-style: none; }
.ab-list li { position: relative; padding: 1px 0 1px 18px; color: var(--mint); overflow-wrap: anywhere; }
.ab-list li::before { content: ">"; position: absolute; left: 0; color: var(--green); }
.ab-note { margin: 8px 0; padding: 6px 10px; border-left: 2px solid var(--green); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .ab-infobox { float: none; width: 100%; margin: 0 0 14px; }
  .ab-toc { display: block; }
  .ab-fk { flex-basis: 84px; }
}
@media (prefers-reduced-motion: reduce) { .ab-cursor { animation: none; } }
