/* OA Vlaanderen - Mobiele opmaak voor schermen tot en met 900px. */
@media (max-width: 900px) {
  header {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 17px 20px;
    flex-wrap: wrap;
  }
  header > .header-brand {
    flex: 1 1 0;
    min-width: 0;
    max-width: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  header .header-brand .official-logo {
    display: block;
    width: 100%;
    max-width: 245px;
    height: auto;
  }
  header .brand-tagline {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
  }
  header .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 2px solid #294568;
    border-radius: 14px;
    color: #294568;
    background: #fae089;
    box-shadow: 0 4px 0 #29456824;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, box-shadow .18s ease;
  }
  header .menu-toggle:hover { background: #f8d979; }
  header .menu-toggle:focus-visible { outline: 3px solid #294568; outline-offset: 3px; }
  header .menu-toggle .menu-label { font-weight: 500; }
  header .menu-toggle .menu-icon {
    width: 20px;
    height: 19px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex: none;
  }
  header .menu-toggle .menu-icon i {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .15s ease;
  }
  header .menu-toggle[aria-expanded="true"] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    background: #294568;
    color: white;
    box-shadow: none;
  }
  header .menu-toggle[aria-expanded="true"] .menu-label { display: none; }
  header .menu-toggle[aria-expanded="true"] .menu-icon { justify-content: center; }
  header .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
  header .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; height: 0; }
  header .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  header nav#nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    margin: 13px 0 0;
    padding: 8px 10px 10px;
    border: 1px solid #637ea64a;
    border-radius: 17px;
    background: #fff9e8;
    box-shadow: 0 9px 20px #29456815;
    font-size: 16px;
    line-height: 1.4;
  }
  header nav#nav.open { display: flex; }
  header nav#nav > a {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 10px;
    color: #294568;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    border-bottom: 1px solid #2945681c;
    border-radius: 0;
    white-space: normal;
    background: transparent;
  }
  header nav#nav > a:not(.nav-contact):last-of-type { border-bottom: 0; }
  header nav#nav > a[aria-current="page"] { color: #637ea6; }
  header nav#nav > a[aria-current="page"]::after { display: none !important; }
  header nav#nav > a:hover { background: #637ea610; }
  header nav#nav > a.nav-contact {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid #637ea670;
    border-radius: 11px;
    background: #e5edf7;
    text-align: center;
  }
  header nav#nav > a.nav-contact:hover { background: #d8e4f3; }
  /* The manual line break in this quotation can now remain two full lines. */
  .quote-section blockquote {
    font-size: clamp(1.5rem, 5.5vw, 2.3rem);
    line-height: 1.3;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }
  .quote-section { padding-block: 55px 65px; }
  .quote-section .quote-mark { font-size: 78px; margin-bottom: 10px; }
  .quote-section > p { font-size: 10px; line-height: 1.5; letter-spacing: .13em; }
  /* Footer: centered, compact, with the original small OA mark. */
  footer { padding: 28px 18px 25px; }
  footer .footer-simple {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
  }
  footer .footer-identity {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
  }
  footer .footer-symbol { width: 43px; height: 31px; flex: 0 0 auto; }
  footer .footer-symbol img { width: 145px; height: auto; }
  footer .cookie-settings { font-size: 13px; }
  .back-to-top { width: 39px; height: 39px; right: 12px; bottom: 12px; font-size: 23px; }
}
@media (max-width: 400px) {
  header { padding: 15px 17px; gap: 8px; }
  header > .header-brand { max-width: 229px; }
  header .brand-tagline { font-size: 11px; }
  header .menu-toggle { min-height: 45px; padding: 10px 10px; font-size: 14px; gap: 8px; }
  header .menu-toggle[aria-expanded="true"] { width: 45px; min-width: 45px; height: 45px; }
  header nav#nav { margin-top: 10px; }
  .quote-section blockquote { font-size: clamp(1.4rem, 6.0vw, 1.9rem); }
}
@media (max-width: 340px) {
  header { padding: 13px 14px; }
  header .brand-tagline { font-size: 10px; }
  header .menu-toggle { font-size: 13px; }
  header .menu-toggle .menu-icon { width: 18px; }
  footer .footer-identity { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  header .menu-toggle, header .menu-toggle .menu-icon i { transition: none; }
}

/* Gelijkmatige, subtiele rand en diffuus schaduwtje voor de goedgekeurde mobiele menuknop. */
@media (max-width: 900px) {
  header .menu-toggle {
    border-color: rgba(41, 69, 104, .67);
    box-shadow: 0 5px 12px rgba(41, 69, 104, .12);
  }
  header .menu-toggle[aria-expanded="true"] { box-shadow: none; }
  header nav#nav > a.nav-contact {
    border-color: rgba(99, 126, 166, .55);
    box-shadow: 0 4px 11px rgba(41, 69, 104, .08);
  }
}


/* 10 november 2026 - Over OA: drie interne links op mobiele schermen
   netjes en volledig onder elkaar (desktop blijft ongewijzigd). */
@media (max-width: 650px) {
  .reading-layout > .on-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding-bottom: 22px;
  }
  .reading-layout > .on-page .eyebrow {
    margin-bottom: 3px;
  }
  .reading-layout > .on-page a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(99, 126, 166, .30);
    border-radius: 11px;
    background: rgba(229, 237, 247, .53);
    box-shadow: 0 3px 10px rgba(41, 69, 104, .055);
    color: #294568;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    transition: background-color .15s ease, border-color .15s ease;
  }
  .reading-layout > .on-page a:hover {
    background: #e5edf7;
    border-color: rgba(99, 126, 166, .55);
  }
}
