/* DatasheetHub Pro — component sheet (2.3.0)
   Hero with featured image, meta row, section nav, lists, FAQ, comments,
   and a layout that adapts to the space the page sidebars leave. */

.dsh-sheet { display: block; }
.dsh-sheet .dsh-panel__body .dsh-prose { max-width: none; }
.dsh-sheet .dsh-prose img { max-width: 100%; height: auto; }
.dsh-sheet .dsh-prose figure { margin: 1em 0; text-align: center; }
.dsh-sheet [id^="dsh-sec-"], .dsh-sheet #datasheet-preview, .dsh-sheet #comments { scroll-margin-top: 140px; }

/* Hero ------------------------------------------------------------------ */
.dsh-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius); padding: 22px 24px; }
.dsh-hero--noimg { grid-template-columns: minmax(0, 1fr); }
.dsh-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--dsh-muted); margin-bottom: 10px; }
.dsh-hero__eyebrow a { color: var(--dsh-body); }
.dsh-hero__eyebrow a:hover { color: var(--dsh-accent); }
.dsh-hero__eyebrow svg { width: 15px; height: 15px; }
.dsh-hero__logo { height: 22px; width: auto; max-width: 96px; object-fit: contain; }
.dsh-hero__title { margin: 0; font-size: clamp(21px, 3vw, 29px); line-height: 1.28; font-weight: var(--dsh-h-weight, 700); color: var(--dsh-ink); overflow-wrap: anywhere; }
.dsh-hero__title .dsh-pn { font-size: 1em; color: var(--dsh-accent); }
.dsh-hero__rest { font-weight: 600; }
.dsh-hero__pnrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dsh-hero__pnrow .dsh-pn { font-size: 15px; }
.dsh-hero__title .dsh-copy { vertical-align: middle; font-size: 12px; font-weight: 500; }
.dsh-hero__desc { margin: 10px 0 0; color: var(--dsh-body); font-size: 15px; line-height: 1.55; }

.dsh-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--dsh-muted); }
.dsh-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.dsh-meta a { color: inherit; }
.dsh-meta a:hover { color: var(--dsh-accent); }
.dsh-meta svg { width: 14px; height: 14px; flex: 0 0 auto; }

.dsh-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dsh-fact { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--dsh-line-2); color: var(--dsh-muted); }
.dsh-fact b { font-weight: 600; color: var(--dsh-ink); font-family: var(--dsh-mono); }

.dsh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dsh-actions .dsh-btn svg { width: 16px; height: 16px; }

.dsh-hero__media { width: 220px; margin: 0; }
.dsh-hero__media a { display: block; border: 1px solid var(--dsh-line); border-radius: var(--dsh-radius); overflow: hidden; background: #fff; aspect-ratio: 1 / 1; }
.dsh-hero__media img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.dsh-hero__media figcaption { font-size: 11.5px; color: var(--dsh-faint); text-align: center; margin-top: 6px; }

/* Section nav ----------------------------------------------------------- */
.dsh-sheetnav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 14px 0 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.dsh-sheetnav a { flex: 0 0 auto; font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--dsh-line); border-radius: 999px; background: #fff; color: var(--dsh-body); text-decoration: none; white-space: nowrap; }
.dsh-sheetnav a:hover, .dsh-sheetnav a:focus-visible { border-color: var(--dsh-accent); color: var(--dsh-accent); }

/* Lists ------------------------------------------------------------------ */
.dsh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--dsh-body); line-height: 1.55; }
.dsh-list li { position: relative; padding-left: 20px; }
.dsh-list li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dsh-accent); opacity: .7; }
.dsh-list li.dsh-list__head { padding-left: 0; font-weight: 600; color: var(--dsh-ink); margin-top: 8px; grid-column: 1 / -1; }
.dsh-list li.dsh-list__head:first-child { margin-top: 0; }
.dsh-list li.dsh-list__head + li.dsh-list__head { margin-top: 0; font-weight: 500; color: var(--dsh-muted); }
.dsh-list li.dsh-list__head::before { display: none; }
.dsh-list--cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }

/* Overview + more ------------------------------------------------------- */
.dsh-overview__lead { font-size: 15.5px; color: var(--dsh-ink); }
.dsh-more { margin-top: 10px; }
.dsh-more > summary { cursor: pointer; color: var(--dsh-link); font-size: 13px; padding: 6px 0; list-style: none; }
.dsh-more > summary::-webkit-details-marker { display: none; }
.dsh-more > summary::before { content: "▸ "; }
.dsh-more[open] > summary::before { content: "▾ "; }

/* FAQ ------------------------------------------------------------------- */
.dsh-faq details { border-bottom: 1px solid var(--dsh-line-2); padding: 11px 0; }
.dsh-faq details:first-child { padding-top: 0; }
.dsh-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.dsh-faq summary { cursor: pointer; font-weight: 600; color: var(--dsh-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.dsh-faq summary::-webkit-details-marker { display: none; }
.dsh-faq summary::after { content: "+"; color: var(--dsh-muted); font-weight: 400; font-size: 18px; line-height: 1; }
.dsh-faq details[open] summary::after { content: "–"; }
.dsh-faq details p { margin: 8px 0 0; color: var(--dsh-body); line-height: 1.6; }

/* Aside details --------------------------------------------------------- */
.dsh-sheet .dsh-details td { font-family: var(--dsh-font); }
.dsh-sheet .dsh-details td.is-mono { font-family: var(--dsh-mono); }

/* Comments -------------------------------------------------------------- */
.dsh-comment--reply { margin-left: 26px; border-left: 3px solid var(--dsh-line); }
.dsh-comment__reply { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--dsh-link); font-size: 12.5px; cursor: pointer; }
.dsh-comment__reply:hover { text-decoration: underline; }

/* Layout: adapt to the room the page sidebars leave --------------------- */
.dsh-shell__main { container-type: inline-size; }
@container (max-width: 920px) {
  .dsh-sheet .dsh-detail--sidebar { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 580px) {
  .dsh-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .dsh-hero__media { order: -1; width: 100%; max-width: 240px; margin: 0 auto; }
  .dsh-comment--reply { margin-left: 12px; }
}
@media (max-width: 640px) {
  .dsh-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .dsh-hero__media { order: -1; width: 100%; max-width: 240px; margin: 0 auto; }
  .dsh-actions .dsh-btn { flex: 1 1 auto; justify-content: center; }
}
@media print {
  .dsh-sheetnav, .dsh-actions, .dsh-comments, .dsh-pdfsec { display: none !important; }
}
