/* ==========================================================================
   Header + hero pill fix — header-20261030 (owner ask, 10:27 PM ET Oct 30 2026)
   1) Crest top-left: full crest at 72px (desktop) + gold "Harpoon Hobby Co." wordmark when it fits.
   2) Top-right tabs: ONE uniform navy chip with a thin gold edge, icon on one centre line, small-caps label.
      Picture tabs keep the owner's art; News / 1/1 / Auction get line icons from the design-system set;
      eBay / Instagram / CollX keep their brand marks, sized to match.
   3) Hero pill "Trading cards · $1, $5 and $10 auctions": even padding, centred text, aligned to the lettering.
   Desktop rules are all inside (min-width: 721px); the phone circle row (<=720px) is untouched apart from
   hiding the new desktop-only chip parts. Loaded last by scripts/site_build.py. Delete file + <link> to roll back.
   `:not(#hh)` only raises specificity over the older !important header rules in styles.css / site.css.
   ========================================================================== */
:root {
  --hh-space-1: 4px;
  --hh-space-2: 8px;
  --hh-space-3: 12px;
  --hh-space-4: 16px;
  --hh-space-5: 24px;
  --hh-chip-w: 66px;
  --hh-chip-h: 56px;
  --hh-chip-ico: 28px;
}

/* New chip parts never show on the phone row */
@media (max-width: 720px) {
  .site-header:not(#hh) .hh-chip-ico,
  .site-header:not(#hh) .hh-chip-lbl,
  .site-header:not(#hh) .brand-word { display: none !important; }
}

@media (min-width: 721px) {
  /* ---- Bar ---- */
  .site-header:not(#hh) .header-inner {
    padding: var(--hh-space-2) 0;
    gap: var(--hh-space-5);
    flex-wrap: nowrap;
  }

  /* ---- 1. Crest ---- */
  .site-header:not(#hh) .brand {
    display: inline-flex;
    align-items: center;
    gap: var(--hh-space-3);
    flex: 0 0 auto;
    text-decoration: none;
    border-radius: 999px;
  }
  .site-header:not(#hh) .brand-mark {
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    background: var(--hh-navy-800);
    box-shadow: 0 0 0 1px var(--hh-edge), 0 0 18px -4px var(--hh-glow), 0 6px 14px rgba(0, 0, 0, 0.45);
    transition: box-shadow var(--hh-dur-base) var(--hh-ease), transform var(--hh-dur-base) var(--hh-ease);
  }
  .site-header:not(#hh) .brand:hover .brand-mark,
  .site-header:not(#hh) .brand:focus-visible .brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--hh-gold-300), 0 0 22px -2px var(--hh-glow), 0 6px 14px rgba(0, 0, 0, 0.45);
  }
  .site-header:not(#hh) .brand-word {
    position: relative;
    font-family: var(--hh-font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: 0.015em;
    white-space: nowrap;
    background: var(--hh-grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
    padding-bottom: 0.06em;
  }

  /* ---- 2. Nav chips ---- */
  .site-header:not(#hh) .nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }
  .site-header:not(#hh) .nav-links > a[href] {
    position: relative;
    box-sizing: border-box;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    width: var(--hh-chip-w) !important;
    min-width: var(--hh-chip-w) !important;
    height: var(--hh-chip-h) !important;
    padding: 6px 2px 5px !important;
    margin: 0 !important;
    border: 1px solid var(--hh-edge) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(13, 27, 48, 0.94) 0%, rgba(7, 16, 29, 0.94) 100%) !important;
    box-shadow: inset 0 1px 0 var(--hh-hi), 0 4px 12px -6px rgba(0, 0, 0, 0.75) !important;
    color: var(--hh-gold-300);
    font-size: 0 !important;
    line-height: 1;
    text-decoration: none;
    overflow: visible;
    transform: none;
    transition: border-color var(--hh-dur-fast) var(--hh-ease), box-shadow var(--hh-dur-base) var(--hh-ease),
      transform var(--hh-dur-fast) var(--hh-ease), background-color var(--hh-dur-fast) var(--hh-ease);
  }
  .site-header:not(#hh) .nav-links > a[href]:hover,
  .site-header:not(#hh) .nav-links > a[href]:focus-visible {
    transform: translateY(-1px);
    border-color: var(--hh-line-strong) !important;
    box-shadow: inset 0 1px 0 var(--hh-hi), 0 0 0 1px var(--hh-edge-soft), 0 0 18px -4px var(--hh-glow) !important;
  }
  .site-header:not(#hh) .nav-links > a.is-active,
  .site-header:not(#hh) .nav-links > a[aria-current="page"] {
    border-color: var(--hh-gold-300) !important;
    background: linear-gradient(180deg, rgba(168, 134, 31, 0.24) 0%, rgba(10, 22, 39, 0.94) 70%) !important;
  }
  .site-header:not(#hh) .nav-links > a[href]::before,
  .site-header:not(#hh) .nav-links > a[href]::after { content: none !important; }

  /* Old text faces + the long CollX wordmark are replaced by the chip icon/label on desktop */
  .site-header:not(#hh) .nav-links > a .nav-auction-text,
  .site-header:not(#hh) .nav-links > a .nav-news-label,
  .site-header:not(#hh) .nav-links > a .nav-art-label,
  .site-header:not(#hh) .nav-links > a .brand-icon-collx { display: none !important; }

  /* Icon row: one box, one centre line */
  .site-header:not(#hh) .nav-links > a[href] > img {
    display: block;
    flex: 0 0 auto;
    width: var(--hh-chip-ico) !important;
    height: var(--hh-chip-ico) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
    transform: none !important;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
    transition: filter var(--hh-dur-base) var(--hh-ease);
  }
  .site-header:not(#hh) .nav-links > a[href]:hover > img,
  .site-header:not(#hh) .nav-links > a[href]:focus-visible > img {
    transform: none !important;
    filter: drop-shadow(0 0 7px rgba(224, 197, 106, 0.5)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
  }
  /* Optical trims: wide art gets more width, same visual weight */
  .site-header:not(#hh) .nav-links > a.nav-cards-icon > img { width: 46px !important; height: 46px !important; margin: -9px 0 !important; }
  .site-header:not(#hh) .nav-links > a.nav-cal-icon > img { width: 27px !important; height: 27px !important; margin: 0.5px 0 !important; }
  .site-header:not(#hh) .nav-links > a.nav-nfl-icon > img { width: 31px !important; height: 31px !important; margin: -1.5px 0 !important; }
  .site-header:not(#hh) .nav-links > a.nav-pokedex-icon > img { width: 34px !important; height: 34px !important; margin: -3px 0 !important; }
  .site-header:not(#hh) .nav-links > a[data-link="ebay"] > img.brand-icon { width: 44px !important; height: 28px !important; }
  .site-header:not(#hh) .nav-links > a[data-link="instagram"] > img.brand-icon { width: 25px !important; height: 25px !important; margin: 1.5px 0 !important; }
  .site-header:not(#hh) .nav-links > a > img.hh-chip-ico-collx { width: 26px !important; height: 26px !important; margin: 1px 0 !important; }

  .site-header:not(#hh) .hh-chip-lbl {
    display: block;
    font-family: var(--hh-font-ui);
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--hh-gold-300);
    text-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5);
  }
  .site-header:not(#hh) .nav-links > a.is-active .hh-chip-lbl,
  .site-header:not(#hh) .nav-links > a[aria-current="page"] .hh-chip-lbl,
  .site-header:not(#hh) .nav-links > a[href]:hover .hh-chip-lbl { color: var(--hh-gold-100); }
}

/* Narrower desktops / tablets: drop the wordmark, then shrink chips and hide labels */
@media (min-width: 721px) and (max-width: 1099px) {
  .site-header:not(#hh) .brand-word { display: none; }
}
@media (min-width: 721px) and (max-width: 920px) {
  :root { --hh-chip-w: 50px; --hh-chip-h: 50px; --hh-chip-ico: 26px; }
  .site-header:not(#hh) .brand-mark { width: 60px; height: 60px; }
  .site-header:not(#hh) .hh-chip-lbl { display: none; }
  .site-header:not(#hh) .nav-links { gap: 4px; }
}

/* ---- 3. Hero pill ---- */
.page-home .rd-hero-copy > .rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--hh-space-2);
  margin: 0 0 var(--hh-space-4);
  padding: 9px var(--hh-space-4) 8px 14px;
  line-height: 1;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}
.page-home .rd-hero-copy > .rd-eyebrow .rd-eyebrow-rule {
  flex: 0 0 auto;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hh-gold-600), var(--hh-gold-300));
}
.page-home .rd-hero-copy > .rd-hero-title { margin-top: 0; }
@media (min-width: 901px) {
  /* hero-center-20261031: one shared left edge + copy block centred in its panel.
     Pill sits on the block edge; the wordmark PNG's 3.77% transparent left margin is pulled back
     so the "L" lands on that same edge. Block is centred in its column, equal top/bottom padding. */
  .page-home .rd-hero { padding-bottom: clamp(2rem, 5vw, 4.25rem); }
  .page-home .rd-hero-copy { justify-self: center; width: 100%; max-width: 36rem; }
  .page-home .rd-hero-copy > .rd-eyebrow { margin-left: 0; }
  .page-home .rd-hero-copy .rd-wordmark { margin-left: calc(min(100%, 560px) * -0.0377); }
  /* hero-viewport-20261031: hero fills the visible space under the 89px header and centres the copy
     vertically; the On the Block photo frame shrinks (3:2, then capped by viewport height, contain = never
     cropped) so the card no longer stretches the section past the fold. */
  .page-home .rd-hero {
    --hv-pad: clamp(1.25rem, 4vh, 3rem);
    --hv-card-rest: 384px; /* card body + "See all" link below the photo */
    display: flex;
    align-items: center;
    min-height: calc(100vh - 89px);
    padding-block: var(--hv-pad);
  }
  .page-home .rd-featured .rd-feature-card .drop-media {
    aspect-ratio: 3 / 2;
    max-height: max(150px, calc(100vh - 89px - 2 * var(--hv-pad) - var(--hv-card-rest)));
  }
  .page-home .rd-featured .rd-feature-card .drop-media img { object-fit: contain; }
}
@media (min-width: 901px) and (max-height: 820px) {
  /* hero-viewport-20261031: short laptop screens put the two card buttons on one row (eBay stays first, gold) */
  .page-home .rd-hero { --hv-card-rest: 326px; }
  .page-home .rd-featured .rd-feature-card .drop-actions .btn-ebay { flex-basis: 10rem; }
}
@media (max-width: 520px) {
  .page-home .rd-hero-copy > .rd-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    padding: 8px var(--hh-space-3) 7px 11px;
    gap: 7px;
    max-width: 100%;
    white-space: nowrap;
  }
  .page-home .rd-hero-copy > .rd-eyebrow .rd-eyebrow-rule { width: 12px; }
}
