/*
 * ICI redesign, page batch B (20 October 2026).
 *
 * Page templates for: Check a building; the sample, result, saved profile and building record family; the four
 * readiness tools (retrofit readiness, contractor prep, cost drivers, seasonal calendar); Method and its sub-pages;
 * For organizations; Resources and Public programmes; Privacy and Terms; Account; the 404 page.
 * Loaded after ici-2026.css on those pages only. It reuses the ds- tokens and components and adds:
 *   .pb-hero        hero B: a white page hero with a photograph panel on the right
 *   .pb-doc-hero    hero C: a document hero with no image (legal, method, profiles, forms)
 *   .pb-doc         contents panel + 40rem prose
 *   .pb-note        a highlighted note for status and limits
 *   .pb-sheet       a document card on a white sheet (profiles)
 *   .pb-auth        a centred card (account pages)
 * Main-content selectors are doubled (main.pb-x.pb-x) where the legacy stylesheets use main[class] .x (0,2,1),
 * so these rules win without !important. Copy and behaviour are untouched: layout and presentation only.
 */

/* ===================================================================================== shared templates */

/* hero B: copy left, photograph right */
.pb-hero { background: #fff; border-bottom: 1px solid var(--ds-line); }
.pb-hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) { .pb-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.pb-hero h1 { font-size: var(--ds-t-3xl); line-height: 1.04; letter-spacing: -0.025em; margin: 0; max-width: 16ch; }
.pb-hero .ds-rule { margin: 1.25rem 0 1.1rem; }
main#main .pb-hero-lede, main#main .pb-hero-copy > p { font-size: var(--ds-t-m); line-height: 1.6; color: #22394A; max-width: 36rem; margin: 0 0 0.9rem; }
.pb-hero-photo { margin: 0; border-radius: var(--ds-r-l); overflow: hidden; box-shadow: var(--ds-shadow); aspect-ratio: 4 / 3; background: var(--ds-cloud); }
.pb-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 55.99rem) { .pb-hero-photo { aspect-ratio: 16 / 9; } }
.pb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
main#main .pb-hero-copy .pb-meta { font-size: var(--ds-t-s); color: var(--ds-muted); margin: 0.25rem 0 0; }

/* hero C: document hero, no image */
.pb-doc-hero { background: #fff; border-bottom: 1px solid var(--ds-line); padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.pb-doc-hero h1 { font-size: var(--ds-t-2xl); line-height: 1.08; letter-spacing: -0.02em; margin: 0; max-width: 24ch; }
@media (min-width: 64rem) { .pb-doc-hero h1 { font-size: clamp(2.4rem, 1.4rem + 2.2vw, 3.25rem); } }
.pb-doc-hero .ds-rule { margin: 1.1rem 0 1rem; }
main#main .pb-doc-hero p { max-width: 42rem; font-size: var(--ds-t-m); line-height: 1.6; color: #22394A; margin: 0 0 0.6rem; }
main#main .pb-doc-hero .pb-meta { font-size: var(--ds-t-s); color: var(--ds-muted); margin-top: 0.75rem; }
.pb-crumb { font-size: var(--ds-t-s); color: var(--ds-muted); margin: 0 0 1rem; }
.pb-crumb a { color: var(--ds-storm); }

/* highlighted note: status, limits, early access */
.pb-note { background: #FFF8EC; border: 1px solid #F3D7A8; border-left: 4px solid var(--ds-amber); border-radius: var(--ds-r-m); padding: 1rem 1.2rem; color: #22394A; }
main#main .pb-note p { margin: 0 0 0.5rem; max-width: none; }
main#main .pb-note p:last-child { margin-bottom: 0; }
.pb-note h2, .pb-note h3 { font: 600 var(--ds-t-m)/1.3 var(--ds-sans); margin: 0 0 0.4rem; color: var(--ds-navy); }

/* section rhythm on the ground */
.pb-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.pb-section-white { background: #fff; border-block: 1px solid var(--ds-line); }
.pb-section h2.pb-h { font-size: var(--ds-t-2xl); line-height: 1.1; margin: 0 0 0.85rem; }
.pb-section .pb-intro { color: var(--ds-muted); font-size: var(--ds-t-m); line-height: 1.6; max-width: 42rem; margin: 0 0 1.75rem; }

/* document layout: a sticky contents panel beside 40rem prose */
.pb-doc { display: grid; gap: 2rem; padding-block: clamp(2rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 64rem) { .pb-doc { grid-template-columns: 15.5rem minmax(0, 40rem); column-gap: clamp(2.5rem, 5vw, 4.5rem); } }
.pb-toc { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 1.1rem 1.2rem; }
@media (min-width: 64rem) { .pb-toc { position: sticky; top: 6rem; max-height: calc(100vh - 7.5rem); overflow: auto; } }
.pb-toc-h { font: 600 var(--ds-t-s)/1.3 var(--ds-sans); color: var(--ds-navy); margin: 0 0 0.6rem; }
.pb-toc ul, .pb-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; max-width: none; }
main#main .pb-toc li { font-size: var(--ds-t-s); line-height: 1.35; margin: 0; max-width: none; }
.pb-toc a { display: block; padding: 0.35rem 0 0.35rem 0.75rem; border-left: 2px solid var(--ds-cloud); color: var(--ds-storm); text-decoration: none; }
.pb-toc a:hover { border-left-color: var(--ds-amber); color: var(--ds-navy); text-decoration: underline; }
.pb-prose { max-width: 40rem; min-width: 0; }
.pb-prose h2 { font-size: var(--ds-t-xl); line-height: 1.18; margin: 2.5rem 0 0.75rem; scroll-margin-top: 6rem; }
.pb-prose h2:first-child { margin-top: 0; }
.pb-prose h3 { scroll-margin-top: 6rem; }
main#main .pb-prose p, main#main .pb-prose li { line-height: 1.7; }

/* profile sheet: the document card on a white sheet */
.pb-sheet-ground { padding-block: clamp(1.5rem, 4vw, 3rem); }
.pb-sheet { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1rem, 3.5vw, 2.75rem); }

/* evidence legend: what is known, what is missing, what to do next */
.pb-legend { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; margin: 0; padding: 0; }
main#main .pb-legend { max-width: none; }
.pb-legend li { display: grid; grid-template-columns: 6px 1fr; gap: 0.85rem; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 0.85rem 1rem; }
main#main .pb-legend li { max-width: none; margin: 0; }
.pb-legend i { border-radius: 3px; background: var(--ds-teal); }
.pb-legend .is-best i { background: var(--ds-amber); }
.pb-legend .is-gap i { background: repeating-linear-gradient(180deg, var(--ds-muted) 0 3px, transparent 3px 6px); }
.pb-legend b { display: block; color: var(--ds-navy); font-weight: 600; }
main#main .pb-legend span { display: block; color: var(--ds-muted); font-size: var(--ds-t-s); line-height: 1.45; }
.pb-legend-h { font: 600 var(--ds-t-s)/1.3 var(--ds-sans); color: var(--ds-navy); margin: 0 0 0.6rem; }

/* auth: a centred card */
.pb-auth-wrap { padding-block: clamp(2rem, 6vw, 4.5rem); }
.pb-auth { width: min(100%, 36rem); margin-inline: auto; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.25rem, 4vw, 2.5rem); }
.pb-auth h1 { font-size: var(--ds-t-2xl); line-height: 1.1; margin: 0; }
.pb-auth .ds-rule { margin: 1rem 0 1rem; }

/* one sun rule per title: the legacy underline after headings is not drawn inside the batch-B templates */
main#main :is(.pb-doc-hero, .pb-hero, .pb-legend-band, .pb-legend-block, .pb-section, .pb-prose, .pb-auth, .pb-invite) :is(h1, h2)::after { content: none; display: none; }

/* filter chips */
.pb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* print: the redesigned frames print as plain paper */
@media print {
  .pb-hero-photo, .pb-toc, .pb-actions { display: none !important; }
  .pb-hero, .pb-doc-hero, .pb-section-white { background: none; border: 0; }
  .pb-sheet, .pb-auth { box-shadow: none; border: 0; padding: 0; }
  .pb-doc { display: block; }
}

/* ===================================================================================== Check a building */
/* Hero C, compact: the stepper is the hero. The live stepper is #intake-progress, the five stages check.js marks done
   as the visitor moves (show(n)); it becomes a rail left of the form card on desktop and a row of numbered steps above
   the form on mobile. Its text stays aria-hidden as before: "Step n of 5" (#check-progress) carries the position for
   assistive technology. The static .check-spine list is not wired to any script (its buttons do nothing and its
   answers always read "Not answered"), so it is not shown; the thin meter (.ici-progress) is replaced by the rail. */
main.pb-check.pb-check { background: var(--ds-ground); }
main.pb-check.pb-check > .band { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
main.pb-check.pb-check .shell-intake-narrow { width: min(100% - 2 * var(--ds-gutter), 72rem); max-width: none; margin-inline: auto; padding-inline: 0; }
main.pb-check.pb-check .check-spine, main.pb-check.pb-check .ici-progress { display: none; }
main.pb-check.pb-check .check-grid { display: contents; }
main.pb-check.pb-check .shell-intake-narrow { display: flex; flex-direction: column; }
main.pb-check.pb-check .shell-intake-narrow > * { min-width: 0; }

/* the title block */
main.pb-check.pb-check .step-heading { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; margin: 0; }
main.pb-check.pb-check .step-heading::after { content: none; display: none; }
main.pb-check.pb-check .step-heading:focus::before { background: var(--ds-amber); }
main.pb-check.pb-check .step-of { order: -1; display: inline-block; align-self: flex-start; margin: 0 0 0.6rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: #E3F2F2; color: var(--ds-teal-ink); font: 600 var(--ds-t-s)/1.2 var(--ds-sans); letter-spacing: 0; text-transform: none; }
main.pb-check.pb-check .check-session-note { margin: 0.9rem 0 0; padding: 0; border: 0; color: var(--ds-muted); font-size: 1rem; line-height: 1.55; max-width: 44rem; }
main.pb-check.pb-check .check-restart { margin: 0.6rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
main.pb-check.pb-check .check-restart .btn { min-height: 2.5rem; padding-inline: 1rem; }
main.pb-check.pb-check .check-restart .fine { color: var(--ds-muted); }

/* the stepper: numbered stages; done stages teal, the current stage navy */
main.pb-check.pb-check .intake-progress { counter-reset: pbstep; display: grid; gap: 0.25rem; margin: 0; padding: 0.5rem; background: #fff;
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); }
main.pb-check.pb-check .intake-progress span { counter-increment: pbstep; position: static; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem;
  align-items: center; height: auto; min-height: 3rem; padding: 0.45rem 0.7rem; border-radius: var(--ds-r-m); background: none; flex: none; }
main.pb-check.pb-check .intake-progress span::before { content: counter(pbstep); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid #B7C6D1; background: #fff; font: 600 0.9375rem/1 var(--ds-sans); color: var(--ds-muted); }
main.pb-check.pb-check .intake-progress span::after { content: attr(data-stage); position: static; inset: auto; transform: none; display: block;
  font: 500 1rem/1.25 var(--ds-sans); color: var(--ds-muted); white-space: normal; text-align: left; letter-spacing: 0; text-transform: none; }
main.pb-check.pb-check .intake-progress span.done::before { content: "\2713"; background: #E3F2F2; border-color: var(--ds-teal); color: var(--ds-teal-ink); }
main.pb-check.pb-check .intake-progress span.done::after { color: var(--ds-navy); }
/* the current stage: the last one marked done */
main.pb-check.pb-check .intake-progress span.done:is(:has(+ span:not(.done)), :last-child) { background: #EEF5F9; }
main.pb-check.pb-check .intake-progress span.done:is(:has(+ span:not(.done)), :last-child)::before { content: counter(pbstep); background: var(--ds-navy); border-color: var(--ds-navy); color: #fff; }
main.pb-check.pb-check .intake-progress span.done:is(:has(+ span:not(.done)), :last-child)::after { font-weight: 600; }

/* the form card */
main.pb-check.pb-check .intake-layout { display: block; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow);
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 3.5vw, 2.5rem) 0; max-width: none; }
main.pb-check.pb-check .intake-layout .check-step { max-width: none; }
main.pb-check.pb-check .check-step > p, main.pb-check.pb-check .check-step > .field { max-width: 44rem; }
main.pb-check.pb-check .check-lede { font-size: 1.0625rem; line-height: 1.6; color: #22394A; margin-top: 0; }
main.pb-check.pb-check .check-step label:not(.choice):not(.chip):not(.bcx-check), main.pb-check.pb-check .bcx-label { font: 600 1rem/1.35 var(--ds-sans); color: var(--ds-navy); margin: 1.25rem 0 0.4rem; }
main.pb-check.pb-check .field { margin-top: 0.5rem; }
main.pb-check.pb-check .field-hint { color: var(--ds-muted); font-size: 0.9375rem; line-height: 1.5; margin: 0 0 0.5rem; }
main.pb-check.pb-check .check-step input[type="text"], main.pb-check.pb-check .check-step input[type="email"], main.pb-check.pb-check .check-step input[type="number"],
main.pb-check.pb-check .check-step select, main.pb-check.pb-check #check-fsa {
  min-height: 3.25rem; width: 100%; max-width: 32rem; padding: 0.6rem 0.9rem; border: 1.5px solid #B7C6D1; border-radius: 12px; background: #fff; font: 500 1.0625rem/1.3 var(--ds-sans); color: var(--ds-navy); }
main.pb-check.pb-check .check-step :is(input, select):focus { border-color: var(--ds-storm); box-shadow: 0 0 0 3px rgba(35, 135, 183, 0.2); outline: none; }
main.pb-check.pb-check .check-step :is(input, select):focus-visible { outline: 3px solid var(--ds-amber); outline-offset: 2px; }
main.pb-check.pb-check .choice-list { gap: 0.6rem; }
main.pb-check.pb-check .choice { align-items: center; min-height: 3.5rem; padding: 0.75rem 1rem; border: 1.5px solid var(--ds-line); border-radius: var(--ds-r-m); background: #fff; cursor: pointer; }
main.pb-check.pb-check .choice:hover { border-color: #9FB3BF; background: #fff; }
main.pb-check.pb-check .choice:has(input:checked) { border-color: var(--ds-navy); background: #EEF5F9; box-shadow: inset 0 0 0 1px var(--ds-navy); }
main.pb-check.pb-check .choice:has(input:focus-visible) { outline: 3px solid var(--ds-amber); outline-offset: 2px; }
main.pb-check.pb-check .choice input { margin: 0; width: 1.25rem; height: 1.25rem; accent-color: var(--ds-navy); }
main.pb-check.pb-check .choice-title { font-weight: 600; }
main.pb-check.pb-check .chip-list .chip { min-height: 2.75rem; display: inline-flex; align-items: center; }
main.pb-check.pb-check .inv-group { border-radius: var(--ds-r-m); border-color: var(--ds-line); }
main.pb-check.pb-check .inv-group > summary { min-height: 2.75rem; display: flex; align-items: center; }
main.pb-check.pb-check .bcx-check { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; margin: 0.6rem 0; border: 1.5px solid var(--ds-line); border-radius: var(--ds-r-m); }
main.pb-check.pb-check .bcx-check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--ds-navy); }

/* validation */
main.pb-check.pb-check .field-error:not(:empty) { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: var(--ds-r-m); background: #FDF0EC; border: 1px solid #F0C3B5;
  border-left: 4px solid #A33A1E; color: #7A2A14; font-weight: 600; max-width: 44rem; }
main.pb-check.pb-check .bcx-msg:empty, main.pb-check.pb-check .field-error:empty { margin: 0; }

/* the sticky Continue bar: always in reach at the bottom of the card while a step is longer than the screen */
main.pb-check.pb-check .check-step .check-actions { position: sticky; bottom: 0; z-index: 5; margin: 1.75rem 0 0;
  padding: 0.9rem 0 1.1rem; background: #fff; border-top: 1px solid var(--ds-line);
  box-shadow: 0 -10px 16px -12px rgba(9, 42, 64, 0.18); display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }
main.pb-check.pb-check .check-step .check-actions::before { content: none; display: none; }
main.pb-check.pb-check .check-actions .btn-primary { min-width: 11rem; min-height: 3.25rem; font-size: 1.0625rem; justify-content: center; }
main.pb-check.pb-check .check-actions .btn-tertiary { min-height: 3.25rem; margin-right: auto; }
@media (max-width: 40rem) {
  main.pb-check.pb-check .check-actions .btn-primary { flex: 1 1 auto; }
}

/* what you will receive: a quiet card under the form */
main.pb-check.pb-check .preview-mobile { margin-top: 1.25rem; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 0 1.25rem; }
main.pb-check.pb-check .preview-mobile > summary::after { flex: none; white-space: nowrap; }
main.pb-check.pb-check .preview-mobile > summary { min-height: 3.25rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; font-weight: 600; }
main.pb-check.pb-check .preview-mobile .intake-aside { border: 0; box-shadow: none; padding: 0 0 1.25rem; margin: 0; background: none; max-width: 44rem; }
main.pb-check.pb-check .intake-aside h2 { font: 600 1rem/1.3 var(--ds-sans); color: var(--ds-navy); letter-spacing: 0; text-transform: none; margin: 1.1rem 0 0.5rem; }
main.pb-check.pb-check .intake-aside li { font-size: 1rem; color: #22394A; }

/* mobile: the stepper is a row of five numbered steps above the title */
@media (max-width: 67.99rem) {
  main.pb-check.pb-check .intake-progress { order: -2; margin: 0 0 1.25rem; padding: 0.4rem; grid-template-columns: repeat(5, minmax(0, 1fr)); box-shadow: none; border-radius: var(--ds-r-m); }
  main.pb-check.pb-check .intake-progress span { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 0.45rem 0.15rem; min-height: 3.5rem; gap: 0.3rem; }
  main.pb-check.pb-check .intake-progress span::before { width: 1.9rem; height: 1.9rem; }
  main.pb-check.pb-check .intake-progress span::after { font-size: 0.8125rem; line-height: 1.15; text-align: center; }
}
@media (max-width: 23rem) { main.pb-check.pb-check .intake-progress span::after { font-size: 0.75rem; } }

/* desktop: rail left, title and form card right */
@media (min-width: 68rem) {
  main.pb-check.pb-check .shell-intake-narrow { display: grid; grid-template-columns: 16rem minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  main.pb-check.pb-check .shell-intake-narrow > * { grid-column: 2; }
  main.pb-check.pb-check .shell-intake-narrow > .step-of { grid-row: 1; justify-self: start; }
  main.pb-check.pb-check .intake-progress { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 6rem; grid-template-columns: minmax(0, 1fr); }
  /* check-aside.js keeps its inner disclosure open at this width; its summary would repeat the outer one */
  main.pb-check.pb-check .aside-disclosure > summary { display: none; }
}
@media print { main.pb-check.pb-check .intake-layout { box-shadow: none; border: 0; padding: 0; } main.pb-check.pb-check .check-step .check-actions { position: static; box-shadow: none; } }

/* ===================================================================================== profiles: sample, result */
/* Hero C (the document header is the hero), the profile as a document card on a white sheet, the evidence key as a
   legend. What is known (the systems, coloured by what each answer rests on), what is missing (a dashed, tinted
   panel) and the next steps (cards with a navy edge) read as three distinct kinds of section. Screen only: the
   print rules of the profile are untouched. */
@media screen {
  main.pb-profile.pb-profile { width: auto; max-width: none; margin-inline: 0; padding-inline: 0; padding-top: 0; }
  main.pb-profile.pb-profile .pb-doc-hero { margin-bottom: 0; }
  main.pb-profile.pb-profile .pb-doc-hero .sample-flag { margin-top: 1rem; max-width: 42rem; }
  main.pb-profile.pb-profile .page-h::after { content: none; display: none; }
  main#main.pb-profile .pb-doc-hero .page-h { margin: 0; font-size: var(--ds-t-2xl); line-height: 1.08; max-width: 24ch; }
  .pb-legend-band { padding-block: 1.5rem 0; }
  .pb-legend-block { margin: 1.25rem 0 1.5rem; }
  main.pb-profile.pb-profile .report-band { padding-block: 1.25rem clamp(2rem, 4vw, 3rem); background: none; }
  main.pb-profile.pb-profile .pb-sheet { max-width: 60rem; margin-inline: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  /* the white sheet is the band; the profile is the document card on it */
  main.pb-profile.pb-profile .pb-sheet-ground { background: #fff; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
  main.pb-profile.pb-profile .pb-sheet .rp, main.pb-profile.pb-profile .pb-sheet .report-surface { box-shadow: var(--ds-shadow); }
  main#main.pb-profile .rp-row, main#main.pb-profile .rp-gap, main#main.pb-profile .rp-action, main#main.pb-profile .rp-section > p { max-width: none; }
  /* the result route nested the profile in three frames (letterhead bar, surface, shell); on screen the profile's own
     header is the document hero, so the print letterhead and the extra frames step aside (print is unchanged) */
  main.pb-result.pb-result .pb-sheet > .ici-doc-head { display: none; }
  main#main.pb-profile .rp-section:first-child { margin-top: 0; }
  main.pb-result.pb-result .report-surface, main.pb-result.pb-result .result-shell { border: 0; box-shadow: none; background: none; padding-inline: 0; margin-inline: 0; max-width: none; }
  main#main.pb-profile .rp-h { font-size: var(--ds-t-xl); line-height: 1.2; }
  /* what is known: each system row carries the colour of what its answer rests on */
  main.pb-profile.pb-profile .rp-row { border: 1px solid var(--ds-line); border-left: 5px solid var(--ds-teal); border-radius: var(--ds-r-m); background: #fff; }
  main.pb-profile.pb-profile .rp-row[data-evidence="stated"] { border-left-color: var(--ds-amber); }
  main.pb-profile.pb-profile .rp-row[data-evidence="unknown"] { border-left: 1px solid var(--ds-line); border-style: dashed; border-left-width: 5px; border-left-color: var(--ds-muted); background: var(--ds-ground); }
  /* what is missing: a tinted panel with a dashed edge */
  main.pb-profile.pb-profile #rp-missing { background: var(--ds-ground); border: 1.5px dashed #9FB3BF; border-radius: var(--ds-r-m); padding: clamp(1rem, 2.5vw, 1.5rem); }
  main.pb-profile.pb-profile #rp-missing .rp-gap { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-s); }
  /* next steps: cards with a navy edge */
  main.pb-profile.pb-profile #rp-actions .rp-action { background: #fff; border: 1px solid var(--ds-line); border-left: 4px solid var(--ds-navy); border-radius: var(--ds-r-s); padding: 0.85rem 1rem; margin-top: 0.6rem; }
  main.pb-profile.pb-profile .rp-action-k { color: var(--ds-storm); }

  /* the closing invitation on the sample */
  main.pb-profile.pb-profile .pb-invite { background: #fff; border-top: 1px solid var(--ds-line); padding-block: clamp(2rem, 4vw, 3rem); }
  main.pb-profile.pb-profile .pb-invite h2::after { content: none; display: none; }
  main.pb-profile.pb-profile .related-tools { width: min(100% - 2 * var(--ds-gutter), 60rem); margin-inline: auto; }
  main.pb-profile.pb-profile .report-actions { max-width: 60rem; margin-inline: auto; }
  main.pb-profile.pb-profile .report-band > .shell-wide > .fine, main.pb-profile.pb-profile .pb-legend-block { max-width: 60rem; margin-inline: auto; }
  main.pb-profile.pb-profile > .ici-doc-foot { width: min(100% - 2 * var(--ds-gutter), 60rem); margin-inline: auto; }
}
@media print {
  .pb-sheet-ground > .ds-wrap { width: auto; margin: 0; }
  .pb-legend-band, .pb-legend-block { display: none !important; }
}

/* ===================================================================================== account, saved profiles */
/* A centred auth card while the visitor is signing in or the feature is unavailable; the signed-in views (the account
   grid, the building workspace, the saved-profile list) widen the card when their scripts reveal them. */
main.pb-account.pb-account { background: var(--ds-ground); padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.pb-auth-wide { width: min(100%, 48rem); }
main#main .pb-auth .field-hint { font-size: 1rem; color: var(--ds-muted); }
main.pb-account .sp-head .step-heading { margin: 0; font-size: var(--ds-t-2xl); line-height: 1.1; }
main.pb-account .sp-head .step-heading::after { content: none; display: none; }
main.pb-account .pb-auth:has([data-spa-root]:not([hidden])) { width: min(100%, 64rem); }
.pb-auth-routes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 1.25rem auto 0; font-size: var(--ds-t-s); }

/* /account/ and /account/building/: the band and body join into one card */
main.pb-account.pb-account .ax-band { background: none; border: 0; padding: clamp(2rem, 6vw, 4.5rem) 0 0; color: var(--ds-navy); }
main.pb-account.pb-account .ax-band > .shell-wide, main.pb-account.pb-account .ax-body > .shell-wide { width: min(100% - 2 * var(--ds-gutter), 36rem); max-width: none; margin-inline: auto;
  background: #fff; border: 1px solid var(--ds-line); padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
main.pb-account.pb-account .ax-band > .shell-wide { border-bottom: 0; border-radius: var(--ds-r-l) var(--ds-r-l) 0 0; padding-top: clamp(1.25rem, 4vw, 2.25rem); padding-bottom: 0.25rem; display: block; }
main.pb-account.pb-account .ax-body { padding: 0; background: none; }
main.pb-account.pb-account .ax-body > .shell-wide { border-top: 0; border-radius: 0 0 var(--ds-r-l) var(--ds-r-l); padding-bottom: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--ds-shadow); }
main.pb-account.pb-account .ax-title { font-family: var(--ds-serif); font-weight: 600; letter-spacing: -0.02em; font-size: var(--ds-t-2xl); line-height: 1.1; color: var(--ds-navy); margin: 0; }
main.pb-account.pb-account .ax-title::after { content: ""; display: block; width: 3rem; height: 4px; border-radius: 2px; background: var(--ds-amber); margin: 1rem 0 0.75rem; position: static; }
main.pb-account.pb-account .ax-lede, main.pb-account.pb-account .ax-who, main.pb-account.pb-account .ax-meta { color: var(--ds-muted); }
main.pb-account.pb-account .ax-back a { color: var(--ds-storm); }
main.pb-account.pb-account .ax-signin .field { margin: 1rem 0 0; }
main.pb-account.pb-account .ax-signin :is(input[type="text"], select) { width: 100%; min-height: 3.1rem; }
main.pb-account.pb-account .ax-signin .check-nav { margin-top: 1.25rem; }
main.pb-account.pb-account .ax-signin .btn-primary { width: 100%; justify-content: center; min-height: 3.1rem; }
/* signed in: the account grid and the workspace take the full width again */
main.pb-account.pb-account:has([data-account-view]:not([hidden]), [data-ws-view]:not([hidden])) :is(.ax-band, .ax-body) > .shell-wide { width: min(100% - 2 * var(--ds-gutter), 76rem); }

/* ===================================================================================== 404 */
main.pb-404.pb-404 { background: var(--ds-ground); padding: 0; }
.pb-404-band { padding-block: clamp(2.5rem, 8vw, 6rem); }
.pb-404-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56rem) { .pb-404-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.pb-404-card { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.5rem, 5vw, 3rem); }
main#main .pb-404-code { font: 600 var(--ds-t-s)/1 var(--ds-sans); color: var(--ds-teal-ink); background: #E3F2F2; display: inline-block; padding: 0.35rem 0.7rem; border-radius: 999px; margin: 0 0 1rem; letter-spacing: 0; }
.pb-404-card h1 { font-size: var(--ds-t-3xl); line-height: 1.04; margin: 0; max-width: 14ch; }
main#main .pb-404-card h1::after { content: none; display: none; }
main#main .pb-404-card p:not(.pb-404-code) { font-size: var(--ds-t-m); line-height: 1.6; color: #22394A; max-width: 34rem; }
.pb-404-routes { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); padding: 1.5rem; }
main#main .pb-404-routes h2::after { content: none; display: none; }
.pb-404-routes ul { list-style: none; margin: 0; padding: 0; display: grid; }
main#main .pb-404-routes li { margin: 0; max-width: none; border-top: 1px solid var(--ds-cloud); }
.pb-404-routes a { display: flex; align-items: center; min-height: 3rem; font-weight: 600; color: var(--ds-navy); text-decoration: none; }
.pb-404-routes a:hover { color: var(--ds-storm); text-decoration: underline; }

/* ===================================================================================== readiness tools */
/* Retrofit readiness, contractor prep, cost drivers, seasonal calendar: hero B with one photograph each, the working
   area and every checklist as white cards, the seasonal calendar's seasons as a responsive grid. */
main#main .pb-hero h1 { font-size: var(--ds-t-3xl); line-height: 1.04; letter-spacing: -0.025em; margin: 0; max-width: 16ch; }
main#main .pb-hero h1::after { content: none; display: none; }
main#main .pb-hero .tp-explain { color: var(--ds-muted); font-size: 1rem; line-height: 1.6; max-width: 36rem; }
main#main .pb-hero .rr-shot { margin: 0.25rem 0 0.75rem; max-width: 36rem; }
main#main .pb-hero .rr-shot p { color: #22394A; font-size: 1rem; }
main.pb-tool.pb-tool { background: var(--ds-ground); }
main.pb-tool.pb-tool .shell-wide { width: min(100% - 2 * var(--ds-gutter), var(--ds-wrap)); max-width: none; margin-inline: auto; padding-inline: 0; }
main.pb-tool.pb-tool .tp-work, main.pb-tool.pb-tool > .band-tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
/* the "where is the building" setup and the tool workspace as white cards */
main.pb-tool.pb-tool .tp-where, main.pb-tool.pb-tool .tool-workspace, main.pb-tool.pb-tool .rd-operator {
  background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.1rem, 3vw, 2rem); margin-top: 1.25rem; }
main.pb-tool.pb-tool .tp-where { border-top: 1px solid var(--ds-line); }
main.pb-tool.pb-tool .tp-where .rd-h2 { margin-top: 0; }
main.pb-tool.pb-tool .tp-where .rd-h2::after, main.pb-tool.pb-tool .tool-workspace > h3::after { content: none; display: none; }
main.pb-tool.pb-tool .tp-where form[data-fs-mode="progressive"] { box-shadow: none; border: 0; padding: 0; max-width: 40rem; margin: 1rem 0 0; background: none; }
main.pb-tool.pb-tool .tp-where .fs-intro, main.pb-tool.pb-tool .tp-where .fs-done { background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: none; }
main.pb-tool.pb-tool .controls :is(select, input[type="text"]) { min-height: 3rem; }
/* the seasons of the calendar (and any checklist section the tools render) as a grid of white cards */
main.pb-tool.pb-tool :has(> .readiness-season) { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: start; }
main.pb-tool.pb-tool :has(> .readiness-season) > :not(.readiness-season) { grid-column: 1 / -1; }
main.pb-tool.pb-tool .readiness-season { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 1.25rem 1.35rem; margin: 0; }
main.pb-tool.pb-tool .readiness-season > h2 { font-size: var(--ds-t-l); line-height: 1.25; margin: 0 0 0.75rem; padding: 0; border: 0; }
main.pb-tool.pb-tool .readiness-season > h2::after { content: ""; display: block; position: static; width: 2.5rem; height: 4px; border-radius: 2px; background: var(--ds-amber); margin-top: 0.6rem; }
main.pb-tool.pb-tool .readiness-season .readiness-items > li { border: 0; border-top: 1px solid var(--ds-cloud); border-radius: 0; box-shadow: none; padding: 0.85rem 0 0.25rem; margin: 0; background: none; }
main.pb-tool.pb-tool .readiness-season .readiness-items > li:first-child { border-top: 0; padding-top: 0; }
main#main.pb-tool .readiness-items, main#main.pb-tool .readiness-items > li, main#main.pb-tool .readiness-items p { max-width: none; }
/* retrofit readiness: the questions and the profile side by side as cards */
main.pb-retrofit.pb-retrofit .rr-grid > form, main.pb-retrofit.pb-retrofit .rr-results { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.1rem, 3vw, 2rem); }
main.pb-retrofit.pb-retrofit .gap-head h2::after { content: none; display: none; }
main.pb-tool.pb-tool .audience-switch { margin-bottom: 0.5rem; }
@media print {
  main.pb-tool.pb-tool :is(.tp-where, .tool-workspace, .readiness-season, .rr-results) { box-shadow: none; border: 0; padding: 0; }
  main.pb-tool.pb-tool :has(> .readiness-season) { display: block; }
}
main.pb-retrofit.pb-retrofit .retrofit-output > .cp-panel { grid-column: 1 / -1; }
/* the setup form sits directly in its card: no second frame inside it */
main.pb-tool.pb-tool .tp-where .readiness-controls, main.pb-tool.pb-tool .tp-where .controls { border: 0; box-shadow: none; padding: 0; background: none; border-radius: 0; }
main.pb-tool.pb-tool .tp-where .rd-h2, main.pb-tool.pb-tool .tp-where > h2 { border-top: 0; padding-top: 0; }
main.pb-tool.pb-tool .workspace-controls > form { border-radius: var(--ds-r-m); }
/* the question column of a tool workspace is wide enough for its answer cards */
@media (min-width: 64rem) { main.pb-tool.pb-tool .tool-workspace:has(> .workspace-controls > form) { display: grid; grid-template-columns: minmax(22rem, 27rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; } }
/* the sheet's masthead line (p.ici-doc-mark from lib/render/document.js) shares a class name with the result page's
   56px logo tile, which squeezed it into a 56px box over the title; on the tool pages it is a line of text */
main.pb-tool.pb-tool .ici-doc > p.ici-doc-mark { width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; margin: 0 0 0.35rem; color: var(--ds-muted); font-size: 0.9375rem; }

/* ===================================================================================== method and its sub-pages */
/* Hero C with the method status as a highlighted note, then a sticky contents panel beside 40rem prose. */
main.pb-method.pb-method { background: var(--ds-ground); padding: 0; }
main#main.pb-method .pb-doc-hero .lead { font-size: var(--ds-t-m); max-width: 42rem; }
main#main.pb-method .pb-doc-hero .status-strip { margin-top: 1.25rem; max-width: 46rem; }
main#main.pb-method .pb-doc-hero .status-strip p { font-size: 1rem; line-height: 1.6; }
main.pb-method.pb-method .pb-prose { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.25rem, 4vw, 2.75rem); max-width: 46rem; }
main.pb-method.pb-method .pb-doc-sec + .pb-doc-sec { margin-top: 2.5rem; padding-top: 2.25rem; border-top: 1px solid var(--ds-cloud); }
main#main.pb-method .pb-prose h2 { font-size: var(--ds-t-xl); line-height: 1.18; margin: 0 0 0.75rem; padding: 0; border: 0; }
main#main.pb-method .pb-prose h2:not(:first-child) { margin-top: 2rem; }
main#main.pb-method .pb-prose :is(p, li, .prose) { max-width: 40rem; }
main#main.pb-method .pb-prose .value-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; margin-block: 1rem; max-width: none; }
main#main.pb-method .pb-prose .value-card { background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: none; padding: 1rem 1.1rem; }
main#main.pb-method .pb-prose .value-card h3 { font: 600 1.0625rem/1.3 var(--ds-sans); margin: 0 0 0.35rem; }
main#main.pb-method .pb-prose .versus-card { background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); box-shadow: none; }
main#main.pb-method .pb-prose :is(.data-table, .table-wrap) { max-width: 100%; }
main#main.pb-method .pb-prose .table-wrap { overflow-x: auto; }
main#main.pb-method .pb-prose .btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
main#main.pb-method .pb-prose details.disclose { margin-top: 1.75rem; }
main#main.pb-method .pb-prose .crl-explain { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 63.99rem) { main.pb-method.pb-method .pb-toc ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; } main.pb-method.pb-method .pb-toc a { border-left: 0; padding-left: 0; } }
@media print { main.pb-method.pb-method .pb-prose { border: 0; box-shadow: none; padding: 0; } }
main#main.pb-method .pb-doc-sec { padding: 0; margin: 0; background: none; border: 0; }
main#main.pb-method .pb-doc-sec + .pb-doc-sec { margin-top: 2.5rem; padding-top: 2.25rem; border-top: 1px solid var(--ds-cloud); }
main#main.pb-method .pb-prose .value-card h3 { max-width: none; }

/* ===================================================================================== resources, public programmes */
main.pb-list-page.pb-list-page { background: var(--ds-ground); padding: 0; }
main.pb-list-page .pb-section h2::after, main.pb-list-page .ici-section h2::after { content: none; display: none; }
main#main.pb-list-page .pb-section h2 { font-size: var(--ds-t-2xl); line-height: 1.1; margin: 0 0 0.85rem; }
main#main.pb-list-page .pb-section p { max-width: 42rem; }
/* filters: a bar of compact pill controls above the lists */
.pb-filterbar { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); padding: 0.85rem 1rem; margin-bottom: 1.75rem; }
main.pb-list-page .res-controls.pb-chips { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin: 0; }
main.pb-list-page .res-controls.pb-chips > div { display: flex; align-items: center; gap: 0.6rem; }
main.pb-list-page .res-controls label { font: 600 var(--ds-t-s)/1.2 var(--ds-sans); color: var(--ds-navy); margin: 0; }
main.pb-list-page .res-controls select.field { min-height: 2.75rem; border-radius: 999px; padding: 0 2.25rem 0 1rem; border: 1.5px solid var(--ds-line); background-color: var(--ds-ground); font: 500 var(--ds-t-s)/1 var(--ds-sans); color: var(--ds-navy); width: auto; }
main.pb-list-page .res-controls select.field:hover { border-color: var(--ds-navy); }
/* categories and resource cards: publisher and jurisdiction lead each card */
main.pb-list-page .resource-category { margin: 0 0 2.25rem; padding: 0; border: 0; background: none; }
main#main.pb-list-page .resource-category > h2 { font-size: var(--ds-t-xl); margin: 0 0 1rem; }
main#main.pb-list-page ul.resources { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); max-width: none; }
main#main.pb-list-page li.resource { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 1.25rem 1.35rem; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; max-width: none; }
main#main.pb-list-page .resource-authority { order: -2; margin: 0; font: 600 var(--ds-t-s)/1.3 var(--ds-sans); color: var(--ds-teal-ink); text-transform: none; letter-spacing: 0; }
main#main.pb-list-page .resource-title { font: 600 var(--ds-t-l)/1.3 var(--ds-serif); color: var(--ds-navy); }
main#main.pb-list-page .resource-relation { margin: 0; color: #22394A; line-height: 1.55; }
main#main.pb-list-page .resource-meta { order: -1; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
main#main.pb-list-page .resource-meta > div { display: inline-flex; gap: 0.3rem; align-items: center; background: var(--ds-ground); border: 1px solid var(--ds-line); border-radius: 999px; padding: 0.2rem 0.65rem; }
main#main.pb-list-page .resource-meta :is(dt, dd) { font-size: 0.875rem; margin: 0; color: var(--ds-muted); }
main#main.pb-list-page .resource-meta dd { color: var(--ds-navy); font-weight: 600; }
main#main.pb-list-page .resource-checked { margin: auto 0 0; padding-top: 0.5rem; border-top: 1px solid var(--ds-cloud); color: var(--ds-muted); font-size: 0.9375rem; }
main.pb-list-page > .page-actions { width: min(100% - 2 * var(--ds-gutter), var(--ds-wrap)); margin: 0 auto; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
/* public programmes: what it can support as a grid of cards */
main#main.pb-programmes .ici-benefits { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); margin-top: 1.25rem; }
main#main.pb-programmes .ici-benefits > div { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 1.25rem 1.35rem; }
main#main.pb-programmes .ici-benefits h3 { font: 600 var(--ds-t-l)/1.25 var(--ds-serif); margin: 0 0 0.4rem; }
main#main.pb-programmes .ici-benefits p { margin: 0; color: var(--ds-muted); }
main#main.pb-programmes .pb-section-white { background: #fff; }
main#main.pb-programmes .pb-close { background: #fff; border-top: 1px solid var(--ds-line); }
main#main.pb-programmes .pb-section .btn { margin: 0.25rem 0.5rem 0.25rem 0; }
main#main.pb-list-page .resource-meta > div { flex: none; width: auto; }
main#main.pb-list-page .resource-meta dt { text-transform: none; letter-spacing: 0; font-weight: 500; }
main.pb-list-page .res-controls select.field { margin: 0; }
main#main.pb-programmes .pb-close .ds-wrap { text-align: center; }
main#main.pb-programmes .pb-close p { margin-inline: auto; }
main.pb-list-page.pb-programmes { margin-bottom: 0; }
main.pb-list-page.pb-programmes + .ds-footer { margin-top: 0; }

/* ===================================================================================== privacy and terms */
/* Hero C document template. Presentation only: the governed main (scripts/legal/render.mjs) is unchanged apart
   from the presentation class on its opening tag, which the renderer allows. */
main.pb-legal.pb-legal { background: var(--ds-ground); padding: 0; }
main.pb-legal.pb-legal > .hero-field { background: #fff; border-bottom: 1px solid var(--ds-line); padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.75rem, 3.5vw, 2.5rem); }
main.pb-legal.pb-legal > .hero-field > .shell-wide, main.pb-legal.pb-legal > .band-tight > .shell-wide { width: min(100% - 2 * var(--ds-gutter), var(--ds-wrap)); max-width: none; margin-inline: auto; padding-inline: 0; }
main#main.pb-legal > .hero-field h1 { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.06; margin: 0; }
main#main.pb-legal > .hero-field h1::after { content: ""; display: block; position: static; width: 3rem; height: 4px; border-radius: 2px; background: var(--ds-amber); margin: 1.1rem 0 1rem; transform: none; }
main#main.pb-legal > .hero-field .lead { font-size: var(--ds-t-m); line-height: 1.6; color: #22394A; max-width: 44rem; margin: 0; }
main.pb-legal.pb-legal > .band-tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
main.pb-legal.pb-legal .legal-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { main.pb-legal.pb-legal .legal-layout { grid-template-columns: 15.5rem minmax(0, 46rem); column-gap: clamp(2.5rem, 5vw, 4.5rem); } }
main.pb-legal.pb-legal .legal-toc { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 1.1rem 1.2rem; }
@media (min-width: 64rem) { main.pb-legal.pb-legal .legal-toc { position: sticky; top: 6rem; max-height: calc(100vh - 7.5rem); overflow: auto; } }
main.pb-legal.pb-legal .legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; max-width: none; }
main#main.pb-legal .legal-toc li { font-size: var(--ds-t-s); line-height: 1.35; margin: 0; max-width: none; }
main.pb-legal.pb-legal .legal-toc a { display: block; padding: 0.35rem 0 0.35rem 0.75rem; border-left: 2px solid var(--ds-cloud); color: var(--ds-storm); text-decoration: none; }
main.pb-legal.pb-legal .legal-toc a:hover { border-left-color: var(--ds-amber); color: var(--ds-navy); text-decoration: underline; }
@media (max-width: 63.99rem) { main.pb-legal.pb-legal .legal-toc { max-height: 22rem; overflow: auto; } }
main.pb-legal.pb-legal .legal-body { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.25rem, 4vw, 2.75rem); min-width: 0; }
main#main.pb-legal .legal-body :is(p, li) { max-width: 40rem; line-height: 1.7; }
main#main.pb-legal .legal-body h2 { font-size: var(--ds-t-xl); line-height: 1.18; scroll-margin-top: 6rem; }
main#main.pb-legal .legal-body h2::after { content: none; display: none; }
main#main.pb-legal .legal-body > div + div { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--ds-cloud); }
main#main.pb-legal .legal-body > div:last-child > p.fine:last-child { margin-top: 1.5rem; padding: 0.75rem 1rem; background: #FFF8EC; border: 1px solid #F3D7A8; border-left: 4px solid var(--ds-amber); border-radius: var(--ds-r-s); color: #22394A; font-size: 1rem; }
main#main.pb-legal .legal-body .table-wrap, main#main.pb-legal .legal-body table { max-width: 100%; }
@media print { main.pb-legal.pb-legal .legal-body { border: 0; box-shadow: none; padding: 0; } main.pb-legal.pb-legal .legal-toc { display: none; } }

/* ===================================================================================== for organizations */
/* Value proposition (hero B), the example profile beside the equipment fields, how it works, who it is for, local
   context, what Harmelo adds, what ICI is not, and the request link on a light closing card (no dark band). */
.pb-hero-photo-cap { position: relative; }
.pb-hero-cap { position: absolute; left: 0.75rem; bottom: 0.75rem; background: rgba(255, 255, 255, 0.95); color: var(--ds-navy); border-radius: 999px; padding: 0.3rem 0.8rem; font: 600 0.875rem/1.2 var(--ds-sans); box-shadow: var(--ds-shadow); }
main.pb-fo.pb-fo { background: var(--ds-ground); padding: 0; }
main#main.pb-fo .pb-hero .btn-row { margin-top: 1.25rem; }
main#main.pb-fo :is(.fo-section, .fo-close) h2::after { content: none; display: none; }
main#main.pb-fo .fo-section { padding-block: clamp(2.5rem, 5vw, 4rem); background: none; }
main#main.pb-fo .fo-section.fo-tinted { background: #fff; border-block: 1px solid var(--ds-line); }
main#main.pb-fo .fo-section h2 { font-size: var(--ds-t-2xl); line-height: 1.1; margin: 0 0 1rem; }
main#main.pb-fo .pb-fo-does { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 64rem) { main#main.pb-fo .pb-fo-does { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1fr); } }
main#main.pb-fo .fo-shot { margin: 0; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 0.75rem; }
main#main.pb-fo .fo-shot img { display: block; width: 100%; height: auto; border-radius: var(--ds-r-m); }
main#main.pb-fo .fo-shot figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ds-muted); line-height: 1.5; }
main#main.pb-fo .fo-steps { counter-reset: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; max-width: none; }
main#main.pb-fo .fo-steps > li { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 1.25rem 1.35rem; margin: 0; max-width: none; }
main#main.pb-fo .fo-step-n { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ds-navy); color: #fff; font: 600 1rem/1 var(--ds-sans); margin-bottom: 0.75rem; }
main#main.pb-fo .fo-steps h3 { font: 600 var(--ds-t-l)/1.25 var(--ds-serif); margin: 0 0 0.4rem; }
main#main.pb-fo .fo-steps p { margin: 0; color: var(--ds-muted); }
main#main.pb-fo .w-fo-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-bottom: 1.5rem; }
main#main.pb-fo .w-fo-strip .w-figure { margin: 0; border-radius: var(--ds-r-l); overflow: hidden; background: #fff; border: 1px solid var(--ds-line); box-shadow: var(--ds-shadow); }
main#main.pb-fo .w-fo-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
main#main.pb-fo .w-fo-strip figcaption { padding: 0.75rem 1rem; font-weight: 600; color: var(--ds-navy); }
main#main.pb-fo .fo-audiences { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; max-width: none; }
main#main.pb-fo .fo-audiences > li { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); padding: 1rem 1.15rem; margin: 0; max-width: none; }
main#main.pb-fo .fo-audiences h3 { font: 600 1.0625rem/1.3 var(--ds-sans); margin: 0 0 0.3rem; }
main#main.pb-fo .fo-audiences p { margin: 0; color: var(--ds-muted); }
main#main.pb-fo .w-split { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 56rem) { main#main.pb-fo .w-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
main#main.pb-fo .w-split .w-figure { margin: 0; border-radius: var(--ds-r-l); overflow: hidden; box-shadow: var(--ds-shadow); background: #fff; }
main#main.pb-fo .w-split .w-figure img { display: block; width: 100%; height: auto; }
main#main.pb-fo .w-split figcaption { padding: 0.75rem 1rem; color: var(--ds-muted); font-size: 0.9375rem; }
main#main.pb-fo .fo-note { background: #FFF8EC; border: 1px solid #F3D7A8; border-left: 4px solid var(--ds-amber); border-radius: var(--ds-r-m); padding: 0.85rem 1rem; }
main#main.pb-fo .fo-close { background: none; padding-block: clamp(2.5rem, 5vw, 4rem); color: var(--ds-navy); }
main#main.pb-fo .fo-close > .ds-wrap { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 52rem; }
main#main.pb-fo .fo-close h2 { color: var(--ds-navy); font-size: var(--ds-t-2xl); margin: 0 0 0.75rem; }
main#main.pb-fo .fo-close p { color: #22394A; }
main#main.pb-fo .fo-close .fo-small { color: var(--ds-muted); }
main#main.pb-fo .fo-close .btn-primary { background: var(--ds-navy); border-color: var(--ds-navy); color: #fff; }

/* ===================================================================================== building record */
.pb-hero-figure { margin: 0; }
.pb-hero-figure figcaption { margin-top: 0.75rem; color: var(--ds-muted); font-size: 0.9375rem; line-height: 1.5; }
main#main.pb-record .br-static-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 1rem 0; max-width: none; }
main#main.pb-record .br-static-item { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow); padding: 1.15rem 1.25rem; margin: 0; max-width: none; }
main#main.pb-record .br-static-h { font: 600 var(--ds-t-l)/1.25 var(--ds-serif); margin: 0 0 0.4rem; }
main#main.pb-record .br-static-h::after { content: none; display: none; }
main#main.pb-fo h2 { font-family: var(--ds-serif); font-weight: 600; letter-spacing: -0.015em; }
main#main.pb-fo .fo-close a:not(.btn) { color: var(--ds-storm); text-decoration: underline; }
/* the profile's "Show"/"Hide" disclosure label: two legacy rules drew it as text inside a 0.6rem rotated chevron box,
   which clipped the label; on these pages it is the text label alone */
main#main.pb-profile .rp-more > .rp-more-summary::after, main#main.pb-profile .rp-more[open] > .rp-more-summary::after { width: auto; height: auto; border: 0; transform: none; flex: none; }
@media print { main#main.pb-profile .rp-aside { box-sizing: border-box; max-width: 100%; } }
/* the workspace header stacks inside the auth card until the signed-in workspace widens it */
main.pb-ws.pb-ws .ax-ws-top { display: block; }
main.pb-ws.pb-ws:has([data-ws-view]:not([hidden])) .ax-ws-top { display: grid; }
/* method pages carry wide tables: the sheet widens, reading lines stay at 40rem */
@media (min-width: 64rem) { main.pb-method.pb-method .pb-doc { grid-template-columns: 15.5rem minmax(0, 56rem); } }
main.pb-method.pb-method .pb-prose { max-width: 56rem; }
@media (min-width: 64rem) { main#main.pb-profile .pb-doc-hero .page-h { font-size: clamp(2.4rem, 1.4rem + 2.2vw, 3.25rem); } }
main#main.pb-fo .pb-fo-ops { margin: 1.5rem 0 0; border-radius: var(--ds-r-l); overflow: hidden; box-shadow: var(--ds-shadow); }
main#main.pb-fo .pb-fo-ops img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }

/* refinement (21 October 2026): what you will get, shown before step one */
.check-intro { margin: 0 0 1.75rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--ds-line, #DCE4EA); border-radius: var(--ds-r-l, 22px); box-shadow: var(--ds-shadow); }
.check-intro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 1.5rem; }
@media (min-width: 48rem) { .check-intro-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check-intro-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.1rem 0.7rem; align-items: start; }
.check-intro-list svg { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--ds-teal, #127F83); }
.check-intro-list b { font: 600 var(--ds-t-m, 1.0625rem)/1.3 var(--ds-sans); color: var(--ds-navy, #092A40); }
main#main .check-intro-list span { color: var(--ds-muted, #4A6070); font-size: var(--ds-t-s, 0.9375rem); line-height: 1.5; }
main#main .check-intro-meta { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--ds-cloud, #E8ECEF); font-size: var(--ds-t-s, 0.9375rem); color: var(--ds-muted, #4A6070); }
/* only before the first answer: hidden from step two on (browsers without :has keep it visible) */
.pb-check:has(.check-step[data-step="1"][hidden]) .check-intro { display: none; }
main.pb-check.pb-check .check-intro { order: -2; }
/* refinement (21 October 2026): yes / no / not sure stay three across down to 30rem; on small phones they stack,
   so each answer reads on one line instead of wrapping to three */
@media (max-width: 30rem) {
  main.pb-check #system-applicability .applicability-row .choice-list { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  main.pb-check #system-applicability .applicability-row label.choice { min-height: 2.9rem; padding: 0.55rem 0.85rem; }
}
/* refinement (21 October 2026): the sample at a glance, above the evidence key */
.pb-glance-band { padding-block: clamp(1.5rem, 3vw, 2.25rem) 0; }
.pb-glance { margin: 0.75rem 0 0.5rem; }
@media (min-width: 56rem) { .pb-glance { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pb-glance dt a { color: inherit; text-decoration: none; }
.pb-glance dt a:hover { color: var(--ds-navy); text-decoration: underline; }
main#main .pb-glance-note { margin: 0.25rem 0 0; font-size: var(--ds-t-xs); color: var(--ds-muted); }
.mth-note { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid #e3a93b; background: #fbf5e7; border-radius: 0 8px 8px 0; line-height: 1.5; }   /* method status note, 18 Nov 2026 */
/* Check a building slice A (19 Nov 2026): the roof, drainage and water questions fold away; all optional */
.bcx-more { margin: 1rem 0; border: 1px solid var(--ds-line, #dfe4e8); border-radius: 12px; background: #fff; }
.bcx-more > summary { position: relative; cursor: pointer; padding: .85rem 2.6rem .85rem 1rem; display: grid; gap: .2rem; list-style: none; }
.bcx-more > summary::-webkit-details-marker { display: none; }
.bcx-more > summary::before { content: "+"; position: absolute; right: 1rem; top: .85rem; font: 600 1.2rem/1 var(--ds-sans, system-ui, sans-serif); color: #1c6a86; }
.bcx-more[open] > summary::before { content: "\2212"; }
.bcx-more-t { font-weight: 600; color: var(--ds-navy, #092a40); }
.bcx-more-h { font-size: .88rem; color: #4a6070; line-height: 1.45; }
.bcx-more > .bcx-extra { margin: 0; padding: 0 1rem 1rem; border: 0; }
