/* Magick CSS overlay — scientific-paper feel for bestpokerbot.com */

:root {
  --paper: #fefefb;
  --ink: #1a1a1a;
  --muted: #555;
  --rule: #d6d4cc;
  --accent: #7a1f1f;
  --tier-s: #b8860b;
  --tier-a: #2e7d32;
  --tier-b: #1565c0;
  --tier-c: #6a1b9a;
  --tier-d: #555;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
}

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.05rem; margin-top: 1.6rem; }
h2 { font-size: 1.45rem; margin-top: 2.4rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem; }
h3 { font-size: 1.15rem; margin-top: 1.8rem; }

p, li { font-size: 1rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

/* Header — site bar */
header.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

header.site-bar .brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

header.site-bar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

header.site-bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

header.site-bar nav a:hover { color: var(--accent); text-decoration: underline; }

/* CTA button */
.cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid var(--ink);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}
.cta-btn:hover { background: var(--accent); border-color: var(--accent); }

/* Byline — small grey line under H1, before abstract */
.byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 1.4rem;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}
.byline strong { color: var(--ink); font-weight: 600; }

/* Author bio block at bottom */
.author-bio {
  margin: 2.6rem 0 1rem;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  background: #f8f6ef;
  border-radius: 4px;
}
.author-bio h3 {
  margin-top: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.author-bio p { margin-bottom: 0; }

/* Lede / abstract */
.abstract {
  font-style: italic;
  color: #333;
  border-left: 3px solid var(--rule);
  padding: 4px 16px;
  margin: 1.4rem 0 2rem;
}

/* Pull quote */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6rem 0;
  padding: 4px 18px;
  color: #2a2a2a;
  font-style: italic;
}

/* Tier-list table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.94rem;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  background: #f3f1ea;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:hover { background: #faf8f1; }

.tier {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.tier.s { background: var(--tier-s); }
.tier.a { background: var(--tier-a); }
.tier.b { background: var(--tier-b); }
.tier.c { background: var(--tier-c); }
.tier.d { background: var(--tier-d); }

.score { font-variant-numeric: tabular-nums; font-weight: 600; }
.stars { color: var(--tier-s); letter-spacing: 1px; }

/* Result pills for the comparison table */
.result {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}
.result.pos { background: #d8f3dc; color: #1b4332; border: 1px solid #2e7d32; }
.result.zero { background: #fff3cd; color: #664d03; border: 1px solid #b8860b; }
.result.neg { background: #fde2e2; color: #7a1f1f; border: 1px solid #c4424c; }
.result.scam { background: #2a0a0a; color: #ffb3b3; border: 1px solid #6b1a1a; }
.result.na { background: #e9ecef; color: #495057; border: 1px solid #adb5bd; }

.table-wrap { overflow-x: auto; }

/* Footnote / methodology table */
.criteria-list {
  list-style: none;
  padding-left: 0;
}
.criteria-list li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
}
.criteria-list strong { display: block; margin-bottom: 4px; }

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--muted);
}

footer a { color: var(--muted); }

/* Body CTA card */
.cta-card {
  margin: 2.4rem 0;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  background: #f8f6ef;
  border-radius: 4px;
}
.cta-card h3 { margin-top: 0; }

/* Responsive */
@media (max-width: 620px) {
  body { padding: 0 18px 60px; font-size: 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  header.site-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
  }
  header.site-bar nav {
    justify-content: space-between;
    width: 100%;
  }
  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  table { font-size: 0.86rem; }
  th, td { padding: 8px 8px; }
}

img, svg, table, pre { max-width: 100%; }
