/* DigiWeb overrides */
.digiweb-logo { display: block; height: 4.4rem; width: auto; }
@media only screen and (min-width: 768px) { .digiweb-logo { height: 5.4rem; } }
.digiweb-footer-logo { display: block; width: 100%; max-width: 72rem; height: auto; margin: 0 auto; padding: 2rem 0; opacity: .95; }
[color-scheme="dark"] .digiweb-logo,
[color-scheme="dark"] .digiweb-footer-logo { filter: invert(1); }
.menu-promo__video img.menu-video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.digiweb-msg { margin-top: 1.6rem; font-size: 1.5rem; }
.digiweb-msg--error { color: #e5484d; }
.digiweb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* dynamic article list uses the full content width (no sidebar) */
.mxd-posts-area { display: block !important; }
.mxd-posts-area .mxd-posts-container { width: 100% !important; max-width: none !important; }

/* ---- mobile header: logo + theme switch + Login (icon) + menu button must fit without overlapping ---- */
@media only screen and (max-width: 767px) {
  .digiweb-logo { height: 3.4rem; }
  .mxd-header__controls a[aria-label="Say Hello"] { display: none; }
  .mxd-header__controls { gap: 1.2rem; padding-right: 5.6rem; }
  .dw-login { min-width: 4rem; }
}
@media only screen and (max-width: 359px) { .digiweb-logo { height: 3rem; } .mxd-header__controls { gap: .8rem; padding-right: 5rem; } }

/* long email in the contact headline must wrap on narrow phones */
@media only screen and (max-width: 575px) {
  .btn-line-headline { max-width: 100%; white-space: normal; flex-wrap: wrap; }
  .btn-line-headline .btn-caption { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: clamp(2rem, 7.2vw, 3.2rem); line-height: 1.15; }
}

/* the template forces a 360px minimum page width; allow smaller phones (320px) without sideways scrolling */
body, section, .mxd-wrapper, .mxd-section, .mxd-project { min-width: 0 !important; }
html, body { overflow-x: clip; }
