/* Reading and enquiry refinements. Scoped to content templates; home stays unchanged. */
#insight-list .card__title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-height: 1.4;
}
#insight-list .card__title a { overflow-wrap: anywhere; }
#insight-list .card__text { font-size: 15px; line-height: 1.6; }

.single-insight .page-hero { padding-block: clamp(2rem, 3vw, 3.25rem); }
.single-insight .page-hero__title {
  max-width: 34ch;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  line-height: 1.2;
  text-wrap: balance;
}
.single-insight .page-hero__lead { font-size: 17px; line-height: 1.65; }
.single-insight #article { padding-block: clamp(1.5rem, 3vw, 3rem); }
.article-body, .article-body .prose { min-width: 0; }
.article-body .prose a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.article-body .prose a:hover { color: #fff; }
.article-body .prose a:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 4px; }
.article-body .prose h2, .article-body .prose h3 { scroll-margin-top: 100px; }
.article-toc {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  font-size: 16px;
}
.article-toc summary { cursor: pointer; font-weight: 600; color: var(--c-text); }
.article-toc summary:focus-visible, .article-toc a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 4px;
}
.article-toc ol { margin: 16px 0 0; padding-left: 22px; }
.article-toc li { padding-block: 4px; }
.article-toc a { color: var(--c-text); text-underline-offset: 3px; }
.article-body .prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }

/* Readable form values also avoid focus zoom in mobile Safari. */
#rfq-form input:not([type="hidden"]), #rfq-form textarea, #rfq-form select {
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  #insight-list .grid.grid--cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #insight-list .card--compact .card__media { aspect-ratio: 16 / 9; }
  #insight-list .card__body { padding: 18px 20px 20px; gap: 10px; }
  #insight-list .card__eyebrow { font-size: 12px; }
  #insight-list .card__title { font-size: 20px; }
  #insight-list .card__text { display: block; overflow: visible; -webkit-line-clamp: unset; }
  #insight-list .card__link { font-size: 14px; }
  .single-insight .breadcrumb { font-size: 12px; }
  .single-insight .breadcrumb ol { flex-wrap: nowrap; overflow: hidden; }
  .single-insight .breadcrumb li { flex-shrink: 0; }
  .single-insight .breadcrumb li:last-child { min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .single-insight .page-hero__lead { font-size: 16px; }
  .single-insight .article-meta { font-size: 12px; gap: 8px; }
  .single-insight .article-body .prose { font-size: 17px; line-height: 1.7; }

  /* The copy wrapper has no semantics; keep one H1 and one CTA in the DOM. */
  .pdp-hero { padding-block: 24px 32px; }
  .pdp-hero__inner {
    grid-template-areas: "family" "title" "actions" "media" "lead" "specs";
    gap: 16px;
  }
  .pdp-hero__copy { display: contents; }
  .pdp-hero__copy > .num { grid-area: family; margin: 0; }
  .pdp-hero__copy > .num a { color: var(--c-text-inv-2); }
  .pdp-hero__title { grid-area: title; margin: 0; font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .pdp-hero__actions { grid-area: actions; margin: 0; }
  .pdp-hero__actions .btn { width: 100%; }
  .pdp-hero__media { grid-area: media; }
  .pdp-hero__media .media-frame { aspect-ratio: 4 / 3; }
  .pdp-hero__media .media-frame img { width: 100%; height: 100%; object-fit: contain; }
  .pdp-hero__lead { grid-area: lead; margin: 0; font-size: 16px; line-height: 1.65; }
  .pdp-hero__copy > .spec-plates { grid-area: specs; display: grid; gap: 0; margin: 0; }
  .pdp-hero__copy > .spec-plates > div {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .pdp-hero__copy > .spec-plates dt { font-size: 12px; }
  .pdp-hero__copy > .spec-plates dd { font-size: 14px; }
}
