/* AliBrown.co.nz — sitewide styles
   Palette: ink #15202b · navy #0c2340 · surface #f4f6f8 · line #dde3e9
   CTA accent (reserved for CTAs only): #00a860 · rating gold #f0a500 */

:root {
  --ink: #15202b;
  --muted: #5a6b7b;
  --navy: #0c2340;
  --navy-2: #11325c;
  --surface: #f4f6f8;
  --line: #dde3e9;
  --cta: #00a860;
  --cta-dark: #008a4f;
  --gold: #f0a500;
  --link: #0b5ea8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(12, 35, 64, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: 1.9rem; margin: 0.4em 0; }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; padding: 8px 0; }
.logo span { color: var(--gold); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: #dbe6f3; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 30px 0 28px; background: radial-gradient(circle at 86% 8%, rgba(70, 157, 220, 0.26), transparent 34%), linear-gradient(115deg, #091d38 0%, #10345e 58%, #164775 100%); }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: linear-gradient(90deg, #f2b63d 0 16%, #3c91cc 16% 72%, #f2b63d 100%); }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.16; letter-spacing: -0.025em; max-width: 1000px; border-left: 4px solid #f2b63d; padding-left: 18px; margin: 12px 0 14px; text-wrap: balance; }
.hero p { color: #d9e8f5; max-width: 830px; line-height: 1.55; margin: 0 0 14px; }
.hero .crumbs { color: #bbd2e6; margin: 0 0 4px; }
.hero .crumbs a, .hero .crumbs span { color: #c9dded; }
.badges { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.badge { background: rgba(21, 71, 115, 0.8); border: 1px solid rgba(139, 192, 235, 0.38); color: #f2f7fb; font-size: 0.875rem; line-height: 1.35; padding: 7px 12px; border-radius: 999px; }

/* Byline */
.byline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.88rem; color: var(--muted); margin: 14px 0 6px; }
.byline a { color: var(--link); }
.byline-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.7); }
.hero .byline { color: #c2d8ea; max-width: 100%; border-top: 1px solid rgba(136, 188, 227, 0.32); padding-top: 13px; margin: 18px 0 0; }
.hero .byline a { color: #e3eefa; }

/* Toplist cards */
.toplist-heading { margin: 18px 0 10px; }
.toplist { list-style: none; margin: 22px 0; padding: 0; counter-reset: rank; }
.toplist > li { position: relative; display: grid; grid-template-columns: 270px minmax(0, 1fr) 190px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 48px; margin: 0 0 14px; background: #fff; box-shadow: var(--shadow); }
.toplist > li::before { counter-increment: rank; content: counter(rank); position: absolute; left: 0; top: 0; bottom: 0; width: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); font-weight: 800; color: var(--navy); }
.toplist > li.pick-1 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.pick-flag { position: absolute; top: -11px; left: 44px; background: var(--gold); color: #27220f; font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.op-logo { width: 270px; height: 136px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px; display: flex; align-items: center; justify-content: center; }
.op-logo img { display: block; width: 100%; height: 116px; object-fit: contain; }
.op-main h3 { margin: 0 0 4px; font-size: 1.1rem; }
.op-main h3 a { color: var(--navy); text-decoration: none; }
.op-bonus { width: fit-content; max-width: 100%; margin: 4px 0 10px; padding: 8px 11px 9px; border: 1px solid #e5bb57; border-left: 5px solid var(--gold); border-radius: 7px; background: #fff4d6; color: var(--navy); font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.op-bonus::before { content: "BONUS OFFER"; display: block; margin-bottom: 5px; color: #765000; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1; }
.op-bonus.offer-pending { border-color: var(--line); background: var(--surface); color: var(--muted); font-size: 0.98rem; font-weight: 600; }
.op-bonus.offer-pending::before { content: "OFFER STATUS"; color: var(--muted); }
.op-facts { margin: 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.op-facts li::before { content: "✓ "; color: var(--cta); font-weight: 700; }
.op-cta { text-align: center; }
.rating { color: var(--gold); font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.rating small { color: var(--muted); font-weight: 400; }

/* CTA — the only accent-coloured element on the site */
.btn-cta { display: inline-block; background: var(--cta); color: #fff !important; font-weight: 700; text-decoration: none; padding: 12px 26px; border-radius: 8px; box-shadow: 0 2px 0 var(--cta-dark); transition: transform 0.08s ease; white-space: nowrap; }
.btn-cta:hover { transform: translateY(-1px); background: var(--cta-dark); }
.btn-cta small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.9; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 720px; background: #fff; }
table.cmp th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; white-space: nowrap; }
table.cmp td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.cmp tr:nth-child(even) td { background: var(--surface); }
table.cmp .btn-cta { padding: 8px 16px; font-size: 0.85rem; }
table.cmp img { display: block; width: 180px; height: 78px; max-width: none; max-height: none; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; }
table.cmp.offer-table.bonus-col-2 thead th:nth-child(2), table.cmp.offer-table.bonus-col-3 thead th:nth-child(3), table.cmp.offer-table.bonus-col-4 thead th:nth-child(4) { color: #ffe0a0; box-shadow: inset 0 -3px var(--gold); }
table.cmp.offer-table.bonus-col-2 tbody td:nth-child(2), table.cmp.offer-table.bonus-col-3 tbody td:nth-child(3), table.cmp.offer-table.bonus-col-4 tbody td:nth-child(4) { background: #fff4d6; box-shadow: inset 4px 0 var(--gold); color: var(--navy); font-size: 0.98rem; font-weight: 800; line-height: 1.35; }
table.cmp.offer-table.bonus-col-2 tbody td.offer-pending:nth-child(2), table.cmp.offer-table.bonus-col-3 tbody td.offer-pending:nth-child(3), table.cmp.offer-table.bonus-col-4 tbody td.offer-pending:nth-child(4) { background: var(--surface); box-shadow: inset 4px 0 var(--line); color: var(--muted); font-weight: 600; }

table.info { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 14px 0; }
table.info th { text-align: left; background: var(--surface); width: 42%; padding: 9px 12px; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
table.info td { padding: 9px 12px; border: 1px solid var(--line); }

/* Mini review */
.review { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 34px; }
.review-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-head .op-logo { flex: 0 1 270px; max-width: 100%; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.pros, .cons { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; background: #fff; }
.pros h4, .cons h4 { margin: 10px 0 4px; font-size: 0.95rem; }
.pros ul, .cons ul { margin: 6px 0; padding-left: 2px; list-style: none; }
.pros li::before { content: "✓ "; color: var(--cta); font-weight: 700; }
.cons li::before { content: "✕ "; color: #c0392b; font-weight: 700; }

/* Callouts & FAQ */
.note { background: var(--surface); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 18px 0; font-size: 0.95rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 0 16px; background: #fff; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; padding: 13px 0; }
.faq p { margin-top: 0; }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; font-size: 0.93rem; }
.toc strong { color: var(--navy); }
.toc ol { margin: 8px 0 2px; padding-left: 20px; columns: 2; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Responsible gambling */
.rg-note { background: #fdf6e4; border: 1px solid #e8d49a; border-radius: var(--radius); padding: 14px 18px; margin: 26px 0; font-size: 0.9rem; }
.rg-note strong { color: #7a5c00; }

/* Author card */
.author-card { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; background: var(--surface); align-items: flex-start; }
.author-card .avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.author-card p { margin: 4px 0 0; font-size: 0.92rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c9db; margin-top: 50px; padding: 34px 0 26px; font-size: 0.9rem; }
.site-footer a { color: #dbe6f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.footer-cols h4 { color: #fff; font-size: 0.95rem; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 6px 0; }
.footer-rg { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 26px; padding-top: 18px; font-size: 0.82rem; color: #93a8bf; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; margin-right: 10px; }

/* Breadcrumbs */
.crumbs { font-size: 0.84rem; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }

/* Responsive */
@media (max-width: 860px) {
  .toplist > li { grid-template-columns: 220px minmax(0, 1fr); }
  .toplist .op-logo { width: 220px; }
  .op-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .rating { margin-bottom: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header .wrap { gap: 12px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 40px; margin-left: auto; border: 1px solid rgba(240, 165, 0, 0.7); border-radius: 7px; background: var(--navy-2); cursor: pointer; }
  .menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--gold); transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .site-nav { display: none; flex: 0 0 100%; flex-direction: column; gap: 2px; padding: 10px 0 12px; border-top: 2px solid var(--gold); }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; }
  .hero { padding: 22px 0 20px; }
  .hero h1 { font-size: clamp(1.6rem, 3.5vw, 2rem); padding-left: 12px; margin: 0 0 12px; }
  .hero .crumbs { display: none; }
  .hero .byline { font-size: 0.875rem; margin-top: 12px; padding-top: 10px; }
  .hero-money > .wrap > p:not(.byline), .hero-money .badges { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  .toplist > li { grid-template-columns: 1fr; padding-left: 44px; }
  .toplist .op-logo { width: min(100%, 270px); }
  .author-card { flex-direction: column; }
  .author-card .avatar { width: 112px; height: 112px; }
}
