@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.cr-material-tiers {
  font-family: Inter, var(--font-sans);
  color: var(--ink);
  --mt-raw: #6e6e6f;
  --mt-raw-label: #fff;
  --mt-yarn: #fff;
  --mt-stripe: #c7c7cc;
  --mt-yarn-label: #171719;
  --mt-fabric: #3c3c3d;
  --mt-fabric-label: #fff;
  --mt-assembly: #a6a6aa;
  --mt-assembly-label: #171719;
}
html[data-theme="dark"] .cr-material-tiers {
  --mt-raw: #8e8e93;
  --mt-raw-label: #171719;
  --mt-yarn: #2c2c2e;
  --mt-stripe: #636366;
  --mt-yarn-label: #fff;
  --mt-fabric: #e5e5ea;
  --mt-fabric-label: #171719;
  --mt-assembly: #48484a;
  --mt-assembly-label: #fff;
}
.cr-material-tiers .mt-heading h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.cr-material-tiers .mt-heading p { margin: 8px 0 0; font-size: 14px; color: var(--gray); }
.cr-material-tiers .mt-callout { display: flex; align-items: center; gap: 22px; margin: 34px 0 20px; }
.mt-callout > strong { font-size: clamp(40px, 5cqi, 54px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.mt-callout > div { font-size: 14px; line-height: 1.5; }
.mt-callout span { display: block; color: var(--gray); font-size: 13px; margin-top: 2px; }
.mt-callout .mt-range { display: inline; font: inherit; color: inherit; white-space: nowrap; margin: 0; }
.cr-material-tiers .mt-bracket { display: block; min-width: 0; max-width: none; height: 18px; overflow: visible; margin-bottom: 10px; }
.mt-bar { display: flex; width: 100%; height: 76px; gap: 0; }
.mt-segment { position: relative; flex: none; min-width: 0; display: flex; align-items: center; justify-content: center; outline: none; }
.mt-fill { display: block; position: absolute; inset: 0; }
.mt-segment:first-child .mt-fill { border-radius: 5px 0 0 5px; }
.mt-segment:last-child .mt-fill { border-radius: 0 5px 5px 0; }
.mt-tier-4 { --mt-fill: var(--mt-raw); --mt-label: var(--mt-raw-label); }
.mt-tier-3 { --mt-fill: repeating-linear-gradient(45deg, var(--mt-yarn) 0 4px, var(--mt-stripe) 4px 6px); --mt-label: var(--mt-yarn-label); }
.mt-tier-2 { --mt-fill: var(--mt-fabric); --mt-label: var(--mt-fabric-label); }
.mt-tier-1 { --mt-fill: var(--mt-assembly); --mt-label: var(--mt-assembly-label); }
.mt-fill, .mt-swatch { background: var(--mt-fill); }
.mt-percentage { position: relative; color: var(--mt-label); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-segment:focus-visible::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--ink); border-radius: 5px; pointer-events: none; z-index: 1; }
.mt-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.mt-legend-item { min-width: 0; transition: opacity .15s; }
.mt-swatch { display: block; width: 28px; height: 18px; border-radius: 2px; margin-bottom: 12px; }
.cr-material-tiers .mt-legend h4 { margin: 0; min-height: 42px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.cr-material-tiers .mt-quantity { font-size: 14px; margin: 8px 0; font-weight: 600; line-height: 1.5; }
.mt-quantity span { font-weight: 400; white-space: nowrap; }
.cr-material-tiers .mt-description { font-size: 13px; margin: 0; color: var(--gray); line-height: 1.6; }
.cr-material-tiers > figcaption { margin-top: 28px; font-size: 12px; line-height: 1.5; color: var(--gray); }
.cr-material-tiers:has(:is(.mt-segment, .mt-legend-item)[data-tier="4"]:is(:hover, :focus)) :is(.mt-segment, .mt-legend-item):not([data-tier="4"]),
.cr-material-tiers:has(:is(.mt-segment, .mt-legend-item)[data-tier="3"]:is(:hover, :focus)) :is(.mt-segment, .mt-legend-item):not([data-tier="3"]),
.cr-material-tiers:has(:is(.mt-segment, .mt-legend-item)[data-tier="2"]:is(:hover, :focus)) :is(.mt-segment, .mt-legend-item):not([data-tier="2"]),
.cr-material-tiers:has(:is(.mt-segment, .mt-legend-item)[data-tier="1"]:is(:hover, :focus)) :is(.mt-segment, .mt-legend-item):not([data-tier="1"]) { opacity: .38; }
@container (max-width: 650px) {
  .mt-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .cr-material-tiers .mt-legend h4 { min-height: 0; }
}
@container (max-width: 520px) {
  .mt-tier-1 .mt-percentage { position: absolute; right: 0; top: calc(100% + 10px); color: var(--ink); }
  .mt-legend { margin-top: 48px; }
}
@media (max-width: 479px) {
  .cr-material-tiers .mt-heading h3 { font-size: 19px; }
  .cr-material-tiers .mt-callout { gap: 16px; align-items: flex-start; }
  .mt-callout > strong { font-size: 40px; }
  .mt-callout > div { font-size: 13px; }
  .mt-bar { height: 64px; }
  .mt-percentage { font-size: 13px; }
  .mt-legend { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .mt-legend-item { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
  .mt-swatch { grid-row: 1 / 4; margin-top: 2px; margin-bottom: 0; }
  .mt-legend-item :is(h4, p) { grid-column: 2; }
  .cr-material-tiers .mt-quantity { margin: 4px 0; }
}

.mt-legend-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; }

@media (max-width: 650px) {
  .cr-material-tiers .mt-heading h3 { font-size: 19px; }
  .cr-material-tiers .mt-callout { gap: 16px; align-items: flex-start; flex-wrap: wrap; }
  .mt-callout > strong { font-size: 40px; }
  .mt-callout > div { font-size: 14px; }
  .mt-bar { height: 64px; }
  .mt-percentage { font-size: 13px; }
  .mt-tier-1 .mt-percentage { position: absolute; right: 0; top: calc(100% + 10px); color: var(--ink); }
  .mt-legend { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
  .mt-legend-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .mt-swatch { grid-row: 1 / 4; margin: 2px 0 0; }
  .mt-legend-item :is(h4, p) { grid-column: 2; }
  .cr-material-tiers .mt-legend h4 { min-height: 0; }
  .cr-material-tiers .mt-quantity { margin: 4px 0; }
  .mt-quantity span { white-space: normal; }
}
