/* ============================================================
   RODS v2 user guides — shared styling. Echoes the app's
   brass/steel drafting theme (dark) and prints clean (light).
   ============================================================ */
:root {
  --bg: #0f1318; --bg2: #161c24; --bg3: #1e2733; --bg4: #243040;
  --line: #2a3545; --line2: #3a4d60;
  --ink: #dce8f0; --ink2: #8fa8bc; --mut: #506070;
  --brass: #b5893a; --brass2: #d4a84b; --brass-dim: rgba(181,137,58,0.18);
  --steel: #4d8aaa; --steel2: #6aaecf;
  --ok: #4a9e6e; --warn: #c49a2a; --err: #b5453a;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', sans-serif;
  --mono: 'Share Tech Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }

/* ---- header ---- */
.gd-header { background: var(--bg2); border-bottom: 2px solid var(--brass); padding: 28px 0 22px; }
.gd-wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.gd-brand { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; letter-spacing: .22em; color: var(--brass2); }
.gd-brand span { color: var(--mut); letter-spacing: .14em; margin-left: 10px; font-size: .72rem; }
.gd-title { font-family: var(--cond); font-weight: 700; font-size: 2.5rem; letter-spacing: .02em; margin: 6px 0 2px; }
.gd-sub { color: var(--ink2); max-width: 64ch; }
.gd-role { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass2); background: var(--brass-dim); border: 1px solid var(--brass); border-radius: 3px; padding: 2px 9px; margin-bottom: 10px; }

/* ---- sticky section nav ---- */
.gd-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg2) 94%, transparent);
  backdrop-filter: blur(4px); border-bottom: 1px solid var(--line); }
.gd-nav .gd-wrap { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.gd-nav a { font-family: var(--cond); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); text-decoration: none; padding: 5px 11px; border-radius: 14px; border: 1px solid transparent; white-space: nowrap; }
.gd-nav a:hover { color: var(--ink); border-color: var(--line2); }
.gd-nav a.on { color: var(--brass2); border-color: var(--brass); background: var(--brass-dim); }
.gd-nav a.home { margin-left: auto; color: var(--mut); }

/* ---- content ---- */
main.gd-wrap { padding-top: 30px; padding-bottom: 70px; }
section { margin-bottom: 52px; scroll-margin-top: 64px; }
h2 { font-family: var(--cond); font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; margin: 0 0 4px;
  padding-left: 12px; border-left: 3px solid var(--brass); }
h2 .num { color: var(--brass); font-family: var(--mono); font-size: 1.1rem; margin-right: 8px; }
h3 { font-family: var(--cond); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; color: var(--ink); margin: 26px 0 6px; }
p { color: var(--ink2); margin: 8px 0; }
p strong, li strong { color: var(--ink); }
a { color: var(--steel2); }
code, kbd { font-family: var(--mono); font-size: .85em; background: var(--bg3); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--ink); }
kbd { border-bottom-width: 2px; }
ul, ol { color: var(--ink2); padding-left: 24px; }
li { margin: 5px 0; }
li::marker { color: var(--brass); }

/* steps */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 42px; margin: 12px 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brass-dim); border: 1px solid var(--brass);
  color: var(--brass2); font-family: var(--mono); font-size: .82rem; display: flex; align-items: center; justify-content: center; }

/* figures / screenshots */
figure { margin: 18px 0; }
figure img { width: 100%; display: block; border: 1px solid var(--line2); border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45); cursor: zoom-in; }
figcaption { font-family: var(--mono); font-size: .72rem; color: var(--mut); margin-top: 7px; letter-spacing: .03em; }
figcaption b { color: var(--ink2); font-weight: 400; }

/* callouts */
.tip, .warn, .note { border: 1px solid var(--line); border-left: 3px solid var(--steel); border-radius: 5px;
  background: var(--bg2); padding: 12px 16px; margin: 16px 0; color: var(--ink2); }
.tip::before, .warn::before, .note::before { font-family: var(--cond); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 3px; }
.tip::before { content: 'Tip'; color: var(--steel2); }
.warn { border-left-color: var(--warn); } .warn::before { content: 'Watch out'; color: var(--warn); }
.note { border-left-color: var(--brass); } .note::before { content: 'Good to know'; color: var(--brass2); }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
th { font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mut); text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line2); }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: top; }
td:first-child { color: var(--ink); white-space: nowrap; }
td kbd { white-space: nowrap; }

/* day-token legend chips */
.tok { font-family: var(--mono); white-space: nowrap; }
.tok small { font-size: .62em; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin-left: 4px; }
.tok.warn2 { color: var(--warn); } .tok.over { color: var(--err); }

/* guide cards on the landing page */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.gd-card { display: block; text-decoration: none; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; padding: 22px; transition: border-color .15s, transform .12s; }
.gd-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.gd-card .t { font-family: var(--cond); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.gd-card .d { color: var(--ink2); font-size: .92rem; margin-top: 6px; }
.gd-card .who { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass2); }

footer { border-top: 1px solid var(--line); color: var(--mut); font-family: var(--mono); font-size: .72rem;
  padding: 18px 0 40px; text-align: center; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,8,11,.9); display: none;
  align-items: center; justify-content: center; padding: 3vh 3vw; cursor: zoom-out; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 6px; border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0,0,0,.7); }

/* print: white paper, no nav */
@media print {
  :root { --bg: #fff; --bg2: #fff; --bg3: #f2f5f8; --line: #ccd6de; --line2: #aab8c4;
    --ink: #14202b; --ink2: #3c4f5f; --mut: #6b7c8c; }
  body { font-size: 12px; }
  .gd-nav, .lb { display: none !important; }
  figure img { box-shadow: none; cursor: default; }
  section { break-inside: avoid-page; }
}
