/* ============================================================
   AC Syndicate — Casino Zonder CRUKS research
   Look: pure monochrome minimalism. Near black/white, a single
   restrained accent for interactive states only, all sans-serif,
   hairline rules, generous whitespace, flat (no shadows/gradients/
   animations). Change --accent to recolor every link / CTA / active
   state in one place.
   ============================================================ */

:root {
  --ink:          #17171a;   /* primary text */
  --ink-soft:     #3a3a40;   /* body copy */
  --muted:        #74747c;   /* secondary text */
  --paper:        #ffffff;   /* page background */
  --panel:        #fafafa;   /* subtle raised surface */
  --line:         #e7e7e9;   /* hairline */
  --line-strong:  #d3d3d6;   /* stronger hairline */
  --accent:       #b5241f;   /* the single restrained accent */

  --radius: 4px;
  --measure: 68ch;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 10px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { left: 12px; }

/* ---- Header ------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-logo { width: 38px; height: 38px; border-radius: var(--radius); display: block; object-fit: contain; }
.brand-text { font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-top: 3px; }

.nav-toggle { display: none; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); padding: 9px 14px; font-family: inherit; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: var(--radius); transition: color .15s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }

/* ---- Disclaimer bar --------------------------------------- */
.disclaimer-bar { background: var(--panel); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.disclaimer-bar .container { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.age-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: 12px; color: var(--ink); }

/* ---- Hero (single column, active monochrome background) --- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--paper); padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); }

/* Layer 1: slowly panning hairline grid, faded toward the edges */
.hero::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 120% at 30% 0%, #000 38%, transparent 76%);
          mask-image: radial-gradient(130% 120% at 30% 0%, #000 38%, transparent 76%);
  animation: heroGridPan 32s linear infinite;
}

/* Layer 2: soft drifting glow — mostly neutral, a whisper of accent */
.hero::after {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 28% 32%, rgba(181, 36, 31, .07), transparent 70%),
    radial-gradient(closest-side at 74% 58%, rgba(23, 23, 26, .06), transparent 70%);
  filter: blur(6px);
  animation: heroGlow 22s ease-in-out infinite;
}

.hero-inner { position: relative; z-index: 1; max-width: 46rem; }

@keyframes heroGridPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 46px, 46px 46px; }
}
@keyframes heroGlow {
  0%, 100% { transform: translate3d(-5%, -3%, 0) scale(1); }
  50%      { transform: translate3d(5%, 3%, 0) scale(1.12); }
}

/* Floating casino suits — the casino elements in the hero background */
.hero-suits { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-suits .suit { position: absolute; line-height: 1; color: var(--ink); opacity: .05; user-select: none; will-change: transform; animation: suitFloat 18s ease-in-out infinite; }
.hero-suits .s2, .hero-suits .s3, .hero-suits .s6 { color: var(--accent); opacity: .06; } /* red suits get the whisper of accent */
.hero-suits .s1 { top: 12%;  left: 4%;    font-size: clamp(70px, 11vw, 130px); animation-duration: 19s; }
.hero-suits .s2 { top: 20%;  right: 8%;   font-size: clamp(48px, 7vw, 88px);   animation-duration: 15s; animation-delay: -3s; }
.hero-suits .s3 { bottom: 8%; left: 14%;  font-size: clamp(80px, 13vw, 155px); animation-duration: 23s; animation-delay: -6s; }
.hero-suits .s4 { bottom: 14%; right: 12%; font-size: clamp(56px, 9vw, 110px); animation-duration: 17s; animation-delay: -2s; }
.hero-suits .s5 { top: 46%;  left: 44%;   font-size: clamp(40px, 5vw, 66px);   animation-duration: 21s; animation-delay: -9s; }
.hero-suits .s6 { top: 6%;   right: 34%;  font-size: clamp(40px, 5vw, 72px);   animation-duration: 20s; animation-delay: -5s; }
.hero-suits .s7 { bottom: 30%; right: 40%; font-size: clamp(34px, 4vw, 58px);  animation-duration: 22s; animation-delay: -7s; }

@keyframes suitFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-24px) rotate(6deg); }
}
@media (max-width: 640px) {
  .hero-suits .s5, .hero-suits .s7 { display: none; } /* declutter on small screens */
}
.eyebrow { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 22px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -.025em; color: var(--ink); margin: 0 0 22px; max-width: 18ch; }
.hero p { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 0 0 32px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 12px 22px; font-family: inherit; font-weight: 500; font-size: 15px; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* Hero image intentionally removed from markup */
.hero-card { display: none; }

/* ---- Page head (default template) ------------------------- */
.page-head { padding: clamp(48px, 7vw, 84px) 0 28px; border-bottom: 1px solid var(--line); }
.page-head .kicker { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.page-head h1 { font-weight: 700; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 14px 0 16px; max-width: 22ch; }
.page-head p { max-width: 60ch; color: var(--muted); font-size: 19px; margin: 0; }

/* ---- Layout ----------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; padding: clamp(40px, 6vw, 72px) 0 88px; }
.layout.default { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }

/* ---- Article ---------------------------------------------- */
.article { min-width: 0; max-width: var(--measure); }
.article p { margin: 0 0 22px; }
.article h2 { font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 52px 0 16px; }
.article h3 { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--ink); margin: 36px 0 10px; }
.article ul, .article ol { padding-left: 1.25em; margin: 0 0 22px; }
.article li { margin: 8px 0; padding-left: .2em; }
.article li::marker { color: var(--muted); }
.article strong { font-weight: 600; color: var(--ink); }
.article em { font-style: italic; }
.article blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--line-strong); color: var(--ink); font-size: 20px; line-height: 1.5; }

/* ---- FAQ accordion (native <details>, no JS) -------------- */
.faq { margin: 12px 0 34px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--paper); transition: background .15s ease, color .15s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.faq-item > summary:hover { background: var(--panel); }
.faq-item > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease, border-color .2s ease;
}
.faq-item[open] > summary { color: var(--accent); }
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; border-color: var(--accent); }
.faq-a { padding: 2px 20px 18px; background: var(--paper); }
.faq-a p { margin: 0; color: var(--muted); font-size: 15.5px; }
.faq-a p + p { margin-top: 12px; }
.faq-item[open] .faq-a { animation: faqReveal .22s ease; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- Tables ----------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel); }

/* ---- Figures ---------------------------------------------- */
.article-figure { margin: 0 0 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.article-figure figcaption { padding: 11px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---- Sidebar ---------------------------------------------- */
.sidebar { min-width: 0; position: sticky; top: 96px; display: grid; gap: 20px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h2, .side-card h3 { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.side-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.side-card ul { padding-left: 1.1em; margin: 0; font-size: 15px; }
.side-card .side-title { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-soft); font-size: 15px; border-bottom: 1px solid var(--line); transition: color .15s ease; }
.toc a:hover { color: var(--accent); }
.toc a:last-child { border-bottom: 0; }

/* ---- Author box ------------------------------------------- */
.author-box { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 18px; }
.author-box h2 { font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 6px; }
.author-box p { color: var(--muted); margin: 0; font-size: 15px; }
.author-box .author-name { font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 6px; }

/* ---- Related (cards) -------------------------------------- */
.related { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 12px; min-height: 128px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.related a::after { content: "Lees verder \2192"; margin-top: auto; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.related a:hover { border-color: var(--ink); color: var(--accent); transform: translateY(-2px); }
.related a:hover::after { color: var(--accent); }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--panel); color: var(--muted); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h2 { font-weight: 600; color: var(--ink); margin: 0 0 12px; font-size: 18px; }
.site-footer h3 { color: var(--muted); margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.site-footer p { margin: 0 0 12px; font-size: 15px; }
.site-footer .footer-brand { font-weight: 600; color: var(--ink); margin: 0 0 12px; font-size: 18px; }
.site-footer .footer-logo { height: 48px; width: auto; display: block; margin: 0 0 12px; }
.site-footer .footer-heading { color: var(--muted); margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.footer-nav { display: grid; gap: 10px; font-size: 15px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 24px; right: 24px; top: 72px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:last-child { border-bottom: 0; }
  .layout { grid-template-columns: 1fr; gap: 44px; }
  .sidebar { position: relative; top: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 64px; }
  .main-nav { top: 64px; }
  .brand-text small { display: none; }
  .layout { padding: 32px 0 64px; }
  .related { grid-template-columns: 1fr; }
  .related a { min-height: 0; }
  .author-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* author photo in avatar circle */
.author-avatar{overflow:hidden}
.author-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
