/* nafrica: one stylesheet for every page. System fonts only, no external requests. */

:root {
  --teal-900: #0F4C4A;
  --teal-700: #1F6663;
  --link: #0B5F5B;
  --link-hover: #083F3D;
  --mint-100: #E8F4F2;
  --mint-50: #F1F8F7;
  --mint-25: #F6FBFA;
  --mint-300: #BFE0DB;
  --ink: #1E2A32;
  --muted: #4A5A64;
  --gold: #F4B728;
  --notice: #FFF1C9;
  --pro: #E3F3E1;
  --con: #FCEBCB;
  --focus: #D9480F;
  --radius: 12px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; font-weight: 700; }
h1 { font-size: 32px; }
h2 { font-size: 25px; }
h3 { font-size: 19px; }
p { margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { background: var(--teal-900); padding: 14px 16px 12px; }
.site-header-inner { max-width: 1200px; margin: 0 auto; }
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo:hover { color: #fff; }
/* Logo row: site name on the left, small 18+ badge on the right */
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.age-badge.age-badge--header { width: 34px; height: 34px; font-size: 13px; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.main-nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--teal-700);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { color: #fff; background: #2A7673; }
.pill[aria-current="page"], .pill--active { background: #fff; color: var(--teal-900); }
.pill--active:hover { background: #fff; color: var(--teal-900); }

/* Brand submenus: <details name="menu"> so they work without JavaScript and only one is open at a time.
   On phones the nav scrolls sideways, so the panel is positioned against .site-header-inner
   (outside the scroll box) to avoid being clipped, and spans the header width. */
.site-header-inner { position: relative; }
.menu-group { flex: none; }
.menu-group > summary { cursor: pointer; list-style: none; gap: 6px; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group .chev { font-size: 12px; transition: transform .15s; }
.menu-group[open] .chev { transform: rotate(180deg); }
.submenu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 8px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 76, 74, .25);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.submenu a:hover { background: var(--mint-100); color: var(--ink); }
.submenu a[aria-current="page"] { background: var(--mint-100); color: var(--teal-900); }
@media (min-width: 768px) {
  .main-nav { overflow: visible; }
  .menu-group { position: relative; }
  .submenu { right: auto; min-width: 240px; }
}

/* ---------- Page frame ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wrap--home { padding-top: 24px; gap: 36px; }
.wrap--promo { gap: 32px; }

.crumbs { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.byline { font-size: 15px; color: var(--muted); }
/* Affiliate disclosure: a small grey box right under the author box */
.disclosure {
  margin: 0;
  padding: 12px 16px;
  background: #F2F4F5;
  border: 1px solid #E2E6E8;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.disclosure p { margin: 0; }
.disclosure strong { color: var(--ink); font-weight: 600; }
/* sit 12 px under the author box instead of the full section gap */
.article > .author + .disclosure,
.wrap--home > .author + .disclosure { margin-top: -24px; }
.narrow { max-width: 760px; }

.section { display: flex; flex-direction: column; gap: 14px; }
.section--steps { gap: 16px; }
.section--faq { gap: 18px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--mint-25); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.table-wrap--wide table { min-width: 900px; }
.table-wrap--compact table { min-width: 480px; }
.table-wrap--fit table { min-width: 0; }
/* Phones: no table should scroll sideways.
   --tight: 3-4 column tables, tighter cells and hyphenated long words so they fit the screen.
   --stack: wide tables (5-6 columns or long cells) turn into one card per row; each cell
   shows its column name from data-label, so nothing is lost when the header row is hidden. */
@media (max-width: 639px) {
  .table-wrap--tight th, .table-wrap--tight td { padding: 9px 10px; font-size: 15px; -webkit-hyphens: auto; hyphens: auto; }
  .table-wrap--stack { overflow: visible; background: none; border-radius: 0; }
  .table-wrap--stack table, .table-wrap--stack tbody, .table-wrap--stack tr,
  .table-wrap--stack th, .table-wrap--stack td { display: block; min-width: 0; width: auto; }
  .table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap--stack tr { background: var(--mint-25); border: 1px solid var(--mint-300); border-radius: var(--radius); overflow: hidden; }
  .table-wrap--stack tbody tr:nth-child(even) { background: var(--mint-25); }
  .table-wrap--stack tr + tr { margin-top: 12px; }
  .table-wrap--stack tbody th {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: var(--mint-100); font-size: 16px;
  }
  .table-wrap--stack .btn--table { margin-top: 0; }
  .table-wrap--stack td {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px;
    padding: 9px 14px; border-top: 1px solid var(--mint-100); font-size: 15px;
  }
  .table-wrap--stack td::before { content: attr(data-label); font-weight: 600; font-size: 14px; color: var(--muted); }
}
/* The min-widths above only exist so phone tables scroll instead of squashing.
   From small tablet up, tables size to their container and tighter cell padding avoids scrolling. */
@media (min-width: 640px) {
  .table-wrap table { min-width: 0; }
  th, td { padding: 12px 10px; }
  th:first-child, td:first-child { padding-left: 14px; }
}

/* Bullet lists inside article sections */
.list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Content still to be supplied: visible on purpose so it can't ship unnoticed */
.todo { background: var(--notice); border-radius: 4px; padding: 0 4px; font-weight: 600; }
caption { text-align: left; padding: 12px 14px; font-weight: 600; }
/* break-word (not anywhere): only splits a word that can't fit, so columns never shrink below a whole word */
th, td { padding: 12px 14px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
thead th { background: var(--teal-900); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--mint-100); }
.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.btn:hover { color: var(--ink); background: #E5A812; }
.btn--start { align-self: flex-start; }
/* Small play button under the brand name in a comparison table's first column */
.btn--table { min-height: 44px; margin-top: 10px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 48px; }
.strong-link { font-weight: 600; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; background: var(--notice); border-radius: var(--radius); padding: 16px; }
.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

/* ---------- Homepage: brand cards and guide grid ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 14px; }
.card {
  flex: 1 1 280px;
  background: var(--mint-100);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head h3 { font-size: 21px; }
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.guide-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--mint-100);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Brand logos (round WebP, 192px source) ---------- */
.brand-logo, .verdict-logo {
  flex: none;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(30, 42, 50, .12); /* keeps the white 1xBet logo visible on white */
}
.brand-logo { width: 32px; height: 32px; }
.brand-logo--md { width: 56px; height: 56px; }
.verdict-logo { width: 84px; height: 84px; }
.brand-cell { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; overflow-wrap: normal; }
.brand-heading { display: flex; align-items: center; gap: 12px; }
.brand-heading .brand-logo { width: 48px; height: 48px; }
.brand-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.guide-link { gap: 10px; }
.guide-link .brand-logo { width: 28px; height: 28px; }

/* ---------- FAQ ---------- */
.faq-item { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Author box ---------- */
.author { display: flex; gap: 14px; background: var(--mint-100); border-radius: var(--radius); padding: 18px; }
.author-body { display: flex; flex-direction: column; gap: 4px; }
.author-name { font-weight: 700; }
h2.author-name { font-size: 21px; }
.author-bio, .author-link { font-size: 15px; }
.author-link { font-weight: 600; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--mint-300);
  color: var(--teal-900);
  font-weight: 700;
}
.avatar--lg { width: 72px; height: 72px; font-size: 20px; }
img.avatar { object-fit: cover; }

/* Byline with the author photo */
.byline--photo { display: flex; align-items: center; gap: 10px; }
.byline--photo img { flex: none; width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--mint-300); }

/* ---------- Review: verdict, key facts, pros and cons ---------- */
.verdict {
  background: var(--mint-100);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.verdict-score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  line-height: 1.1;
}
.verdict-score strong { font-size: 28px; }
.verdict-score span { font-size: 13px; }
.verdict-text { flex: 1 1 240px; font-size: 18px; }
.verdict .btn { flex: 1 1 220px; }

/* Final offer card, just before a review's FAQ: logo, offer, button, terms line */
.offer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--teal-900);
  color: #fff;
}
.offer-card-logo { flex: none; width: 48px; height: 48px; }
.offer-card-offer { flex: 1 1 200px; font-size: 17px; font-weight: 600; }
.offer-card .btn { flex: 1 1 200px; max-width: 280px; }
.offer-card-terms { flex: 1 1 100%; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12px; color: rgba(255, 255, 255, .85); }
@media (max-width: 639px) { .offer-card .btn { max-width: none; } }

.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.fact { background: var(--mint-50); border-radius: 10px; padding: 12px 14px; }
.fact dt { font-size: 13px; color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.licence-num { white-space: nowrap; }

.pros-cons { display: flex; flex-wrap: wrap; gap: 14px; }
.pros, .cons { flex: 1 1 280px; border-radius: var(--radius); padding: 18px; }
.pros { background: var(--pro); }
.cons { background: var(--con); }
.pros h3, .cons h3 { margin-bottom: 8px; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; }

/* ---------- Article + table of contents layout ---------- */
/* wrap-reverse puts the table of contents above the article on phones.
   With wrap-reverse the cross axis is flipped, so flex-end means "top" on desktop. */
.layout { display: flex; flex-wrap: wrap-reverse; align-items: flex-end; gap: 24px 40px; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 16px; }
}
/* Pages that skip the contents box when it would sit above the article (phones and tablets) */
@media (max-width: 999px) {
  .toc--desktop-only { display: none; }
}

/* ---------- Back to top ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.to-top {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--teal-900);
  box-shadow: 0 6px 18px rgba(15, 76, 74, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-700); }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.to-top svg { width: 52px; height: 52px; }
.to-top-track { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3; }
.to-top-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;           /* set by to-top.js: 100 = 0 %, 0 = 100 % */
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.to-top-arrow { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) {
  .to-top { right: 24px; bottom: 24px; }
}
.article { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.toc { flex: 1 1 280px; background: var(--mint-100); border-radius: var(--radius); padding: 4px 18px; }
.toc summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { transition: transform .15s; }
.toc:not([open]) summary span { transform: rotate(-90deg); }
.toc ol { margin: 0; padding: 0 0 12px 22px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps--loose { gap: 20px; }
.step { display: flex; gap: 14px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--teal-900);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.steps--loose .step-body { gap: 6px; }

/* Phone screenshots. Images are 520 px wide, shown at up to 260 px (2x). */
.capture { margin: 20px 0; max-width: 260px; }
.capture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--mint-300);
}
.capture figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.captures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px));
  gap: 20px;
  margin: 20px 0;
}
.captures .capture { margin: 0; }
/* A row of captures read in order: swipe sideways on phones. The next screen
   peeks in at the edge so readers can see there is more. */
.captures--swipe {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--mint-300) transparent;
}
.captures--swipe .capture { flex: 0 0 min(72%, 240px); scroll-snap-align: start; }

/* Placeholder for a future tool */
.tool-slot {
  height: 480px;
  border-radius: var(--radius);
  background: var(--mint-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 16px;
}
.tool-slot p:first-child { font-weight: 700; }
.tool-slot p:last-child { font-size: 15px; color: var(--muted); }

/* ---------- Promo codes ---------- */
.featured-code {
  background: var(--mint-100);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.featured-code-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.featured-code-text h2 { font-size: 22px; }
.code-box {
  flex: 1 1 220px;
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}
.featured-code .btn { flex: 1 1 220px; }
.featured-code-hint { flex: 1 1 100%; font-size: 14px; color: var(--muted); }
code { font-family: var(--mono); }

/* Inline promo code with a tap-to-copy button. The button stays hidden until
   copy-code.js runs; without the script the code is still there to select by hand.
   The button's label comes from CSS so it never leaks into text such as the FAQ JSON-LD. */
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 3px 3px 10px;
  border: 1.5px dashed var(--teal-900);
  border-radius: 8px;
  background: var(--mint-50);
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.2;
}
.promo-code code { font-weight: 700; letter-spacing: .03em; color: var(--ink); user-select: all; -webkit-user-select: all; }
.promo-code.is-ready { cursor: pointer; }
.promo-copy {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--teal-900);
  color: #fff;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
}
.promo-copy::before { content: "Copier"; }
.promo-copy[data-copied]::before { content: "Copié ✓"; }
.promo-copy:hover { background: var(--link-hover); }
.promo-copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Plain text pages ---------- */
.prose { display: flex; flex-direction: column; gap: 32px; }
.prose .section { gap: 12px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose h3 { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mint-100); padding: 28px 16px 36px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.trust-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.trust-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.age-row { display: flex; align-items: center; gap: 12px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.muted { color: var(--muted); }
