/* Northvale Labs — responsive production layout pass.
   Loaded last so mobile overrides are consistent across all sections. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(0,109,104,.10); }
img, svg, video { max-width: 100%; }
.container, .header-inner, .footer-top, .contact-layout, .research-grid,
.product-grid, .calc-layout, .faq-v5-layout { min-width: 0; }
.contact-layout > *, .footer-top > *, .calc-layout > *, .research-grid > *,
.product-grid > *, .asset-grid > * { min-width: 0; }
.header { z-index: 100; }
.mobile-menu { max-height: calc(100dvh - 75px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu a { display: flex; min-height: 47px; align-items: center; }
.drawer { max-height: 100dvh; }
.drawer-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.drawer-footer { flex-shrink: 0; }
.search-overlay { overflow-y: auto; overscroll-behavior: contain; }
body:has(.overlay), body:has(.search-overlay) { overflow: hidden; }

@media (max-width: 1050px) {
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .contact-layout h1 { font-size: clamp(51px, 8vw, 79px); overflow-wrap: anywhere; }
  .contact-form-area { min-width: 0; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: grid; }
}

@media (max-width: 900px) {
  .header-inner { width: calc(100% - 44px); }
  .contact-form-area { width: 100%; max-width: 750px; }
  .contact-note { max-width: 650px; }
  .product-layout, .checkout-layout, .testing-intro, .about-columns-grid { min-width: 0; }
  .section-head { min-width: 0; }
  .editorial-banner-content h2 { overflow-wrap: anywhere; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  .footer-col { min-width: 0; overflow-wrap: anywhere; }
  .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 38px); }
  .header-inner { width: calc(100% - 36px); height: 69px; gap: 8px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-main { font-size: 19px; letter-spacing: .13em; }
  .brand-sub { font-size: 6px; letter-spacing: .23em; white-space: nowrap; }
  .header-actions { flex-shrink: 0; gap: 1px; }
  .icon-btn { width: 39px; height: 44px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .mobile-menu { padding: 6px 19px 20px; gap: 0; max-height: calc(100dvh - 70px); }
  .mobile-menu a { font-weight: 650; font-size: 15px; }
  .announcement.announcement-v6 { min-height: 38px; font-size: 10px; padding-inline: 11px; }
  .announcement-v6-inner { justify-content: space-between; gap: 9px; }
  .announcement-v6-item { min-height: 38px; padding: 8px 0; }
  .announcement-v6-symbol { font-size: 12px; }
  .announcement-v6-testing span:nth-child(2)::after,
  .announcement-v6-shipping span:nth-child(2)::after { font-size: 10px; }

  /* Homepage: shorten the wall of type and keep the vial visible. */
  .hero-premium { min-height: 730px; }
  .hero-premium .hero-art img { object-position: 68% center; }
  .hero-premium .hero-art::after { background: linear-gradient(180deg,rgba(7,11,14,.85) 0%,rgba(7,11,14,.64) 56%,rgba(7,11,14,.12) 100%); }
  .hero-premium .hero-content { min-height: 730px; width: 100%; max-width: none; padding: 42px 19px 42px; justify-content: space-between; gap: 22px; }
  .hero-premium .hero-copy { margin-top: 39px; }
  .hero-premium .hero-title { font-size: clamp(57px, 14.3vw, 78px); letter-spacing: -.058em; line-height: .98; margin: 14px 0 18px; overflow-wrap: normal; }
  .hero-premium .hero-subline { max-width: 410px; margin-top: 12px; }
  .hero-premium .hero-subline p { font-size: 13px; line-height: 1.6; }
  .hero-premium .hero-bottom { padding-right: 0; margin-top: 0; gap: 16px; }
  .hero-premium .hero-cta { width: 100%; gap: 9px; }
  .hero-premium .hero-cta .btn { min-height: 46px; padding: 13px 14px; font-size: 9px; flex: 1 1 auto; gap: 12px; }
  .hero-trust { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .hero-trust-card { padding: 10px 8px; }
  .hero-trust-card strong { font-size: 10px; line-height: 1.25; }
  .hero-trust-card span { font-size: 8px; letter-spacing: .025em; line-height: 1.4; }
  .ticker { overflow: hidden; }
  .section-head h2 { font-size: clamp(42px, 10.9vw, 68px); line-height: 1.06; }
  .section-head .head-aside { max-width: 560px; }
  .page-intro h1 { font-size: clamp(46px, 11.7vw, 68px); line-height: 1.05; }
  .product-card-visual { height: clamp(220px, 65vw, 315px); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-info { gap: 6px; }
  .product-info h3 { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
  .product-info p { font-size: 11px; line-height: 1.4; }
  .product-price { font-size: 12px; }
  .shop-controls { padding: 22px 0; }
  .filter-pills { gap: 8px; }
  .filter-pill { min-height: 42px; padding: 11px 12px; font-size: 9px; }
  .sort-select { min-height: 44px; font-size: 12px; }
  .research-card-details h3 { overflow-wrap: anywhere; line-height: 1.1; }
  .research-detail-copy h1 { font-size: clamp(45px, 13vw, 78px); overflow-wrap: anywhere; }
  .about-hero h1 { font-size: clamp(50px, 12vw, 72px); }
  .editorial-banner h2, .about-columns h2 { font-size: clamp(42px, 11vw, 64px); }
  .editorial-banner-image { height: 320px; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 20px; }
  .footer-top > * { min-width: 0; }
  .footer-col:last-child { grid-column: auto; }
  .footer-col a { overflow-wrap: anywhere; }
  .footer .brand-main { font-size: clamp(24px, 6vw, 32px); }
  .footer-col h3 { margin-bottom: 16px; }
  .newsletter-inner, .newsletter-inner > * { min-width: 0; }
  .subscribe-form { max-width: 100%; min-width: 0; }
  .subscribe-form input { min-width: 0; width: 100%; }
  .contact-page { padding: 58px 0 85px; }
  .contact-layout { display: grid; grid-template-columns: 1fr; gap: 34px; }
  .contact-layout h1 { font-size: clamp(49px, 12vw, 77px); letter-spacing: -.055em; line-height: 1.06; overflow-wrap: anywhere; }
  .contact-note { margin: 30px 0 8px; }
  .contact-form-area { min-width: 0; padding: 25px; }
  .contact-form-area h2 { font-size: clamp(27px, 8vw, 38px); }
  .contact-form-area input, .contact-form-area select, .contact-form-area textarea,
  .subscribe-form input { font-size: 16px; min-height: 44px; }
  .contact-form-area textarea { min-height: 140px; }
  .contact-form-area .btn, .purchase-controls .btn, .checkout-actions .btn { min-height: 48px; }
  .calc-hero { padding: 59px 0 53px; }
  .calc-hero h1 { font-size: clamp(55px, 13vw, 80px); line-height: 1.03; }
  .calc-hero p { font-size: 14px; }
  .calc-bar { font-size: 9px; }
  .calc-input-panel, .calc-result-panel { padding: 23px; }
  .calc-result-core { gap: 8px; }
  .calc-result-number strong { font-size: clamp(51px, 13vw, 77px); }
  .calc-vial-graphic { transform: scale(.8); transform-origin: right center; width: 89px; }
  .calc-form { gap: 20px; }
  .calc-field > span { line-height: 1.4; }
  .calc-input-wrap { min-height: 56px; }
  .calc-input-wrap input { font-size: 20px; min-width: 0; }
  .calc-equations { grid-template-columns: 1fr; }
  .faq-top h1 { font-size: clamp(52px, 12vw, 74px); }
  .faq-sidebar > .faq-jump { min-height: 44px; display: flex; align-items: center; }
  .faq-top-links > a { min-height: 44px; }
  .faq-v5 .faq-list summary { font-size: 15px; min-height: 46px; align-items: center; }
  .faq-v5 .faq-list p { font-size: 13px; line-height: 1.75; }
  .testing-hero { padding: 58px 0 60px; }
  .testing-hero h1 { font-size: clamp(48px, 12vw, 70px); }
  .testing-hero-meta { flex-wrap: wrap; }
  .partners .lab-grid { grid-template-columns: 1fr; }
  .partners .lab-card { min-height: 280px; }
  .traceability-shell { display: grid; grid-template-columns: 1fr; min-height: 0; }
  .traceability-copy, .traceability-record { padding: 25px; }
  .traceability-copy h2 { font-size: clamp(35px, 10vw, 54px); }
  .record-window { max-width: none; }
  .search-overlay { padding: 100px 20px 30px; }
  .search-overlay h2 { font-size: 50px; }
  .search-overlay input { width: 100%; font-size: 16px; }
  .search-result { min-width: 0; gap: 10px; }
  .search-result p { overflow-wrap: anywhere; }
  .drawer { width: 100%; }
  .drawer-head, .drawer-footer { padding-inline: 24px; }
  .drawer-body { padding: 20px 24px; }
  .drawer-footer .btn { min-height: 48px; }
}

@media (max-width: 430px) {
  .hero-premium { min-height: 720px; }
  .hero-premium .hero-content { min-height: 720px; }
  .hero-premium .hero-title { font-size: clamp(54px, 14.4vw, 62px); }
  .hero-trust { grid-template-columns: 1fr; gap: 6px; }
  .hero-trust-card { display: flex; align-items: baseline; gap: 9px; padding: 9px 11px; }
  .hero-trust-card strong { min-width: 99px; margin: 0; }
  .hero-trust-card span { font-size: 9px; }
  .product-card-visual { height: clamp(225px, 68vw, 300px); }
  .product-info { display: block; }
  .product-price { display: block; margin-top: 8px; }
  .product-meta { gap: 6px; }
  .calc-input-panel, .calc-result-panel { padding: 19px; }
  .calc-panel-heading { gap: 13px; }
  .calc-panel-heading h2 { font-size: 29px; }
  .calc-result-number strong { font-size: 50px; }
  .calc-vial-graphic { transform: scale(.7); width: 76px; }
  .calc-input-wrap b { padding-inline: 11px; }
  .faq-sidebar { gap: 7px; }
  .faq-sidebar > .faq-jump { padding: 11px 12px; }
  .record-row { font-size: 11px; gap: 8px; }
  .record-window { padding: 18px; }
  .record-title { font-size: 23px; }
  .contact-form-area { padding: 20px; }
  .footer-col h3 { font-size: 10px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 34px); }
  .header-inner { width: calc(100% - 30px); gap: 2px; }
  .brand-main { font-size: 17.5px; letter-spacing: .11em; }
  .brand-sub { letter-spacing: .16em; font-size: 5.7px; }
  .icon-btn { width: 37px; height: 43px; }
  .hero-premium .hero-content { padding-inline: 17px; }
  .hero-premium .hero-title { font-size: 52px; }
  .hero-premium .hero-subline p { font-size: 12.5px; }
  .hero-premium .hero-cta .btn { padding-inline: 10px; gap: 5px; font-size: 8.5px; }
  .hero-trust-card { padding: 7px 9px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card-details h3 { font-size: 29px; }
  .abstract-molecule { overflow-wrap: anywhere; }
  .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 12px; }
  .footer-col a { font-size: 11px; }
  .footer .brand-main { font-size: 25px; }
  .contact-layout h1 { font-size: 49px; }
  .calc-bar { font-size: 8px; gap: 12px; }
  .calc-output-list > div { gap: 8px; }
  .calc-output-list strong { max-width: 58%; overflow-wrap: anywhere; }
  .record-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .record-row strong { text-align: left; }
  .traceability-copy, .traceability-record { padding: 19px; }
  .asset-card-copy { padding: 19px; }
  .faq-top h1 { font-size: 52px; }
}
@media (max-width: 720px) {
  .product-detail h1 { font-size: clamp(42px, 12vw, 65px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
}
/* Dialog overlays must sit above sticky navigation. */
.header { z-index: 40; }
/* Keep the full-width brand introduction above footer link columns. */
@media (max-width: 900px) {
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

/* Crisp product photography in the collection, detail pages, and drawer. */
.cart-thumb img.product-card-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px;}
.product-card-visual img.product-card-image,.product-hero-visual img.product-page-image{image-rendering:auto;}
@media(max-width:660px){.product-card-visual img.product-card-image{object-position:center 45%;}}
