:root { --primary:#1f6f4a; --accent:#d97706; }
img.logo { max-height:48px; max-width:260px; width:auto; height:auto; object-fit:contain; }
/* ==========================================================
   Sapphire & Gold Casino Affiliate Theme
   Prefix: th-
   Mobile-first, single breakpoint at 1024px
   --primary and --accent injected by site settings
   ========================================================== */

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #0f1f3d;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #b3860f;
  text-decoration: none;
}
a:hover {
  color: #8f6b0c;
  text-decoration: underline;
}

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

/* --- Disclosure banner ----------------------------------- */
.th-disclosure {
  background: #0f1f3d;
  color: #b9c2d6;
  font-size: 11px;
  padding: 5px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(15,31,61,0.12);
  line-height: 1.5;
}
@media (min-width: 1024px) {
  .th-disclosure { font-size: 13px; }
}

/* --- Header --------------------------------------------- */
.th-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(15,31,61,0.12);
  background: #ffffff;
  z-index: 100;
}

/* Logo */
.th-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f3d;
  text-decoration: none;
}
.th-logo:hover { text-decoration: none; color: #0f1f3d; }

/* Logo icon square */
.th-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #d8a63f;
  color: #0f1f3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

/* Desktop nav — hidden on mobile */
.th-nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .th-nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
  }
  .th-nav-desktop a {
    color: #0f1f3d;
    text-decoration: none;
    white-space: nowrap;
  }
  .th-nav-desktop a:hover {
    color: #b3860f;
    text-decoration: none;
  }
}

/* Hamburger button — visible on mobile only */
.th-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.th-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f1f3d;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.th-hamburger--open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.th-hamburger--open span:nth-child(2) { opacity: 0; }
.th-hamburger--open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) {
  .th-hamburger { display: none; }
}

/* Mobile nav dropdown */
.th-nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f7f8fb;
  border-bottom: 1px solid #e2e6ec;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 2px;
  z-index: 200;
}
.th-nav-mobile[hidden] { display: none; }
.th-nav-mobile a {
  display: block;
  padding: 12px 0;
  color: #0f1f3d;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(15,31,61,0.12);
  text-decoration: none;
}
.th-nav-mobile a:last-child { border-bottom: none; }
.th-nav-mobile a:hover { color: #b3860f; }
@media (min-width: 1024px) {
  .th-nav-mobile { display: none !important; }
}

/* --- Page wrapper --------------------------------------- */
.th-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Breadcrumb ----------------------------------------- */
.th-breadcrumb-wrap {
  padding: 10px 0 0;
}
.th-breadcrumb {
  font-size: 12px;
  color: #5c6478;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.th-breadcrumb a { color: #5c6478; text-decoration: none; }
.th-breadcrumb a:hover { color: #b3860f; text-decoration: underline; }
.th-breadcrumb .th-bc-sep { color: #5c6478; }
.th-breadcrumb .th-bc-current { color: #0f1f3d; }

/* --- Two-column layout ---------------------------------- */
.th-layout {
  display: block;
  padding: 10px 0 60px;
  align-items: start;
}
@media (min-width: 1024px) {
  .th-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
}

.th-main { min-width: 0; }

/* --- Sticky TOC sidebar (desktop) — shown on all page types */
.th-toc-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .th-toc-sidebar {
    display: block;
    position: sticky;
    top: 20px;
    align-self: start;
  }
}
.th-toc-box {
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}
.th-toc-label {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6478;
}
.th-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.th-toc-nav a {
  color: #0f1f3d;
  text-decoration: none;
  line-height: 1.4;
}
.th-toc-nav a:hover { color: #b3860f; text-decoration: underline; }

/* --- Mobile TOC accordion ------------------------------- */
.th-toc-mobile {
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 28px;
}
.th-toc-mobile__toggle {
  width: 100%;
  background: #f7f8fb;
  border: none;
  color: #0f1f3d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.th-toc-mobile__toggle:hover { background: #eef1f6; }
.th-toc-mobile__icon {
  font-size: 16px;
  line-height: 1;
  color: #5c6478;
}
.th-toc-mobile__nav {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  border-top: 1px solid #e2e6ec;
}
.th-toc-mobile__nav[hidden] { display: none; }
.th-toc-mobile__nav a {
  color: #0f1f3d;
  text-decoration: none;
}
.th-toc-mobile__nav a:hover { color: #b3860f; text-decoration: underline; }
@media (min-width: 1024px) {
  .th-toc-mobile { display: none; }
}

/* --- Content typography --------------------------------- */
.th-main h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #0f1f3d;
}
@media (min-width: 1024px) {
  .th-main h1 { font-size: 30px; }
}

.th-main h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0f1f3d;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  .th-main h2 { font-size: 22px; }
}

.th-main h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f1f3d;
  line-height: 1.3;
}

.th-main p {
  font-size: 14px;
  color: #2c2f36;
  margin: 0 0 14px;
  line-height: 1.6;
}

.th-main ul, .th-main ol {
  font-size: 14px;
  color: #2c2f36;
  padding-left: 20px;
  margin: 0 0 14px;
}

.th-main li { margin-bottom: 6px; }

.th-main blockquote {
  border-left: 3px solid #d8a63f;
  margin: 0 0 16px;
  padding: 10px 16px;
  background: #fbf3e2;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #2c2f36;
}

.th-main figure {
  margin: 0 0 16px;
}
.th-main figcaption {
  font-size: 12px;
  color: #5c6478;
  margin-top: 6px;
}

/* Section spacing */
.th-main section {
  margin-top: 44px;
}
.th-main section:first-child {
  margin-top: 0;
}

/* --- Byline / E-E-A-T ----------------------------------- */
/* Desktop byline */
.th-byline {
  display: none;
}
@media (min-width: 1024px) {
  .th-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(15,31,61,0.12);
    border-bottom: 1px solid rgba(15,31,61,0.12);
    margin-bottom: 16px;
  }
}
.th-byline__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-byline__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e6ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #0f1f3d;
  flex-shrink: 0;
}
.th-byline__name {
  font-size: 13px;
  font-weight: 600;
  color: #0f1f3d;
}
.th-byline__role {
  font-size: 13px;
  font-weight: 400;
  color: #5c6478;
}
.th-byline__updated {
  margin-left: auto;
  font-size: 13px;
  color: #5c6478;
}
.th-byline__updated strong { color: #0f1f3d; }

/* Mobile byline */
.th-byline-mobile {
  font-size: 11px;
  color: #5c6478;
  padding: 6px 0 10px;
  border-top: 1px solid rgba(15,31,61,0.12);
  margin-bottom: 10px;
  line-height: 1.6;
}
.th-byline-mobile strong { color: #0f1f3d; }
@media (min-width: 1024px) {
  .th-byline-mobile { display: none; }
}

/* .byline class from {{content}} */
.byline {
  font-size: 11px;
  color: #5c6478;
  padding: 6px 0 10px;
  border-top: 1px solid rgba(15,31,61,0.12);
  margin-bottom: 10px;
  line-height: 1.6;
}
.byline strong { color: #0f1f3d; }
@media (min-width: 1024px) {
  .byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(15,31,61,0.12);
    border-bottom: 1px solid rgba(15,31,61,0.12);
    margin-bottom: 16px;
    font-size: 13px;
  }
}

/* --- Related box ---------------------------------------- */
.related {
  background: #f7f8fb;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  font-size: 13px;
}
.related strong {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f1f3d;
}
.related a {
  display: block;
  color: #b3860f;
  margin-bottom: 4px;
}
.related a:hover { color: #8f6b0c; }

/* --- Comparison table ----------------------------------- */
.th-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  margin-bottom: 0;
}
.th-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.th-table thead tr {
  background: #f7f8fb;
}
.th-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: #0f1f3d;
  white-space: nowrap;
}
.th-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(15,31,61,0.14);
  vertical-align: middle;
}
.th-table td:first-child { font-weight: 700; }
.th-table .th-td-rating { color: #b3860f; }
.th-table .th-td-muted { color: #5c6478; }

/* --- Methodology criteria grid -------------------------- */
.th-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.th-criteria-card {
  background: #f7f8fb;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 16px;
}
.th-criteria-card__title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
  color: #0f1f3d;
}
.th-criteria-card__text {
  font-size: 13px;
  color: #5c6478;
  line-height: 1.5;
}

/* --- How-to steps --------------------------------------- */
.th-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.th-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.th-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d8a63f;
  color: #0f1f3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.th-step__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: #0f1f3d;
}
.th-step__text {
  font-size: 14px;
  color: #5c6478;
  line-height: 1.5;
}

/* --- FAQ accordion -------------------------------------- */
.th-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.th-faq__item {
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  overflow: hidden;
}
.th-faq__question {
  width: 100%;
  text-align: left;
  background: #f7f8fb;
  border: none;
  color: #0f1f3d;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  gap: 12px;
}
.th-faq__question:hover { background: #eef1f6; }
.th-faq__icon {
  font-size: 18px;
  line-height: 1;
  color: #5c6478;
  flex-shrink: 0;
}
.th-faq__answer {
  padding: 14px 16px;
  font-size: 14px;
  color: #2c2f36;
  border-top: 1px solid rgba(15,31,61,0.14);
  line-height: 1.6;
}
.th-faq__answer[hidden] { display: none; }

/* --- Responsible gambling card -------------------------- */
.th-rg-card {
  background: #f7f8fb;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.th-rg-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(178,58,31,0.1);
  color: #b23a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.th-rg-text {
  font-size: 13px;
  color: #2c2f36;
  margin: 0;
  flex: 1;
  min-width: 220px;
  line-height: 1.6;
}

/* --- Footer --------------------------------------------- */
.th-footer {
  border-top: 1px solid rgba(15,31,61,0.14);
  padding: 32px 20px;
  background: #ffffff;
}
.th-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Authority badges */
.th-authorities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.th-authorities a,
.th-authorities span {
  font-size: 11px;
  background: #f7f8fb;
  border: 1px solid #e2e6ec;
  border-radius: 6px;
  padding: 5px 10px;
  color: #5c6478;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.th-authorities a:hover { color: #b3860f; }
.th-authorities img {
  height: 18px;
  width: auto;
  display: inline-block;
}
.th-badge-18 {
  background: rgba(178,58,31,0.1) !important;
  border-color: rgba(178,58,31,0.35) !important;
  color: #b23a1f !important;
  font-weight: 700;
}

/* Social row */
.th-social {
  margin-bottom: 14px;
}
.th-social:empty { display: none; }

/* Disclosure */
.th-footer-disclosure {
  font-size: 12px;
  color: #5c6478;
  max-width: 760px;
  margin: 0 0 10px;
  line-height: 1.6;
}

/* Legal + copyright */
.th-footer-legal {
  font-size: 12px;
  color: #5c6478;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.th-legal-links a {
  color: #5c6478;
  text-decoration: none;
}
.th-legal-links a:hover { color: #b3860f; text-decoration: underline; }
.th-copyright { color: #5c6478; }

/* --- Page-type body variants ---------------------------- */
body.pt-home .th-main h1 { font-size: 26px; }
@media (min-width: 1024px) {
  body.pt-home .th-main h1 { font-size: 36px; }
}

/* TOC sidebar is shown on all page types — no overrides hiding it */

body.pt-legal .th-main p,
body.pt-support .th-main p { font-size: 14px; color: #2c2f36; }

/* --- Utility classes ------------------------------------ */
.th-section-gap { margin-top: 44px; }
.th-muted { color: #5c6478; }
.th-small { font-size: 12px; }
.th-fine-print { font-size: 11px; color: rgba(92,100,120,0.85); line-height: 1.5; }