/* The one header of every page, the home page included (D-73): its markup is siteHeader() in src/pages/layout.ts. */
/* the header, in one order. On a narrow screen they are a menu (a popover: no script, Escape closes it) */
.top{display:flex;align-items:center;gap:24px;padding:14px var(--pad) 0;color:var(--night)}
.brand{display:inline-flex;align-items:center;min-height:46px;margin-right:auto}
.menu{display:flex;align-items:center;gap:clamp(16px,2vw,28px);position:static;inset:auto;width:auto;height:auto;margin:0;padding:0;border:0;background:none;color:inherit;overflow:visible}
.menu .link,.agent span{display:inline-flex;align-items:center;min-height:44px;font-size:16px;line-height:1.25;white-space:nowrap}
.menu .link{text-decoration:none}.menu .link:hover{text-decoration:underline}
/* the mark hangs under its item, out of the row, so all five stay on one line */
.agent{position:relative}
.agent span{color:#4c5b66}
.agent small{position:absolute;left:0;top:calc(100% - 8px);padding:0 6px;border-radius:3px;background:var(--accent);color:var(--night);font-size:11.5px;font-weight:700;line-height:1.5;white-space:nowrap}
.menu .pill{min-height:44px;padding:8px 18px;white-space:nowrap}
.pill.outline{border-color:var(--night);color:var(--night)}.pill.outline:hover{background:var(--night);color:#fff}
.menu li:last-child{margin-left:calc(12px - clamp(16px,2vw,28px))}
/* Sign In and Sign Out are one box in one place (D-73) */
.menu form{margin:0}
.menu .sign .pill{min-width:108px;justify-content:center}
.menu .sign .pill:not(:hover){background:#fff}
.menu button.pill{width:100%;font:700 15px/1.25 Barlow,system-ui,sans-serif;cursor:pointer}
.menu .link[aria-current="page"]{font-weight:700;box-shadow:inset 0 -3px 0 var(--accent)}
.menu-btn{display:none}
/* a phone keeps Get AskLog MCP in the bar, beside the menu button: this copy shows there, and the menu's own is hidden */
.top .bar-cta{display:none}
/* the yellow ring cannot be seen on white */
.top :focus-visible{outline-color:var(--night)}
@media (max-width:939px){
  .menu-btn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border:1.5px solid var(--night);border-radius:6px;background:#fff;color:var(--night);font:700 15px/1.25 Barlow,system-ui,sans-serif;cursor:pointer}
  .top{gap:8px}
  .top .bar-cta{display:inline-flex;min-height:44px;padding:6px 12px;font-size:14px;white-space:nowrap}
  .menu .in-bar{display:none}
  .menu-btn::before{content:"";width:18px;height:12px;border-block:2px solid;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat}
  .menu:not(:popover-open){display:none}
  .menu:popover-open{position:fixed;top:66px;right:var(--pad);left:auto;bottom:auto;flex-direction:column;align-items:stretch;gap:4px;width:min(300px,calc(100vw - 2 * var(--pad)));max-height:calc(100vh - 80px);overflow:auto;padding:12px 16px 16px;border:1.5px solid var(--night);border-radius:6px;background:#fff;color:var(--night);box-shadow:0 12px 28px rgb(13 21 27/.28)}
  .menu .link,.agent span{display:flex;min-height:48px}
  /* in the menu the mark sits in the item's own row, under its words */
  .agent{padding-bottom:8px}
  .agent span{min-height:36px}
  .agent small{position:static;display:inline-block}
  .menu .pill{display:flex;margin-top:6px}
  .menu li:last-child{margin-left:0}
}
/* narrow phones: the menu button is its three lines alone (its name stays for a screen reader), and the narrowest get a smaller logo */
@media (max-width:479px){
  .menu-btn{width:44px;justify-content:center;gap:0;padding:0}
  .menu-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media (max-width:359px){
  .top{padding-inline:14px}
  .top .brand img{height:26px;width:auto}
}
.brand img{display:block}
/* the name popup (D-73, src/pages/name.ts) and the quiet buttons that go with it */
.name-ask{box-sizing:border-box;width:min(460px,calc(100vw - 32px));padding:28px clamp(20px,5vw,32px) 20px;border:0;border-radius:8px;background:#fff;color:var(--night);box-shadow:0 24px 60px rgb(13 21 27/.45)}
.name-ask::backdrop{background:rgb(13 21 27/.78)}
.name-ask form{margin:0}
.name-ask h2{margin:0 0 18px;font:800 40px/1.05 "Barlow Condensed",Barlow,sans-serif;text-transform:uppercase}
.name-ask label{display:block;margin-bottom:6px;font-size:15px;font-weight:700}
.name-ask input{box-sizing:border-box;width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--night);border-radius:6px;background:#fff;color:var(--night);font:400 18px/1.4 Barlow,system-ui,sans-serif}
.name-ask :focus-visible{outline:3px solid var(--night);outline-offset:2px}
.name-ask p.failed{margin:10px 0 0;color:#a4260f;font-size:15px;font-weight:700}
.name-ask [hidden]{display:none}
.name-ask .btns{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:18px}
.name-ask .btns .pill{flex:1 1 auto;min-height:48px;cursor:pointer;font-family:Barlow,system-ui,sans-serif}
.quiet{min-height:44px;padding:0 4px;border:0;background:none;color:inherit;font:700 15px/1.3 Barlow,system-ui,sans-serif;text-decoration:underline;cursor:pointer}
.quiet[hidden]{display:none}
