/* The square-profile product page uses Captrad's shared typography and controls. */
.modular-handrail { color: var(--ink); }
.modular-handrail h1, .modular-handrail h2, .modular-handrail h3 { text-wrap: balance; }
.modular-handrail h2 { color: var(--navy-900); }
.modular-handrail p, .modular-handrail li, .modular-handrail td { overflow-wrap: break-word; }
.modular-handrail .section-heading { max-width: 780px; text-align: left; }
.modular-handrail .button { text-align: center; }
.modular-handrail :target { scroll-margin-top: 110px; }

.mh-hero { color: #fff; background: linear-gradient(125deg, var(--navy-950), var(--navy-900) 64%, #075294); }
.mh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.75rem, 6vw, 6rem); }
.mh-hero-copy { min-width: 0; }
.mh-hero .eyebrow { color: #85ccff; }
.mh-hero h1 { max-width: 780px; margin: .45rem 0 1.15rem; color: #fff; font-size: clamp(3rem, 5.2vw, 5.7rem); line-height: .94; }
.mh-hero-copy > p:not(.eyebrow, .mh-breadcrumb) { max-width: 640px; color: #dbeaf8; }
.mh-hero-copy .mh-lede { color: #fff !important; font-size: clamp(1.12rem, 1.6vw, 1.4rem); font-weight: 650; line-height: 1.5; }
.mh-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.mh-button-outline { color: #fff; border: 1px solid rgb(255 255 255 / .65); background: transparent; }
.mh-button-outline:hover, .mh-button-outline:focus-visible { color: var(--navy-900); background: #fff; }
.mh-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: 2rem 0 0; color: #c5daee !important; font-size: .77rem; }
.mh-breadcrumb a { color: #e0f2ff; }
.mh-hero-image { min-width: 0; margin: 0; padding: clamp(1.5rem, 3vw, 3rem); color: var(--navy-900); background: #f5f8fc; border-radius: 20px; box-shadow: 0 24px 46px rgb(0 11 32 / .24); }
.mh-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 920 / 591; object-fit: contain; }
.mh-hero-image figcaption { margin-top: .7rem; font-size: .76rem; text-align: center; }

.mh-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mh-overview h2 { max-width: 680px; }
.mh-feature-panel { padding: clamp(1.5rem, 3vw, 2.5rem); color: #fff; background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); border-radius: 17px; box-shadow: 0 18px 34px rgb(2 30 75 / .13); }
.mh-feature-panel h3 { color: #fff; }
.mh-feature-panel .check-list { margin-bottom: 0; }
.mh-feature-panel li { color: #e5eff9; }

.mh-components { background: #f4f7fb; }
.mh-component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.mh-component { min-width: 0; padding: clamp(1.1rem, 2vw, 1.7rem); background: #fff; border: 1px solid #e2e9f1; border-radius: 15px; box-shadow: 0 12px 25px rgb(2 30 75 / .06); }
.mh-component-image { display: grid; place-items: center; height: 330px; background: linear-gradient(180deg, #f8fbfe, #f1f5f9); border-radius: 10px; }
.mh-component-image img { display: block; width: auto; max-width: 85%; height: 290px; object-fit: contain; }
.mh-component h3 { margin: 1.25rem 0 .25rem; color: var(--navy-900); }
.mh-component p { margin: 0; }
.mh-components-note { max-width: 930px; margin: 1.4rem 0 0; }

.mh-technical-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.mh-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid #dce5ef; border-radius: 14px; box-shadow: 0 12px 24px rgb(2 30 75 / .06); }
.mh-table-wrap table { width: 100%; min-width: 340px; border-collapse: collapse; text-align: left; }
.mh-table-wrap caption { padding: 1rem 1.2rem; color: #fff; background: var(--navy-900); font-family: Bebas, Impact, sans-serif; font-size: 1.35rem; letter-spacing: .025em; text-align: left; }
.mh-table-wrap th, .mh-table-wrap td { padding: .82rem 1rem; border-bottom: 1px solid #e5ebf2; vertical-align: top; font-size: .88rem; line-height: 1.5; }
.mh-table-wrap tbody tr:last-child th, .mh-table-wrap tbody tr:last-child td { border-bottom: 0; }
.mh-table-wrap tbody th { width: 34%; color: var(--navy-900); font-weight: 750; }
.mh-table-wrap thead th { color: var(--navy-900); background: #f0f5fa; font-weight: 750; }
.mh-test-note { margin: 1rem 0; color: var(--muted); font-size: .84rem; }
.mh-test-caution { margin: 1rem 0; padding: 1rem 1.2rem; color: #243d5b; background: #ebf4ff; border-left: 4px solid var(--blue-500); border-radius: 0 8px 8px 0; font-size: .88rem; }
.mh-text-link { color: var(--navy-900); font-weight: 750; }

.mh-uses { color: #fff; background: linear-gradient(125deg, var(--navy-950), var(--navy-900)); }
.mh-uses-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mh-uses h2 { color: #fff; }
.mh-uses .eyebrow { color: #83c9ff; }
.mh-uses p { color: #dce9f8; }
.mh-uses-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.mh-uses-list li { padding: .85rem 1rem .85rem 2.7rem; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .12); border-radius: 10px; position: relative; }
.mh-uses-list li::before { content: '✓'; position: absolute; left: 1rem; color: #7fc8ff; font-weight: 800; }

.mh-resources { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.mh-resources > div:first-child p:not(.eyebrow) { max-width: 660px; }
.mh-related { padding: 1.4rem 1.6rem; background: #f4f7fb; border: 1px solid #e1e9f1; border-radius: 14px; }
.mh-related h3 { color: var(--navy-900); }
.mh-related ul { margin: 0; padding-left: 1.2rem; }
.mh-related li + li { margin-top: .55rem; }
.mh-related a { color: #075ba8; font-weight: 700; }
.mh-faq { background: #f4f7fb; }
.mh-faq .faq-list { max-width: 900px; }
.mh-enquiry { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.mh-enquiry > div:first-child { position: sticky; top: 110px; }
.mh-enquiry-form { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: #f4f7fb; border: 1px solid #e1e9f1; border-radius: 15px; }

@media (max-width: 900px) {
  .mh-hero-grid, .mh-overview, .mh-technical-grid, .mh-uses-grid, .mh-resources, .mh-enquiry { grid-template-columns: minmax(0, 1fr); }
  .mh-hero-image { max-width: 650px; }
  .mh-enquiry > div:first-child { position: static; }
}
@media (max-width: 620px) {
  .mh-hero-grid { padding-block: 3rem; }
  .mh-hero h1 { font-size: clamp(2.8rem, 12vw, 4.3rem); }
  .mh-actions { flex-direction: column; align-items: stretch; }
  .mh-component-grid { grid-template-columns: minmax(0, 1fr); }
  .mh-component { display: grid; grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .mh-component-image { grid-row: span 2; height: 200px; }
  .mh-component-image img { height: 175px; }
  .mh-component h3 { margin: 0 0 .25rem; }
  .mh-component p { align-self: start; }
  .mh-table-wrap table { min-width: 300px; }
  .mh-table-wrap th, .mh-table-wrap td { padding: .7rem .75rem; }
}
