:root {
  --tb-bg: #0a1612;
  --tb-bg-2: #0e1c18;
  --tb-bg-3: #122620;
  --tb-surface: #112822;
  --tb-surface-soft: #143028;
  --tb-line: #1d3a30;
  --tb-line-strong: #285044;
  --tb-ink: #ecf5f1;
  --tb-ink-soft: #b8cfc4;
  --tb-muted: #7c9388;
  --tb-emerald: #10b981;
  --tb-emerald-soft: #34d399;
  --tb-amber: #f59e0b;
  --tb-amber-soft: #fbbf24;
  --tb-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --tb-glow: 0 0 24px rgba(16, 185, 129, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tb-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(16, 185, 129, 0.1), transparent 45%),
    radial-gradient(ellipse at 100% 30%, rgba(245, 158, 11, 0.07), transparent 50%),
    var(--tb-bg);
  color: var(--tb-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--tb-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }

.tb-container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; position: relative; }

/* Header */
.tb-header {
  position: relative; z-index: 50;
  background: rgba(10, 22, 18, 0.94);
  border-bottom: 1px solid var(--tb-line);
}
.tb-header__inner {
  width: min(1220px, calc(100% - 32px)); margin: 0 auto; height: 78px;
  display: flex; align-items: center; gap: 24px;
}

.tb-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800;
  color: var(--tb-ink); font-size: 20px; min-width: 0;
}
.tb-logo__mark, .tb-logo__img, .tb-footer__brand-mark, .tb-footer__brand-img {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tb-logo__img, .tb-footer__brand-img { object-fit: cover; border-radius: 12px; }
.tb-logo__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-logo__text-accent {
  background: linear-gradient(135deg, var(--tb-emerald), var(--tb-amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tb-nav { display: flex; align-items: center; gap: 22px; }
.tb-nav a {
  text-decoration: none; color: var(--tb-ink-soft);
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 15px;
  padding: 6px 0; position: relative; transition: color 0.18s ease;
}
.tb-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--tb-emerald);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.2s ease;
}
.tb-nav a:hover { color: var(--tb-emerald); }
.tb-nav a:hover::after { transform: scaleX(1); }

.tb-header__cta-group {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.tb-lang {
  display: inline-flex; gap: 4px;
  border: 1px solid var(--tb-line-strong);
  border-radius: 999px; padding: 3px;
}
.tb-lang__link {
  text-decoration: none; color: var(--tb-ink-soft);
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.tb-lang__link.is-active { background: var(--tb-emerald); color: #0a1612; }
.tb-lang__link:not(.is-active):hover { color: var(--tb-emerald); }

.tb-btn, .tb-header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 999px; text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tb-header__cta, .tb-btn--primary {
  background: linear-gradient(135deg, var(--tb-emerald) 0%, var(--tb-amber) 100%);
  color: #0a1612;
  box-shadow: var(--tb-glow);
}
.tb-header__cta:hover, .tb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.5);
}
.tb-btn--ghost {
  background: transparent; color: var(--tb-emerald); border-color: var(--tb-emerald);
}
.tb-btn--ghost:hover { background: rgba(16, 185, 129, 0.1); }
.tb-btn--wide { width: 100%; margin-top: 18px; }

.tb-burger {
  display: none; width: 46px; height: 46px; margin-left: 6px;
  border: 1px solid var(--tb-line-strong); border-radius: 12px;
  background: var(--tb-surface); cursor: pointer;
  flex-direction: column; padding: 0; align-items: center; justify-content: center; gap: 4px;
}
.tb-burger span { display: block; width: 22px; height: 2px; background: var(--tb-ink); border-radius: 2px; }

.tb-mobile {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--tb-bg);
  display: none; flex-direction: column; gap: 22px;
  padding: 88px 24px 32px;
  overflow-y: auto;
}
.tb-mobile a {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 22px;
  text-decoration: none; color: var(--tb-ink);
  padding: 10px 0; border-bottom: 1px solid var(--tb-line);
}
.tb-mobile__cta {
  margin-top: 12px; text-align: center; background: var(--tb-emerald);
  color: #0a1612; border-radius: 999px; padding: 14px 22px; border: none;
}
.tb-mobile__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: var(--tb-surface); color: var(--tb-ink);
  border: 1px solid var(--tb-line-strong); border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* Eyebrow */
.tb-eyebrow {
  display: inline-flex;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tb-emerald); margin: 0 0 14px;
}
.tb-section__eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tb-amber-soft); margin: 0 0 10px;
}

/* Hero */
.tb-hero {
  position: relative; padding: 80px 0 70px; overflow: hidden;
}
.tb-hero__rays {
  position: absolute; inset: -20% 30% auto -20%; width: 80%; height: 80%;
  background: conic-gradient(from 0deg at 0% 0%, rgba(16, 185, 129, 0.18), transparent 30%, rgba(245, 158, 11, 0.14), transparent 60%);
  pointer-events: none; filter: blur(40px);
}
.tb-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.tb-hero__content > p { color: var(--tb-ink-soft); }
.tb-hero__lead { font-size: 18px; color: var(--tb-ink-soft); margin: 0 0 22px; max-width: 58ch; }
.tb-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 30px; }

.tb-hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--tb-line);
}
.tb-hero__stats dt {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tb-muted); margin-bottom: 4px;
}
.tb-hero__stats dd { font-weight: 700; color: var(--tb-ink); margin: 0; font-size: 16px; }

.tb-byline {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 6px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--tb-line);
  border-radius: 14px;
}
.tb-byline__avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--tb-emerald);
}
.tb-byline__avatar--placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 14px;
  background: var(--tb-bg-3); color: var(--tb-emerald);
}
.tb-byline__body { display: flex; flex-direction: column; gap: 2px; color: var(--tb-ink-soft); font-size: 14px; }
.tb-byline__by { font-weight: 600; color: var(--tb-ink); }
.tb-byline__by a { color: var(--tb-emerald); text-decoration: none; }
.tb-byline__role { font-weight: 500; color: var(--tb-muted); margin-left: 6px; font-size: 12px; }
.tb-byline__bio { color: var(--tb-ink-soft); font-size: 13px; }
.tb-byline__date { color: var(--tb-muted); font-size: 12px; }

/* Summary card */
.tb-summary-card {
  background: linear-gradient(160deg, var(--tb-surface) 0%, var(--tb-surface-soft) 100%);
  border: 1px solid var(--tb-line-strong);
  border-radius: 22px; padding: 24px;
  box-shadow: var(--tb-shadow);
}
.tb-summary-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tb-summary-card__tag {
  background: var(--tb-bg-3); color: var(--tb-emerald);
  padding: 4px 10px; border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em;
}
.tb-summary-card__pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--tb-ink-soft); font-weight: 600;
}
.tb-summary-card__pulse span {
  width: 8px; height: 8px; background: var(--tb-amber); border-radius: 50%;
  animation: tbPulse 1.6s infinite;
}
@keyframes tbPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.tb-summary-card__panel {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(16, 185, 129, 0.08); margin-bottom: 8px;
}
.tb-summary-card__panel--alt { background: rgba(245, 158, 11, 0.08); }
.tb-summary-card__panel span:first-child {
  color: var(--tb-muted); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tb-summary-card__panel strong { color: var(--tb-ink); font-size: 14px; font-weight: 700; text-align: right; }
.tb-summary-card__legal { font-size: 12px; color: var(--tb-muted); margin: 10px 0 0; }

/* Strip */
.tb-strip {
  background: var(--tb-bg-2);
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
  padding: 20px 0;
}
.tb-strip__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tb-strip__grid > div { text-align: center; }
.tb-strip__grid strong { display: block; color: var(--tb-emerald); font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; }
.tb-strip__grid span { color: var(--tb-ink-soft); font-size: 13px; }

/* Sections */
.tb-section { padding: 60px 0; }
.tb-section--soft { background: var(--tb-bg-2); }
.tb-section--dark {
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0)), var(--tb-bg-3);
  border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line);
}
.tb-section p { color: var(--tb-ink-soft); }

.tb-two-col {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px; align-items: start;
}
.tb-verdict {
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 18px; padding: 22px; display: grid; gap: 6px;
}
.tb-verdict__score {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 44px;
  color: var(--tb-emerald);
}
.tb-verdict__label {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--tb-muted);
}
.tb-verdict p { margin: 8px 0 0; color: var(--tb-ink-soft); }

.tb-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 18px;
}
.tb-card {
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 16px; padding: 22px;
}
.tb-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 28px;
  border-radius: 8px; padding: 0 8px;
  background: rgba(16, 185, 129, 0.15); color: var(--tb-emerald);
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 13px;
  margin-bottom: 10px;
}

.tb-bonus-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px; align-items: start;
}
.tb-bonus-box, .tb-steps {
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 18px; padding: 24px;
}
.tb-steps h3 { margin-bottom: 12px; }
.tb-steps ol { padding-left: 18px; color: var(--tb-ink-soft); display: grid; gap: 6px; }
.tb-table { display: grid; gap: 8px; margin-top: 14px; }
.tb-table > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 10px;
  background: rgba(16, 185, 129, 0.07);
}
.tb-table span { color: var(--tb-muted); font-size: 14px; font-weight: 600; }
.tb-table strong { color: var(--tb-ink); font-size: 15px; }

.tb-payment-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.tb-payment-grid > div {
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 10px; padding: 12px 14px; text-align: center;
  color: var(--tb-ink); font-weight: 600;
}

.tb-note {
  color: var(--tb-ink-soft);
  background: rgba(245, 158, 11, 0.07);
  border-left: 3px solid var(--tb-amber);
  padding: 12px 14px; border-radius: 8px; margin-top: 18px;
}

.tb-feature {
  background: linear-gradient(155deg, var(--tb-bg-3), var(--tb-surface));
  border: 1px solid var(--tb-line-strong);
  border-radius: 18px; padding: 22px;
}
.tb-check-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 6px;
  color: var(--tb-ink-soft);
}
.tb-check-list li { position: relative; padding-left: 26px; }
.tb-check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px; border-left: 2px solid var(--tb-emerald);
  border-bottom: 2px solid var(--tb-emerald); transform: rotate(-45deg);
}

.tb-page-toc { background: var(--tb-bg-2); padding: 30px 0; }
.tb-page-toc ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tb-page-toc a {
  text-decoration: none; background: var(--tb-surface);
  border: 1px solid var(--tb-line); color: var(--tb-ink);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.tb-page-toc a:hover { background: var(--tb-emerald); color: #0a1612; }

.tb-faq { display: grid; gap: 10px; }
.tb-faq details {
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 14px; padding: 14px 18px;
}
.tb-faq summary {
  list-style: none; cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--tb-ink);
  position: relative; padding-right: 24px;
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--tb-emerald); font-size: 20px; line-height: 1;
}
.tb-faq details[open] summary::after { content: "−"; }
.tb-faq p { color: var(--tb-ink-soft); margin: 10px 0 0; }

/* CTA */
.tb-cta {
  text-align: center; padding: 70px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.16), transparent 70%), var(--tb-bg-2);
  border-top: 1px solid var(--tb-line);
}
.tb-cta h2 { font-size: clamp(24px, 3vw, 32px); }
.tb-cta p { color: var(--tb-ink-soft); margin: 0 0 22px; }

/* Footer */
.tb-footer {
  background: #060f0c; border-top: 1px solid var(--tb-line); margin-top: 40px;
}
.tb-footer__inner {
  width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 32px;
}
.tb-footer__top {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px; margin-bottom: 32px;
}
.tb-footer__brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 12px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 18px;
  color: var(--tb-ink);
}
.tb-footer__brand-block p { color: var(--tb-ink-soft); max-width: 60ch; }
.tb-footer__cta-card {
  background: linear-gradient(155deg, var(--tb-bg-3), var(--tb-surface));
  border: 1px solid var(--tb-line-strong);
  border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.tb-footer__cta-card a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tb-emerald); color: #0a1612;
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700;
}
.tb-footer__cta-meta {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--tb-amber);
}
.tb-footer__columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px; padding: 28px 0;
  border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line);
}
.tb-footer__group h2 {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tb-muted); margin: 0 0 10px;
}
.tb-footer__group a {
  display: block; text-decoration: none; color: var(--tb-ink); padding: 4px 0; font-size: 14px;
}
.tb-footer__group a:hover { color: var(--tb-emerald); }
.tb-footer__bottom {
  display: flex; justify-content: space-between;
  gap: 16px; padding-top: 22px; font-size: 13px;
  color: var(--tb-ink-soft); flex-wrap: wrap;
}

/* Simple page */
.tb-simple-page { padding-top: 20px; }
.tb-simple-hero { padding: 60px 0 36px; }
.tb-simple-hero h1 { max-width: 24ch; }
.tb-simple-hero p { color: var(--tb-ink-soft); max-width: 60ch; margin: 0 0 18px; }
.tb-simple-hero .tb-btn { margin-top: 8px; }

/* Download */
.tb-download__buttons {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 16px;
}
.tb-store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line-strong);
  border-radius: 14px; padding: 14px 18px;
  text-decoration: none; color: var(--tb-ink);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.tb-store-btn:hover { transform: translateY(-1px); background: var(--tb-bg-3); border-color: var(--tb-emerald); }
.tb-store-btn__icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.15); color: var(--tb-emerald); flex-shrink: 0;
}
.tb-store-btn__body { display: flex; flex-direction: column; }
.tb-store-btn__caption {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tb-muted); font-weight: 700;
}
.tb-store-btn__label { font-weight: 700; color: var(--tb-ink); font-size: 16px; }
.tb-download__note { color: var(--tb-ink-soft); font-size: 13px; margin-top: 12px; }

/* TOC */
.tb-content-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.tb-toc {
  position: sticky; top: 96px;
  background: var(--tb-surface); border: 1px solid var(--tb-line);
  border-radius: 14px; padding: 16px; align-self: start;
}
.tb-toc__title {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tb-muted); margin: 0 0 10px;
}
.tb-toc__nav { display: flex; flex-direction: column; gap: 4px; }
.tb-toc__nav a {
  text-decoration: none; color: var(--tb-ink-soft);
  font-size: 13px; padding: 4px 6px; border-radius: 6px;
}
.tb-toc__nav a:hover { background: rgba(16, 185, 129, 0.1); color: var(--tb-emerald); }
.tb-toc__nav-sub { padding-left: 16px !important; font-size: 12px !important; }

/* Rich text */
/* CMS body compatibility guard */
.tb-landing-body .rich-text,
.tb-body main.container .legal-rich-text {
  contain: layout paint style;
  isolation: isolate;
  position: relative;
  z-index: 0;
  min-width: 0;
}
.tb-landing-body .rich-text {
  color: var(--tb-ink);
  line-height: 1.7;
}
.tb-landing-body .rich-text,
.tb-landing-body .rich-text *,
.tb-landing-body .rich-text *::before,
.tb-landing-body .rich-text *::after,
.tb-body main.container .legal-rich-text,
.tb-body main.container .legal-rich-text *,
.tb-body main.container .legal-rich-text *::before,
.tb-body main.container .legal-rich-text *::after { box-sizing: border-box; }
.tb-landing-body .rich-text :where(img, video, iframe, svg, canvas),
.tb-body main.container .legal-rich-text :where(img, video, iframe, svg, canvas) { max-width: 100%; height: auto; }
.tb-landing-body .rich-text :where(.tb-header, .tb-mobile, .tb-footer),
.tb-body main.container .legal-rich-text :where(.tb-header, .tb-mobile, .tb-footer) { display: none !important; }
.tb-landing-body .rich-text :where(header, footer, nav, [class*="sticky"], [style*="position: sticky"], [style*="position:sticky"], [style*="position: fixed"], [style*="position:fixed"]),
.tb-body main.container .legal-rich-text :where(header, footer, nav, [class*="sticky"], [style*="position: sticky"], [style*="position:sticky"], [style*="position: fixed"], [style*="position:fixed"]) {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
}
.tb-landing-body .rich-text :where(.container),
.tb-body main.container .legal-rich-text :where(.container) {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* CMS body compatibility – width/overflow normalization */
.tb-landing-body .rich-text,
.tb-body main.container .legal-rich-text {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.tb-landing-body .rich-text :where(.container, .wrap, .wrapper, .content, .article, .article-wrap, .section, .hero, .img-wrap),
.tb-body main.container .legal-rich-text :where(.container, .wrap, .wrapper, .content, .article, .article-wrap, .section, .hero, .img-wrap) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tb-landing-body .rich-text :where(img, figure, picture, .media-image, .media-image__img, .img-wrap),
.tb-body main.container .legal-rich-text :where(img, figure, picture, .media-image, .media-image__img, .img-wrap) {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}
.tb-landing-body .rich-text :where(figure, picture, .media-image, .img-wrap),
.tb-body main.container .legal-rich-text :where(figure, picture, .media-image, .img-wrap) {
  width: 100% !important;
}
.tb-landing-body .rich-text :where(table),
.tb-body main.container .legal-rich-text :where(table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 767px) {
  .tb-landing-body .rich-text,
  .tb-body main.container .legal-rich-text {
    overflow-x: hidden;
  }
  .tb-landing-body .rich-text :where(.container, .wrap, .wrapper, .content, .article, .article-wrap, .section, .hero, .img-wrap),
  .tb-body main.container .legal-rich-text :where(.container, .wrap, .wrapper, .content, .article, .article-wrap, .section, .hero, .img-wrap) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tb-landing-body .rich-text :where(img, picture, figure, .media-image, .media-image__img),
  .tb-body main.container .legal-rich-text :where(img, picture, figure, .media-image, .media-image__img) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
.tb-landing-body .rich-text h2 { margin-top: 28px; }
.tb-landing-body .rich-text h3 { margin-top: 22px; color: var(--tb-emerald); }
.tb-landing-body .rich-text p { color: var(--tb-ink); }
.tb-landing-body .rich-text a { color: var(--tb-emerald); text-decoration: underline; }
.tb-landing-body .rich-text ul, .tb-landing-body .rich-text ol { color: var(--tb-ink); }

/* Writer page contrast override */
main.writer-page { color: var(--tb-ink); }
.writer-profile-hero { color: var(--tb-ink); }
.writer-profile-hero__eyebrow { color: var(--tb-emerald); }
.writer-profile-card {
  background: var(--tb-surface) !important;
  border: 1px solid var(--tb-line) !important;
  color: var(--tb-ink) !important;
}
.writer-profile-card__bio, .writer-profile-card__details dd { color: var(--tb-ink-soft); }
.writer-profile-card__type { color: var(--tb-emerald); }
.writer-profile-card__placeholder {
  background: var(--tb-bg-3); color: var(--tb-emerald); font-family: "Plus Jakarta Sans", sans-serif;
}
.writer-profile-empty { color: var(--tb-ink-soft); text-align: center; padding: 40px 16px; }

/* 404 */
.tb-error { padding: 80px 0 60px; text-align: center; }
.tb-error h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.tb-error p { color: var(--tb-ink-soft); max-width: 46ch; margin: 8px auto 22px; }
.tb-error__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.tb-page-faq { padding: 50px 0; }
.tb-page-faq .container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .tb-hero { padding: 60px 0 50px; }
  .tb-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tb-two-col { grid-template-columns: minmax(0, 1fr); }
  .tb-bonus-layout { grid-template-columns: minmax(0, 1fr); }
  .tb-content-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-toc { position: static; }
  .tb-footer__top { grid-template-columns: minmax(0, 1fr); }
  .tb-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-nav { display: none; }
  .tb-burger { display: inline-flex; }
  .tb-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tb-logo__text { font-size: 16px; }
  .tb-logo__text-accent { display: none; }
  .tb-header__inner { gap: 10px; }
  .tb-header__cta { padding: 9px 14px; font-size: 13px; min-height: 42px; }
  .tb-lang { display: none; }
  .tb-download__buttons { grid-template-columns: minmax(0, 1fr); }
  .tb-footer__columns { grid-template-columns: minmax(0, 1fr); }
  .tb-footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .tb-logo__text { font-size: 15px; }
  .tb-logo__img, .tb-logo__mark { width: 40px; height: 40px; }
  .tb-logo__mark svg { width: 40px; height: 40px; }
  .tb-header__inner { gap: 8px; }
  .tb-header__cta { padding: 8px 12px; font-size: 12px; min-height: 40px; }
}

@media (min-width: 961px) {
  .tb-burger { display: none !important; }
  .tb-mobile { display: none !important; }
}
@media (max-width: 960px) {
  .tb-mobile[hidden] { display: none !important; }
  .tb-mobile:not([hidden]) { display: flex; }
  .tb-mobile__cta {
    align-self: stretch;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    min-height: 48px;
  }
}

/* Daily / calendar layout */
.tb-daily { color: var(--tb-ink); }
.tb-eyebrow {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tb-emerald);
  margin: 0 0 10px;
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
.tb-btn--primary {
  background: var(--tb-emerald);
  color: #0a1612;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}
.tb-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4); }

.tb-calhero {
  padding: 60px 0 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(16, 185, 129, 0.1), transparent 50%),
    var(--tb-bg);
  border-bottom: 1px solid var(--tb-line);
}
.tb-calhero .tb-container {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 36px;
}
.tb-calhero__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 16px;
  position: relative;
}
.tb-calhero__date::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--tb-emerald), transparent);
  border-radius: 16px 16px 0 0;
}
.tb-calhero__year {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--tb-muted);
  text-transform: uppercase;
  margin-top: 10px;
}
.tb-calhero__day {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 8vw, 110px);
  line-height: 0.95;
  color: var(--tb-emerald);
  letter-spacing: -0.02em;
}
.tb-calhero__month {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--tb-ink);
  text-transform: uppercase;
}
.tb-calhero__eyebrow {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tb-ink-soft);
  margin: 0 0 14px;
}
.tb-calhero__title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.tb-calhero__lead-text { font-size: 17px; color: var(--tb-ink-soft); max-width: 60ch; margin: 0 0 22px; }
.tb-calhero__cta { margin-top: 6px; }
.tb-calhero--sub .tb-container { padding-bottom: 28px; }

.tb-calhero__cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  width: min(100%, 920px);
}
.tb-calhero__cta-row > .tb-cal-byline { margin: 0; min-width: 0; }
.tb-calhero__cta-row > .tb-calhero__cta {
  justify-self: end;
  margin-top: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .tb-calhero__cta-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tb-calhero__cta-row > .tb-cal-byline { width: 100%; }
  .tb-calhero__cta-row > .tb-calhero__cta {
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    white-space: normal;
  }
}

.tb-cal-byline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 999px;
  font-size: 13px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.tb-cal-byline__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tb-cal-byline__avatar--ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--tb-emerald), #047857);
  color: #0a1612;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-weight: 800;
  font-size: 12px;
}
.tb-cal-byline__by a { color: var(--tb-emerald); text-decoration: none; font-weight: 700; }
.tb-cal-byline__role { color: var(--tb-muted); margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.tb-cal-byline__date { color: var(--tb-muted); font-family: "JetBrains Mono", "Courier New", monospace; font-size: 12px; }

.tb-why {
  background: var(--tb-bg-2);
  border-top: 1px solid var(--tb-line);
  padding: 36px 0;
}
.tb-why__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tb-why__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  color: var(--tb-ink);
  letter-spacing: -0.01em;
}
.tb-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tb-why__card {
  padding: 20px 18px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tb-why__card:hover {
  border-color: var(--tb-line-strong);
  transform: translateY(-2px);
}
.tb-why__card h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  color: var(--tb-ink);
  line-height: 1.35;
}
.tb-why__card p {
  margin: 0;
  font-size: 13px;
  color: var(--tb-ink-soft);
  line-height: 1.5;
}
.tb-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--tb-emerald-soft);
  font-size: 16px;
  margin-bottom: 4px;
}
.tb-why__card--accent {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.04));
}
.tb-why__card--accent .tb-why__icon {
  background: rgba(245, 158, 11, 0.16);
  color: var(--tb-amber-soft);
}

.tb-timeline { padding: 56px 0; }
.tb-timeline__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.tb-timeline__list::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--tb-emerald), transparent);
}
.tb-timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 12px 0;
  position: relative;
}
.tb-timeline__item::before {
  content: "";
  position: absolute;
  left: 73px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tb-bg);
  border: 3px solid var(--tb-emerald);
  z-index: 1;
}
.tb-timeline__item--accent::before { background: var(--tb-emerald); }
.tb-timeline__time {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--tb-emerald);
  letter-spacing: 0.08em;
  padding-top: 14px;
}
.tb-timeline__body {
  padding: 14px 18px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 10px;
}
.tb-timeline__item--accent .tb-timeline__body { border-color: var(--tb-emerald); background: linear-gradient(135deg, var(--tb-surface), rgba(16, 185, 129, 0.08)); }
.tb-timeline__body h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; margin: 0 0 6px; }
.tb-timeline__body p { color: var(--tb-ink-soft); margin: 0; font-size: 14px; }

.tb-weekplan { padding: 56px 0; background: var(--tb-bg-2); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); }
.tb-weekplan__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.tb-weekplan__cell {
  padding: 18px 14px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tb-weekplan__day {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tb-emerald);
  text-transform: uppercase;
}
.tb-weekplan__cell h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; margin: 0; }
.tb-weekplan__cell p { font-size: 13px; color: var(--tb-ink-soft); margin: 0; }
.tb-weekplan__cell--accent { background: linear-gradient(135deg, var(--tb-emerald), #047857); border-color: var(--tb-emerald); }
.tb-weekplan__cell--accent .tb-weekplan__day,
.tb-weekplan__cell--accent h3,
.tb-weekplan__cell--accent p { color: #0a1612; }

.tb-deadlines {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.tb-deadlines th, .tb-deadlines td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--tb-line);
}
.tb-deadlines th {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tb-muted);
}
.tb-deadlines td { color: var(--tb-ink-soft); font-size: 14px; }
.tb-deadlines td strong { color: var(--tb-ink); }
.tb-deadlines__pill {
  display: inline-block;
  padding: 4px 10px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  background: var(--tb-bg-2);
  border: 1px solid var(--tb-line);
  border-radius: 4px;
  color: var(--tb-ink);
}
.tb-deadlines__pill--instant { background: var(--tb-emerald); color: #0a1612; border-color: var(--tb-emerald); }

.tb-section { padding: 48px 0; }
.tb-section--soft { background: var(--tb-bg-2); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); }
.tb-note { font-size: 12px; color: var(--tb-muted); font-family: "JetBrains Mono", "Courier New", monospace; margin-top: 14px; }

.tb-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tb-faq details {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-left: 3px solid var(--tb-emerald);
  border-radius: 8px;
  padding: 14px 18px;
}
.tb-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--tb-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tb-faq summary::after { content: "▾"; color: var(--tb-emerald); transition: transform 0.18s ease; }
.tb-faq details[open] summary::after { transform: rotate(180deg); }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq p { margin: 10px 0 0; color: var(--tb-ink-soft); font-size: 14px; }

.tb-app-band { padding: 48px 0; background: var(--tb-bg-2); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); }
.tb-app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 12px;
}
.tb-app-tile {
  padding: 18px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-emerald);
  border-radius: 12px;
  text-decoration: none;
  color: var(--tb-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tb-app-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25); }
.tb-app-tile--ios { border-color: var(--tb-line-strong); background: var(--tb-bg); }
.tb-app-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tb-app-tile__platform { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 17px; }
.tb-app-tile__badge {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--tb-bg-2);
  color: var(--tb-emerald);
  border: 1px solid var(--tb-emerald);
}
.tb-app-tile__hint { color: var(--tb-muted); font-size: 13px; font-family: "JetBrains Mono", "Courier New", monospace; }

.tb-todo {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-todo li {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  color: var(--tb-ink-soft);
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.tb-todo__check {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-emerald);
  color: #0a1612;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.tb-cta-banner {
  padding: 36px 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.04));
  border-top: 1px solid var(--tb-line);
}
.tb-cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tb-cta-banner__inner h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; }
.tb-cta-banner__inner .tb-eyebrow { margin: 0; }

@media (max-width: 960px) {
  .tb-calhero .tb-container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tb-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-weekplan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-timeline__list::before { left: 60px; }
  .tb-timeline__item { grid-template-columns: 60px 1fr; gap: 16px; }
  .tb-timeline__item::before { left: 53px; }
  .tb-app-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tb-why { padding: 28px 0; }
  .tb-why__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-why__title { font-size: 20px; }
  .tb-weekplan__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-deadlines { font-size: 12px; }
  .tb-deadlines th, .tb-deadlines td { padding: 8px 6px; }
}
@media (min-width: 375px) and (max-width: 437px) {
  .tb-calhero { padding-top: 44px; }
  .tb-calhero .tb-container { gap: 20px; padding-bottom: 26px; }
  .tb-calhero__date {
    padding: 16px 18px;
    border-radius: 14px;
  }
  .tb-calhero__date::before {
    height: 5px;
    border-radius: 14px 14px 0 0;
  }
  .tb-calhero__year {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .tb-calhero__day {
    font-size: 58px;
    line-height: 0.9;
  }
  .tb-calhero__month {
    font-size: 16px;
    letter-spacing: 0.06em;
  }
}

/* Utility pages rendered via templates/casino_reviews/legal.html */
body.tb-body main.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.tb-body main.container .rich-text {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 48, 40, 0.98), rgba(17, 40, 34, 0.98));
  border: 1px solid var(--tb-line);
  box-shadow: var(--tb-shadow);
  color: var(--tb-ink);
}
.tb-body main.container .rich-text > :first-child { margin-top: 0; }
.tb-body main.container .rich-text > :last-child { margin-bottom: 0; }
.tb-body main.container .rich-text h1,
.tb-body main.container .rich-text h2 { color: var(--tb-ink); }
.tb-body main.container .rich-text h3 { color: var(--tb-emerald); }
.tb-body main.container .rich-text p,
.tb-body main.container .rich-text li,
.tb-body main.container .rich-text td,
.tb-body main.container .rich-text th { color: var(--tb-ink-soft); }
.tb-body main.container .rich-text a { color: var(--tb-emerald); text-decoration: underline; }
.tb-body main.container .rich-text ul,
.tb-body main.container .rich-text ol { padding-left: 20px; }
.tb-body main.container .rich-text blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--tb-amber);
  background: rgba(10, 22, 18, 0.56);
  border-radius: 14px;
}
.tb-body main.container .rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.tb-body main.container .rich-text th,
.tb-body main.container .rich-text td {
  padding: 12px 14px;
  border: 1px solid var(--tb-line);
}
.tb-body main.container .rich-text th { background: rgba(18, 38, 32, 0.92); }
.tb-body main.container .page-faq {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 22px;
  background: rgba(17, 40, 34, 0.92);
  border: 1px solid var(--tb-line);
}
.tb-body main.container .page-faq__title,
.tb-body main.container .page-faq__q { color: var(--tb-ink); }
.tb-body main.container .page-faq__a { color: var(--tb-ink-soft); }
.tb-body main.container .contact-form {
  margin-top: 24px;
  padding: 24px 28px 28px;
  border-radius: 22px;
  background: rgba(17, 40, 34, 0.96);
  border: 1px solid var(--tb-line);
}
.tb-body main.container .contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.tb-body main.container .contact-form__label {
  color: var(--tb-ink);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.tb-body main.container .contact-form__req { color: var(--tb-amber-soft); }
.tb-body main.container .contact-form__input,
.tb-body main.container .contact-form__textarea {
  width: 100%;
  border: 1px solid var(--tb-line-strong);
  border-radius: 14px;
  background: rgba(10, 22, 18, 0.88);
  color: var(--tb-ink);
  padding: 14px 16px;
  font: inherit;
}
.tb-body main.container .contact-form__textarea { min-height: 160px; resize: vertical; }
.tb-body main.container .contact-form__input:focus,
.tb-body main.container .contact-form__textarea:focus {
  outline: none;
  border-color: var(--tb-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.tb-body main.container .contact-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tb-emerald) 0%, var(--tb-amber) 100%);
  color: #0a1612;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--tb-glow);
}
.tb-body main.container .contact-form__btn:hover { transform: translateY(-1px); }
.tb-body main.container .contact-form__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tb-body main.container .contact-form__status { margin: 14px 0 0; }
.tb-body main.container .contact-form__status.is-success { color: var(--tb-amber-soft); }
.tb-body main.container .contact-form__status.is-error { color: #fecaca; }
@media (max-width: 560px) {
  body.tb-body main.container { padding: 28px 0 56px; }
  .tb-body main.container .rich-text,
  .tb-body main.container .page-faq,
  .tb-body main.container .contact-form { padding: 20px; border-radius: 18px; }
  .tb-body main.container .contact-form__btn { width: 100%; }
}
/* Horizontal overflow guard — viewport-level mobile stability */
html,
body.tb-body {
  max-width: 100%;
  overflow-x: hidden;
}
body.tb-body {
  position: relative;
}
.tb-landing-body,
.tb-landing-body .rich-text,
.tb-body main.container,
.tb-body main.container .legal-rich-text {
  max-width: 100%;
  overflow-x: hidden;
}
.tb-landing-body .rich-text > *,
.tb-body main.container .legal-rich-text > * {
  max-width: 100%;
  box-sizing: border-box;
}
.tb-landing-body .rich-text :where(pre, code, table, iframe, video, canvas, svg),
.tb-body main.container .legal-rich-text :where(pre, code, table, iframe, video, canvas, svg) {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 767px) {
  body.tb-body {
    width: 100%;
    overflow-x: hidden;
  }
  .tb-landing-body .rich-text,
  .tb-body main.container .legal-rich-text {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .tb-landing-body .rich-text :where([style*="width"], [style*="min-width"], [style*="max-width"]),
  .tb-body main.container .legal-rich-text :where([style*="width"], [style*="min-width"], [style*="max-width"]) {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
/* CMS body mobile adaptation — prevent in-content clipping */
.tb-landing-body .rich-text,
.tb-body main.container .legal-rich-text {
  overflow-wrap: anywhere;
  word-break: normal;
}
.tb-landing-body .rich-text :where(h1, h2, h3, h4, p, li, blockquote),
.tb-body main.container .legal-rich-text :where(h1, h2, h3, h4, p, li, blockquote) {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  box-sizing: border-box;
}
.tb-landing-body .rich-text :where(.info-table, table),
.tb-body main.container .legal-rich-text :where(.info-table, table) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  table-layout: auto;
}
@media (max-width: 767px) {
  .tb-landing-body .rich-text :where(h1, h2) {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }
  .tb-landing-body .rich-text :where(h3, h4) {
    font-size: clamp(19px, 6vw, 26px) !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }
  .tb-landing-body .rich-text :where(p, li) {
    font-size: clamp(15px, 4.4vw, 18px) !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .tb-landing-body .rich-text :where(.info-table, table),
  .tb-body main.container .legal-rich-text :where(.info-table, table) {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .tb-landing-body .rich-text :where(.info-table th, .info-table td, table th, table td),
  .tb-body main.container .legal-rich-text :where(.info-table th, .info-table td, table th, table td) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
  }
  .tb-landing-body .rich-text :where(figure, .media-image, .img-wrap, picture) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }
  .tb-landing-body .rich-text :where(img, .media-image__img) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
/* CMS body mobile table width fix — viewport-safe info-table */
@media (max-width: 767px) {
  .tb-landing-body .rich-text :where(.info-table, table),
  .tb-body main.container .legal-rich-text :where(.info-table, table) {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Writer page — theme-specific (365bet). */
.tb-writer-page { max-width: 100%; overflow-x: hidden; }
.tb-writer-hero { padding: 56px 0 18px; }
.tb-writer-hero__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  color: var(--tb-emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid var(--tb-line);
}
.tb-writer-hero__title {
  margin: 12px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--tb-ink);
  line-height: 1.12;
}
.tb-writer-hero__lead { margin: 10px 0 0; color: var(--tb-ink-soft); max-width: 64ch; }
.tb-writer-section { padding: 18px 0 64px; }
.tb-writer-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border-radius: 22px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  box-shadow: var(--tb-shadow);
}
.tb-writer-card__media {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tb-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-writer-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-writer-card__placeholder {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: var(--tb-emerald);
}
.tb-writer-card__content { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tb-writer-card__type {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tb-emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid var(--tb-line);
}
.tb-writer-card__bio {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tb-ink-soft);
  overflow-wrap: anywhere;
  word-break: normal;
}
.tb-writer-card__details { margin: 4px 0 0; display: grid; gap: 6px; }
.tb-writer-card__details dt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--tb-muted);
}
.tb-writer-card__details dd { margin: 2px 0 0; color: var(--tb-ink); }
.tb-writer-card__details a { color: var(--tb-emerald); overflow-wrap: anywhere; word-break: normal; }
.tb-writer-empty {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  background: var(--tb-surface);
  border: 1px dashed var(--tb-line-strong);
  color: var(--tb-ink-soft);
  text-align: center;
}
@media (max-width: 768px) {
  .tb-writer-hero,
  .tb-writer-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .tb-writer-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    max-width: 100%;
    overflow: hidden;
  }
  .tb-writer-card__media { width: 160px; height: 160px; margin: 0 auto; }
  .tb-writer-card__placeholder { font-size: 44px; }
  .tb-writer-card__type { align-self: flex-start; }
  .tb-writer-empty { margin-left: 16px; margin-right: 16px; }
}
