/* BilliardSet.com — Editorial & Specification Design System
 * Palette: Deep Billiard Green (#0C3B29 / #14533B), Charcoal (#191E1C),
 * Warm Walnut & Brass (#8B5A2B / #B47724), Clean White (#FFFFFF), Warm Ivory (#F6F5F0)
 */
:root {
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --surface-alt: #EDEBE2;
  --felt-dark: #0C3B29;
  --felt: #14533B;
  --felt-mid: #1D6E4F;
  --felt-tint: #E6F0EC;
  --charcoal: #191E1C;
  --text: #1E2422;
  --text-muted: #4A5550;
  --wood: #6E421B;
  --brass: #B47724;
  --brass-dark: #8C5A16;
  --brass-tint: #FBF4E6;
  --amber-cta: #D98218;
  --amber-cta-hover: #B86B0E;
  --border: #D6D3C7;
  --border-strong: #B5B0A1;
  --danger-tint: #FDF2F0;
  --danger-border: #D9776C;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(12, 59, 41, 0.07);
  --max-w: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--felt-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--felt-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header & Navigation */
.site-header {
  background: var(--felt-dark);
  color: #fff;
  border-bottom: 3px solid var(--brass);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-link:hover {
  color: #FBF4E6;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brass);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.75);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #D2E3DC;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  display: inline-block;
  color: #EAF3EF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .primary-nav {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }
  .primary-nav.is-open {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav a {
    padding: 9px 12px;
  }
}

/* Top Affiliate Disclosure (First child of <main>) */
.aff-disclosure {
  background: var(--brass-tint);
  border: 1px solid #E3C998;
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin: 16px 0 18px;
  font-size: 0.86rem;
  color: var(--charcoal);
}
.aff-disclosure p {
  margin: 0;
}
.aff-disclosure a {
  color: var(--wood);
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
}

/* Typography & Layout Sections */
main.container {
  padding-bottom: 56px;
}

h1, h2, h3, h4 {
  color: var(--charcoal);
  line-height: 1.25;
  margin-top: 0;
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
h3 {
  font-size: 1.18rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.lead, .verdict-lead {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 78ch;
}

/* Hero Section */
.hero-box {
  background: linear-gradient(135deg, var(--felt-dark) 0%, var(--felt) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  margin-bottom: 28px;
  border: 1px solid #246B50;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero-box h1 {
  color: #fff;
  margin-bottom: 12px;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: #F5EADB;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.hero-box p {
  color: #E7F2ED;
  font-size: 1.04rem;
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber-cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--amber-cta-hover);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.24);
  color: #fff;
}
.hero-diagram {
  background: rgba(12, 35, 25, 0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

@media (max-width: 820px) {
  .hero-box {
    grid-template-columns: 1fr;
  }
}

/* Callout & Verdict Boxes */
.verdict-box, .callout-box, .warning-box, .calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--felt);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.warning-box {
  background: var(--danger-tint);
  border-color: #EBC2BC;
  border-left-color: var(--danger-border);
}
.calc-box {
  background: var(--felt-tint);
  border-left-color: var(--brass);
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.calc-controls label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.calc-controls select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
}
.calc-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.96rem;
}
.calc-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Grids & Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}

.card, .product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--felt-tint);
  color: var(--felt-dark);
  border: 1px solid #B7D4C8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin-top: 4px;
  margin-bottom: 8px;
}
.product-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.spec-list {
  padding-left: 18px;
  margin: 10px 0 14px;
  font-size: 0.92rem;
}
.spec-list li {
  margin-bottom: 6px;
}
.tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
  font-size: 0.9rem;
}
.tradeoff-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
@media (max-width: 600px) {
  .tradeoff-grid {
    grid-template-columns: 1fr;
  }
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-alt);
}

/* Amazon CTA Button */
.btn-amazon {
  display: inline-block;
  background: var(--amber-cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  border: 1px solid #B2670B;
  text-align: center;
  transition: background 0.15s ease;
}
.btn-amazon:hover {
  background: var(--amber-cta-hover);
  color: #fff !important;
}

.btn-outline {
  display: inline-block;
  background: var(--surface);
  color: var(--felt-dark);
  border: 1px solid var(--felt);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--felt-tint);
}

/* Comparison Tables (Sticky First Column on Mobile) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 580px;
}
.comp-table th,
.comp-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comp-table thead th {
  background: var(--felt-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comp-table tbody tr:nth-child(even) td {
  background: #FAF9F5;
}
.comp-table th:first-child,
.comp-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  font-weight: 700;
  border-right: 1px solid var(--border);
}
.comp-table thead th:first-child {
  background: var(--felt-dark);
  color: #fff;
}
.comp-table tbody tr:nth-child(even) td:first-child {
  background: #FAF9F5;
}

/* FAQ Block */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--charcoal);
}
.faq-list details p {
  margin: 10px 0 0;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #D8E0DC;
  padding: 40px 0 32px;
  border-top: 4px solid var(--brass);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.98rem;
  margin-top: 0;
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 7px;
}
.site-footer a {
  color: #CFE3DA;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 0.84rem;
  color: #B8C4BE;
}
.footer-legal p {
  margin: 0 0 8px;
}

/* Cookie Banner */
.cookie-banner, .consent {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--charcoal);
  color: #F2F5F3;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 16px 18px;
  z-index: 999;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.cookie-banner[hidden], .consent[hidden] {
  display: none !important;
}
.cookie-banner p, .consent p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.cookie-banner a, .consent a {
  color: #F5D08A;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-cookie-accept, .btn-cookie-decline {
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  border: none;
}
.btn-cookie-accept {
  background: var(--amber-cta);
  color: #fff;
}
.btn-cookie-decline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
