/* Shared styling for the static blog pages (copied from guides.css, which sits
   behind the /guides/ deny rule and cannot be linked from public pages).
   These pages must render without the Angular bundle so search engines and slow
   connections get the content immediately. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --felt: #0b2318;
  --felt-lit: #1d6b35;
  --gold: #c9a227;
  --gold-lit: #f0d97a;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --banker: #dc2626;
  --player: #2563eb;
  --line: rgba(201, 162, 39, 0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--felt);
  color: var(--ink);
  font-family: 'Segoe UI', 'Noto Sans SC', system-ui, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-head {
  background: radial-gradient(ellipse at 50% 0%, var(--felt-lit) 0%, var(--felt) 75%);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { text-decoration: none; line-height: 1.1; }
.brand-main {
  display: block; color: var(--gold);
  font-size: 19px; font-weight: 700; letter-spacing: 3px;
}
.brand-sub {
  display: block; color: #7da87a;
  font-size: 10px; letter-spacing: 6px; margin-right: -6px;
}
.site-nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.site-nav a:hover { color: var(--gold-lit); }
.site-nav a.cta {
  color: var(--felt); background: linear-gradient(180deg, var(--gold-lit), var(--gold));
  padding: 6px 14px; border-radius: 5px; font-weight: 700; font-size: 12px;
}

/* ── Article ── */
main { padding: 30px 0 10px; }

.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

h1 {
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.25;
  color: var(--gold-lit);
  margin-bottom: 10px;
}
.standfirst { font-size: 17px; color: #cbd5e1; margin-bottom: 8px; }
.byline { font-size: 12px; color: #64748b; margin-bottom: 26px; }

h2 {
  font-size: 22px; color: var(--gold);
  margin: 34px 0 12px; padding-top: 6px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 17px; color: var(--ink); margin: 22px 0 8px; }

p { margin-bottom: 15px; }
a { color: var(--gold-lit); }

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }

strong { color: #fff; }

/* ── Components ── */
.callout {
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  padding: 13px 16px;
  border-radius: 0 5px 5px 0;
  margin: 22px 0;
  font-size: 15px;
}
.callout.warn { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.09); }

table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0; font-size: 14px;
}
th, td { padding: 8px 11px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: var(--gold); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.b { color: var(--banker); font-weight: 700; }
.p { color: #60a5fa; font-weight: 700; }

/* Inline road diagrams built from characters — no images to load. */
.road {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 11px;
  margin: 10px 0;
  overflow-x: auto;
  max-width: 100%;
}
.road-col { display: grid; grid-auto-flow: row; gap: 3px; }
.dot {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.dot.b { background: var(--banker); }
.dot.p { background: var(--player); }
.dot.none { background: transparent; }

.tool-cta {
  display: block;
  border: 1px solid var(--gold);
  background: rgba(201,162,39,0.1);
  border-radius: 7px;
  padding: 17px 20px;
  margin: 30px 0;
  text-decoration: none;
  color: var(--ink);
}
.tool-cta:hover { background: rgba(201,162,39,0.16); }
.tool-cta strong { display: block; color: var(--gold-lit); font-size: 17px; margin-bottom: 4px; }
.tool-cta span { font-size: 14px; color: var(--muted); }


/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 44px; padding: 22px 0 34px;
  font-size: 12px; color: var(--muted); line-height: 1.7;
}
.site-foot a { color: var(--muted); }
.site-foot .legal { margin-top: 10px; font-size: 11px; color: #7c8ba1; }

/* ── Blog extras ── */
.post-list { list-style: none; margin: 24px 0 0; }
.post-list li {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.15);
}
.post-list a { font-size: 19px; font-weight: 700; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list .meta { display: block; font-size: 12px; color: #64748b; margin: 2px 0 6px; }
.post-list p { margin: 0; font-size: 15px; color: #cbd5e1; }

.road-caption { display: block; font-size: 12px; color: var(--muted); margin: -4px 0 16px; }

.related ul { list-style: none; margin-left: 0; }
.related li span { display: block; font-size: 14px; color: var(--muted); }
