/* Test stylesheet (alleen home/) om header op desktop hard te centreren */
@media (min-width: 769px) {
  .header table.header-table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    table-layout: auto;
  }

  .header table.header-table td {
    vertical-align: middle;
    padding: 0 10px;
  }

  .header table.header-table td.header-side {
    width: 56px;
    min-width: 56px;
    white-space: nowrap;
    text-align: right;
  }

  .header table.header-table td.header-main {
    text-align: center;
  }

  .header table.header-table td.header-main .logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 220px);
    height: auto;
  }

  .header table.header-table td.header-main h1,
  .header table.header-table td.header-main p {
    text-align: center;
  }
}

/*
 * Site-topbalk (alle subsites): hamburger + uitklapmenu (zelfde gedrag als shop).
 * Hamburger altijd zichtbaar; tekstlinks in de balk verbergen op smalle viewports.
 */
.site-nav-shell {
  position: relative;
  z-index: 1000;
}
.site-nav-shell .menu-toggle {
  display: none;
}
.site-nav-shell > nav.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 12px;
  right: auto;
  width: min(22rem, calc(100vw - 24px));
  z-index: 1001;
  max-height: min(85vh, 28rem);
  overflow-y: auto;
  background-color: #fff4e6;
  padding: 10px 15px;
  text-align: left;
  border: 1px solid #e7d2b8;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.site-nav-shell > nav.menu a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #333;
}
.site-nav-shell .menu-toggle:checked ~ nav.menu {
  display: block;
}
.site-nav-shell .top-nav td.top-nav__burger-cell,
table.top-nav td.top-nav__burger-cell {
  display: table-cell !important;
  width: auto !important;
  min-width: 44px !important;
  padding: 8px 12px 8px 16px !important;
  vertical-align: middle !important;
}
@media (max-width: 991px) {
  .site-nav-shell .top-nav td.top-nav__link,
  table.top-nav td.top-nav__link {
    display: none !important;
  }
  .site-nav-shell .top-nav td.menu-spacer,
  table.top-nav td.menu-spacer {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
  }
}

/* Zeer kleine schermen (kleine telefoons) */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.25em;
  }

  .top-nav a {
    margin: 0 4px;
    font-size: 0.85em;
  }

  .container {
    padding: 16px 10px;
  }

  h2 {
    font-size: 1.25em;
  }
}

/* Iframes: niet breder dan viewport (embed kan nog fixed width hebben) */
iframe {
  max-width: 100%;
  box-sizing: border-box;
}

/* Voorkom horizontaal scrollen door overflow */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Hamburger-menu overal consistent: rechts en compact */
.header .header-table td:last-child > div,
.header .embed-table__menu > div {
  position: relative;
  display: inline-block;
}

.header .header-table td:last-child,
.header .embed-table__menu {
  text-align: right;
}

.header .menu {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  width: min(320px, 80vw);
  max-width: 320px;
  border: 1px solid #e7d2b8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}

/* Touch-vriendelijke focus (toegankelijkheid) */
@media (hover: none) {
  a:focus,
  button:focus {
    outline: 2px solid #8B4513;
    outline-offset: 2px;
  }
}
