/* The site header every public page shares, drawn like the Market's (web/market/index.html, whose own
   copy is styles.css with catalog.css on top: keep the numbers here in step with those). Renders the
   Market Pavilion & Parcel-L SVG mark inside .sh__sym (light and dark variants). Classes are
   sh-prefixed so no page's own .brand, .nav or .btn reaches in. Markup:

   <header class="sh"><div class="sh__in">
     <a class="sh__brand" href="/" aria-label="Lakuhan home"><span class="sh__sym" aria-hidden="true"><i></i><i></i><i></i><i></i></span>lakuhan<span class="sh__dot" aria-hidden="true">●</span></a>
     <button class="sh__menu" type="button" aria-label="Open navigation" aria-expanded="false" aria-controls="shNav">☰</button>
     <nav class="sh__nav" id="shNav" aria-label="Main navigation">… Marketplace, Collections, Creators</nav>
     <div class="sh__end"><div class="sh__acct" role="group" aria-label="Sign in">Buyer sign in, Seller sign in
       (each <a>Buyer <span class="sh__verb">sign in</span></a>; site-header.js adds the span where it is missing)</div></div>
   </div></header>

   site-header.js opens the phone menu, marks the current page, and relabels the sign-ins for whoever
   is signed in on this browser. */
.sh { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid #c6cfc7; color: #141c17; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; }
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a { color: inherit; text-decoration: none; }
.sh__in { max-width: 1440px; margin: auto; padding: 0 44px; min-height: 72px; display: flex; align-items: center; gap: 38px; }
.sh__brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; min-height: 44px; font-size: 25px; font-weight: 700; letter-spacing: -1.4px; line-height: normal; color: #141c17; }
.sh__sym { display: inline-block; width: 1.32em; height: 1.32em; flex-shrink: 0; background: url("/assets/brand/lakuhan-mark.svg?v=20261203-2") center / contain no-repeat; forced-color-adjust: none; }
.sh__sym i { display: none; }
.sh__dot { align-self: flex-start; margin: 9px 0 0 -5px; font-size: 6px; letter-spacing: 0; }
.sh__nav { display: flex; align-items: center; gap: 27px; font-size: 13.5px; color: #3d4a41; }
.sh__nav a { position: relative; min-height: 44px; padding: 24px 2px; display: inline-flex; align-items: center; }
.sh__nav a:hover, .sh__nav a[aria-current=page] { color: #123322; }
.sh__nav a[aria-current=page] { font-weight: 700; }
.sh__nav a[aria-current=page]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 2.5px; background: #1b3f2d; }
.sh__end { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 13.5px; }
.sh__theme { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #6b7870; border-radius: 8px; background: #ffffff; color: #141c17; cursor: pointer; flex-shrink: 0; transition: background .12s ease, border-color .12s ease; }
.sh__theme:hover { background: #e4ede7; border-color: #1b3f2d; color: #123322; }
.sh__theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Buyer sign in · Seller sign in: one two-part switch, the two accounts' doors (/purchases and /login). The half for
   the page you are on is filled. */
.sh__acct { display: inline-flex; border: 1px solid #1b3f2d; border-radius: 8px; }
.sh__acct a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #123322; font-weight: 600; white-space: nowrap; }
/* The link is a flex row, which drops the space before the verb: put it back. */
.sh__verb { margin-left: .3em; }
.sh__acct a + a { border-left: 1px solid #1b3f2d; }
/* Conversations with new commission messages (site-header.js shUnread). */
.sh__count { margin-left: .45em; min-width: 1.6em; padding: 1px .5em; border-radius: 999px; background: #7c2d12; color: #ffffff; font-size: 11px; font-weight: 700; line-height: 1.5; text-align: center; }
.sh__acct a:hover { background: #e4ede7; }
.sh__acct a[aria-current=page] { background: #1b3f2d; color: #ffffff; }
.sh__acct a:first-child { border-radius: 7px 0 0 7px; }
.sh__acct a:last-child { border-radius: 0 7px 7px 0; }
/* Inside the pill, so the ring is not lost against its border. */
.sh .sh__acct a:focus-visible { outline-offset: -4px; }
.sh__menu { display: none; place-items: center; min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #6b7870; border-radius: 8px; background: #ffffff; color: #141c17; font: inherit; font-size: 20px; cursor: pointer; }
.sh__menu:hover { color: #123322; background: #e4ede7; border-color: #1b3f2d; }
.sh a:focus-visible, .sh button:focus-visible { outline: 3px solid #143322; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 1150px) {
  .sh__in { gap: 25px; padding: 0 28px; }
  .sh__nav { gap: 20px; }
  .sh__end { gap: 12px; }
}
@media (max-width: 900px) {
  .sh__in { gap: 20px; }
  .sh__end { gap: 10px; }
}
@media (max-width: 760px) {
  .sh__in { flex-wrap: wrap; gap: 0; min-height: 68px; padding: 0 20px; }
  .sh__brand { font-size: 24px; }
  .sh__end { gap: 10px; }
  /* Phones: the verb sits under the word ("My library" breaks in two the same way), so the pill is
     about as wide as "Buyer | Seller" was and the menu button stays on the same row. */
  .sh__acct a { flex-direction: column; justify-content: center; width: min-content; min-height: 44px; padding: 4px 12px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .sh__verb { margin-left: 0; font-size: 11px; font-weight: 500; white-space: nowrap; }
  .sh__menu { display: inline-grid; order: 3; margin-left: 8px; }
  .sh__nav { display: none; order: 4; width: 100%; flex-wrap: wrap; gap: 4px 20px; padding: 6px 0 14px; }
  .sh__nav.is-open { display: flex; }
  .sh__nav a { min-height: 44px; padding: 8px 4px; }
  .sh__nav a[aria-current=page]::after { bottom: 4px; }
}
@media (max-width: 420px) { .sh__acct a { padding: 4px 9px; } }

/* Shared WCAG 2.2 AAA dark mode support for public / buyer header */
html[data-theme="dark"] .sh { background: #141a16; border-bottom-color: #36453c; color: #f2f6f3; }
html[data-theme="dark"] .sh__brand { color: #f2f6f3; }
html[data-theme="dark"] .sh__sym { background-image: url("/assets/brand/lakuhan-mark-dark.svg?v=20261203-2"); }
html[data-theme="dark"] .sh__nav { color: #b8c8be; }
html[data-theme="dark"] .sh__nav a:hover,
html[data-theme="dark"] .sh__nav a[aria-current=page] { color: #e6f7ec; }
html[data-theme="dark"] .sh__nav a[aria-current=page]::after { background: #9ce6ba; }
html[data-theme="dark"] .sh__acct { border-color: #7d9185; }
html[data-theme="dark"] .sh__acct a { color: #9ce6ba; }
html[data-theme="dark"] .sh__acct a + a { border-left-color: #7d9185; }
html[data-theme="dark"] .sh__acct a:hover { background: #1e2822; color: #f2f6f3; }
html[data-theme="dark"] .sh__acct a[aria-current=page] { background: #1d4d35; color: #ffffff; }
html[data-theme="dark"] .sh__count { background: #f5c26b; color: #14110a; }
html[data-theme="dark"] .sh__menu,
html[data-theme="dark"] .sh__theme { background: #161d19; border-color: #7d9185; color: #f2f6f3; }
html[data-theme="dark"] .sh__menu:hover,
html[data-theme="dark"] .sh__theme:hover { background: #22342a; border-color: #9ce6ba; color: #e6f7ec; }
html[data-theme="dark"] .sh a:focus-visible,
html[data-theme="dark"] .sh button:focus-visible { outline-color: #d8f68b; }

@media (prefers-reduced-motion: reduce) {
  .sh * { transition: none !important; }
}
