.material-guide {
  max-width: 69rem;
  padding-top: clamp(1.5rem, 3vw, 2.75rem);
}

.material-guide .crumb { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }

.material-guide .material-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.material-guide .material-heading .swp-lead {
  margin-top: .55rem;
  color: var(--ink);
}

.material-guide .material-meta,
.material-cover figcaption {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}

.material-meta { margin-top: .75rem; }

.material-guide .material-intro {
  max-width: 48.75rem;
  margin: clamp(1.25rem, 2.5vw, 1.875rem) 0 1.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.55;
}

.material-layout {
  display: grid;
  gap: 1.25rem;
  max-width: 48.75rem;
}

.material-prose {
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.material-prose section + section { margin-top: clamp(2rem, 4.5vw, 3.5rem); }

.material-prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.18;
  text-align: start;
  scroll-margin-top: 1.25rem;
}

.material-prose p + p { margin-top: .75rem; }
.material-prose ul { padding-inline-start: 1.35rem; }
.material-prose li + li { margin-top: .5rem; }

.material-contents {
  min-width: 0;
  align-self: start;
  border-block: 1px solid var(--page-line);
}

.material-contents summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  min-height: 44px;
  color: var(--page-navy);
  font-family: var(--font-heading);
  font-weight: 700;
}

.material-contents summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-inline-end: .125rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.material-contents [open] > summary::after { transform: rotate(225deg); }
.material-contents ul { list-style: none; padding: 0 0 .5rem; margin: 0; }

.material-contents a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

.material-contents a:hover, .material-contents a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.wear-comparison, .cost-example {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

.wear-comparison { table-layout: fixed; }
.wear-comparison thead th:first-child { width: 20%; }
.wear-comparison thead th:not(:first-child) { width: 40%; }

.wear-comparison th, .wear-comparison td, .cost-example th, .cost-example td {
  padding: .875rem .75rem;
  border-bottom: 1px solid var(--page-line);
  vertical-align: top;
  text-align: start;
}

.wear-comparison thead, .cost-example thead {
  color: var(--page-navy);
  background: var(--page-pale);
}

.material-grade-label { display: none; }
.material-cover { margin: 1.25rem 0 .5rem; }
.material-cover img { display: block; width: 100%; height: auto; }
.material-cover figcaption { margin-top: .5rem; }

.material-prose .material-formula {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--navy);
  background: var(--page-pale);
  color: var(--ink);
}

.cost-example caption {
  padding-bottom: .625rem;
  font-weight: 600;
  text-align: start;
}

.cost-example :is(th, td):not(:first-child) {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.material-result { margin-top: 1rem; }
.material-result strong { color: var(--ink); }

.material-prose .material-sources {
  padding-top: 1.5rem;
  border-top: 1px solid var(--page-line);
  font-size: 1rem;
}

.material-sources h2 { font-size: 1.25rem; }
.material-sources a { text-underline-offset: .16em; }
.material-quote { background: var(--page-pale); padding: clamp(1.125rem, 3vw, 2rem); }
.material-quote .swp-actions { margin-top: 1rem; }

@media (min-width: 64rem) {
  .material-layout {
    max-width: none;
    grid-template: "article contents" auto / minmax(0, 48.75rem) minmax(11rem, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .material-contents {
    grid-area: contents;
    position: sticky;
    top: 1.25rem;
    padding-inline-start: 1.25rem;
    border: 0;
    border-inline-start: 2px solid var(--page-line);
  }

  .material-contents summary { padding-top: 0; }
  .material-prose { grid-area: article; }
}

@media (max-width: 47.99rem) {
  .material-guide .material-intro, .material-prose { font-size: 1.0625rem; }
  .wear-comparison, .wear-comparison tbody { display: block; }

  .wear-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .wear-comparison tbody tr {
    display: grid;
    gap: .65rem;
    padding-bottom: 1rem;
  }

  .wear-comparison tbody th, .wear-comparison tbody td {
    border: 0;
    padding: 0;
  }

  .wear-comparison tbody th {
    padding: .6rem .75rem;
    background: var(--page-pale);
    color: var(--page-navy);
    font-family: var(--font-heading);
  }

  .wear-comparison tbody td { padding-inline: .75rem; }
  .material-grade-label { display: block; font-weight: 700; }
  .cost-example th, .cost-example td { padding: .65rem .4rem; }
}
