/* Styles for Ledger's static guide pages (/cards/*, /best/*, 404). Matches the app's dark theme. */
:root {
  --bg: #0b0f14;
  --bg-1: #10161d;
  --bg-2: #161e27;
  --line: #222c38;
  --text: #e6edf3;
  --muted: #8b98a6;
  --lime: #a3e635;
  --warn: #fbbf24;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Space Grotesk", system-ui, sans-serif; }
a { color: var(--lime); }
.i { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 20px; background: rgba(11,15,20,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2em; font-size: 15px; }
.brand .glyph { color: var(--lime); width: 20px; height: 20px; }
.cta-top { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: #0b0f14; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 7px 12px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.lead { font-size: 18px; color: #c9d4de; margin: 0 0 18px; }
.lead b, .lime { color: var(--lime); }
.small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }

.hero { display: flex; gap: 18px; align-items: center; }
.chip { flex: none; width: 92px; aspect-ratio: 1.586; border-radius: 10px; position: relative; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.chip::after { content: ""; position: absolute; left: 12%; top: 38%; width: 20%; height: 18%; border-radius: 3px; background: #fbbf24; opacity: .85; }
.chip.sm { width: 46px; border-radius: 6px; box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 16px; }
.stats div { background: var(--bg-1); padding: 14px 16px; }
.stats span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 2px; }
.stats small { display: block; font-size: 12px; color: var(--muted); }
.note { font-size: 14px; color: var(--warn); border: 1px dashed #5c4a12; border-radius: 10px; padding: 10px 14px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: #0b0f14; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 18px; margin: 8px 0 4px; }
.cta .i { width: 18px; height: 18px; }

.verdict { border-radius: 10px; padding: 12px 16px; background: var(--bg-1); border: 1px solid var(--line); }
.verdict.good b { color: var(--lime); }
.verdict.warn b { color: var(--warn); }

.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.t td:not(:first-child), .t th:not(:first-child) { text-align: right; font-family: var(--mono); }
.t td:first-child { display: flex; align-items: center; gap: 8px; }
.t td .i { color: var(--muted); }

.list { padding-left: 0; list-style: none; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pros li { display: flex; gap: 10px; align-items: baseline; }
.pros .i { color: var(--lime); position: relative; top: 2px; }
.pros .con .i { color: #f87171; }
.out { display: inline-flex; align-items: center; gap: 6px; }

.similar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.similar a { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; background: var(--bg-1); }
.similar a:hover { border-color: var(--lime); }
.similar small { display: block; color: var(--muted); font-size: 13px; font-family: var(--mono); }

.rank { list-style: none; padding: 0; margin: 20px 0 0; }
.rank li { display: grid; grid-template-columns: 28px 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank .n { font-family: var(--mono); color: var(--muted); }
.rank .who a { color: var(--text); text-decoration: none; }
.rank .who a:hover b { color: var(--lime); }
.rank .who small { display: block; color: var(--muted); font-size: 13px; }
.rank dl { display: flex; gap: 18px; margin: 0; }
.rank dl div { text-align: right; }
.rank dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rank dd { margin: 0; font-family: var(--mono); font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.foot h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 14px; }
.foot nav h2 { flex: 1 0 100%; }
.foot nav a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; text-decoration: none; color: var(--text); }
.foot nav a:hover { border-color: var(--lime); }

@media (max-width: 640px) {
  .top { padding: 0 12px; }
  .cta-top { font-size: 13px; padding: 7px 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { align-items: flex-start; }
  .chip { width: 64px; }
  .similar { grid-template-columns: 1fr; }
  .rank li { grid-template-columns: 22px 1fr; gap: 6px 10px; }
  .rank .chip { display: none; }
  .rank dl { grid-column: 2; justify-content: flex-start; gap: 16px; }
  .rank dl div { text-align: left; }
  .t { font-size: 14px; }
  .t th, .t td { padding: 8px 6px; }
}
.label-short { display: none; }
@media (max-width: 480px) { .label-long { display: none; } .label-short { display: inline; } }
