/* DSNET Responsive fixes
   Additive tweaks for: mobile sizing, header CTA spacing, SVG pill links,
   and allauth /accounts/ pages styling.
   Loaded after site.css + portal.css + layers.css.
*/

html, body {
  overflow-x: hidden;
}

/* layers.css sets #site-content min-height:100vh; that forces an extra scroll region.
   Keep layering intact but let body flex control overall height. */
#site-content{
  min-height: 0 !important;
}

/* Header SVG button anchors */
#site-header a.btn-svg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}
#site-header a.btn-svg:hover{ text-decoration: none; }
#site-header a.btn-svg img.btn-svg-img{ display:block; }

/* Header labels sit centered on the SVG button */
#site-header .btn-svg .btn-svg-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

/* Ensure SVG button containers are positioned for overlays */
#site-header .btn-svg,
.site-footer .btn-footer-pill{
  position: relative;
}

/* No spacing between Log in / Sign up */
#site-header .auth-pair{
  display:flex;
  align-items:center;
  gap:0;
}
#site-header .auth-pair a{ margin:0; }

/* Footer pill buttons (SVG + text overlay) */
.site-footer .btn-footer-pill{
  position: relative;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.site-footer .btn-footer-pill:hover{ text-decoration: none; }
.site-footer .btn-footer-pill img.btn-svg-img{
  display:block;
  height: 32px;
  width: auto;
}
.site-footer .btn-footer-pill .btn-svg-label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

/* Allauth /accounts/ pages */
.auth-panel{
  max-width: 520px;
  margin: 22px auto;
}
.auth-panel form p{ margin: 10px 0; }
.auth-panel label{ display:block; margin-bottom:6px; font-weight:600; }
.auth-panel input,
.auth-panel select,
.auth-panel textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #22304f;
  background: rgba(17, 22, 35, 0.75);
  color: var(--text);
  outline: none;
}
.auth-panel input:focus,
.auth-panel select:focus,
.auth-panel textarea:focus{
  border-color: rgba(107,196,255,0.85);
}
.auth-panel .helptext,
.auth-panel .muted{ color: var(--muted); }
.auth-panel button.btn{ margin-top: 12px; }

/* Mobile readability */
@media (max-width: 640px){
  body{ font-size: 18px; }

  #content,
  .content{
    padding: 0 16px;
    margin: 16px auto;
  }

  #site-header .header-inner{
    padding: 10px 12px !important;
    min-height: 52px !important;
  }

  #content h1,
  .content h1{
    font-size: 28px;
  }

  .auth-panel{ padding: 0 4px; }
}
