/* Site stylesheet for 1xbetregistration.co.ke — verbatim copy of the inline <style>
   block in index.php, used by the internal guide pages (inc/layout.php). */

:root {
  --black: #000000;
  --red: #bb0000;
  --red-deep: #8f0000;
  --green: #006600;
  --green-deep: #004d00;
  --ink: #121212;
  --ink-soft: #3d3d3d;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: rgba(0,0,0,.12);
  --font-display: "Archivo", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --radius: 4px;
  --max: 700px;
  --wide: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.08rem; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
.flag-bar {
  height: 6px;
  background: linear-gradient(90deg, #000 0 33.33%, #bb0000 33.33% 66.66%, #006600 66.66% 100%);
}
#main-nav {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: .85rem 0; position: sticky; top: 0; z-index: 40;
}
#nav-container {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
#nav-brand img { height: 32px; width: auto; }
#nav-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: auto; margin-right: .75rem; }
#nav-links a {
  color: var(--ink) !important; text-decoration: none !important;
  font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em;
}
#nav-links a:hover { color: var(--red) !important; }
#nav-cta, .btn-play, .btn-cta-main, a.btn-play, a.btn-cta-main {
  display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--red) !important; color: #fff !important; text-decoration: none !important;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  padding: .7rem 1.15rem; border-radius: var(--radius); border: none !important;
  text-transform: uppercase; letter-spacing: .03em;
}
#nav-cta:hover, .btn-play:hover, .btn-cta-main:hover { background: var(--red-deep) !important; color: #fff !important; }
#hero-section {
  background: var(--white);
  border-bottom: 4px solid var(--green);
  padding: 2.5rem 1.25rem 2.75rem;
}
#hero-container { max-width: var(--max); margin: 0 auto; }
#main-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em;
}
#main-title span { color: var(--green); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 38rem; }
#author-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.35rem; }
#author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--black); }
#author-name { font-weight: 700; font-family: var(--font-display); }
#last-updated { color: var(--ink-soft); font-size: .88rem; }
.hero-cta-wrap { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: .65rem; }
#promo-cta-note { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.quick-nav {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--black); padding: 1.25rem 1.35rem; margin: 1.5rem 0 2rem;
}
#quick-nav-title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .85rem; text-transform: uppercase; }
#quick-nav-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; }
#quick-nav-list a { color: var(--ink) !important; text-decoration: none !important; font-weight: 600; font-size: .95rem; }
#quick-nav-list a:hover { color: var(--red) !important; }
h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  margin: 2.4rem 0 1rem; letter-spacing: -.01em; border-top: 1px solid var(--line); padding-top: 1.6rem;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
p { margin: 0 0 1rem; }
.step-card {
  display: grid; grid-template-columns: 36px 1fr; gap: .35rem .9rem;
  background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem; margin: 0 0 .85rem;
}
.step-num {
  grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  background: var(--black); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}
.check-list, .feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li, .feature-list li {
  padding: .55rem 0 .55rem 1.1rem; border-left: 3px solid var(--green); margin-bottom: .45rem; background: var(--white);
}
.note-box, .status-box {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: 1rem 1.15rem; margin: 1rem 0 1.35rem;
}
.status-label {
  display: inline-block; background: var(--green); color: #fff; font-size: .72rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; margin-bottom: .65rem;
}
.mid-cta, .final-offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--black); color: #fff; padding: 1.25rem 1.35rem; margin: 1.75rem 0;
}
.mid-cta p, .final-offer p, .final-offer h3 { color: #fff; margin: 0; }
.final-offer .amount { color: #9fdf9f; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: .35rem 0; }
.banner-wrapper { text-align: center; margin: 1.5rem 0; }
.banner-wrapper img { max-width: 100%; height: auto; }
.soft-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.soft-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.soft-table th, .soft-table td { border: 1px solid var(--line); padding: .65rem .75rem; text-align: left; }
.soft-table th { background: var(--black); color: #fff; font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; }
.faq-q { font-family: var(--font-display); font-weight: 700; margin: 1.1rem 0 .35rem; }
#author-bio-section {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); padding: 1.25rem; margin: 2rem 0;
}
#bio-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
#bio-name { font-family: var(--font-display); margin: 0 0 .4rem; }
#main-footer { background: var(--black); color: rgba(255,255,255,.82); padding: 2rem 1.25rem; }
#footer-container { max-width: var(--wide); margin: 0 auto; text-align: center; }
.footer-cta { margin-bottom: 1.25rem; }
#footer-logos {
  display: flex !important; flex-wrap: wrap; gap: .85rem 1.15rem; justify-content: center; align-items: center;
  margin: 1.15rem 0 1.25rem !important;
}
#footer-logos img {
  height: 38px !important; width: auto !important; max-width: 150px;
  object-fit: contain !important;
  background: transparent !important;
  padding: .1rem .25rem !important;
  border-radius: 0 !important;
  filter: none !important;
}
#footer-18plus { height: 42px !important; }
#footer-copyright { margin: 0 0 .5rem; font-size: .9rem; }
#footer-disclaimer { margin: 0; font-size: .8rem; opacity: .85; max-width: 52rem; margin-inline: auto; }

.nav-check { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  margin-left: auto; padding: .55rem .95rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  #nav-container { flex-wrap: wrap; align-items: center; }
  #nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: .35rem; margin: .65rem 0 0; padding: .65rem .75rem;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; order: 20;
  }
  #nav-links a { color: var(--ink) !important; padding: .55rem .25rem; border-bottom: 1px solid var(--line); }
  #nav-links a:last-child { border-bottom: none; }
  #nav-container:has(.nav-check:checked) #nav-links { display: flex !important; }
}

@media (max-width: 700px) {
  #quick-nav-list { grid-template-columns: 1fr; }
  .mid-cta, .final-offer { flex-direction: column; align-items: stretch; }
  .mid-cta .btn-play, .final-offer .btn-play { width: 100%; }
  #author-bio-section { grid-template-columns: 68px 1fr; }
  #bio-avatar { width: 68px; height: 68px; }
}

.soft-table { background: #fff; color: #121212; }
.soft-table th { background: #000 !important; color: #fff !important; }
.soft-table td { color: #121212; }


/* Group language links — auto-synced HTML; style only */
.group-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .65rem .75rem !important;
  max-width: var(--wide, 1040px);
  margin: 0 auto !important;
  padding: 1.35rem 1.25rem 1.6rem !important;
  background: #fff;
  border-top: 1px solid var(--line, rgba(0,0,0,.12));
  position: relative;
  align-items: stretch !important;
  justify-content: stretch !important;
}
.group-links::after {
  content: "";
  grid-column: 1 / -1;
  height: 4px;
  margin-top: .35rem;
  background: linear-gradient(90deg, #000 0 33.33%, #bb0000 33.33% 66.66%, #006600 66.66% 100%);
}
.group-links::before {
  content: "Also available in other languages";
  grid-column: 1 / -1;
  font-family: var(--font-display, Archivo, sans-serif);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft, #3d3d3d);
  margin-bottom: .15rem;
}
.group-links > span {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: .2rem;
  margin: 0 !important;
  padding: .7rem .85rem;
  background: var(--paper, #f7f7f4);
  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-left: 3px solid var(--green, #006600);
  border-radius: 6px;
  min-width: 0;
}
.group-links > span > span,
.group-links > span > p {
  margin: 0 !important;
  font-size: .72rem !important;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-soft, #3d3d3d) !important;
  line-height: 1.3;
}
.group-links > span > a {
  color: var(--green-deep, #004d00) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  line-height: 1.35;
  word-break: break-word;
}
.group-links > span > a:hover {
  color: var(--red, #bb0000) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .group-links { grid-template-columns: 1fr !important; padding: 1.1rem 1rem 1.35rem !important; }
}



/* Perf: skip offscreen paint/layout work on mid Android */
.bookie-section, .banner-wrapper, #author-bio-section, #main-footer, .group-links, .final-offer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}
#main-footer { contain-intrinsic-size: 1px 520px; }
img[loading="lazy"] { content-visibility: auto; }

/* === Kenya device pass (StatCounter Jul 2026): Android ~92%, 360px CSS width dominant,
   Chrome ~63% + Opera ~29%. Target Tecno/Infinix/Samsung mid-range + Opera. === */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a, button, .btn-play, .nav-toggle, label { -webkit-tap-highlight-color: rgba(0,0,0,.12); }
.btn-play, a.btn-play, .btn-cta-main, a.btn-cta-main, #nav-cta {
  min-height: 44px;
  touch-action: manipulation;
}
.nav-toggle { min-height: 44px; min-width: 44px; }
.soft-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
/* Opera / older WebView: sibling checkbox (no :has required) */
@media (max-width: 860px) {
  #nav-check:checked ~ #nav-links { display: flex !important; }
  #nav-links a { min-height: 44px; display: flex; align-items: center; }
  #nav-cta { order: 5; }
}
@media (max-width: 400px) {
  body { font-size: 1rem; line-height: 1.65; }
  #hero-section, #hero-container { padding-left: .9rem; padding-right: .9rem; }
  .container { padding-left: .9rem; padding-right: .9rem; }
  #nav-container { padding-left: .9rem; padding-right: .9rem; gap: .65rem; }
  h1, #main-title { font-size: clamp(1.55rem, 7.2vw, 2.05rem) !important; line-height: 1.15; }
  .hero-lead { font-size: 1rem; }
  h2 { font-size: 1.28rem; }
  .quick-nav { padding: 1rem; }
}
