﻿/* ==========================================================================
   BricksBoxingKC - online blackjack casino comparison
   Static stylesheet. No frameworks, no JavaScript.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --ink: #0d0d11;
  --ink-soft: #16161d;
  --ink-line: #2a2a35;
  --red: #c8102e;
  --red-dark: #9d0a23;
  --red-tint: #fdeced;
  --paper: #ffffff;
  --paper-alt: #f5f5f8;
  --paper-deep: #ecedf1;
  --text: #23232a;
  --text-muted: #5c5c6a;
  --line: #dfdfe6;
  --gold: #b98a2a;
  --green: #1c7a4a;

  /* Type */
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 1.0625rem;
  --lh-base: 1.62;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;

  /* Shape */
  --radius: 5px;
  --radius-lg: 7px;
  --border: 1px solid var(--line);
  --shadow-sm: 0 1px 2px rgba(13, 13, 17, 0.06);
  --shadow-md: 0 2px 10px rgba(13, 13, 17, 0.08);

  /* Layout */
  --container: 1120px;
  --measure: 74ch;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--red);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 700;
}

h4 {
  font-size: 1.03rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15rem;
}

li {
  margin-bottom: var(--sp-2);
}

strong {
  color: var(--ink);
}

hr {
  border: 0;
  border-top: var(--border);
  margin: var(--sp-6) 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--red);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.section {
  padding-block: var(--sp-7);
}

.section--alt {
  background: var(--paper-alt);
  border-block: var(--border);
}

.section--tight {
  padding-block: var(--sp-6);
}

.section__head {
  max-width: 62ch;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.section__head p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.prose h3 {
  margin-top: var(--sp-6);
}

.prose h4 {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.note {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 62px;
  padding-block: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  width: min(160px, 50vw);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* CSS only hamburger toggle. Hidden on desktop, no JavaScript involved. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-soft);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.nav-btn__bars,
.nav-btn__bars::before,
.nav-btn__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.nav-btn__bars {
  position: relative;
}

.nav-btn__bars::before,
.nav-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-btn__bars::before {
  top: -6px;
}

.nav-btn__bars::after {
  top: 6px;
}

.nav-toggle:focus-visible + .nav-btn {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.nav-btn__close {
  display: none;
}

.nav-toggle:checked + .nav-btn .nav-btn__open {
  display: none;
}

.nav-toggle:checked + .nav-btn .nav-btn__close {
  display: inline;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  color: #e7e7ee;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--ink-line);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: var(--red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--paper);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-4);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: var(--sp-6);
  text-align: left;
}

.hero__content {
  min-width: 0;
}

.hero h1 {
  margin-bottom: var(--sp-3);
}

.hero__lede {
  font-size: 1.09rem;
  color: var(--text);
  margin-bottom: var(--sp-4);
  max-width: 68ch;
}

.hero-pick {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-4);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--red-tint);
  box-shadow: var(--shadow-sm);
}

.hero-pick__copy p {
  margin: 0;
}

.hero-pick__eyebrow {
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-pick__logo {
  width: 100%;
  height: 62px;
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--ink);
  object-fit: contain;
  object-position: center;
}

.hero-pick__title {
  margin-top: var(--sp-1) !important;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 650;
}

.hero-pick__title strong {
  color: var(--red);
}

.hero-pick__offer {
  margin-top: var(--sp-2) !important;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-pick__detail {
  margin-top: var(--sp-1) !important;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-pick .btn {
  width: 100%;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--border);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.byline__img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper-deep);
}

.byline__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  display: block;
}

.byline__role {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  margin: 0;
}

.hero__facts strong {
  display: block;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   7. Ranked casino list
   -------------------------------------------------------------------------- */
.ranking {
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-7);
}

.ranking__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.ranking__head h2 {
  margin: 0;
}

.ranking__updated {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ranking__notice {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  color: var(--ink);
  font-weight: 600;
}

.card-list {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list > li {
  margin: 0;
}

.op-card {
  display: grid;
  grid-template-columns: 46px minmax(150px, 200px) minmax(0, 1fr) minmax(190px, 220px);
  gap: var(--sp-4);
  align-items: center;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
  position: relative;
}

.op-card--top {
  border-color: var(--red);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.op-card__rank {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.op-card--top .op-card__rank {
  background: var(--red);
}

.op-card__brand {
  min-width: 0;
}

.op-mark {
  display: grid;
  place-items: center;
  height: 74px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: var(--sp-2);
  line-height: 1.2;
}

.op-card--top .op-mark {
  border-bottom-color: var(--red);
}

/* Text fallback when a brand logo could not be fetched */
.op-mark--text {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.op-card__geo {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-dark);
  margin-top: var(--sp-2);
}

.op-card__geo::before {
  content: "\26A0";
  margin-right: 0.3rem;
}

.op-card__name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin: var(--sp-2) 0 0;
  overflow-wrap: break-word;
}

.op-card__body {
  min-width: 0;
}

.op-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-1);
}

.op-card__offer {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  margin: 0;
  overflow-wrap: break-word;
}

.op-card__offer strong {
  color: var(--red);
}

.op-card__body {
  background: var(--red-tint);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3) var(--sp-4);
}

.op-card__bonus {
  margin: 0;
}

.op-card__bonus-label {
  display: inline-block;
  margin: 0 0 var(--sp-2);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.op-card__bonus-value {
  margin: 0;
  color: var(--red);
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.18;
}

.op-card__bonus-detail {
  margin: var(--sp-1) 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.op-card__code {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.op-card__action {
  display: grid;
  justify-items: stretch;
  gap: var(--sp-2);
}

.op-card__action small {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
}

.op-terms {
  text-align: center;
  margin: var(--sp-4) 0 0;
}

.badge {
  position: absolute;
  top: -11px;
  left: var(--sp-4);
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.op-card--top {
  margin-top: 11px;
}

/* Logo tiles: hold a real brand logo image on a dark card */
.op-mark {
  position: relative;
  background: #12121a;
  border: 1px solid var(--ink-line);
  border-bottom: 3px solid var(--red);
  height: 74px;
  padding: 0;
  overflow: hidden;
}

.op-mark img {
  position: absolute;
  top: 10px;
  left: 14px;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
}

/* Text fallback for a brand with no downloadable logo asset */
.op-mark--text {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* State availability note on a card */
.op-card__geo {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--red-dark);
  background: var(--red-tint);
  border-radius: 3px;
  padding: 3px 8px;
}

/* Payout tier cards */
.tier {
  background: var(--paper);
  border: var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.tier__time {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.tier__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--sp-1) 0 var(--sp-3);
}

.tier p:last-child {
  margin-bottom: 0;
}

/* Pros and cons */
.pc {
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.pc--pro {
  background: #f0f8f3;
  border-color: #bfe3cd;
}

.pc--con {
  background: #fdeff0;
  border-color: #f0c9ce;
}

.pc h3 {
  margin-bottom: var(--sp-3);
}

.pc ul {
  margin: 0;
  padding-left: 1.15rem;
}

.pc ul:last-child {
  margin-bottom: 0;
}

.pc--pro li::marker {
  color: var(--green);
}

.pc--con li::marker {
  color: var(--red);
}

/* Dated methodology / changelog note */
.changelog {
  max-width: var(--measure);
  margin-inline: auto;
  background: var(--paper-alt);
  border: var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
}

.changelog__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: var(--sp-2);
}

.changelog p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

caption {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.86rem;
  color: var(--text-muted);
  border-bottom: var(--border);
}

th,
td {
  padding: 0.7rem var(--sp-4);
  text-align: left;
  border-bottom: var(--border);
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: var(--paper-alt);
}

tbody th {
  font-family: var(--font-head);
  color: var(--ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Insight and decision blocks
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
  justify-content: center;
  max-width: 1000px;
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
  justify-content: center;
  max-width: 940px;
  margin-inline: auto;
}

.tile {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  margin-bottom: var(--sp-2);
}

.tile p:last-child,
.tile ul:last-child {
  margin-bottom: 0;
}

.tile__step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--red-tint);
  color: var(--red-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--sp-3);
}

.review-list {
  display: grid;
  gap: var(--sp-5);
}

.casino-review {
  padding: var(--sp-5);
  border: var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.casino-review > header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.casino-review h3 {
  margin: 0;
}

.casino-review__rank {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.casino-review__verdict {
  margin: 0.2rem 0 0;
  color: var(--red-dark);
  font-weight: 700;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-block: var(--sp-4);
}

.pros-cons > div {
  padding: var(--sp-3);
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.pros-cons h4 {
  margin: 0 0 var(--sp-2);
}

.pros-cons ul {
  margin: 0;
}

@media (max-width: 620px) {
  .casino-review {
    padding: var(--sp-4);
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.callout {
  background: var(--ink);
  color: #e9e9f0;
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  max-width: 1000px;
  margin-inline: auto;
}

.callout h2,
.callout h3 {
  color: #fff;
}

.callout ul {
  margin-bottom: 0;
}

.callout li::marker {
  color: var(--red);
}

.callout strong {
  color: #fff;
}

/* Tier cards (edge / payout tiers) */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  max-width: 1000px;
  margin-inline: auto;
}

.tier {
  background: var(--paper);
  border: var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.tier__tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-1);
}

.tier__val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}

.tier p:last-child {
  margin-bottom: 0;
}

/* Pros and cons two-column block */
.proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  max-width: 960px;
  margin-inline: auto;
}

.proscons__col {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.proscons__col h3 {
  margin-bottom: var(--sp-3);
}

.proscons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proscons li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--sp-2);
}

.proscons li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.proscons--pro li::before {
  content: "\2713";
  color: var(--green);
}

.proscons--con li::before {
  content: "\2715";
  color: var(--red);
}

/* Dated methodology / changelog note */
.changelog {
  max-width: var(--measure);
  margin-inline: auto;
  background: var(--paper-alt);
  border: var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
}

.changelog__date {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.changelog ul:last-child,
.changelog p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Article
   -------------------------------------------------------------------------- */
.article {
  background: var(--paper);
}

.article__head {
  max-width: var(--measure);
  margin-inline: auto;
  border-left: 4px solid var(--red);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.article__head p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Desktop only sidebar table of contents */
.article__layout {
  display: block;
}

.article__aside {
  display: none;
}

@media (min-width: 1100px) {
  .article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: var(--sp-7);
    align-items: start;
  }

  .article__layout .prose {
    margin-inline: 0;
  }

  /* Align the article heading with the content column, not the page centre */
  .article__head {
    margin-inline: 0;
    max-width: calc(100% - 264px - var(--sp-7));
  }

  .article__aside {
    display: block;
    position: sticky;
    top: var(--sp-5);
  }
}

.toc {
  background: var(--paper-alt);
  border: var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--sp-4);
}

.toc h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  border-top: var(--border);
}

.toc li:first-child a {
  border-top: 0;
}

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
}

.toc a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* Blog images */
.article__figure {
  margin: var(--sp-6) 0;
}

.article__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: var(--border);
}

.pull {
  border-left: 3px solid var(--red);
  background: var(--paper-alt);
  padding: var(--sp-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: var(--sp-5);
}

.pull p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: var(--measure);
  margin-inline: auto;
}

.faq__item {
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.15s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.faq__item summary + p {
  margin-top: var(--sp-3);
}

.faq__item p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Contact page bits
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
  max-width: 960px;
  margin-inline: auto;
}

.field {
  margin-bottom: var(--sp-4);
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: var(--sp-1);
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.dl-contact {
  margin: 0;
}

.dl-contact dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--sp-3);
}

.dl-contact dd {
  margin: 0;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   12b. Back to top button
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.to-top:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.to-top__arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 3px;
}

/* Reveal on scroll without JavaScript. Browsers without scroll-driven
   animation support simply show the button at all times. */
@supports (animation-timeline: scroll()) {
  .to-top {
    opacity: 0;
    visibility: hidden;
    animation: to-top-reveal linear both;
    animation-timeline: scroll(root block);
    animation-range: 320px 520px;
  }

  @keyframes to-top-reveal {
    from {
      opacity: 0;
      visibility: hidden;
    }

    to {
      opacity: 1;
      visibility: visible;
    }
  }
}

/* --------------------------------------------------------------------------
   12c. Cookie notice
   -------------------------------------------------------------------------- */
/* The checkbox is the dismiss control. It is clipped from view but stays
   focusable, so the label works for both pointer and keyboard users. */
/* Fixed rather than absolute on purpose. The checkbox sits at the end of the
   document, so focusing it from the label would scroll the page to the bottom.
   Pinning it inside the viewport means the click only dismisses the notice. */
.cookie-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cookie-note {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  border-top: 3px solid var(--red);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  animation: cookie-note-in 0.35s ease-out 2s forwards;
}

.cookie-toggle:checked ~ .cookie-note {
  display: none;
}

/* Lift the back to top button clear of the notice while it is on screen */
.cookie-toggle:not(:checked) ~ .to-top {
  bottom: 6.5rem;
}

/* Appears two seconds after the page loads. */
@keyframes cookie-note-in {
  from {
    opacity: 0;
    visibility: visible;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.cookie-note__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-3);
}

.cookie-note__text {
  flex: 1 1 260px;
  margin: 0;
  color: #d6d6de;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cookie-note__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-note__text a:hover {
  color: var(--red);
}

.cookie-note__btn {
  flex: 0 0 auto;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cookie-toggle:focus-visible ~ .cookie-note .cookie-note__btn {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cookie-note__inner {
    flex-wrap: nowrap;
    gap: var(--sp-3);
  }

  .cookie-note__text {
    flex: 1 1 auto;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .cookie-note__btn {
    padding-inline: var(--sp-3);
    font-size: 0.82rem;
  }

  .cookie-toggle:not(:checked) ~ .to-top {
    bottom: 7.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-note {
    transform: none;
    animation: cookie-note-fade 0.01s linear 2s forwards;
  }

  @keyframes cookie-note-fade {
    to {
      opacity: 1;
      visibility: visible;
    }
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b9b9c6;
  padding-block: var(--sp-6);
  border-top: 3px solid var(--red);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.site-footer h2 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: var(--sp-3);
}

.site-footer a {
  color: #e3e3ec;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: var(--sp-2);
}

.site-footer__bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #9a9aa8;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
/* Hamburger navigation on tablet and phone widths */
@media (max-width: 900px) {
  .site-header__inner {
    justify-content: space-between;
    min-height: 0;
    padding-block: var(--sp-2);
    row-gap: var(--sp-2);
  }

  .brand__tag {
    display: none;
  }

  .nav-btn {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    display: block;
    border-top: 1px solid var(--ink-line);
    padding-top: var(--sp-2);
  }

  .site-nav li + li {
    border-top: 1px solid var(--ink-line);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .op-card {
    grid-template-columns: 42px minmax(120px, 160px) minmax(0, 1fr);
    grid-template-areas:
      "rank brand body"
      "act  act   act";
    row-gap: var(--sp-4);
  }

  .op-card__rank {
    grid-area: rank;
    align-self: start;
  }

  .op-card__brand {
    grid-area: brand;
  }

  .op-card__body {
    grid-area: body;
  }

  .op-card__action {
    grid-area: act;
  }
}

@media (max-width: 700px) {
  :root {
    --fs-base: 1rem;
    --sp-7: 2.1rem;
    --sp-8: 2.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    padding-inline: var(--sp-4);
  }

  .ranking__head {
    margin-bottom: var(--sp-3);
  }

  .hero {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-3);
  }

  .hero__lede {
    font-size: 1.02rem;
  }

  .ranking {
    padding-top: var(--sp-3);
  }

  .op-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "body"
      "act";
    padding: var(--sp-4);
    row-gap: var(--sp-3);
  }

  .op-card__rank {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .op-card__brand {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--sp-3);
    align-items: center;
    padding-right: 44px;
  }

  .op-mark {
    height: 58px;
    font-size: 0.9rem;
  }

  .op-card__name {
    margin: 0;
  }

  .op-card__body {
    padding: var(--sp-3);
  }

  .op-card__bonus-value {
    font-size: 1.3rem;
  }

  .hero-pick {
    display: none;
  }

  /* Byline and the three facts share one row on phones */
  .hero__meta {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
  }

  .byline {
    flex: 0 0 auto;
    gap: 0.45rem;
  }

  .byline__img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-width: 1px;
  }

  .byline__name {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .byline__role {
    font-size: 0.62rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .hero__facts {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
    gap: 1.6rem;
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .hero__facts li {
    white-space: nowrap;
  }

  .hero__facts strong {
    font-size: 0.74rem;
  }
}

/* Keep the byline row on one line on the narrowest phones */
@media (max-width: 360px) {
  .hero__meta {
    gap: 0.4rem;
  }

  .byline__img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .byline__name {
    font-size: 0.72rem;
  }

  .byline__role {
    font-size: 0.57rem;
  }

  .hero__facts {
    gap: 0.72rem;
    font-size: 0.56rem;
  }

  .hero__facts strong {
    font-size: 0.68rem;
  }
}

@media (max-width: 340px) {
  .op-card__brand {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 44px;
  }
}
