/* =========================================================
   LATA SCIENTIFIC — catalogue components
   Additive only. Every rule here is scoped to a class that did not
   exist before this file, so nothing in styles.css is overridden and
   no existing page changes appearance. Uses the established tokens
   (--accent, --line, --radius, --f-mono …) so the new blocks read as
   part of the same design system.
   ========================================================= */

/* ---------------------------------------------------------
   In-page jump nav (product pages)
   --------------------------------------------------------- */
.pdnav {
  position: sticky; top: var(--header-h); z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdnav__inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pdnav__inner::-webkit-scrollbar { display: none; }
.pdnav a {
  flex: none; padding: 13px 14px; font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.pdnav a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------
   Long-form prose block
   --------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose p + p { margin-top: 16px; }
.prose p { font-size: 1.105rem; }

/* ---------------------------------------------------------
   Feature / benefit bullet cards
   --------------------------------------------------------- */
.blist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bcard {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 1.055rem; line-height: 1.55;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.bcard__ico {
  display: grid; place-content: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft);
}
.bcard__ico svg { width: 18px; height: 18px; }
.section--alt .bcard { background: var(--paper); }

/* ---------------------------------------------------------
   Applications + industries
   --------------------------------------------------------- */
.applayout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.applayout__h { margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 1.02rem; font-weight: 500;
  color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2);
  transition: border-color .25s, color .25s, background .25s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

/* ---------------------------------------------------------
   Wide data tables — dimensions, materials, reference charts
   The scroll container is what keeps wide engineering tables from
   pushing the page sideways on a phone.
   --------------------------------------------------------- */
.dtable { margin: 28px 0 0; }
.dtable:first-of-type { margin-top: 0; }
/* The caption names the table, and on pages carrying two or three of them it
   is the only thing telling one apart from the next — so it is set as a small
   heading (display face, full ink, bold) rather than the faint grey mono label
   it used to be, which was easy to skim straight past. */
.dtable__cap {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.25;
  color: var(--ink); margin-bottom: 12px;
}
.dtable__scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper);
}
.dtable__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dtable__t { width: 100%; border-collapse: collapse; font-size: 1.005rem; }
.dtable__t th, .dtable__t td {
  padding: 11px 16px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.dtable__t thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--brand); color: #fff; font-family: var(--f-display);
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  border-bottom: none; white-space: nowrap;
}
.dtable__t tbody th {
  font-family: var(--f-mono); font-weight: 500; color: var(--ink);
  background: var(--paper-2);
}
.dtable__t tbody td { color: var(--body); font-variant-numeric: tabular-nums; }
.dtable__t tbody tr:last-child th, .dtable__t tbody tr:last-child td { border-bottom: none; }
.dtable__t tbody tr:hover th { background: var(--accent-soft); }
.dtable__t tbody tr:hover td { background: var(--paper-3); }
/* Applicable / not-applicable marks */
.dtable__t td.is-yes { color: #0F8A5F; font-weight: 700; text-align: center; }
.dtable__t td.is-no { color: var(--muted); text-align: center; }
.dtable__note {
  margin-top: 12px; font-size: 0.96rem; color: var(--muted); max-width: 78ch; line-height: 1.6;
}

/* ---------------------------------------------------------
   "Available on request" box
   --------------------------------------------------------- */
.optbox {
  margin-top: 28px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.optbox .h3 { margin-bottom: 6px; }
.optbox .checklist { margin-top: 16px; }

/* Dimension schematics are line drawings whose callouts sit at the very
   edge of the artboard, and card media defaults to object-fit:cover — which
   cropped the D, L and H labels straight off. Contain them instead; the
   photographic product renders keep cover. */
.pcard__media img[src$=".svg"],
.featcat__media img[src$=".svg"] {
  object-fit: contain;
  padding: 6%;
  background: linear-gradient(160deg, #F8FBFF, #EDF3FA);
}

/* ---------------------------------------------------------
   Drawing beside its dimension table
   Side by side on desktop so a callout letter can be matched to a column
   at a glance; stacked from tablet down, drawing first.
   --------------------------------------------------------- */
.specsplit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: 28px;
}
.specsplit__fig {
  position: sticky; top: 96px;
  margin: 0; padding: clamp(12px, 2vw, 22px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.specsplit__fig img { width: 100%; height: auto; }
.specsplit__fig figcaption {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--muted);
}
.specsplit__data { min-width: 0; }
.specsplit__data .dtable { margin-top: 0; }
.specsplit__cta { margin-top: 24px; }

@media (max-width: 1040px) {
  .specsplit { grid-template-columns: 1fr; }
  .specsplit__fig { position: static; }
}

/* ---------------------------------------------------------
   Exploded / technical drawing figure
   --------------------------------------------------------- */
.exploded {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; padding: clamp(16px, 3vw, 40px);
}
.exploded img { width: 100%; max-width: 720px; height: auto; object-fit: contain; }

/* ---------------------------------------------------------
   FAQ width cap (reuses the existing .accordion component)
   --------------------------------------------------------- */
.faq-wrap { max-width: 860px; }

/* ---------------------------------------------------------
   Enquiry CTA cards
   --------------------------------------------------------- */
.ctagrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ctacard {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.ctacard:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -22px rgba(37,99,235,0.28); border-color: var(--accent); }
.ctacard__ico {
  display: grid; place-content: center; width: 46px; height: 46px; margin-bottom: 10px;
  border-radius: 12px; color: #fff; background: var(--grad); box-shadow: var(--shadow-sm);
}
.ctacard__ico svg { width: 22px; height: 22px; }
.ctacard b { font-family: var(--f-display); font-size: 1.165rem; color: var(--ink); font-weight: 600; }
.ctacard small { font-size: 1rem; color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------
   Product detail additions
   --------------------------------------------------------- */
.pd__sub {
  font-family: var(--f-mono); font-size: 0.95rem; letter-spacing: 0.03em;
  color: var(--accent-strong); margin-bottom: 14px;
}
.pd__more { margin-top: 18px; }

/* ---------------------------------------------------------
   RESPONSIVE — nothing may scroll the page sideways
   --------------------------------------------------------- */
@media (max-width: 1040px) {
  .ctagrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .applayout { grid-template-columns: 1fr; }
  /* The jump nav sits under a header that is no longer sticky-offset the same */
  .pdnav { top: 0; }
}
@media (max-width: 680px) {
  .blist { grid-template-columns: 1fr; }
  .ctagrid { grid-template-columns: 1fr; }
  .dtable__t { font-size: 0.95rem; }
  .dtable__t th, .dtable__t td { padding: 10px 13px; }
  .exploded { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard, .ctacard { transition: none; }
  .bcard:hover, .ctacard:hover { transform: none; }
}
