/* Eight procurement detail layouts, plus author-card contrast on three reviewed legacy solutions. */
body.service-detail-layout {
  --sd-ink: #142b3c;
  --sd-copy: #405569;
  --sd-muted: #53697b;
  --sd-accent: #08657c;
  --sd-line: #cbdbe3;
  --sd-surface: #edf4f7;
  --sd-key: #f4f8fa;
  --sd-focus: #087d98;
}
html body.service-detail-layout #main-content a { text-decoration: none !important; }
html body.service-detail-layout #main-content :is(h1,h2,h3,h4,h5,h6) { text-decoration: none !important; }
html body.service-detail-layout #main-content :is(h1,h2,h3,h4,h5,h6)::after { display: none !important; }
html body.service-detail-layout #main-content :is(a,button,summary):focus-visible { outline: 3px solid var(--sd-focus); outline-offset: 4px; border-radius: 2px; }
html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card :is(.content-author-label,.content-author-date) { color: #536176 !important; }
html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card a { text-decoration: none !important; }
html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card a:focus-visible { outline: 3px solid #087d98; outline-offset: 4px; border-radius: 2px; }
html body.service-detail-layout #main-content .sd-section { padding-block: 64px; }
html body.service-detail-layout #main-content .sd-section .pd-motion-item { opacity: 1 !important; transform: none !important; transition: none !important; }
html body.service-detail-layout #main-content .sd-section :is(h2,h3,h4) { color: var(--sd-ink); line-height: 1.45; text-wrap: balance; }
html body.service-detail-layout #main-content .sd-section h2 { font-size: 32px; margin: 0 0 20px; }
html body.service-detail-layout #main-content .sd-section h3 { font-size: 23px; margin: 0 0 16px; }
html body.service-detail-layout #main-content .sd-section :is(p,li) { font-size: 16px; line-height: 1.85; color: var(--sd-copy); text-wrap: pretty; }
html body.service-detail-layout #main-content .sd-section p { margin: 0 0 20px; }
html body.service-detail-layout #main-content .sd-section a { color: var(--sd-accent) !important; font-weight: 600; }
html body.service-detail-layout #main-content .sd-section .section-heading { margin-bottom: 32px; align-items: start; }
html body.service-detail-layout #main-content .sd-section :is(h2,h3)[tabindex="-1"]:focus { outline: none; }
html body.service-detail-layout #main-content .sd-section[tabindex="-1"]:focus { outline: none; }
html body.service-detail-layout #main-content .sd-section [id] { scroll-margin-top: 112px; }
html body.service-detail-layout #main-content .sd-section :is(.table-wrap,.reading-table-wrap) { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--sd-line); border-radius: 6px; background: transparent; }
html body.service-detail-layout #main-content .sd-section :is(.table-wrap,.reading-table-wrap):focus-visible { outline: 3px solid var(--sd-focus); outline-offset: -3px; }
html body.service-detail-layout #main-content .sd-section :is(.info-table,.reading-table) { width: 100%; table-layout: fixed; border-collapse: collapse; }
html body.service-detail-layout #main-content .sd-section :is(th,td) { padding: 16px; border-color: var(--sd-line); color: var(--sd-copy); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
html body.service-detail-layout #main-content .sd-section thead th { color: var(--sd-ink); background: var(--sd-surface); font-weight: 700; }
html body.service-detail-layout #main-content .sd-section tbody th { color: var(--sd-ink); background: var(--sd-key); font-weight: 650; }
html body.service-detail-layout #main-content .sd-section .reading-table col:first-child { width: 128px; }
html body.service-detail-layout #main-content .sd-section .table-scroll-hint { color: var(--sd-muted); }

/* BI: a compact reference beside its context, followed by the actual five-step verification. */
html body.service-detail-layout #main-content .sd-reference-layout { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 40px; align-items: start; }
html body.service-detail-layout #main-content .sd-reference-layout .section-heading { display: block; margin: 0; }
html body.service-detail-layout #main-content .sd-reference-layout h2 { font-size: 30px; }
html body.service-detail-layout #main-content .sd-table-pane { min-width: 0; }
html body.service-detail-layout #main-content .sd-table-pane .table-wrap { margin: 0; }
html body.service-detail-layout #main-content .sd-example-intro { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 40px; align-items: start; margin: 48px 0 24px; padding-top: 32px; border-top: 1px solid var(--sd-line); }
html body.service-detail-layout #main-content .sd-example-intro :is(h3,p) { margin: 0; }
html body.service-detail-layout #main-content .sd-process-table tbody { counter-reset: verification; }
html body.service-detail-layout #main-content .sd-process-table tbody tr { counter-increment: verification; }
html body.service-detail-layout #main-content .sd-process-table tbody th::before { content: counter(verification); display: block; font-size: 24px; line-height: 1.25; color: var(--sd-accent); margin-bottom: 8px; }
html body.service-detail-layout #main-content .sd-bi > .container > p:not(.table-scroll-hint) { max-width: 900px; margin-top: 24px; }

/* Responsibilities and reference paths read as rows, rather than repeated cards. */
html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) { display: block; margin: 0; }
html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card { display: grid; grid-template-columns: 208px minmax(0,1fr); gap: 32px; min-height: 0 !important; height: auto !important; align-content: start; align-items: start; padding: 24px 0; margin: 0; border: 0; border-bottom: 1px solid var(--sd-line); border-radius: 0; background: none; box-shadow: none; }
html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card:first-child { border-top: 1px solid var(--sd-line); }
html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card :is(h3,p) { margin: 0; }
html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card h3 { font-size: 20px; }
html body.service-detail-layout #main-content .sd-directory-list > .card { grid-template-columns: 192px minmax(0,1fr); padding-block: 20px; }
html body.service-detail-layout #main-content .sd-route-layout { display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 48px; align-items: start; }
html body.service-detail-layout #main-content .sd-route-main { min-width: 0; }
html body.service-detail-layout #main-content .sd-route-list > .card { grid-template-columns: 176px minmax(0,1fr); gap: 24px; }
html body.service-detail-layout #main-content .sd-materials { min-height: 0 !important; padding: 28px; background: var(--sd-surface) !important; border: 1px solid var(--sd-line) !important; border-radius: 8px; box-shadow: none !important; }
html body.service-detail-layout #main-content .sd-materials::before,
html body.service-detail-layout #main-content .sd-materials::after { display: none; }
html body.service-detail-layout #main-content .sd-materials h2 { font-size: 24px; }
html body.service-detail-layout #main-content .sd-materials ul { display: block !important; grid-template-columns: none !important; padding: 0 0 0 20px !important; margin: 0 !important; list-style: disc; }
html body.service-detail-layout #main-content .sd-materials li { display: list-item !important; min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 0 16px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html body.service-detail-layout #main-content .sd-materials li::before,
html body.service-detail-layout #main-content .sd-materials li::after { display: none !important; }
html body.service-detail-layout #main-content .sd-materials li:last-child { margin-bottom: 0 !important; }
html body.service-detail-layout #main-content .sd-intro-hero .container > p:not(.eyebrow) { max-width: 900px; line-height: 1.85; }

/* Comparison and handoff use separate reading areas with the original table semantics. */
html body.service-detail-layout #main-content .sd-comparison-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 40px; align-items: start; }
html body.service-detail-layout #main-content .sd-compare-brief { display: block; margin-bottom: 0; }
html body.service-detail-layout #main-content .sd-comparison-layout .table-wrap { margin: 0; }
html body.service-detail-layout #main-content .sd-combination-table { min-width: 660px; }
html body.service-detail-layout #main-content .sd-combination-table th:first-child { width: 160px; }
html body.service-detail-layout #main-content .sd-choice-table tbody td:last-child { background: var(--sd-key); }
html body.service-detail-layout #main-content .sd-handoff { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--sd-line); }
html body.service-detail-layout #main-content .sd-handoff > h3 { margin: 0; }
html body.service-detail-layout #main-content .sd-handoff-copy { min-width: 0; }
html body.service-detail-layout #main-content .sd-handoff-copy p:last-child { margin-bottom: 0; }
html body.service-detail-layout #main-content .sd-ue-deployment > .container > p:not(.table-scroll-hint) { max-width: 900px; }

/* Factory review: separate business status, review windows and the records passed to the next shift. */
html body.service-detail-layout #main-content .sd-factory-status .section-heading { display: block; max-width: 880px; }
html body.service-detail-layout #main-content .sd-answer { max-width: 960px; margin-bottom: 32px; }
html body.service-detail-layout #main-content .sd-answer strong { font-weight: 650; color: var(--sd-ink); }
html body.service-detail-layout #main-content .sd-state-reference { padding-bottom: 20px; }
html body.service-detail-layout #main-content .sd-state-reference > p:not(.table-scroll-hint) { max-width: 940px; }
html body.service-detail-layout #main-content .sd-review-chapter { display: grid; grid-template-columns: 256px minmax(0,1fr); gap: 40px; padding-block: 32px; border-top: 1px solid var(--sd-line); }
html body.service-detail-layout #main-content .sd-review-copy { min-width: 0; }
html body.service-detail-layout #main-content .sd-review-copy > :last-child { margin-bottom: 0; }
html body.service-detail-layout #main-content .sd-replay-example { padding: 24px; background: var(--sd-surface); border-radius: 6px; }
html body.service-detail-layout #main-content .sd-record-list { margin: 24px 0; }
html body.service-detail-layout #main-content .sd-record-list > .card { grid-template-columns: 200px minmax(0,1fr); gap: 24px; padding-block: 20px; }
html body.service-detail-layout #main-content .sd-record-list > .card h3 { font-size: 18px; }

/* Existing operational evidence is paired with its existing explanation, never decorative imagery. */
html body.service-detail-layout #main-content .sd-task-evidence { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 40px; align-items: start; margin: 28px 0 40px; }
html body.service-detail-layout #main-content .sd-task-steps { padding: 0 0 0 24px; margin: 0; }
html body.service-detail-layout #main-content .sd-task-steps li { padding-left: 8px; margin-bottom: 24px; }
html body.service-detail-layout #main-content .sd-task-steps li::marker { color: var(--sd-accent); font-weight: 700; font-size: 21px; }
html body.service-detail-layout #main-content .sd-evidence-figure { min-width: 0; margin: 0; }
html body.service-detail-layout #main-content .sd-evidence-figure img { display: block; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 4px; }
html body.service-detail-layout #main-content .sd-evidence-figure figcaption { color: var(--sd-muted); font-size: 14px; line-height: 1.85; margin-top: 16px; }
html body.service-detail-layout #main-content .sd-project-evidence { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 32px; align-items: center; margin: 40px 0 24px; }
html body.service-detail-layout #main-content .sd-project-evidence img { display: block; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 4px; }
html body.service-detail-layout #main-content .sd-project-evidence figcaption { margin: 0; }
html body.service-detail-layout #main-content .sd-project-evidence figcaption p { margin: 0; font-size: 18px; line-height: 1.9; }
@media (hover:hover) and (pointer:fine) {
  html body.service-detail-layout #main-content .sd-section a:hover { color: var(--sd-ink) !important; background: var(--sd-surface); border-radius: 2px; }
}
@media (min-width:761px) and (max-width:1100px) {
  html body.service-detail-layout #main-content :is(.sd-reference-layout,.sd-example-intro,.sd-comparison-layout) { display: block; }
  html body.service-detail-layout #main-content :is(.sd-reference-layout,.sd-comparison-layout) .section-heading { max-width: 780px; margin-bottom: 28px; }
  html body.service-detail-layout #main-content .sd-example-intro h3 { margin-bottom: 16px; }
  html body.service-detail-layout #main-content .sd-route-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 32px; }
  html body.service-detail-layout #main-content .sd-route-list > .card { display: block; }
  html body.service-detail-layout #main-content .sd-route-list > .card h3 { margin-bottom: 12px; }
  html body.service-detail-layout #main-content :is(.sd-handoff,.sd-review-chapter) { grid-template-columns: 224px minmax(0,1fr); gap: 32px; }
  html body.service-detail-layout #main-content .sd-task-evidence { display: block; }
  html body.service-detail-layout #main-content .sd-evidence-figure { max-width: 900px; margin-top: 32px; }
}
@media (max-width:760px) {
  body.service-detail-layout { --sd-ink: #fff; --sd-copy: #deebfa; --sd-muted: #adbed4; --sd-accent: #79dff5; --sd-line: #36526d; --sd-surface: #10233c; --sd-key: #10233c; --sd-focus: #79dff5; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-section { background: transparent !important; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card { background: #10233c !important; border-color: #36526d !important; border-left-color: #79dff5 !important; box-shadow: none !important; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card :is(.content-author-label,.content-author-date,.content-author-line) { color: #adbed4 !important; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card .content-author-name a { color: #fff !important; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card .content-author-profile-link { color: #79dff5 !important; }
  html body:is(.service-detail-layout,.service-author-review) #main-content .content-author-card a:focus-visible { outline-color: #79dff5; }
  html body.service-detail-layout #main-content .sd-section { padding-block: 40px !important; }
  html body.service-detail-layout #main-content .sd-section .container { min-width: 0; }
  html body.service-detail-layout #main-content .sd-section :is(h2,h3,h4) { color: var(--sd-ink) !important; line-height: 1.5 !important; }
  html body.service-detail-layout #main-content .sd-section h2 { font-size: 25px !important; margin: 0 0 20px !important; }
  html body.service-detail-layout #main-content .sd-section h3 { font-size: 21px !important; margin: 0 0 16px !important; }
  html body.service-detail-layout #main-content .sd-section :is(p,li) { color: var(--sd-copy) !important; font-size: 16px !important; line-height: 1.9 !important; }
  html body.service-detail-layout #main-content .sd-section p { max-width: none !important; margin: 0 0 20px !important; }
  html body.service-detail-layout #main-content .sd-section .section-heading { display: block !important; margin-bottom: 24px !important; }
  html body.service-detail-layout #main-content :is(.sd-reference-layout,.sd-example-intro,.sd-route-layout,.sd-comparison-layout,.sd-handoff,.sd-review-chapter,.sd-task-evidence,.sd-project-evidence) { display: block !important; }
  html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) { display: block !important; }
  html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card { display: block !important; padding: 24px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--sd-line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card:first-child { border-top: 1px solid var(--sd-line) !important; }
  html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card h3 { margin: 0 0 12px !important; font-size: 20px !important; }
  html body.service-detail-layout #main-content :is(.sd-role-list,.sd-route-list,.sd-directory-list,.sd-record-list) > .card p { margin: 0 !important; }
  html body.service-detail-layout #main-content .sd-section :is(.table-wrap,.reading-table-wrap) { margin: 16px 0 28px; border-color: var(--sd-line) !important; background: transparent !important; }
  html body.service-detail-layout #main-content .sd-section :is(.reading-table,.info-table) { min-width: 512px; }
  html body.service-detail-layout #main-content .sd-section .reading-table[data-columns="4"] { min-width: 712px; }
  html body.service-detail-layout #main-content .sd-section .reading-table col:first-child { width: 112px; }
  html body.service-detail-layout #main-content .sd-section :is(th,td) { font-size: 14px !important; line-height: 1.8 !important; padding: 14px !important; color: var(--sd-copy) !important; border-color: var(--sd-line) !important; }
  html body.service-detail-layout #main-content .sd-section thead th,
  html body.service-detail-layout #main-content .sd-section tbody th { color: var(--sd-ink) !important; background: var(--sd-key) !important; }
  html body.service-detail-layout #main-content .sd-section tbody td { background: #0a1a2f !important; }
  html body.service-detail-layout #main-content .sd-combination-table th:first-child { width: 112px; }
  html body.service-detail-layout #main-content .sd-process-table tbody th::before { font-size: 22px; }
  html body.service-detail-layout #main-content .sd-section .table-scroll-hint { color: var(--sd-muted) !important; font-size: 14px !important; }
  html body.service-detail-layout #main-content .sd-example-intro { margin-top: 32px; padding-top: 28px; }
  html body.service-detail-layout #main-content .sd-materials { padding: 24px !important; margin-top: 28px !important; background: var(--sd-surface) !important; border: 1px solid var(--sd-line) !important; }
  html body.service-detail-layout #main-content .sd-handoff { margin-top: 32px; padding-top: 28px; }
  html body.service-detail-layout #main-content .sd-review-chapter { padding-block: 28px; }
  html body.service-detail-layout #main-content .sd-replay-example { padding: 20px; background: var(--sd-surface) !important; }
  html body.service-detail-layout #main-content .sd-task-evidence { margin: 24px 0 32px; }
  html body.service-detail-layout #main-content .sd-task-steps { padding-left: 24px; }
  html body.service-detail-layout #main-content .sd-task-steps li { padding-left: 6px; margin-bottom: 24px; }
  html body.service-detail-layout #main-content .sd-evidence-figure { margin: 28px 0 0; }
  html body.service-detail-layout #main-content :is(.sd-evidence-figure,.sd-project-evidence) img { width: 100% !important; height: auto !important; max-height: none !important; object-fit: contain !important; border-radius: 4px !important; }
  html body.service-detail-layout #main-content .sd-evidence-figure figcaption { color: var(--sd-muted) !important; font-size: 14px !important; line-height: 1.85 !important; }
  html body.service-detail-layout #main-content .sd-project-evidence { margin: 28px 0; }
  html body.service-detail-layout #main-content .sd-project-evidence figcaption { margin-top: 20px; }
  html body.service-detail-layout #main-content .sd-intro-hero .container > p:not(.eyebrow) { max-width: none !important; font-size: 16px !important; line-height: 1.85 !important; }
}
@media (max-width:359px) {
  html body.service-detail-layout #main-content .sd-section :is(.reading-table,.info-table) { min-width: 440px; }
  html body.service-detail-layout #main-content .sd-section .reading-table[data-columns="4"] { min-width: 608px; }
  html body.service-detail-layout #main-content .sd-section .reading-table col:first-child,
  html body.service-detail-layout #main-content .sd-combination-table th:first-child { width: 104px; }
}
@media (prefers-reduced-motion:reduce) {
  html body.service-detail-layout #main-content .sd-section *,
  html body.service-detail-layout #main-content .sd-section *::before,
  html body.service-detail-layout #main-content .sd-section *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Digital-twin service hero: keep the full heading balanced and reading links visible on its dark image. */
html body.service-detail-layout #main-content .digital-twin-hero.sd-intro-hero h1 {
  max-width: 100% !important;
  text-wrap: balance;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
html body.service-detail-layout #main-content .digital-twin-hero.sd-intro-hero .container > p a {
  color: #9ae8ff !important;
  font-weight: 650;
}
html body.service-detail-layout #main-content .digital-twin-hero.sd-intro-hero .container > p a:hover {
  color: #fff !important;
}
html body.service-detail-layout #main-content .digital-twin-hero.sd-intro-hero .container > p a:focus-visible {
  outline-color: #9ae8ff;
}

/* Software service: balanced heading and a distinguishable first-phase reading path. */
html body.service-detail-layout #main-content .software-development-hero h1 {
  max-width: 100% !important;
  text-wrap: balance;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a {
  color: #365c77 !important;
  font-weight: 600;
}
html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a:hover {
  color: #163d5c !important;
}
html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a:focus-visible {
  outline: 3px solid #426f91;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a {
    color: #b4d2e5 !important;
  }
  html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a:hover {
    color: #fff !important;
  }
  html body.service-detail-layout #main-content .software-development-hero ~ #first-phase-planning > .container > .table-wrap + p a:focus-visible {
    outline-color: #b4d2e5;
  }
}

/* Keep separate reading actions distinct on the existing mobile layout. */
@media (max-width:760px) {
  html body.service-detail-layout #main-content .service-reading-actions { display: flex; flex-direction: column; gap: 10px; }
  html body.service-detail-layout #main-content .service-reading-actions > .button { margin: 0; }
}
