/* Shared LibreInfra shell contract.
   Header, mobile menu, footer and mini-footer styles live here so generated
   publishing pages and hibrid_2 use the same visual shell. */
body.footer-visible {
  padding-bottom: 0;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-height);
}
main { flex: 1; }

/* ================= HEADER (from index.html) ================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--topbar-height);
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0.75rem var(--page-pad);

  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 1rem;

  font-family: var(--sans);
  font-size: 0.9rem;
}

.topbar__brand {
  grid-area: brand;
  justify-self: start;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.topbar__nav {
  grid-area: nav;
  justify-self: center;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
}
.topbar__nav a:hover { color: var(--text); }

.topbar__nav a[aria-current="page"]{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar__actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.topbar__action {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.topbar__action:hover { color: var(--text); }

.topbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
}
.topbar__lang a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.topbar__lang a:hover { color: var(--text); }
.topbar__lang-separator { opacity: 0.5; }

.topbar__subscribe {
  text-decoration: none;
  background: #2ceecf;
  color: #041110;
  padding: 0.42rem 0.78rem;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.10),
              0 10px 26px rgb(44 238 207 / 0.30);
}
.topbar__subscribe:hover,
.topbar__subscribe:focus-visible {
  background: #7effe7;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18),
              0 12px 32px rgb(44 238 207 / 0.42);
}

.topbar__search {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  display: inline-grid;
  place-items: center;
}
.topbar__search:hover { color: var(--text); }
.topbar__search svg { width: 18px; height: 18px; display: block; }

.topbar__burger {
  display: none;
  grid-area: burger;
  justify-self: start;

  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.26);
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.topbar__burger:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
}
.topbar__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
}
.topbar__burger span + span { margin-top: 5px; }

.topbar__actions--mobile { display: none; }

@media (max-width: 860px) {
  .topbar__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "burger brand actions";
  }

  .topbar {
    background: #050505;
    color: #f4f4f4;
  }
  .topbar__inner {
    background: #050505;
  }
  .topbar__burger {
    display: inline-grid;
    color: #f4f4f4;
    -webkit-text-fill-color: #f4f4f4;
  }
  .topbar__burger span {
    background: #f4f4f4;
  }
  .topbar__brand {
    justify-self: center;
    color: #f4f4f4;
    -webkit-text-fill-color: #f4f4f4;
  }
  .topbar__search {
    color: #f4f4f4;
    -webkit-text-fill-color: #f4f4f4;
  }
  .topbar__search svg path {
    stroke: #f4f4f4;
  }

  .topbar__nav { display: none; }
  .topbar__actions--desktop { display: none; }

  .topbar__actions--mobile {
    display: flex;
    gap: 0.75rem;
  }
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.mobile-menu[hidden] { display: none !important; }

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #111;
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 1rem;
  overflow: auto;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--sans);
}

.mobile-menu__title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
}

.mobile-menu__close {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.mobile-menu__close:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}

.mobile-menu__nav a,
.mobile-menu__link {
  display: block;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--sans);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu__nav a:hover,
.mobile-menu__link:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-menu__nav a[aria-current="page"]{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu__divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 1rem 0;
}

.mobile-menu__lang-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--sans);
}
.mobile-menu__lang-row a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mobile-menu__subscribe {
  margin-top: 1rem;
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #2ceecf;
  color: #041110;
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.10),
              0 14px 34px rgb(44 238 207 / 0.30);
}
.mobile-menu__subscribe:hover,
.mobile-menu__subscribe:focus-visible {
  background: #7effe7;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18),
              0 16px 38px rgb(44 238 207 / 0.42);
}

/* ================= FOOTER (LibreInfra content, DeNederlander shell) ================= */
.footer {
  position: relative;
  z-index: 901; /* footer-over-mini-footer guard */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0f0f;
  font-family: var(--sans);
  color: var(--muted);
}
.footer .footer-top,
.footer .footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
}
.footer .footer-top {
  padding: 2.2rem var(--page-pad) 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}
.footer .list {
  display: grid;
  gap: 0.5rem;
}
.footer .newsletter form {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.footer .newsletter input[type="email"] {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #101010;
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
  box-sizing: border-box;
}
.footer .newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.footer .newsletter p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  line-height: 1.4;
}
.footer .newsletter p input {
  margin-top: 0.18rem;
}
.footer .newsletter .hint {
  line-height: 1.45;
}
.footer .newsletter button {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  background: #2ceecf;
  color: #041110;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  white-space: nowrap;
}
.footer .newsletter button:hover {
  filter: brightness(1.08);
}
.footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem var(--page-pad) 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.mini-footer {
  position: fixed;
  left: 50%;
  bottom: 0.6rem;
  z-index: 900;
  transform: translateX(-50%);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.88);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
body.footer-visible .mini-footer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 8px);
}
@media (max-width: 900px) {
  .footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer .footer-top {
    grid-template-columns: 1fr;
  }
  .mini-footer {
    bottom: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
}
