/* SUOAF masthead: the JD Library's emblem, ribbon, and account panel. */
.cba-masthead{
  position:relative;isolation:isolate;overflow:hidden;display:grid;flex:none;
  grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:18px;padding:14px clamp(14px,2vw,32px) 15px;min-height:clamp(116px,11vw,168px);
  color:#fff;background:radial-gradient(ellipse at 26% -36%,#36b6f5 0,transparent 63%),
    linear-gradient(180deg,#0a4d88 0%,#082b65 100%);
  box-shadow:0 3px 9px #062f5d1f;
}
.cba-masthead::before,.cba-masthead::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
}
.cba-masthead::before{
  inset:0;background:linear-gradient(158deg,transparent 14%,#0067ba77 37%,transparent 58%),
    radial-gradient(ellipse at 47% 0%,#0075ce6b 0,transparent 58%);
}
.cba-masthead::after{
  left:0;bottom:0;width:min(100%,1160px);height:clamp(36px,5.5vw,88px);
  background:url('assets/suoaf-header-ribbon.webp') left bottom/100% 100% no-repeat;
  -webkit-mask-image:linear-gradient(90deg,#000 66%,transparent),linear-gradient(180deg,transparent,#000 45%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,#000 66%,transparent),linear-gradient(180deg,transparent,#000 45%);
  mask-composite:intersect;
}
.cba-brand{display:flex;align-items:center;gap:clamp(12px,1.5vw,24px);min-width:0}
.cba-brand-emblem{
  display:block;flex:none;width:clamp(126px,15vw,236px);height:auto;
  filter:drop-shadow(0 5px 5px #001b3a80);
}
.cba-brand-copy{min-width:0;border-left:1px solid #b7e4ff99;padding-left:clamp(12px,1.5vw,24px)}
.cba-masthead h1{
  color:#fff;margin:0 0 7px;font-size:clamp(23px,2.75vw,45px);font-weight:800;
  line-height:1.09;letter-spacing:-.018em;text-shadow:0 2px 3px #001c4699;
}
.cba-masthead .edition{
  display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  gap:5px 12px;color:#e0efff;font-size:clamp(12px,1.16vw,17px);font-weight:600;line-height:1.3;
  text-shadow:0 1px 2px #0015308c;
}
.cba-masthead .edition strong{
  color:#fff;background:#052c57d9;border:1px solid #b2dafa8c;border-left:3px solid #31da8c;
  border-radius:4px;padding:4px 8px;font-size:11px;font-weight:650;white-space:nowrap;
}
.cba-masthead .edition strong[hidden]{display:none}
.cba-account{
  align-self:end;justify-self:end;min-width:0;max-width:min(350px,29vw);
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:2px 13px;
  padding:7px 11px;border:1px solid #ffffff4d;border-radius:8px;background:#032b5cde;color:#fff;
  font:600 13px/1.4 Arial,Helvetica,sans-serif;
}
.cba-mode{
  padding:6px 10px;border:1px solid #b4c6d3;border-radius:6px;background:#e5ecf1;
  color:#253f50;font-size:12px;font-weight:700;white-space:nowrap;
}
.cba-account--admin .cba-mode,
.cba-account:has(#cba-usage:not([hidden])) .cba-mode{color:#125e2f;background:#dbf3e3;border-color:#9bdbb0}
.cba-account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cba-account a,.cba-account button{
  display:inline-flex;align-items:center;min-height:32px;color:#fff;
  text-decoration:underline;white-space:nowrap;font:inherit;font-weight:700;
}
.cba-account button{border:0;background:transparent;min-width:0;padding:0}
.cba-account a:hover,.cba-account button:hover{color:#d7ebff}
.cba-account [hidden],#cba-account-feedback:empty{display:none!important}
.cba-setup-note,#cba-account-feedback{font-size:11px;color:#e1e8ef;font-weight:400}
.cba-stage-badge{
  flex:none;margin:8px clamp(10px,1.7vw,24px) 6px;padding:6px 10px;
  background:#ffe5b2;border-bottom:2px solid #bd811e;color:#533400;
  font-size:13px;line-height:1.35;font-weight:800;text-align:center;text-transform:uppercase;
}
@media(max-width:760px){
  .cba-masthead{grid-template-columns:minmax(0,1fr);gap:7px;padding:8px 10px;min-height:0}
  .cba-masthead::after{height:43px}
  .cba-brand{gap:10px}
  .cba-brand-emblem{width:clamp(80px,23vw,139px)}
  .cba-brand-copy{padding-left:10px}
  .cba-masthead h1{font-size:clamp(18px,5.1vw,30px);margin-bottom:4px}
  .cba-masthead .edition{gap:3px 7px;font-size:11px}
  .cba-masthead .edition strong{font-size:10px;padding:2px 5px}
  .cba-account{justify-self:stretch;justify-content:flex-start;max-width:none;padding:1px 8px;gap:0 10px;font-size:12px}
  .cba-account a,.cba-account button{min-height:44px}
  .cba-mode{font-size:11px;padding:4px 7px;margin:3px 0}
  .cba-account-name{max-width:42vw}
  .cba-stage-badge{margin:4px 8px;padding:4px 8px;font-size:11px}
}
@media(max-height:560px) and (min-width:761px){
  .cba-masthead{min-height:0;padding-top:7px;padding-bottom:8px}
  .cba-brand-emblem{width:clamp(100px,12vw,145px)}
  .cba-masthead h1{font-size:clamp(22px,2.6vw,31px)}
}
