/* Hallmark · editorial · PokerBot Review · RTINGS-inspired editorial testing lab system derived from Juice-1 preview */
/* Critique: warm off-white paper (#f6f5f2) with tinted alabaster cards (#fcfbf9), deep ink (#191918), muted pine green (#1f5c43) for top tiers and oxblood (#9e3030) reserved strictly for risk/caution signals. */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg-paper: #f6f5f2;
  --bg-surface: #fcfbf9;
  --bg-subtle: #eeece6;
  --bg-table-head: #f0eee9;
  --bg-felt: #264237;
  --bg-felt-card: rgba(252, 251, 249, 0.94);

  --ink-primary: #191918;
  --ink-secondary: #4a4945;
  --ink-muted: #66645e;
  --ink-on-dark: #f6f5f2;

  --border-light: #e2dfd7;
  --border-strong: #cbc7bc;

  --accent-pine: #1f5c43;
  --accent-pine-soft: #e6f0eb;
  --accent-pine-border: #bdd4c9;

  --accent-slate: #3d4f5f;
  --accent-slate-soft: #eaeff3;
  --accent-slate-border: #c8d3dc;

  --accent-amber: #7d4e12;
  --accent-amber-soft: #f7efe2;
  --accent-amber-border: #e3cea8;

  --accent-risk: #9e3030;
  --accent-risk-soft: #f8eaea;
  --accent-risk-border: #e2bebe;

  --focus-ring: #1f5c43;
  --link-color: #194d38;
  --link-hover: #0e3223;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1160px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--ink-secondary);
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header: strictly <= 30 words before <main> */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-pine);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

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

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  padding-block: 4px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-pine);
  text-underline-offset: 6px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

/* Hub Hero: split editorial layout inspired by Juice-1 preview */
.hub-hero {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding-block: 40px;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: stretch;
}

.hub-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-hero-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

.answer-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-primary);
  margin-bottom: 16px;
  max-width: 66ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background-color: var(--accent-pine);
  color: var(--ink-on-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-pine);
}

.btn-primary:hover {
  background-color: var(--link-hover);
  border-color: var(--link-hover);
  color: var(--ink-on-dark);
}

.btn-primary:active {
  background-color: var(--ink-primary);
  border-color: var(--ink-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
}

.btn-secondary:active {
  background-color: var(--border-light);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.side-cta {
  margin-top: 16px;
}

.table-cap {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-light);
}

/* Right-side Hero Summary Panel (clean felt editorial framing) */
.hero-panel-frame {
  background-color: var(--bg-felt);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
}

.hero-score-card {
  width: 100%;
  background-color: var(--bg-felt-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}

.score-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.score-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.score-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.score-card-row a {
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}

.score-card-row a:hover {
  text-decoration: underline;
}

.score-card-cat {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
}

.score-card-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Badges & Status Chips */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
  white-space: nowrap;
}

.badge-pine {
  background-color: var(--accent-pine-soft);
  border-color: var(--accent-pine-border);
  color: var(--accent-pine);
}

.badge-slate {
  background-color: var(--accent-slate-soft);
  border-color: var(--accent-slate-border);
  color: var(--accent-slate);
}

.badge-amber {
  background-color: var(--accent-amber-soft);
  border-color: var(--accent-amber-border);
  color: var(--accent-amber);
}

.badge-risk {
  background-color: var(--accent-risk-soft);
  border-color: var(--accent-risk-border);
  color: var(--accent-risk);
}

/* Sections */
.section {
  padding-block: 48px;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 16px;
}

.section h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.section-intro {
  max-width: 66ch;
  font-size: 16px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

th {
  background-color: var(--bg-table-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

tbody tr:last-child td {
  border-bottom: none;
}

.cell-title {
  font-weight: 600;
  color: var(--ink-primary);
  display: block;
  margin-bottom: 4px;
}

.cell-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Editorial Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.card-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* Review Page Layout */
.article-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding-block: 32px;
}

.article-header h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
  max-width: 860px;
}

.article-body {
  padding-block: 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.prose {
  min-width: 0;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose ul,
.prose ol {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 8px;
}

/* Verdict Box */
.verdict-box {
  background-color: var(--accent-pine-soft);
  border: 1px solid var(--accent-pine-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.verdict-box-risk {
  background-color: var(--accent-risk-soft);
  border-color: var(--accent-risk-border);
}

.verdict-box h2.verdict-title,
.verdict-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 0;
  margin-bottom: 8px;
  padding-top: 0;
  border-top: none;
}

/* Fit Grid (Who it fits / Who it does not fit) */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.fit-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.fit-box h3 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 12px;
}

.fit-box ul {
  margin-bottom: 0;
}

.fit-yes {
  border-top: 3px solid var(--accent-pine);
}

.fit-no {
  border-top: 3px solid var(--accent-risk);
}

/* Figures & Real Screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 24px;
}

.shot-grid-3 .shot-figure:first-child {
  grid-column: 1 / -1;
}

.shot-figure {
  margin: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.shot-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border-light);
}

.shot-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.side-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.side-box h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.side-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.side-kv:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.side-k {
  color: var(--ink-muted);
}

.side-v {
  color: var(--ink-primary);
  font-weight: 600;
  text-align: right;
}

/* Disclosure & Callout */
.notice-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-block: 24px;
}

.notice-box strong {
  color: var(--ink-primary);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-item h3 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 8px;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding-block: 40px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

.footer-col h2 {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hub-hero-grid,
  .article-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 16px;
  }

  .card-grid-2,
  .fit-grid,
  .shot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-hero {
    padding-block: 24px;
  }

  .section {
    padding-block: 32px;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
