/* Holo guide styles — tokens mirror holo.host /styles/site.css */
:root {
  --holo-blue: #017ff8;
  --accent: #02baff;
  --accent-pop: #4dd5ff;
  --accent-deep: #005ba3;
  --holofuel-yellow: #fdcc1d;
  --hot-green: #a0c814;
  --unyt-purple: #7b5ce8;

  --bg: #0d1525;
  --bg-2: #16243a;
  --bg-card: #1c2e48;
  --light: #f6f8fa;
  --light-2: #eef2f6;
  --white: #fff;
  --ink: #0a1020;
  --ink-dim: #3a4560;
  --line: #d9e0e8;

  --warning: #ffcc16;
  --success: #008402;
  --info: #a1e5ff;

  --font-sans: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Outfit", "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --hero-gradient: linear-gradient(165deg, #017ff8 0%, #005ba3 18%, #003070 35%, #001640 52%, #0a1020 65%, #0d1525 80%);
  --band-gradient: linear-gradient(115deg, #004e8c, #002b63 55%, #001640);

  --max-w: 1140px;
  --max-w-prose: 720px;
  --container-pad: clamp(1rem, 3vw, 2rem);
  --nav-h: 68px;
  --r: 4px;
  --r-lg: 8px;
  --r-pill: 999px;

  --guide-accent: var(--accent);
}
.guide-hot { --guide-accent: var(--hot-green); }
.guide-voucher { --guide-accent: var(--holofuel-yellow); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--holo-blue); }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--light-2);
  padding: 0.1em 0.35em;
  border-radius: var(--r);
  overflow-wrap: anywhere;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--container-pad); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .logo img { height: 34px; width: auto; display: block; }
.site-header nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-header nav a {
  color: rgba(232,238,244,0.82); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.02em;
}
.site-header nav a:hover { color: var(--accent-pop); }

/* Hero */
.hero { background: var(--hero-gradient); color: var(--white); padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--guide-accent);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0.6rem 0 1rem; max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent-pop); }
.hero .lead { font-size: 1.2rem; line-height: 1.6; max-width: 46ch; color: rgba(232,238,244,0.9); margin: 0; }
.hero .operator {
  margin-top: 2rem; max-width: 62ch;
  border-left: 3px solid var(--guide-accent);
  background: rgba(13,21,37,0.45);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: 0.95rem; color: rgba(232,238,244,0.88);
}
.hero .operator strong { color: var(--white); }
.hero .operator a { color: var(--accent-pop); }
.tbd { background: var(--warning); color: var(--ink); padding: 0 0.3em; border-radius: var(--r); font-weight: 600; }

/* Layout: TOC + article */
.layout { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 240px minmax(0, var(--max-w-prose)); justify-content: center; }
}
.toc { font-size: 0.92rem; }
.toc-inner { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.toc h2 {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 0.75rem; counter-reset: none;
}
.toc h2::before { content: none !important; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc ul ul { display: none; }
.toc li a {
  display: block; padding: 0.3rem 0 0.3rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-dim); text-decoration: none; line-height: 1.35;
}
.toc li a:hover, .toc li a.active { color: var(--ink); border-left-color: var(--guide-accent); }
@media (max-width: 1023px) {
  .toc-inner { position: static; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
}

/* Article typography */
article { min-width: 0; counter-reset: step; }
article h2, article h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
article h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 4rem 0 1rem; }
article h2.step { counter-increment: step; }
article h2.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 0.4rem;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent-deep);
}
article h2.step::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 0.8rem;
  background: var(--guide-accent); border-radius: 2px;
}
article > h2:first-child { margin-top: 0; }
article h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; margin: 2.25rem 0 0.5rem; }
article p, article li { max-width: 68ch; }
article ol, article ul { padding-left: 1.4rem; }
article li { margin: 0.35rem 0; }
article li::marker { color: var(--accent-deep); font-weight: 600; }
article strong { font-weight: 600; }

/* UI labels: **Button** rendered as kbd-like chip via span.ui */
.ui {
  font-weight: 600; white-space: nowrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0.05em 0.4em;
  font-size: 0.94em;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.97rem; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-dim); background: var(--light-2); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; width: 32%; }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 0.25rem 1rem; }
  td:first-child { padding-top: 0.9rem; width: auto; }
  tr { border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
}

/* Callouts */
.callout, .success, .placeholder {
  margin: 1.5rem 0; padding: 1rem 1.25rem 1rem 1.25rem;
  border-radius: var(--r-lg); font-size: 0.97rem;
}
.callout > :first-child, .success > :first-child, .placeholder > :first-child { margin-top: 0; }
.callout > :last-child, .success > :last-child, .placeholder > :last-child { margin-bottom: 0; }
.callout::before, .success::before, .placeholder::before {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.callout.warning { background: #fff8dc; border-left: 4px solid var(--warning); }
.callout.warning::before { content: "Important"; color: #8a6a00; }
.callout.tip { background: #e8f8ff; border-left: 4px solid var(--accent); }
.callout.tip::before { content: "Tip"; color: var(--accent-deep); }
.callout.note { background: var(--white); border-left: 4px solid var(--ink-dim); }
.callout.note::before { content: "Note"; color: var(--ink-dim); }
.success { background: #eaf6ea; border-left: 4px solid var(--success); }
.success::before { content: "✓ Stage complete when"; color: var(--success); }
.placeholder {
  background: repeating-linear-gradient(-45deg, #fffbe8, #fffbe8 10px, #fff6cc 10px, #fff6cc 20px);
  border: 2px dashed #c9a000;
}
.placeholder::before { content: "Placeholder — to be confirmed before publishing"; color: #7a5f00; }

/* Screenshots */
figure { margin: 1.75rem 0; }
figure img {
  display: block; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(10,16,32,0.35);
  background: var(--white); cursor: zoom-in;
}
figure img.narrow { max-width: 440px; }
figure img.medium { max-width: 560px; }
figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: start; }
.shot-row figure { margin: 1rem 0; }
.shot-missing {
  display: grid; place-items: center; text-align: center;
  min-height: 180px; padding: 1.5rem;
  border: 2px dashed #c9a000; border-radius: var(--r-lg);
  background: #fffbe8; color: #7a5f00; font-size: 0.92rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 2rem;
  background: rgba(10,16,32,0.88); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--r-lg); }

/* Next-steps band */
.band { background: var(--band-gradient); color: var(--white); padding: var(--section-y, 4rem) 0; }
.band h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card {
  display: block; padding: 1.25rem 1.4rem; border-radius: var(--r-lg);
  background: rgba(28,46,72,0.75); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(232,238,244,0.85); text-decoration: none; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--white); }
.card strong { display: block; color: var(--white); font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.25rem; }

/* Footer */
.site-footer { background: var(--bg); color: rgba(232,238,244,0.7); padding: 3rem 0; font-size: 0.9rem; }
.site-footer .disclaimer { max-width: 80ch; font-style: italic; margin: 0 0 1.5rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; }
.site-footer a { color: rgba(232,238,244,0.82); text-decoration: none; }
.site-footer a:hover { color: var(--accent-pop); }

@media (max-width: 767px) {
  .site-header nav { display: none; }
  body { font-size: 1rem; }
  figure img.narrow, figure img.medium, figure img.thumb { max-width: 100%; }
}

/* Help page + detour links */
.guide-help { --guide-accent: var(--accent); }
.detour {
  margin: -0.5rem 0 1.5rem; padding-left: 1.4rem; position: relative;
  font-size: 0.92rem; color: var(--ink-dim);
}
.detour::before { content: "↳"; position: absolute; left: 0.2rem; color: var(--accent-deep); }
.detour p { margin: 0; }
figure img.thumb { max-width: 300px; }
.back { font-size: 0.88rem; margin-top: 0.75rem; }
.back a { text-decoration: none; }
article h3[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Troubleshooting entries sit one level below their group heading */
article h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; line-height: 1.3; margin: 1.75rem 0 0.4rem; }
article h4[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* A prominent link to the other site's guide */
.next-guide p { margin: 1.25rem 0; }
.next-guide a {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
  border: 2px solid var(--guide-accent);
}
.next-guide a:hover { color: var(--white); background: var(--bg-2); }

/* Long, unbroken strings such as the joining code or a contract address: wrap instead of scrolling */
pre.long-string {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--light-2);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}
pre.long-string code { background: none; padding: 0; font-size: inherit; }
