/* Reference fidelity layer — loaded after the CMS/runtime styles. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}

:root {
  --font-geist-sans: "Geist", "Geist Fallback", Arial, sans-serif;
  --font-sans: var(--font-geist-sans);
  --font: var(--font-geist-sans);
}

html {
  font-family: var(--font-geist-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
.public-marketplace,
.public-marketplace :is(button, input, select, textarea) {
  font-family: var(--font, var(--font-geist-sans));
}

.public-marketplace {
  color: #181b20;
  line-height: 1.5;
}

.public-marketplace :where(h1, h2, h3, h4, p) {
  text-wrap: pretty;
}

/* Only the intentionally editorial marketing headings use serif. */
.public-marketplace .home-hero-copy h1,
.public-marketplace .home-evidence-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.public-marketplace :where(.parity-search, .parity-detail, .sell-page, .buyer-page, .supporting-page)
  :where(h1, h2, h3, h4, button, input, select, textarea, label, summary) {
  font-family: var(--font, var(--font-geist-sans));
}

/* The reference reserves strong weight for actions and prices, not all copy. */
.public-marketplace :where(p, li, dd, small, .muted, .card-variant, .summary-copy) {
  font-weight: 400;
}

.site-header,
.site-header :is(a, button, summary, small),
.site-footer,
.mobile-bottom-nav {
  font-family: var(--font, var(--font-geist-sans));
}

.site-header .desktop-nav > a,
.site-header .desktop-nav > details > summary,
.site-header .header-actions :is(a, button, summary) {
  font-weight: 550;
}

/* Shared chrome dimensions from the reference application. */
.site-header.parity-header,
.parity-header .parity-header-inner { height: 70px; }
.parity-header.compact,
.parity-header.compact .parity-header-inner { height: 54px; }

/* The reference storefront uses the compact five-column footer. Contact
   details remain available on the dedicated Contact route and in the CMS. */
.site-footer.parity-footer .default-footer-contact {
  display: none;
}

.site-footer.parity-footer .parity-footer-grid {
  grid-template-columns: 1.5fr repeat(4, 1fr);
}

@media (max-width: 1023px) {
  .site-footer.parity-footer .parity-footer-grid {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .public-marketplace {
    font-size: 16px;
  }

  .site-footer.parity-footer .parity-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer.parity-footer .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header.parity-header,
  .parity-header .parity-header-inner { height: 62px; }
  .parity-header.compact,
  .parity-header.compact .parity-header-inner { height: 54px; }
  .parity-header .mobile-menu { top: 62px; }
  .parity-header.compact .mobile-menu { top: 54px; }
}
