/* Shared visual system for public service, research, pricing and contact pages.
   The base sheet owns layout, disclosures, sticky navigation and print styles. */
@media screen {
  :root {
    color-scheme: light;
    --bg: #f8f9f7;
    --bg-2: #eef1f1;
    --bg-deep: #101b31;
    --surface: #ffffff;
    --surface-2: #f1f3f4;
    --ink: #101b31;
    --text: #253346;
    --soft: #435367;
    --muted: #526275;
    --rule: #d1d8dd;
    --rule-2: #82909e;
    --brand: #ea592e;
    --btn: #ea592e;
    --btn-hover: #ff7950;
    --accent-ink: #101723;
    --accent: #994023;
    --accent-wash: #f9eae1;
    --accent-line: #d2a690;
    --cyan: #374d66;
    --cyan-wash: #e3ebed;
    --link-underline: #bd7157;
    --ok: #156846;
    --med: #785300;
    --high: #98421e;
    --crit: #a82e38;
    --low: #215888;
    --ok-wash: #e3f0e7;
    --med-wash: #fbefcc;
    --crit-wash: #fae2e4;
    --crit-wash-strong: #f7cfd2;
    --tint: #f6f7f6;
    --tint-strong: #e8edef;
    --tint-neutral: #edf0f1;
    --grad-btn: var(--btn);
    --grad-btn-hover: var(--btn-hover);
    --grad-plan: linear-gradient(125deg, #14263e, #101b31);
    --grad-cta: #101b31;
    --grad-stats: #172842;
    --grad-console: #101b31;
    --card: none;
    --card-hover: 0 8px 21px -15px #465464;
    --r-sm: 3px;
    --r: 5px;
    --r-md: 7px;
    --r-lg: 9px;
    --r-xl: 11px;
  }

  /* Diagrams, reporting panels and the footer all retain a legible dark palette. */
  :is(.ctaband, .ftr, .viz, .stats, .price--hl, .versus__col--hl, .sec--ink, .inshort, .console, .topbar) {
    color-scheme: dark;
    --bg: #101b31;
    --bg-2: #111d32;
    --surface: #182944;
    --surface-2: #203552;
    --ink: #fafbfc;
    --text: #e0e6ef;
    --soft: #c3cfdc;
    --muted: #aabbcd;
    --rule: #37475d;
    --rule-2: #74839a;
    --accent: #ffab86;
    --accent-wash: #332b30;
    --accent-line: #a36c57;
    --cyan: #b9cee7;
    --cyan-wash: #243b55;
    --tint: #15253d;
    --tint-strong: #20334b;
    --tint-neutral: #1d2b43;
    --ok: #7edab1;
    --med: #ffd374;
    --high: #ffab86;
    --crit: #ff99a2;
    --low: #a6cbff;
    --ok-wash: #1f3d38;
    --med-wash: #3a3529;
    --crit-wash: #382736;
    --crit-wash-strong: #4b2b38;
    --link-underline: #d99c85;
    color: var(--text);
  }

  .topbar, .ftr { background: #101b31; }
  .topbar__row { min-height: 34px; }
  .hdr, .nav { background: #fff; }
  .hdr { border-bottom: 1px solid var(--rule); box-shadow: none; }
  .nav__cta.nav__link, .btn--primary, .btn--primary:hover { box-shadow: none; }
  .btn, .nav__cta.nav__link { border-radius: 5px; }
  .menu__btn { border: 1px solid var(--rule-2); }
  .drop__panel { border-top-width: 2px; border-radius: 0 0 8px 8px; }
  .hero--page, .hero--page:not(.hero--split) {
    background: #edf2f5;
    color: #1d3348;
    border-bottom: 1px solid #d2dde3;
    padding-block: clamp(32px, 4.3vw, 72px);
  }
  .hero--page h1 {
    font-size: clamp(2.3rem, 1.4rem + 3.3vw, 4.65rem);
    line-height: 1.03;
    letter-spacing: -.035em;
  }
  .hero h1 .hl {
    color: #29536c;
    -webkit-text-fill-color: currentColor;
    background: none;
  }
  .hero .crumbs { margin-bottom: 20px; }
  .hero .lead { max-width: 62ch; }
  .hero__facts div, .hero__facts div:nth-child(n+3), .hero__facts div:nth-child(even) {
    border-radius: 4px;
    background: #f9fbfc;
    border-color: #c4d1d9;
  }
  .hero__facts dt, .desk__h, .kicker { font-family: var(--code); }
  .trustbar { background: #edf1f1; border-bottom: 1px solid var(--rule); }
  .kicker {
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
    font-size: .8125rem;
    line-height: 1.5;
    letter-spacing: .065em;
    text-transform: uppercase;
  }
  .kicker::before {
    content: "";
    height: 2px;
    width: 21px;
    margin-right: 4px;
    background: var(--brand);
  }
  .sec__head h2 { letter-spacing: -.045em; line-height: 1.08; }
  .jump { border-bottom: 1px solid var(--rule); box-shadow: none; }
  .card, .step__body, .fold, .desk { box-shadow: none; }
  .desk { border-top: 3px solid var(--brand); }
  .drop__panel, .consent {
    box-shadow: 0 14px 36px -24px rgb(16 27 49 / 65%);
  }
  .desk__idx a[aria-current="true"] { border-color: var(--accent); }
  .inq { border-top: 3px solid var(--brand); }
  .inq :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .faq summary:focus-visible, .fold summary:focus-visible { outline-offset: -3px; }
  .price--hl, .stats, .console { box-shadow: none; }
  .ftr { padding-top: clamp(36px, 5vw, 74px); }
  .ftr__h { color: var(--ink); }
}

/* Draw the disclosure glyph without adding punctuation to its accessible name. */
.faq summary::after {
  content: "";
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
}
.faq[open] summary::after {
  transform: none;
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat var(--brand);
}

.hdr .brand { gap: 10px; color: var(--ink); text-decoration: none; }
.brand-text { font: 700 1.8rem/.95 var(--display); letter-spacing: -.09em; }
.brand-text span { color: #c44a24; }
.brand-symbol { position: relative; display: inline-block; width: 31px; height: 32px; }
.brand-symbol i {
  position: absolute;
  left: 5px;
  width: 21px;
  height: 13px;
  background: #f16d43;
  transform: rotate(-30deg) skewX(28deg);
  border: 1px solid #fff;
}
.brand-symbol i:nth-child(1) { top: 16px; }
.brand-symbol i:nth-child(2) { top: 10px; }
.brand-symbol i:nth-child(3) { top: 4px; }
@media (max-width: 540px) {
  .brand-text { font-size: 1.45rem; }
  .hdr .brand { gap: 4px; }
}

.buyer-path{margin-block:2rem;padding:1.4rem;border:1px solid #bfccd6;border-radius:8px;background:#f6f8fa;color:#17263b}.buyer-path h2{margin:0;color:#17263b}.buyer-path ul{display:flex;gap:.65rem;flex-wrap:wrap;list-style:none;margin:1rem 0;padding:0}.buyer-path li a{display:inline-block;padding:.6rem .85rem;background:#192b40;color:#fff;border-radius:4px;text-decoration:none}.buyer-path p a{color:#713518;text-decoration:underline}

.official-brand {display:inline-flex;align-items:center;background:#101b31;padding:10px 9px;border-radius:4px;box-sizing:border-box}
.brand .official-brand img {display:block;width:clamp(110px,12vw,154px);height:auto;max-width:100%}
.topic-image,.service-image,.listing-image {display:block;width:100%;height:auto;object-fit:cover;border-radius:5px}
.service .service-image,.card .listing-image {aspect-ratio:2.4;margin:0 0 1rem}

@media screen {
  .hero--split .hero__art {display:block;width:100%;max-width:600px;margin-inline:auto}
  .b9-work-photo,.hero__art .topic-image {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:8px}
  .b9-section-pair {display:grid;align-items:center;gap:clamp(18px,4vw,64px);margin-bottom:clamp(24px,4vw,48px)}
  .b9-section-pair .sec__head {margin:0}
  .b9-reading-section .wrap,.shell__main .b9-reading-section .wrap,.b9-reading-hero .hero__grid {width:min(100%,76ch);margin-inline:auto}
  .b9-reading-section .sec__body>p,.b9-reading-section .sec__head p {max-width:none}
  @media (min-width:700px) {
    .hero--split:has(.hero__art) .hero__grid,.b9-section-pair {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,64px)}
  }
  @media (max-width:699px) {
    .hero--split .hero__art,.b9-section-pair>.b9-work-photo {max-width:480px;justify-self:center}
    .hero__art img,.b9-section-pair>.b9-work-photo {aspect-ratio:2.1;object-fit:cover}
  }
}

.b9-text-intro {max-width:76ch;margin:0 auto 2rem}.b9-text-intro .sec__head{margin:0}

@media screen {
  main, .ftr { overflow-wrap: anywhere; }
  :is(.split,.pair,.cards,.steps,.hero__grid,.b9-section-pair,.hero__facts,.bento,.inq__row) > * { min-inline-size: 0; }
  main :is(figure,img,svg,select,textarea,input,button,.btn,.report) { max-inline-size: 100%; }
  .report__top { flex-wrap: wrap; gap: .5rem; }
  .crumbs a { margin-inline: 0; }
  .step::after { right: 0; }
  .tbl-wrap { max-inline-size: 100%; overflow-x: auto; }
  .tbl th, .tbl td, .faq code { overflow-wrap: anywhere; }
  .card img[src*="/preview-"] { height: auto; aspect-ratio: auto; object-fit: contain; }
  @media (max-width: 699px) {
    .split,.pair { grid-template-columns: minmax(0,1fr); }
    .nw { white-space: normal; }
    .step { grid-template-columns: 36px minmax(0,1fr); column-gap: 10px; }
    .step::before { width: 36px; height: 36px; }
    .step::after { left: 17px; top: 36px; right: auto; }
    .shell__main .step__body { padding: 16px; }
    .report__flag { white-space: normal; }
  }
}

@media screen {
  .jump ul { min-width: 0; max-width: 100%; mask-image: none; scrollbar-width: thin; }
  .jump ul::-webkit-scrollbar { display: block; height: 5px; }
  .tbl-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .tbl-wrap[tabindex] .tbl--stack { min-width: 0; }
}

@media screen {
  .hero--page { --ink: #122a40; --text: #243c50; --soft: #40586b; --muted: #4c6274; --rule: #cad6df; --rule-2: #8095a5; --btn: #ff936c; --btn-hover: #ffa47d; --grad-btn: var(--btn); --grad-btn-hover: var(--btn-hover); --accent-ink: #181e23; --accent: #804024; --surface: #fff; --bg: #edf2f5; color-scheme: light; }
  .hero--page .hero__main { min-width: 0; }
  .hero--page h1 { color: var(--ink); text-wrap: balance; }
  .hero--page h1 .hl::after { display: none; }
  .hero--page .lead { color: var(--text); }
  .hero--page .reviewed { color: var(--muted); }
  .hero--page .crumbs a, .hero--page .crumbs li { color: var(--muted); }
  .hero--page .crumbs a { text-underline-offset: 3px; }
  .hero--page .hero__art:has(.topic-image) { max-inline-size: 510px; }
  .hero--page .hero__art .topic-image { aspect-ratio: 16 / 9; border-radius: 9px; }
  .hero--page .hero__facts { margin-top: 16px; }
  .hero--page .hero__facts div { box-shadow: none; }
  .hero--page .btn--ghost { color: #18374d; border-color: #839aaa; }
  .hero--page .viz { color-scheme: dark; }
  .sec__head .kicker { font-family: var(--sans); font-size: .87rem; letter-spacing: .025em; text-transform: none; }
  .jump { background: #f7f9fa; }
  .jump a[aria-current=true] { color: #fff; background: #19334a; border-color: #19334a; }
  .buyer-path { padding: clamp(18px,2.7vw,36px); background: #fff; }
  .buyer-path ul { gap: .5rem 1rem; }
  .buyer-path li a { color: #203f57; background: #edf3f5; border: 1px solid #c4d3dc; min-height: 44px; display: inline-flex; align-items: center; }
  .buyer-path li a:hover { text-decoration: underline; }
  .b9-client-note { padding-block: 12px; font-size: .9rem; color: var(--muted); }
  .b9-reading-hero.hero--page .hero__grid { width: min(100%, 78ch); padding-inline: var(--gut); }
  .hero__viz > summary { color: var(--ink); }
}
@media screen and (max-width:699px) {
  .hero--page { padding-block: 25px; }
  .hero--page .hero__facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; overflow: visible; }
  .hero--page .hero__facts div, .hero--page .hero__facts div:nth-child(n) { min-width: 0; padding: 9px 11px; border: 1px solid #c4d1d9; }
  .hero--page .hero__facts dd { overflow-wrap: anywhere; font-size: 1rem; }
  .hero--page .hero__art .topic-image { aspect-ratio: 2.3; }
}

/* Methodology: retain the original reading flow and trim only section spacing. */
@media screen {
  .methodology-page .shell__main > .sec { padding-block: clamp(24px, 2.4vw, 34px); }
  .methodology-page .shell__main .sec__head { margin-bottom: 24px; }
  .methodology-page .b9-section-pair { margin-bottom: 24px; }
}

/* Phase imagery accompanies the introduction; detailed content retains normal flow. */
@media screen {
  .methodology-page .method-phase-intro { display: grid; gap: 22px; align-items: center; margin-bottom: 28px; }
  .methodology-page .method-phase-intro .sec__head { margin-bottom: 0; }
  .methodology-page .method-phase-image { margin: 0; min-width: 0; }
  .methodology-page .method-phase-image img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 8px; }
  .methodology-page .method-phase-image figcaption { margin-top: 8px; font-size: .82rem; line-height: 1.45; color: var(--muted); }
  @media (min-width: 900px) {
    .methodology-page .method-phase-intro { grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr); gap: clamp(28px,4vw,56px); }
    .methodology-page .method-phase-intro .sec__head > * { max-width: 100%; }
  }
}

/* Shared service/guide rhythm: readable content, balanced containers and useful desktop grids. */
@media screen {
  body:not([data-template="blog"]) .shell__main > .sec { padding-block: clamp(28px, 3.2vw, 44px); }
  body:not([data-template="blog"]) .shell__main .sec > .wrap { max-width: 1100px; }
  body:not([data-template="blog"]) .shell__main .sec__head { gap: 10px; margin-bottom: 24px; }
  body:not([data-template="blog"]) .shell__main .sec__head h2 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1.17; letter-spacing: -.025em; }
  body:not([data-template="blog"]) .shell__main .sec__head .lead { max-width: 72ch; font-size: 1.08rem; line-height: 1.6; }
  body:not([data-template="blog"]) .shell__main .sec__body > :where(p, ul, ol, h3, address, blockquote):not([class]) { max-width: 72ch; }
  body:not([data-template="blog"]) .shell__main .sec__body > :where(p, ul, ol):not([class]) { font-size: 1.05rem; line-height: 1.65; }
  body:not([data-template="blog"]) .shell__main .sec__body > :is(.tbl-wrap,.callout,.pair,.split,.cards,.bento,figure,ul.checks) { margin-top: 24px; }
  .b9-section-pair { margin-bottom: 24px; }
  .sec__body > .split > .card { padding: clamp(18px, 2vw, 26px); }
  @media (min-width: 900px) {
    body:not([data-template="blog"]) .shell__main .split,
    body:not([data-template="blog"]) .shell__main .pair { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
    .methodology-page .shell__main .sec__body > .checks { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  }
  @media (max-width: 899px) {
    body:not([data-template="blog"]) .shell__main .split,
    body:not([data-template="blog"]) .shell__main .pair { grid-template-columns: minmax(0,1fr); }
  }
}

.methodology-page .phase-details { border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.methodology-page .phase-details > summary { padding: 15px 20px; color: var(--ink); font-weight: 650; }
.methodology-page .phase-details > .sec__body { padding: 8px 20px 24px; }
.methodology-page .method-phase-image a { display: block; }
.methodology-page .method-phase-image a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.method-phase-map { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.method-phase-map a { display: grid; grid-template-columns: 75px minmax(0,1fr) minmax(0,1.2fr); align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 7px; background: var(--surface); text-decoration: none; }
.method-phase-map span { color: var(--accent); font-size: .85rem; font-weight: 650; }
.method-phase-map small { font-size: .94rem; color: var(--muted); }
.method-phase-map a:hover { border-color: var(--accent); }
.methodology-page .phase-details > .steps { padding: 18px; }
@media(max-width:699px) { .method-phase-map a { grid-template-columns: 64px minmax(0,1fr); gap: 5px 12px; } .method-phase-map small { grid-column: 2; } }

.leadership-entry { margin-bottom: 24px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.leadership-entry h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--ink); }
.leadership-entry .role-desc { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
