/* Opmaak van de statische informatiepagina's (/nl/, de gidsen). Dit is bewust dezelfde huisstijl als het portaal (src/index.css):
   dezelfde kleurvariabelen (de gidsen staan altijd in het lichte thema), de zes tekstgroottes, de topbalk met onderstreepte tabs, de kaarten en de knoppen.
   Wijzig je iets in de huisstijl, pas het hier ook aan. De pagina's zelf worden gemaakt door scripts/infopaginas.mjs. */

:root {
  --color-background: #F8F6F0;
  --color-card: #FFFFFF;
  --color-card-hover: #F2EFE8;
  --color-border: #E5E0D6;
  --color-primary: #4B7A5E;
  --color-text-primary: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-muted: #78716C;
  --color-status-ok: #047857;
  --brand-accent: #4B7A5E;
  --btn-primary-bg: #ECE5D8;
  --btn-primary-bg-hover: #E3DAC7;
  --btn-primary-text: #1C1917;
  --btn-primary-shadow: 0 1px 2px rgba(44, 38, 28, 0.1);
  --topbar-bg: rgba(236, 229, 216, 0.92);
  --topbar-border: transparent;
  --topbar-shadow: 0 6px 20px -4px rgba(44, 38, 28, 0.05);
  --card-shadow: 0 20px 25px -5px rgba(60, 40, 10, 0.1), 0 8px 10px -6px rgba(60, 40, 10, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-brand: 'Manrope', var(--font-sans);
  --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-sans); letter-spacing: -0.012em; }

/* De zes tekstgroottes van het portaal (tailwind.config.js) */
h1 { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }              /* display */
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }            /* title */
h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; }                     /* heading */
p, li { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-secondary); }               /* body */
.small { font-size: 0.8125rem; line-height: 1.45; }                                                /* small */
strong { font-weight: 600; color: var(--color-text-primary); }
em { font-style: italic; }

/* ---------- Topbalk: zoals .desktop-topbar van het portaal ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--topbar-shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; padding: 0 2rem; }
.lockup { display: inline-flex; align-items: center; gap: 0.625rem; flex: none; color: var(--color-text-primary); text-decoration: none; }
.lockup:hover { text-decoration: none; }
.lockup svg { width: 30px; height: 30px; flex: none; }
.lockup .wordmark { font-family: var(--font-brand); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.lockup .beta { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-left: 0.375rem; align-self: flex-end; }
.spacer { flex: 1; }

.topnav-tabs { display: flex; align-items: stretch; align-self: stretch; gap: 1.5rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-width: 0; }
.topnav-tabs::-webkit-scrollbar { display: none; }
.topnav-tab { position: relative; display: flex; align-items: center; padding: 0.4rem 0.1rem; color: var(--color-text-secondary); font-size: 0.875rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: color 0.15s ease; }
.topnav-tab:hover { color: var(--color-text-primary); text-decoration: none; }
.topnav-tab::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 9999px; background: var(--color-text-muted); opacity: 0; transform: translateX(-50%); transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.25s ease; }
.topnav-tab:hover::after { width: 10px; opacity: 0.6; }
.topnav-tab.active { color: var(--color-text-primary); }
.topnav-tab.active::after { width: 100%; opacity: 1; background: var(--color-primary); }

.topbar-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* ---------- Knoppen: .btn-primary van het portaal ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 700; line-height: 1.5; border-radius: var(--radius-md); text-decoration: none; cursor: pointer; transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-primary { background-color: var(--btn-primary-bg); color: var(--btn-primary-text); border: 1px solid var(--btn-primary-bg); box-shadow: var(--btn-primary-shadow); }
.btn-primary:hover { background-color: var(--btn-primary-bg-hover); border-color: var(--btn-primary-bg-hover); transform: translateY(-1px); text-decoration: none; }
.btn-sm { font-size: 0.8125rem; padding: 0.4375rem 0.875rem; }

/* ---------- Pagina: zoals RegelsView ---------- */
.page { width: 100%; max-width: 64rem; margin: 0 auto; padding: 3.5rem 1rem 6rem; }
@media (min-width: 640px) { .page { padding: 3.5rem 2rem 6rem; } }
.hero { text-align: center; max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero .sub { font-size: 1rem; line-height: 1.4; font-weight: 300; color: var(--color-text-secondary); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; }

.block { margin-top: 3.5rem; counter-reset: row; }
.block > h2 { padding-bottom: 0.75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.block > h2.display { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.block > p { max-width: 44rem; margin-bottom: 0.75rem; }
.block > p a { font-weight: 500; }

/* Rijen met een label links en tekst rechts, met een lijn ertussen (de acht regels op de regelspagina) */
.row { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 0; border-top: 1px solid var(--color-border); }
h2 + .row { border-top: 0; }
@media (min-width: 640px) { .row { flex-direction: row; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 0; } }
.row-label { flex: none; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; color: var(--color-status-ok); padding-top: 0.125rem; }
@media (min-width: 640px) { .row-label { width: 7rem; } }
.row--n { counter-increment: row; }
.row--n::before { content: counter(row, decimal-leading-zero); flex: none; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; color: var(--color-status-ok); padding-top: 0.125rem; }
@media (min-width: 640px) { .row--n::before { width: 3rem; } }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.row-main h3 { color: var(--color-text-primary); }
.row--rule .row-main h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.row-main p { max-width: 44rem; }
.row a.row-main { text-decoration: none; }
.row a.row-main:hover h3 { color: var(--color-primary); }

/* Gewone opsomming */
ul.list { list-style: none; margin: 0.5rem 0 0.75rem; max-width: 44rem; }
ul.list li { position: relative; padding-left: 1.25rem; margin: 0.5rem 0; }
ul.list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; border-radius: 2px; background: var(--color-text-muted); }

/* De kaart over de bedenker, zoals op de regelspagina van het portaal */
.laz { margin-top: 3.5rem; border-radius: 1.5rem; border: 1px solid var(--color-border); background: var(--color-card); overflow: hidden; box-shadow: var(--card-shadow); }
.laz-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .laz-grid { grid-template-columns: 5fr 7fr; } }
.laz-photo { position: relative; min-height: 320px; background: #09090b; overflow: hidden; }
.laz-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.laz-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 9, 11, 0.6), transparent 60%); pointer-events: none; }
@media (min-width: 640px) { .laz-photo::after { background: linear-gradient(to right, rgba(9, 9, 11, 0.6), transparent 60%); } }
.laz-credit { position: absolute; z-index: 1; left: 0.75rem; right: 0.75rem; bottom: 0.5rem; font-size: 0.8125rem; line-height: 1.45; color: rgba(255, 255, 255, 0.7); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.laz-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.laz-credit a:hover { color: #fff; }
.laz-text { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 1.5rem; }
@media (min-width: 640px) { .laz-text { padding: 2.5rem; } }
.laz-text h2 { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--color-text-primary); padding: 0; margin: 0 0 0.5rem; border: 0; }
.laz-text p { font-size: 0.875rem; }
.laz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--color-text-secondary); }
.laz-meta b { font-weight: 600; color: var(--color-text-primary); }

/* Een knop in lopende tekst houdt zijn eigen kleur */
.block > p a.btn-primary { color: var(--btn-primary-text); font-weight: 700; }
.block > p a.btn-primary:hover { text-decoration: none; }
.updated { margin-top: 3.5rem; font-size: 0.8125rem; line-height: 1.45; color: var(--color-text-muted); }

/* Broodkruimels boven de titel */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; font-size: 0.8125rem; line-height: 1.45; color: var(--color-text-muted); }
.crumbs a { color: var(--color-text-secondary); }
.crumbs a:hover { color: var(--color-text-primary); text-decoration: none; }

/* ---------- Voet: dezelfde als op de landingspagina (LandingPage.tsx, .landing-sheet) ---------- */
.sheet { border-top: 1px solid var(--color-border); background: var(--color-background); padding: 3rem 1.25rem 2rem; }
@media (min-width: 640px) { .sheet { padding: 3.5rem 2rem 2rem; } }
@media (min-width: 1024px) { .sheet { padding: 3.5rem 4rem 2rem; } }
.sheet-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
@media (min-width: 640px) { .sheet-grid { grid-template-columns: 1fr auto 1fr; gap: 4rem; text-align: left; } }
.sheet-brand { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .sheet-brand { align-items: flex-start; } }
.sheet-brand .lockup svg { width: 28px; height: 28px; }
.sheet-brand .lockup .wordmark { font-size: 1.125rem; }
.sheet .mono { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.3; color: var(--color-text-muted); }
.sheet-links { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; font-size: 0.875rem; }
@media (min-width: 640px) { .sheet-links { align-items: flex-start; } }
.sheet-links a { color: var(--color-text-secondary); }
.sheet-links a:hover { color: var(--color-text-primary); text-decoration: none; }
.sheet-links img { display: block; height: 32px; width: auto; margin-top: 0.25rem; }
.sheet-download { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .sheet-download { align-items: flex-start; justify-self: end; } }
.sheet-download .strong { font-size: 1rem; line-height: 1.4; font-weight: 700; color: var(--color-text-primary); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .badges { justify-content: flex-start; } }
.badges img { display: block; width: 148px; height: 44px; }
.sheet-bottom { display: flex; flex-direction: column-reverse; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .sheet-bottom { flex-direction: row; gap: 1.5rem; } }
/* Taalkeuze: een knop met vlag en naam, en een lijst die naar boven opent, zoals LanguageSwitcher op de landingspagina */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.375rem 0.5rem 0.375rem 0.625rem; border: 1px solid var(--color-border); border-radius: 9999px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); font-size: 0.75rem; line-height: 1.3; font-weight: 600; color: #334155; transition: border-color 0.15s ease; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: #CBD5E1; }
.lang summary img { width: 16px; height: 16px; border-radius: 9999px; object-fit: cover; }
.lang summary .chev { width: 14px; height: 14px; color: #94A3B8; transition: transform 0.2s ease; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul { position: absolute; bottom: 100%; left: 0; z-index: 50; margin-bottom: 0.5rem; width: 15rem; max-height: min(24rem, 60vh); overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 0.375rem; border: 1px solid var(--color-border); border-radius: 1rem; background: #FFFFFF; box-shadow: var(--card-shadow); }
.lang li a { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.75rem; font-size: 0.875rem; line-height: 1.5; font-weight: 500; color: #334155; }
.lang li a:hover { background: var(--color-background); text-decoration: none; }
.lang li a.selected { background: var(--color-card-hover); color: #0F172A; }
.lang li img { width: 20px; height: 20px; border-radius: 9999px; object-fit: cover; flex: none; }
.lang li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang li .tick { width: 14px; height: 14px; flex: none; }
@media (max-width: 639px) { .lang ul { left: 50%; transform: translateX(-50%); } }
.strava { display: block; height: 16px; width: auto; }
.sheet .disclaimer { margin-top: 1.25rem; text-align: center; font-size: 0.75rem; line-height: 1.3; color: var(--color-text-muted); }

/* Op een telefoon: de tabs op een eigen regel onder het logo en de knoppen */
@media (max-width: 639px) {
  .topbar-inner { flex-wrap: wrap; gap: 0 0.75rem; padding: 0 1rem; min-height: 0; }
  .lockup { padding: 0.875rem 0; }
  .lockup .beta { display: none; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .btn-primary { display: none; }
  .topnav-tabs { display: none; }
  h1 { font-size: 1.75rem; }
  .block > h2.display, .laz-text h2 { font-size: 1.5rem; }
}

/* Rechts naar links (Arabisch) */
[dir="rtl"] ul.list li { padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] ul.list li::before { left: auto; right: 0; }
[dir="rtl"] .lang ul { left: auto; right: 0; }
