/* Shared visual refresh for SolarPowerGuide. Kept separate from the generated Tailwind build. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/css/fonts/manrope-latin.woff2") format("woff2"); }
:root {
  --spg-ink: #183329;
  --spg-copy: #4d5f56;
  --spg-green: #28764b;
  --spg-green-dark: #1d5638;
  --spg-lime: #d7ed8b;
  --spg-paper: #f7f7f1;
  --spg-line: #e1e7dc;
  --spg-display: "Manrope", sans-serif;
  --spg-sans: "Manrope", sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--spg-ink); background: var(--spg-paper); }
body, button, input, .font-sans { font-family: var(--spg-sans); }
h1, h2, h3 { font-family: var(--spg-display); }
a { text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b7d95e; outline-offset: 3px; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; color: var(--spg-ink); background: rgb(247 247 241 / .95); box-shadow: 0 1px 0 rgb(24 51 41 / .1); }
.site-header-inner { max-width: 1440px; min-height: 90px; margin: auto; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--spg-ink); text-decoration: none; font-size: 1.12rem; line-height: 1.05; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.site-brand small { display: block; margin-top: 5px; color: #69796d; font-family: var(--spg-sans); font-size: .65rem; line-height: 1.2; letter-spacing: .08em; font-weight: 500; }
.site-brand-accent { color: var(--spg-green); }
.site-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px 13px 13px 4px; color: #fff; background: var(--spg-green); font-family: var(--spg-sans); font-size: 1.55rem; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.site-nav a, .site-mobile-menu a { color: #3d5146; text-decoration: none; font-size: .87rem; font-weight: 600; transition: color .18s ease; }
.site-nav a:hover, .site-mobile-menu a:hover { color: var(--spg-green); }
.site-nav .site-nav-contact { padding: 12px 17px; border: 1px solid #9eae9c; border-radius: 4px; color: var(--spg-ink); }
.site-nav .site-nav-contact:hover { border-color: var(--spg-green); background: #fff; }
.site-menu-button { display: none; border: 0; padding: 10px; color: var(--spg-ink); background: transparent; cursor: pointer; }
.site-menu-button span { display: block; width: 23px; height: 2px; margin: 5px 0; background: currentColor; }
.site-menu-button[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.site-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-mobile-menu { display: none; }

.site-hero { min-height: 570px; padding-top: 90px; overflow: hidden; background: #d5d7bd; }
.site-hero > img { object-position: center 54%; }
.site-hero-shade { background: linear-gradient(90deg, rgb(13 34 26 / .83) 0%, rgb(13 34 26 / .67) 38%, rgb(13 34 26 / .18) 78%, rgb(13 34 26 / .08) 100%), linear-gradient(0deg, rgb(15 34 26 / .22), transparent 55%); }
.site-hero-content { min-height: 480px; padding-top: 107px; padding-bottom: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.site-hero-kicker, .site-section-kicker { margin: 0 0 14px; color: var(--spg-green); font-family: var(--spg-sans); font-size: .7rem; line-height: 1.5; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-hero-kicker { color: var(--spg-lime); }
.site-hero-content h1 { max-width: 820px; margin: 0; color: #fff; font-family: var(--spg-display); font-size: clamp(3rem, 6.5vw, 5.8rem); font-weight: 750; font-optical-sizing: auto; line-height: .99; letter-spacing: -.035em; text-wrap: balance; }
.site-hero-copy { max-width: 610px; margin: 23px 0 30px; color: rgb(255 255 255 / .88); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.site-hero-link { display: inline-flex; align-items: center; gap: 22px; padding: 15px 20px; border: 1px solid var(--spg-lime); border-radius: 3px; color: var(--spg-ink); background: var(--spg-lime); font-size: .94rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.site-hero-link::after { content: "↗"; font-size: 1.08rem; }
.site-hero-link:hover { transform: translateY(-2px); background: #e3f5aa; }
.site-subpage-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto; padding: 5rem clamp(24px, 6vw, 90px); text-align: left; }
.site-subpage-hero-copy h1 { max-width: 820px; font-family: var(--spg-display); font-size: clamp(2.8rem, 5.6vw, 5rem); font-weight: 750; font-optical-sizing: auto; line-height: .99; letter-spacing: -.035em; text-wrap: balance; }
.site-subpage-hero-copy p { max-width: 610px; margin: 18px 0 0; color: rgb(255 255 255 / .9); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }

.home-section { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(52px, 6vw, 78px); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.home-section-heading .site-section-kicker { margin-bottom: 9px; }
.home-section-heading h2, .home-topics h2 { margin: 0; color: var(--spg-ink); font-family: var(--spg-display); font-size: clamp(2rem, 3.3vw, 3.15rem); font-weight: 700; font-optical-sizing: auto; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.home-section-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; color: var(--spg-green); font-size: .91rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-section-link:hover { color: var(--spg-green-dark); }
.home-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-card-grid > article { min-width: 0; }
.home-card-grid > article > a { height: 100%; display: flex; flex-direction: column; border: 0; border-radius: 3px; box-shadow: none; background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.home-card-grid > article > a:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgb(32 60 41 / .1); }
.home-card-grid > article img { height: 220px; object-fit: cover; }
.home-card-grid > article > a > div { flex: 1; padding: 21px 22px 22px; }
.home-card-grid > article > a > div > p:first-child { color: var(--spg-ink); font-family: var(--spg-display); font-size: 1.3rem; font-weight: 700; line-height: 1.24; letter-spacing: -.02em; }
.home-card-grid > article > a > div > p:nth-child(2) { color: var(--spg-copy); font-size: .93rem; line-height: 1.6; }
.home-card-grid > article > a > div > span { margin-top: 8px; color: var(--spg-green); }
/* Keep card surfaces crisp and consistent across static, CMS, and injected content. */
body :is(div, article, section, nav, aside)[class*="rounded-"][class*="bg-"],
body a[class*="shadow"][class*="rounded-"],
body a.block[class*="rounded-"] { border-radius: 3px; }
.site-ad-card { border-radius: 3px; overflow: hidden; }
.home-reviews { background: #edf0e6; max-width: none; padding-left: max(24px, calc((100vw - 1280px) / 2)); padding-right: max(24px, calc((100vw - 1280px) / 2)); }
.home-reviews .home-card-grid > article img { object-fit: contain; background: #fff; }
.review-product-image { display: block; width: 100%; height: 12rem; object-fit: contain; background: #fff; }
.home-offgrid { background: #f1f3eb; max-width: none; padding-left: max(24px, calc((100vw - 1280px) / 2)); padding-right: max(24px, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--spg-line); border-bottom: 1px solid var(--spg-line); }
.home-offgrid-copy { max-width: 620px; margin: 14px 0 0; color: var(--spg-copy); font-size: .96rem; line-height: 1.6; }
.offgrid-category-content > section:first-child { padding: clamp(42px, 5vw, 66px) max(24px, calc((100vw - 1280px) / 2)) clamp(38px, 4vw, 54px); background: var(--spg-paper); }
.offgrid-category-content > section:first-child > div { max-width: 1280px; margin: 0 auto; text-align: left; }
.offgrid-category-content > section:first-child h2 { max-width: 850px; margin: 0 0 18px; color: var(--spg-ink); font-family: var(--spg-display); font-size: clamp(2rem, 3.3vw, 3.15rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.offgrid-category-content > section:first-child p { max-width: 780px; margin: 0 0 15px; color: var(--spg-copy); font-size: 1rem; line-height: 1.7; }
.offgrid-category-content > section:first-child a { display: inline-flex; align-items: center; gap: 18px; margin-top: 8px; padding: 14px 19px; border: 1px solid var(--spg-lime); border-radius: 3px; color: var(--spg-ink); background: var(--spg-lime); font-size: .92rem; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.offgrid-category-content > section:first-child a::after { content: "↗"; }
.offgrid-category-content > section:first-child a:hover { transform: translateY(-2px); background: #e3f5aa; }
.offgrid-category-content > section:nth-of-type(2) { padding: 18px max(24px, calc((100vw - 1280px) / 2)) 30px; border: 0; background: #e8eddf; }
.offgrid-category-content > section:nth-of-type(2) > div { max-width: 1280px; margin: 0 auto; }
.offgrid-category-content > section:nth-of-type(2) .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #cbd5c7; border-bottom: 1px solid #cbd5c7; }
.offgrid-category-content > section:nth-of-type(2) .grid > div { padding: 23px 20px; border-right: 1px solid #cbd5c7; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.offgrid-category-content > section:nth-of-type(2) .grid > div:first-child { padding-left: 0; }
.offgrid-category-content > section:nth-of-type(2) .grid > div:last-child { padding-right: 0; border-right: 0; }
.offgrid-category-content > section:nth-of-type(2) .grid > div > p:first-child { margin: 0 0 7px; color: var(--spg-ink); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.offgrid-category-content > section:nth-of-type(2) .grid > div > p:nth-child(2) { margin: 0; color: var(--spg-copy); font-size: .84rem; line-height: 1.5; }
.offgrid-category-content > section:nth-of-type(2) .offgrid-stat-note { display: block; margin-top: 8px; color: #46705a; font-size: .74rem; font-weight: 650; line-height: 1.35; }
.category-article-list { padding-left: max(24px, calc((100vw - 1280px) / 2)); padding-right: max(24px, calc((100vw - 1280px) / 2)); }
.home-ad { color: #738077; }
.home-topics { padding-top: clamp(58px, 7vw, 90px); padding-bottom: clamp(64px, 8vw, 104px); background: #e8eddf; }
.home-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid #cbd5c7; border-bottom: 1px solid #cbd5c7; }
.home-topic-link { position: relative; min-height: 220px; padding: 26px 25px 28px 0; color: var(--spg-ink); text-decoration: none; }
.home-topic-link + .home-topic-link { padding-left: 25px; border-left: 1px solid #cbd5c7; }
.home-topic-number { color: #788a73; font-family: var(--spg-sans); font-size: .75rem; font-weight: 650; letter-spacing: .04em; }
.home-topic-link h3 { margin: 23px 0 10px; font-family: var(--spg-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.home-topic-link p { max-width: 255px; margin: 0; color: #526258; font-size: .9rem; line-height: 1.6; }
.home-topic-arrow { position: absolute; right: 20px; top: 23px; color: var(--spg-green); transition: transform .18s ease; }
.home-topic-link:hover .home-topic-arrow { transform: translate(3px, -3px); }

.site-newsletter { padding: 76px 0; background: #f5f5ed; }
.site-newsletter > div { max-width: 740px; }
.site-newsletter h2 { max-width: 650px; margin-left: auto; margin-right: auto; color: var(--spg-ink); font-family: var(--spg-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; font-optical-sizing: auto; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.site-newsletter p:not(.site-section-kicker) { color: var(--spg-copy); }
.site-newsletter input { min-height: 50px; border-radius: 3px; }
.site-newsletter button { border-radius: 3px; background: var(--spg-green); }
.site-newsletter button:hover { background: var(--spg-green-dark); }
.site-footer { background: #173b2c; }
.site-footer h3 { color: var(--spg-lime); }
.site-footer a { transition: color .18s ease; }
.site-footer a:hover { color: #e0f1ac; }

@media (max-width: 1020px) {
  .site-header-inner { min-height: 78px; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: .8rem; }
  .site-nav a[href="/installers"] { display: none; }
  .site-hero { min-height: 525px; }
  .site-hero-content { min-height: 445px; }
}
@media (max-width: 760px) {
  .site-header { background: rgb(247 247 241 / .97); }
  .site-header-inner { min-height: 72px; padding: 0 20px; }
  .site-brand { font-size: 1rem; }
  .site-brand-mark { width: 37px; height: 37px; }
  .site-nav { display: none; }
  .site-menu-button { display: block; }
  .site-mobile-menu:not([hidden]) { display: block; padding: 8px 20px 20px; background: var(--spg-paper); border-top: 1px solid var(--spg-line); }
  .site-mobile-menu-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: 620px; margin: auto; }
  .site-mobile-menu a { padding: 13px 0; border-bottom: 1px solid var(--spg-line); }
  .site-hero { min-height: 570px; padding-top: 72px; }
  .site-hero > img { object-position: 60% center; }
  .site-hero-shade { background: linear-gradient(90deg, rgb(13 34 26 / .78), rgb(13 34 26 / .40)), linear-gradient(0deg, rgb(13 34 26 / .28), transparent 70%); }
  .site-hero-content { min-height: 498px; padding: 62px 24px 64px; }
  .site-hero-content h1 { font-size: clamp(3rem, 12vw, 4.6rem); }
  .site-hero-copy { margin-top: 18px; }
  .site-subpage-hero-copy { padding: 4rem 24px; }
  .site-subpage-hero-copy h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .site-subpage-hero-copy p { margin-top: 14px; }
  .home-section { padding-left: 22px; padding-right: 22px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .home-card-grid > article img { height: 180px; }
  .home-card-grid > article > a > div { padding: 16px; }
  .home-card-grid > article > a > div > p:first-child { font-size: 1.2rem; }
  .home-reviews { padding-left: 22px; padding-right: 22px; }
  .home-offgrid { padding-left: 22px; padding-right: 22px; }
  .category-article-list { padding-left: 22px; padding-right: 22px; }
  .offgrid-category-content > section:nth-of-type(2) { padding-left: 22px; padding-right: 22px; }
  .offgrid-category-content > section:nth-of-type(2) .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offgrid-category-content > section:nth-of-type(2) .grid > div { padding: 20px 15px; }
  .offgrid-category-content > section:nth-of-type(2) .grid > div:nth-child(2n) { border-right: 0; }
  .offgrid-category-content > section:nth-of-type(2) .grid > div:nth-child(n+3) { border-top: 1px solid #cbd5c7; }
  .offgrid-category-content > section:nth-of-type(2) .grid > div:first-child,
  .offgrid-category-content > section:nth-of-type(2) .grid > div:nth-child(3) { padding-left: 0; }
  .offgrid-category-content > section:nth-of-type(2) .grid > div:nth-child(2),
  .offgrid-category-content > section:nth-of-type(2) .grid > div:nth-child(4) { padding-right: 0; }
  .home-topics { padding-left: 22px; padding-right: 22px; }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-topic-link { min-height: 195px; padding: 22px 16px 24px 0; }
  .home-topic-link + .home-topic-link { padding-left: 16px; }
  .home-topic-link:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid #cbd5c7; }
  .home-topic-link:nth-child(4) { border-top: 1px solid #cbd5c7; }
  .site-newsletter { padding: 58px 20px; }
}
@media (max-width: 480px) {
  .site-brand small { font-size: .59rem; }
  .offgrid-category-content > section:first-child { padding-left: 22px; padding-right: 22px; }
  .offgrid-category-content > section:nth-of-type(2) .grid > div { padding: 18px 10px; }
  .home-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-card-grid > article img { height: 210px; }
  .home-topic-grid { grid-template-columns: 1fr; }
  .home-topic-link, .home-topic-link + .home-topic-link, .home-topic-link:nth-child(3) { min-height: auto; padding: 20px 36px 23px 0; border-left: 0; border-top: 1px solid #cbd5c7; }
  .home-topic-link:first-child { border-top: 0; }
  .home-topic-link h3 { margin: 12px 0 7px; }
  .home-topic-arrow { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
