/* Scoped presentation for the team profile and verified case additions. */
body.content-evidence {
  --evidence-ink: #18242e;
  --evidence-copy: #344653;
  --evidence-muted: #566873;
  --evidence-accent: #27677a;
  --evidence-line: #d5dee3;
}
html body.content-evidence #main-content :is(h1,h2,h3,a) { text-decoration: none !important; }
html body.content-evidence #main-content :is(h1,h2,h3)::after { display: none !important; content: none !important; width: 0 !important; height: 0 !important; background: none !important; }
html body.content-evidence.case-detail-page main.article.case-detail .case-detail-section h2::after,
html body.content-evidence main h2::after { display: none !important; content: none !important; width: 0 !important; height: 0 !important; background: none !important; }
body.content-evidence main a:not(.button) { color: var(--evidence-accent); font-weight: 650; }
body.content-evidence main a:focus-visible,
body.content-evidence main [tabindex="0"]:focus-visible { outline: 3px solid #23798e; outline-offset: 5px; }
body.content-evidence main [tabindex="-1"]:focus { outline: none; }
body.content-evidence main [id] { scroll-margin-top: 112px; }
body.content-evidence .case-evidence-story { margin: 36px 0 48px; }
body.content-evidence .case-evidence-story > .case-detail-visual { margin: 0; padding: 0; }
body.content-evidence .case-evidence-story > figure :is(picture,img) { display: block; width: 100%; max-width: 100%; }
body.content-evidence .case-evidence-story > figure img { height: auto; object-fit: contain; aspect-ratio: auto; }
body.content-evidence .case-evidence-story > figure picture { border: 0; border-radius: 4px; box-shadow: none; }
body.content-evidence .case-evidence-story > figure figcaption { margin: 12px 0 0; color: var(--evidence-muted); font-size: 14px; line-height: 1.75; }
body.content-evidence .case-evidence-reading { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 40px; margin-top: 32px; align-items: start; }
body.content-evidence .case-evidence-reading:has(> :only-child) { display: block; max-width: 76ch; }
body.content-evidence main .case-evidence-reading > .case-detail-section { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.content-evidence .case-evidence-reading h2 { margin: 0 0 16px; color: var(--evidence-ink); font-size: 27px; line-height: 1.5; }
body.content-evidence .case-evidence-reading p { margin: 0 0 16px; color: var(--evidence-copy); font-size: 16px; line-height: 1.9; }
body.content-evidence main .case-evidence-reading > .evidence-boundary { border-left: 1px solid var(--evidence-line); padding-left: 24px; }
body.content-evidence .evidence-boundary h2 { font-size: 19px; line-height: 1.55; }
body.content-evidence .evidence-boundary p { font-size: 15px; color: var(--evidence-muted); }
body.content-evidence .warehouse-evidence .case-evidence-reading { display: block; max-width: none; }
body.content-evidence .evidence-copy-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
body.content-evidence .evidence-copy-steps h3 { margin: 0 0 10px; font-size: 18px; color: var(--evidence-ink); }
body.content-evidence main .evidence-deliverables { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--evidence-line); }
body.content-evidence .evidence-deliverables h2 { font-size: 24px; margin: 0 0 12px; }
body.content-evidence .evidence-deliverables p { margin-bottom: 12px; }
body.content-evidence .evidence-delivery-items { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
body.content-evidence .evidence-delivery-items li { color: var(--evidence-ink); font-size: 20px; font-weight: 650; }
body.content-evidence .evidence-delivery-items li::before { display: none; }
body.content-evidence .content-author-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 24px 0; border: 0; border-block: 1px solid var(--evidence-line); border-radius: 0; background: none; box-shadow: none; }
body.content-evidence .content-author-mark,
body.content-evidence .content-author-divider { display: none; }
body.content-evidence .content-author-card .content-author-label { grid-column: 1; margin: 0; color: var(--evidence-muted) !important; }
body.content-evidence .content-author-card .content-author-name { grid-column: 1; margin: 0; }
body.content-evidence .content-author-card .content-author-line { grid-column: 1; margin: 0; color: var(--evidence-copy) !important; }
body.content-evidence .content-author-profile-link { grid-column: 2; grid-row: 1 / span 3; align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
body.content-evidence .energy-evidence-reading > .grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
body.content-evidence .energy-evidence-reading > .grid > .card { padding: 24px 0; border: 0; border-top: 1px solid var(--evidence-line); border-radius: 0; background: none; box-shadow: none; }
body.content-evidence .energy-evidence-reading code { overflow-wrap: anywhere; }

/* Profile uses a public work image; it does not imply a team portrait or a project engine. */
body.team-evidence main .page-hero { padding-block: 64px; }
body.team-evidence main .team-profile { padding-block: 64px 48px; }
body.team-evidence .team-profile-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 48px; align-items: start; }
body.team-evidence .team-work-figure { margin: 0; }
body.team-evidence .team-work-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
body.team-evidence .team-work-figure figcaption { margin-top: 12px; color: var(--evidence-muted); font-size: 14px; line-height: 1.75; }
body.team-evidence .team-profile-copy h2,
body.team-evidence .team-record h2,
body.team-evidence .team-reading h2 { margin: 0 0 20px; font-size: 32px; line-height: 1.45; color: var(--evidence-ink); }
body.team-evidence .team-profile-copy p { margin: 0 0 18px; color: var(--evidence-copy); font-size: 16px; line-height: 1.9; }
body.team-evidence .team-record { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--evidence-line); }
body.team-evidence .team-record h2 { font-size: 23px; }
body.team-evidence .team-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 48px; margin: 0; }
body.team-evidence .team-facts > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--evidence-line); }
body.team-evidence .team-facts dt { color: var(--evidence-muted); font-size: 14px; line-height: 1.8; }
body.team-evidence .team-facts dd { margin: 0; color: var(--evidence-copy); font-size: 15px; line-height: 1.8; }
body.team-evidence .team-reading { padding-block: 40px 64px; }
body.team-evidence .team-reading-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 48px; margin-top: 32px; }
body.team-evidence .team-reading-groups > article { padding: 20px 0 0; border-top: 1px solid var(--evidence-line); }
body.team-evidence .team-reading-groups > article:last-child { grid-column: 1 / -1; }
body.team-evidence .team-reading-groups h3 { margin: 0 0 12px; color: var(--evidence-ink); font-size: 21px; }
body.team-evidence .team-reading-groups p { color: var(--evidence-copy); font-size: 16px; line-height: 2; }
body.team-evidence .team-reading-groups a { display: inline-block; padding-block: 6px; }

@media (max-width: 760px) {
  body.content-evidence { --evidence-ink: #f4f8fc; --evidence-copy: #deebf5; --evidence-muted: #b7c9db; --evidence-accent: #86dced; --evidence-line: #334b61; }
  html body.content-evidence:not(.home-page) main a { text-decoration: none !important; }
  html body.content-evidence main h2::after { display: none !important; content: none !important; }
  body.content-evidence main a:focus-visible,
  body.content-evidence main [tabindex="0"]:focus-visible { outline-color: #86dced; }
  html body.content-evidence main .case-evidence-story { margin: 24px 0 36px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html body.content-evidence main .case-evidence-story > .case-detail-visual { margin: 0 !important; padding: 0 !important; }
  html body.content-evidence main .case-evidence-story > figure picture { border: 0 !important; border-radius: 3px !important; box-shadow: none !important; }
  html body.content-evidence main .case-evidence-story > figure picture::after { display: none !important; }
  html body.content-evidence main .case-evidence-story > figure img { width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; }
  html body.content-evidence main .case-evidence-story > figure figcaption { margin-top: 12px !important; color: var(--evidence-muted) !important; font-size: 14px !important; line-height: 1.8 !important; }
  html body.content-evidence main .case-evidence-reading { display: block; margin-top: 28px; }
  html body.content-evidence main .case-evidence-reading > .case-detail-section { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  html body.content-evidence main .case-evidence-reading h2 { font-size: 23px !important; line-height: 1.5 !important; margin: 0 0 16px !important; color: var(--evidence-ink) !important; }
  html body.content-evidence main .case-evidence-reading p { color: var(--evidence-copy) !important; font-size: 15px !important; line-height: 1.9 !important; margin-bottom: 18px; }
  html body.content-evidence main .case-evidence-reading > .evidence-boundary { margin-top: 28px !important; padding-top: 24px !important; border-top: 1px solid var(--evidence-line) !important; }
  html body.content-evidence main .evidence-boundary h2 { font-size: 18px !important; }
  html body.content-evidence main .evidence-boundary p { color: var(--evidence-muted) !important; }
  html body.content-evidence main .evidence-copy-steps { display: block; }
  html body.content-evidence main .evidence-copy-steps > div + div { margin-top: 24px; }
  html body.content-evidence main .evidence-copy-steps h3 { color: var(--evidence-ink) !important; font-size: 18px !important; margin: 0 0 8px; }
  html body.content-evidence main .evidence-delivery-items { display: block; margin: 16px 0 0; padding: 0; }
  html body.content-evidence main .evidence-delivery-items li { padding: 10px 0; border-bottom: 1px solid var(--evidence-line); color: var(--evidence-ink) !important; font-size: 18px !important; }
  html body.content-evidence main .content-author-card { display: block; padding: 24px 0; border: 0; border-block: 1px solid var(--evidence-line); border-radius: 0; background: none; box-shadow: none; }
  html body.content-evidence main .content-author-card .content-author-name a { color: var(--evidence-ink) !important; }
  html body.content-evidence main .content-author-card .content-author-line,
  html body.content-evidence main .content-author-card .content-author-date { color: var(--evidence-muted) !important; font-size: 14px; line-height: 1.8; }
  html body.content-evidence main .content-author-profile-link { display: inline-flex; margin-top: 12px; }
  html body.content-evidence #main-content #content-author { margin: 32px 0 !important; padding: 24px 0 !important; border: 0 !important; border-block: 1px solid var(--evidence-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body.content-evidence #main-content #content-author > .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
  html body.content-evidence #main-content #content-author .content-author-card { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body.content-evidence #main-content #content-author .content-author-label { margin: 0 0 8px !important; color: var(--evidence-muted) !important; font-size: 14px !important; }
  html body.content-evidence #main-content #content-author .content-author-name { margin: 0 0 12px !important; }
  html body.content-evidence #main-content #content-author .content-author-name a { color: var(--evidence-ink) !important; font-size: 20px !important; line-height: 1.5 !important; }
  html body.content-evidence #main-content #content-author .content-author-line,
  html body.content-evidence #main-content #content-author .content-author-date { color: var(--evidence-muted) !important; font-size: 14px !important; line-height: 1.8 !important; }
  html body.content-evidence #main-content #content-author .content-author-profile-link { color: var(--evidence-accent) !important; font-size: 15px !important; text-decoration: none !important; }
  html body.content-evidence main .energy-evidence-reading > .grid { display: block; }
  html body.content-evidence main .energy-evidence-reading > .grid > .card { padding: 24px 0 !important; border: 0 !important; border-top: 1px solid var(--evidence-line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html body.team-evidence main .page-hero { min-height: 0 !important; padding-block: 36px !important; }
  html body.team-evidence:not(.home-page) main .team-profile { padding-block: 32px 20px !important; }
  html body.team-evidence main .team-profile-layout { display: flex; flex-direction: column; gap: 28px; }
  html body.team-evidence main .team-profile-copy { order: 0; }
  html body.team-evidence main .team-work-figure { order: 1; margin: 0; }
  html body.team-evidence main .team-profile-copy h2,
  html body.team-evidence main .team-record h2,
  html body.team-evidence main .team-reading h2 { font-size: 25px !important; line-height: 1.5 !important; color: var(--evidence-ink) !important; }
  html body.team-evidence main .team-profile-copy p,
  html body.team-evidence main .team-reading p { font-size: 15px !important; line-height: 1.9 !important; color: var(--evidence-copy) !important; }
  html body.team-evidence main .team-work-figure figcaption { font-size: 14px; color: var(--evidence-muted); }
  html body.team-evidence main .team-record { margin-top: 32px; padding-top: 24px; }
  html body.team-evidence main .team-facts { display: block; }
  html body.team-evidence main .team-facts > div { grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding-block: 14px; }
  html body.team-evidence main .team-facts :is(dt,dd) { font-size: 14px; color: var(--evidence-copy); }
  html body.team-evidence:not(.home-page) main .team-reading { padding-block: 28px 40px !important; }
  html body.team-evidence main .team-reading-groups { display: block; margin-top: 24px; }
  html body.team-evidence main .team-reading-groups > article { padding: 20px 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--evidence-line); border-radius: 0; box-shadow: none; }
  html body.team-evidence main .team-reading-groups h3 { font-size: 20px; color: var(--evidence-ink); }
}

/* The six historically updated case summaries retain their image-led directory layout. */
html body.cases-page #main-content .case-evidence-entry-reviewed :is(h3,a) { text-decoration: none !important; }
html body.cases-page #main-content .case-evidence-entry-reviewed a:focus-visible { outline: 3px solid #23798e; outline-offset: 4px; }
@media (max-width: 760px) {
  html body.cases-page #main-content .case-evidence-entry-reviewed a:focus-visible { outline-color: #86dced; }
}

/* This video frame stays dark in both desktop and mobile themes. */
html body.content-evidence.wastewater-video-page #case-video.case-video-shell > figcaption { color: #c4d4df !important; }
