/* UMAA_PUBLIC_DESKTOP_R1 (live): desktop polish layer for the public UMAA site.
   Applies at 1024px and wider only, so phones and small tablets keep today's look.
   Colors: UMAA red #c8102e / deep red #8e0f15, black #07080a, gold #d6b35d / #e2c26d. */
@media (min-width:1024px){
:root{--upd-red:#c8102e;--upd-red2:#8e0f15;--upd-black:#07080a;--upd-panel:#101216;--upd-line:rgba(214,179,93,.28);--upd-gold:#e2c26d;--upd-gold2:#d6b35d;--upd-text:#eef0f3;--upd-muted:#b7bdc6;--upd-max:1200px;
  --upd-font:"Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;--upd-head:"Inter","Segoe UI",system-ui,-apple-system,Arial,sans-serif}
html.upd-on,html.upd-on body{background:var(--upd-black)!important;color:var(--upd-text);font-family:var(--upd-font)!important;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
html.upd-on,html.upd-on body{height:auto!important;min-height:0!important;overflow-y:visible!important;position:static!important}
html.upd-on body{padding:0!important;margin:0!important;overflow-x:hidden}
html.upd-on h1,html.upd-on h2,html.upd-on h3{font-family:var(--upd-head)!important;letter-spacing:-.01em}
/* ---------- header ---------- */
html.upd-on #umaa-m-shell,html.upd-on .w > nav.top{display:none!important}
.upd-header{position:sticky;top:0;z-index:1000;background:rgba(7,8,10,.92);backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--upd-line);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.upd-bar{max-width:1320px;margin:0 auto;padding:0 28px;height:76px;display:flex;align-items:center;gap:18px;box-sizing:border-box}
.upd-brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:0 0 auto}
.upd-brand img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(200,16,46,.35))}
.upd-brand b{display:block;color:#fff;font-weight:900;font-size:21px;letter-spacing:.08em;line-height:1}
.upd-brand small{display:block;color:var(--upd-gold);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;margin-top:3px}
.upd-nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.upd-nav > a,.upd-dd > button{appearance:none;background:none;border:0;color:#e6e8ec;font:600 14.5px/1 var(--upd-font);padding:11px 10px;border-radius:10px;text-decoration:none;cursor:pointer;white-space:nowrap}
.upd-nav > a:hover,.upd-dd:hover > button,.upd-dd:focus-within > button{color:#fff;background:rgba(255,255,255,.06)}
.upd-nav > a[aria-current=page],.upd-dd.upd-cur > button{color:var(--upd-gold)}
.upd-dd{position:relative}
.upd-dd > button::after{content:"";display:inline-block;width:6px;height:6px;margin-left:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);opacity:.7}
.upd-menu{position:absolute;top:calc(100% + 6px);left:-8px;min-width:240px;background:#0d0f13;border:1px solid var(--upd-line);border-radius:14px;padding:8px;box-shadow:0 18px 40px rgba(0,0,0,.55);display:none!important}
.upd-dd:hover .upd-menu,.upd-dd:focus-within .upd-menu,.upd-dd.upd-open .upd-menu{display:block!important}
.upd-menu a{display:block;padding:10px 12px;border-radius:9px;color:#e6e8ec;text-decoration:none;font-size:14.5px;font-weight:600}
.upd-menu a:hover{background:rgba(200,16,46,.16);color:#fff}
.upd-cta{display:flex;gap:10px;flex:0 0 auto}
.upd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:999px;font:800 14px/1 var(--upd-font);text-decoration:none;letter-spacing:.02em;white-space:nowrap}
.upd-btn.red{background:linear-gradient(145deg,#d61f26,var(--upd-red2));color:#fff;box-shadow:0 6px 18px rgba(200,16,46,.35)}
.upd-btn.ghost{border:1px solid rgba(214,179,93,.6);color:var(--upd-gold)}
.upd-btn:hover{filter:brightness(1.08)}
/* ---------- page container + common blocks ---------- */
html.upd-on main,html.upd-on .w{max-width:var(--upd-max)!important;margin:0 auto!important;padding:40px 32px 56px!important;box-sizing:border-box;width:100%!important}
html.upd-on main.umaa-home{max-width:none!important;padding:0!important}
html.upd-on main{overflow-x:clip}
html.upd-on #main[data-a54]{max-width:var(--upd-max)!important;margin:0 auto!important;padding:32px 32px 0!important}
html.upd-on .subpage-hero,html.upd-on .a54-head,html.upd-on .w > .hero{text-align:left;padding:56px 48px!important;margin:0 0 28px!important;border-radius:24px;border:1px solid var(--upd-line);background:radial-gradient(70% 140% at 85% 0%,rgba(200,16,46,.30),transparent 65%),linear-gradient(180deg,#121419,#0b0c10)!important;box-shadow:0 20px 50px rgba(0,0,0,.35)}
html.upd-on .w > .hero{display:grid;grid-template-columns:150px 1fr;column-gap:36px;align-items:center}
html.upd-on .w > .hero img{grid-row:1/span 4;width:150px!important;height:150px!important}
html.upd-on .w > .hero h1{text-align:left;margin:0}
html.upd-on .w > .hero p{margin-left:0!important;text-align:left;max-width:720px}
html.upd-on .subpage-kicker,html.upd-on .kicker{color:var(--upd-gold)!important;font-weight:800;letter-spacing:.18em;font-size:12.5px!important;text-transform:uppercase}
html.upd-on .subpage-hero h1,html.upd-on .a54-title,html.upd-on .w > .hero h1,html.upd-on main h1{font-size:clamp(40px,3.6vw,56px)!important;line-height:1.05!important;font-weight:900!important;color:#fff!important;text-transform:none!important}
html.upd-on main h2{font-size:28px!important;line-height:1.2!important;font-weight:850;color:#fff}
html.upd-on main p,html.upd-on .w p{max-width:78ch}
html.upd-on .clean-sections > section,html.upd-on .card,html.upd-on .a54-benefits > *{background:var(--upd-panel)!important;border:1px solid var(--upd-line)!important;border-left:3px solid var(--upd-red)!important;border-radius:18px!important;padding:28px 32px!important;margin:0!important;box-shadow:0 10px 26px rgba(0,0,0,.25)}
html.upd-on .clean-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
html.upd-on .clean-sections > section h2{font-size:22px!important;color:var(--upd-gold)!important;margin:0 0 10px!important;text-transform:none!important}
html.upd-on .card{margin:0 0 20px!important}
html.upd-on .grid{gap:20px!important;margin:24px 0!important}
html.upd-on .grid .t{border-radius:18px;padding:24px}
/* ---------- home hero ---------- */
html.upd-on main.umaa-home,html.upd-on .traditional-hero{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html.upd-on .traditional-hero{display:flex!important;align-items:center;justify-content:center;padding:64px 0 72px!important}
html.upd-on .hero-centerpiece{transform:none!important}
/* ---------- explore cards (home) ---------- */
.upd-explore{max-width:var(--upd-max);margin:0 auto;padding:64px 32px 24px}
.upd-explore h2{font-size:30px;font-weight:900;color:#fff;margin:0 0 6px}.upd-explore > p{color:var(--upd-muted);margin:0 0 26px}
.upd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.upd-card{display:block;text-decoration:none;color:var(--upd-text);background:linear-gradient(155deg,#1a0b0e,#0f1014 60%);border:1px solid var(--upd-line);border-radius:20px;padding:26px 26px 22px;transition:.15s ease;min-height:150px}
.upd-card:hover{transform:translateY(-3px);border-color:rgba(214,179,93,.6);box-shadow:0 16px 36px rgba(0,0,0,.45)}
.upd-card span{display:block;color:var(--upd-gold);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.upd-card b{display:block;font-size:22px;font-weight:900;margin:8px 0 6px;color:#fff}
.upd-card p{margin:0;color:var(--upd-muted);font-size:15.5px}
.upd-join{max-width:var(--upd-max);margin:24px auto 0;padding:0 32px}
.upd-join > div{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 36px;border-radius:22px;background:radial-gradient(80% 160% at 0% 0%,rgba(200,16,46,.45),transparent 60%),#121318;border:1px solid rgba(200,16,46,.5)}
.upd-join b{font-size:24px;color:#fff;font-weight:900}.upd-join p{margin:4px 0 0;color:var(--upd-muted)}
/* ---------- footer ---------- */
html.upd-on #umaa-m-footer,html.upd-on body > footer:not(.upd-footer){display:none!important}
.upd-footer{margin-top:64px;background:#050608;border-top:1px solid var(--upd-line);color:var(--upd-muted);font-size:14.5px}
.upd-fwrap{max-width:var(--upd-max);margin:0 auto;padding:48px 32px 28px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px}
.upd-fwrap h4{margin:0 0 12px;color:var(--upd-gold);font-size:12.5px;letter-spacing:.16em;text-transform:uppercase}
.upd-fwrap a{display:block;color:#d5d8de;text-decoration:none;padding:4px 0}.upd-fwrap a:hover{color:#fff}
.upd-fbrand img{width:64px;height:64px;object-fit:contain}.upd-fbrand b{display:block;color:#fff;font-size:16px;margin:10px 0 6px;letter-spacing:.04em}
.upd-fbot{max-width:var(--upd-max);margin:0 auto;padding:16px 32px 28px;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#8b919b}
.upd-fbot a{color:#8b919b;text-decoration:none}.upd-fbot a:hover{color:var(--upd-gold)}
.upd-soft{opacity:.75}
@media (max-width:1199px){.upd-btn.ghost{display:none}.upd-nav > a,.upd-dd > button{font-size:14px;padding:10px 8px}}
}

/* undo the one-viewport home lock and history fixed mode on desktop */
@media (min-width:1024px){
html.upd-on.umaa-s-home-locked,html.upd-on.umaa-s-home-locked body,html.upd-on body.umaa-s-home-fit,html.upd-on.umaa-m-history-mode,html.upd-on.umaa-m-history-mode body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-top:0!important}
html.upd-on body.umaa-s-home-fit main,html.upd-on body.umaa-m-history-mode main{height:auto!important;max-height:none!important;overflow:visible!important}
html.upd-on body.umaa-s-home-fit .traditional-hero,html.upd-on body.umaa-s-home-fit main > section:first-child{height:auto!important;max-height:none!important;min-height:0!important;padding:64px 0 72px!important;overflow:visible!important}
html.upd-on body.umaa-s-home-fit .traditional-hero img{max-height:260px!important}
html.upd-on .menu-toggle,html.upd-on #umaa-m-shell + *:empty{display:none!important}
}
@media (min-width:1024px) and (max-width:1366px){
html.upd-on .upd-brand small{display:none!important}
html.upd-on .upd-nav > a,html.upd-on .upd-nav .upd-dd > button,html.upd-on .upd-nav .upd-dd > a{padding:8px 9px!important;font-size:14.5px!important}
html.upd-on .upd-bar{gap:12px!important;padding:0 22px!important}
}
@media (min-width:1024px){html.upd-on .upd-footer,html.upd-on .upd-footer *{text-align:left!important}html.upd-on .upd-footer .upd-fbot > :last-child{text-align:right!important}}
/* if the window is narrowed after load, fall back to the normal (mobile) look */
@media (max-width:1023.98px){.upd-header,.upd-footer,.upd-explore,.upd-join{display:none!important}}

@media (min-width:1024px){
/* sections that hold their own card grids use the full width instead of half */
html.upd-on .clean-sections:has(> section [class*="grid"]) > section{grid-column:1/-1!important}
/* History research workspace: the page scrolls to the article on tab clicks, so the header does not stick there */
html.upd-on body:has(.a19-history-main) .upd-header{position:relative!important}
}
