:root {
  --color-bg: #fafaf7;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f1ec;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #7a7a7a;
  --color-border: #e2e0d8;
  --color-accent: #1383D4;
  --color-accent-soft: #e3f0fb;
  --color-accent-dark: #0c5a96;
  --color-warning-bg: #fdf6e3;
  --color-warning-border: #d4b85a;
  --color-rg-bg: #f4ebe1;
  --color-rg-border: #8a6d3b;
  --content-width: 1000px;
  --content-width-wide: 1100px;
  --section-gap: 3rem;
  --transition: 0.3s ease;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
  text-align: left;
  font-weight: 600;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem 0;
}

h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.7rem 0;
  color: var(--color-accent-dark);
  font-weight: 600;
}

p {
  margin: 0 0 1.05rem 0;
  text-align: left;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition), background var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

ul, ol {
  margin: 0 0 1.05rem 1.4rem;
}

ul li, ol li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}



/* HERO - minimal-line */
.hero {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  padding: 3.5rem 0 2.5rem 0;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.hero-inner::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.byline {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-family: var(--font-body);
}

.byline a {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
}

.byline a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: transparent;
}

.byline-sep {
  margin: 0 0.5rem;
  color: var(--color-border);
}

.hero img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.5rem auto 0 auto;
  max-width: var(--content-width);
  border: 1px solid var(--color-border);
}

/* CONTENT WIDTH WRAPPER */
main article > section,
main article > nav,
main article > div,
main article > aside {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

main article > .hero {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

section {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

/* TOC - vertical-list */
.toc {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.5rem 1.5rem 1.8rem !important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: calc(var(--content-width) - 3rem);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin: 0 0 0.9rem 0;
  border: none;
  padding: 0;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.toc li {
  margin-bottom: 0.45rem;
  counter-increment: toc-counter;
  padding-left: 1.8rem;
  position: relative;
}

.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.toc a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.97rem;
  border-bottom: 1px dotted transparent;
}

.toc a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: transparent;
}

/* TL;DR */
.tldr {
  background: var(--color-accent-soft);
  border: 1px solid #c5dff4;
  border-radius: 4px;
  padding: 1.6rem 1.8rem !important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: calc(var(--content-width) - 3rem);
}

.tldr-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin: 0 0 0.8rem 0;
  border: none;
  padding: 0;
}

.tldr ul {
  margin-left: 1.2rem;
}

.tldr li {
  margin-bottom: 0.55rem;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* FIGURES */
figure {
  margin: 1.8rem 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}

figcaption {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
  margin-top: 0.6rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--color-accent);
}

/* COMPONENTS */

/* key-takeaway */
.key-takeaway {
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.key-takeaway-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 0.5rem 0;
}

.key-takeaway p:last-child {
  margin-bottom: 0;
  font-size: 1rem;
}

/* info-box */
.info-box {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning-border);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  border-radius: 0 3px 3px 0;
}

.info-box-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b4f1a;
  margin: 0 0 0.4rem 0;
}

.info-box p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* dos-donts */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.dos-donts-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.1rem 1.3rem;
  border-radius: 3px;
}

.dos-donts-no {
  border-top: 3px solid #c0392b;
}

.dos-donts-yes {
  border-top: 3px solid #27ae60;
}

.dos-donts-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem 0;
}

.dos-donts-no .dos-donts-label {
  color: #c0392b;
}

.dos-donts-yes .dos-donts-label {
  color: #27ae60;
}

.dos-donts ul {
  margin: 0 0 0 1rem;
  padding: 0;
  list-style: none;
}

.dos-donts li {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.dos-donts-no li::before {
  content: "-";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #c0392b;
}

.dos-donts-yes li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #27ae60;
}

/* quick-facts */
.quick-facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.quick-facts-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin: 0 0 0.8rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.quick-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.4rem 1.2rem;
}

.quick-facts dt {
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.quick-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
}

/* FAQ */
details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  margin-bottom: 0.7rem;
  padding: 0 1.3rem;
  transition: background var(--transition);
}

details[open] {
  background: var(--color-surface-alt);
  border-color: var(--color-accent);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  position: relative;
  padding-right: 2.5rem;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
}

details[open] summary::after {
  content: "-";
  font-weight: 400;
}

details p {
  padding-bottom: 1rem;
  font-size: 0.96rem;
  margin: 0;
  color: var(--color-text-secondary);
}

/* RESPONSIBLE GAMBLING */
.responsible-gambling {
  background: var(--color-rg-bg);
  border: 1px solid var(--color-rg-border);
  border-left: 5px solid var(--color-rg-border);
  padding: 1.6rem 1.8rem !important;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  border-radius: 0 4px 4px 0;
  max-width: calc(var(--content-width) - 3rem);
}

.responsible-gambling h2 {
  font-size: 1.2rem;
  color: #6b4f1a;
  margin-top: 0;
  margin-bottom: 0.8rem;
  border: none;
  padding: 0;
}

.responsible-gambling p,
.responsible-gambling li {
  font-size: 0.95rem;
  color: #4a3a1a;
}

.responsible-gambling ul {
  margin: 0.6rem 0 0.9rem 1.4rem;
}

.responsible-gambling a {
  color: #6b4f1a;
  font-weight: 500;
}

.responsible-gambling a:hover {
  color: #3a2a0a;
  background: rgba(212, 184, 90, 0.2);
}

/* AUTHOR BIO */
.author-bio {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.8rem 1.5rem !important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.author-bio h2 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: 0.7rem;
  border: none;
  padding: 0;
  font-weight: 600;
}

.author-bio p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

.author-bio strong a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
}

.author-bio strong a:hover {
  color: var(--color-accent);
  background: transparent;
}

/* FOOTER - 4-column */
.site-footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem 0;
}

.footer-grid {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col {
  font-size: 0.9rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-accent);
  background: transparent;
}

.footer-bottom {
  max-width: var(--content-width-wide);
  margin: 2rem auto 0 auto;
  padding: 1.2rem 1.5rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .site-nav ul {
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .hero {
    padding: 2rem 0 1.5rem 0;
  }

  .hero-inner {
    padding: 0 1.1rem;
  }

  main article > section,
  main article > nav,
  main article > div,
  main article > aside {
    padding: 0 1.1rem;
  }

  .toc,
  .tldr,
  .responsible-gambling {
    padding: 1.2rem 1.2rem !important;
    max-width: 100%;
  }

  .dos-donts {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .quick-facts dl {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .quick-facts dt {
    margin-top: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  section {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
