/* Residential second-level solution: shared navigation, footer and components stay unchanged. */
.residential-solutions-page {
  --solutions-soft: #f4f4f4;
  --solutions-blue-soft: #eef6f8;
}

.res-breadcrumb { padding: 5px 0; background: #fafafa; font-size: 14px; }
.res-breadcrumb .site-container { display: flex; flex-wrap: wrap; gap: 5px; }
.res-breadcrumb a:hover { color: var(--green-dark); }
.res-hero { padding: 48px 0 0; }
.res-hero .solutions-hub-eyebrow { margin-bottom: 26px; }
.res-hero .solutions-hub-eyebrow span { width: 40px; height: 3px; }
.res-hero h1 { margin: 0 0 26px; font-size: 42px; font-weight: 800; line-height: 1.2; }
.res-hero-grid { display: grid; grid-template-columns: minmax(0, 650px) minmax(0, 584px); align-items: start; gap: 44px; }
.res-hero-grid > div { min-width: 0; }
.res-hero-grid p { max-width: 640px; margin: 9px 0 24px; font-size: 18px; line-height: 28px; }
.res-hero-grid > img { width: 100%; height: auto; }
.res-hero-actions { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.res-button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; max-width: 100%; padding: 12px 28px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); background: transparent; font-size: 20px; font-weight: 700; line-height: 1.25; text-align: center; transition: color 160ms ease, background-color 160ms ease; }
.res-hero-actions .res-button { min-width: 250px; min-height: 60px; padding-inline: 26px; font-size: 18px; }
.res-hero-actions .res-button--blue { min-width: 314px; }
.res-button:hover, .res-button:focus-visible { color: #fff; background: var(--green-dark); }
.res-button--blue { color: #0867b9; border-color: #0867b9; }
.res-button--blue:hover, .res-button--blue:focus-visible { background: #0867b9; }
.res-button--solid { color: #fff; background: var(--green); }
.residential-solutions-page main a:focus-visible { outline: 3px solid #0878dd; outline-offset: 4px; }
.res-section { padding: 66px 0 70px; }
.res-soft { background: #eef6f8; }
.res-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 50px; }
.res-feature-grid article { min-width: 0; min-height: 202px; padding: 22px 8px 25px 22px; border: 1px solid #e2ebf3; border-radius: 20px; }
.res-feature-grid .iconfont { width: 66px; height: 64px; display: grid; place-items: center; color: #1e619e; background: #f2f7fd; border-radius: 12px; font-size: 32px; line-height: 1; }
.res-feature-grid h3 { margin: 9px 0 12px; font-size: 20px; line-height: 1.2; }
.res-feature-grid p { margin: 0; color: #666; font-size: 14px; line-height: 1.2; }

/* Match the challenge cards without changing the Benefits cards below. */
@media (min-width: 641px) {
  .res-challenges .res-feature-grid { margin-top: 48px; }
  .res-challenges .res-feature-grid article { min-height: 202px; padding: 22px 6px 25px 20px; }
  .res-challenges .res-feature-grid article:nth-child(-n+2) { padding-left: 29px; padding-right: 20px; }
  .res-challenges .res-feature-grid article:first-child .iconfont { margin-left: -4px; }
  .res-challenges .res-feature-grid article:last-child { padding-left: 18px; padding-right: 4px; }
  .res-challenges .res-feature-grid .iconfont { font-size: 34px; }
  .res-challenges .res-feature-grid article:first-child p { max-width: 240px; }
}

.res-overview { padding: 62px 0 57px; }
.res-overview-grid { display: grid; grid-template-columns: minmax(0, 576px) minmax(0, 1fr); align-items: start; gap: 63px; margin-top: 48px; }
.res-overview-grid > * { min-width: 0; }
.res-overview-grid > div { margin-top: -3px; }
.res-overview-grid img { width: 100%; height: auto; }
.res-overview-grid p { margin: 0 0 28px; font-size: 18px; line-height: 28px; }
.res-overview-grid p:last-child { margin-bottom: 0; }
.res-architecture { padding: 76px 0 64px; }
.res-diagram { display: block; width: min(100%, 1177px); margin: 48px auto 0; }
.res-diagram img { width: 100%; height: auto; }
.res-configurations { padding-top: 55px; padding-bottom: 78px; }
.res-configuration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.res-configuration-grid article { min-width: 0; display: flex; flex-direction: column; padding: 36px 34px; background: #f8f8f8; border-radius: 22px; }
.res-configuration-grid h3 { margin: 0 0 20px; font-size: 22px; line-height: 1.25; text-transform: uppercase; }
.res-configuration-grid dl { margin: 0 0 16px; }
.res-configuration-grid dl > div { padding: 12px 0; border-top: 1px solid #d5d5d5; }
.res-configuration-grid dt { margin-bottom: 9px; font-size: 16px; font-weight: 700; line-height: 20px; }
.res-configuration-grid dd { margin: 0; color: #777; font-size: 16px; line-height: 18px; }
.res-configuration-grid .res-button { width: 100%; min-height: 56px; margin-top: auto; padding-inline: 12px; }
@media (min-width: 1161px) {
  .res-configuration-grid h3 { min-height: 55px; }
}
@media (min-width: 1421px) {
  .res-configuration-grid h3 { min-height: 0; margin-right: -20px; }
}
.res-products { padding: 70px 0 50px; }
.res-products .solutions-hub-product-grid { grid-template-columns: repeat(3, minmax(0, 306px)); justify-content: center; gap: 68px; margin-top: 33px; }
.res-products .solutions-hub-product-grid > article { --solutions-product-card-padding: 25px; min-height: 446px; padding-right: 10px; padding-bottom: 26px; border-radius: 22px; }
.res-products .solutions-hub-product-grid dl { line-height: 16px; }
.res-products .solutions-hub-product-grid dt:first-child { margin-top: 0; }
.res-products .solutions-hub-product-grid > article:nth-child(2) h3 { margin-left: 0; }
.res-products .solutions-hub-product-image { height: 230px; margin-right: -10px; overflow: hidden; }
.res-products .solutions-hub-product-grid > article:first-child .solutions-hub-product-image { display: flex; justify-content: center; align-items: center; }
.res-products .solutions-hub-product-grid > article:first-child .solutions-hub-product-image img { width: 350px; max-width: none; flex-shrink: 0; }
.res-products .solutions-hub-product-image--panels { align-items: center; padding-top: 0; }
.res-products .solutions-hub-product-image--panels img + img { width: 106px; height: auto; }
.res-products .solutions-hub-product-grid > article > a { margin-bottom: 8px; padding-top: 24px; }
.res-products .solutions-hub-product-grid > article > a:hover { color: var(--green-dark); }
.res-components { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 38px; margin-top: 38px; }
.res-components h3 { margin: 0; font-size: 22px; font-weight: 400; }
.res-components ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.res-components li { padding: 6px 14px; color: #22649b; background: #cfdfeb; border-radius: 3px; }
.res-components li:nth-child(even) { color: #168b5b; background: #cdece2; }
/* Benefits-specific geometry; preserve the completed challenge cards. */
@media (min-width: 641px) {
  .res-benefits { padding: 62px 0 54px; }
  .res-benefits .res-feature-grid { margin-top: 47px; }
  .res-benefits .res-feature-grid article { padding: 22px 6px 25px 20px; }
  .res-benefits .res-feature-grid article:nth-child(-n+2) { padding-left: 29px; padding-right: 20px; }
  .res-benefits .res-feature-grid article:first-child .iconfont { margin-left: -4px; font-size: 28px; }
  .res-benefits .res-feature-grid article:last-child { padding-left: 12px; padding-right: 4px; }
}
.res-scenarios { padding: 64px 0 67px; background: #f4f4f4; }
.res-scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 50px; }
.res-scenario-grid article { min-width: 0; text-align: center; }
.res-scenario-grid img { width: 100%; height: auto; border-radius: 20px; }
.res-scenario-grid h3 { margin: 12px 0 0; font-size: 24px; line-height: 1.3; }
.res-support { text-align: center; padding-bottom: 58px; }
.res-support-tree { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 55px 0 39px; padding: 0; list-style: none; }
.res-support-tree::before { content: ''; position: absolute; left: 50%; top: -48px; height: 48px; border-left: 1px solid #999; }
.res-support-tree li { position: relative; min-width: 0; padding-top: 85px; font-size: 20px; font-weight: 700; line-height: 1.25; }
.res-support-tree li::before { content: ''; position: absolute; top: 0; left: 50%; width: calc(100% + 18px); height: 67px; border-top: 1px solid #999; border-left: 1px solid #999; }
.res-support-tree li:last-child::before { width: 0; border-top: 0; }
.res-support-tree li::after { content: ''; position: absolute; top: 62px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #888; }
.res-support .res-button { min-width: 314px; }
@media (min-width: 1161px) {
  .res-support-tree li:last-child { font-size: 19px; }
}
.res-documents { text-align: center; padding-bottom: 56px; }
.res-documents img { width: 100%; height: auto; margin: 42px auto 37px; }
.res-documents .res-button { min-width: 350px; }
.res-related { padding-top: 72px; padding-bottom: 78px; }
.res-related-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 68px; align-items: center; }
.res-related-grid > div { min-width: 0; }
.res-related h2 { margin: 26px 0 0; font-size: 48px; line-height: 1.1; }
.res-related .solutions-hub-category-card { min-width: 0; align-self: stretch; border-radius: 0 0 16px 16px; }
@media (min-width: 1421px) {
  .res-related-grid { width: min(calc(100% - 48px), 1297px); grid-template-columns: 404px 370px 370px; gap: 66.5px; padding-left: 19px; }
  .res-related-grid > div { align-self: start; margin-top: 100px; }
  .res-related h2 { white-space: nowrap; letter-spacing: -0.1px; }
}
.res-faq { padding-bottom: 124px; }
.res-faq .solutions-hub-faq-list { margin-top: 38px; }
@media (min-width: 1161px) {
  .res-faq .solutions-hub-faq-list details p { padding-right: 180px; }
}

@media (max-width: 1160px) {
  .res-hero h1 { font-size: 40px; }
  .res-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 30px; }
  .res-hero-actions { gap: 12px; }
  .res-hero-actions .res-button { min-width: 0; min-height: 52px; padding: 12px 20px; font-size: 16px; }
  .res-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-overview-grid { grid-template-columns: 1fr 1.1fr; gap: 30px; }
  .res-configuration-grid article { padding: 28px 20px; }
  .res-configuration-grid h3 { min-height: 55px; font-size: 20px; }
  .res-configuration-grid .res-button { font-size: 16px; }
  .res-products .solutions-hub-product-grid { gap: 24px; }
  .res-products .solutions-hub-product-grid > article:first-child .solutions-hub-product-image img { width: min(100%, 322px); max-width: 100%; }
  .res-support-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; gap: 16px; }
  .res-support-tree::before, .res-support-tree li::before, .res-support-tree li::after { display: none; }
  .res-support-tree li { display: grid; place-items: center; padding: 24px 16px; border: 1px solid #dde6ec; border-radius: 14px; background: #f7fafc; font-size: 17px; }
  .res-related-grid { gap: 24px; grid-template-columns: 1fr 1fr; }
  .res-related-grid > div { grid-column: 1 / -1; }
  .res-related h2 { margin-top: 18px; font-size: 40px; }
}

@media (max-width: 900px) {
  .res-hero-grid, .res-overview-grid { grid-template-columns: 1fr; }
  .res-hero-grid > img { width: min(100%, 584px); justify-self: center; }
  .res-overview-grid > img { width: min(100%, 576px); justify-self: center; }
  .res-overview-grid > div { margin-top: 0; }
  .res-configuration-grid { grid-template-columns: 1fr; }
  .res-configuration-grid article { width: 100%; max-width: 620px; justify-self: center; }
  .res-configuration-grid h3 { min-height: 0; }
  .res-products .solutions-hub-product-grid { grid-template-columns: repeat(2, minmax(0, 306px)); }
  .res-products .solutions-hub-product-grid > article:last-child { grid-column: 1 / -1; width: min(100%, 306px); justify-self: center; }
  .res-scenario-grid { gap: 16px; }
  .res-scenario-grid h3 { font-size: 20px; }
}

@media (max-width: 640px) {
  .res-breadcrumb { font-size: 12px; }
  .res-hero { padding-top: 32px; }
  .res-hero .solutions-hub-eyebrow { margin-bottom: 18px; }
  .res-hero h1 { margin-bottom: 22px; font-size: 32px; line-height: 1.15; }
  .res-hero-grid { gap: 26px; }
  .res-hero-grid p, .res-overview-grid p { margin-top: 0; font-size: 15px; line-height: 1.6; }
  .res-hero-grid p { margin-bottom: 24px; }
  .res-hero-actions { display: grid; }
  .res-hero-actions .res-button { width: 100%; min-width: 0; font-size: 16px; }
  .res-section { padding-block: 44px; }
  .res-feature-grid, .res-overview-grid, .res-scenario-grid, .res-configuration-grid { margin-top: 30px; }
  .res-feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .res-feature-grid article { min-height: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-content: start; column-gap: 16px; padding: 20px; border-radius: 16px; }
  .res-feature-grid .iconfont { grid-row: 1 / 3; width: 58px; height: 58px; font-size: 29px; }
  .res-feature-grid h3 { margin: 0 0 8px; font-size: 18px; }
  .res-feature-grid p { font-size: 14px; line-height: 1.4; }
  .res-overview-grid { gap: 24px; }
  .res-overview-grid p { margin-bottom: 20px; }
  .res-diagram { margin-top: 28px; }
  .res-architecture { padding-bottom: 20px; }
  .res-configurations { padding-top: 24px; }
  .res-configuration-grid article { padding: 26px 20px; }
  .res-configuration-grid h3 { margin-bottom: 18px; }
  .res-configuration-grid dd { font-size: 14px; line-height: 1.4; }
  .res-configuration-grid dt { font-size: 15px; }
  .res-products .solutions-hub-product-grid { grid-template-columns: minmax(0, 360px); margin-top: 30px; gap: 20px; }
  .res-products .solutions-hub-product-grid > article, .res-products .solutions-hub-product-grid > article:last-child { width: 100%; min-height: 420px; grid-column: auto; }
  .res-products .solutions-hub-product-image { height: 211px; }
  .res-components { margin-top: 28px; gap: 16px; }
  .res-components h3 { font-size: 19px; text-align: center; }
  .res-components ul { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: center; }
  .res-components li { padding: 9px 6px; font-size: 13px; }
  .res-scenario-grid { grid-template-columns: 1fr; gap: 24px; }
  .res-scenario-grid article { width: min(100%, 410px); justify-self: center; }
  .res-scenario-grid h3 { margin-top: 10px; font-size: 20px; }
  .res-support-tree { margin-bottom: 26px; gap: 12px; }
  .res-support-tree li { padding: 20px 10px; font-size: 15px; }
  .res-support .res-button { min-width: 0; width: 100%; }
  .res-button { min-height: 52px; font-size: 16px; padding-inline: 20px; }
  .res-documents img { margin-block: 30px; }
  .res-documents .res-button { width: 100%; min-width: 0; }
  .res-related-grid { grid-template-columns: 1fr; gap: 24px; }
  .res-related h2 { font-size: 32px; }
  .res-faq { padding: 12px 0 48px; }
  .res-faq .solutions-hub-faq-list { margin-top: 30px; }
}
