.module-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 28px 68px;
}

.module-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.module-breadcrumb a, .module-section a:not(.button) {
  color: #125ca8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.module-hero {
  padding: clamp(24px, 5vw, 52px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.module-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.module-hero .module-summary {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.58;
}

.module-actions, .module-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.module-actions { margin-top: 20px; }
.module-actions .button { max-width: 100%; white-space: normal; text-align: center; }
.module-meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.module-meta code, .module-install code { overflow-wrap: anywhere; }
.module-disabled { font-weight: 650; color: var(--muted); }

.module-grid, .module-gallery {
  display: grid;
  gap: 18px;
}

.module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.module-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-card, .module-panel, .module-preview-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 25px);
  min-width: 0;
}

.module-card { display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }
.module-card .module-actions { margin-top: auto; padding-top: 12px; }
.module-card .module-meta { margin-top: 8px; font-size: 13px; }
.module-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.module-section h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.module-card p, .module-section p, .module-section li { color: var(--muted); line-height: 1.6; }
.module-card p { margin: 0; font-size: 15px; line-height: 1.48; }
.module-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.module-section { margin-top: 30px; }
.module-section p { margin: 0 0 12px; }
.module-section p:last-child { margin-bottom: 0; }
.module-section p + h2 { margin-top: 22px; }
.module-section ul, .module-section ol { padding-inline-start: 22px; margin: 10px 0 0; }
.module-section li + li { margin-top: 8px; }
.module-section li p { margin: 2px 0 0; }

.module-gallery figure { margin: 0; min-width: 0; }
.module-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.module-gallery figcaption { margin-top: 7px; color: var(--muted); font-size: 14px; }
.module-preview-notice { margin-bottom: 16px; border-color: #e4c28b; background: #fff8ec; }
.module-install { scroll-margin-top: 105px; }
.module-install pre { margin: 12px 0; padding: 12px; background: var(--soft); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.module-install-steps > li + li { margin-top: 24px; }
.module-install-figure { width: min(100%, 880px); margin: 12px 0 0; }
.module-install-figure > a { display: block; }
.module-install-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 9px; }
.module-install-figure figcaption { margin-top: 6px; font-size: 14px; }
.module-faq details { padding-block: 12px; border-top: 1px solid var(--line); }
.module-faq details:last-child { padding-bottom: 0; }
.module-faq summary { cursor: pointer; font-weight: 650; }
.module-faq details p { margin-top: 8px; }

@media (max-width: 960px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .module-shell { width: calc(100% - 28px); padding-block: 18px 42px; }
  .module-hero { border-radius: 14px; }
  .module-breadcrumb { margin-bottom: 16px; }
  .module-hero .module-actions { align-items: flex-start; flex-direction: column; }
  .module-grid, .module-gallery { grid-template-columns: minmax(0, 1fr); }
}
