/* DG artwork library: restrained technical layout using the site palette. */
.dg-hero { padding: 38px 0 0; }
.dg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); min-height: 420px; border: 1px solid var(--line); background: var(--surface); }
.dg-hero-copy { align-self: center; padding: clamp(34px, 4.4vw, 64px); }
.dg-hero-copy h1 { max-width: 720px; margin-bottom: 20px; font-size: clamp(40px, 4.2vw, 58px); }
.dg-hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--text-muted); font-size: 18px; }
.dg-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 32px; }
.dg-hero-aside { display: flex; flex-direction: column; justify-content: center; padding: 42px; background: var(--text); color: #fff; }
.dg-aside-index { color: #b6d2d7; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.dg-hero-aside strong { display: block; margin: 14px 0 0; font-size: clamp(76px, 10vw, 132px); font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.dg-hero-aside > span:not(.dg-aside-index) { max-width: 220px; font-weight: 700; line-height: 1.3; }
.dg-aside-rule { width: 48px; height: 3px; margin: 28px 0 20px; background: var(--accent); }
.dg-hero-aside p { margin: 0; color: #c5d6d9; font-size: 14px; line-height: 1.8; }

.dg-overview { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.dg-overview-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.dg-overview p { margin: 0; color: var(--text-muted); }
.dg-overview p strong { color: var(--text); }
.dg-overview-actions { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.dg-overview a, .dg-guide-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; white-space: nowrap; }
.dg-overview a span, .dg-guide-link span { padding-left: 8px; }

.dg-section { border-bottom: 1px solid var(--line); }
.dg-section-soft { background: var(--surface-soft); }
.dg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dg-section-head h2, .dg-guide h2, .dg-limits h2 { margin-bottom: 14px; font-size: clamp(34px, 3.8vw, 50px); }
.dg-section-head p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--text-muted); font-size: 17px; }
.dg-section-count { padding: 7px 0; border-top: 2px solid var(--accent); color: var(--text-muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

.dg-search { max-width: 720px; margin-bottom: 30px; }
.dg-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.dg-search-control { display: flex; border: 1px solid #819da5; border-radius: var(--radius-control); background: var(--surface); }
.dg-search-control:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dg-search-control input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text); }
.dg-search-control input:focus-visible { outline: 0; }
.dg-search-control input::placeholder { color: #546d73; opacity: 1; }
.dg-search-control button { margin: 4px; padding: 0 16px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--accent-strong); font-weight: 800; cursor: pointer; }
.dg-search-help, .dg-search-result { min-height: 22px; margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.dg-search-result:empty { display: none; }

.dg-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dg-product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dg-product-art { display: grid; place-items: center; min-height: 182px; padding: 20px; border-bottom: 1px solid var(--line); background: #f1f5f5; }
.dg-product-art img { width: min(100%, 320px); max-height: 150px; object-fit: contain; }
.dg-product-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.dg-product-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.dg-product-head h3 { margin: 0; font-size: 24px; }
.dg-product-formula { margin: 0 0 6px; color: var(--accent-strong); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.dg-un { flex: 0 0 auto; max-width: 180px; padding: 6px 8px; border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.3; text-align: right; }
.dg-status { margin: 12px 0 16px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.dg-status-review { color: #9a441d; }
.dg-spec { margin: 0; border-top: 1px solid var(--line); }
.dg-spec div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dg-spec dt { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dg-spec dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.dg-product-note { margin: 14px 0; color: var(--text-muted); font-size: 14px; }
.dg-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 18px; }
.dg-download { min-width: 0; min-height: 66px; display: flex; flex-direction: column; justify-content: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--text); line-height: 1.2; text-decoration: none; }
.dg-download:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.dg-download:active { transform: translateY(1px); }
.dg-download-primary { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
.dg-download-primary:hover { background: var(--accent); color: #fff; }
.dg-download span { font-size: 12px; font-weight: 800; }
.dg-download small { margin-top: 4px; font-size: 11px; opacity: .88; }
.dg-related { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; font-weight: 800; }
.dg-related a { min-height: 44px; display: inline-flex; align-items: center; }
.dg-sources { margin-top: 8px; font-size: 13px; }
.dg-sources summary { padding: 10px 0; color: var(--text-muted); cursor: pointer; font-weight: 700; }
.dg-sources ul { margin: 0 0 6px; padding-left: 20px; }
.dg-sources li { margin: 5px 0; }
.dg-review-art { width: min(100%, 320px); min-height: 140px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 2px dashed #a7b8bb; background: #fff; color: var(--text-muted); }
.dg-review-art span { font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.dg-review-art strong { color: var(--text); font-size: 44px; line-height: 1.2; }
.dg-review-art small { font-size: 12px; }
.dg-review-note { margin: auto 0 0; padding: 18px 0 0; color: #7d381a; font-size: 14px; font-weight: 700; }
.dg-empty { padding: 34px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.dg-empty h3 { margin-bottom: 8px; }
.dg-empty p { margin: 0 0 22px; color: var(--text-muted); }

.dg-artwork-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dg-artwork { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dg-artwork-image { min-height: 170px; display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--line); background: #f7f9f9; }
.dg-artwork-image img { width: 112px; max-height: 134px; object-fit: contain; }
.dg-artwork-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.dg-artwork-kicker { margin: 0 0 8px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dg-artwork h3 { margin: 0 0 8px; font-size: 21px; }
.dg-artwork-content > p:not(.dg-artwork-kicker) { margin: 0; color: var(--text-muted); font-size: 13px; }
.dg-artwork-content .dg-artwork-note { margin-top: 10px !important; color: var(--text); font-weight: 700; }
.dg-downloads-small { grid-template-columns: 1fr; gap: 6px; }
.dg-downloads-small .dg-download { min-height: 44px; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
.dg-downloads-small .dg-download small { margin: 0; text-align: right; }

.dg-guide { background: var(--text); color: #fff; }
.dg-guide-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.dg-guide .eyebrow { color: #8bd1d7; }
.dg-guide h2 { color: #fff; }
.dg-guide p:not(.eyebrow) { max-width: 600px; color: #d1e0e2; }
.dg-guide-link { margin-top: 14px; color: #fff; text-decoration-color: #8bd1d7; }
.dg-guide-link:hover { color: #b4e8ec; }
.dg-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.dg-guide li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; padding: 15px 0; border-top: 1px solid #557078; counter-increment: guide; }
.dg-guide li::before { grid-row: span 2; content: counter(guide, decimal-leading-zero); color: #8bd1d7; font-size: 14px; font-weight: 800; }
.dg-guide li strong { color: #fff; }
.dg-guide li span { color: #c5d6d9; font-size: 14px; }

.dg-limits { background: var(--surface-soft); }
.dg-limits-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr); gap: 48px; }
.dg-limits p:not(.eyebrow) { max-width: 780px; margin-bottom: 0; color: var(--text-muted); }
.dg-limits nav { display: flex; flex-direction: column; }
.dg-limits nav a { display: flex; justify-content: space-between; gap: 16px; min-height: 50px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.dg-limits nav a:hover { text-decoration: underline; }

.dg-product[hidden], .dg-empty[hidden], .dg-search-control button[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .dg-hero-grid, .dg-guide-grid { grid-template-columns: 1fr; }
  .dg-hero-aside { display: none; }
  .dg-artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dg-products, .dg-artwork-grid, .dg-limits-inner { grid-template-columns: 1fr; }
  .dg-overview-inner, .dg-section-head { align-items: start; flex-direction: column; }
  .dg-section-head { gap: 16px; }
  .dg-hero { padding-top: 16px; }
  .dg-hero-copy { padding: 32px 24px; }
  .dg-hero-copy h1 { font-size: clamp(36px, 10vw, 48px); }
  .dg-hero-actions { align-items: stretch; flex-direction: column; }
  .dg-hero-actions .button { width: 100%; }
  .dg-overview a { white-space: normal; }
}
@media (max-width: 430px) {
  .dg-product-body { padding: 18px; }
  .dg-product-head { flex-direction: column; gap: 10px; }
  .dg-un { max-width: none; text-align: left; }
  .dg-spec div { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .dg-downloads { grid-template-columns: 1fr; padding-top: 12px; }
  .dg-download { min-height: 46px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .dg-download small { margin-top: 0; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-download { transition: none; }
}
