/* data pages: price index, RFQ board, datasheets, suppliers, brands */

.data-hero {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f5ef 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}

.data-hero h1 { font-size: 32px; margin-bottom: 10px; }

.data-hero .lead { color: var(--ink-2); max-width: 74ch; margin-bottom: 0; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }

.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.rfq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.rfq-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.rfq-card .rfq-title { font-weight: 650; font-size: 15px; }

.rfq-card .rfq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
}

.rfq-card .rfq-term {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #eef1f4;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.brand-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.brand-card .bc-name { font-weight: 650; }

.brand-card .bc-meta { font-size: 13px; color: var(--muted); }

.supplier-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.supplier-row:last-child { border-bottom: 0; }

.supplier-row .sr-name { font-weight: 650; }

.supplier-row .sr-meta { font-size: 13px; color: var(--muted); }

.supplier-row .sr-products { font-size: 13px; color: var(--ink-2); }

.price-hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.aside-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.aside-panel h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.aside-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }

@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .two-col { grid-template-columns: 1fr; }

  .supplier-row { grid-template-columns: 1fr; gap: 6px; }
}



/* sub-heading between tables on data pages */
.subhead {
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* certificate availability chips: available = brand orange, missing = standard text */
.cert {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  margin-right: 6px;
}

.cert-on {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(245, 135, 10, .45);
  transition: color .18s ease, text-decoration-color .18s ease;
}

.cert-on:hover { color: var(--brand); text-decoration-color: var(--brand); }

.cert-off { color: var(--ink-2); font-weight: 400; opacity: .55; }

/* derived key properties on the datasheets table */
.kp-features { display: block; font-size: 13px; color: var(--ink-2); }

.kp-uses { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* reference price on the datasheets table links to the grade price page */
.price-link {
  display: inline-block;
  border-bottom: 1px dashed var(--line-strong);
  transition: color .18s ease, border-color .18s ease;
}

.price-link:hover,
.price-link:focus-visible {
  color: var(--brand-dark);
  border-bottom-color: currentColor;
}

.price-sync-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.price-sync-note a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

.price-sync-note a:hover { color: var(--brand); }

/* search field inside the data hero (RFQ board) */
.data-hero .search-row {
  margin-top: 18px;
  border-left-width: 3px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .data-hero .search-field { flex-wrap: wrap; }

  .data-hero .search-field input { min-width: 0; }
}

/* --- material family index (Global inquiries hub) ------------------------- */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.family-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.family-card:hover,
.family-card:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.family-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.fc-code {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.fc-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: .01em;
}

.fc-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.fc-go {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.family-card:hover .fc-go,
.family-card:focus-visible .fc-go { color: var(--brand-dark); }

.family-card.is-pending {
  background: var(--surface-alt);
  border-style: dashed;
  box-shadow: none;
}

.family-card.is-pending:hover { transform: none; border-color: var(--line-strong); box-shadow: none; }

.family-card.is-pending .fc-meta { color: var(--muted); font-weight: 500; }

.family-card.is-pending .fc-go { color: var(--brand-dark); }

/* producer chips that filter the list below */
.chip-btn {
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.chip-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* closing notes on the hub */
.split-note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.note-card h2 { font-size: 18px; margin: 0 0 10px; }

.note-card p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.tick-list li { padding-left: 18px; position: relative; }

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .family-card { transition: border-color .2s ease, box-shadow .2s ease; }
  .family-card:hover, .family-card:focus-visible { transform: none; }
}

/* --- PEEK price pages: photo band (brand, packing, warehouse, pellets, parts) --- */
.peek-shots,
.brand-band {
  padding: 22px 0 18px;
  background: #fffdf9;
}

.gallery-intro {
  margin: 0 0 14px;
  max-width: 92ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.gallery-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gallery-panel { display: none; }

#g-logo:checked ~ .gallery-panel[data-gallery-panel="logo"],
#g-packing:checked ~ .gallery-panel[data-gallery-panel="packing"],
#g-warehouse:checked ~ .gallery-panel[data-gallery-panel="warehouse"],
#g-pellets:checked ~ .gallery-panel[data-gallery-panel="pellets"],
#g-parts:checked ~ .gallery-panel[data-gallery-panel="parts"] { display: block; }

#g-logo:checked ~ .gallery-tabs label[for="g-logo"],
#g-packing:checked ~ .gallery-tabs label[for="g-packing"],
#g-warehouse:checked ~ .gallery-tabs label[for="g-warehouse"],
#g-pellets:checked ~ .gallery-tabs label[for="g-pellets"],
#g-parts:checked ~ .gallery-tabs label[for="g-parts"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#g-logo:checked ~ .gallery-tabs label[for="g-logo"] span,
#g-packing:checked ~ .gallery-tabs label[for="g-packing"] span,
#g-warehouse:checked ~ .gallery-tabs label[for="g-warehouse"] span,
#g-pellets:checked ~ .gallery-tabs label[for="g-pellets"] span,
#g-parts:checked ~ .gallery-tabs label[for="g-parts"] span {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

#g-logo:focus-visible ~ .gallery-tabs label[for="g-logo"],
#g-packing:focus-visible ~ .gallery-tabs label[for="g-packing"],
#g-warehouse:focus-visible ~ .gallery-tabs label[for="g-warehouse"],
#g-pellets:focus-visible ~ .gallery-tabs label[for="g-pellets"],
#g-parts:focus-visible ~ .gallery-tabs label[for="g-parts"] {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

html:not(.js) .gallery-nav { display: none; }

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.gallery-tab {
  font: inherit;
  user-select: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gallery-tab span {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
}

.gallery-tab:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.gallery-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 78ch;
}

.gallery-nav { display: flex; gap: 8px; flex: none; }

.gallery-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gallery-btn:hover:not([disabled]) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.gallery-btn:active:not([disabled]) { transform: translateY(1px); }

.gallery-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.gallery-btn[disabled] { opacity: .35; cursor: default; }

.gallery-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, .35) transparent;
}

.gallery-rail:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.gallery-rail::-webkit-scrollbar { height: 8px; }

.gallery-rail::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .35); border-radius: 999px; }

.gallery-rail::-webkit-scrollbar-track { background: transparent; }

.gallery-tile {
  flex: 0 0 clamp(196px, 23vw, 252px);
  margin: 0;
  scroll-snap-align: start;
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-tile:hover .gallery-frame { border-color: var(--line-strong); }

.gallery-tile:hover .gallery-frame img { transform: scale(1.04); }


.gallery-tile figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- PEEK price page: how a price line is read --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.spec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.spec-card h3 { font-size: 15px; margin: 0 0 8px; }

.spec-card .spec-term {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
}

.spec-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* --- PEEK price page: producer mix --- */
.peek-producer-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 0 26px;
}

.peek-producer-grid li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.peek-producer-grid .ppg-n { color: var(--ink); }

.peek-producer-grid .ppg-c {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* --- PEEK price page: FAQ --- */
.faq-list { display: grid; gap: 10px; margin-top: 16px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.faq-list details:hover { border-color: var(--line-strong); }

.faq-list details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.faq-list summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 17px;
  line-height: 1;
  color: var(--brand-dark);
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.faq-list p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

/* --- PEEK price page: closing call to action --- */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cta-strip h2 { font-size: 18px; margin: 0 0 4px; }

.cta-strip p { margin: 0; font-size: 13.5px; color: var(--muted); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .gallery-tile { flex: 0 0 clamp(168px, 62vw, 220px); }

  .gallery-head { flex-wrap: wrap; }

  .gallery-nav { order: 2; }

  .cta-strip { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-frame img { transition: none; }

  .gallery-tile:hover .gallery-frame img { transform: none; }

  .gallery-btn:active:not([disabled]) { transform: none; }
}

/* hero quick links on the PEEK price page */
.price-hero-note .more-link { margin-right: 18px; }

@media (max-width: 640px) {
  .price-hero-note .more-link { margin-right: 0; margin-bottom: 6px; }
}

/* rows with more than four photos move on their own; no snap fighting */
.gallery-rail.is-auto { scroll-snap-type: none; }

@media (prefers-reduced-motion: reduce) {
  .gallery-rail.is-auto { scroll-snap-type: x proximity; }
}

/* producer wall: every brand shown at once, half size, click to list its grades */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 10px;
}

.logo-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13px;
}

.logo-count {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.logo-btn:hover .logo-frame {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.logo-btn:hover .logo-count { color: var(--brand-dark); }

.logo-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius); }

.logo-btn:active .logo-frame { transform: translateY(1px); }

.logo-btn[aria-pressed="true"] .logo-frame {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft) inset;
  background: #fffdf9;
}

.logo-btn[aria-pressed="true"] .logo-count { color: var(--brand-dark); font-weight: 600; }

.producer-panel {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.producer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 12px;
}

.producer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.producer-sub { margin: 0; font-size: 13px; color: var(--muted); }

.producer-table { max-height: 430px; overflow-y: auto; }

.producer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-alt);
}

.producer-table tbody tr:hover { background: #fffaf4; }

.producer-summary { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.producer-summary a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

  .producer-table { max-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-btn:hover .logo-frame { transform: none; }
}

/* grade search across the price module: hub page and family price pages (results panel is shared in base.css) */
.price-search { margin: 18px 0 0; }

