/* D34R: Owner-approved Member Portal branding and exact typography restoration.
   Scope: Member login, legal gate and authenticated Member Portal only. */

.udos-topbar{
  min-height:132px;
  padding:18px 56px;
  gap:20px;
  background:#050607;
  border-bottom:2px solid #d61f35;
}
.udos-brand{gap:18px;padding-left:0}
.udos-logo{width:92px;height:92px}
.udos-organization{
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:clamp(28px,3.1vw,48px);
  font-weight:900;
  letter-spacing:0;
  line-height:1;
  color:#e0283d;
  white-space:nowrap;
}
.udos-system-line{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  margin-top:8px;
  color:#eef1f4;
  line-height:1.1;
  white-space:nowrap;
}
.d34r-powered{
  color:#eef1f4;
  font-size:24px;
  font-weight:800;
}
.d34r-powered .udos-yasimba,
.system-title .d34r-powered strong,
.d34r-footer-powered strong{color:#f1c336}
.d34r-platform-name{
  color:#aeb7c2;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  line-height:1.2;
}
.udos-entry-card>p{
  max-width:760px;
  line-height:1.55;
}
.udos-footer.d34r-footer,
.footer.d34r-footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  justify-content:stretch;
  gap:20px;
  min-height:46px;
  padding:7px 24px;
  background:#07090c;
  border-top:1px solid #20262d;
  color:#9ba8b9;
  font-size:12px;
  line-height:1.25;
}
.d34r-footer-owner{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px 10px;
  min-width:0;
}
.d34r-footer-owner strong{color:#dce3eb;font-weight:800}
.d34r-footer-powered{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  white-space:nowrap;
}
.d34r-footer-powered .d34r-platform-name{
  font-size:9px;
  letter-spacing:.06em;
}

body.d34p-production .system-title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  margin-top:8px;
  color:#eef1f4;
  line-height:1.1;
  white-space:nowrap;
}
body.d34p-production .system-title span{color:inherit}
body.d34p-production .system-title .d34r-powered{
  color:#eef1f4;
  font-size:24px;
  font-weight:800;
}
body.d34p-production .system-title .d34r-platform-name{
  color:#aeb7c2;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  line-height:1.2;
}

@media(max-width:900px){
  .udos-topbar{min-height:74px;padding:10px 14px}
  .udos-brand{gap:10px}
  .udos-logo{width:50px;height:50px}
  .udos-organization{font-size:20px;white-space:normal}
  .d34r-powered,
  body.d34p-production .system-title .d34r-powered{font-size:14px}
  .d34r-platform-name,
  body.d34p-production .system-title .d34r-platform-name{font-size:9px;letter-spacing:.04em}
  .udos-system-line,
  body.d34p-production .system-title{margin-top:4px;gap:1px}
  .udos-footer.d34r-footer,
  .footer.d34r-footer{
    grid-template-columns:1fr auto;
    gap:10px;
    min-height:42px;
    padding:5px 14px;
    font-size:11px;
  }
  .d34r-footer-owner .d34r-creator{display:none}
  .d34r-footer-powered .d34r-platform-name{display:none}
}
@media(max-width:560px){
  .udos-logo{width:44px;height:44px}
  .udos-organization{font-size:17px}
  .d34r-powered,
  body.d34p-production .system-title .d34r-powered{font-size:12px}
  .d34r-platform-name,
  body.d34p-production .system-title .d34r-platform-name{display:none}
  .udos-footer.d34r-footer,
  .footer.d34r-footer{
    grid-template-columns:1fr;
    justify-items:center;
    gap:2px;
    text-align:center;
  }
  .d34r-footer-owner{justify-content:center}
  .d34r-footer-powered{align-items:center}
}
