/* The site header, one for every page (unchanged, Varaq, the blog): an announcement strip, then the
   logo, Products and Resources as full-width panels, plain links, and the actions on the right.
   Filled in by /assets/header.js. Night colours by default; day colours under html[data-theme="light"]
   or data-ink="dark" (set by pages whose header sits on a light band). */
.uh{--uh-fg:#F2EFEE;--uh-mute:rgba(242,239,238,.62);--uh-line:rgba(255,240,232,.13);--uh-panel:#0C0A09;--uh-solid:rgba(8,6,5,.94);--uh-pill:#F2EFEE;--uh-pill-ink:#14100D;--uh-hover:rgba(255,240,232,.06);
  --uh-strip-h:36px;--uh-nav-h:62px;--uh-gut:clamp(16px,4.2vw,64px);
  position:fixed;inset:0 0 auto;z-index:60;color:var(--uh-fg);font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14.5px;line-height:1.2;letter-spacing:-.005em;-webkit-font-smoothing:antialiased}
html[data-theme="light"] .uh,.uh[data-ink="dark"]{--uh-fg:#1A1814;--uh-mute:rgba(26,24,20,.6);--uh-line:rgba(26,24,20,.12);--uh-panel:#FFFFFF;--uh-solid:rgba(255,255,255,.95);--uh-pill:#1A1814;--uh-pill-ink:#FBF8F4;--uh-hover:rgba(26,24,20,.05)}
.uh *{box-sizing:border-box}
:where(.uh) a{color:inherit;text-decoration:none}
:where(.uh) button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
.uh :focus-visible{outline:1.5px solid currentColor;outline-offset:3px;border-radius:6px}

/* strip: the brand's maroon on light pages; on dark pages a quiet neutral bar, so black is not cut by red */
.uh{--uh-strip-bg:#100E0D;--uh-strip-fg:rgba(242,239,238,.86);--uh-strip-line:rgba(255,240,232,.09);--uh-new-bg:linear-gradient(90deg,#FFBA08,#F48C06);--uh-new-fg:#1A0A04}
html[data-theme="light"] .uh,.uh[data-ink="dark"]{--uh-strip-bg:linear-gradient(90deg,#370617 0%,#6A040F 38%,#9D0208 72%,#B8250A 100%);--uh-strip-fg:#FFF4EA;--uh-strip-line:transparent;--uh-new-bg:#FFF4EA;--uh-new-fg:#370617}
.uh-strip{height:var(--uh-strip-h);display:flex;align-items:center;gap:14px;padding:0 var(--uh-gut);background:var(--uh-strip-bg);color:var(--uh-strip-fg);box-shadow:inset 0 -1px 0 var(--uh-strip-line);font-size:13.5px;white-space:nowrap;overflow:hidden}
.uh-new{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:10.5px;font-weight:500;letter-spacing:.08em;color:var(--uh-new-fg);background:var(--uh-new-bg);border-radius:4px;padding:3px 6px 2px}
.uh-strip-t{overflow:hidden;text-overflow:ellipsis}
.uh-strip-a{display:inline-flex;align-items:center;gap:6px;color:var(--uh-strip-fg);opacity:.92;transition:opacity .2s}
.uh-strip-a:hover{opacity:1}
.uh-strip-a svg{width:10px;height:10px}

/* the bar */
.uh-bar{height:var(--uh-nav-h);display:flex;align-items:center;gap:30px;padding:0 var(--uh-gut);transition:background .3s,box-shadow .3s}
.uh.solid .uh-bar,.uh.open .uh-bar{background:var(--uh-solid);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 1px 0 var(--uh-line)}
.uh-logo{display:inline-flex;align-items:center;gap:9px;flex:none}
.uh-logo svg{width:24px;height:24px;display:block;overflow:visible}
.uh-word{font-weight:500;font-size:19px;letter-spacing:-.035em;line-height:1}
.uh-sub{display:inline-flex;align-items:center;gap:9px;margin-left:-14px;flex:none;font-weight:500;font-size:16px;letter-spacing:-.02em}
.uh-sub::before{content:"/";color:var(--uh-mute);font-weight:400}
.uh-sub i{font-style:normal;font-family:"Noto Naskh Arabic",serif;font-size:15px;color:var(--uh-mute)}
.uh-menus{display:flex;align-items:center;gap:26px}
.uh-item{display:inline-flex;align-items:center;gap:6px;color:var(--uh-mute);transition:color .2s;padding:8px 0}
.uh-item:hover,.uh-item[aria-expanded="true"],.uh-item[aria-current="page"]{color:var(--uh-fg)}
.uh-item svg{width:9px;height:9px;transition:transform .25s}
.uh-item[aria-expanded="true"] svg{transform:rotate(180deg)}
.uh-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.uh-pill{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 15px;border-radius:999px;border:1.2px solid var(--uh-fg);font-size:14px;font-weight:500;white-space:nowrap;transition:background .2s,color .2s,opacity .2s}
.uh-pill:hover{background:var(--uh-hover)}
.uh-pill svg{width:15px;height:15px}
.uh-pill.fill{background:var(--uh-pill);color:var(--uh-pill-ink);border-color:var(--uh-pill)}
.uh-pill.fill:hover{opacity:.88;background:var(--uh-pill)}
.uh-theme{width:34px;height:34px;display:grid;place-items:center;border-radius:999px;color:var(--uh-mute);transition:color .2s,background .2s}
.uh-theme:hover{color:var(--uh-fg);background:var(--uh-hover)}
.uh-theme svg{width:16px;height:16px}
.uh-theme .i-moon{display:none}
html[data-theme="light"] .uh-theme .i-sun{display:none}
html[data-theme="light"] .uh-theme .i-moon{display:block}
.uh-burger{display:none;width:38px;height:38px;place-items:center;border-radius:10px}
.uh-burger span{display:block;width:18px;height:1.5px;background:currentColor;position:relative;transition:transform .25s,background .25s}
.uh-burger span::before,.uh-burger span::after{content:"";position:absolute;left:0;width:18px;height:1.5px;background:currentColor;transition:transform .25s}
.uh-burger span::before{top:-6px}.uh-burger span::after{top:6px}
.uh.open .uh-burger span{background:transparent}
.uh.open .uh-burger span::before{transform:translateY(6px) rotate(45deg)}
.uh.open .uh-burger span::after{transform:translateY(-6px) rotate(-45deg)}

/* the full-width panels */
.uh-panel{position:absolute;left:0;right:0;top:100%;background:var(--uh-panel);box-shadow:0 1px 0 var(--uh-line),0 30px 60px -20px rgba(0,0,0,.35);padding:30px var(--uh-gut) 0;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .2s,visibility 0s .2s}
.uh-panel.on{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
.uh-cols{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,240px));gap:28px 56px;padding-left:var(--uh-indent,0px)}
.uh-col h3{font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:500;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--uh-mute);margin:0 0 16px}
.uh-col ul{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.uh-col a{display:block;font-size:15.5px;line-height:1.25}
.uh-col a small{display:block;margin-top:4px;font-size:12.5px;line-height:1.35;color:var(--uh-mute)}
.uh-col a:hover{color:var(--uh-fg)}
.uh-col a:hover b{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.uh-col b{font-weight:500}
.uh-tag{display:inline-block;margin-left:8px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--uh-mute);border:1px solid var(--uh-line);border-radius:4px;padding:2px 5px 1px;vertical-align:2px;font-weight:400}
.uh-foot{margin-top:28px;border-top:1px solid var(--uh-line);display:flex;gap:56px;padding:18px 0 22px var(--uh-indent,0px)}
.uh-foot a{font-size:15px}
.uh-foot a small{display:block;margin-top:4px;font-size:12.5px;color:var(--uh-mute)}

/* phone: one menu button, everything in a full-screen sheet */
.uh-sheet{display:none}
@media (max-width:920px){
  .uh{--uh-nav-h:56px}
  .uh-menus,.uh-right .uh-pill,.uh-panel{display:none}
  .uh-burger{display:grid}
  .uh-right{gap:4px}
  .uh-sheet{display:block;position:fixed;left:0;right:0;top:calc(var(--uh-strip-h) + var(--uh-nav-h));bottom:0;background:var(--uh-panel);overflow-y:auto;padding:8px var(--uh-gut) calc(28px + env(safe-area-inset-bottom,0px));opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s}
  .uh.open .uh-sheet{opacity:1;visibility:visible;transition:opacity .2s}
  .uh-sheet details{border-bottom:1px solid var(--uh-line)}
  .uh-sheet summary{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:56px;font-size:18px;font-weight:500;cursor:pointer}
  .uh-sheet summary::-webkit-details-marker{display:none}
  .uh-sheet summary svg{width:11px;height:11px;transition:transform .25s}
  .uh-sheet details[open] summary svg{transform:rotate(180deg)}
  .uh-sheet .uh-col{padding:4px 0 20px}
  .uh-sheet .uh-col h3{margin:12px 0 12px}
  .uh-sheet .uh-col ul{gap:4px}
  .uh-sheet .uh-col a{padding:9px 0;min-height:44px}
  .uh-sheet > a{display:flex;align-items:center;min-height:56px;font-size:18px;font-weight:500;border-bottom:1px solid var(--uh-line)}
  .uh-sheet-act{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
  .uh-sheet-act .uh-pill{display:inline-flex;height:44px;padding:0 20px;font-size:15px}
  .uh-sub{font-size:15px}
  .uh-word{font-size:18px}
}
@media (max-width:520px){
  .uh{--uh-strip-h:34px}
  .uh-strip{font-size:12.5px;gap:10px}
  .uh-strip-long{display:none}
  .uh-sub i{display:none}
}
@media (min-width:521px){.uh-strip-short{display:none}}
@media (prefers-reduced-motion:reduce){.uh *{transition:none!important}}
