/* Contact (/contact/): page-specific rules on top of css/site.css. Tokens only. Linked from the head of contact.html only. */

/* page-level rules: the breadcrumb slash keeps its gap before the current page, and an H1 or H2 does not split a short word at a hyphen */
.sb-breadcrumb li[aria-current]::before { margin-right: 8px; }
h1, h2, h3, .sb-head h2 { hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: anywhere; }   /* only a very long word is hyphenated; none is cut in two at a normal size, and none can overflow at 200% text size */
/* a link inside a sentence or a table cell flows with the text (the system draws it as an inline block, which leaves holes in a wrapped line) */
.sb-table .sb-link, .sb-faq__item p .sb-link, main p > .sb-link { display: inline; }
/* an arrow is a navigation cue, not punctuation: none inside a sentence, a table cell or the list of how to reach us (it wrapped away from its word and read as a control in mid-sentence) */
.sb-table .sb-link svg, .ct-route p .sb-link svg, .ct-after p .sb-link svg, .ct-tail .sb-link svg, .ct-list .sb-link svg { display: none; }

/* the phone and tablet menu panel is closed before the script runs, so it does not collapse and shift the layout when site.js sets [hidden]. Without :has() support the script alone hides the panel; with scripts off the panel stays open as the phone navigation. */
@supports selector(:has(*)) {
  @media (max-width: 68.74em) {
    html.js .sb-menu-panel { display: none; }
    html.js:has(.sb-menu-btn[aria-expanded="true"]) .sb-menu-panel { display: block; }
  }
}

/* hero: same shape as the FAQ hero. The brand name is one unit (it is not split across lines); the type size follows the column it sits in, so "My Solar Brokers" fits it. */
.ct-hero .sb-hero__copy { padding-block: var(--sp-3) var(--sp-8); }
.ct-hero h1 { max-width: none; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--trk-h1); }
.ct-brand { display: inline-block; }
.ct-hero .sb-checked { margin-top: var(--sp-3); }
.ct-hero .sb-answer {
  margin-top: var(--sp-6);
  --text: var(--navy); --text-soft: var(--navy-soft); --rule: var(--line); --link-c: var(--link); --link-visited-c: var(--link-visited); --focus: var(--navy);
}
.ct-hero .sb-answer > p:first-child { font-size: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem); }
@media (min-width: 64em) {
  .ct-hero .sb-hero__copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; grid-template-rows: auto 1fr; padding-block: 24px 88px; }
  .ct-hero .sb-hero__copy > nav { grid-column: 1 / -1; }
  .ct-hero h1 { grid-column: 1 / span 5; grid-row: 2; align-self: center; }
  .ct-hero .sb-checked { grid-column: 1 / span 5; grid-row: 3; }
  .ct-hero .sb-answer { grid-column: 6 / span 7; grid-row: 2 / span 2; margin-top: 0; }
}

/* how to reach: a ruled list, the label small and the value large (prints only when a setting is filled; the page recipe removes the section while all four are empty) */
.ct-list { margin: 0; border-top: 2px solid var(--navy); }
.sb-contact-list__row { display: grid; gap: 2px var(--sp-5); padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.sb-contact-list__row dt { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.sb-contact-list__row dd { margin: 0; font-size: var(--fs-lede); line-height: 1.35; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.sb-contact-list__row address { font-style: normal; }
.sb-contact-list__row dd .sb-link { padding-block: 10px; }
@media (min-width: 48em) { .sb-contact-list__row { grid-template-columns: 9rem minmax(0, 1fr); } }
.pb-preview { padding: var(--sp-5); border: 2px dashed var(--navy); color: var(--navy-soft); }

/* section heads on this page: the heading and its lead start on the same line (the system bottom-aligns them, which left 110 px of blank above a one-line heading) */
@media (min-width: 64em) { #topics .sb-head, #offices .sb-head { align-items: start; } }

/* what to write about: ruled text blocks, two across from 64em (an odd last block spans both columns), one column below it. A block is about 33 em wide, so a line runs 45 to 75 characters. No drawn glyphs. */
.ct-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6) var(--sp-7); }
.ct-route { max-width: var(--measure); border-top: 2px solid var(--navy); padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.ct-route h3 { font-size: var(--fs-h4); line-height: 1.25; }
.ct-route p { max-width: var(--measure); }
@media (min-width: 64em) {
  .ct-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-route { max-width: none; }
  .ct-route:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ct-tail { margin-top: var(--sp-6); max-width: var(--measure); }
.ct-request + .ct-tail { margin-top: var(--sp-3); }
#topics { padding-bottom: calc(var(--section) * .6); }

/* state offices: state outlines in the heads, then the FTC line, the numbered sources and the guide link */
.pb-state { width: 44px; height: 44px; flex: none; }
.pb-state path.o { fill: var(--sky-soft); stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; }
.pb-state circle { fill: var(--gold); stroke: var(--navy); stroke-width: 1.6; }
.pb-mk { display: inline-flex; align-items: center; gap: var(--sp-3); }
.sb-sheet .sb-table thead th { font-size: 1rem; vertical-align: middle; }   /* "Your problem" lines up with the state names */
.sb-sheet .sb-table caption { font-size: var(--fs-ui); color: var(--text-soft); padding-bottom: var(--sp-4); }
@media (min-width: 64em) { .sb-sheet .sb-table td { max-width: 24rem; } }
.ct-after { margin-top: var(--sp-6); display: grid; gap: var(--sp-5); }
.ct-after > p { max-width: var(--measure); }
.ct-src { max-width: none; margin-top: var(--sp-2); padding-top: var(--sp-5); border-top: 1px solid var(--line-strong); font-size: .9375rem; line-height: 1.5; color: var(--text-soft); }
.ct-src__k { margin: 0 0 var(--sp-3); font-weight: 600; color: var(--text); }
.ct-src__list { margin: 0; padding-left: 1.75em; }
.ct-src__list li { padding-left: .35em; margin-bottom: var(--sp-3); break-inside: avoid; max-width: 36rem; }
.ct-src__list li::marker { font-weight: 600; color: var(--text); }
.ct-src time { white-space: nowrap; }
.ct-src a { display: inline-block; max-width: 100%; padding: 0; }   /* one box per link, as the system does (a wrapped inline link and the date beside it overlap in a hit test); no vertical padding, so every line has the same height */
.ct-src__chk { margin: var(--sp-2) 0 0; }
.ct-next { padding-top: var(--sp-5); border-top: 1px solid var(--line-strong); }
.ct-next p { max-width: var(--measure); }
.ct-next .sb-link { display: inline-block; }   /* the title of the guide stays on one line when it fits */
@media (min-width: 64em) { .ct-src__list { columns: 2; column-gap: var(--sp-8); } }

/* closing: the lead line under the heading */
.pb-lead { margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); max-width: 28rem; font-size: var(--fs-lede); line-height: 1.45; color: var(--navy-soft); }
.sb-closing .sb-market-row { margin-top: var(--sp-5); }
/* closing photograph: the "Illustrative photograph" caption is a strip below the picture, not a chip over it */
.sb-closing .sb-survey { --cap-h: 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.sb-closing .sb-survey picture { bottom: var(--cap-h); }
.sb-closing .sb-survey img { object-position: 18% 50%; }   /* the whole front of the house; the neighbour's roof falls outside the crop */
.sb-closing .sb-survey .sb-cap { position: static; display: flex; align-items: center; min-height: var(--cap-h); padding: 6px var(--gutter); }

/* a four-column table stays stacked up to 64em (the system stacks below 48em): at tablet width four narrow columns break words */
@media (min-width: 48em) and (max-width: 63.99em) {
  .sb-table--offices.sb-table--stack thead { display: none; }
  .sb-table--offices.sb-table--stack, .sb-table--offices.sb-table--stack tbody, .sb-table--offices.sb-table--stack tr, .sb-table--offices.sb-table--stack th, .sb-table--offices.sb-table--stack td { display: block; width: 100%; max-width: none; }
  .sb-table--offices.sb-table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .sb-table--offices.sb-table--stack tbody tr:last-child { border-bottom-color: var(--navy); }
  .sb-table--offices.sb-table--stack th, .sb-table--offices.sb-table--stack td { padding: 3px 0; border: 0; }
  .sb-table--offices.sb-table--stack tbody th { font-size: 1.0625rem; padding-bottom: 6px; }
  .sb-table--offices.sb-table--stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-caption); font-weight: 600; color: var(--text-soft); }
  .sb-table--offices.sb-table--stack caption { display: block; }
}
