.head{position:relative}
.head nav{align-items:center}
.mega>summary,.menu-toggle{cursor:pointer;color:var(--text);font:inherit;font-weight:700}
.mega>summary{display:flex;align-items:center;gap:.55rem;list-style:none;min-height:44px;font-size:.93rem}
.mega>summary::-webkit-details-marker{display:none}
.mega>summary::after{content:"";width:.43rem;height:.43rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-.25rem}
.mega[open]>summary::after{transform:rotate(225deg);margin-top:.25rem}
.mega>summary:hover,.mega>summary.section-current,.mega-panel a[aria-current]{color:var(--gold)}
.mega-panel{position:absolute;z-index:5;inset:100% 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--gold);padding:1.5rem;border-radius:0 0 .6rem .6rem;box-shadow:0 20px 40px #0007}
.menu-heading{color:var(--gold);font-weight:800;margin-bottom:.35rem}
.mega-panel a{display:flex;align-items:center;min-height:44px;padding:.35rem .55rem;overflow-wrap:anywhere;border-radius:.25rem}
.mega-panel a:hover{background:var(--purple)}
.menu-toggle{display:none;background:var(--surface);border:1px solid #9d8fba;border-radius:.35rem;min-height:44px;padding:.45rem .7rem}
.mega summary:focus-visible,.menu-toggle:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
@media(max-width:820px){
  .head{gap:.65rem}
  .head nav{align-items:stretch}
  .head nav>a{display:flex;align-items:center;min-height:44px}
  .head .mega{width:100%}
  .mega-panel{position:static;grid-template-columns:repeat(2,minmax(0,1fr));padding:1rem;box-shadow:none}
  .menu-toggle:not([hidden]){display:inline-block;margin-left:auto}
  .head nav[hidden]{display:none}
}
@media(max-width:540px){
  .mega-panel{grid-template-columns:1fr;gap:.65rem}
  .head .brand{flex:1 0 100%}
  .menu-toggle:not([hidden]){margin-left:0}
  .hero-image{min-height:0;aspect-ratio:4/3}
  .actions .button{width:100%}
}
@media(min-width:541px){.head .brand{flex-shrink:0}}

