/* Guides share the product's palette so the site reads as one thing. */
:root {
  --bg:#10151c; --surface:#171e27; --surface-2:#1f2733; --border:#2a3341;
  --text:#e9edf3; --muted:#8794a6; --faint:#6b7789; --gold:#e8b84f; --income:#4fb286;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:Inter, system-ui, -apple-system, sans-serif;
  font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
.wrap { max-width:760px; margin:0 auto; padding:0 22px; }
.page { padding:44px 22px 80px; display:flex; flex-direction:column; gap:18px; }
h1 { font-size:clamp(1.9rem,4.6vw,2.7rem); font-weight:800; letter-spacing:-.025em; line-height:1.1; margin:0; text-wrap:balance; }
h2 { font-size:1.22rem; font-weight:700; letter-spacing:-.015em; margin:18px 0 0; text-wrap:balance; }
p { margin:0; }
.lede { font-size:1.1rem; color:var(--muted); }
.tiny { font-size:.78rem; color:var(--faint); }
.eyebrow { font-family:"IBM Plex Mono",monospace; font-size:.7rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); margin:0; }
.eyebrow a { color:var(--faint); text-decoration:none; }
.eyebrow a:hover { color:var(--gold); }
a { color:var(--gold); text-underline-offset:3px; }
ul { margin:0; padding-left:1.2em; display:flex; flex-direction:column; gap:9px; color:var(--muted); }
li { padding-left:2px; }

.scroll { overflow-x:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
table { border-collapse:collapse; width:100%; min-width:480px; font-size:.92rem; }
th, td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--border); vertical-align:top; }
thead th { font-family:"IBM Plex Mono",monospace; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); background:var(--surface-2); font-weight:600; }
tbody th { font-weight:600; color:var(--text); width:32%; }
td { color:var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom:none; }

.note { border-left:3px solid var(--gold); background:var(--surface); border-radius:0 10px 10px 0; padding:14px 18px; }
.note p { color:var(--muted); font-size:.95rem; }
.cta { background:var(--surface); border:1px solid var(--gold); border-radius:12px; padding:20px 22px; display:flex; flex-direction:column; gap:12px; align-items:flex-start; margin-top:8px; }
.cta p { color:var(--muted); font-size:.95rem; }
.cta strong { color:var(--text); }

.cards { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:6px; }
@media (max-width:680px){ .cards { grid-template-columns:1fr; } }
.card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:8px; transition:border-color .15s; }
.card:hover { border-color:var(--gold); }
.card h2 { margin:0; font-size:1.05rem; }
.card p { color:var(--muted); font-size:.9rem; }
.card .more { color:var(--gold); font-size:.85rem; font-weight:600; margin-top:auto; }

.nav { position:sticky; top:0; z-index:40; background:rgba(16,21,28,.88); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.nav-in { display:flex; align-items:center; gap:18px; height:62px; }
.brand { display:flex; align-items:center; gap:9px; font-weight:800; font-size:1.05rem; letter-spacing:-.02em; text-decoration:none; color:var(--text); }
.brand-mark { width:26px; height:26px; border-radius:7px; flex:0 0 auto; background:linear-gradient(145deg,var(--gold),#b98a25); display:grid; place-items:center; color:#1a1405; font-family:"IBM Plex Mono",monospace; font-weight:700; font-size:.85rem; }
.nav-links { margin-left:auto; display:flex; align-items:center; gap:20px; }
.nav-links a { color:var(--muted); text-decoration:none; font-size:.9rem; font-weight:600; }
.nav-links a:hover { color:var(--text); }
@media (max-width:640px){ .nav-links .hide-sm { display:none; } }
/* On a narrow phone the brand, one link and the button still do not fit at
   full size, so the row tightens rather than pushing the page sideways. */
@media (max-width:430px){
  .nav-in { gap:10px; }
  .nav-links { gap:12px; }
  .brand { font-size:.98rem; }
  .nav-links .btn { padding:9px 12px; font-size:.84rem; }
  /* At this width the brand and the button are all that fit. Every text link
     here is also in the footer, so nothing becomes unreachable. */
  .nav-links a:not(.btn) { display:none; }
}
@media (max-width:360px){
  .wrap, .page { padding-left:14px; padding-right:14px; }
  .nav-links .btn { padding:9px 10px; font-size:.8rem; }
}

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border-radius:9px; font-weight:700; font-size:.9rem; text-decoration:none; border:1px solid var(--border); background:var(--surface-2); color:var(--text); white-space:nowrap; min-height:42px; }
.btn:hover { border-color:var(--gold); color:var(--gold); }
.btn-primary { background:var(--gold); border-color:var(--gold); color:#1a1405; }
.btn-primary:hover { filter:brightness(1.08); color:#1a1405; }

footer { border-top:1px solid var(--border); padding:36px 0; }
.foot-in { display:flex; flex-wrap:wrap; gap:22px; justify-content:space-between; align-items:flex-start; }
.foot-links { display:flex; flex-wrap:wrap; gap:18px; }
.foot-links a { color:var(--muted); text-decoration:none; font-size:.88rem; }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){ *{transition:none!important;animation:none!important;scroll-behavior:auto!important;} }
