/*
 * Material pages, /knowledge-center/materials/<material>
 * (src/components/templates/Material.astro). Replaces the old material.css
 * and its own palette: everything here is the --dz-* tokens. Loaded after
 * /styles/home.css and /styles/stories.css (base rules, text styles, hero,
 * breadcrumb, the to-scale machine cards .hm-range) and before
 * /styles/site.css (tokens, bands, type classes, buttons).
 *
 * Calm rules (review/DESIGN-SPEC.md): monospace only for the figures in the
 * spec table; the 12px label style only for the table's row heads; one snow
 * band (the machines); no boxes. Mobile first.
 */

/* The full name sits beside the short one, smaller and quieter. */
.mt-full {
  display: block;
  margin-top: 8px;
  font-family: var(--dz-font);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--dz-steel);
}

/* ---------- The spec table ---------- */

.mt-specs {
  display: grid;
  gap: var(--hm-gap) 56px;
}
@media (min-width: 1024px) {
  .mt-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.mt-spec-group {
  display: grid;
  gap: 16px;
  min-width: 0;
}
/* A long table scrolls inside its own box, never the page. */
.mt-table-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mt-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--dz-line-strong);
}
.mt-table tr {
  border-top: 1px solid var(--dz-line-strong);
}
.mt-table th,
.mt-table td {
  padding: 12px 0;
  vertical-align: top;
  text-align: left;
}
.mt-table th {
  width: 48%;
  padding-right: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dz-steel);
}
.mt-table td {
  font-size: 15px;
  line-height: 1.45;
  color: var(--dz-ink);
}

/* ---------- The story line under the machines ---------- */

.mt-story {
  margin-top: var(--hm-gap);
}

/* ---------- The rest of the captured page ---------- */

.mt-sections {
  display: grid;
  gap: var(--hm-gap) 56px;
}
@media (min-width: 900px) {
  .mt-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mt-section {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--dz-line-strong);
}

/* Prose: body text, lists of short headed points. */
.mt-prose {
  display: grid;
  gap: 12px;
  max-width: 62ch;
  color: var(--dz-steel);
}
.mt-prose ul,
.mt-prose ol {
  display: grid;
  gap: 12px;
}
.mt-prose > ul > li:not(:has(h4)) {
  position: relative;
  padding-left: 18px;
}
.mt-prose > ul > li:not(:has(h4))::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dz-steel-light);
}
.mt-prose h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dz-ink);
}
.mt-prose li > p {
  margin-top: 2px;
}
