/* Workflow-first case detail, extending the shared project narrative base. */
.workbuddy-case { --wb-section-gap: 64px; --wb-note-surface: #edf5ff; }
.workbuddy-case .case-project-name { display: block; line-height: 1.5; }
.wb-output-panel { padding: 32px; background: var(--site-ice); border-radius: var(--case-radius); }
.wb-output-panel h2 { font-size: 25px; line-height: 1.5; font-weight: 600; }
.wb-output-panel dl { margin-top: 24px; }
.wb-output-panel dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--site-line); }
.wb-output-panel dt { font-size: 18px; font-weight: 550; color: var(--site-blue); }
.wb-output-panel dd { font-size: 15px; color: var(--site-ink-soft); }
.wb-output-panel > p { font-size: 13px; color: var(--site-muted); margin-top: 18px; }
.wb-workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; counter-reset: workflow; }
.wb-workflow li { padding-top: 22px; border-top: 1px solid var(--site-line); counter-increment: workflow; }
.wb-workflow li::before { content: "0" counter(workflow); display: block; color: var(--site-blue); font-size: 24px; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.wb-workflow strong { display: block; font-size: 19px; font-weight: 600; }
.wb-workflow span { display: block; margin-top: 9px; font-size: 15px; color: var(--site-ink-soft); }
.wb-process-note { margin-top: 32px !important; font-size: 14px; color: var(--site-muted); }
.wb-case-directory { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-bottom: 36px; }
.wb-case-directory a { display: inline-flex; min-height: 44px; align-items: center; color: var(--site-blue); font-size: 14px; text-decoration: none; }
.wb-case-directory a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wb-scenario { padding-top: 48px; margin-top: var(--wb-section-gap); border-top: 1px solid var(--site-line); scroll-margin-top: 150px; }
.wb-scenario-heading { display: grid; grid-template-columns: 1fr 1fr; gap: var(--case-gap); align-items: center; margin-bottom: 32px; }
.wb-scenario-heading > div { display: flex; align-items: baseline; gap: 18px; }
.wb-case-index { color: var(--site-blue); font-size: 16px; font-variant-numeric: tabular-nums; }
.wb-scenario-heading h3 { font-size: 30px; line-height: 1.45; letter-spacing: -.02em; font-weight: 600; }
.wb-scenario-heading > p { color: var(--site-ink-soft); font-size: 20px; line-height: 1.6; }
.wb-scenario-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--case-gap); }
.wb-scenario-body h4 { font-size: 14px; line-height: 1.5; font-weight: 600; margin: 0 0 18px; }
.wb-instruction { padding: 26px; background: var(--site-ice); }
.wb-instruction > p { font-size: 19px; line-height: 1.9; }
.wb-instruction > span { display: block; margin-top: 22px; font-size: 13px; color: var(--site-muted); }
.wb-collaboration ol { display: grid; gap: 14px; padding-left: 20px; color: var(--site-ink-soft); font-size: 16px; }
.wb-collaboration li { padding-left: 5px; }
.wb-delivery { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--site-line); }
.wb-delivery strong { font-size: 14px; color: var(--site-blue); font-weight: 550; }
.wb-delivery p { margin-top: 8px; color: var(--site-ink-soft); font-size: 16px; }
.wb-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.wb-gallery figure { min-width: 0; }
.wb-gallery figure:only-child { grid-column: 1 / -1; }
.wb-gallery[data-count="3"] figure:last-child { grid-column: 1 / -1; width: min(100%, 900px); justify-self: center; }
.wb-image-link { display: block; border: 1px solid var(--site-line); border-radius: var(--site-image-radius); overflow: hidden; background: var(--site-white); }
.wb-image-link img { display: block; width: 100%; height: auto; }
.wb-image-link:hover { outline: 2px solid var(--site-blue); outline-offset: 3px; }
.wb-gallery figcaption { display: flex; gap: 16px; justify-content: space-between; align-items: start; padding-top: 14px; color: var(--site-ink-soft); font-size: 14px; line-height: 1.7; }
.wb-gallery figcaption span { min-width: 0; }
.wb-gallery figcaption small { display: block; color: var(--site-muted); font-size: 12px; margin-top: 5px; }
.wb-gallery figcaption a { flex: none; display: inline-flex; min-height: 44px; align-items: start; color: var(--site-blue); text-decoration: none; }
.wb-space-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.wb-space-flow span { padding: 22px 18px; background: var(--wb-note-surface); font-size: 16px; text-align: center; }
.wb-source-note { color: var(--site-muted); font-size: 14px; margin-top: 20px !important; }
.wb-adoption { background: var(--site-ink); color: var(--site-white); }
.wb-adoption .case-section-heading > p { color: var(--case-on-dark-muted); }
.wb-adoption-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0; list-style: none; }
.wb-adoption-steps li { padding-top: 24px; border-top: 1px solid var(--case-on-dark-line); }
.wb-adoption-steps h3 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.wb-adoption-steps p { color: var(--case-on-dark-muted); font-size: 16px; }
.wb-boundary { color: var(--case-on-dark-muted); font-size: 14px; margin-top: 38px !important; max-width: 76ch; }
@media (max-width: 1040px) {
  .wb-workflow { grid-template-columns: repeat(3, 1fr); }
  .wb-scenario-heading h3 { font-size: 27px; }
  .wb-output-panel { padding: 26px; }
}
@media (max-width: 760px) {
  .workbuddy-case { --wb-section-gap: 40px; }
  .wb-output-panel { padding: 24px; }
  .wb-output-panel h2 { font-size: 23px; }
  .wb-output-panel dl > div { grid-template-columns: 84px 1fr; gap: 16px; }
  .wb-workflow { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .wb-workflow strong { font-size: 18px; }
  .wb-scenario { padding-top: 32px; }
  .wb-scenario-heading, .wb-scenario-body { grid-template-columns: 1fr; gap: 24px; }
  .wb-scenario-heading > p { font-size: 18px; }
  .wb-scenario-heading h3 { font-size: 25px; }
  .wb-instruction { padding: 22px; }
  .wb-instruction > p { font-size: 17px; }
  .wb-case-directory { display: grid; grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .wb-gallery { grid-template-columns: 1fr; gap: 26px; }
  .wb-gallery[data-count="3"] figure:last-child { grid-column: auto; }
  .wb-gallery figcaption { font-size: 13px; gap: 12px; }
  .wb-gallery figcaption small { font-size: 12px; }
  .wb-space-flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wb-space-flow span { font-size: 15px; padding: 18px 12px; }
  .wb-adoption-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .wb-scenario-heading > div { gap: 12px; }
  .wb-scenario-heading h3 { font-size: 23px; }
  .wb-adoption-steps { grid-template-columns: 1fr; }
  .wb-gallery figcaption { flex-direction: column; gap: 8px; }
  .wb-gallery figcaption a { min-height: 32px; }
}
