/* The header settles (approved design, sheet 15396641; concept w1-glass-depth sheet 01). At the top of a page it is
   today's bar. Past 120 px (on the home page only once the film has left the screen: no glass over the film) it becomes
   a rounded floating bar, drawn on a layer behind the header's content, so its links and buttons keep their boxes and
   positions (no layout shift). site.js sets .is-settled. The surface is 92% opaque under a 14 px blur, so every header
   text keeps 4.5:1 over anything scrolling beneath; without backdrop-filter, with reduced transparency or with Save-Data
   it is solid. Reduced motion: the end state, no transition. */
:root { --hf-glass: color-mix(in srgb, var(--elevated) 92%, transparent); --hf-blur: blur(14px) saturate(1.2); --hf-edge: rgb(40 24 72 / .10);
  --hf-shadow: 0 0 0 1px rgb(40 24 72 / .07), 0 2px 4px rgb(23 23 28 / .05), 0 18px 44px -8px rgb(40 24 72 / .20); }
:root[data-theme="dark"] { --hf-edge: rgb(165 139 204 / .22); --hf-shadow: 0 0 0 1px rgb(165 139 204 / .3), 0 20px 44px -14px rgb(0 0 0 / .8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hf-edge: rgb(165 139 204 / .22); --hf-shadow: 0 0 0 1px rgb(165 139 204 / .3), 0 20px 44px -14px rgb(0 0 0 / .8); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --hf-glass: var(--elevated); } }
@media (prefers-reduced-transparency: reduce) { :root { --hf-glass: var(--elevated); --hf-blur: none; } }
:root.save-data { --hf-glass: var(--elevated); --hf-blur: none; }

.js .site-header { --hf-y: 8px; --hf-x: 12px; }
.js .site-header::after { content: ""; position: absolute; inset: 0 0 -1px; z-index: -2; background: var(--header-bg); border-bottom: 1px solid var(--line); pointer-events: none; transition: opacity 220ms var(--ease-out); }
.js .site-header::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: calc(env(safe-area-inset-top, 0px) + var(--hf-y)); bottom: calc(var(--hf-y) - 1px); left: max(var(--hf-x), 50% - 708px); right: max(var(--hf-x), 50% - 708px);
  border: 1px solid var(--hf-edge); border-radius: 22px; background: var(--hf-glass); -webkit-backdrop-filter: var(--hf-blur); backdrop-filter: var(--hf-blur); box-shadow: var(--hf-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms; }
.js .site-header.is-settled { background: transparent; border-bottom-color: transparent; }
.js .site-header.is-settled::after { opacity: 0; }
.js .site-header.is-settled::before { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .site-header.is-settled .brand__logo { mix-blend-mode: normal; }   /* a blend mode over a backdrop-filter layer paints a box in Chromium */
.js .home .site-header:not(.is-solid)::after { opacity: 0; }   /* over the film: no bar at all, as today */
@media (max-width: 899px) {   /* phones: attached flush to the top edge, only its two free corners rounded */
  .js .site-header { --hf-y: 0px; --hf-x: 0px; }
  .js .site-header::before { top: 0; border-width: 0 0 1px; border-radius: 0 0 18px 18px; }
}
@media (max-height: 440px) { .js .site-header::before { display: none; } .js .site-header.is-settled::after { opacity: 1; } }   /* the header is static there (site.css) */
@media (prefers-reduced-motion: reduce) { .js .site-header::before, .js .site-header::after { transition: none; transform: none; } }
