/* =========================
   DESIGN SYSTEM LOCK FIX
   ========================= */

* {
  box-sizing: border-box;
}

/* HEADER */
.header__top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.header__brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-direction: row !important;
}

.wp-block-site-title {
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
}

/* SEARCH */
.header__search form {
  display: flex !important;
  gap: 6px !important;
}

.header__search input {
  padding: 10px !important;
  border: 1px solid #ccc !important;
}

.header__search button {
  padding: 10px 14px !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
}

/* NAVIGATION */
.wp-block-navigation ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-navigation a {
  display: inline-block !important;
  padding: 6px 10px !important;
  text-decoration: none !important;
  color: #111 !important;
}

.wp-block-navigation a:hover {
  text-decoration: underline !important;
}

/* FOOTER */
.footer {
  text-align: center !important;
  padding: 20px 10px !important;
}

.footer__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
}

.footer__nav a {
  text-decoration: underline !important;
  color: #111 !important;
}

.footer__copyright {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
}

/* MOBILE */
@media (max-width: 768px) {

  .header__top {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .header__search {
    width: 100% !important;
  }

  .header__search form {
    width: 100% !important;
  }

  .header__search input {
    width: 100% !important;
  }
}

/* =========================
   LOCKED DESIGN SYSTEM CORE
   ========================= */

/* RESET WP BLOCK INCONSISTENCIES */
.wp-block-group,
.wp-block-navigation,
.wp-block-site-title,
.wp-block-search {
  margin: 0;
  padding: 0;
}

/* GLOBAL BOX MODEL STABILITY */
* {
  box-sizing: border-box;
}

/* TYPOGRAPHY BASE */
body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #111;
  line-height: 1.6;
}

/* =========================
   ACCESSIBILITY CORE (UNCHANGED)
   ========================= */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

/* FOCUS SYSTEM (LOCKED) */
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* =========================
   HEADER LOCK SYSTEM
   ========================= */

.header__top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.header__brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

.wp-block-site-title {
  margin: 0 !important;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}

/* SEARCH LOCK */
.header__search form {
  display: flex;
  gap: 6px;
}

.header__search input {
  padding: 10px;
  border: 1px solid #ccc;
}

.header__search button {
  padding: 10px 14px;
  background: #000;
  color: #fff;
}

/* =========================
   NAVIGATION LOCK SYSTEM
   ========================= */

.wp-block-navigation ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-navigation a {
  text-decoration: none;
  padding: 6px 10px;
}

.wp-block-navigation a:hover {
  text-decoration: underline;
}

.wp-block-navigation a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

/* =========================
   FOOTER LOCK SYSTEM
   ========================= */

.footer {
  text-align: center;
  padding: 20px 10px;
}

.footer__nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer__nav a {
  text-decoration: underline;
  font-size: 0.95rem;
  color: #111;
}

.footer__copyright {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* =========================
   RESPONSIVE LOCK
   ========================= */

@media (max-width: 768px) {
  .header__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__search form {
    width: 100%;
  }

  .header__search input {
    width: 100%;
  }
}

/* =========================
   VISUAL POLISH FIXES
   ========================= */

/* Header breathing room */
.header {
  padding-top: 16px;
  padding-bottom: 12px;
}

/* Navigation spacing */
.header__nav-wrapper {
  margin-top: 14px;
}

/* Remove strange slash from navigation */
.wp-block-navigation__responsive-container-open {
  display: none;
}

/* Search sizing */
.header__search input {
  width: 220px;
  max-width: 100%;
}

/* Footer spacing */
.footer {
  margin-top: 48px;
}

/* Breadcrumb spacing */
.header__breadcrumbs {
  margin-top: 14px;
  font-size: 0.95rem;
}

/* Better menu alignment */
.wp-block-navigation ul {
  align-items: center;
}

/* =========================
   CONTENT SYSTEM
   ========================= */

/* Main content width */
main,
.wp-site-blocks {
  width: 100%;
}

/* Constrained readable content */
.entry-content,
.wp-block-post-content,
.page .wp-block-group,
.single .wp-block-group {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Reading width for text */
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  max-width: 75ch;
}

/* Better paragraph spacing */
.entry-content p {
  margin-bottom: 1.2em;
}

/* Images responsive */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Tables responsive */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

/* Embedded content */
.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

/* Mobile breathing room */
@media (max-width: 768px) {

  .entry-content,
  .wp-block-post-content,
  .page .wp-block-group,
  .single .wp-block-group {
    padding-left: 16px;
    padding-right: 16px;
  }

}

.header__top {
  display: flex !important;
  justify-content: space-between !important; /* logo + titel links, search rechts */
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px;
}

.header__brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  flex-direction: row !important; /* logo naast titel */
}

.wp-block-site-title {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  white-space: nowrap;
}