/* mahof.nl — casino zonder cruks | iDEAL & snelle uitbetaling
   Lightweight, mobile-first, no JS, system fonts only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }

:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F0F3F7;
  --text: #1A1F2E;
  --muted: #5B6673;
  --primary: #0F2540;
  --secondary: #4A6B8A;
  --accent: #B8802A;
  --border: #D9DFE6;
  --row-alt: #F5F7FA;
  --success: #2E7D5F;
  --danger: #B8442E;
  --radius: 6px;
  --maxw: 760px;
  --wide: 960px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, article, section { max-width: 100%; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

main { padding: 24px 0 48px; }
section { margin: 32px 0; }
article { margin: 0; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand-text { line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.site-nav a { color: var(--secondary); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- HERO ---------- */
.hero { background: linear-gradient(180deg, #EEF2F7 0%, var(--bg) 100%); padding: 28px 0 8px; border-bottom: 1px solid var(--border); }
.hero .container { max-width: var(--wide); }
.hero-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); margin: 18px 0 0; background: var(--surface-alt); }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: 1.8rem; line-height: 1.25; color: var(--primary); margin: 0 0 12px; letter-spacing: -0.015em; }
h1 .h1-tail { color: var(--secondary); font-weight: 600; }
h2 { font-size: 1.35rem; line-height: 1.3; color: var(--primary); margin: 40px 0 12px; padding-top: 6px; }
h3 { font-size: 1.08rem; line-height: 1.35; color: var(--primary); margin: 22px 0 8px; }
h4 { font-size: 1rem; margin: 16px 0 6px; color: var(--secondary); }
p { margin: 0 0 12px; }
p strong, li strong { color: var(--primary); }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }

/* Byline */
.byline { color: var(--muted); font-size: 0.9rem; margin: 4px 0 18px; }
.byline strong { color: var(--secondary); font-weight: 600; }

/* Intro */
.intro { font-size: 1.05rem; color: var(--text); }
.intro p:first-child { font-weight: 500; }

/* ---------- LISTS ---------- */
ul, ol { padding-left: 22px; margin: 8px 0 16px; }
li { margin: 6px 0; }
li::marker { color: var(--secondary); }
ul.checks { list-style: none; padding-left: 0; }
ul.checks li { padding-left: 26px; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
ul.crosses { list-style: none; padding-left: 0; }
ul.crosses li { padding-left: 26px; position: relative; }
ul.crosses li::before { content: "✗"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* ---------- TABLES ---------- */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.table-wrap table { border: 0; border-radius: 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  table-layout: auto;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
thead th { background: var(--surface-alt); color: var(--primary); font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:last-child td { border-bottom: 0; }
td.tick { color: var(--success); font-weight: 700; }
td.cross { color: var(--danger); font-weight: 700; }
td.center { text-align: center; white-space: nowrap; }
@media (max-width: 520px) {
  th, td { padding: 8px 10px; font-size: 0.88rem; }
}

/* ---------- TABLE OF CONTENTS ---------- */
.toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px 16px;
  margin: 20px 0 28px;
}
.toc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
}
.toc li { margin: 3px 0; font-size: 0.95rem; }
.toc a { color: var(--secondary); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 720px) {
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
}

/* ---------- IN-CONTENT IMAGES ---------- */
.content-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 24px 0;
  background: var(--surface-alt);
}
.content-img.wide { aspect-ratio: 16 / 9; }
figure.content-figure { margin: 24px 0; }
figure.content-figure img { margin: 0; }
figure.content-figure figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ---------- FAQ (details/summary) ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 10px 0;
  transition: border-color 0.15s ease;
}
.faq details[open] {
  border-color: var(--secondary);
  box-shadow: 0 1px 3px rgba(15, 37, 64, 0.06);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  position: relative;
  padding-right: 32px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.faq details > *:not(summary) {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.98rem;
}
.faq p { margin-bottom: 6px; }
.faq p:last-child { margin-bottom: 0; }
@media (min-width: 700px) {
  .faq summary { font-size: 1.15rem; }
}

/* ---------- INFO BLOCKS ---------- */
.callout { background: var(--surface-alt); border-left: 3px solid var(--secondary); padding: 12px 16px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.97rem; }
.callout.warning { border-left-color: var(--danger); background: #FDF3F0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- AUTHOR BOX ---------- */
.author-box { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; display: flex; gap: 16px; align-items: flex-start; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: var(--surface-alt); }
.author-box h4 { margin: 0 0 4px; color: var(--primary); font-size: 1rem; }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.author-box .author-role { color: var(--secondary); font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary); color: #C8D3E0; padding: 30px 0 24px; margin-top: 48px; font-size: 0.92rem; }
.site-footer .container-wide { display: grid; gap: 20px; grid-template-columns: 1fr; }
.site-footer h4 { color: #FFF; margin: 0 0 10px; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; }
.site-footer p { color: #A9B6C8; margin: 0 0 10px; line-height: 1.55; }
.site-footer .footer-nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-nav li { margin: 6px 0; }
.site-footer .footer-nav a { color: #C8D3E0; text-decoration: none; }
.site-footer .footer-nav a:hover { color: #FFF; text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid #26405C; padding-top: 16px; margin-top: 8px; color: #7F8FA4; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #E8A63C; color: #E8A63C; font-weight: 700; font-size: 0.85rem; margin-right: 10px; vertical-align: middle; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 700px) {
  body { font-size: 17px; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.18rem; }
  main { padding: 32px 0 60px; }
  .hero { padding: 40px 0 12px; }
  .site-footer .container-wide { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  h1 { font-size: 2.4rem; }
  .hero-image { aspect-ratio: 2.4 / 1; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .hero-image { display: none; }
  body { background: #FFF; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
