/* Crown Casino Reviews — navy and emerald, card-grid layout */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-light: #34D399;
  --mint: #ECFDF5;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; }
a { color: var(--emerald-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--emerald-light); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }

/* Disclosure bar */
.disclosure-bar { background: #020617; color: #E2E8F0; font-size: .8rem; }
.disclosure-bar ul { list-style: none; margin: 0; padding: .5rem 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; }
.disclosure-bar a { color: #A7F3D0; }
.age-mark { display: inline-block; border: 2px solid #F87171; color: #FECACA; border-radius: 999px; font-weight: 700; padding: 0 .45rem; margin-right: .4rem; line-height: 1.5; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--emerald); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .35rem; color: var(--white); text-decoration: none; font-family: var(--head); font-size: 1.2rem; font-weight: 700; }
.brand svg { flex: none; margin-right: .35rem; }
.brand span { color: var(--emerald-light); }
.nav-toggle { display: none; background: none; border: 1px solid #475569; color: var(--white); font: inherit; padding: .4rem .8rem; border-radius: 6px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav a { color: #E2E8F0; text-decoration: none; font-size: .92rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--emerald-light); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-light); font-weight: 600; margin-bottom: .8rem; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 62ch; font-size: 1.12rem; color: #CBD5E1; }
.badges { list-style: none; margin: 2rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.badges li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 1rem; }
.badges strong { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--emerald-light); line-height: 1.1; margin-bottom: .25rem; }
.badges span { font-size: .88rem; color: #CBD5E1; }
.hero-note { font-size: .85rem; color: #94A3B8; margin: 0; }
.hero-note a { color: #A7F3D0; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; scroll-margin-top: 64px; }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section-intro { max-width: 70ch; color: var(--muted); }
.note { background: var(--mint); border-left: 4px solid var(--emerald); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; font-size: .92rem; max-width: 80ch; }

/* Review cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.review-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 1.3rem; display: flex; flex-direction: column; }
.review-card[hidden] { display: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.brand-logo { flex: none; width: 160px; height: 54px; padding: 10px 16px; object-fit: contain; background: var(--navy); border-radius: 8px; border: 1px solid var(--line); }
.brand-logo--light { background: var(--white); padding-block: 4px; }
.score { margin: 0; text-align: right; line-height: 1.1; }
.score strong { font-family: var(--head); font-size: 1.9rem; color: var(--emerald-dark); }
.score span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.review-card h3 { margin-bottom: .4rem; }
.facts { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.facts li { padding-left: 1.4rem; position: relative; margin-bottom: .3rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--emerald); }
.licence { margin: 0 0 .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; font-size: .88rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
.licence div:first-child, .licence div:last-child { grid-column: 1 / -1; }
.licence dt { color: var(--muted); font-size: .78rem; }
.licence dd { margin: 0; font-weight: 600; overflow-wrap: break-word; }
.register-link { font-size: .88rem; }
.btn { display: block; margin-top: auto; text-align: center; background: var(--emerald-dark); color: var(--white); font-weight: 700; text-decoration: none; padding: .8rem 1rem; border-radius: 8px; }
.btn:hover { background: var(--navy); color: var(--white); }
.small-print { font-size: .75rem; color: var(--muted); text-align: center; margin: .6rem 0 0; }

/* Comparison table */
.controls { display: grid; grid-template-columns: 2fr 1fr auto; gap: 1rem; align-items: end; margin: 1.5rem 0 .6rem; }
.controls label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.controls input, .controls select { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #94A3B8; border-radius: 8px; background: var(--white); color: var(--ink); }
.controls button { font: inherit; padding: .6rem 1rem; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 8px; cursor: pointer; }
.status { font-size: .88rem; color: var(--muted); }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
.compare caption { text-align: left; padding: .9rem 1rem; font-size: .85rem; color: var(--muted); caption-side: bottom; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: var(--white); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.compare thead button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.compare thead button::after { content: " ↕"; color: var(--emerald-light); }
.compare th[aria-sort="ascending"] button::after { content: " ↑"; }
.compare th[aria-sort="descending"] button::after { content: " ↓"; }
.compare tbody th { font-family: var(--head); font-size: 1.05rem; }
.compare tbody tr:hover { background: var(--mint); }
.compare tr[hidden] { display: none; }
.pill { display: inline-block; background: var(--mint); color: var(--emerald-dark); border: 1px solid #A7F3D0; border-radius: 999px; padding: .05rem .6rem; font-weight: 700; }
.btn-sm { display: inline-block; background: var(--emerald-dark); color: var(--white); text-decoration: none; font-weight: 600; padding: .4rem .8rem; border-radius: 6px; white-space: nowrap; }
.btn-sm:hover { background: var(--navy); color: var(--white); }

/* Methodology */
.criteria { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .9rem; counter-reset: crit; }
.criteria li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.criteria .weight { font-family: var(--head); font-size: 1.6rem; color: var(--emerald-dark); line-height: 1; }
.criteria h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.criteria p { margin: 0; color: var(--muted); font-size: .95rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

/* Verification policy */
.steps { margin: 1.4rem 0; padding: 0; list-style: none; counter-reset: step; border-left: 3px solid var(--emerald); }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.2rem 2.6rem; }
.steps li::before { content: counter(step); position: absolute; left: -1.05rem; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps strong { display: block; }
.policy-box { background: var(--navy); color: #E2E8F0; border-radius: 12px; padding: 1.4rem 1.5rem; }
.policy-box h3 { color: var(--white); }
.policy-box ul { margin: 0; padding-left: 1.2rem; }
.policy-box li { margin-bottom: .4rem; }
.policy-box a { color: #A7F3D0; }

/* Safer gambling */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.help-card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--emerald); border-radius: 10px; padding: 1.1rem 1.2rem; }
.help-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.help-card p { font-size: .93rem; color: var(--muted); margin-bottom: .5rem; }
.help-card .big { font-family: var(--head); font-size: 1.4rem; color: var(--navy); font-weight: 700; }

/* Legal pages */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.4rem, 4vw, 3rem); margin: 2.5rem auto; max-width: 860px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2rem; }
.doc .meta { color: var(--muted); font-size: .9rem; }
.doc dl { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem 1rem; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 1rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.doc th { background: var(--paper); }

/* Footer */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #A7F3D0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); font-family: var(--body); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.footer-legal { border-top: 1px solid #334155; margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #94A3B8; }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 3px solid var(--emerald); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .site-nav a { display: block; padding: .7rem 0; }
  .card-grid, .help-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .doc dl { grid-template-columns: 1fr; }
  .doc table { display: block; overflow-x: auto; }
  .criteria li { grid-template-columns: 3.6rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
