
.hd{background:var(--white)!important;border-bottom:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important;box-shadow:0 5px 24px color-mix(in srgb, var(--ground) 7%, transparent)!important;padding:20px max(32px,calc((100vw - 1280px)/2))!important;gap:32px!important;position:relative!important;z-index:40}
.hd .brand{gap:8px!important}.hd .brand svg{height:38px!important}.hd .brand-d{font-size:14px!important}
.hd .nv ul{gap:8px!important;flex-wrap:nowrap!important}.hd .nv a{padding:12px 15px!important;border:0!important;border-radius:8px!important;min-height:48px!important;font-size:18px!important;font-weight:600!important;text-decoration:none!important;position:relative}
.hd .nv a[aria-current=page]{background:color-mix(in srgb, var(--accent) 14%, var(--white))!important;color:var(--ground)!important;font-weight:800!important}.hd .nv a[aria-current=page]:after{content:'';position:absolute;bottom:4px;left:35%;right:35%;height:2px;background:var(--fill);border-radius:4px}
.hd .bar-end{gap:20px!important}.hd .lg a{font-size:16px!important;min-height:48px!important}.hd .nav-go{min-height:48px!important;padding:10px 28px!important;border-radius:9px!important;background:var(--fill)!important;box-shadow:0 4px 10px color-mix(in srgb, var(--ground) 9%, transparent)!important;font-size:18px!important}
@media(max-width:1279px){.hd{padding:16px 20px!important;gap:16px!important}.hd .brand svg{height:29px!important}.hd .brand-d{font-size:14px!important;max-width:200px}.hd .mb>summary{min-height:48px!important;border-radius:9px!important;padding:10px 12px!important;font-size:16px!important}.hd .bar-nav{padding:16px 20px 24px!important;background:white!important;border-bottom:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important;box-shadow:0 18px 24px color-mix(in srgb, var(--ground) 9%, transparent)!important;gap:20px!important}.hd .nv,.hd .nv ul{width:100%!important}.hd .nv ul{flex-direction:column!important;gap:4px!important}.hd .nv a{display:flex!important;width:100%!important;justify-content:flex-start!important;min-height:56px!important;padding:14px 16px!important}.hd .nv a[aria-current=page]:after{display:none}.hd .bar-end{display:flex!important;width:100%!important;justify-content:space-between!important;padding-top:16px!important;border-top:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important}.hd .nav-go{flex:1;justify-content:center}.hd .lg{order:0!important}.hd .mb[open] ~ .bar-nav{display:flex!important}}

/* Refined proposal: framed header, quiet grouped navigation and pill action. */
@media(min-width:1280px){
.hd{margin:18px 24px 0!important;border:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important;border-radius:20px!important;padding:18px 28px!important;grid-template-columns:auto 1fr auto!important;gap:24px!important;box-shadow:0 8px 32px color-mix(in srgb, var(--ground) 9%, transparent)!important}
.hd .nv{justify-self:center;background:color-mix(in srgb, var(--accent) 14%, var(--white));padding:5px;border:1px solid color-mix(in srgb, var(--accent) 14%, var(--white));border-radius:40px}
.hd .nv a{font-size:17px!important;border-radius:30px!important;padding:10px 16px!important}
.hd .nv a[aria-current=page]{background:white!important;box-shadow:0 2px 7px color-mix(in srgb, var(--ground) 9%, transparent)!important;color:var(--accent-ink)!important}
.hd .nv a[aria-current=page]:after{display:none}
.hd .nav-go{border-radius:30px!important;padding-inline:26px!important;background:var(--fill)!important}
.hd .bar-end{gap:16px!important}.hd .brand-d{font-size:14px!important}.hd .brand svg{height:34px!important}
}
@media(max-width:1279px){
.hd{margin:10px 12px 0!important;border:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important;border-radius:16px!important;padding:13px 16px!important;box-shadow:0 5px 20px color-mix(in srgb, var(--ground) 9%, transparent)!important}
.hd .mb>summary{border-radius:50%!important;width:48px!important;padding:0!important;background:color-mix(in srgb, var(--accent) 14%, var(--white))!important;color:var(--fill)!important;border:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important}
.hd .mb>summary span{position:absolute!important;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.hd .mb[open]>summary{background:var(--fill)!important;color:white!important}
.hd .bar-nav{top:calc(100% + 8px)!important;inset-inline:0!important;border:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important;border-radius:16px!important;padding:12px!important;gap:12px!important}
.hd .nv a{font-size:18px!important;border-radius:10px!important;padding:12px 16px!important;min-height:52px!important}
.hd .nv a:not([aria-current=page]){border-bottom:1px solid color-mix(in srgb, var(--accent) 14%, var(--white))!important}
.hd .bar-end{flex-direction:row!important;gap:12px!important;align-items:center!important;padding:12px 4px 4px!important}
.hd .bar-end .lg{width:auto!important;flex:none!important}.hd .bar-end .nav-go{width:auto!important;min-height:48px!important;border-radius:30px!important;padding:10px 22px!important;margin:0!important}
}

/* Collapse before the longer English labels can crowd the logo. */
@media (min-width:1024px) and (max-width:1279px){
.hd{display:flex!important;justify-content:space-between;flex-wrap:nowrap}
.hd .mb{display:block}.hd .bar-nav{display:none;position:absolute;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 120px);overflow-y:auto}
.hd .mb[open] ~ .bar-nav{display:flex}.hd .nv ul{flex-direction:column}
}
@media(max-width:1279px){.hd .bar-nav{max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}}
/* Keep the first screen useful on short phones without shrinking controls.
   The brand keeps a 44px box: shrinking the mark to 24px left the Hebrew
   lockup 41px tall, three short of the tap-target floor, while the English
   one passed only because its descriptor wraps to two lines. The 48px menu
   button still sets the header's height, so the floor costs no vertical
   space. Caught by check-viewport on pull request 166, 21 October. */
@media(max-width:1279px){
.hd{padding-block:6px!important}.hd .brand{gap:2px!important;min-height:44px!important;justify-content:center!important}.hd .brand svg{height:24px!important}
.hd .brand-d{line-height:1.1!important}
}
@media(max-height:400px) and (max-width:1279px){.hd{padding-block:3px!important;margin-top:6px!important}.hd .brand svg{height:22px!important}}

/* The menu button has to be a button at every width that shows it.
   The breakpoint above brings the hamburger out from 1024px up, but the rules
   that make it look like one live in s.css inside max-width:63.99rem, which
   stops at 1023.84px. So between 1024px and 1279px it fell back to a bare
   details element: display list-item with the browser's own disclosure
   triangle showing, and an svg carrying only a viewBox, which then drew at
   46x35 instead of 19x14. The button measured 48x71 instead of 48x48 and the
   header grew from 62px to 85px, in both languages, at 1024, 1100, 1200 and
   1279px. Raised in review on deb1579; check-viewport sampled 768px and
   1280px and stepped straight over the gap, so those two widths join it. */
@media(min-width:1024px) and (max-width:1279px){
.hd .mb>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:48px!important;list-style:none!important}
.hd .mb>summary::-webkit-details-marker{display:none}
.hd .mb>summary svg{inline-size:19px;block-size:14px;flex:none}
}
