@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --primary:    #1a5cf7;
  --primary-dk: #1148cc;
  --success:    #0daa6c;
  --success-dk: #0a8c59;
  --accent:     #f59e0b;
  --bg:         #edf2f7;
  --surface:    #ffffff;
  --navy:       #0d1b2a;
  --text:       #1a2636;
  --muted:      #64748b;
  --border:     #dde5f0;
  --radius:     7px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 14px rgba(0,0,0,.11);
  --max-w:      1100px;
  --brand:      var(--primary); /* overridden per-page when a topic brand colour is set */
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: var(--primary); }

h1,h2,h3,h4 { font-family: 'Nunito', sans-serif; font-weight: 800; margin: 0 0 .5em; }

/* ── Site header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 60px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header img { max-height: 44px; width: auto; display: block; }

/* Gutter column: natural logo width on smaller screens; expands to content-margin width on large screens */
.site-header-gutter {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max(60px, calc((100% - var(--max-w)) / 2));
  padding: 8px 20px;
}

.site-logo { display: flex; align-items: center; }

.site-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding-left: 16px;
}

.site-nav-inner {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 641px) {
  .nav-list { display: flex; }
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 13px;
  font-size: 1.14em;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }

/* Inline caret on desktop for items with dropdowns */
.nav-item.has-dropdown > .nav-link::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6em;
  opacity: 0.55;
  margin-left: 2px;
}

/* Desktop dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 200;
}

@media (min-width: 641px) {
  .nav-item.has-dropdown:hover > .nav-dropdown { display: block; animation: dropFadeIn 0.15s ease; }
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "All X" hub link at top of dropdown — visually separated */
.nav-dropdown-all a {
  font-weight: 700;
  color: var(--primary) !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
  padding-bottom: 10px;
}

.nav-dropdown li a {
  display: block;
  padding: 6px 16px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown li a:hover { background: #f0f5ff; color: var(--primary); }

/* Backdrop — shown when mobile menu is open */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop.is-active { display: block; animation: backdropFadeIn 0.2s ease; }
@keyframes backdropFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Caret button — hidden on desktop (dropdown is CSS hover) */
.nav-caret {
  display: none;
  background: none;
  border: none;
  padding: 11px 10px 11px 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.2s;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav wrapper — anchors the mobile dropdown below the subbar ───── */
.nav-wrapper { position: relative; }

/* ── Page wrapper ─────────────────────────────────────────────────── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.page-content--static {
  padding-top: 2rem;
}

/* ── Network hero ─────────────────────────────────────────────────── */
.network-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 16px;
}

.deals-section > .deals-controls:first-child {
  margin-top: -16px;
}

.network-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.network-hero-image {
  flex-shrink: 0;
  max-height: 100px;
  max-width: 200px;
  object-fit: contain;
  aspect-ratio: 2 / 1;   /* matches width/height attributes — reserves space before load */
}

.network-hero-content h1,
.network-hero-content h2 {
  font-size: 1.35em;
  color: var(--text);
  margin-bottom: 4px;
}

.network-hero-content p { font-size: 0.9em; color: var(--muted); margin: 0; }

/* ── Generic page hero (best/, guides/) ─────────────────────────── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 16px;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.page-hero-content h1,
.page-hero-content h2 {
  font-size: 1.45em;
  color: var(--text);
  margin-bottom: 6px;
}

.page-hero-content p { font-size: 0.92em; color: var(--muted); margin: 0; }

/* ── Article body typography ─────────────────────────────────────── */
.article-body h2 { font-size: 1.15em; margin: 1.4em 0 .5em; }
.article-body h3 { font-size: 1em; margin: 1.2em 0 .4em; }
.article-body p  { font-size: 0.92em; line-height: 1.7; margin: 0 0 .8em; }

/* No deals notice */
.deals-empty {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 16px;
}

.notice-yellow {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9em;
  color: #92400e;
}

/* ── Deals list ─────────────────────────────────────────────────── */
.deals-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 8px;
}

.deal-row {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
  overflow: hidden;
}

.deal-row:hover { box-shadow: var(--shadow-md); }

.deal-row.deal-featured { border-left: 4px solid var(--brand); }

.deal-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  padding: 10px 16px 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-body {
  display: flex;
  align-items: stretch;
}

.deal-left {
  flex: 1;
  min-width: 0;
}

.deal-cols {
  display: flex;
  align-items: center;
  padding: 8px 16px 12px;
  gap: 0;
}

.deal-col {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
}

.deal-col-cta {
  flex: 0 0 160px;
  padding: 12px 16px 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deal-label {
  font-size: 0.68em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 3px;
}

.deal-val-data {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 2.1em;
  line-height: 1;
  color: var(--text);
}

.deal-val-term {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 1.45em;
  line-height: 1.1;
  color: var(--text);
}

.deal-val-price {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.8em;
  line-height: 1;
  color: var(--primary);
}

.deal-price-old {
  font-size: 0.82em;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 4px;
}

.deal-rpi {
  display: block;
  font-size: 0.65em;
  color: var(--muted);
  margin-top: 2px;
}

.btn-cta {
  display: block;
  width: 100%;
  padding: 11px 10px;
  background: var(--success);
  color: #fff !important;
  text-align: center;
  font-weight: 800;
  font-size: 0.92em;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-cta:hover { background: var(--success-dk); color: #fff !important; }

.deal-details-link {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 10px;
  background: transparent;
  color: var(--primary) !important;
  text-align: center;
  font-size: 0.78em;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.deal-details-link:hover {
  background: var(--primary);
  color: #fff !important;
}

.deal-merchant { margin-top: 7px; text-align: center; }
.deal-merchant img { max-height: 40px; max-width: 40px; object-fit: contain; opacity: 0.65; }
.deal-merchant-text { font-size: 0.7em; color: var(--muted); }

/* ── Pills ────────────────────────────────────────────────────────── */
.deal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top-right-radius: 5px;
  background: #fafbfd;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.pill-featured { background: #fef3c7; color: #92400e; }
.pill-plan     { background: #eff6ff; color: #1e40af; }
.pill-conn     { background: #1e293b; color: #e2e8f0; }
.pill-unl      { background: #ecfdf5; color: #065f46; }
.pill-offer    { background: #f0f9ff; color: #0369a1; }

/* ── Content block shared ───────────────────────────────────────── */
.block-mini-deals,
.block-deals-grid,
.block-deal-single,
.block-cta { margin-bottom: 1.5em; }
.block-description {
  font-size: 0.9em;
  color: var(--muted);
  margin: -6px 0 10px;
}
.block-mini-deals-title,
.block-cta-title {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

/* ── CTA block ──────────────────────────────────────────────────── */
.block-cta {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.block-cta-body { font-size: 0.95em; line-height: 1.6; margin-bottom: 14px; }
.block-cta-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
}
.block-cta-btn:hover { opacity: 0.9; }
@media (max-width: 640px) {
  .block-cta-btn { display: block; text-align: center; }
}

/* ── Deals grid (2-col block) ───────────────────────────────────── */
.deals-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.deal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: box-shadow .15s;
}
.deal-card:hover { box-shadow: var(--shadow-md); }
.deal-card.deal-featured { border-top: 3px solid var(--brand); }
.deal-card .btn-cta { width: 100%; text-align: center; }
.deal-card--compact .btn-cta { width: auto; }
.deal-card--compact {
  flex-direction: row;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
  text-align: left;
}
.deal-merchant--compact {
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
}
.deal-card-specs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85em;
  color: var(--text);
  min-width: 0;
}
.deal-card-network {
  font-weight: 600;
  font-size: 0.9em;
}
.deal-card-via {
  font-weight: 400;
  color: var(--muted);
}
.deal-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  color: var(--muted);
}
.btn-cta--compact {
  flex-shrink: 0;
  width: auto;
  padding: 8px 14px;
  font-size: 0.85em;
}
@media (max-width: 480px) {
  .deals-grid-2col { grid-template-columns: 1fr; }
  .deal-card--compact { flex-wrap: wrap; }
  .deal-card--compact .deal-merchant--compact { flex: 0 0 auto; order: 2; }
  .deal-card--compact .deal-card-specs { flex: 0 0 100%; order: 1; }
  .deal-card--compact .btn-cta { flex: 0 0 auto; order: 3; margin-left: auto; width: auto; }
}

/* ── Section heading ────────────────────────────────────────────── */
.section-heading {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

/* ── Page sections (reviews, newsletter, content) ─────────────────── */
.page-section {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 0 16px;
}
.block-slot {
  max-width: var(--max-w);
  margin: 16px auto;
}

/* ── Reviews ─────────────────────────────────────────────────────── */
.reviews-section .review-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 12px 16px !important;
  margin-bottom: 7px;
  overflow: hidden;
}

.reviews-section .review-card h3 {
  font-size: 0.9em;
  font-weight: 700;
  margin: 0;
  float: left;
  color: var(--text);
}

.reviews-section .review-card .w3-right {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05em !important;
  color: var(--primary);
  float: right;
}

.reviews-section .review-summary {
  font-size: 0.82em;
  color: var(--muted);
  display: block;
  clear: both;
  padding-top: 4px;
}

.reviews-section .review-body {
  font-size: 0.82em;
  color: var(--muted);
  clear: both;
}

/* Final rating bar */
.reviews-section .w3-green {
  background: var(--success) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 11px 16px !important;
  color: #fff;
  font-size: 0.95em !important;
  margin-bottom: 0 !important;
}

/* ── Newsletter / Latest Updates ─────────────────────────────────── */
.newsletter-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.newsletter-items-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.newsletter-offer-wrap,
.newsletter-code-wrap { display: flex; }

.newsletter-offer-wrap .offer-card,
.newsletter-code-wrap .offer-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.newsletter-group-headline {
  font-weight: 800 !important;
  font-size: 0.95em !important;
  color: var(--text) !important;
  margin: 0 0 3px !important;
}

.newsletter-email-header small { font-size: 0.78em; color: var(--muted); }

.newsletter-group-summary {
  font-size: 0.85em;
  color: var(--muted);
  margin: 4px 0 10px;
}

.newsletter-offer-snippet { font-size: 0.85em; color: var(--text); margin: 0 0 8px; }

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin: 4px !important;
}

.newsletter-code.offer-card {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.newsletter-voucher-code {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.newsletter-voucher-discount,
.newsletter-voucher-applies { font-size: 0.82em; color: var(--muted); display: block; margin-bottom: 3px; }

.newsletter-offer-link,
.newsletter-email-link,
.newsletter-code-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.78em;
  font-weight: 800;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.15s;
}

.newsletter-offer-link:hover,
.newsletter-email-link:hover,
.newsletter-code-link:hover { background: var(--primary-dk); }

.newsletter-sep { display: none; }

/* ── Content area typography ─────────────────────────────────────── */
.page-section h2 { font-size: 1.15em; color: var(--text); margin: 1.2em 0 .4em; }
.page-section p  { font-size: 0.9em; color: var(--text); margin: 0 0 .6em; }

/* ── Content stripe (content_middle full-width band) ────────────── */
.content-stripe {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 24px 0;
}

.content-stripe-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  columns: 2;
  column-gap: 48px;
}

@media (max-width: 640px) {
  .content-stripe-inner { columns: 1; }
}

/* ── Content snippets ────────────────────────────────────────────── */
.content-snippet {
  break-inside: avoid;
  margin-bottom: 1.4em;
}

.content-snippet h3 {
  font-size: 1.05em;
  color: var(--text);
  margin: 0 0 .35em;
}

.content-snippet h3 i {
  color: var(--primary);
  margin-right: 0.45em;
  font-size: 0.88em;
  vertical-align: -0.05em;
  opacity: 0.8;
}

.content-snippet p {
  font-size: 0.9em;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

/* ── Disclaimer ─────────────────────────────────────────────────── */
.site-disclaimer {
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  padding: 14px 24px;
  font-size: 0.8em;
  color: var(--muted);
  text-align: center;
  margin-top: 36px;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 32px 24px 16px;
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 48px;
}

.site-footer-col h4 {
  color: #fff;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 12px;
  font-weight: 800;
}

.site-footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.87em;
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-col a:hover { color: #fff; }
.site-footer-col li { list-style: none; padding: 3px 0; font-size: 0.87em; }
.site-footer-col ul { margin: 0; padding: 0; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #475569;
}

.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; }

/* ── Index card grid (home page) ────────────────────────────────── */
.index-section { margin: 0 0 28px; }

.index-section-title {
  font-size: 1.1em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.index-grid--2col { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.index-grid--3col { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.index-grid--4col { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.index-grid--6col { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
.index-grid--9col { grid-template-columns: repeat(auto-fill, minmax(min(90px,  100%), 1fr)); }

.index-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88em;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  min-height: 80px;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}

.index-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.index-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

.index-card img {
  max-height: 56px;
  max-width: 56px;
  object-fit: contain;
}

.index-card--more {
  border-style: dashed;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.index-card--more:hover {
  background: var(--primary);
  border-color: var(--primary);
  border-style: solid;
  color: #fff;
}

.index-card-more-count {
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1;
}

.index-card--hidden { display: none; }

/* ── Page subbar (breadcrumbs on desktop; hamburger + breadcrumbs on mobile) ── */
.page-subbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}

/* Subbar is only rendered when breadcrumbs are present */

.page-subbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}


.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8em;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item a:hover { text-decoration: underline; }

.breadcrumb-item span[aria-current] { color: var(--muted); font-weight: 500; }

.breadcrumb-sep { color: var(--muted); margin: 0 5px; }

/* ── Content tabs (reviews / youtube) ───────────────────────────── */
.content-tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.content-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 14px;
  font-size: 1.25em;
  font-weight: 800;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.content-tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }

.content-tab-btn--active {
  color: var(--primary);
  border-bottom-color: var(--brand);
}

.content-tabs { margin-bottom: 2em; }

/* ── YouTube gallery ─────────────────────────────────────────────── */
.youtube-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 480px) {
  .youtube-gallery { grid-template-columns: 1fr; }
}

.yt-thumb {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.yt-thumb-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: brightness 0.2s;
}

.yt-thumb-btn:hover img { brightness: 0.85; }

.yt-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.yt-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius);
}

.yt-title {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.yt-caption {
  font-size: 0.82em;
  color: var(--text-muted);
  margin: 0;
}

/* ── Deal filter / sort bar ─────────────────────────────────────── */
.deals-controls {
  max-width: var(--max-w);
  margin: 0 auto 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 20px;
}

.deals-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  flex: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-size: 0.65em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.filter-radios,
.filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
}

/* Segmented control: options share borders and form one joined group */
.filter-opt {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 13px;
  border-radius: 0;
  border: 1px solid var(--border);
  margin-left: -1px;       /* collapse shared border between siblings */
  background: #f8fafc;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--text);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.filter-opt:first-child { border-radius: 20px 0 0 20px; margin-left: 0; }
.filter-opt:last-child  { border-radius: 0 20px 20px 0; }
.filter-opt:only-child  { border-radius: 20px; }

.filter-opt input[type=radio],
.filter-opt input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filter-opt:hover { border-color: var(--primary); color: var(--primary); z-index: 1; }

.filter-opt-active,
.filter-opt-active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  z-index: 1;   /* sit on top so its border isn't clipped by an adjacent sibling */
}

/* Dropdown select styled as a pill */
.filter-select {
  height: 28px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  cursor: pointer;
  min-width: 110px;
}

.filter-select:focus { outline: none; border-color: var(--primary); }

/* Sort buttons — right side of the bar, separated by a rule */
.deals-sort {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-left: auto;
}

.deals-sort .filter-label { margin-right: 2px; }

.sort-btn {
  height: 28px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.sort-btn:hover { border-color: var(--primary); color: var(--primary); }

.sort-btn.sort-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sort-btn.sort-asc::after  { content: ' \2191'; }
.sort-btn.sort-desc::after { content: ' \2193'; }

/* ── Linklist ────────────────────────────────────────────────────── */
.linklist-section {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.linklist-category {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.linklist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.linklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  flex: 1 1 calc(50% - 5px);
  max-width: calc(50% - 5px);
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
@media (max-width: 640px) {
  .linklist-item { flex: 0 0 100%; max-width: 100%; }
}

.linklist-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.linklist-prominent .linklist-item {
  border-left: 4px solid var(--brand);
}

.linklist-prominent .linklist-anchor {
  font-size: 1.1rem;
}

.linklist-prominent .linklist-description {
  font-size: .9rem;
}

.linklist-prominent .linklist-item::after {
  content: '\00BB\00BB';
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--primary);
  margin-left: auto;
  padding-left: 12px;
  opacity: .6;
  transition: opacity .15s, transform .15s;
}

.linklist-prominent .linklist-item:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.linklist-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.linklist-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  color: var(--primary);
}

.linklist-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  min-width: 0;
}

.linklist-anchor {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

.linklist-item:hover .linklist-anchor { color: var(--primary); }

.linklist-description {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-header-gutter { min-width: 0; padding: 8px 12px; justify-content: flex-start; }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
    padding: 6px 0;
  }

  .nav-list.is-open { display: flex; animation: navSlideDown 0.2s ease; }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-item { width: 100%; }

  /* Full-width tap targets, dark text on white dropdown */
  .nav-item > .nav-link { display: flex; width: 100%; box-sizing: border-box; color: var(--text); }
  .nav-item > .nav-link:hover { color: var(--primary); border-bottom-color: transparent; }
  .nav-link:active { background: #f0f5ff; }

  .nav-item.has-dropdown { display: block; }

  /* Chevron inline on the link; caret button not needed on mobile */
  .nav-item.has-dropdown > .nav-link { width: 100%; justify-content: space-between; }
  .nav-item.has-dropdown > .nav-link::after {
    display: inline-block;
    transition: transform 0.22s ease;
    margin-left: auto;
    padding-left: 10px;
    opacity: 0.6;
  }
  .nav-item.has-dropdown.is-open > .nav-link::after { transform: rotate(180deg); }
  .nav-caret { display: none; }

  .nav-dropdown {
    display: none;
    position: static;
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
    padding: 4px 0;
  }

  .nav-item.has-dropdown.is-open > .nav-dropdown { display: block; animation: dropFadeIn 0.15s ease; }

  .nav-dropdown li a { padding: 10px 28px; }
  .nav-dropdown li a:active { background: #e8f0ff; }

  /* Subbar: breadcrumbs only on mobile */
  .page-subbar { padding: 5px 0; }
  .page-subbar-inner { padding: 4px 12px; gap: 10px; }
  .page-subbar-inner > nav { flex: 1; min-width: 0; overflow: hidden; }

  .deal-body { flex-wrap: wrap; }
  .deal-left { flex: 1 1 100%; }
  .deal-cols { flex-wrap: wrap; }
  .deal-col  { flex: 1 1 33%; min-width: 80px; }
  .deal-col-cta { flex: 1 1 100%; padding: 0 16px 12px; }
  .block-mini-deals .deal-col,
  .block-deal-single .deal-col { flex: 1 1 45%; }
  .deal-val-data  { font-size: 1.5em; }
  .deal-val-term  { font-size: 1.1em; }
  .deal-val-price { font-size: 1.4em; }
  .site-footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .network-hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .newsletter-items-list { grid-template-columns: 1fr; }
  .deals-sort { border-left: none; padding-left: 0; margin-left: 0; border-top: 1px solid var(--border); padding-top: 10px; width: 100%; }
}

/* ── Detail deal widget ─────────────────────────────────────── */
.deal-det { padding-bottom: 0; overflow: hidden; }

/* Header */
.deal-det-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.deal-det-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.deal-det-network-logo {
  max-height: 28px;
  max-width: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.deal-det-retailer-logo {
  display: block;
  max-height: 40px;
  max-width: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.65;
}

.deal-det-title {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text);
  white-space: nowrap;
}

.deal-det-network {
  font-size: 0.75em;
  color: var(--muted);
  white-space: nowrap;
}

.deal-det-badge {
  flex-shrink: 0;
  font-size: 0.7em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Body: left column (boxes + pills) + CTA column */
.deal-det-body {
  display: flex;
  align-items: stretch;
}

.deal-det-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.deal-det-boxes {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 12px 12px;
  flex: 1;
}

.deal-det-data-box,
.deal-det-price-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.deal-det-data-box {
  flex: 2 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deal-det-price-box {
  flex: 3 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.deal-det-data-val {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 2.4em;
  line-height: 1;
  color: var(--text);
}

.deal-det-data-sub {
  font-size: 0.8em;
  color: var(--muted);
  margin-top: 3px;
}

.deal-det-amount {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 2em;
  line-height: 1;
  color: var(--text);
}

.deal-det-per {
  font-family: 'Nunito', sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  color: var(--text);
}

.deal-det-thereafter,
.deal-thereafter {
  font-size: 0.78em;
  color: var(--muted);
}

/* CTA column — full height, mirrors .deal-col-cta treatment */
.deal-det-cta {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 8px;
}

.deal-det-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 10px;
  background: var(--success);
  color: #fff !important;
  text-align: center;
  font-weight: 800;
  font-size: 0.92em;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s;
}
.deal-det-btn:hover { background: var(--success-dk); }

/* Pills row reuses .deal-pills from the shared pill styles above */

/* Thereafter row — between boxes and pills on deal detail page */
.deal-det-thereafter-row {
  font-size: 0.88em;
  color: var(--muted);
  padding: 0 12px 10px;
}

/* Deal detail PAGE — larger sizes, bigger logos */
.deal-page-list .deal-det-network-logo {
  max-height: 50px;
  max-width: 140px;
}
.deal-page-list .deal-det-retailer-logo {
  max-height: 60px;
  max-width: 130px;
  opacity: 1;
}
.deal-page-list .deal-det-btn      { font-size: 1em; padding: 13px 10px; }

@media (max-width: 640px) {
  .deal-det .deal-det-body { flex-wrap: wrap; }
  .deal-det .deal-det-left { flex: 1 1 100%; }
  .deal-det .deal-det-boxes { flex-wrap: wrap; }
  .deal-det .deal-det-data-box { flex: 1 1 calc(50% - 5px); }
  .deal-det .deal-det-price-box { flex: 1 1 calc(50% - 5px); }
  .deal-det .deal-det-cta { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--border); padding: 12px 16px; }
}
