/* stoareads.com's header, base rules (SPEC-ONE-HEADER §1): the header site-header.mjs draws. menu.css has its
   dropdowns, phone menu, Your clubs and search field. Spliced into reading-room.css and shell.css; the app copies it.
   Reads --bg, --ink, --rule, --maxw and --gut (.com's values: reports/sprint-5/ONE-HEADER-INTERFACE.md). */
.hd{border-bottom:1px solid var(--rule);background:var(--bg)}
.hd-in{max-width:var(--maxw);margin:0 auto;padding:0 var(--gut);height:64px;display:flex;align-items:center;gap:28px}
.logo{display:inline-flex;align-items:center;text-decoration:none;padding:11px 0}
.logo .wm{display:block;flex:none}
.hd-nav a{display:inline-block;font-weight:600;font-size:15px;text-decoration:none;padding:21px 0 19px;border-bottom:2px solid transparent}
.hd-nav a[aria-current]{border-color:var(--ink)}
.hd-nav a+a{margin-left:28px}
.hd-q{flex:1;min-width:0;max-width:440px;margin:0 0 0 auto}/* the box is the shared search field (menu.css .sf); min-width 0 lets it give way to the links */
.hd-a{font-weight:600;font-size:15px;text-decoration:none;padding:12px 0;white-space:nowrap;background:none;border:0;color:inherit;cursor:pointer;font-family:inherit;line-height:inherit;min-height:44px;display:inline-flex;align-items:center}
.hd-join{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:15px;text-decoration:none;border:1.5px solid var(--ink);border-radius:var(--r-control,8px);padding:0 14px;white-space:nowrap}
.hd-s{display:none}
[data-signed-in] [data-signed-out-only],:root:not([data-signed-in]) [data-signed-in-only],:root:not([data-one]) [data-one-only]{display:none !important}
@media (min-width:900px){
  .hd-noq .hd-q{display:none}
  .hd-noq .hd-nav{margin-right:auto}
}
@media (max-width:899px){
  .hd-nav,.hd .hd-q,.hd-join{display:none}
  .hd-s{display:flex;flex:none;width:44px;height:44px;align-items:center;justify-content:center}
  .hd-in{gap:0}
  .hd-a{padding:12px 6px}
}
/* Narrower than any phone we gate on (Vera B's 260 rig): the header needs about 293 px, so its Sign in (or My Shelf)
   link goes; the menu has the same link, and search keeps its icon. Nothing runs off the edge; logo and gutter keep
   their sizes (Juno, Nov 14). */
@media (max-width:299.98px){
  .hd-in>.hd-a{display:none}
}
/* Discover on the phone's top line, not only in the menu (Seph, Nov 29): beside the logo under 900, where the nav
   goes. Under 390 the account link (Sign in, My Shelf) gives it the room and stays in the menu, as under 300 before. */
.hd-dz{display:none}
@media (max-width:899px){
  .hd-dz{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:12px 0;font-weight:600;font-size:15px;line-height:20px;text-decoration:none;white-space:nowrap;color:inherit}
  .hd-dz[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
}
/* The phone top line, balanced (Seph, Nov 30): the logo on the left; Discover, the account link, search and the menu
   one group on the right, text links first, then the two icons. The gaps between marks read about 18 to 24 px: 18 px
   between the words, the search glyph's 12 px of box after the account link, and the two 44 px icon boxes overlapping
   by 6 px so their glyphs sit about 24 px apart. The menu box hangs 14 px into the right gutter so its glyph ends
   about 20 px from the edge, mirroring the logo (Juno on #739). Each tap target stays 44 px tall; the words keep their full width. */
@media (max-width:899px){
  .hd .hd-in>.hd-a{margin-left:18px;padding:12px 0}
  .hd .hd-in>.hd-s{margin-left:2px}
  .hd .hd-in>.hd-m{margin-left:-6px;margin-right:-14px}
}
@media (max-width:389.98px){
  .hd-in>.hd-a{display:none}
}
/* Your account is back (SPEC-DELETE-ACCOUNT, grace period): one calm line under the header, once, after a sign-in
   that cancelled a deletion. site.js draws it from /api/me's restored and then tells the app it was shown. */
.hd-back{margin:0;padding:12px max(var(--gut),calc((100% - var(--maxw)) / 2 + var(--gut)));border-bottom:1px solid var(--rule);font-size:15px;line-height:22px;color:var(--ink)}
