/* Phone layout. The stylesheet is loaded with media="(max-width: 760px)". */

/* Contact section shared by both languages and all page templates. */
body.pb-site .pb-graphite-footer { padding-block: 18px 14px; }
body.pb-site .pb-graphite-footer .pb-contact { row-gap: 12px; padding-bottom: 12px; }
#request.pb-graphite-footer .pb-footer-intro .pb-footer-kicker { margin-bottom: 6px; }
#request.pb-graphite-footer .pb-footer-intro h2 { max-width: none; text-wrap: pretty; }
#request.pb-graphite-footer .pb-footer-intro .pb-footer-description { margin-top: 16px; }
#request.pb-graphite-footer .pb-footer-intro .pb-footer-phone { margin-top: 8px; }
#request.pb-graphite-footer .pb-footer-intro .pb-footer-email { margin-top: 18px; }
#request.pb-graphite-footer .pb-footer-email a { color: #fff; }
#request.pb-graphite-footer .pb-footer-intro .pb-social-links { margin-block: 6px 0; }
body.pb-site .pb-graphite-footer .request-form { row-gap: 6px; }
#request.pb-graphite-footer .request-form .pb-request-contacts { row-gap: 6px; }
body.pb-site .pb-graphite-footer .request-form :is(input:not([type=hidden]),select,textarea) { min-height: 44px; margin-top: 2px; padding-block: 7px; }
body.pb-site .pb-graphite-footer .request-form textarea { height: 68px; }
#request.pb-graphite-footer .pb-footer-bottom { gap: 6px; margin-top: 12px; }
#request.pb-graphite-footer .pb-footer-brand { gap: 5px; }

/* Homepage sections and card interiors. */
body.pb-site #pb-quiz { padding-block: 12px; }
#pb-quiz .pq-quiz-layout { gap: 9px; }
#pb-quiz .pq-next-row { margin-top: 6px; padding-top: 6px; }
body.pb-site .pb-graphite-equipment { height: auto; min-height: 0; padding-block: 10px; gap: 4px; }
body.pb-site .pb-graphite-equipment a { min-height: 32px; }
body.pb-home :is(.pb-shop,.pb-intro,.pb-about,.pb-reviews) { padding-block: 16px; }
body.pb-home .pb-shop-heading { row-gap: 8px; margin-bottom: 10px; }
body.pb-home .pb-shop-intro p { margin-bottom: 6px; }
body.pb-home .pb-shop-categories { gap: 7px; }
body.pb-home .pb-shop-categories > a { min-height: 44px; padding: 8px 10px; }
body.pb-home .pb-intro h2 { margin-bottom: 8px; }
body.pb-home .pb-technical-inner { padding-top: 18px; }
body.pb-home .pb-technical-top { margin-bottom: 10px; }
body.pb-home .pb-about { row-gap: 12px; }
body.pb-home .pb-about-facts { margin-top: 9px; gap: 9px; }
body.pb-home .pb-about-copy p { margin-bottom: 10px; }
body.pb-home :is(.pb-about-copy,.pb-process-services) > .pb-nav-button { margin-top: 6px; }
body.pb-home .pb-opposed { padding-top: 14px; }
body.pb-home .pb-process { padding-block: 12px 16px; }
body.pb-home .pb-process-body { margin-top: 10px; row-gap: 12px; }
body.pb-home .pb-steps > article { padding-block: 8px; }
body.pb-home .pb-process-services { padding-top: 10px; row-gap: 6px; }
body.pb-home .pb-solutions { padding-top: 16px; }
body.pb-home #solution-showcase { margin-top: 10px; row-gap: 10px; }
body.pb-home #solution-showcase .pb-solution-tile-copy { padding-block: 10px; }
body.pb-home #solution-showcase .pb-solution-tile-copy p { margin-block: 6px 10px; }
body.pb-home .pb-approach-overview { padding: 12px 0; gap: 8px; }
body.pb-home .pb-approach-group { padding: 12px 14px; }
body.pb-home .pb-approach-group::before { top: 12px; left: 14px; }
body.pb-home .pb-approach-group h3 { margin-bottom: 8px; }
body.pb-home .pb-approach-group ul { gap: 8px 12px; }
body.pb-home .pb-reviews { row-gap: 12px; }
body.pb-home .pb-reviews-heading > p:last-child { margin-top: 8px; }
body.pb-home .pb-review-controls { margin-bottom: 10px; }
body.pb-home .pb-review { padding-top: 12px; }
body.pb-home .pb-review figcaption { margin-top: 10px; }
body.pb-home .pb-review-write { margin-top: 14px; }

/* Shared interior pages. The fixed navigation needs room above breadcrumbs. */
body.pb-site .subpage { min-height: 0; padding-top: 90px; padding-bottom: 18px; }
body.pb-site .subpage .pb-breadcrumbs { margin-bottom: 10px; }
body.pb-site .subpage .eyebrow { margin-bottom: 7px; }
body.pb-site .subpage h1 { margin-bottom: 10px; }
body.pb-site .subpage .sub-lead,
body.pb-site .subpage :is(.pb-article-header,.pb-case-header) .sub-lead { margin-bottom: 14px; }
body.pb-site .subpage .pb-category-summary { margin-bottom: 16px; }
body.pb-site .subpage .sub-points { margin-block: 14px 20px; }
body.pb-site .subpage .sub-points > div { padding-block: 12px; gap: 8px 14px; }
body.pb-site .subpage .sub-note { margin-bottom: 16px; padding-block: 12px; }
body.pb-site .subpage .pb-editorial { margin-block: 16px; row-gap: 16px; }
body.pb-site .subpage .pb-editorial h2 { margin-bottom: 10px; }
body.pb-site .subpage :is(.pb-editorial,.pb-article-section,.pb-news-prose) p + p { margin-top: 12px; }
body.pb-site .subpage .pb-content-links { margin-block: 14px; gap: 6px 10px; }
body.pb-site .subpage .pb-content-links > a { padding-block: 9px; min-height: 44px; }
body.pb-site .subpage :is(.pb-related,.pb-next-step) { margin-top: 22px; padding-top: 14px; }
body.pb-site .subpage :is(.pb-related,.pb-next-step,.pb-faq) > h2 { margin-bottom: 12px; }
body.pb-site .subpage :is(.pb-related,.pb-next-step) > p { margin-bottom: 12px; }
body.pb-site .subpage .pb-faq { margin-top: 20px; }
body.pb-site .subpage .pb-faq-search { margin-block: 14px; }
body.pb-site .subpage .pb-faq summary { min-height: 44px; padding-block: 10px; }
body.pb-site .subpage .pb-faq details p { padding-bottom: 10px; }
body.pb-site .subpage .pb-faq-origin { margin-top: 10px; }
body.pb-site .subpage .pb-solution-index { margin-top: 20px; gap: 12px; }
body.pb-site .subpage .pb-solution-index > a { min-height: 0; padding-block: 14px; }
body.pb-site .subpage .pb-solution-index img { margin-bottom: 10px; }
body.pb-site .subpage .pb-solution-index h2 { margin-top: 10px; }
body.pb-site .subpage .pb-apartment-figure { margin-block: 14px 18px; }
body.pb-site .subpage .services-list { margin-top: 18px; }
body.pb-site .subpage .services-list > article { padding-block: 14px; }
body.pb-site .subpage .catalog-summary { margin-bottom: 14px; padding-block: 12px; row-gap: 8px; }
body.pb-site .subpage .catalog-tools { padding-block: 12px; row-gap: 10px; }
body.pb-site .subpage .catalog-section { margin-bottom: 16px; }
body.pb-site .subpage .catalog-section h2 { margin-bottom: 10px; }
body.pb-site .subpage .catalog-section :is(th,td) { padding-block: 9px; }
body.pb-site .subpage .catalog-end { margin-top: 18px; padding-block: 14px; }
body.pb-site .subpage .pb-social-phone { margin-block: 14px 8px; }
body.pb-site .subpage .pb-contact-channels .pb-social-links { margin-block: 12px; }
body.pb-site .subpage .pb-contact-address { margin-bottom: 14px; }

/* Lists of projects, articles and news; project detail and reading pages. */
body.pb-site .subpage :is(.pb-project-folders,.pb-project-category-nav,.pb-knowledge-topics) { margin-block: 14px 18px; gap: 8px; }
body.pb-site .subpage :is(.pb-case-grid,.pb-news-grid,.pb-article-grid,.pb-case-photo-grid,.pb-official-grid) { row-gap: 12px; }
body.pb-site .subpage .pb-case-grid { margin-bottom: 22px; }
body.pb-site .subpage :is(.pb-project-folder-copy,.pb-case-card-copy,.pb-news-card-copy,.pb-article-card-copy) { padding: 12px; }
body.pb-site .subpage :is(.pb-project-folder-copy,.pb-case-card-copy) h2 { margin-bottom: 9px; }
body.pb-site .subpage .pb-news-card-copy h3 { margin-top: 8px; }
body.pb-site .subpage :is(.pb-project-folder-copy,.pb-case-card-copy,.pb-news-card-copy,.pb-article-card-copy) p { margin-bottom: 10px; }
body.pb-site .subpage .pb-case-card-stats { padding-top: 10px; margin-bottom: 12px; }
body.pb-site .subpage .pb-projects-note { margin-bottom: 20px; }
body.pb-site .subpage :is(.pb-case-metrics,.pb-case-story,.pb-case-gallery,.pb-case-details,.pb-case-equipment,.pb-case-forecast,.pb-case-operation,.pb-case-bottom-nav) { margin-bottom: 18px; }
body.pb-site .subpage :is(.pb-case-story,.pb-case-details,.pb-case-operation ol,.pb-case-forecast dl) { row-gap: 12px; }
body.pb-site .subpage :is(.pb-case-metrics > div,.pb-case-equipment tr) { padding-block: 8px; }
body.pb-site .subpage .pb-case-operation li { padding-top: 10px; gap: 10px; }
body.pb-site .subpage .pb-case-forecast { padding-block: 14px; }
body.pb-site .subpage .pb-case-forecast dl { margin-block: 14px; }
body.pb-site .subpage .pb-case-forecast dl > div { padding-bottom: 10px; }
body.pb-site .subpage .pb-case-section-label { margin-bottom: 8px; }
body.pb-site .pb-case-page :is(.pb-case-story h2,.pb-case-section-head,.pb-case-equipment h2,.pb-case-forecast h2,.pb-case-operation h2) { margin-bottom: 10px; }
body.pb-site .subpage .pb-article-meta { margin-block: 10px 16px; }
body.pb-site .subpage :is(.pb-article-group,.pb-news-prose > section) { margin-bottom: 22px; }
body.pb-site .subpage .pb-article-group-title { margin-bottom: 12px; padding-top: 14px; }
body.pb-site .subpage :is(.pb-article-layout,.pb-news-layout) { row-gap: 16px; }
body.pb-site .subpage .pb-article-section { margin-bottom: 18px; }
body.pb-site .subpage :is(.pb-article-section,.pb-news-prose) h2 { margin-bottom: 9px; }
body.pb-site .subpage :is(.pb-article-brief,.pb-news-status,.pb-news-edition,.pb-outage-notice) { margin-block: 14px; padding-block: 12px; }
body.pb-site .subpage :is(.pb-news-figure,.pb-article-figure) { margin-block: 14px 18px; }
body.pb-site .subpage :is(.pb-calculation,.pb-news-calculation) { padding-block: 12px; margin-block: 14px; }
body.pb-site .subpage :is(.pb-article-table,.pb-news-table,.pb-knowledge-footnote,.pb-article-body ul,.pb-news-takeaway) { margin-block: 12px; }
body.pb-site .subpage :is(.pb-news-summary,.pb-article-related) { margin-block: 16px; }
body.pb-site .subpage :is(.pb-article-next,.pb-article-sources,.pb-news-policy,.pb-news-sources) { margin-top: 20px; padding-top: 14px; }
body.pb-site .subpage :is(.pb-section-refs,.pb-news-next,.pb-news-next > a,.pb-outage-preparation > a,.pb-news-policy > a) { margin-top: 10px; }
body.pb-site .subpage .pb-outage-layout { margin-block: 16px; row-gap: 14px; }
body.pb-site .subpage :is(.pb-official-grid > a,.pb-outage-steps li,.pb-outage-preparation) { padding-block: 12px; }

/* Allow grouped last words to reflow when they would force an extra line. */
body.pb-site .subpage .pb-title-tail,
body.pb-home :is(.pb-shop,.pb-intro,.pb-process,.pb-about,.pb-solutions,.pb-reviews,#pb-quiz) .pb-title-tail { display: inline; width: auto; }
body.pb-site .subpage :is(h1,h2,h3,h4):has(> .pb-title-tail),
body.pb-home :is(.pb-shop,.pb-intro,.pb-process,.pb-about,.pb-solutions,.pb-reviews,#pb-quiz) :is(h2,h3):has(> .pb-title-tail) { text-wrap: balance; }

/* Mobile contact block. Loaded by the existing mobile-only stylesheet. */
#request.pb-graphite-footer { padding-block: 10px 8px; }
#request.pb-graphite-footer .pb-contact { row-gap: 12px; padding-bottom: 6px; }

#request .pb-footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}
#request .pb-footer-intro > * { grid-column: 1 / -1; min-width: 0; }
#request.pb-graphite-footer .pb-footer-intro .pb-footer-kicker {
  grid-area: 1 / 1;
  margin: 0;
}
#request.pb-graphite-footer .pb-footer-intro .pb-footer-phone {
  grid-area: 1 / 2;
  justify-self: end;
  margin: 0;
}
#request.pb-graphite-footer .pb-footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 12px/1.5 PBManrope, Arial, sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
}
#request.pb-graphite-footer .pb-footer-intro .pb-footer-description { margin-top: 16px; }
#request.pb-graphite-footer .pb-footer-intro .pb-social-links { margin-top: 6px; }

/* Keep fields and their submit button on the same column. */
#request.pb-graphite-footer .request-form {
  --caption-width: clamp(104px, 30%, 132px);
  --field-gap: 8px;
}
#request.pb-graphite-footer .request-form,
#request.pb-graphite-footer .request-form .pb-request-contacts { row-gap: 12px; }
#request.pb-graphite-footer .request-form label:has(> .pb-request-caption) {
  display: grid;
  grid-template-columns: var(--caption-width) minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--field-gap);
  min-width: 0;
}
#request.pb-graphite-footer .request-form .pb-request-caption { min-width: 0; }
#request.pb-graphite-footer .request-form label > :is(input,select,textarea) { margin-top: 0; min-width: 0; width: 100%; }
#request.pb-graphite-footer .request-form textarea { height: 60px; }
#request.pb-graphite-footer .request-form button[type=submit] {
  justify-self: stretch;
  width: auto;
  min-width: 0;
  margin-inline-start: calc(var(--caption-width) + var(--field-gap));
  margin-top: 0;
  padding-inline: 10px;
  min-height: 44px;
}

#request.pb-graphite-footer .pb-footer-bottom { margin-top: 4px; row-gap: 2px; }
#request.pb-graphite-footer .pb-footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 0 6px;
  align-items: center;
}
#request.pb-graphite-footer .pb-footer-brand > span {
  justify-self: end;
  text-align: right;
  text-wrap: balance;
}

/* Match the mobile header's logo proportions so the location has its own column. */
#request .pb-footer-brand .pb-header-logo { gap: 6px; }
#request .pb-footer-brand .pb-brand-emblem { width: 30px; height: 28.7166px; }
#request .pb-footer-brand .pb-brand-lettering { width: 107px; height: 18.6195px; }
#request.pb-graphite-footer .pb-footer-brand > span { text-wrap: wrap; }
#request.pb-graphite-footer .pb-footer-bottom nav {
  flex-wrap: nowrap;
  justify-content: space-between;
  column-gap: 6px;
}


/* A little more space on the mobile homepage; vertical spacing only. */
@media (max-width: 760px) {
  body.pb-home #pb-quiz { padding-block: 18px; }
  body.pb-home #pb-quiz .pq-quiz-layout { row-gap: 14px; }
  body.pb-home #pb-quiz .pq-next-row { margin-top: 10px; padding-top: 10px; }
  body.pb-home :is(.pb-shop,.pb-intro,.pb-about,.pb-reviews) { padding-block: 22px; }
  body.pb-home .pb-shop-heading { row-gap: 12px; margin-bottom: 16px; }
  body.pb-home .pb-shop-intro p { margin-bottom: 10px; }
  body.pb-home .pb-shop-categories { row-gap: 10px; }
  body.pb-home .pb-intro h2 { margin-bottom: 14px; }
  body.pb-home .pb-about { row-gap: 16px; }
  body.pb-home .pb-about-facts { margin-top: 13px; row-gap: 12px; }
  body.pb-home .pb-about-copy p { margin-bottom: 14px; }
  body.pb-home :is(.pb-about-copy,.pb-process-services) > .pb-nav-button { margin-top: 10px; }
  body.pb-home .pb-process { padding-block: 18px 22px; }
  body.pb-home .pb-process-body { margin-top: 16px; row-gap: 16px; }
  body.pb-home .pb-steps > article { padding-block: 10px; }
  body.pb-home .pb-process-services { padding-top: 14px; row-gap: 10px; }
  body.pb-home .pb-solutions { padding-top: 22px; }
  body.pb-home #solution-showcase { margin-top: 16px; row-gap: 14px; }
  body.pb-home #solution-showcase .pb-solution-tile-copy { padding-block: 14px; }
  body.pb-home #solution-showcase .pb-solution-tile-copy p { margin-block: 10px 14px; }
  body.pb-home .pb-approach-overview { padding-block: 16px; row-gap: 12px; }
  body.pb-home .pb-approach-group { padding-block: 16px; }
  body.pb-home .pb-approach-group h3 { margin-bottom: 12px; }
  body.pb-home .pb-approach-group ul { row-gap: 10px; }
  body.pb-home .pb-reviews { row-gap: 16px; }
  body.pb-home .pb-reviews-heading > p:last-child { margin-top: 12px; }
  body.pb-home .pb-review-controls { margin-bottom: 14px; }
  body.pb-home .pb-review { padding-top: 16px; }
  body.pb-home .pb-review figcaption { margin-top: 14px; }
  body.pb-home .pb-review-write { margin-top: 18px; }
  body.pb-home #request.pb-graphite-footer { padding-block: 14px 12px; }
  body.pb-home #request.pb-graphite-footer .pb-contact { row-gap: 16px; padding-bottom: 10px; }
  body.pb-home #request.pb-graphite-footer .pb-footer-intro .pb-footer-description { margin-top: 20px; }
  body.pb-home #request.pb-graphite-footer .pb-footer-intro .pb-footer-email { margin-top: 20px; }
  body.pb-home #request.pb-graphite-footer .pb-footer-intro .pb-social-links { margin-top: 10px; }
  body.pb-home #request.pb-graphite-footer .request-form,
  body.pb-home #request.pb-graphite-footer .request-form .pb-request-contacts { row-gap: 14px; }
  body.pb-home #request.pb-graphite-footer .pb-footer-bottom { margin-top: 8px; }
}
