/* ------------------------------------------------------------------ *
 * Theme 01 — editorial / flat / light
 * ------------------------------------------------------------------ */

:root {
  --bg:           #fbfaf7;
  --surface:      #ffffff;
  --ink:          #161717;
  --ink-soft:     #3f4244;
  --ink-muted:    #76797b;
  --rule:         #e7e2d6;
  --rule-soft:    #efece4;
  --accent:       #0e5c3a;
  --accent-hover: #0a4429;
  --select-bg:    #d6e6dc;

  --max-w:        1100px;
  --wide-w:       1100px;

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--select-bg); color: var(--ink); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .12s ease, color .12s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
}

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Mobile nav toggle: visually-hidden checkbox + hamburger label.
   Desktop: button is hidden, nav is always visible.
   Mobile: button shows, nav hides until checkbox is checked. */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: -1px;
}
.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: border-color .15s ease;
}
.nav-toggle-btn:hover { border-color: var(--ink); }
.nav-toggle-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
  transform-origin: center;
}
.nav-toggle:focus-visible ~ .nav-toggle-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-logo:hover { color: var(--ink); text-decoration: none; }
.site-logo__dot { color: var(--accent); }
/* Image logo: scale up visually while keeping the header from growing
   via negative vertical margins. */
.site-logo--image img {
  display: block;
  height: 48px;
  width: auto;
  margin: -10px 0;
}
@media (max-width: 720px) {
  .site-logo--image img {
    height: 40px;
    margin: -8px 0;
  }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- article ---------- */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article__meta span + span::before {
  content: "·";
  margin-right: 16px;
  color: var(--ink-muted);
}

.article h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
}
.article .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 32px 0 10px;
  color: var(--ink);
}

.article p { margin: 0 0 18px; }
.article ul, .article ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--ink-muted); }

.article hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.article figure {
  margin: 36px 0;
}
.article figure img {
  width: 100%;
  border: 1px solid var(--rule-soft);
}
.article figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  text-align: center;
}

.article strong { font-weight: 600; color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.article .faq {
  margin: 28px 0 40px;
  border-top: 1px solid var(--rule);
}
.article .faq__item {
  border-bottom: 1px solid var(--rule);
}
.article .faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  user-select: none;
}
.article .faq__item > summary::-webkit-details-marker { display: none; }
.article .faq__item > summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  transition: transform .2s ease;
}
.article .faq__item[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.article .faq__item > summary:hover {
  color: var(--accent);
}
.article .faq__answer {
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.article .faq__answer > div > p { margin: 0 0 12px; }
.article .faq__answer > div > p:last-child { margin-bottom: 0; }
.article .faq__answer > div > ul,
.article .faq__answer > div > ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
@media (max-width: 720px) {
  .article .faq__item > summary {
    font-size: 17px;
    padding: 16px 36px 16px 0;
  }
  .article .faq__answer { font-size: 15px; padding-bottom: 18px; }
}

/* ---------- Brand shortlist table (casino style) ---------- */
.brand-table {
  margin: 36px 0 44px;
}
.brand-table h2 { scroll-margin-top: 24px; }

.brand-table__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Three-column row: white logo cell with SLANTED right edge | beige body
   with bonus + stars | blue CTA. Rank tag is a dark navy chip positioned
   right where the slant meets the row top, slightly overhanging both. */
.brand-row {
  --logo-w: 240px;
  position: relative;
  display: grid;
  grid-template-columns: var(--logo-w) 1fr auto;
  align-items: stretch;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  min-height: 116px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.brand-row:hover {
  box-shadow: 0 6px 22px -16px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.brand-row[hidden] { display: none; }

/* Left cell: themed soft background */
.brand-row__logo-cell {
  background: var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}
.brand-row__logo {
  background: #111111;
  border-radius: 4px;
  width: 100%;
  max-width: 140px;
  padding: 10px 12px 8px;
  text-align: center;
  line-height: 1.1;
}
.brand-row__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #f5d042;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-row__logo-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.brand-row__logo-tag span { color: #e53935; }

/* Middle cell: bonus headline + gold stars, vertically centred */
.brand-row .brand-row__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 32px;
  min-width: 0;
}
.brand-row .brand-row__bonus {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.005em;
}
.brand-row__stars {
  color: #f5b800;
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
}

/* Right cell: themed accent "Play Now" button, vertically centred */
.brand-row__cta {
  align-self: center;
  justify-self: end;
  margin-right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color .15s ease, transform .12s ease;
}
.brand-row__cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(1px);
}
.brand-row__cta-arrow { font-size: 10px; }

/* "Show more" button */
.brand-table__more {
  display: block;
  margin: 18px auto 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.brand-table__more:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Mobile: stack into one column, drop the slant */
@media (max-width: 720px) {
  .brand-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding-bottom: 16px;
  }
  .brand-row__logo-cell {
    padding: 22px 16px;
  }
  .brand-row__logo { max-width: 220px; }
  .brand-row__info {
    padding: 8px 18px 4px;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  .brand-row__bonus { font-size: 18px; }
  .brand-row__cta {
    align-self: stretch;
    justify-self: stretch;
    justify-content: center;
    margin: 6px 16px 0;
    padding: 14px;
    font-size: 16px;
  }
}

/* ---------- Interactive widgets ---------- */
.widget {
  margin: 44px 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.widget__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.widget__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.widget__sub {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.widget__action {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.widget__action:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}
.widget__action:disabled { opacity: 0.5; cursor: default; }
.widget__cta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 20px;
  transition: background-color .15s ease;
}
.widget__cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.widget__result { margin-top: 22px; }
/* `hidden` attribute must win over per-variant display: flex below. */
.widget__result[hidden] { display: none !important; }
.widget__result-lead { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.widget__result-name { font-family: var(--font-display); font-weight: 600; }

/* Quiz */
.widget__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.widget__option {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.widget__option:hover { border-color: var(--ink); }
.widget__option.is-selected { border-color: var(--accent); background: var(--rule-soft); }

/* Calculator */
.widget__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.widget__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.widget__field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.widget__field input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease;
}
.widget__field input:focus { border-color: var(--accent); }
.widget__field small { font-size: 11px; color: var(--ink-muted); }
.widget--calc .widget__result {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.widget__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.widget__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--rule-soft);
}
.widget__stat--net { background: var(--surface); }
.widget__stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.widget__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.widget__stat--net .widget__stat-value { color: var(--accent); font-size: 28px; }
@media (max-width: 720px) {
  .widget__stats { grid-template-columns: 1fr; }
  .widget__stat-value { font-size: 22px; }
  .widget__stat--net .widget__stat-value { font-size: 24px; }
}


@media (max-width: 720px) {
  .widget { padding: 22px; margin: 36px 0; }
  .widget__title { font-size: 20px; }
}

/* ---------- TOC (collapsible) ---------- */
.article__toc {
  margin: 24px 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.article__toc summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.article__toc summary::-webkit-details-marker { display: none; }
.article__toc-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.article__toc-count {
  font-size: 12px;
  color: var(--ink-muted);
}
.article__toc-chevron {
  margin-left: auto;
  color: var(--ink-muted);
  transition: transform .2s ease;
}
.article__toc[open] .article__toc-chevron { transform: rotate(180deg); }

.article__toc ol {
  list-style: none;
  margin: 0;
  padding: 4px 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
  counter-reset: toc;
}
.article__toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 28px;
}
.article__toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-body);
  font-feature-settings: "tnum";
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.article__toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.article__toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 720px) {
  .article__toc ol { grid-template-columns: 1fr; }
}

/* ---------- tables ---------- */
.article table {
  width: 100%;
  margin: 36px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.article thead th {
  background: #f3efe6;
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.article tbody td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.article tbody tr:last-child td {
  border-bottom: none;
}
.article tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 720px) {
  .article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .article thead th { padding: 12px 14px; font-size: 13px; }
  .article tbody td { padding: 14px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 760px;
  margin: 0;
}
.site-footer__copy {
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header__inner {
    padding: 14px 20px;
    gap: 12px;
  }
  .nav-toggle-btn {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.15);
    padding: 8px 20px 16px;
    z-index: 50;
  }
  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li {
    border-bottom: 1px solid var(--rule-soft);
  }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: none;
    font-size: 16px;
  }
  .site-nav a:hover { border-bottom: none; }
  .site-nav a.is-active { border-bottom: none; }
  /* Hamburger → X transform when checked */
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .article {
    padding: 36px 20px 60px;
  }
  .article h1 { font-size: 32px; }
  .article .lead { font-size: 17px; }
  .article h2 { font-size: 24px; }
  .article h3 { font-size: 18px; }
}
