.jusos-login-wrap {
  width: min(520px, calc(100% - 32px));
  margin: clamp(48px, 7vw, 100px) auto;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #e0d8d6;
  border-top: 6px solid #e30613;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20, 10, 10, .07);
  color: #151515;
}
.jusos-login-eyebrow,.jusos-download-type {
  color: #d10818;
  font: 800 12px/1.2 Inter, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.jusos-login-wrap h1 {
  margin: 12px 0 14px;
  font: 900 clamp(48px, 6vw, 74px)/.95 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}
.jusos-login-wrap form { display: grid; gap: 13px; margin-top: 26px; }
.jusos-login-wrap label { font: 800 13px/1.5 Inter, sans-serif; }
.jusos-login-wrap input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #a9a2a0;
  border-radius: 4px;
  background: #fff;
  color: #151515;
}
.jusos-login-wrap .jusos-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.jusos-login-wrap a { color: #c20819; }
.jusos-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.jusos-download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-height: 225px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfd9d7;
  border-top: 5px solid #e30613;
  border-radius: 5px;
  background: #fff;
}
.jusos-download-card h2 {
  margin: 0;
  color: #111;
  font: 900 clamp(28px, 3vw, 38px)/1 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.jusos-download-card p { margin: 0; color: #484848; }
.jusos-download-card .jusos-member-button { margin-top: auto; }
.jusos-download-upload { margin-top: 48px; }
body.jusos-dark .jusos-login-wrap,
body.jusos-dark .jusos-download-card { background: #181818; border-color: #444; color: #f9f9f9; }
body.jusos-dark .jusos-login-wrap h1,
body.jusos-dark .jusos-download-card h2 { color: #f9f9f9; }
body.jusos-dark .jusos-download-card p { color: #dedede; }

#az2 .jusos-downloads-section .inner > p {
  margin: 0 0 22px;
  max-width: 650px;
  color: var(--muted, #555);
  font-size: clamp(14px, 1.5vw, 18px);
}
#az2 .jusos-downloads-section .btn {
  display: inline-flex;
  text-decoration: none;
}

/* Keep the homepage masthead centered without squeezing the navigation. */
@media (min-width: 1351px) {
  #az2 .top .inner {
    display: grid !important;
    grid-template-columns: minmax(105px, 1fr) auto minmax(52px, 1fr) !important;
    align-items: center !important;
  }
  #az2 .top .brand { justify-self: start; }
  #az2 .top .nav {
    justify-content: center !important;
    gap: clamp(7px, .75vw, 17px) !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
  #az2 .top .theme-btn { justify-self: end; }
  #az2 .top .menu-btn { display: none !important; }
}
@media (max-width: 1350px) {
  #az2 .top .inner { justify-content: space-between !important; }
  #az2 .top .brand { margin-right: auto; }
  #az2 .top .theme-btn { margin-left: auto; }
  #az2 .top .menu-btn { display: grid !important; place-items: center; }
  #az2 .top .nav {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    max-height: min(75vh, 660px);
    overflow-y: auto;
    padding: 15px !important;
    border: 1px solid var(--line, #ddd);
    background: var(--paper, #fff);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
  }
  #az2 .top .nav.open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }
  #az2 .top .nav.open a {
    display: block !important;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line, #ddd);
    white-space: normal;
  }
}
@media (max-width: 560px) {
  #az2 .top .nav.open { grid-template-columns: 1fr; }
}
