:root {
  --bg: #0c100e;
  --surface: #161d18;
  --surface2: #1c2620;
  --border: #2c3a30;
  --text: #f2f5f0;
  --muted: #9aab9f;
  --gold: #e0b33a;
  --green: #3d9a55;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 0% -10%, #1a3d28 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #2a220c 0%, transparent 50%),
    var(--bg);
}
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 18px 72px; }
.wrap.wide { max-width: 960px; }
a { color: #8fd49c; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 179, 58, 0.14);
  color: var(--gold);
  border: 1px solid rgba(224, 179, 58, 0.35);
  margin-bottom: 12px;
}
.badge.green {
  background: rgba(61, 154, 85, 0.15);
  color: #8fd49c;
  border-color: rgba(61, 154, 85, 0.4);
}
h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: #c5e0cc;
}
h3 { font-size: 1rem; margin: 18px 0 8px; color: #d4e8d9; }
p, li { color: var(--muted); }
p strong, li strong { color: var(--text); }
.lead { font-size: 1.05rem; margin: 0 0 20px; max-width: 58ch; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}
.card.hot {
  border-color: rgba(61, 154, 85, 0.45);
  background: linear-gradient(165deg, #1a3224 0%, var(--surface) 70%);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, transform 0.1s;
}
.tile:hover {
  border-color: rgba(61, 154, 85, 0.6);
  transform: translateY(-1px);
}
.tile.hot {
  border-color: rgba(61, 154, 85, 0.5);
  background: linear-gradient(165deg, #1a3224 0%, var(--surface) 72%);
}
.tile .kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fd49c;
  display: block;
  margin-bottom: 4px;
}
.tile h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.tile p { margin: 0; font-size: 0.88rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: #1a261e;
  color: #c5e0cc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td { background: #121814; color: var(--muted); }
td strong { color: var(--text); }
ul, ol { padding-left: 1.25rem; }
li { margin: 7px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 12px 14px 12px 52px;
  margin: 10px 0;
  background: #121814;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 28px;
  text-align: center;
}
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--green);
}
.btn.secondary {
  background: #2a342c;
  border: 1px solid var(--border);
  color: #c5d4c8;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a241c;
  border: 1px solid var(--border);
  color: #b8cfc0;
}
.nav a:hover { border-color: rgba(61, 154, 85, 0.55); color: #fff; }
.nav a.here {
  background: rgba(61, 154, 85, 0.2);
  border-color: rgba(61, 154, 85, 0.5);
  color: #8fd49c;
}
.pin {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  color: var(--gold);
}
.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #243028;
  color: #9fbfab;
  margin-right: 4px;
}
footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
code { color: var(--gold); font-size: 0.9em; }
@media print {
  body { background: #fff; color: #111; }
  .nav, .btns { display: none; }
  .card, .tile, td, th { border-color: #ccc; background: #fff; color: #333; }
  h2, h3, strong, .tile h4 { color: #111; }
  p, li, td { color: #333; }
}
