/* Mobile layout */
@media (max-width: 980px) {
  .gd-headerbar {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "burger logo icons"
      "search search search";
  }

  .gd-burger {
    grid-area: burger;
    display: flex;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
  }
  .gd-burger span {
    height: 2px;
    width: 22px;
    background: #111;
    display: block;
    border-radius: 999px;
  }

  .gd-logo {
    justify-content: center;
  }
  .gd-search {
    width: 100%;
  }
}

/* Desktop nav verbergen? nee -> nav blijft staan.
Op mobiel verbergen we de nav sectie (we gebruiken offcanvas). */
@media (max-width: 980px) {
  .gd-nav {
    display: none;
  }
}

/* lock + overlay */
body.gd-lock {
  overflow: hidden;
  height: 100vh;
}
.gd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999998;
}
body.gd-menu-open .gd-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* offcanvas shell */
.gd-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 90vw;
  max-width: 420px;
  height: 100dvh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 999999;
  display: flex;
  flex-direction: column;
}
body.gd-menu-open .gd-offcanvas {
  transform: translateX(0);
}

.gd-offcanvas__top {
  background-color: #1f6ae1;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gd-back svg,
.gd-close svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gd-back:disabled svg {
  opacity: 0.35;
}

.gd-offcanvas__top button:hover svg {
  stroke: #ffffff;
}

/* Icon system (SVG) */
.gd-next svg {
  width: 26px;
  height: 26px;
  stroke: #1f6ae1;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    stroke 0.15s ease,
    transform 0.15s ease;
}
.gd-next:hover svg {
  stroke: #0a5fd8;
}
.gd-next:hover svg {
  transform: translateX(2px);
}

.gd-back:disabled svg {
  opacity: 0.5;
  background: none !important;
}

.gd-back:disabled {
  opacity: 0.25;
  cursor: default;
}
.gd-title {
  text-align: center;
  font-weight: 800;
  color: #fff !important;
  font-size: 18px;
}

/* panels wrapper */
.gd-panels {
  position: relative;
  height: calc(100dvh - 65px);
  overflow: hidden;
}
.gd-panels.no-trans * {
  transition: none !important;
}

.gd-panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 6px 0 24px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.gd-panels[data-active] .gd-panel[data-panel] {
  transform: translateX(100%);
}
.gd-panels[data-active] .gd-panel[data-panel].is-active {
  transform: translateX(0);
}
.gd-panels .gd-panel {
  will-change: transform;
}

/* menu rows */
.gd-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd-menu-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  list-style: none;
}
.gd-row {
  display: grid;
  grid-template-columns: 55px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 6px 14px;
}
.gd-mi {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f2f2;
}
.gd-mi--ph {
  display: inline-block;
}
.gd-link {
  text-decoration: none;
  color: #111;
  font-weight: 800;
}
.gd-txt {
  display: block;
  line-height: 1.15;
}
.gd-next {
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.8;
  color: #1f6ae1;
}
.gd-next:hover {
  opacity: 1;
}

/* show/hide on desktop */
@media (min-width: 981px) {
  .gd-backdrop,
  .gd-offcanvas {
    display: none !important;
  }
}

/* Offcanvas topbar (fix buttons) */
.gd-offcanvas__top {
  background: #0a5fd8;
  color: #fff;
  border-bottom: 0;
}
.gd-offcanvas__top .gd-title {
  color: #fff;
}
.gd-offcanvas__top .gd-back,
.gd-offcanvas__top .gd-close {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}
.gd-offcanvas__top .gd-back:hover,
.gd-offcanvas__top .gd-close:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.gd-offcanvas__top .gd-back:active,
.gd-offcanvas__top .gd-close:active {
  background: rgba(255, 255, 255, 0.22) !important;
}
.gd-offcanvas__top .gd-back:disabled {
  opacity: 0.45;
  cursor: default;
  background: transparent !important;
}
.gd-offcanvas__top svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
