/* Hub page stylesheet, linked from that page only. Uses the tokens in css/site.css and adds nothing to them. */
/* ===== shared by the market hub pages ===== Part 1 holds the generic hub rules (same class names as css/pages/pennsylvania.css); the Pennsylvania-only rules (year strip, customer-generator bars, Level 1 clock) are left out. Part 2 holds figure, pointer and table-shadow rules. */
/* Pennsylvania hub (/solar/pennsylvania/): the layout of the site.css components on this page only. The other hubs use the same classes. Colours, type and spacing are site.css tokens; nothing here is a new component and no colour is written as a raw value. */

/* breadcrumb: the current item carries its own separator spacing ("Home / Solar / Pennsylvania", not "Solar /Pennsylvania") */
.sb-breadcrumb li[aria-current="page"]::before { margin-right: 8px; }
/* headings break at spaces only */
h1, h2, h3, h4 { hyphens: manual; }

/* ---- the four-figure strip under the hero: a figure, its own sentence from the copy, the source chip ---- */
.pa-facts { padding-block: var(--sp-7) var(--sp-8); }
.pa-facts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.pa-facts__list li { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pa-facts .sb-stat { font-size: clamp(2.5rem, 2rem + 1.7vw, 3.75rem); width: 100%; }
.pa-facts .sb-stat__label { margin: var(--sp-3) 0 var(--sp-4); max-width: none; font-size: var(--fs-body); line-height: 1.5; color: var(--navy); }
.pa-facts .sb-chip { margin-top: auto; max-width: 100%; }
@media (min-width: 40em) { .pa-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); } }
@media (min-width: 64em) { .pa-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- one band per section: the heading pinned left, the section right (the Solar page's layout) ---- */
.pa-band .sb-split__b > h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-1); font-size: var(--fs-h4); line-height: 1.28; letter-spacing: var(--trk-h3); }
.pa-band .sb-split__b > h3:first-child { margin-top: 0; }
.pa-band .sb-split__b > p { max-width: var(--measure); }
.pa-band .sb-split__b > p.sb-source { max-width: 33em; }

/* rules at a glance: the sentence, then its source chips under it */
.pa-band .sb-glance { max-width: none; }
.pa-band .sb-glance li { grid-template-columns: minmax(0, 1fr); padding: 20px 0; gap: 12px; }
.pa-band .sb-glance li > span:first-child { max-width: 35rem; font-size: 1.1875rem; line-height: 1.55; }
.pa-band .sb-chips { justify-content: flex-start; }

/* steps inside a band: the compact numerals the document layout used */
.pa-band .sb-split__b .sb-steps { max-width: none; margin-top: var(--sp-4); }
.pa-band .sb-split__b .sb-steps > li { grid-template-columns: 3.5rem minmax(0, 1fr); padding: var(--sp-4) 0 var(--sp-5); }
.pa-band .sb-split__b .sb-steps > li::before { font-size: 2.5rem; }
.pa-band .sb-split__b .sb-steps h4 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 48em) { .pa-band .sb-split__b .sb-steps > li { grid-template-columns: 4.5rem minmax(0, 1fr); } }

/* the year-end, turnaround and contract tables: a little more air than the document layout gives them */
.pa-band .sb-table th, .pa-band .sb-table td { padding-top: 16px; padding-bottom: 16px; }
.pa-band .sb-table thead th { padding-top: 0; padding-bottom: 10px; }
.pa-band .sb-split__b .sb-table + p, .pa-band .sb-split__b .sb-table-wrap + p { margin-top: var(--sp-5); }

/* sources: two columns on wide screens */
.pa-sources__lead { margin-top: var(--sp-3); color: var(--text-soft); max-width: 46rem; }
@media (min-width: 64em) {
  .pa-sources ol { max-width: none; columns: 2; column-gap: var(--sp-8); }
  .pa-sources li { break-inside: avoid; }
}

/* ===== part 2 ===== */
/* the strip's chips sit at the foot of each tile; a source line under the strip */
.pa-facts .sb-chip { margin-top: auto; }
/* a drawn figure built from numbers printed in the copy; the table that follows holds the same numbers, so the drawing is hidden from screen readers */
.hx-fig { margin: var(--sp-5) 0 0; padding: var(--sp-5); background: var(--paper); border: 1px solid var(--line-strong); max-width: none; }
.hx-fig figcaption { font-size: var(--fs-caption); line-height: 1.5; color: var(--navy-soft); margin: 0 0 var(--sp-4); max-width: 46rem; }
.pa-band .sb-split__b > .hx-fig + * { margin-top: var(--sp-5); }
@media (min-width: 48em) { .hx-fig { padding: var(--sp-6); } }
/* a pointer from one page to another: ruled rows, each a title, one line and one link */
.hx-trio { list-style: none; margin: var(--sp-5) 0 0; padding: 0; border-top: 2px solid var(--navy); }
.hx-trio > li { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.hx-trio h3 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 var(--sp-2); }
.hx-trio p { color: var(--text-soft); max-width: 30rem; }
.hx-trio .sb-link { justify-self: start; }
@media (min-width: 40em) {
  .hx-trio > li { grid-template-columns: 11.5rem minmax(0, 1fr); column-gap: var(--sp-5); }
  .hx-trio h3 { grid-row: 1 / span 2; margin: 0; }
}
/* tables that scroll sideways keep their scroll shadows in the colour of the band or panel they sit on (site.css draws them in sky mist) */
.band-paper .sb-table-wrap, .sb-worked .sb-table-wrap, .hx-fig .sb-table-wrap { background:
  linear-gradient(to right, var(--paper) 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local,
  linear-gradient(to left, var(--paper) 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local,
  linear-gradient(to right, rgba(27,42,74,.22), rgba(27,42,74,0)) left center / 10px 100% no-repeat scroll,
  linear-gradient(to left, rgba(27,42,74,.22), rgba(27,42,74,0)) right center / 10px 100% no-repeat scroll; }
.band-soft .sb-table-wrap { background:
  linear-gradient(to right, var(--surface-2) 30%, rgba(199,229,242,0)) left center / 28px 100% no-repeat local,
  linear-gradient(to left, var(--surface-2) 30%, rgba(199,229,242,0)) right center / 28px 100% no-repeat local,
  linear-gradient(to right, rgba(27,42,74,.22), rgba(27,42,74,0)) left center / 10px 100% no-repeat scroll,
  linear-gradient(to left, rgba(27,42,74,.22), rgba(27,42,74,0)) right center / 10px 100% no-repeat scroll; }
/* hairlines on the sky soft band read as boundaries */
.band-soft { --rule: var(--line-strong); }
.band-soft .sb-chip { background: var(--paper); }
/* a definition list and a source line after it */
.pa-band .sb-split__b .sb-defs { margin-top: var(--sp-5); }
.pa-band .sb-split__b .sb-answer + p { margin-top: var(--sp-5); }
.pa-band .sb-split__b > p + .sb-glance { margin-top: var(--sp-4); }
.pa-band .sb-split__b .sb-sources { max-width: none; }

/* a numeric table that fits a phone as it is: the stacked layout is for text tables */
.sb-table--plainnum th, .sb-table--plainnum td { padding-right: 12px; }
.sb-table--plainnum th:last-child, .sb-table--plainnum td:last-child { padding-right: 0; }
.hx-lanes + *, .sb-split__b > figure + .sb-source { margin-top: var(--sp-5); }

/* a wide band: heading and lead above, the body at the full width of the page (tables of four columns or long cells). Prose keeps its measure. */
.pa-band--wide .sb-head { margin-bottom: var(--sp-6); }
.pa-wide > * + * { margin-top: var(--sp-4); }
.pa-wide > p { max-width: var(--measure); }
.pa-wide > p.sb-source { max-width: 33em; }
.pa-wide > h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-1); font-size: var(--fs-h4); line-height: 1.28; letter-spacing: var(--trk-h3); }
.pa-wide > .sb-table, .pa-wide > .sb-table-wrap { margin-top: var(--sp-5); }
.pa-wide > .sb-table + p, .pa-wide > .sb-table-wrap + p, .pa-wide > .hx-fig + p { margin-top: var(--sp-5); }
.pa-wide > .sb-table + .sb-source { margin-top: var(--sp-3); }
.pa-wide > .hx-fig { max-width: 46rem; }
.pa-wide .sb-plain-list { max-width: none; }
.pa-wide .sb-plain-list li { max-width: var(--measure); }
.pa-wide .sb-defs, .pa-wide .sb-faq { max-width: 54rem; }
.pa-band--wide .sb-table th, .pa-band--wide .sb-table td { padding-top: 16px; padding-bottom: 16px; padding-right: 28px; }
.pa-band--wide .sb-table thead th { padding-top: 0; padding-bottom: 10px; }
.pa-band--wide .sb-table td:last-child, .pa-band--wide .sb-table th:last-child { padding-right: 0; }

/* a gated block wraps ordinary paragraphs and a heading: they keep the band's measure and heading style */
.pa-band .sb-split__b > div.sb-gated > p, .pa-wide > div.sb-gated > p { max-width: var(--measure); }
.pa-band .sb-split__b > div.sb-gated > p.sb-source, .pa-wide > div.sb-gated > p.sb-source { max-width: 33em; }
.pa-band .sb-split__b > div.sb-gated > * + *, .pa-wide > div.sb-gated > * + * { margin-top: var(--sp-4); }
.pa-band .sb-split__b > div.sb-gated > h3, .pa-wide > div.sb-gated > h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-1); font-size: var(--fs-h4); line-height: 1.28; letter-spacing: var(--trk-h3); }
.pa-band .sb-split__b > div.sb-gated > p.sb-source { margin-top: var(--sp-3); }
.pa-band .sb-split__b .sb-steps--plain, .pa-wide .sb-steps--plain { max-width: 38rem; }

/* keyboard: the jump bar scrolls edge to edge on screens narrower than the page container, so a focused item at the screen edge is not clipped by an invisible box inside the gutter */
@media (max-width: 78em) {
  .sb-jump > .wrap { width: 100%; }
  .sb-jump ul { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
/* two inline links in one table cell: each is one box, so its focus ring stays in one piece when the cell wraps */
.sb-table td a:not(.sb-cell-link), .sb-table th a:not(.sb-cell-link) { display: inline-block; max-width: 100%; padding-block: 2px; }

/* inside a white worked-example panel the table gets room above it */
.sb-worked > .sb-table, .sb-worked > .sb-table-wrap { margin-top: var(--sp-5); }

/* the labelled scroll region around a short numeric table scrolls only when the text is enlarged enough to need it (site.css gives the region a 30rem floor on phones) */
@media (max-width: 47.99em) { .sb-table-wrap .sb-table--plainnum { min-width: 0; } }

/* a dated first column may wrap on a phone (a date range does not fit one line at 200% text size) */
@media (max-width: 47.99em) { .sb-table time, .sb-table--changing tbody tr > :first-child { white-space: normal; } }

/* ===== New Jersey page only ===== */

/* the four utilities, as the tariffs name them: one ruled row each */
.hx-utils__k { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-caption); color: var(--navy-soft); max-width: none; }
.hx-utils { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.hx-utils li { border-bottom: 1px solid var(--rule); }
.hx-utils a { display: grid; gap: 2px var(--sp-5); align-content: center; min-height: 56px; padding: 12px 0; color: var(--text); text-decoration: none; }
.hx-utils a:visited { color: var(--text); }
.hx-utils b { font-size: 1.1875rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-strong); }
.hx-utils span { color: var(--navy-soft); font-size: var(--fs-ui); line-height: 1.45; }
.hx-utils a:hover b, .hx-utils a:focus-visible b { text-decoration-color: var(--navy); text-decoration-thickness: 2px; }
@media (min-width: 48em) { .hx-utils a { grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); align-items: baseline; } }

/* the home value of an SREC-II before and after 27 Jul 2026: two figures and an arrow (the same numbers are in the sentence beside it) */
.hx-shift__row { display: grid; gap: var(--sp-3); align-items: start; }
.hx-shift__row p:not(.sb-stat) { max-width: 20rem; margin-top: var(--sp-3); color: var(--navy); }
.hx-shift .sb-stat { font-size: clamp(2.75rem, 2.1rem + 2.8vw, 4.5rem); }
.hx-shift__was .sb-stat { color: var(--navy-soft); border-top-color: var(--line-strong); }
.hx-shift__arrow { display: flex; align-items: center; justify-content: center; color: var(--navy); }
.hx-shift__arrow svg { width: 40px; height: 16px; transform: rotate(90deg); }
@media (min-width: 40em) {
  .hx-shift__row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .hx-shift__arrow { align-self: start; padding-top: calc(var(--sp-4) + 1.4rem); }
  .hx-shift__arrow svg { transform: none; width: 56px; height: 20px; }
}

/* an inline citation link in a sentence is one box, so its focus ring stays in one piece when the sentence wraps (the harness reads a wrapped inline link next to another as a missing ring) */
.pa-band .sb-split__b p a:not(.sb-link):not(.sb-chip), .pa-band .sb-split__b li a:not(.sb-link):not(.sb-chip):not(.sb-guide) { display: inline-block; max-width: 100%; padding-block: 2px; }

/* hero photograph: the brick house (roof-calm). The roofline is the subject: keep it in the strip on a phone and keep the next house's roof mostly out of the frame on a desktop (the crop is 1.35:1 from a 1.61:1 picture; on a phone the strip is 2.2:1). */
.sb-hero--hub.sb-hero--nj .sb-hero__media img { object-position: 36% 22%; }
