/* Catalog and grade pages */
.mp-page {
  --mp-blue: #214cce;
  --mp-ink: #151b23;
  --mp-copy: #44515c;
  --mp-line: #d4dbe1;
  --mp-pale: #f3f5f7;
  --mp-pad: var(--gutter, clamp(1.25rem, 4.55vw, 5.25rem));
  color: var(--mp-ink);
  background: #fff;
  font-family: var(--sans);
}
.mp-wrap { width: 100%; max-width: 1770px; margin: 0 auto; padding-inline: var(--mp-pad); }
.mp-page :is(a,button,input,[tabindex]):focus-visible { outline: 3px solid #387bfa; outline-offset: 4px; }
.mp-page :is(h1,h2,h3) { color: inherit; }
.mp-page h2 { font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1.16; letter-spacing: -.055em; font-weight: 760; }
.mp-page h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.35; }
.mp-page .mp-index-label {
  font: 700 .78rem/1.35 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: .115em; margin: 0 0 1.05rem; color: inherit;
}
.mp-page .mp-blue { color: var(--mp-blue); }
.mp-hero { position: relative; isolation: isolate; overflow: hidden; background: #14191e; color: #fff; }
.mp-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; z-index: -2; }
.mp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(7,13,18,.82),rgba(7,13,18,.35) 38%,transparent 72%); }
.mp-hero-inner {
  min-height: clamp(26rem, 41vw, 39.5rem); padding-block: clamp(3.5rem, 6vw, 6.5rem);
  display: flex; flex-flow: column; align-items: flex-start; justify-content: flex-end;
}
.mp-hero h1 { margin: 0; font-size: clamp(3.7rem, 6.1vw, 6.1rem); font-weight: 800; line-height: 1.03; letter-spacing: -.063em; color: white; }
.mp-hero .mp-index-label { margin-bottom: 1.25rem; }
.mp-hero-desc { font-size: clamp(.96rem,1.3vw,1.19rem); font-weight: 620; margin: 1.4rem 0 1.55rem; line-height: 1.6; }
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.45rem;
  border: 1px solid var(--mp-blue); border-radius: 100px; background: var(--mp-blue); color: white; font: 650 .94rem/1.35 var(--sans);
  text-align: center; transition: background-color .18s, border-color .18s, color .18s;
}
.mp-btn:hover { color: white; background: #133898; border-color: #133898; }
.mp-btn-line { color: var(--mp-ink); background: transparent; border-color: #a4aeb9; }
.mp-btn-line:hover { color: var(--mp-blue); background: #fff; border-color: var(--mp-blue); }
.mp-series { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: #f7f8fa; border-block: 1px solid var(--mp-line); }
.mp-series a {
  color: var(--mp-ink); min-height: 72px; padding: 1.1rem clamp(1.1rem,3.1vw,3.6rem); border-right: 1px solid var(--mp-line);
  display: flex; align-items: center; justify-content: space-between; gap: .65rem; font-size: clamp(1rem,1.45vw,1.35rem); font-weight: 700; line-height: 1.3;
  transition: background-color .18s, color .18s;
}
.mp-series a:first-child { padding-left: max(var(--mp-pad),calc((100vw - 1770px) / 2 + var(--mp-pad))); }
.mp-series a:last-child { border-right: 0; }
.mp-series a:is(:hover,[aria-current="true"]) { background: #e8edf9; color: var(--mp-blue); }
.mp-series img, .mp-spec-link img { flex: none; }
.mp-catalog, .mp-detail-body { padding-block: clamp(3.8rem,7vw,7rem); }
.mp-page :is(#catalog,#properties) { scroll-margin-top: 0; }
.mp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.mp-tools { display: flex; position: relative; align-items: center; gap: 1rem; border-bottom: 1px solid #7b8794; padding-bottom: .35rem; }
.mp-tools label { font-weight: 650; font-size: .875rem; }
.mp-tools input { min-width: 0; max-width: 18rem; width: 20vw; padding: .45rem .15rem; border: 0; color: var(--mp-ink); background: transparent; font: inherit; }
.mp-tools input::placeholder { color: #64707c; }
.mp-tools button { color: var(--mp-blue); background: none; border: 0; padding: .4rem; font: 600 .875rem/1.3 var(--sans); cursor: pointer; }
.mp-resultbar { margin-top: 2.75rem; padding-bottom: .8rem; color: var(--mp-copy); font-size: .89rem; border-bottom: 2px solid var(--mp-ink); }
.mp-empty a:not(.mp-btn) { color: var(--mp-blue); font-weight: 650; }
.mp-page :is(.mp-crumb,.mp-grade-links,.mp-table,.mp-grade h3) a:hover { color: var(--mp-blue); text-decoration: underline; text-underline-offset: .24em; }
.mp-grade { display: grid; grid-template-columns: minmax(13rem,.95fr) minmax(0,1.5fr) minmax(7.8rem,.45fr); gap: clamp(1.3rem,4.4vw,5rem); border-bottom: 1px solid var(--mp-line); padding: 2rem 0; align-items: start; }
.mp-grade-family { color: var(--mp-blue); font: 620 .88rem/1.3 var(--sans); margin-bottom: .58rem; }
.mp-grade h3 { font-size: clamp(1.35rem,1.85vw,1.95rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.mp-origin { color: var(--mp-copy); font-size: .88rem; margin-top: .65rem; }
.mp-grade-description { color: var(--mp-copy); line-height: 1.78; }
.mp-grade-description strong { display: block; margin-bottom: .38rem; color: var(--mp-ink); font-size: 1rem; }
.mp-grade-description p { font-size: .97rem; }
.mp-grade-links { display: flex; flex-direction: column; align-items: flex-start; gap: .46rem; font-size: .86rem; color: var(--mp-copy); }
.mp-grade-links .mp-spec-link { display: inline-flex; align-items: center; gap: .48rem; color: var(--mp-ink); font-size: .98rem; font-weight: 700; }
.mp-empty { padding-block: 4rem; }
.mp-empty a { display: inline-flex; margin-top: .9rem; }
.mp-note { color: var(--mp-copy); }
.mp-table-scroll { max-width: 100%; overflow: auto; }
.mp-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.65; text-align: left; }
.mp-table :is(th,td) { overflow-wrap: break-word; padding: .95rem .8rem; border-bottom: 1px solid var(--mp-line); }
.mp-table thead th { color: var(--mp-copy); border-top: 1px solid var(--mp-line); font-size: .875rem; font-weight: 650; background: #e9edf0; }
.mp-table tbody th { font-weight: 650; }
.mp-detail-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(27rem,39vw,39rem); background: #f1f3f5; }
.mp-detail-intro {
  padding: 1.75rem var(--mp-pad) clamp(2.5rem,4.5vw,5rem) max(var(--mp-pad),calc((100vw - 1770px) / 2 + var(--mp-pad)));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem;
}
.mp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; font-size: .83rem; color: var(--mp-copy); }
.mp-detail-title { padding-block: .5rem; }
.mp-detail-title .mp-index-label { color: var(--mp-blue); }
.mp-detail-title h1 { margin: 0; font-size: clamp(2.5rem,4.5vw,5rem); font-weight: 780; line-height: 1.09; letter-spacing: -.065em; overflow-wrap: anywhere; }
.mp-detail-metric { margin-top: 1.1rem; color: var(--mp-copy); font-size: clamp(1rem,1.45vw,1.35rem); }
.mp-actions { display: flex; flex-wrap: wrap; gap: .63rem .75rem; }
.mp-detail-picture { position: relative; min-height: 100%; overflow: hidden; }
.mp-detail-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-detail-body { display: grid; grid-template-columns: 1fr .96fr; gap: clamp(2.5rem,7vw,8.5rem); align-items: start; }
.mp-detail-body > section { min-width: 0; }
.mp-detail-body h2 { font-size: clamp(1.9rem,3vw,2.8rem); margin-bottom: 1.5rem; }
.mp-lead { font-size: clamp(1.06rem,1.35vw,1.24rem); line-height: 1.8; }
.mp-features { padding: 0; margin: 1.7rem 0 0; list-style: none; }
.mp-features li { position: relative; padding: .82rem 0 .82rem 1.12rem; color: var(--mp-copy); border-top: 1px solid var(--mp-line); }
.mp-features li::before { content: ""; position: absolute; top: 1.48rem; left: 0; width: .35rem; height: .35rem; background: var(--mp-blue); }
.mp-usage { background: var(--mp-pale); padding: 1.35rem 1.5rem; margin-top: 1.75rem; }
.mp-usage h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.mp-usage p { color: var(--mp-copy); }
.mp-facts { margin-bottom: 1.65rem; }
.mp-facts div { display: grid; grid-template-columns: minmax(5.25rem, .35fr) 1fr; gap: 1rem; border-top: 1px solid var(--mp-line); padding: .68rem 0; }
.mp-facts dt { font-size: .89rem; color: var(--mp-copy); }
.mp-facts dd { font-size: .97rem; }
.mp-note { font-size: .84rem; margin: .95rem 0 1.55rem; }
@media (max-width: 850px) {
  .mp-grade { grid-template-columns: .9fr 1.3fr; gap: 1rem 2.2rem; }
  .mp-grade-links { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 1.25rem; }
  .mp-series a { font-size: 1rem; }
  .mp-detail-body { grid-template-columns: 1fr; }
  .mp-detail-intro { gap: 1.4rem; }
}
@media (max-width: 650px) {
  .mp-hero-inner { min-height: 28rem; padding-block: 3rem; }
  .mp-hero h1 { font-size: clamp(3rem,10.8vw,4rem); }
  .mp-hero-photo { object-position: 59% center; }
  .mp-hero::before { background: linear-gradient(90deg,rgba(5,10,15,.71),rgba(5,10,15,.2) 86%); }
  .mp-series { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mp-series a,.mp-series a:first-child { padding: .85rem var(--mp-pad); min-height: 3.55rem; }
  .mp-series a:nth-child(2n) { border-right: 0; }
  .mp-series a:nth-child(-n+2) { border-bottom: 1px solid var(--mp-line); }
  .mp-series img { width: .95rem; }
  .mp-catalog { padding-block: 3.6rem; }
  .mp-section-head { display: block; }
  .mp-tools { margin-top: 1.3rem; }
  .mp-tools input { flex: 1; width: 10rem; max-width: none; }
  .mp-resultbar { margin-top: 1.75rem; }
  .mp-grade { display: block; padding-block: 1.45rem; }
  .mp-grade-description { margin: 1rem 0; }
  .mp-grade-links a { line-height: 2; }
  .mp-detail-hero { display: flex; flex-direction: column; min-height: auto; }
  .mp-detail-intro { padding: 1rem var(--mp-pad) 1.8rem; }
  .mp-detail-picture { width: 100%; min-height: 0; height: clamp(12rem,56vw,19rem); }
  .mp-detail-title .mp-index-label { margin-bottom: .75rem; }
  .mp-table :is(th,td) { padding: .7rem .5rem; }
}
@media (prefers-reduced-motion:reduce) { .mp-page * { transition-duration: 0s !important; } }
