/* Economy Commercials stylesheet. Editorial comparison layout, no JavaScript anywhere. */

:root {
  --ink: #101b2d;
  --ink-soft: #34435a;
  --ink-muted: #5c6b81;
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d9dfe7;
  --line-strong: #b9c3d0;
  --accent: #9a5b0f;
  --accent-soft: #fdf6ec;
  --accent-line: #d79b3c;
  --cta: #0d5f52;
  --cta-hover: #0a4a41;
  --focus: #1a5fb4;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 45, 0.06);
  --shadow: 0 2px 10px rgba(16, 27, 45, 0.08);
  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0c4f7c;
}

a:hover {
  color: #073a5c;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 var(--space-3);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 3vw, 1.75rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 60;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header and navigation */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 62px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: var(--radius-sm);
}

.brand-word {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-word .brand-a {
  color: var(--ink);
}

.brand-word .brand-b {
  color: var(--accent);
}

.nav-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.nav-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.nav-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-bars::before,
.nav-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

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

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

.nav-btn .label-close,
.nav-toggle:checked ~ .nav-btn .label-open {
  display: none;
}

.nav-toggle:checked ~ .nav-btn .label-close {
  display: inline;
}

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

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent-line);
}

/* Hero */

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

.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.hero-copy {
  text-align: left;
  max-width: 68ch;
}

.hero h1 {
  margin-top: 0;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.more-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.hero-more {
  display: none;
}

.more-toggle:checked ~ .hero-more {
  display: block;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.more-btn:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}

.more-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.more-toggle:checked ~ .more-btn::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.more-btn .label-close,
.more-toggle:checked ~ .more-btn .label-open {
  display: none;
}

.more-toggle:checked ~ .more-btn .label-close {
  display: inline;
}

.more-toggle:focus-visible ~ .more-btn {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.byline-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-3);
  padding: 0.7rem 0.85rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.byline-box img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
}

.byline-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.byline-role {
  display: block;
  font-size: 0.83rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-short {
  display: none;
}

.hero-stats {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-strong);
  text-align: right;
}

.hero-stats div {
  min-width: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.stat-label .short {
  display: none;
}

.editors-choice {
  display: none;
}

/* Ranked list */

.section {
  padding-block: var(--space-5);
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--ink-soft);
}

.rank-list {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-card {
  display: grid;
  grid-template-columns: 42px 15rem minmax(0, 1fr) 10.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.rank-card.is-top {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.rank-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
}

.rank-card.is-top .rank-num {
  color: var(--accent);
}

.rank-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 52px;
  padding: 0.3rem 0.45rem;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1c2c45, #101b2d);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-card.is-top .mark {
  background: linear-gradient(180deg, #23364f, #14243a);
  box-shadow: 0 0 0 1px var(--accent-line);
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

.badge {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer {
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.95rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 6px solid var(--accent-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: break-word;
}

.offer strong {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.rank-card.is-top .offer {
  background: #fbeed7;
  border-color: #c98a24;
  border-left-color: #a75f0d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--cta);
  border-radius: var(--radius);
  background: var(--cta);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--cta);
}

.btn-outline:hover {
  background: var(--cta);
  color: #fff;
}

.rank-card .btn {
  width: 100%;
}

.list-note {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Comparison table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.compare caption {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

table.compare th,
table.compare td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.compare thead th {
  background: var(--surface-soft);
  border-top: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

/* Safe gambling panel */

.safe-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #eef4f2;
  border: 1px solid #c9ddd7;
  border-radius: var(--radius-lg);
}

.safe-panel h2 {
  margin-top: 0;
}

.safe-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.safe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* How we rank */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}

.method-card {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.method-card h3 {
  margin-top: 0;
}

.method-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.method-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.center-actions {
  margin-top: var(--space-4);
  text-align: center;
}

/* Article and table of contents */

.article-grid {
  display: block;
}

.article-head {
  margin-bottom: var(--space-4);
}

.article-byline {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.article-body h3 {
  margin-top: var(--space-4);
  font-size: 1.2rem;
}

.article-body h3:first-of-type {
  margin-top: 0;
}

.article-body p,
.article-body li {
  max-width: 74ch;
  color: var(--ink-soft);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body dl {
  margin: 0;
}

.article-body dt {
  font-weight: 700;
  color: var(--ink);
}

.article-body dd {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

.toc {
  display: none;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* Generic page content */

.page-hero {
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
}

.page-hero h1 {
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 74ch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}

.info-card {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

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

.breadcrumb {
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

/* Footer */

.site-footer {
  margin-top: var(--space-6);
  padding-block: var(--space-5) var(--space-4);
  background: var(--ink);
  color: #cfd7e3;
}

.site-footer a {
  color: #e8edf4;
  text-decoration: none;
}

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

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-grid h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.footer-note {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #29374d;
  font-size: 0.82rem;
  color: #a9b5c6;
}

.footer-note p {
  margin-bottom: 0.4rem;
}

/* Cookie notice */

.cookie-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(0.85rem, 3vw, 1.75rem);
  background: #0c1524;
  color: #e6ecf5;
  border-top: 1px solid #2a3a52;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  animation: cookie-note-in 0.35s ease-out 2s forwards;
}

.cookie-note a {
  color: #ffd79a;
}

.cookie-note p {
  margin: 0;
}

.cookie-dismiss {
  margin-left: auto;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #46587a;
  border-radius: var(--radius);
  background: #17253c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-toggle:focus-visible ~ .cookie-note .cookie-dismiss {
  outline: 3px solid #7fb3ff;
  outline-offset: 2px;
}

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

@keyframes cookie-note-in {
  from {
    opacity: 0;
    visibility: visible;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Back to top */

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.to-top::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(-45deg);
  margin-bottom: 2px;
}

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

@supports (animation-timeline: scroll()) {
  .to-top {
    opacity: 0;
    animation: to-top-in linear both;
    animation-timeline: scroll(root block);
    animation-range: 300px 600px;
  }

  @keyframes to-top-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

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

  .cookie-note {
    transform: none;
    animation: cookie-note-fade 0.01s linear 2s forwards;
  }

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

/* Breakpoints */

@media (min-width: 1100px) {
  .article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--space-5);
    align-items: start;
  }

  .article-head {
    margin-inline: 0;
    max-width: calc(var(--wrap) - 17rem - 2.25rem);
  }

  .toc {
    display: block;
    position: sticky;
    top: 1.25rem;
    padding: 1.1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
  }

  .toc h2 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
  }

  .toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 0.35rem;
  }

  .toc li {
    counter-increment: toc;
  }

  .toc a {
    color: var(--ink-soft);
    text-decoration: none;
  }

  .toc a::before {
    content: counter(toc) ". ";
    color: var(--accent);
    font-weight: 700;
  }

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

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: var(--space-5);
  }

  .editors-choice {
    display: block;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .editors-choice h2 {
    margin-top: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
  }

  .editors-choice .ec-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .editors-choice .ec-name {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
  }

  .editors-choice ul {
    margin: 0.85rem 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
  }

  .editors-choice .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav-btn {
    display: inline-flex;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .brand {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .brand-word {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: 0.6rem;
  }

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

  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

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

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.55rem 0.2rem;
    border-bottom: none;
  }

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

@media (max-width: 980px) {
  .rank-card {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "num brand"
      "offer offer"
      "cta cta";
    row-gap: 0.7rem;
  }

  .rank-num {
    grid-area: num;
    text-align: left;
  }

  .rank-brand {
    grid-area: brand;
  }

  .offer {
    grid-area: offer;
  }

  .rank-cta {
    grid-area: cta;
  }

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

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

@media (max-width: 700px) {
  .hero {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .byline-box {
    justify-content: center;
  }

  .hero-stats {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 1.55rem;
    margin-bottom: var(--space-1);
  }

  .lede {
    font-size: 0.98rem;
  }

  .section-head {
    margin-bottom: var(--space-3);
  }

  .section-head p {
    font-size: 0.92rem;
  }

  .section-head-ranked p {
    display: none;
  }

  .rank-card {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "offer"
      "cta";
    padding-top: 1.1rem;
  }

  .rank-num {
    position: absolute;
    top: 0.55rem;
    right: 0.85rem;
    font-size: 1.05rem;
  }

  .byline-name {
    white-space: nowrap;
  }

  .byline-role {
    max-width: 11rem;
    white-space: nowrap;
  }

  .role-long {
    display: none;
  }

  .role-short {
    display: block;
  }

  .hero-stats {
    gap: 0.8rem;
    padding-left: 0.8rem;
  }

  .stat-value {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .cookie-note {
    flex-wrap: nowrap;
    gap: 0.7rem;
    font-size: 0.76rem;
  }

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

  .byline-box {
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
  }

  .byline-box img {
    width: 40px;
    height: 40px;
  }

  .byline-role {
    max-width: 8.5rem;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.35rem;
  }

  .lede {
    font-size: 0.92rem;
  }

  .section-head-ranked p {
    display: none;
  }

  .rank-card {
    padding: 0.75rem 0.8rem;
  }

  .offer {
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
  }

  .byline-name {
    font-size: 0.88rem;
  }

  .byline-role {
    font-size: 0.76rem;
    max-width: 7rem;
  }

  .hero-stats {
    gap: 0.6rem;
    padding-left: 0.6rem;
  }

  .stat-value {
    font-size: 0.92rem;
  }

  .stat-label {
    font-size: 0.66rem;
  }

  .stat-label .long {
    display: none;
  }

  .stat-label .short {
    display: inline;
  }
}

@media (max-width: 360px) {
  .byline-box {
    gap: 0.45rem;
    padding: 0.55rem 0.6rem;
  }

  .byline-box img {
    width: 34px;
    height: 34px;
  }

  .byline-name {
    font-size: 0.82rem;
  }

  .byline-role {
    font-size: 0.72rem;
    max-width: 5.6rem;
  }

  .hero-stats {
    gap: 0.5rem;
    padding-left: 0.5rem;
  }

  .stat-value {
    font-size: 0.86rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .mark {
    width: 74px;
    height: 40px;
    font-size: 0.85rem;
  }
}

@media (max-width: 460px) {
  .brand-word {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.12;
    overflow: visible;
    white-space: normal;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 300px) {
  .rank-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .brand-word {
    font-size: 1.1rem;
  }
}
