/* Shared site shell: the header with the main menu, the footer, and the layout of the content pages
   (/over, /spelgids, /achtbanen, ...; generated by tools/build-site-pages.mjs). Also loaded by the landing page
   and the privacy page for the header and footer. No JavaScript: the phone menu is a checkbox. Bright, toy-like,
   light: system fonts, no external files. Everything is namespaced sx- so it cannot clash with site.css. */

:root {
  --sx-sky-top: #8ed1fc;
  --sx-sky-mid: #bfe5fd;
  --sx-sky-bottom: #e6f6ff;
  --sx-text: #38383d;
  --sx-muted: #4f5260;
  --sx-ink: #2f4f7a;
  --sx-link: #2f5ea8;
  --sx-navy: #08203b;
  --sx-orange: #ff9200;
  --sx-ice: #eef6ff;
  --sx-line: rgba(103, 148, 217, 0.35);
}

/* ---------- header and menu ---------- */
.sx-header { position: relative; z-index: 5; background: #fff; box-shadow: 0 2px 0 var(--sx-line), 0 8px 20px rgba(47, 79, 122, 0.1); font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.sx-header *, .sx-footer * { box-sizing: border-box; }
.sx-bar { max-width: 1080px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 6px) 16px 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sx-brand { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 auto; min-height: 48px; color: var(--sx-ink); font-weight: 900; font-size: 19px; text-decoration: none; }
.sx-brand::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 9px; background: url(/assets/brand/app/apple-touch-default-180.png) center / contain no-repeat; }
.sx-play { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 14px; background: linear-gradient(180deg, #ffb53d 0%, var(--sx-orange) 100%); color: var(--sx-navy); font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(176, 96, 65, 0.45); white-space: nowrap; }
.sx-play:hover { filter: brightness(1.05); }
.sx-menu__check { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sx-menu__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--sx-ice); color: var(--sx-ink); font-weight: 800; font-size: 16px; cursor: pointer; user-select: none; }
.sx-menu__btn::after { content: ""; width: 8px; height: 8px; margin: -3px 0 0 9px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
.sx-menu__check:checked + .sx-menu__btn::after { margin-top: 4px; transform: rotate(-135deg); }
.sx-menu__check:focus-visible + .sx-menu__btn { outline: 3px solid var(--sx-navy); outline-offset: 2px; }
.sx-nav { display: none; flex: 1 0 100%; padding: 4px 0 8px; }
.sx-menu__check:checked ~ .sx-nav { display: block; }
.sx-nav ul { list-style: none; margin: 0; padding: 0; }
.sx-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; border-top: 1px solid var(--sx-line); color: var(--sx-link); font-weight: 700; text-decoration: none; }
.sx-nav a[aria-current="page"] { color: var(--sx-navy); box-shadow: inset 4px 0 0 var(--sx-orange); padding-left: 14px; }
.sx-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The menu stands in the bar only where it fits on ONE line next to the logo and 'Speel gratis' (owner 2026-10-27: 'Speel gratis'
   stood under the menu on laptop widths); narrower screens keep logo + Speel gratis + Menu on one row and open the menu below. 1260 px: the eight items incl. 'Adverteren' need about 835 px. */
@media (min-width: 1260px) {
  .sx-bar { max-width: 1240px; flex-wrap: nowrap; }
  .sx-menu__btn { display: none; }
  .sx-brand { flex: 0 0 auto; margin-right: 8px; }
  .sx-nav, .sx-menu__check:checked ~ .sx-nav { display: block; flex: 1 1 auto; min-width: 0; order: 2; padding: 0; }
  .sx-nav ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 2px; }
  .sx-nav a { border-top: 0; min-height: 48px; padding: 0 10px; border-radius: 12px; font-size: 16px; white-space: nowrap; }
  .sx-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--sx-orange); padding-left: 10px; border-radius: 12px 12px 0 0; }
  .sx-play { order: 3; flex: none; margin-left: 8px; }
}

/* ---------- footer ---------- */
.sx-footer { padding: 26px 16px calc(env(safe-area-inset-bottom, 0px) + 26px); background: #fff; color: var(--sx-muted); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; box-shadow: 0 -2px 0 var(--sx-line); }
.sx-footer__cols { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.sx-footer__title { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 900; color: var(--sx-ink); letter-spacing: 0.02em; }
.sx-footer ul { list-style: none; margin: 0; padding: 0; }
.sx-footer a { display: inline-flex; align-items: center; min-height: 40px; color: var(--sx-link); font-weight: 600; text-underline-offset: 3px; }
.sx-footer__about { grid-column: 1 / -1; }
.sx-footer__about p { margin: 0 0 6px; max-width: 60ch; }
.sx-footer__copy { max-width: 1080px; margin: 14px auto 0; padding-top: 12px; border-top: 1px solid var(--sx-line); }
.sx-footer__copy p { margin: 0; }
@media (min-width: 720px) {
  .sx-footer__cols { grid-template-columns: 1.6fr 1fr 1fr; }
  .sx-footer__about { grid-column: auto; }
}

/* ---------- content pages ---------- */
.sx-page { margin: 0; min-height: 100vh; background: linear-gradient(180deg, var(--sx-sky-top) 0, var(--sx-sky-mid) 260px, var(--sx-sky-bottom) 560px, var(--sx-sky-bottom) 100%); color: var(--sx-text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.sx-page *, .sx-page *::before, .sx-page *::after { box-sizing: border-box; }
.sx-main { max-width: 820px; margin: 0 auto; padding: 20px 16px 36px; }
.sx-main--wide { max-width: 1080px; }
.sx-article { padding: 22px 18px 26px; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 var(--sx-line), 0 18px 40px rgba(47, 79, 122, 0.16); }
.sx-article h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; color: var(--sx-ink); font-weight: 900; }
.sx-article h2 { margin: 30px 0 8px; font-size: 23px; line-height: 1.2; color: var(--sx-ink); font-weight: 800; text-align: left; scroll-margin-top: 12px; }
.sx-article h3 { margin: 20px 0 4px; font-size: 18px; line-height: 1.25; color: var(--sx-ink); font-weight: 800; }
.sx-article p { margin: 0 0 12px; }
.sx-article ul, .sx-article ol { margin: 0 0 14px; padding-left: 24px; }
.sx-article li { margin: 0 0 6px; }
.sx-article a { color: var(--sx-link); font-weight: 600; text-underline-offset: 3px; }
.sx-lead { font-size: 19px; line-height: 1.55; color: var(--sx-muted); margin-bottom: 16px; }
.sx-meta { margin: 0 0 14px; color: var(--sx-muted); font-size: 15px; }
.sx-note { margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--sx-ice); }
.sx-note strong { color: var(--sx-ink); }
.sx-toc { margin: 16px 0 6px; padding: 12px 16px 6px; border-radius: 14px; background: var(--sx-ice); }
.sx-toc h2 { margin: 0 0 4px; font-size: 16px; }
.sx-toc ol { columns: 1; margin-bottom: 8px; }
.sx-toc a { display: inline-block; padding: 3px 0; }
.sx-fig { margin: 18px 0; }
.sx-fig img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 3px 0 var(--sx-line), 0 10px 24px rgba(47, 79, 122, 0.18); }
.sx-fig--wide img { max-width: 100%; }
.sx-fig figcaption { margin-top: 8px; text-align: center; color: var(--sx-muted); font-size: 15px; }
.sx-cta { margin: 26px 0 4px; padding: 18px; border-radius: 18px; background: var(--sx-ice); text-align: center; }
.sx-cta p { margin: 0 0 10px; }
.sx-article a.sx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 16px; background: linear-gradient(180deg, #ffb53d 0%, var(--sx-orange) 100%); color: var(--sx-navy); font-weight: 900; font-size: 19px; text-decoration: none; box-shadow: inset 0 -4px 0 rgba(176, 96, 65, 0.45), 0 3px 0 rgba(8, 32, 59, 0.18); }
.sx-article a.sx-btn:focus-visible, .sx-play:focus-visible, .sx-brand:focus-visible, .sx-nav a:focus-visible, .sx-footer a:focus-visible { outline: 3px solid var(--sx-navy); outline-offset: 2px; }
.sx-related { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 24px 0 0; padding: 12px 0 0; border-top: 1px solid var(--sx-line); font-size: 16px; }
.sx-related span { color: var(--sx-muted); }

/* tables of contents, level groups and item cards (coasters, attractions) */
.sx-items { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.sx-items li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: start; margin: 0; padding: 12px; border-radius: 16px; background: var(--sx-ice); }
.sx-items img { grid-row: 1 / span 2; width: 64px; height: 64px; }
.sx-items h3 { margin: 0; font-size: 18px; }
.sx-items p { margin: 0; font-size: 16px; line-height: 1.45; }
.sx-badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: #fff; border: 2px solid var(--sx-line); color: var(--sx-ink); font-size: 13px; font-weight: 800; vertical-align: 2px; white-space: nowrap; }
.sx-levels { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 16px; }
.sx-levels th, .sx-levels td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sx-line); }
.sx-levels th { color: var(--sx-ink); width: 5.5em; }

/* changelog */
.sx-release { margin: 0 0 22px; padding: 0 0 0 14px; border-left: 5px solid var(--sx-orange); }
.sx-release h2 { margin: 0 0 2px; }
.sx-release time { display: block; margin-bottom: 6px; color: var(--sx-muted); font-size: 15px; }

@media (min-width: 600px) {
  .sx-main { padding-top: 28px; }
  .sx-article { padding: 30px 34px 34px; }
  .sx-article h1 { font-size: 36px; }
  .sx-toc ol { columns: 2; }
}
@media (min-width: 760px) {
  .sx-items { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-play, .sx-nav a { transition: none; }
}

/* phone screenshots in the guide: beside the text on wider screens */
.sx-fig--phone img { max-width: 230px; }
@media (min-width: 640px) {
  .sx-fig--phone { float: right; width: 210px; margin: 6px 0 14px 22px; }
  .sx-fig--phone img { max-width: 210px; }
  .sx-article h2 { clear: both; }
}

/* narrow phones: brand, play button and menu button share one row */
@media (max-width: 879px) {
  .sx-bar { gap: 6px; }
  .sx-brand { flex: 1 1 0; min-width: 0; gap: 8px; font-size: 16px; white-space: nowrap; }
  .sx-brand::before { width: 32px; height: 32px; }
  .sx-play { padding: 0 12px; font-size: 15px; }
  .sx-menu__btn { padding: 0 10px; font-size: 15px; }
  .sx-menu__btn::after { margin-left: 7px; }
}
@media (max-width: 420px) {
  .sx-brand::before { display: none; }
  .sx-brand { overflow: visible; }
}

/* Language switch in the header (tools/site-pages/shell.mjs langRowHtml): one flag button, a list of languages under it. No script. */
.sx-bar { position: relative; }
.sx-lang { flex: none; order: 0; }
.sx-lang > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 5px; border-radius: 10px; cursor: pointer; list-style: none; user-select: none; }
.sx-lang > summary::-webkit-details-marker { display: none; }
.sx-lang > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid var(--sx-ink); border-bottom: 2px solid var(--sx-ink); transform: rotate(45deg); }
.sx-lang[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.sx-lang > summary:focus-visible { outline: 3px solid var(--sx-navy); outline-offset: 2px; }
.sx-lang img { display: block; flex: none; width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(47, 79, 122, 0.35); }
.sx-lang ul { position: absolute; z-index: 30; top: 100%; left: 16px; min-width: 200px; margin: 2px 0 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--sx-line), 0 10px 28px rgba(47, 79, 122, 0.22); }
.sx-lang li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--sx-link); font-weight: 700; text-decoration: none; }
.sx-lang li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sx-lang li a:focus-visible { outline: 3px solid var(--sx-navy); outline-offset: 0; }
.sx-lang li a[aria-current="true"] { color: var(--sx-navy); box-shadow: inset 4px 0 0 var(--sx-orange); }
@media (min-width: 900px) { .sx-lang { order: 4; margin-left: 2px; } .sx-lang ul { left: auto; right: 16px; } }
/* narrow phones: brand, flag, play and menu share one row */
@media (max-width: 420px) {
  .sx-bar { gap: 3px; padding-left: 12px; padding-right: 12px; }
  .sx-brand { font-size: 14px; }
  .sx-lang > summary { padding: 0 2px; gap: 2px; }
  .sx-lang > summary::after { width: 5px; height: 5px; }
  .sx-lang img { width: 24px; height: 17px; }
  .sx-play { padding: 0 9px; font-size: 14px; }
  .sx-menu__btn { padding: 0 7px; font-size: 14px; }
  .sx-menu__btn::after { margin-left: 5px; }
  .sx-lang ul { left: 12px; }
}
