/* Vibrant style — matches sample-ai-page.pdf */
:root {
  --primary: #0f766e;
  --secondary: #134e4a;
  --accent: #f59e0b;
  --bg: #ffffff;
  --surface: #f0fdfa;
  --surface-alt: #f8fafc;
  --text: #134e4a;
  --muted: #64748b;
  --border: #99f6e4;
  --row-alt: #f0fdfa;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* ---- Layout container ---- */
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header.site-header, header.site {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-bottom: 4px solid var(--accent);
  padding: 16px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .header-inner, header.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand, a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
nav.primary, nav.main-nav, header.site nav, nav.main {
  width: 100%;
}
nav.primary ul, nav.main-nav ul, header.site nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
nav a, nav.main a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
nav a:hover, nav.main a:hover,
nav a[aria-current="page"], nav.main a[aria-current="page"], nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  display: none;
}

/* ---- HERO block (H1 + byline + intro + CTA) ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 28px 36px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  top: 50%;
}
.hero::before { left: 20px; }
.hero::after { right: 20px; }
.hero h1 {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.hero .byline {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0 0 18px;
  border: none;
  padding: 0;
}
.hero .byline strong { color: #fff; }
.hero p {
  color: rgba(255,255,255,0.95);
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 1.02rem;
}

/* ---- CTA buttons ---- */
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.cta-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.20);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.cta-accent {
  background: #fff;
  color: var(--primary) !important;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.cta-accent:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
}
.cta-block {
  text-align: center;
  padding: 20px 0;
  margin: 28px 0;
}

/* ---- Main content ---- */
main { padding: 8px 0 60px; }
main article, main .container { background: transparent; }

/* ---- Section styling — every h2 becomes card-like ---- */
main h2 {
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 40px 0 0;
  padding: 20px 24px 8px;
  background: var(--surface);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  scroll-margin-top: 80px;
}
main h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}
main h2 + p, main h2 + ul, main h2 + ol, main h2 + .table-wrap,
main h2 + div, main h2 + details, main h2 ~ p, main h2 ~ ul, main h2 ~ ol,
main h2 ~ div.table-wrap, main h2 ~ details {
  /* content that comes after h2 gets the card body treatment via wrapping approach later */
}

/* Fake "section card" by styling content between H2s: give paragraphs a light surface bg */
main h2 + p,
main h2 + p + p,
main h2 + ul,
main h2 + ol,
main h2 + p + ul,
main h2 + p + ol,
main h2 + div.table-wrap,
main h2 + p + div.table-wrap {
  background: var(--surface);
  padding-left: 24px;
  padding-right: 24px;
  border-left: 5px solid var(--accent);
  border-right: none;
  margin-top: 0;
  margin-bottom: 0;
}
/* first paragraph after H2 keeps top attached to H2 */
main h2 + p { padding-top: 4px; }
/* last card element gets rounded bottom + spacing */
main article > p, main article > ul, main article > ol, main article > div, main article > details {}

/* ---- H3 sub-headings ---- */
main h3 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

/* ---- Paragraphs ---- */
main p {
  margin: 0.9em 0;
}

/* ---- Lists — arrow markers on ul ---- */
main ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
main ul li {
  padding-left: 26px;
  position: relative;
  margin: 8px 0;
  line-height: 1.55;
}
main ul li::before {
  content: '➤';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- Numbered lists — big circle numerals ---- */
main ol {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  counter-reset: step;
}
main ol li {
  padding: 14px 16px 14px 60px;
  position: relative;
  margin: 8px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: step;
}
main ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* ToC uses its own numbering scheme — keep it clean */
nav.toc ol,
nav[aria-label="Inhoudsopgave"] ol,
nav[aria-label*="ToC"] ol {
  list-style: decimal inside;
  counter-reset: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 32px;
}
nav.toc ol li,
nav[aria-label="Inhoudsopgave"] ol li,
nav[aria-label*="ToC"] ol li {
  background: transparent;
  box-shadow: none;
  padding: 3px 0;
  margin: 0;
  counter-increment: none;
}
nav.toc ol li::before,
nav[aria-label="Inhoudsopgave"] ol li::before,
nav[aria-label*="ToC"] ol li::before {
  display: none;
}
nav.toc,
nav[aria-label="Inhoudsopgave"] {
  margin: 24px 0 36px;
}
nav.toc .toc-title,
nav.toc p.toc-title {
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
}

/* Nav ul (header nav) — override the ul arrows */
header nav ul li::before, header nav ul li { content: none; padding-left: 0; }
header nav ul li { padding-left: 0; margin: 0; }

/* Footer nav — same override */
footer nav ul li::before { content: none; }
footer nav ul li { padding-left: 0; }

/* ---- Tables — alternating rows, no borders ---- */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
main table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
}
main table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}
main table td {
  padding: 12px 16px;
  border: none;
  vertical-align: top;
}
main table tr:nth-child(even) td { background: var(--surface); }
main table tr:nth-child(odd) td { background: #fff; }
main table tr:hover td { background: var(--surface-alt); }

/* ---- Author byline (outside hero) ---- */
.byline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.byline strong { color: var(--secondary); }

/* ---- Author box at bottom ---- */
.author-box, aside.author-box {
  background: linear-gradient(135deg, var(--surface) 0%, #fff 100%);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 40px 0 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.author-box img {
  width: 72px; height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  border: 3px solid var(--accent);
}
.author-box .author-name {
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 3px;
  font-size: 1.05rem;
}
.author-box .author-role {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 0.9rem;
}
.author-box .author-bio {
  color: var(--text);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.55;
}

/* ---- FAQ ---- */
main details {
  background: #fff;
  border-radius: var(--radius);
  margin: 10px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
main details summary {
  cursor: pointer;
  padding: 16px 44px 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  list-style: none;
  position: relative;
  background: var(--surface);
}
main details summary::-webkit-details-marker { display: none; }
main details summary::after {
  content: '▼';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
main details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
main details[open] summary {
  border-bottom: 1px solid var(--border);
}
main details p {
  padding: 14px 20px 18px;
  margin: 0;
  background: #fff;
}

/* ---- Notice/callout boxes ---- */
.notice, .callout {
  background: var(--surface);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.notice.help { border-left-color: var(--primary); }

/* ---- Links in content ---- */
main article a, main a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
main article a:hover, main a:hover {
  color: var(--secondary);
  text-decoration-thickness: 2px;
}

/* ---- Footer ---- */
footer.site-footer, footer.site {
  background: var(--secondary);
  color: #f8fafc;
  padding: 32px 0 24px;
  margin-top: 40px;
}
footer .container, footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
footer p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.92rem; }
footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
}
footer nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
footer nav a:hover { color: #fff; border-bottom-color: var(--accent); }

/* ---- Utility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}

/* ---- In-content images ---- */
main article img, main img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 20px auto;
}
main article svg, main svg {
  border-radius: var(--radius);
}

/* ---- Responsive ---- */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.08rem; }
  main h2 { font-size: 1.55rem; padding: 22px 28px 10px; }
  main h2 + p, main h2 + ul, main h2 + ol, main h2 + div.table-wrap,
  main h2 + p + p, main h2 + p + ul, main h2 + p + ol {
    padding-left: 28px; padding-right: 28px;
  }
  nav.primary ul, header.site nav ul { justify-content: flex-end; }
  .tagline { display: inline; }
  nav.toc ol,
  nav[aria-label="Inhoudsopgave"] ol { columns: 2; column-gap: 30px; }
}
@media (min-width: 980px) {
  .container { padding: 0 32px; }
  .hero { padding: 60px 40px 48px; }
  .hero h1 { font-size: 2.5rem; }
  main h2 { font-size: 1.7rem; }
  main { padding: 12px 0 80px; }
}


/* ================================================================
   FOOTER — handles all 5 different footer HTML structures
   ================================================================ */
footer.site-footer, footer.site {
  background: var(--secondary);
  color: #f8fafc;
  padding: 40px 0 24px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}
footer .container, footer .footer-inner {
  display: block !important;  /* override any earlier flex */
}
footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
footer p {
  color: rgba(255,255,255,0.75);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 10px 0;
}
footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
footer a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer ul li {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
footer ul li::before { content: none !important; }
footer .copyright,
footer .disclaimer,
footer .foot-meta,
footer > .container > p:last-child,
footer > .footer-inner > p:last-child {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
/* 3-column grid layout (vanorsouw-kunstgras) */
footer .foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  footer .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}
/* Bare <a> in <div> (coaching-axsyon, benoitpoelvoorde) */
footer > .container > div:first-child:not(.foot-grid),
footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 20px;
}
footer .foot-nav a { padding: 4px 0; }
/* ukwebnews's foot-grid uses ul.foot-nav — allow that */
footer ul.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

/* ================================================================
   HEADER NAV — cleaner mobile stacking + tighter desktop spacing
   ================================================================ */
header.site-header .container,
header.site-header .header-inner,
header.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
nav.primary, nav.main-nav, header.site nav, nav.main {
  width: auto;
  flex: 1 1 100%;
}
@media (min-width: 700px) {
  nav.primary, nav.main-nav, header.site nav, nav.main {
    flex: 0 1 auto;
    width: auto;
  }
}
nav.primary ul, nav.main-nav ul, header.site nav ul,
nav.primary, nav.main-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
nav.primary ul, nav.main-nav ul, header.site nav ul, header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  justify-content: flex-start;
}
@media (min-width: 700px) {
  nav.primary ul, nav.main-nav ul, header.site nav ul {
    justify-content: flex-end;
    gap: 4px 8px;
  }
}
header nav ul li,
header nav.main a {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
header nav ul li::before { content: none !important; }
header nav a, nav.main a, header nav ul li a {
  color: rgba(255,255,255,0.95) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 11px !important;
  border-radius: 8px;
  border-bottom: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.15s;
}
header nav a:hover, nav.main a:hover, header nav ul li a:hover {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
}
header nav a[aria-current="page"],
header nav ul li a[aria-current="page"],
header nav a.active {
  background: rgba(255,255,255,0.20) !important;
  color: #fff !important;
}
