/* v48 — global AdvanceCWLS 4.0 institutional page footer. */
:root{
  --cwls4-night:#16130d;
  --cwls4-night-2:#241b0d;
  --cwls4-gold:#c8942d;
  --cwls4-gold-soft:#efd89c;
  --cwls4-ivory:#fffaf0;
  --cwls4-muted:#cbbfa8;
}

.cwls4Footer{
  position:relative;
  isolation:isolate;
  width:100%;
  margin:clamp(34px,4.5vw,64px) 0 0;
  color:var(--cwls4-ivory);
  background:
    radial-gradient(circle at 86% 18%,rgba(200,148,45,.18),transparent 27%),
    linear-gradient(132deg,var(--cwls4-night) 0%,#1c170e 48%,var(--cwls4-night-2) 100%);
  border:1px solid rgba(220,177,83,.32);
  border-radius:28px 28px 12px 12px;
  box-shadow:0 22px 54px rgba(40,27,6,.14);
  overflow:hidden;
  font-family:inherit;
}
.cwls4Footer::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(90deg,black,transparent 72%);
}

.cwls4FooterContext{
  display:grid;
  grid-template-columns:auto max-content minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
  padding:13px clamp(20px,3vw,38px);
  color:#f7e7b8;
  background:linear-gradient(90deg,rgba(200,148,45,.18),rgba(200,148,45,.06));
  border-bottom:1px solid rgba(220,177,83,.22);
  font-size:.78rem;
  letter-spacing:.01em;
}
.cwls4FooterContextDot{width:8px;height:8px;border-radius:50%;background:var(--cwls4-gold);box-shadow:0 0 0 6px rgba(200,148,45,.12)}
.cwls4FooterContext span{white-space:nowrap}
.cwls4FooterContext b{font-weight:850;letter-spacing:.08em}
.cwls4FooterContext small{min-width:0;color:var(--cwls4-muted);font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.cwls4FooterBody{
  display:grid;
  grid-template-columns:minmax(250px,1.45fr) repeat(3,minmax(130px,.72fr));
  gap:clamp(24px,3.4vw,54px);
  align-items:start;
  padding:clamp(28px,4vw,52px) clamp(22px,4vw,54px) clamp(24px,3vw,42px);
}
.cwls4FooterBrand{min-width:0;max-width:380px}
.cwls4FooterIdentity{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:16px}
.cwls4FooterMark{
  display:grid;place-items:center;flex:0 0 84px;width:84px;height:84px;
  background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;
}
.cwls4FooterMark img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent;filter:drop-shadow(0 7px 15px rgba(0,0,0,.26))}
.cwls4FooterIdentity div{display:grid;gap:3px;min-width:0}
.cwls4FooterIdentity strong{color:var(--cwls4-gold);font-size:clamp(1rem,1.28vw,1.22rem);line-height:1.15;letter-spacing:.015em;font-weight:850}
.cwls4FooterIdentity span{color:#f0dfb2;font-size:.75rem;line-height:1.35}
.cwls4FooterBrand p{max-width:350px;margin:0 0 12px;color:#d5c9b3;font-size:.84rem;line-height:1.62}
.cwls4FooterBrand>small{display:block;color:#a99c85;font-size:.68rem;line-height:1.5;text-transform:uppercase;letter-spacing:.09em}

.cwls4FooterNav{display:grid;align-content:start;gap:9px;min-width:0}
.cwls4FooterNavTitle{margin-bottom:7px;color:#e9cd86;font-size:.67rem;line-height:1.2;text-transform:uppercase;letter-spacing:.17em}
.cwls4FooterNav button,.cwls4FooterMeta button,.cwls4FooterMeta a{
  appearance:none;border:0;background:none;padding:0;text-align:left;font:inherit;color:#cfc4b0;cursor:pointer;
  transition:color .2s ease,transform .2s ease;
}
.cwls4FooterNav button{width:max-content;max-width:100%;font-size:.78rem;line-height:1.45}
.cwls4FooterNav button:hover,.cwls4FooterNav button:focus-visible,.cwls4FooterMeta button:hover,.cwls4FooterMeta button:focus-visible,.cwls4FooterMeta a:hover,.cwls4FooterMeta a:focus-visible{color:#fff1c8;transform:translateX(2px);outline:none}
.cwls4FooterNav button:focus-visible,.cwls4FooterMeta button:focus-visible,.cwls4FooterMeta a:focus-visible{box-shadow:0 2px 0 var(--cwls4-gold)}

.cwls4FooterLower{
  display:grid;
  grid-template-columns:minmax(0,1.28fr) minmax(290px,.82fr);
  gap:clamp(22px,3.5vw,50px);
  align-items:center;
  margin:0 clamp(22px,4vw,54px);
  padding:20px 0 24px;
  border-top:1px solid rgba(227,201,145,.18);
}
.cwls4FooterNote{display:grid;grid-template-columns:32px minmax(0,1fr);gap:13px;align-items:start;min-width:0;padding:15px 17px;border:1px solid rgba(216,181,109,.25);border-radius:15px;background:rgba(255,250,240,.045)}
.cwls4FooterShield{display:grid;place-items:center;width:32px;height:32px;color:#ddad47}
.cwls4FooterShield svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cwls4FooterNote p{margin:0;color:#bfb49f;font-size:.7rem;line-height:1.62}
.cwls4FooterNote b{color:#f1e5cc;font-weight:800}
.cwls4FooterMeta{display:grid;gap:7px;min-width:0;color:#938875;font-size:.66rem;line-height:1.45}
.cwls4FooterMeta p{margin:0}
.cwls4FooterMeta>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cwls4FooterMeta button,.cwls4FooterMeta a{font-size:inherit;color:#a99d87;text-decoration:none;transition:color .2s ease,transform .2s ease}

@media(max-width:1080px){
  .cwls4FooterBody{grid-template-columns:minmax(230px,1.35fr) repeat(3,minmax(110px,.7fr));gap:24px}
  .cwls4FooterLower{grid-template-columns:1fr}
}
@media(max-width:820px){
  .cwls4Footer{border-radius:22px 22px 10px 10px}
  .cwls4FooterBody{grid-template-columns:1fr 1fr 1fr}
  .cwls4FooterBrand{grid-column:1/-1;max-width:none}
  .cwls4FooterBrand p{max-width:580px}
}
@media(max-width:580px){
  .cwls4Footer{margin-top:28px}
  .cwls4FooterContext{grid-template-columns:auto minmax(0,1fr);padding:12px 17px}
  .cwls4FooterContext small{grid-column:1/-1;padding-left:18px;white-space:normal;overflow:visible}
  .cwls4FooterBody{grid-template-columns:1fr 1fr;gap:26px 18px;padding:25px 19px}
  .cwls4FooterBrand{grid-column:1/-1}
  .cwls4FooterMark{flex-basis:68px;width:68px;height:68px}
  .cwls4FooterNav:last-child{grid-column:1/-1;grid-template-columns:1fr 1fr}
  .cwls4FooterNav:last-child .cwls4FooterNavTitle{grid-column:1/-1}
  .cwls4FooterLower{margin:0 19px;padding-bottom:88px}
  .cwls4FooterNote{grid-template-columns:1fr;padding:14px}
  .cwls4FooterShield{width:26px;height:26px}
}

@media(prefers-reduced-motion:reduce){
  .cwls4FooterNav button,.cwls4FooterMeta button{transition:none}
}
