/* A working guide index; distinct responsibilities rather than a byline fiction. */
.ehb-page, .ehp-page { color: var(--ink); }
.ehb-page :where(h1,h2,h3,h4,strong), .ehp-page :where(h1,h2,h3) { overflow-wrap: anywhere; }
.ehb-page .nw { display: inline; white-space: nowrap; }
.eh-art { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.eh-art .eh-paper { fill: var(--paper); }
.eh-art .eh-tint { fill: var(--service-tint, var(--bpo-t)); }
.eh-art .eh-ground { stroke: var(--line-2); stroke-width: 1.2; }
.ehb-page .svc-msp { --service-tint: var(--msp-t); --service-ink: var(--msp-ink); }
.ehb-page .svc-bpo { --service-tint: var(--bpo-t); --service-ink: var(--bpo-ink); }
.ehb-page .svc-ai { --service-tint: var(--ai-t); --service-ink: var(--ai-ink); }
.ehb-page .svc-dt { --service-tint: var(--dt-t); --service-ink: var(--dt-ink); }
.ehb-page .ehb-opening, .ehp-page .ehp-opening { padding-block: clamp(28px, 3vw, 42px) 48px; }
.ehb-page .crumbs, .ehp-page .crumbs { margin-bottom: 36px; }
.ehb-opening-grid, .ehp-opening-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 32px clamp(36px, 7vw, 100px); align-items: end; }
.ehb-opening-grid > *, .ehp-opening-grid > * { min-width: 0; }
.ehb-page h1, .ehp-page h1 { font-size: clamp(2.75rem, 4.8vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; max-width: 18ch; margin: 0; text-wrap: balance; }
.ehb-intro p, .ehp-lede { font-size: 1.125rem; line-height: 1.8; max-width: 48ch; }
.ehb-intro p + p { margin-top: 20px; font-size: 1rem; color: var(--muted); }
.ehb-index { margin-top: 44px; }
.ehb-index > h2 { font: 650 .875rem/1.6 var(--font); color: var(--muted); letter-spacing: .04em; margin: 0 0 20px; }
.ehb-index > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.ehb-index li { min-width: 0; border-top: 1px solid var(--line-2); }
.ehb-index a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; padding-block: 20px 24px; color: var(--ink); text-decoration: none; height: 100%; }
.ehb-index-art { grid-column: 1 / -1; display: block; width: min(100%, 140px); margin-bottom: 0; }
.ehb-index-label { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; min-width: 0; container-type: inline-size; }
.ehb-index-label strong { font-size: 1.125rem; line-height: 1.45; font-weight: 650; }
.ehb-index-label .smk { margin-top: 4px; }
.ehb-index-label small { grid-column: 2; font-size: .875rem; color: var(--muted); }
.ehb-index a > .ico { align-self: start; margin-top: 5px; width: 18px; height: 18px; }
.ehb-index a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* Guide library: leave the reading surface white and give each topic a lightly tinted tab. */
.ehb-shelves { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px); }
.ehb-shelves > .wrap > .sec-head { margin-bottom: clamp(24px, 3vw, 38px); }
.ehb-shelf { border-top: 1px solid var(--line); }
.ehb-shelf + .ehb-shelf { margin-top: clamp(22px, 3vw, 38px); }
.ehb-shelf-head {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
  padding-block: clamp(14px, 2.2vw, 25px);
}
.ehb-shelf-head h3 {
  font-size: clamp(1.375rem, 2.4vw, 2.125rem); line-height: 1.18; letter-spacing: -.025em; margin: 0;
  scroll-margin-block-start: 12px;
}
.ehb-shelf-head > p {
  justify-self: start; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--service-ink); font-size: .8125rem; line-height: 1.5; font-weight: 600; margin: 0;
}
.ehb-shelf-mark { display: flex; align-items: center; }
.ehb-guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0 clamp(18px, 4vw, 48px); list-style: none; margin: 0; padding: 0; }
.ehb-guide-list > li { min-width: 0; border-top: 1px solid var(--line); }
.ehb-guide-link { display: grid; grid-template-columns: max-content minmax(0, 1fr) 18px; gap: clamp(10px, 1.6vw, 18px); min-height: 44px; height: 100%; padding-block: 19px 22px; color: var(--ink); text-decoration: none; }
.ehb-guide-number {
  display: grid; place-items: center; min-width: 26px; min-height: 26px; padding-inline: 4px; align-self: start;
  border-radius: 6px; background: var(--service-tint); color: var(--service-ink); font-size: .75rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.ehb-guide-link h4 { font-size: clamp(1.125rem, 1.65vw, 1.375rem); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.ehb-description { display: block; font-size: .9375rem; line-height: 1.7; color: var(--muted); }
.ehb-guide-link > .ico { width: 16px; height: 16px; margin-top: 5px; color: var(--service-ink); }
.ehb-guide-link:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ehb-ending { padding-block: clamp(48px, 6vw, 80px); }
.ehb-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 30px 72px; }
.eh-k { font-size: .875rem; line-height: 1.6; font-weight: 650; color: var(--muted); margin-bottom: 18px; }
.ehb-next h2 { font-size: clamp(2rem, 3vw, 3rem); max-width: 16ch; line-height: 1.12; letter-spacing: -.035em; }
.ehb-next > div > p:not(.eh-k) { font-size: 1.125rem; line-height: 1.8; }
.ehb-next .ui-links { flex-wrap: wrap; gap: 12px 26px; }
.ehb-next .ui-links a { min-height: 44px; padding-block: 8px; }
.ehp-opening-grid { align-items: center; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.ehp-lede { margin: 28px 0 0; }
.ehp-proof { max-width: 310px; justify-self: end; width: 100%; }
.ehp-proof .line-policy-jump { display: flex; gap: 20px; align-items: center; min-height: 48px; padding-block: 12px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.ehp-proof .line-policy-jump .ico { width: 18px; height: 18px; flex: none; }
.ehp-adoption { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-block: 1px solid var(--line-2); margin-top: 36px; border-radius: 0; background: transparent; }
.ehp-adoption > .ico { width: 20px; height: 20px; margin-top: 5px; }
.ehp-adoption p { font-size: 1rem; line-height: 1.85; margin: 0; max-width: 96ch; }
.ehp-responsibilities { padding-block: clamp(40px, 5vw, 72px); background: var(--mist); container-type: inline-size; }
.ehp-responsibilities .sec-head { margin-bottom: 24px; }
.ehp-responsibilities .wrap > p { font-size: 1.125rem; line-height: 1.8; max-width: 75ch; margin-bottom: 32px; }
.ehp-role-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 32px; list-style: none; margin: 0; padding: 0; }
.ehp-role { border-top: 1px solid var(--line-2); padding: 24px 0; min-width: 0; }
.ehp-role-1 { grid-column: 1; grid-row: 1; }
.ehp-role-2 { grid-column: 1; grid-row: 2; }
.ehp-role-3 { grid-column: 2; grid-row: 1 / span 2; padding: 30px; background: var(--paper); border-top: 3px solid var(--bpo-ink); border-radius: 0 0 38px 0; }
.ehp-role-4 { grid-column: 3; grid-row: 1; }
.ehp-role-5 { grid-column: 3; grid-row: 2; }
.ehp-role-stage { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; line-height: 1.6; font-weight: 650; color: var(--muted); margin-bottom: 20px; }
.ehp-role-stage span { white-space: nowrap; }
.ehp-role h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 20px; }
.ehp-role-3 h3 { font-size: clamp(2rem, 3vw, 2.75rem); }
.ehp-role p:not(.ehp-role-stage):not(.line-policy-status) { font-size: 1rem; line-height: 1.8; }
.ehp-page .line-policy-status { display: flex; gap: 8px; max-width: 100%; font-size: .875rem; line-height: 1.6; border: 0; border-radius: 0; background: transparent; padding: 0; align-items: start; margin: 20px 0 0; }
.ehp-page .line-policy-status .ico { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.ehp-page .line-policy-status span { min-width: 0; overflow-wrap: anywhere; }
.ehp-role .line-policy-reviewer-note { color: var(--muted); font-size: .875rem; line-height: 1.8; margin-top: 20px; }
.ehp-page .doc-sec { padding-block: 0 36px; margin-bottom: 36px; }
.ehp-page .doc-sec + .doc-sec { padding-top: 36px; }
.ehp-page .doc-sec h2 { font-size: clamp(1.875rem, 2.7vw, 2.5rem); line-height: 1.2; letter-spacing: -.03em; }
.ehp-page .doc-sec .line-policy-status { margin-bottom: 24px; }
.ehp-page .doc-sec p, .ehp-page .doc-sec li { font-size: 1rem; line-height: 1.85; }
.ehp-page a:focus-visible, .ehb-page a:focus-visible { outline: 2px solid var(--focus-line); outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .motion .ehp-proof.is-in .eh-art { animation: eh-proof-settle .36s ease both; }
}
@keyframes eh-proof-settle { from { transform: translateY(7px) rotate(-1deg); } to { transform: translateY(0) rotate(0); } }
@media (max-width: 979px) {
  .ehp-opening-grid { grid-template-columns: minmax(0, 1fr); }
  .ehp-proof { display: flex; flex-wrap: wrap; align-items: center; max-width: none; gap: 24px; justify-self: start; }
  .ehp-proof .eh-art { width: 200px; }
  .ehp-role-route { display: block; }
  .ehp-role { padding-block: 26px; }
  .ehp-role-3 { padding: 28px; margin-block: 16px; }
}
@media (max-width: 679px) {
  .ehb-page h1, .ehp-page h1 { font-size: clamp(2.5rem, 10.5vw, 3rem); }
  .ehb-intro p, .ehp-lede { font-size: 1rem; }
  .ehb-index a { grid-template-columns: 80px minmax(0, 1fr) 18px; align-items: center; gap: 16px; padding-block: 20px; }
  .ehb-index-art { grid-column: 1; width: 80px; }
  .ehb-index-label { grid-column: 2; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ehb-index-label .smk { display: none; }
  .ehb-index-label small { grid-column: 1; }
  .ehb-shelf-head { grid-template-columns: 22px minmax(0, 1fr); }
  .ehb-shelf-head > p { grid-column: 2; }
  .ehp-proof .eh-art { width: 160px; }
}
@media (min-width: 980px) {
  .ehp-opening-grid { display: flex; flex-wrap: wrap; align-items: center; }
  .ehp-opening-grid > div:first-child { flex: 1.4 1 28rem; }
  .ehp-proof { flex: .6 1 16rem; margin-left: auto; }
  .ehp-role-route { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}
@container (max-width: 60rem) {
  .ehp-role-route { display: block; }
  .ehp-role { padding-block: 26px; }
  .ehp-role-3 { padding: 28px; margin-block: 16px; }
}
@container (max-width: 8rem) {
  .ehb-index-label .nw { display: inline; white-space: normal; overflow-wrap: anywhere; }
}
@media print {
  .ehp-proof, .ehb-index-art { display: none !important; }
  .ehp-role-route { display: block; }
  .ehp-role { break-inside: avoid; }
}
