/* OFPANZ editorial shell, adapted from the supplied reference layout. */
:root {
  --primary: #2b4be8;
  --primary-dark: #1c34b5;
  --surface: #ffffff;
  --surface-low: #f5f7fb;
  --surface-high: #edf0f6;
  --text: #0b1220;
  --text-muted: #465063;
  --border: #e2e7ef;
  --sidebar-width: 252px;
  --header-height: 68px;
}

html { scroll-padding-top: 82px; }
body { background: var(--surface-low); color: var(--text); font-family: Inter, Arial, sans-serif; }
h1, h2, h3, h4 { font-family: 'Inter Tight', Inter, Arial, sans-serif; color: var(--text); letter-spacing: -.015em; }
a { color: var(--primary-dark); }
.wrap { max-width: 1160px; padding-left: 32px; padding-right: 32px; }

/* Header and left navigation */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-height); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); color: var(--text); backdrop-filter: blur(14px); }
.site-header .wrap { max-width: none; min-height: var(--header-height); height: var(--header-height); padding: 0 28px; gap: 22px; flex-wrap: nowrap; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--primary); font-size: 1.7rem; line-height: 1; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.logo { color: #14263f; white-space: nowrap; font-family: 'Inter Tight', Inter, sans-serif; font-size: 1.43rem; font-weight: 800; letter-spacing: -.045em; padding: 0; }
.logo img { width: 36px; height: 36px; flex: 0 0 36px; }
.logo .nz { color: #147f72; margin-left: .16em; }
.site-nav { gap: 3px; margin-left: 12px; min-width: 0; }
.site-nav a { color: var(--text-muted); font-size: .82rem; padding: 9px 10px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-high); color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.age-pill { border-radius: 999px; padding: 5px 10px; background: var(--surface-high); color: var(--text-muted); font-size: .7rem; font-weight: 800; white-space: nowrap; letter-spacing: .05em; }
.header-picks { background: var(--primary); border-radius: 8px; color: #fff; padding: 10px 15px; font: 700 .82rem Inter, sans-serif; text-decoration: none; white-space: nowrap; }
.header-picks:hover { background: var(--primary-dark); color: #fff; }
.side-nav { position: fixed; top: var(--header-height); bottom: 0; left: 0; width: var(--sidebar-width); overflow-y: auto; z-index: 45; border-right: 1px solid var(--border); background: var(--surface); scrollbar-width: thin; }
.side-intro { padding: 22px 20px 18px; border-bottom: 1px solid var(--border); }
.side-intro strong { display: block; font-family: 'Inter Tight', Inter, sans-serif; font-size: 1.03rem; color: var(--primary-dark); }
.side-intro span { display: block; margin-top: 5px; color: var(--text-muted); font-size: .79rem; line-height: 1.45; }
.side-group { padding: 13px 10px 16px; border-bottom: 1px solid var(--border); }
.side-label { display: block; padding: 0 12px 8px; color: #687487; text-transform: uppercase; letter-spacing: .09em; font-size: .65rem; font-weight: 800; }
.side-nav a { display: flex; gap: 11px; align-items: center; padding: 9px 12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; text-decoration: none; color: var(--text-muted); font-size: .82rem; font-weight: 600; line-height: 1.25; }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: #eef1fe; border-left-color: var(--primary); color: var(--primary-dark); }
.side-icon { display: inline-flex; justify-content: center; width: 19px; flex: 0 0 19px; font-size: 1rem; line-height: 1; }
.side-help { padding: 17px 20px 22px; font-size: .8rem; color: var(--text-muted); }
.side-help strong { display: block; color: var(--text); margin-bottom: 5px; }
.side-help a { display: inline; padding: 0; border: 0; color: var(--primary-dark); font-size: 1rem; }
.nav-scrim { display: none; }

/* Content rail */
body > main.wrap, body > .hero, body > .site-footer { margin-left: var(--sidebar-width); }
body > main.wrap { max-width: none; width: auto; padding-top: 25px; padding-bottom: 55px; }
body > main.wrap > * { max-width: 1096px; margin-left: auto; margin-right: auto; }
body > main.wrap > .table-scroller, body > main.wrap > .toplist-section { max-width: 1096px; }
body > main.wrap > h2, body > main.wrap > section > h2 { margin-top: 1.8em; }
body > main.wrap > .toplist-section:first-child > h2 { margin-top: 0; }
body > .site-footer { margin-top: 0; background: #fff; color: var(--text-muted); border-top: 1px solid var(--border); }
.site-footer h4 { color: var(--primary-dark); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary-dark); }
.site-footer .footer-rg { border-top-color: var(--border); color: var(--text-muted); }
.site-footer .badge-18 { border-color: var(--primary); color: var(--primary-dark); }

/* Image-led compact hero: photo to the right, readable headline to the left. */
body.has-hero { --hero-image: url('/assets/heroes/casino.jpg'); }
body.page-best-sports-betting-sites { --hero-image: url('/assets/heroes/sports.jpg'); }
body.page-best-crypto-casinos, body.page-no-kyc-casinos { --hero-image: url('/assets/heroes/crypto.jpg'); }
body.page-fast-payout-casinos, body.page-high-payout-casinos { --hero-image: url('/assets/heroes/payout.jpg'); }
.hero { position: relative; isolation: isolate; padding: 28px 0 25px; min-height: 236px; background: #0c1825; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-position: center right; background-size: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,18,32,.98) 0%, rgba(7,18,32,.91) 43%, rgba(7,18,32,.38) 78%, rgba(7,18,32,.15) 100%); }
.hero .wrap { max-width: 1160px; }
.hero h1 { max-width: 800px; color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.45rem); line-height: 1.14; letter-spacing: -.035em; margin: 6px 0 10px; text-wrap: balance; }
.hero p { color: #d7e1ed; max-width: 690px; font-size: .93rem; line-height: 1.5; margin-bottom: 10px; }
.hero .byline { margin-top: 8px; color: #d0d8e6; font-size: .77rem; }
.hero .crumbs { padding: 0; color: #c3d0e1 !important; }
.hero .crumbs a { color: #c3d0e1 !important; }
.trustbar { margin-top: 9px; gap: 7px; }
.trustbar span { padding: 4px 9px; font-size: .7rem; color: #eef5fc; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); }
.editorial-hero { position: relative; isolation: isolate; padding: 33px 32px; margin: 17px auto 24px; min-height: 136px; border-radius: 15px; overflow: hidden; background: #101d32; }
.editorial-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/heroes/casino.jpg') center right / cover; opacity: .45; }
.editorial-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0c172a 0%,rgba(12,23,42,.92) 48%,rgba(12,23,42,.3) 100%); }
.editorial-hero h1 { color: #fff; max-width: 740px; margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.15; text-wrap: balance; }

/* Comparison and editorial cards */
.toplist-section { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 21px 22px 18px; margin-bottom: 22px; box-shadow: 0 8px 25px rgba(11,18,32,.035); }
.toplist-section > h2 { margin: 0 0 15px; font-size: 1.55rem; }
.table-scroller { border-color: var(--border); border-radius: 12px; }
table.toplist.affiliate-toplist { background: #fff; font-size: .85rem; }
table.toplist.affiliate-toplist thead th { background: #172535; color: #e0eaff; border-bottom-color: #2c4052; font-size: .67rem; }
table.toplist.affiliate-toplist td { padding: 12px 10px; border-bottom-color: var(--border); }
table.toplist.affiliate-toplist tbody tr:nth-child(even) { background: #f8faff; }
table.toplist.affiliate-toplist tbody tr:hover { background: #edf2ff; }
table.toplist.affiliate-toplist tbody tr.top-pick { background: #eef3ff; box-shadow: inset 4px 0 var(--primary); }
table.toplist.affiliate-toplist tbody tr.top-pick:hover { background: #e8efff !important; }
.brandcell img, .review-head img, .top-pick-card img { background: #fff; border: 1px solid var(--border); }
.rating .stars { color: #c38500; }
.btn-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; background: linear-gradient(135deg,#1493ff,#00b56d); border-radius: 10px; box-shadow: 0 5px 14px rgba(20,147,255,.18); }
.btn-cta:hover { background: linear-gradient(135deg,#0875d2,#009a5e); transform: translateY(-1px); }
.top-pick-card, .author-box, .toc, .rg-block, .faq details { border-color: var(--border); background: #fff; box-shadow: 0 4px 18px rgba(11,18,32,.025); }
.top-pick-card { border-left: 4px solid var(--primary); }
.top-pick-card .tp-label { color: var(--primary-dark); }
.review { border-top-color: var(--border); }
.proscons div { background: #fff; }
.section-alt { background: #eef2f9; border-radius: 12px; }
.crumbs { color: #6a7485; }
.sticky-pick { display: none; }

@media (max-width: 1170px) {
  .site-nav a { padding: 8px 6px; font-size: .76rem; }
  .site-header .wrap { gap: 12px; }
  .age-pill { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-height: 62px; }
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { padding: 0 16px; }
  .site-nav { display: none; }
  .side-nav { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 28px rgba(11,18,32,.12); }
  .side-nav.is-open { transform: translateX(0); }
  .nav-scrim.is-open { display: block; position: fixed; inset: var(--header-height) 0 0; z-index: 44; border: 0; width: 100%; background: rgba(11,18,32,.45); }
  body > main.wrap, body > .hero, body > .site-footer { margin-left: 0; }
}
@media (max-width: 768px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .btn-cta { max-width: 100%; white-space: normal; text-align: center; }
  body > main.wrap { padding-top: 12px; padding-bottom: 90px; }
  .site-header .wrap { gap: 7px; }
  .logo { font-size: 1.22rem; }
  .logo img { width: 30px; height: 30px; flex-basis: 30px; }
  .header-picks { padding: 9px 10px; font-size: .7rem; }
  .hero { min-height: 0; padding: 17px 0 14px; }
  .hero::after { background: linear-gradient(90deg,rgba(7,18,32,.96),rgba(7,18,32,.75)); }
  .hero h1 { font-size: clamp(1.45rem, 5.1vw, 2rem); margin: 6px 0 9px; }
  .hero p:not(.byline) { display: none; }
  .hero .byline { margin-bottom: 0; }
  .hero .trustbar span:nth-child(n+3) { display: none; }
  .editorial-hero { margin: 12px auto 20px; padding: 24px 20px; min-height: 100px; }
  .toplist-section { padding: 16px 13px; margin-bottom: 15px; }
  .toplist-section > h2 { font-size: 1.36rem; line-height: 1.2; }
  body.tables-enhanced .toplist-section.affiliate-section .table-scroller { overflow: visible; border: 0; }
  body.tables-enhanced table.toplist.affiliate-toplist, body.tables-enhanced table.toplist.affiliate-toplist tbody, body.tables-enhanced table.toplist.affiliate-toplist tr, body.tables-enhanced table.toplist.affiliate-toplist td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
  body.tables-enhanced table.toplist.affiliate-toplist thead { display: none; }
  body.tables-enhanced table.toplist.affiliate-toplist tbody tr { background: #fff; border: 1px solid #d8e3f4; border-radius: 13px; margin: 0 0 12px; padding: 10px 13px; box-shadow: 0 4px 14px rgba(11,18,32,.045); }
  body.tables-enhanced table.toplist.affiliate-toplist tbody tr:nth-child(even) { background: #f9fbff; }
  body.tables-enhanced table.toplist.affiliate-toplist tbody tr.top-pick { border-color: var(--primary); box-shadow: inset 4px 0 var(--primary),0 5px 18px rgba(43,75,232,.09); }
  body.tables-enhanced table.toplist.affiliate-toplist td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #edf0f5; text-align: right; line-height: 1.35; overflow-wrap: anywhere; }
  body.tables-enhanced table.toplist.affiliate-toplist td:last-child { border: 0; padding-bottom: 0; }
  body.tables-enhanced table.toplist.affiliate-toplist td::before { content: attr(data-label); color: #69768a; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: 0 0 31%; }
  body.tables-enhanced table.toplist.affiliate-toplist td.rank { justify-content: flex-start; color: var(--primary-dark); font-size: 1.1rem; }
  body.tables-enhanced table.toplist.affiliate-toplist td.rank::before { content: '#'; flex: 0 0 auto; font-size: 1rem; color: var(--primary-dark); }
  body.tables-enhanced table.toplist.affiliate-toplist td.brandcell { align-items: center; }
  body.tables-enhanced table.toplist.affiliate-toplist td.brandcell .brandlink { justify-content: flex-end; text-align: right; }
  body.tables-enhanced table.toplist.affiliate-toplist td.brandcell img { flex: 0 0 72px; width: 72px; height: 44px; }
  body.tables-enhanced table.toplist.affiliate-toplist td:has(> .btn-cta) { display: block; }
  body.tables-enhanced table.toplist.affiliate-toplist td:has(> .btn-cta)::before { content: none; }
  body.tables-enhanced table.toplist.affiliate-toplist td > .btn-cta { width: 100%; }
  .sticky-pick { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; align-items: center; gap: 9px; min-height: 67px; background: rgba(16,28,43,.96); color: #fff; border-top: 1px solid #34465c; padding: 8px 12px; box-shadow: 0 -7px 20px rgba(0,0,0,.24); backdrop-filter: blur(8px); }
  .sticky-pick img { width: 43px; height: 43px; object-fit: contain; flex: 0 0 43px; background: #fff; border-radius: 7px; padding: 2px; }
  .sticky-pick .sticky-text { flex: 1; min-width: 0; font-size: .7rem; line-height: 1.2; color: #c9d7e5; }
  .sticky-pick .sticky-text strong { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-pick .btn-cta { font-size: .78rem; padding: 9px 14px; white-space: nowrap; }
  .footer-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
  table:not(.toplist) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 420px) {
  .header-picks { display: none; }
  .logo { margin-right: auto; }
  .footer-cols { grid-template-columns: 1fr; }
}
