:root {
  --ink: #15231c;
  --muted: #607067;
  --paper: #f5f2e9;
  --surface: #fffdf8;
  --line: #d9ded7;
  --green: #0b573d;
  --green-dark: #073d2c;
  --orange: #e36a27;
  --yellow: #f2c94c;
  --shadow: 0 18px 50px rgba(18, 35, 27, .1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(242, 201, 76, .18), transparent 24rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--ink); line-height: 1.14; letter-spacing: -.025em; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 6vw, 4.9rem); }
h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.15em; }

.sitebar { position: sticky; z-index: 30; top: 0; color: white; background: rgba(7, 61, 44, .97); border-bottom: 4px solid var(--orange); }
.sitebar-inner, .footer-inner, .wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sitebar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; color: white; font-size: 1.25rem; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.brand::before { content: 'TS'; display: grid; width: 42px; height: 42px; margin-right: 12px; place-items: center; color: var(--green-dark); background: var(--yellow); border-radius: 50% 50% 45% 55%; font-size: .84rem; }
.brand small { display: block; margin: 4px 0 0 10px; color: #dce8e1; font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.topnav { display: flex; gap: 24px; }
.topnav a { color: #f7fbf8; font-size: .88rem; font-weight: 700; text-decoration: none; }
.topnav a:hover { color: var(--yellow); }

main { min-height: 70vh; padding: clamp(42px, 7vw, 88px) 0 96px; }
.wrap { position: relative; }
.title { max-width: 1000px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: .83rem; }
.section-kicker { margin-bottom: 9px; color: var(--orange); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.summary { max-width: 900px; margin: 24px 0 48px; padding: 24px 28px; background: rgba(255, 253, 248, .72); border-left: 5px solid var(--orange); }
.summary p:last-child { margin-bottom: 0; }
.editorial-deck { font-size: 1.06rem; }
.answer-first p:first-child { color: var(--green-dark); font-weight: 700; }

.primary-video, .video-shell, .main-video, .video-frame { margin: 30px 0 38px; overflow: hidden; background: #07120d; border-radius: 22px; box-shadow: var(--shadow); }
iframe.primary-video-iframe, .primary-video-iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #07120d; }
.video-watch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 42px; }
.video-watch-meta span { padding: 6px 11px; color: #e6eee9; background: var(--green-dark); border-radius: 999px; font-size: .76rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 60px 0 20px; border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid rgba(11, 87, 61, .12); border-radius: var(--radius); box-shadow: 0 9px 28px rgba(18, 35, 27, .06); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover, .card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); }
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #132a20; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.025); }
.play-chip { position: absolute; inset: 50% auto auto 50%; display: grid; width: 54px; height: 54px; transform: translate(-50%, -50%); place-items: center; color: white; background: var(--orange); border: 4px solid rgba(255, 255, 255, .86); border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.play-icon-svg { width: 24px; fill: currentColor; }
.yt-duration { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; color: white; background: rgba(0, 0, 0, .78); border-radius: 4px; font-size: .72rem; }
.card-body { padding: 19px 20px 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: .86rem; }
.hover-bg { position: absolute; inset: 0; z-index: 1; background-position: center; background-size: cover; opacity: 0; transition: opacity .2s; }
.hover-bg.is-active { opacity: 1; }
.hover-bg + img, .play-chip, .yt-duration { z-index: 2; }

.taxonomy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 55px; }
.taxonomy-card { min-height: 150px; padding: 24px; color: white; background: linear-gradient(145deg, var(--green), var(--green-dark)); border-radius: var(--radius); text-decoration: none; }
.taxonomy-card:nth-child(3n + 2) { background: linear-gradient(145deg, #bd4c1b, #7e3014); }
.taxonomy-card strong, .taxonomy-card small { display: block; }
.taxonomy-card strong { font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.15; }
.taxonomy-card small { margin-top: 18px; color: rgba(255, 255, 255, .74); }
.taxonomy-card .section-kicker { color: var(--yellow); }

.article, .entity-coverage, .provider-section, .methodology, .sources, .budget-calculator, .wager-calculator, .editorial-module, .practice-box, .topic-specific, .site-lens, .site-framework, .site-casework, .regulatory-context, .factbox, .keyword-context { max-width: 900px; margin: 48px auto 0; }
.article { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; }
.article h2, .article h3 { margin-top: 1.55em; }
.article-section, .faq, .sources { padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.article ul, .article ol, .legal-content ul { padding-left: 25px; }
.article li { margin-bottom: 8px; }
.faq details { margin: 10px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; font-family: Arial, sans-serif; font-weight: 800; }
.faq details p { margin: 12px 0 0; }
.entity-coverage, .methodology, .budget-calculator, .wager-calculator, .editorial-module, .practice-box, .topic-specific, .site-lens, .site-framework, .site-casework, .regulatory-context, .factbox { padding: clamp(24px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 38px rgba(18, 35, 27, .05); }
.semantic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.semantic-chip { padding: 6px 11px; color: var(--green-dark); background: #e3eee8; border-radius: 999px; font: 700 .78rem Arial, sans-serif; }
.semantic-group { margin-top: 24px; }
.semantic-group h3 { font-family: Arial, sans-serif; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid, .method-grid, .budget-controls, .wager-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid > div, .method-grid > div, .budget-result, .wager-result { display: flex; min-height: 112px; padding: 18px; flex-direction: column; justify-content: space-between; background: #edf3ef; border-radius: 12px; }
.metric-grid strong, .method-grid strong, .budget-result strong, .wager-result strong { color: var(--green); font-size: 1.5rem; }
.metric-grid span, .method-grid span, .budget-result span, .wager-result span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.budget-controls, .wager-controls { grid-template-columns: 1fr 1fr 1.25fr; margin: 24px 0; }
label { color: var(--muted); font-size: .8rem; font-weight: 800; }
input, select { width: 100%; margin-top: 7px; padding: 13px; color: var(--ink); background: white; border: 1px solid #bdc8c0; border-radius: 9px; font: inherit; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green-dark); background: #e9f0eb; font: 800 .78rem Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
td small { display: block; color: var(--muted); }
.toc, .whitelist-box, .transparency, .red-flags, .checklist { max-width: 900px; margin: 35px auto; padding: 22px 26px; background: #fff5d6; border-left: 5px solid var(--yellow); }
.author-bio, .team-card, .author-profile { display: flex; gap: 24px; }
.author-bio { margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--line); }
.author-bio img, .team-card img, .author-profile img { flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.team-card { padding: 24px; color: var(--ink); background: var(--surface); border-radius: var(--radius); text-decoration: none; }
.legal-content { max-width: 850px; padding: 34px; background: var(--surface); border-radius: var(--radius); }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 45px; }
.pagination a { min-width: 40px; padding: 7px 12px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination a.active { color: white; background: var(--green); }

.footer { padding: 58px 0 28px; color: #d8e4dd; background: #082f23; }
.footcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 42px; }
.footcols h4 { color: white; }
.footcols a { display: block; width: fit-content; margin: 7px 0; color: #d8e4dd; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .78rem; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .taxonomy-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sitebar-inner, .footer-inner, .wrap { width: min(100% - 24px, 1180px); }
  .sitebar-inner { min-height: 68px; }
  .brand { font-size: .96rem; }
  .brand::before { width: 36px; height: 36px; }
  .brand small { display: none; }
  main { padding-top: 34px; }
  .cards, .taxonomy-grid, .team-grid, .budget-controls, .wager-controls { grid-template-columns: 1fr; }
  .metric-grid, .method-grid { grid-template-columns: 1fr 1fr; }
  .summary { padding: 19px; }
  .author-profile, .author-bio, .team-card { align-items: flex-start; flex-direction: column; }
  .article { font-size: 1rem; }
  .footcols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
