/* Bet88 Portal — Design DNA (tmh9)
 * Layout: bento-mosaic | Hero: comparison-table-above-fold | Nav: hamburger-drawer
 * Palette: #10161F bg, #222E43 surface, #E9ECF2 ink, #EBA92D accent
 * Fonts: DM Serif Display + DM Sans (1.333 scale, 16px base, airy density)
 */
:root {
  --tmh9-bg: #10161F;
  --tmh9-bg-alt: #161F2D;
  --tmh9-surface: #222E43;
  --tmh9-surface-hi: #2B3A54;
  --tmh9-ink: #E9ECF2;
  --tmh9-muted: #B2BDD0;
  --tmh9-accent: #EBA92D;
  --tmh9-accent2: #D99A26;
  --tmh9-on-accent: #111111;
  --tmh9-ok: #5EEAD4;
  --tmh9-warn: #FCD34D;
  --tmh9-radius: 24px;
  --tmh9-radius-sm: 14px;
  --tmh9-font-display: 'DM Serif Display', Georgia, serif;
  --tmh9-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --tmh9-max: 1220px;
  --tmh9-space: clamp(1.25rem, 2.5vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tmh9-bg);
  color: var(--tmh9-ink);
  font-family: var(--tmh9-font-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--tmh9-radius-sm); }
a { color: var(--tmh9-accent); text-underline-offset: 3px; }
a:hover { color: #F7C768; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tmh9-accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--tmh9-font-display);
  font-weight: 400;
  line-height: 1.22;
  margin-top: 0;
  color: var(--tmh9-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); margin: 2.2rem 0 0.85rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 1.5rem 0 0.6rem; }
p { margin: 0 0 1.1rem; color: var(--tmh9-ink); }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

.tmh9-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tmh9-accent); color: var(--tmh9-on-accent);
  padding: 0.75rem 1.25rem; font-weight: 700; z-index: 9999;
}
.tmh9-skip:focus { left: 1rem; top: 1rem; border-radius: 10px; }

.tmh9-wrap { width: min(100% - 2rem, var(--tmh9-max)); margin-inline: auto; }

/* Compliance non-blocking age ribbon */
.tmh9-ribbon {
  background: var(--tmh9-bg-alt);
  color: var(--tmh9-muted);
  font-size: 0.84rem;
  padding: 0.45rem 0;
  text-align: center;
}
.tmh9-ribbon strong { color: var(--tmh9-accent); }

/* Minimal Header with Hamburger Drawer */
.tmh9-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(16, 22, 31, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
}
.tmh9-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tmh9-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--tmh9-ink);
  font-family: var(--tmh9-font-display); font-size: 1.35rem;
}
.tmh9-brand img { width: 38px; height: 38px; border-radius: 10px; }
.tmh9-header-actions { display: flex; align-items: center; gap: 0.65rem; }

/* Solid Block CTA Buttons (DNA: solid-block-button) */
.tmh9-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--tmh9-accent); color: var(--tmh9-on-accent);
  font-weight: 700; text-decoration: none;
  padding: 0.72rem 1.25rem; border-radius: 10px;
  min-height: 44px; border: 0; cursor: pointer; font-size: 0.95rem;
}
.tmh9-btn:hover { background: var(--tmh9-accent2); color: var(--tmh9-on-accent); }
.tmh9-btn-ghost {
  background: var(--tmh9-surface); color: var(--tmh9-ink);
}
.tmh9-btn-ghost:hover { background: var(--tmh9-surface-hi); color: var(--tmh9-ink); }

.tmh9-menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--tmh9-surface); color: var(--tmh9-ink);
  border: 0; border-radius: 10px; padding: 0.65rem 1rem;
  min-height: 44px; min-width: 44px; cursor: pointer; font-weight: 600;
}

/* Slide-over Hamburger Drawer */
.tmh9-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(6, 9, 14, 0.72);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 190;
}
.tmh9-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.tmh9-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--tmh9-bg-alt); padding: 1.5rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease; z-index: 200;
}
.tmh9-drawer.is-open { transform: translateX(0); }
.tmh9-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.tmh9-drawer-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tmh9-drawer-nav a {
  display: block; padding: 0.65rem 0.9rem; border-radius: 12px;
  color: var(--tmh9-ink); text-decoration: none; font-weight: 500;
}
.tmh9-drawer-nav a:hover { background: var(--tmh9-surface); color: var(--tmh9-accent); }
.tmh9-drawer-group { font-size: 0.8rem; color: var(--tmh9-muted); margin: 1.1rem 0 0.4rem; padding-left: 0.9rem; }

/* Single Hero Reveal (DNA: single-hero-reveal) */
@keyframes tmh9Reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tmh9-hero { padding: 2.2rem 0 2.6rem; animation: tmh9Reveal 0.45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .tmh9-hero { animation: none; } }

/* Comparison Table Above Fold Hero */
.tmh9-hero-grid {
  display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 1.5rem; align-items: stretch;
}
@media (max-width: 900px) { .tmh9-hero-grid { grid-template-columns: 1fr; } }

/* Soft-Pill Bento Tiles (DNA: 24px radius, tinted fill, no border) */
.tmh9-tile {
  background: var(--tmh9-surface);
  border-radius: var(--tmh9-radius);
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
}
.tmh9-tile-deep { background: var(--tmh9-bg-alt); }
.tmh9-tile-accent { background: #2A3548; }

.tmh9-bento {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}
.tmh9-span-12 { grid-column: span 12; }
.tmh9-span-8 { grid-column: span 8; }
.tmh9-span-7 { grid-column: span 7; }
.tmh9-span-6 { grid-column: span 6; }
.tmh9-span-5 { grid-column: span 5; }
.tmh9-span-4 { grid-column: span 4; }
@media (max-width: 860px) {
  .tmh9-span-8, .tmh9-span-7, .tmh9-span-6, .tmh9-span-5, .tmh9-span-4 { grid-column: span 12; }
}

.tmh9-section { padding: 2rem 0; }
.tmh9-section-head { margin-bottom: 1.35rem; max-width: 72ch; }
.tmh9-lead { font-size: 1.08rem; color: var(--tmh9-muted); }

/* Breadcrumbs */
.tmh9-crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none;
  padding: 0; margin: 0 0 1rem; font-size: 0.88rem; color: var(--tmh9-muted);
}
.tmh9-crumbs li::after { content: "/"; margin-left: 0.4rem; opacity: 0.5; }
.tmh9-crumbs li:last-child::after { content: ""; }
.tmh9-crumbs a { color: var(--tmh9-muted); text-decoration: none; }
.tmh9-crumbs a:hover { color: var(--tmh9-accent); }

/* Meta & Author Byline */
.tmh9-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  font-size: 0.9rem; color: var(--tmh9-muted); margin-bottom: 1.25rem;
}
.tmh9-byline a { color: var(--tmh9-accent); font-weight: 600; }

/* Callout Boxes */
.tmh9-callout {
  background: var(--tmh9-bg-alt);
  border-left: 4px solid var(--tmh9-accent);
  border-radius: 0 var(--tmh9-radius-sm) var(--tmh9-radius-sm) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}
.tmh9-tldr {
  background: #1C273A;
  border-radius: var(--tmh9-radius-sm);
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
}
.tmh9-myth-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0;
}
@media (max-width: 720px) { .tmh9-myth-box { grid-template-columns: 1fr; } }
.tmh9-myth-col { background: var(--tmh9-bg-alt); border-radius: var(--tmh9-radius-sm); padding: 1.1rem; }
.tmh9-fact-col { background: #1A2F38; border-radius: var(--tmh9-radius-sm); padding: 1.1rem; }
.tmh9-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 0.22rem 0.65rem; border-radius: 999px; margin-bottom: 0.5rem;
  background: var(--tmh9-accent); color: var(--tmh9-on-accent);
}
.tmh9-tag-alt { background: var(--tmh9-surface-hi); color: var(--tmh9-ink); }

/* Responsive Data Tables */
.tmh9-table-wrap { overflow-x: auto; border-radius: var(--tmh9-radius-sm); margin: 1rem 0 1.4rem; }
.tmh9-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--tmh9-bg-alt); }
.tmh9-table th, .tmh9-table td { padding: 0.75rem 0.9rem; text-align: left; }
.tmh9-table th { background: #192436; color: var(--tmh9-accent); font-weight: 700; }
.tmh9-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }

/* Article Layout */
.tmh9-article-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; align-items: start;
}
@media (max-width: 960px) { .tmh9-article-grid { grid-template-columns: 1fr; } }
.tmh9-prose { max-width: 76ch; }
.tmh9-sidebar { position: sticky; top: 5.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.tmh9-figure { margin: 1.4rem 0; }
.tmh9-figure figcaption { font-size: 0.84rem; color: var(--tmh9-muted); margin-top: 0.45rem; }

/* PAA FAQ Blocks */
.tmh9-faq-item {
  background: var(--tmh9-surface); border-radius: var(--tmh9-radius-sm);
  padding: 1.15rem 1.35rem; margin-bottom: 0.9rem;
}
.tmh9-faq-item h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--tmh9-accent); }
.tmh9-faq-item p { margin: 0; }

/* CTA Strip & Disclosure */
.tmh9-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.tmh9-disclosure {
  font-size: 0.84rem; color: var(--tmh9-muted);
  background: var(--tmh9-bg-alt); border-radius: var(--tmh9-radius-sm);
  padding: 0.85rem 1.1rem; margin: 1.25rem 0;
}

/* Responsible Gaming Box */
.tmh9-rg {
  background: #1A2434; border-radius: var(--tmh9-radius);
  padding: 1.5rem; margin: 2rem 0;
}
.tmh9-rg h2 { margin-top: 0; font-size: 1.55rem; }

/* Minimal One-Row Footer (DNA: minimal-one-row) */
.tmh9-footer {
  background: var(--tmh9-bg-alt);
  padding: 1.6rem 0; margin-top: 3rem;
  font-size: 0.88rem; color: var(--tmh9-muted);
}
.tmh9-footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.tmh9-footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem; }
.tmh9-footer-links a { color: var(--tmh9-muted); text-decoration: none; }
.tmh9-footer-links a:hover { color: var(--tmh9-accent); }

.tmh9-link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.tmh9-link-list a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 12px;
  background: var(--tmh9-bg-alt); color: var(--tmh9-ink); text-decoration: none;
}
.tmh9-link-list a:hover { background: var(--tmh9-surface-hi); color: var(--tmh9-accent); }

.tmh9-refs { font-size: 0.88rem; color: var(--tmh9-muted); }
.tmh9-refs li { margin-bottom: 0.35rem; }
