/* ===== Responsive retrofit (mobile + tablet) for the Duda desktop mirror ===== */
:root { --lmb-bg: #ffffff; --lmb-fg: #14213a; --lmb-accent: #e5341f; }

html, body { max-width: 100% !important; overflow-x: hidden !important; }
#dm img, #dm video, #dm iframe, #dm svg { max-width: 100%; height: auto; }

/* Layout reflow is enforced in JS (inline !important); these are CSS backups. */
@media (max-width: 1024px) {
  #dmStyle_innerContainer, #dm .dmInner { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
  #dm .dmRespRow, #dm .dmRespColsWrapper, #dm .dmRespCol {
    display: block !important; float: none !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  }
  #dm .dmtable, #dm table { display: block !important; overflow-x: auto !important; max-width: 100% !important; }
}

/* Phone: scale the big desktop type down */
@media (max-width: 640px) {
  #dm h1 { font-size: clamp(1.7rem, 8vw, 2.3rem) !important; line-height: 1.15 !important; }
  #dm h2 { font-size: clamp(1.35rem, 6vw, 1.9rem) !important; line-height: 1.2 !important; }
  #dm h3 { font-size: 1.15rem !important; }
  #dm p, #dm li, #dm td { font-size: 1rem; }
}

/* ===== Custom mobile header (built by local-responsive.js) ===== */
#localMobileBar, #localMobileMenu { display: none; }
@media (max-width: 820px) {
  #dm .dmHeaderContainer, #dm .dmHeader, #dm .sticky-widgets-container-global { display: none !important; }
  #localMobileBar {
    display: flex !important; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; height: 58px; padding: 0 14px;
    background: var(--lmb-bg); z-index: 2147483000; box-shadow: 0 2px 14px rgba(0,0,0,.28);
  }
  .lmb-home { display: flex; align-items: center; }
  .lmb-logo { height: 30px; width: auto; }
  #lmbBurger { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; }
  #lmbBurger span { display: block; height: 3px; border-radius: 3px; background: var(--lmb-fg); transition: .25s; }
  html.lmb-open #lmbBurger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  html.lmb-open #lmbBurger span:nth-child(2) { opacity: 0; }
  html.lmb-open #lmbBurger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body { padding-top: 58px !important; }
  #localMobileMenu {
    display: flex !important; flex-direction: column; position: fixed; top: 58px; left: 0; right: 0;
    background: var(--lmb-bg); z-index: 2147482999; transform: translateY(-130%); transition: transform .25s ease;
    max-height: calc(100vh - 58px); overflow: auto; box-shadow: 0 16px 40px rgba(0,0,0,.3);
  }
  html.lmb-open #localMobileMenu { transform: translateY(0); }
  #localMobileMenu a { display: block; padding: 15px 22px; color: var(--lmb-fg) !important; text-decoration: none;
    font-size: 1.05rem; border-top: 1px solid rgba(127,127,127,.18); }
  #localMobileMenu .lmb-auth { display: flex; gap: 10px; padding: 14px 18px 20px; }
  #localMobileMenu .lmb-btn { flex: 1; text-align: center; border: 0; border-radius: 999px; padding: 13px 10px;
    background: var(--lmb-accent); color: #fff !important; font-weight: 700; }
}
