.product-description {
  width: 100%;
  margin-top: 24px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.product-description section { margin-top: 36px; padding-top: 24px; border-top: 1px solid #c5dced; scroll-margin-top: 24px; }
.product-description h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 26px); line-height: 1.35; }
.product-description p { margin: 12px 0; }
.product-description ul { padding-left: 24px; }
.product-description li + li { margin-top: 8px; }
.product-description code { background: #dcebf7; border-radius: 4px; padding: 2px 5px; }

.product-navigation { display: flex; flex-wrap: wrap; gap: 8px; }
.product-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #c5dced; background: #f5faff; color: inherit; text-decoration: none; }
.product-navigation a:hover { background: #dbeaf6; }
.product-rich-text { max-width: 78ch; }
.product-rich-text pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #dcebf7; }
.product-rich-text blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid #9db8cd; }
.section-placeholder { color: #59778f; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-gallery figure { margin: 0; min-width: 0; }
.product-gallery img { display: block; width: 100%; height: auto; border: 1px solid #c5dced; }
.product-gallery figcaption { margin-top: 8px; color: #59778f; font-size: 14px; }

.product-header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.product-icon { display: block; width: 80px; height: 80px; object-fit: contain; }
.product-header h1 { font-size: clamp(24px, 3vw, 32px); }
.download-button { margin: 0; justify-self: end; }
.modrinth-notice { margin: 0; justify-self: end; color: #59778f; font-size: 14px; }
.back-button.download-button { background: #1bd96a; border-color: #159e4e; color: #10291c; font-weight: 600; }
.back-button.download-button:hover { background: #17c45f; }
.back-button.download-button:focus-visible { outline-color: #116b36; }
.compatibility-table { overflow-x: auto; }
.compatibility-table table { width: 100%; border-collapse: collapse; text-align: left; }
.compatibility-table caption { text-align: left; color: #59778f; margin-bottom: 10px; }
.compatibility-table th, .compatibility-table td { padding: 12px; border-bottom: 1px solid #c5dced; }
.compatibility-table th { font-weight: 600; }

@media (max-width: 640px) {
  .product-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .product-header { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .product-icon { width: 64px; height: 64px; }
  .download-button { grid-column: 2; justify-self: start; }
  .modrinth-notice { grid-column: 2; justify-self: start; }
}
