/* The workflow library uses Actigy's existing case shell and design tokens. */
.workflow-scenario-page .page-hero h1{max-width:24ch}
.workflow-scenario-page .direct-answer{max-width:76ch}
.workflow-scenario-page .workflow-disclosure{max-width:82ch;color:var(--text-soft)}
.workflow-scenario-page .workflow-byline{gap:.6rem 1rem}
.workflow-scenario-page .workflow-byline a{color:var(--brand);text-decoration:underline;text-underline-offset:.16em}
.workflow-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.6rem}
.workflow-metric{min-width:0;padding:1.1rem 1.2rem;border:1px solid var(--border-strong);border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow-sm);overflow-wrap:anywhere}
.workflow-metric p{margin:.35rem 0 0;line-height:1.45}
.workflow-metric .workflow-metric-label{margin-top:0;font-size:.93rem;font-weight:700;color:var(--text)}
.workflow-metric .workflow-modeled-label{margin-top:.9rem;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;font-weight:700;color:var(--brand)}
.workflow-metric .workflow-metric-value{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:750;letter-spacing:-.025em;color:var(--ink)}
.workflow-metric .workflow-metric-baseline,.workflow-metric .workflow-metric-window,.workflow-metric .workflow-metric-record{font-size:.84rem;color:var(--text-soft)}
.case-article.workflow-scenario{max-width:none}
.workflow-scenario>.cs-block{max-width:82ch;scroll-margin-top:7rem}
.workflow-scenario>.workflow-outcomes{max-width:none}
.workflow-scenario .workflow-sample-label{font-weight:700;color:var(--brand)}
.workflow-scenario .workflow-section-note,.workflow-scenario .workflow-evidence-note{color:var(--text-soft);font-size:.9rem}
.workflow-scenario .workflow-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.workflow-scenario .workflow-table-scroll:focus-visible{outline:3px solid var(--brand);outline-offset:4px}
.workflow-scenario .workflow-outcomes-table{min-width:850px;table-layout:fixed}
.workflow-outcomes-table caption{caption-side:top;text-align:left;padding:.9rem 1.1rem;font-weight:650;color:var(--text);background:var(--surface)}
.workflow-outcomes-table th,.workflow-outcomes-table td{vertical-align:top;overflow-wrap:anywhere}
.workflow-outcomes-table thead th:nth-child(1){width:23%}
.workflow-outcomes-table thead th:nth-child(2),.workflow-outcomes-table thead th:nth-child(3){width:17%}
.workflow-outcomes-table thead th:nth-child(4){width:15%}
.workflow-outcomes-table thead th:nth-child(5){width:28%}
.workflow-outcomes-table tbody th{font-weight:650;color:var(--text)}
.workflow-library .workflow-family-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.5rem 0 2.25rem}
main[data-workflow-hub] #workflow-library{scroll-margin-top:7rem}
.workflow-family-nav a{padding:.5rem .7rem;border:1px solid var(--border-strong);border-radius:var(--r-sm);background:var(--surface);font-size:.85rem;font-weight:650;line-height:1.4}
.workflow-library .workflow-family{margin-top:2.5rem;scroll-margin-top:7rem}
.workflow-family>h3{font-size:1.35rem;line-height:1.35;margin-bottom:1rem;color:var(--ink)}
.workflow-library .workflow-card-grid{margin-top:1rem;align-items:stretch}
main[data-workflow-hub] .case-grid,main[data-workflow-archive] .case-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
main[data-workflow-hub] .scenario-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.workflow-library .workflow-card{min-width:0;overflow-wrap:anywhere}
.workflow-library .workflow-card h4{font-size:1.05rem;line-height:1.4;font-weight:700;color:var(--text);margin:.25rem 0 .5rem}
.workflow-library .workflow-card .cs-sum{margin-bottom:1rem}
.workflow-card .workflow-card-status{margin-top:auto;padding-top:.7rem;font-size:.76rem;font-weight:650;color:var(--brand);border-top:1px solid var(--border)}
.workflow-explore .container{max-width:var(--container)}
.workflow-explore p{max-width:78ch;color:var(--text-soft)}
@media(max-width:760px){
 .workflow-metrics{grid-template-columns:1fr}
 .workflow-metric{padding:1rem}
 .workflow-scenario-page .page-hero h1{max-width:none}
 .workflow-scenario-page .workflow-byline{display:block;line-height:1.6}
 .workflow-byline>span{display:block}
 .workflow-scenario .workflow-table-scroll{margin-top:1.25rem}
 .workflow-scenario>.cs-block,.workflow-library .workflow-family{scroll-margin-top:9rem}
 main[data-workflow-hub] #workflow-library{scroll-margin-top:9rem}
 .workflow-library .workflow-card-grid{grid-template-columns:1fr}
 .workflow-family-nav a{font-size:.8rem}
}
