/* HomePowerRebate shared styles. Generated from _partials/nav-footer.html and _partials/templates/ by scripts/apply_canonical_nav_footer.py; edit those, not this file. */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Fraunces', 'Fraunces Fallback', serif; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--teal-deep); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; background: var(--amber); border-radius: 50%; position: relative; box-shadow: 0 2px 8px rgba(212, 117, 28, 0.3); }
.logo-mark::after { content: ''; position: absolute; inset: 8px; background: var(--paper); border-radius: 50%; }
.logo-power { color: var(--amber); font-weight: 700; }
.nav-pick { display: flex; align-items: center; gap: 8px; background: var(--teal-deep); color: var(--paper); padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.2s; }
.nav-pick:hover { background: var(--amber); transform: translateY(-1px); }
.nav-desktop-only { display: flex !important; }
.nav-mobile-only { display: none !important; }
@media (max-width: 768px) {
  .nav-desktop-only { display: none !important; }
  .nav-mobile-only { display: flex !important; flex-wrap: wrap; }
  .nav-inner { padding: 14px 20px; flex-wrap: wrap; row-gap: 8px; gap: 8px; }
  .logo { font-size: 16px !important; }
  .logo-mark { width: 22px !important; height: 22px !important; }
  .nav-mobile-only a { font-size: 13px !important; }
  .nav-pick { font-size: 12px !important; padding: 7px 10px !important; white-space: nowrap; }
}
@media (max-width: 560px) {
  .nav-inner { justify-content: center !important; }
  .logo { flex: 1 0 100%; justify-content: center; }
  .nav-mobile-only { flex: 1 1 auto; justify-content: center; }
}
.footer { background: var(--ink); color: rgba(250, 247, 242, 0.65); padding: 56px 28px 32px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(250, 247, 242, 0.1); }
.footer-brand { font-family: 'Fraunces', 'Fraunces Fallback', serif; font-weight: 500; font-size: 22px; color: var(--paper); letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: rgba(250, 247, 242, 0.4); max-width: 320px; }
.footer-col-title { font-family: 'Inter Tight', 'Inter Tight Fallback', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 247, 242, 0.7); margin-bottom: 14px; }
.footer-col-links { list-style: none; display: grid; gap: 8px; font-size: 14px; margin: 0; padding: 0; }
.footer-col-links a { color: rgba(250, 247, 242, 0.45); text-decoration: none; }
.footer-col-links a:hover { color: var(--amber); }
.footer-bottom { padding-top: 24px; font-size: 12px; color: rgba(250, 247, 242, 0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.sticky-cta { display: none; }
@media (min-width: 769px) {
  .sticky-cta { position: fixed; right: 24px; bottom: 24px; z-index: 60; background: var(--amber); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 20px rgba(10, 42, 46, 0.3); transform: translateY(140%); transition: transform .25s ease; }
  .sticky-cta.show { display: block; transform: none; }
  .sticky-cta.on { display: block; }
}
@media (max-width: 768px) {
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--amber); color: #fff; text-align: center; font-weight: 700; font-size: 15px; padding: 14px 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 20px rgba(10, 42, 46, 0.3); transform: translateY(140%); transition: transform .25s ease; }
  .sticky-cta.show { display: block; transform: none; }
  .sticky-cta.on { display: block; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* city page opening: numbers right after the lead on phones, detail notes after them */
@media (max-width: 700px) {
  .hero:has(.hero-stat-strip) .wrap { display: flex; flex-direction: column; }
  .hero:has(.hero-stat-strip) .wrap > * { order: 3; }
  .hero:has(.hero-stat-strip) .wrap > h1 { order: 0; }
  .hero:has(.hero-stat-strip) .wrap > .lead { order: 1; }
  .hero:has(.hero-stat-strip) .wrap > .hero-stat-strip { order: 2; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px !important; margin: 16px 0 18px !important; }
  .hero-stat-strip > div { min-width: 0 !important; padding: 12px 8px !important; text-align: center; }
  .hero-stat-strip > div > div:first-child { font-size: 18px !important; }
}
/* design pass 2026-09-29 */
.hero strong, .hero b, header.hero strong { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 2px; border-radius: 4px; }
.footer-col-links a { display: inline-block; padding: 5px 0; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 600px) {
  .tw { overflow: visible !important; }
  .tw table { min-width: 0 !important; display: block; width: 100%; }
  .tw tbody { display: block; }
  .tw tr { display: block; background: #fff; border: 1px solid #d9d0c1; border-radius: 12px; margin: 0 0 12px; padding: 10px 14px; }
  .tw tr:has(th) { display: none; }
  .tw td { display: block; border: 0 !important; padding: 6px 0 !important; }
  .tw td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b8e7f; margin-bottom: 2px; }
  .tw td:first-child { font-size: 17px; padding-top: 2px !important; }
  .tw td:first-child::before { display: none; }
  /* rebate tables on phones: amount directly under the name in green, no label rows for Amount/Rules */
  .tw td[data-label="Amount"] { font-size: 19px; font-weight: 700; color: #2d6a4f; padding-top: 0 !important; }
  .tw td[data-label="Amount"]::before, .tw td[data-label="Rules"]::before { display: none; }
  .tw td[data-label="Rules"] { font-size: 15px; color: #1a3d42; padding-top: 2px !important; }
}
.hpr-toc { background: #fff; border: 1px solid #d9d0c1; border-radius: 12px; padding: 4px 16px; margin: 18px 0 26px; max-width: 720px; }
.hpr-toc summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 0; color: var(--teal-deep); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hpr-toc summary::-webkit-details-marker { display: none; }
.hpr-toc summary::after { content: "+"; font-size: 20px; color: var(--amber); }
.hpr-toc[open] summary::after { content: "\2212"; }
.hpr-toc ol { margin: 0 0 12px 20px !important; padding: 0; }
.hpr-toc li { margin: 0 !important; font-size: 15px !important; }
.hpr-toc a { display: inline-block; padding: 6px 0; text-decoration: none !important; font-weight: 500 !important; color: var(--ink) !important; }
.hpr-toc a:hover { color: var(--amber) !important; }
h2[id] { scroll-margin-top: 84px; }
/* hub showcase */
.hs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
header.hub-hero { background: var(--teal-deep, #08363f); color: var(--paper, #faf7f2); padding: 48px 0 40px; text-align: left; }
header.hub-hero .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
header.hub-hero .eyebrow { font-size: 14px; color: var(--amber-bright, #e88a2e); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
header.hub-hero h1 { font-size: clamp(34px, 6vw, 54px); color: #fff; margin: 0 0 20px; text-align: left; }
header.hub-hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: rgba(250,247,242,.82); max-width: 640px; margin: 0 0 32px; }
header.hub-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
header.hub-hero .btn { display: inline-block; background: var(--amber, #d4751c); color: #fff; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; }
header.hub-hero .btn.btn-secondary { background: #fff; color: var(--ink, #0a2a2e); border-color: #d9d0c1; }
.hub-fold { margin-top: 18px; }
.hub-fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--teal-deep); color: #fff; font-weight: 600; font-size: 15px; }
.hub-fold > summary::-webkit-details-marker { display: none; }
.hub-fold > summary::after { content: "+"; font-size: 20px; line-height: 1; }
.hub-fold[open] > summary::after { content: "\2212"; }
.hub-fold[open] > summary { margin-bottom: 20px; }
.hs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0 26px; position: relative; z-index: 2; }
@media (min-width: 900px) { .hs-stats { margin-top: -34px; } }
.hs-stat { background: #fff; border: 1px solid #d9d0c1; border-radius: 14px; padding: 14px 10px; text-align: center; box-shadow: 0 8px 20px rgba(10,42,46,.09); }
.hs-stat b { display: block; font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: 25px; line-height: 1.1; color: var(--teal-deep); }
.hs-stat b small { display: block; font-family: 'Inter Tight', 'Inter Tight Fallback', sans-serif; font-size: 12px; font-weight: 600; color: var(--amber); margin-top: 2px; }
.hs-stat span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.hs-sec { padding-top: 6px; padding-bottom: 20px; }
.hs-h { font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: clamp(24px, 4vw, 32px); color: var(--teal-deep); margin: 8px 0 6px; }
.hs-sub { color: var(--ink-soft); margin: 0 0 16px; max-width: 680px; }
.hs-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hs-ctl input { flex: 1; min-width: 200px; padding: 12px 14px; border: 1px solid #d9d0c1; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.hs-sort, .hs-more { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid #d9d0c1; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.hs-sort.on { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.hs-more { display: block; margin: 16px auto 0; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; padding: 0 24px; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.hs-city { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #d9d0c1; border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hs-city:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,42,46,.1); border-color: var(--amber); }
.hs-city.hide { display: none; }
.hs-ring { --d: 0deg; flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--amber) var(--d), #eee 0); display: grid; place-items: center; }
.hs-ring::before { content: ''; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.hs-ring b { position: relative; font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: 15px; color: var(--teal-deep); }
.hs-cn b { display: block; font-size: 16px; }
.hs-cn small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }
.hs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.hs-tile { display: flex; gap: 12px; align-items: flex-start; background: var(--paper-warm); border: 1px solid #d9d0c1; border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hs-tile:hover { border-color: var(--amber); transform: translateY(-2px); }
.hs-ti { font-size: 24px; line-height: 1; }
.hs-tt em { display: block; font-style: normal; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.hs-tt b { font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: 22px; color: var(--green-money); }
.hs-tt small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid #d9d0c1; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.hs-chip:hover { border-color: var(--amber); color: var(--amber); }
.hs-note { margin: 14px 0 0; padding: 10px 14px; background: #fdf2f0; border: 1px solid #efc9c4; border-radius: 10px; font-size: 14px; color: #8a2a1c; }
@media (max-width: 700px) { .hs-stats { grid-template-columns: repeat(2, 1fr); } .hs-stats .hs-stat:last-child:nth-child(odd) { grid-column: 1 / -1; } .hs-grid, .hs-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hs-city, .hs-tile { transition: none; } .hs-city:hover, .hs-tile:hover { transform: none; } }

/* logo word "Power" keeps the brand amber; at 19px bold it counts as large text for contrast (3:1) */
@media (max-width: 768px) { .nav .logo, .logo { font-size: 19px !important; } }
/* metric-matched fallbacks (measured in Chrome): text keeps its size and line height while the web fonts load, so nothing jumps */
@font-face { font-family: 'Fraunces Fallback'; font-weight: 400; src: local('Georgia'); size-adjust: 102.1%; ascent-override: 95.9%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; font-weight: 500; src: local('Georgia'); size-adjust: 102.1%; ascent-override: 95.9%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; font-weight: 600; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 89.3%; ascent-override: 109.7%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; font-weight: 700; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 92.3%; ascent-override: 106.2%; descent-override: 28.2%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Tight Fallback'; font-weight: 400; src: local('Arial'); size-adjust: 96.3%; ascent-override: 100.8%; descent-override: 24.9%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Tight Fallback'; font-weight: 500; src: local('Arial'); size-adjust: 98.5%; ascent-override: 98.5%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Tight Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 94.1%; ascent-override: 103.0%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Tight Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 96.2%; ascent-override: 100.8%; descent-override: 24.9%; line-gap-override: 0%; }
/* ===== fluid layout system =====
   One container width that grows with the screen instead of a fixed 1180px: header, footer, breadcrumbs, hubs, rankings and the homepage all share it. */
:root { --container: clamp(1180px, 90vw, 1440px); --gutter: clamp(16px, 3.2vw, 56px); --article: clamp(800px, 56vw, 900px); --rail: clamp(300px, 21vw, 340px); }
html .nav-inner, html .footer-inner, html .hpr-breadcrumb, html .footer-grid, html .footer-bottom { max-width: var(--container); }
html .hs-wrap, html .rebate-grid, html .wrap-wide, html .container, html header.hub-hero .wrap, main.layout-wide .wrap { max-width: var(--container); }
main.layout-home > .section, main.layout-home > section.hero, main.layout-home > .section-warm-inner, main.layout-home > .section-dark-inner { max-width: var(--container); }
@media (min-width: 769px) {
  main.layout-wide .what-grid, main.layout-wide .future-grid, main.layout-wide .philosophy-pillars, main.layout-wide .trust-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  main.layout-wide .what-grid.what-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
}
/* balanced card grids on wide screens: cap the columns so rows divide evenly (15 cards as 5 x 3, 8 as 4 x 2, 6 as 3 x 2) */
@media (min-width: 769px) {
  main.layout-wide .ps-grid, main.layout-wide .hf-tops { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 4 * 18px) / 5)), 1fr)) !important; }
  main.layout-wide .region-grid { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 4 * 20px) / 5)), 1fr)) !important; }
  main.layout-wide .what-grid.what-grid-4 { grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 3 * 18px) / 4)), 1fr)) !important; }
  main.layout-wide .typical-grid { grid-template-columns: repeat(auto-fit, minmax(max(200px, calc((100% - 2 * 18px) / 3)), 1fr)) !important; }
  main.layout-wide .region-grid { align-items: start !important; }
}
/* wide templates: a longer reading measure, and list rows that use the row instead of a 72-character strip */
main.layout-wide p { max-width: min(90ch, 100%); }
main.layout-wide .hf-i, main.layout-wide .hf-i p { max-width: none; }
@media (min-width: 900px) {
  main.layout-wide section:has(.hf-i) { max-width: min(var(--container), 1240px) !important; }
  main.layout-wide section:has(.hf-i) ul { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: clamp(32px, 4vw, 64px); }
}
/* homepage hero on wide screens: headline and intro on the left, the search card on the right */
@media (min-width: 1100px) {
  main.layout-wide > section.hero:has(#hero-find) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); column-gap: clamp(40px, 5vw, 96px); align-items: center; text-align: left; padding: clamp(40px, 5vw, 88px) clamp(24px, 4vw, 64px); }
  main.layout-wide > section.hero:has(#hero-find) > .hero-eyebrow { grid-column: 1; grid-row: 1; justify-self: start; margin: 0 0 18px; }
  main.layout-wide > section.hero:has(#hero-find) > .hero-h1 { grid-column: 1; grid-row: 2; max-width: none; margin: 0 0 20px; text-align: left; font-size: clamp(48px, 4.4vw, 80px); }
  main.layout-wide > section.hero:has(#hero-find) > .hero-sub { grid-column: 1; grid-row: 3; margin: 0 !important; max-width: 34em; text-align: left; }
  main.layout-wide > section.hero:has(#hero-find) > #hero-find { grid-column: 2; grid-row: 1 / span 3; margin: 0; max-width: none; width: 100%; }
  main.layout-wide > section.hero:has(#hero-find) > .quick-answer { grid-column: 1 / -1; grid-row: 4; max-width: none; margin: 40px 0 0; }
  main.layout-wide > section.hero:has(#hero-find) > .hero-trust-line { grid-column: 1 / -1; grid-row: 5; justify-content: flex-start; margin-left: 0; }
}
/* desktop layout: long-form pages use the width. A sticky side panel (page sections + rebate-plan call to action) sits beside the reading column from 1180px; below that it is hidden and nothing changes. */
.page-rail { display: none; }
@media (min-width: 1180px) {
  main.has-rail { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, var(--article)) var(--rail) minmax(24px, 1fr); column-gap: clamp(32px, 3.4vw, 64px); }
  main.has-rail > * { grid-column: 2; }
  main.has-rail > .hero, main.has-rail > section.hero, main.has-rail > header.hero, main.has-rail > div.hero { grid-column: 1 / -1; }
  main.has-rail > .page-rail { display: block; grid-column: 3; align-self: start; position: sticky; top: 96px; margin-top: 32px; }
  .page-rail .rail-toc { border-left: 2px solid var(--rule); padding-left: 18px; }
  .page-rail .rail-h { font: 700 12px/1.2 'Inter Tight', 'Inter Tight Fallback', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
  .page-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 340px); overflow: auto; }
  .page-rail ol a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; }
  .page-rail ol a:hover { color: var(--teal-deep); text-decoration: underline; }
  .page-rail ol a[aria-current="true"] { color: #a4540a; font-weight: 700; }
  .page-rail .rail-cta { margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--teal-deep); color: #fff; }
  .page-rail .rail-cta p { max-width: none; margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.88); }
  .page-rail .rail-cta .rail-cta-h { font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: 18px; font-weight: 600; color: #fff; }
  .page-rail .rail-btn { display: block; margin-top: 12px; padding: 12px 16px; border-radius: 999px; background: #b4590a; color: #fff; text-align: center; font-weight: 700; text-decoration: none; }
  .page-rail .rail-btn:hover { background: #9a4f08; }
  /* the side panel already carries the call to action: the floating button would cover its contents */
  body:has(main.has-rail > .page-rail) .sticky-cta { display: none !important; }
}
@media (min-width: 1180px) {
  main.has-wide > div.wrap, main.has-wide > section.wrap, main.has-wide > section.section > .wrap, main.has-wide > nav.toc { max-width: var(--container); }
}
/* installer profile pages: contrast (page greys and amber), and a heading size that cannot sit on the edge of the narrower column */
.ip-breadcrumb, .ip-breadcrumb a, .ip-rating-count, .ip-maps-link, .ip-vet-note { color: #5f5849 !important; }
.ip-footer-note { color: #6b6355 !important; }
.ip-nearby-rating { color: #a4540a !important; }
.ip-btn-primary, #ip-quote-btn, .ip-quote-form button { background: #b4590a !important; color: #fff !important; }
@media (min-width: 1100px) { .ip-hero h1 { font-size: 32px; } }
/* installer profile pages: reading column plus a sticky quote panel */
@media (min-width: 1100px) {
  .ip-wrap { max-width: var(--container); display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 440px); column-gap: clamp(40px, 4vw, 72px); }
  .ip-wrap > * { grid-column: 1; }
  .ip-wrap > .ip-breadcrumb { grid-column: 1 / -1; }
  .ip-wrap > .ip-quote { grid-column: 2; grid-row: 2 / span 12; position: sticky; top: 96px; align-self: start; margin-top: 0; display: block; padding: 26px 22px; }
  .ip-wrap > .ip-quote > form { grid-column: auto; grid-row: auto; }
}
/* guard: some older pages style every <nav> (display:flex, max-width:1000px, padding). The site header, breadcrumb and side-panel contents are navs too, so reset what those rules set. */
nav.nav { display: block; max-width: none; margin: 0; padding: 0; }
nav.hpr-breadcrumb, nav.rail-toc { display: block; }
nav.rail-toc { max-width: none; margin: 0; padding-top: 0; padding-bottom: 0; padding-right: 0; }
/* pages that still carry an older breadcrumb next to the shared one: show the shared one only */
body:has(nav.hpr-breadcrumb) div.breadcrumb, nav.hpr-breadcrumb + div[style]:has(> div[style] > a[href="/"]:first-child) { display: none; }
/* skip link: first tab stop, visible on focus */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--teal-deep, #08363f); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }
main:focus { outline: none; }
/* design pass 2026-10-09: touch targets, contrast, focus, motion, tables */
/* contrast (WCAG AA): amber and sage text on light backgrounds, white-on-amber buttons, footer links */
.btn:not(.btn-secondary), .btn-primary, a.cta, .cta, .gq-cta, .sticky-cta, .qf-btn, .filter-btn.active, #hero-find button, .nl button, #newsletter-form button,
a[style*="background:var(--amber)"], a[style*="background: var(--amber)"], button[style*="background:var(--amber)"], button[style*="background: var(--amber)"], button[style*="background: #d4751c"], a[style*="background: #d4751c"], a[style*="background:#d4751c"] { background: #b4590a !important; color: #fff !important; }
.btn:not(.btn-secondary):hover, .btn-primary:hover, a.cta:hover, .cta:hover, .gq-cta:hover, .sticky-cta:hover, .qf-btn:hover, #hero-find button:hover, .nl button:hover, #newsletter-form button:hover { background: #9a4f08 !important; }
.section-eyebrow, .finder-cat, .rr-eyebrow, .fact-label, .eyebrow-dark, .quick-answer-label, .popular-label, .program-status.status-limited, .program-amount, .tag:not([class*="tag-"]), .stat-num, .go, .hero-eyebrow,
[style*="color:var(--amber)"], [style*="color: var(--amber)"], [style*="color:#d4751c"], [style*="color: #d4751c"] { color: #a4540a !important; }
.hs-stat b small { color: #a4540a !important; }
.finder-source, .region-tag, .rank-cell, .adr, td small, p.small, span.small:not(.overall-badge), [style*="color:var(--sage)"], [style*="color: var(--sage)"], [style*="color:#6b8e7f"], [style*="color: #6b8e7f"] { color: #4f6f61 !important; }
.src, p.src, p.src a { color: #6b6355 !important; }
section:not([class*="hero"]) .eyebrow, .step-head .eyebrow, .status-pill-limited, .rebate-card .amount, .tag-fed, .installer-note .mini-list .stars, small[style*="color:var(--amber)"] { color: #a4540a !important; }
.finder-cat a, .city-card > a { color: #a4540a; }
.footer .footer-col-links a { color: rgba(250, 247, 242, 0.8) !important; }
.footer .footer-bottom, .footer .footer-bottom a, .footer .footer-tagline { color: rgba(250, 247, 242, 0.7) !important; }
/* readable line length: running text stops at 72 characters */
main p, article p, .wrap p, section p, .wrap li, article li, main li { max-width: 72ch; }
.footer p, .footer li, nav p, nav li, table p, table li { max-width: none; }
/* hero text is short and already centred or aligned by the page: never cap it (a cap would need a script to re-centre it after first paint) */
.hero p, header.hero p, .hero .lead, .hero-sub, .hero li { max-width: none; }
/* readable text floor: nothing below 13px */
[style*="font-size:9px"],
[style*="font-size: 9px"],
[style*="font-size:9.5px"],
[style*="font-size: 9.5px"],
[style*="font-size:10px"],
[style*="font-size: 10px"],
[style*="font-size:10.5px"],
[style*="font-size: 10.5px"],
[style*="font-size:11px"],
[style*="font-size: 11px"],
[style*="font-size:11.5px"],
[style*="font-size: 11.5px"],
[style*="font-size:12px"],
[style*="font-size: 12px"],
[style*="font-size:12.5px"],
[style*="font-size: 12.5px"],
small,
.small,
.finder-cat,
.finder-source,
.program-status,
.rr-eyebrow,
.tag,
.region-tag,
.status-pill,
.badge,
.bf,
.lbl,
.src,
.ps-lab,
.ps-tag,
.hf-pill,
.section-eyebrow,
.quick-answer-label,
.popular-label,
.rb-status,
.region-count,
.stat span,
.hs-stat span,
.installer-note,
.rg { font-size: 13px !important; }
ol[class*="crumb"] li, ol[class*="crumb"] a, nav[aria-label*="readcrumb"] li, nav[aria-label*="readcrumb"] a, .breadcrumb, .breadcrumb a, .breadcrumbs, .breadcrumbs a, .crumbs, .crumbs a { font-size: 13px !important; }
.powerscore-table small, table small { font-size: 12px !important; }
/* tap targets on phones */
@media (max-width: 768px) {
  nav.toc a, .fact-value a, .city-card > a, .hf-close a, h3 > a, h4 > a, ol[class*="crumb"] a, .breadcrumb a, .breadcrumbs a, .crumbs a, .installer-note a, p > a[href]:only-child { display: inline-flex; align-items: center; min-height: 44px; }
  div > a[style*="border:1px solid var(--rule)"] { display: inline-flex !important; align-items: center; min-height: 40px; padding-top: 6px !important; padding-bottom: 6px !important; }
  details > summary { padding: 12px 0; min-height: 44px; box-sizing: border-box; }
}
/* sibling-page links (builders emit them as inline spans) become tappable chips */
div[style*="line-height:2.2"] { display: flex !important; flex-wrap: wrap; gap: 8px; line-height: 1.3 !important; }
div[style*="line-height:2.2"] > span { margin: 0 !important; }
div[style*="line-height:2.2"] > span > a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; color: var(--teal-deep); }
div[style*="line-height:2.2"] > span > a:hover { border-color: var(--amber); color: var(--amber); }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--amber-bright, #e88a2e); outline-offset: 3px; border-radius: 4px; }
.nav-desktop-only a, .nav-mobile-only a { display: inline-flex; align-items: center; min-height: 44px; }
.logo { min-height: 44px; }
.nav-pick { min-height: 44px; }
@media (max-width: 768px) {
  .nav-inner { padding: 8px 16px; row-gap: 0; }
  .nav-mobile-only { gap: 4px; }
  .nav-mobile-only a { padding: 0 10px; }
  .nav-pick { font-size: 13px !important; padding: 0 14px !important; }
}
.footer-tagline { color: rgba(250, 247, 242, 0.7); font-size: 14px; }
.footer-col-title { font-size: 13px; color: rgba(250, 247, 242, 0.82); }
.footer-col-links { gap: 2px; font-size: 15px; }
.footer-col-links a { color: rgba(250, 247, 242, 0.78); display: inline-block; padding: 7px 0; min-height: 24px; }
.footer-col-links a:hover { color: var(--amber-bright, #e88a2e); text-decoration: underline; }
.footer-bottom { font-size: 13px; color: rgba(250, 247, 242, 0.68); }
.footer-bottom a { color: inherit; text-decoration: underline; }
@media (max-width: 700px) {
  :not(.tw) > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ===== template design: article (article.css) ===== */
/* Article template design (category, city hub and program pages: body.tpl-article).
   One reading column with one left edge, a full-bleed hero aligned to that column, large readable type,
   money-first rebate cards, numbered claim steps and FAQ cards. Loaded after the shared CSS, so these rules win. */
body.tpl-article { --gut: clamp(20px, 4vw, 40px); --read: 17px; background: var(--paper); }

/* ---------- one column, one left edge ---------- */
.tpl-article main > *:not(.hero):not(.post-header):not(.page-rail) { width: 100%; max-width: calc(var(--article) + 2 * var(--gut)) !important; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gut) !important; padding-right: var(--gut) !important; box-sizing: border-box; }
.tpl-article main > * > .wrap, .tpl-article main > article > .wrap { max-width: none; padding: 0; margin: 0; }
.tpl-article main > article { padding-top: 36px; padding-bottom: 40px; }
.tpl-article main > section[style] > p[style], .tpl-article main > section[style] > div[style] { max-width: none !important; }
@media (min-width: 1180px) {
  .tpl-article main.has-rail > *:not(.hero):not(.page-rail) { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .tpl-article main.has-rail > .hpr-breadcrumb { grid-column: 2 / 4; }
  .tpl-article main.has-rail > .page-rail { margin-top: 48px; }
}

/* ---------- breadcrumb ---------- */
.tpl-article .hpr-breadcrumb { padding-top: 16px; padding-bottom: 16px; font-size: 14px; }

/* ---------- hero ---------- */
.tpl-article :is(section.hero, header.post-header) { max-width: none; margin: 0; border-radius: 0; position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5.4vw, 80px); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(232, 138, 46, .22) 0%, rgba(232, 138, 46, 0) 46%), radial-gradient(90% 120% at 0% 100%, rgba(107, 142, 127, .28) 0%, rgba(107, 142, 127, 0) 55%), var(--teal-deep); }
.tpl-article :is(section.hero, header.post-header)::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.tpl-article :is(section.hero, header.post-header) > .wrap { position: relative; z-index: 1; max-width: calc(var(--article) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 1180px) {
  .tpl-article main.has-rail > :is(.hero, .post-header) { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
  .tpl-article main.has-rail > :is(.hero, .post-header) > .wrap { grid-column: 2 / 4; max-width: none; margin: 0; padding: 0; }
}
.tpl-article .hero .amount-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 9px 18px 9px 14px; border: 0; border-radius: 999px;
  background: #fff; color: var(--teal-deep); font-size: clamp(15px, 1.3vw, 17px); font-weight: 700; letter-spacing: -.005em; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
.tpl-article .hero .amount-badge::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e88a2e; box-shadow: 0 0 0 4px rgba(232, 138, 46, .25); }
.tpl-article :is(.hero, .post-header) h1 { margin: 0 0 18px; max-width: 20ch; font-size: clamp(36px, 5.2vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.tpl-article :is(.hero, .post-header) p { max-width: 62ch; margin: 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: rgba(250, 247, 242, .86); text-wrap: pretty; }
.tpl-article :is(.hero, .post-header) p a { color: #fff; }
/* blog post header: eyebrow and byline */
.tpl-article header.post-header .post-eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f5b566; }
.tpl-article header.post-header .post-meta { margin-top: 16px; font-size: 15px; color: rgba(250, 247, 242, .74); }
.tpl-article header.post-header .post-meta a { color: #fff !important; }
/* a second hero line is the byline or date: smaller */
.tpl-article :is(section.hero, header.post-header) p + p { margin-top: 14px; font-size: 15px; color: rgba(250, 247, 242, .74); }

/* older variants centre the hero: keep it on the column's left edge like the text below it */
.tpl-article :is(section.hero, header.post-header), .tpl-article :is(section.hero, header.post-header) > .wrap { text-align: left; }
.tpl-article :is(section.hero, header.post-header) h1, .tpl-article :is(section.hero, header.post-header) p, .tpl-article :is(section.hero, header.post-header) .amount-badge { margin-left: 0; margin-right: 0; }

/* ---------- reading type ---------- */
.tpl-article main p, .tpl-article main li { font-size: var(--read); line-height: 1.7; color: var(--ink-soft); }
.tpl-article main p { max-width: 68ch; margin-bottom: 18px; }
.tpl-article main li { max-width: 66ch; }
.tpl-article main a:not([class]) { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tpl-article main a:not([class]):hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
.tpl-article main h2 { position: relative; max-width: 24ch; margin: 64px 0 18px; padding-top: 22px; font-size: clamp(27px, 2.5vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.018em; color: var(--teal-deep); text-wrap: balance; scroll-margin-top: 96px; }
.tpl-article main h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: #e88a2e; }
.tpl-article main article > .wrap > h2:first-child { margin-top: 4px; }
.tpl-article main h3 { margin: 32px 0 10px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -.01em; }
.tpl-article main strong, .tpl-article main b { color: var(--ink); }

/* ---------- related-page chips under the hero ---------- */
.tpl-article main div[style*="line-height:2.2"] { display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.3 !important; padding-top: 8px; }
.tpl-article main div[style*="line-height:2.2"] > span { margin: 0 !important; }
.tpl-article main div[style*="line-height:2.2"] > span > a { min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: #fff; border-color: var(--rule); color: var(--teal-deep); transition: border-color .15s, background .15s; }
.tpl-article main div[style*="line-height:2.2"] > span > a:hover { border-color: var(--teal); background: #f1f6f5; text-decoration: none; }
.tpl-article main div[style*="line-height:2.2"] > span:first-child > a { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

/* ---------- callouts (federal notice, "Want your exact number?", highlights) ---------- */
.tpl-article main > p[style*="border-left"] { margin-top: 28px !important; margin-bottom: 8px !important; border-radius: 14px !important; }
/* cross-links injected after the article ("Choosing a brand?", "Statewide answer"): one tidy stack of cards */
.tpl-article main > section[style]:has(> p[style*="background"]) { margin-top: 0 !important; margin-bottom: 12px !important; }
.tpl-article main > section[style] > p[style*="background"] { margin: 0 !important; padding: 18px 22px !important; border: 1px solid #ecdcc6; border-radius: 14px !important; }
.tpl-article main > p[style*="border-left"] { padding-left: calc(var(--gut) + 6px) !important; }
@media (min-width: 1180px) { .tpl-article main.has-rail > p[style*="border-left"] { padding: 18px 22px !important; } }
.tpl-article main .callout, .tpl-article main .highlight-box { margin: 32px 0; padding: 22px 26px; border: 1px solid #ecdcc6; border-left: 5px solid #e88a2e; border-radius: 16px; background: linear-gradient(180deg, #fbf3e6 0%, #f8efe2 100%); }
.tpl-article main .callout p, .tpl-article main .highlight-box p { margin: 0; max-width: none; }

/* ---------- rebate cards: the money first ---------- */
.tpl-article main .rebate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 16px; margin: 26px 0 30px; max-width: none; }
.tpl-article main .rebate-card { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid #e3dacb; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(10, 42, 46, .04), 0 8px 24px -12px rgba(10, 42, 46, .14); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.tpl-article main .rebate-card:hover { transform: translateY(-2px); border-color: #cfc2ad; box-shadow: 0 2px 4px rgba(10, 42, 46, .05), 0 18px 36px -16px rgba(10, 42, 46, .24); }
.tpl-article main .rebate-card .program-status { align-self: flex-start; margin: 0 0 14px; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; }
.tpl-article main .rebate-card .program-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.tpl-article main .rebate-card h4 { order: 2; margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.tpl-article main .rebate-card h4 a { color: inherit; text-decoration: none; }
.tpl-article main .rebate-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.tpl-article main .rebate-card .amount { order: 1; margin: 0 0 10px; font-family: 'Fraunces', 'Fraunces Fallback', Georgia, serif; font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--green-money) !important; text-wrap: balance; }
.tpl-article main .rebate-card p { order: 3; margin: 0 !important; max-width: none; font-size: 15px !important; line-height: 1.55; color: #3c5357; }
.tpl-article main .rebate-card .program-status { order: 0; }
.tpl-article main .status-open { background: #e3f1e8; color: #1f5a3f; }
.tpl-article main .rebate-card:has(.status-limited) .amount, .tpl-article main .rebate-card:has(.status-closed) .amount { color: #5f5849 !important; }

/* ---------- numbered claim steps ---------- */
.tpl-article main article ol { counter-reset: step; list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 14px; }
.tpl-article main article ol > li { counter-increment: step; position: relative; margin: 0; padding: 16px 20px 16px 68px; min-height: 56px; border: 1px solid #e3dacb; border-radius: 16px; background: #fff; max-width: none; }
.tpl-article main article ol > li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-deep); color: #fff; font: 700 16px/1 'Inter Tight', 'Inter Tight Fallback', sans-serif; }
.tpl-article main article ul { margin: 0 0 22px 0; padding-left: 22px; }
.tpl-article main article ul > li { margin-bottom: 10px; padding-left: 4px; }
.tpl-article main article ul > li::marker { color: #e88a2e; }

/* ---------- installers ---------- */
.tpl-article main .installer-card { margin-bottom: 12px; padding: 18px 22px; border: 1px solid #e3dacb; border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tpl-article main .installer-card:hover { border-color: var(--teal); box-shadow: 0 10px 24px -14px rgba(10, 42, 46, .3); }
.tpl-article main .installer-card .name { font-size: 17px; }
.tpl-article main .installer-card .stars { margin-top: 2px; font-size: 14px; font-weight: 600; color: #8a4708 !important; }
.tpl-article main .installer-card a.site-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.tpl-article main .installer-card a.site-link:hover { border-color: var(--teal); background: #f1f6f5; }

/* ---------- FAQ ---------- */
.tpl-article main .faq-item { margin: 0 0 12px; padding: 20px 24px; border: 1px solid #e3dacb; border-radius: 16px; background: #fff; }
.tpl-article main .faq-item h3 { margin: 0 0 8px; font-size: 19px; }
.tpl-article main .faq-item p { margin: 0; }
.tpl-article main .faq-item p + p { margin-top: 12px; }

/* ---------- tables ---------- */
.tpl-article main article table { width: 100%; margin: 20px 0 28px; border-collapse: separate; border-spacing: 0; border: 1px solid #e3dacb; border-radius: 14px; overflow: hidden; background: #fff; font-size: 15px; }
.tpl-article main article th { background: #f3ede2; text-align: left; font-weight: 700; color: var(--teal-deep); }
.tpl-article main article th, .tpl-article main article td { padding: 12px 16px; border-bottom: 1px solid #eee5d6; vertical-align: top; }
.tpl-article main article tr:last-child td { border-bottom: 0; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  body.tpl-article { --read: 17px; }
  .tpl-article :is(section.hero, header.post-header) { padding: 36px 0 40px; }
  .tpl-article .hero .amount-badge { margin-bottom: 18px; font-size: 14px; padding: 8px 14px 8px 12px; }
  .tpl-article :is(.hero, .post-header) h1 { font-size: clamp(34px, 9.4vw, 42px); max-width: none; }
  .tpl-article main h2 { margin-top: 52px; font-size: 27px; }
  .tpl-article main .rebate-grid { gap: 12px; }
  .tpl-article main .rebate-card { padding: 18px; }
  .tpl-article main article ol > li { padding: 14px 16px 14px 60px; }
  .tpl-article main article ol > li::before { left: 12px; width: 34px; height: 34px; }
  .tpl-article main .faq-item { padding: 18px; }
  .tpl-article main .installer-card { padding: 16px 18px; }
  /* related pages: one swipeable row instead of a tall stack */
  .tpl-article main div[style*="line-height:2.2"] { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tpl-article main div[style*="line-height:2.2"]::-webkit-scrollbar { display: none; }
  .tpl-article main div[style*="line-height:2.2"] > span { flex: none; scroll-snap-align: start; }
  .tpl-article main div[style*="line-height:2.2"] > span > a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .tpl-article main .rebate-card, .tpl-article main .installer-card { transition: none; } .tpl-article main .rebate-card:hover { transform: none; } }
.tpl-article main > section#top-rated-installers { margin-top: 24px !important; margin-bottom: 72px !important; }
/* pages whose breadcrumb sits outside <main>: line it up with the column */
body.tpl-article > .hpr-breadcrumb { max-width: calc(var(--article) + 2 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); }

/* ===== template design: ranking (ranking.css) ===== */
/* Installer ranking template design (body.tpl-ranking): /installers/<region>/<city>/<service>/.
   A bold hero, a stat strip that reads at a glance, roomy ranking cards with the rating up front, and readable prose. */
body.tpl-ranking { --gut: clamp(20px, 3.2vw, 56px); }
.tpl-ranking main .wrap { padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- hero ---------- */
.tpl-ranking header.hero { padding: clamp(40px, 5.6vw, 84px) 0 clamp(84px, 8vw, 120px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(232, 138, 46, .24) 0%, rgba(232, 138, 46, 0) 46%), radial-gradient(90% 120% at 0% 100%, rgba(107, 142, 127, .3) 0%, rgba(107, 142, 127, 0) 55%), var(--teal-deep); }
.tpl-ranking header.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.tpl-ranking header.hero > .wrap { position: relative; z-index: 1; }
.tpl-ranking .hero-top { align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); margin-bottom: 18px; }
.tpl-ranking .hero-ico { width: clamp(48px, 4.6vw, 68px); height: clamp(48px, 4.6vw, 68px); border-radius: 18px; margin-top: 6px; background: rgba(255, 255, 255, .1); }
.tpl-ranking .hero h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.tpl-ranking .hero .wrap > p { max-width: 60ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: rgba(250, 247, 242, .88); }
.tpl-ranking .hero .wrap > p.meta { margin-top: 12px; font-size: 14px; color: rgba(250, 247, 242, .72); }

/* ---------- stat strip ---------- */
.tpl-ranking .stats { max-width: none !important; margin: calc(-1 * clamp(56px, 5vw, 72px)) 0 14px; gap: clamp(10px, 1.2vw, 16px); }
.tpl-ranking .stat { padding: clamp(14px, 1.6vw, 22px) 12px; border: 0; border-radius: 18px; text-align: left; padding-left: clamp(16px, 1.8vw, 26px); box-shadow: 0 1px 2px rgba(10, 42, 46, .06), 0 18px 40px -18px rgba(10, 42, 46, .35); }
.tpl-ranking .stat b { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--teal-deep); }
.tpl-ranking .stat span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .07em; color: #4a5f62; }
.tpl-ranking .trust { justify-content: flex-start; gap: 6px 22px; margin: 18px 0 26px; font-size: 15px; font-weight: 600; }

/* ---------- prose ---------- */
.tpl-ranking section.body p, .tpl-ranking section.body li { font-size: 17px; line-height: 1.68; }
.tpl-ranking section.body p.small, .tpl-ranking section.body .small { font-size: 14px; }
.tpl-ranking section.body h2 { position: relative; margin: 64px 0 18px; padding-top: 22px; font-size: clamp(27px, 2.5vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.018em; color: var(--teal-deep); text-wrap: balance; }
.tpl-ranking section.body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: #e88a2e; }
.tpl-ranking section.body h2.sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tpl-ranking .callout { max-width: 1000px; padding: 20px 24px; border: 1px solid #d5e4da; border-left: 5px solid var(--green-money); border-radius: 16px; background: #f1f7f3; }
.tpl-ranking .callout p { max-width: none; margin: 0 !important; }
.tpl-ranking .hero .wrap > p { text-wrap: pretty; }
.tpl-ranking .hpr-toc { max-width: 1000px !important; padding: 6px 24px; border-radius: 16px; }
@media (min-width: 900px) { .tpl-ranking .hpr-toc ol { columns: 2; column-gap: 40px; } .tpl-ranking .hpr-toc li { break-inside: avoid; } }

/* ---------- ranking cards ---------- */
.tpl-ranking .sortbar { margin-bottom: 18px; font-size: 15px; }
.tpl-ranking .sortbar button { min-height: 44px; padding: 8px 18px; font-size: 15px; }
@media (min-width: 900px) { .tpl-ranking .rank-list { gap: 18px; } }
@media (min-width: 1500px) { .tpl-ranking .rank-list { grid-template-columns: repeat(3, 1fr); } }
.tpl-ranking .rank { padding: 22px 22px 18px; gap: 8px 16px; grid-template-columns: 44px 1fr; border: 1px solid #e3dacb; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10, 42, 46, .04), 0 8px 24px -12px rgba(10, 42, 46, .14); }
.tpl-ranking .rank.has-prof .nm > a::after { border-radius: 20px; }
.tpl-ranking .rank:hover { border-color: #cfc2ad; box-shadow: 0 2px 4px rgba(10, 42, 46, .05), 0 20px 40px -18px rgba(10, 42, 46, .26); }
.tpl-ranking .rank.top { border-left: 1px solid #b9d3c2; background: linear-gradient(180deg, #f3f9f5 0%, #fff 55%); border-color: #b9d3c2; }
.tpl-ranking .rank .n { width: 44px; height: 44px; font-size: 19px; }
.tpl-ranking .rank .n a { color: inherit; text-decoration: none; }
.tpl-ranking .rank .nm { font-size: 19px; font-weight: 700; line-height: 1.3; }
.tpl-ranking .rank .nm > a { color: var(--ink); text-decoration: none; margin-right: 6px; }
.tpl-ranking .rank .nm > a:hover { color: var(--teal); text-decoration: underline; }
.tpl-ranking .rank .st { margin-top: 2px; }
.tpl-ranking .rank .stars { font-size: 19px; }
.tpl-ranking .rank .rt b { font-size: 19px; }
.tpl-ranking .rank .rv { font-size: 15px; }
.tpl-ranking .rank .adr { font-size: 14px; }
.tpl-ranking .rank .act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #eee5d6; }
.tpl-ranking .rank .act .lnk { font-size: 15px; }

/* ---------- cost box, FAQ, quote form ---------- */
.tpl-ranking .cb { max-width: 1000px; border-radius: 18px !important; }
.tpl-ranking .cb-row b { font-size: clamp(20px, 1.8vw, 26px) !important; }
.tpl-ranking .faq-item { margin: 0 0 12px; padding: 20px 24px; border: 1px solid #e3dacb; border-radius: 16px; background: #fff; max-width: 1000px; }
.tpl-ranking .faq-item h3 { font-size: 19px; font-weight: 600; }
.tpl-ranking .qf { max-width: 1000px; padding: clamp(22px, 2.6vw, 36px); border-width: 1px; border-color: #cfdcd9; border-radius: 22px; box-shadow: 0 1px 2px rgba(10, 42, 46, .05), 0 24px 48px -24px rgba(10, 42, 46, .3); }
.tpl-ranking .qf h2 { margin-top: 0 !important; padding-top: 0 !important; }
.tpl-ranking .qf h2::before { display: none; }
@media (min-width: 900px) { .tpl-ranking .qf fieldset:first-of-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } .tpl-ranking .qf fieldset:first-of-type legend { grid-column: 1 / -1; } }
.tpl-ranking .qf-btn { border-radius: 999px; padding: 15px 30px; font-size: 17px; }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .tpl-ranking header.hero { padding: 32px 0 84px; }
  .tpl-ranking .hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .tpl-ranking .stats { margin-top: -60px; }
  .tpl-ranking .stat { padding: 14px 14px; }
  .tpl-ranking .stat b { font-size: 26px; }
  .tpl-ranking .rank { padding: 18px 16px 14px; grid-template-columns: 38px 1fr; gap: 6px 12px; }
  .tpl-ranking .rank .n { width: 38px; height: 38px; font-size: 17px; }
  .tpl-ranking .rank .nm { font-size: 18px; }
  .tpl-ranking .rank .act { grid-column: 1 / -1; gap: 8px 16px; }
  .tpl-ranking .rank .act .btn-call, .tpl-ranking .rank .act .btn-prof { flex: 1 1 100%; justify-content: center; }
  .tpl-ranking .callout { padding: 16px 18px; }
  .tpl-ranking section.body h2 { margin-top: 52px; font-size: 27px; }
  .tpl-ranking .trust { font-size: 14px; }
}
/* cards are always visible: no scroll-in reveal that hides listings until a script runs */
.tpl-ranking .rank { opacity: 1; transform: none; }
.tpl-ranking .rank:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tpl-ranking .rank:hover { transform: none; } }

