/* Metal material references and their in-page material navigation. */
.roofing-material-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 22px; margin-top: 28px; border: 1px solid #d7dfe0; border-radius: 8px; background: #f4f4ef; color: #17232b; font-size: .87rem; }
.roofing-material-nav strong { margin-right: auto; }
.roofing-material-nav a { color: #765100; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.roofing-material-nav a:focus-visible { outline: 3px solid #aa7600; outline-offset: 4px; }
.metal-roofing {
  --mr-ink: #17232b;
  --mr-muted: #50606a;
  --mr-line: #d7dfe0;
  --mr-paper: #f4f4ef;
  margin: 54px 0;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--mr-line);
  border-top: 5px solid #dda900;
  border-radius: 14px;
  background: var(--mr-paper);
  color: var(--mr-ink);
  overflow-wrap: anywhere;
  scroll-margin-top: 140px;
}
.metal-roofing *, .metal-roofing *::before, .metal-roofing *::after { box-sizing: border-box; }
.metal-roofing h2, .metal-roofing h3, .metal-roofing h4 {
  font-family: "Inter", Arial, sans-serif;
  color: var(--mr-ink); text-transform: none; letter-spacing: -.025em; line-height: 1.18;
}
.metal-roofing .mr-header { max-width: 900px; margin-bottom: 30px; }
.metal-roofing .mr-header h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); margin: 0 0 18px; text-wrap: balance; }
.metal-roofing .mr-eyebrow { color: #795500; font-size: .72rem; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; margin: 0 0 12px; }
.metal-roofing .mr-intro { color: var(--mr-muted); font-size: 1rem; line-height: 1.75; margin: 0; }
.metal-roofing .mr-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.metal-roofing .mr-story--panorama { grid-template-columns: 1fr; gap: 22px; }
.metal-roofing .mr-photo { min-width: 0; margin: 0; background: #fff; border: 1px solid var(--mr-line); border-radius: 8px; overflow: hidden; }
.metal-roofing .mr-image { display: grid; place-items: center; background: #e8ecec; }
.metal-roofing .mr-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.metal-roofing .mr-photo--landscape img { max-height: 390px; }
.metal-roofing .mr-photo--portrait img { max-height: 420px; }
.metal-roofing figcaption { padding: 12px 16px; color: var(--mr-muted); line-height: 1.6; }
.metal-roofing figcaption strong { display: block; font-size: .81rem; color: var(--mr-ink); }
.metal-roofing figcaption span { display: block; margin-top: 4px; font-size: .69rem; }
.metal-roofing a:not(.btn) { color: #765100; text-decoration: underline; text-underline-offset: 3px; }
.metal-roofing a:focus-visible { outline: 3px solid #aa7600; outline-offset: 4px; }
.metal-roofing .mr-label { margin: 0 0 10px; color: #66747b; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
.metal-roofing .mr-focus h3 { margin: 0 0 14px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.metal-roofing .mr-focus > p:not(.mr-label) { margin: 0; color: var(--mr-muted); font-size: .93rem; line-height: 1.7; }
.metal-roofing .mr-focus ol { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: mr-points; }
.metal-roofing .mr-focus li { counter-increment: mr-points; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--mr-line); font-size: .84rem; line-height: 1.6; }
.metal-roofing .mr-focus li::before { content: counter(mr-points, decimal-leading-zero); color: #805800; font-weight: 800; font-size: .75rem; padding-top: 2px; }
.metal-roofing .mr-story--panorama .mr-focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; }
.metal-roofing .mr-story--panorama .mr-focus > p, .metal-roofing .mr-story--panorama .mr-focus h3 { grid-column: 1; }
.metal-roofing .mr-story--panorama .mr-focus ol { grid-column: 2; grid-row: 1 / 4; margin: 0; }
.metal-roofing .mr-catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin: 36px 0 22px; padding-top: 30px; border-top: 1px solid var(--mr-line); }
.metal-roofing .mr-catalog-heading h3 { margin: 0; font-size: 1.7rem; }
.metal-roofing .mr-catalog-heading > p { margin: 0; max-width: 340px; color: var(--mr-muted); font-size: .85rem; line-height: 1.65; }
.metal-roofing .mr-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.metal-roofing .mr-system { display: flex; flex-direction: column; min-width: 0; padding: 24px 22px; border: 1px solid var(--mr-line); border-radius: 8px; background: #fff; color: var(--mr-muted); }
.metal-roofing .mr-system-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.metal-roofing .mr-number { font-size: 1.85rem; line-height: 1; font-weight: 850; color: #bd8c00; }
.metal-roofing .mr-system-top .mr-label { margin: 0; }
.metal-roofing .mr-system h4 { margin: 0 0 12px; font-size: 1.35rem; }
.metal-roofing .mr-system > p { margin: 0 0 15px; font-size: .85rem; line-height: 1.75; }
.metal-roofing .mr-system .mr-model { font-size: .77rem; line-height: 1.5; color: #3c4a53; }
.metal-roofing .mr-model strong { display: block; font-size: .95rem; margin-top: 3px; }
.metal-roofing .mr-system .mr-consideration { padding-top: 14px; border-top: 1px solid #e5e8e9; }
.metal-roofing .mr-links { display: flex; flex-direction: column; align-items: start; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 750; }
.metal-roofing .mr-detail-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 26px; }
.metal-roofing .mr-photo--detail.mr-photo--portrait img { max-height: 280px; }
.metal-roofing .mr-warranty { padding: 22px; background: #e8eceb; border-radius: 8px; }
.metal-roofing .mr-warranty h3 { margin: 0 0 12px; font-size: 1.2rem; }
.metal-roofing .mr-warranty p { color: #4c5b63; font-size: .82rem; line-height: 1.75; margin: 0 0 10px; }
.metal-roofing .mr-warranty p:last-child { margin: 0; }
.metal-roofing .mr-photo-note { color: var(--mr-muted); font-size: .73rem; line-height: 1.7; margin: 20px 0; }
.metal-roofing .mr-next { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid var(--mr-line); padding-top: 24px; }
.metal-roofing .mr-next strong { font-size: 1rem; }
.metal-roofing .mr-next p { font-size: .85rem; line-height: 1.7; margin: 5px 0 0; color: var(--mr-muted); }
.metal-roofing .mr-next .btn { flex-shrink: 0; text-align: center; white-space: normal; }
.metal-roofing--contrast { --mr-ink: #fff; --mr-muted: #ced8de; --mr-line: #43505a; --mr-paper: #18252e; }
.metal-roofing--contrast .mr-eyebrow, .metal-roofing--contrast .mr-focus li::before { color: #ffca56; }
.metal-roofing--contrast .mr-focus > .mr-label { color: #abbcc5; }
.metal-roofing--contrast .mr-system, .metal-roofing--contrast .mr-photo, .metal-roofing--contrast .mr-warranty { --mr-ink: #17232b; --mr-muted: #50606a; --mr-line: #d7dfe0; }
.metal-roofing--rows .mr-systems { grid-template-columns: 1fr; }
.metal-roofing--rows .mr-system { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); column-gap: 28px; }
.metal-roofing--rows .mr-system-top, .metal-roofing--rows .mr-system h4, .metal-roofing--rows .mr-model { grid-column: 1; }
.metal-roofing--rows .mr-system > p:not(.mr-model), .metal-roofing--rows .mr-links { grid-column: 2; }
.metal-roofing--rows .mr-system > p:not(.mr-model):not(.mr-consideration) { grid-row: 1 / 3; }
.metal-roofing--rows .mr-system .mr-consideration { grid-row: 3; }
.metal-roofing--rows .mr-links { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
.metal-roofing--spotlight { border-top-color: #84969e; background: #edf1f2; }
.metal-roofing--spotlight .mr-story:not(.mr-story--panorama) .mr-photo { order: 2; }
.metal-roofing--spotlight .mr-story:not(.mr-story--panorama) .mr-focus { order: 1; }
@media (max-width: 1000px) {
  .metal-roofing .mr-story, .metal-roofing .mr-detail-row { grid-template-columns: 1fr; }
  .metal-roofing .mr-systems { grid-template-columns: 1fr; }
  .metal-roofing .mr-system { display: flex; }
  .metal-roofing .mr-photo--landscape img { max-height: 450px; }
  .metal-roofing .mr-story:not(.mr-story--panorama) .mr-photo { order: 0; }
  .metal-roofing .mr-story:not(.mr-story--panorama) .mr-focus { order: 0; }
  .metal-roofing .mr-links { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 650px) {
  .metal-roofing { padding: 20px; margin-block: 32px; }
  .metal-roofing .mr-story--panorama .mr-focus { display: block; }
  .metal-roofing .mr-story--panorama .mr-focus ol { margin-top: 18px; }
  .metal-roofing .mr-catalog-heading, .metal-roofing .mr-next { align-items: start; flex-direction: column; gap: 16px; }
  .metal-roofing .mr-catalog-heading > p { max-width: none; }
  .metal-roofing .mr-system { padding: 22px 18px; }
  .metal-roofing .mr-next .btn { width: 100%; }
}
