/* mw-bh 1.0.7 (1.0.7: Our process in two columns from 992 to 1199 px and four from 1200 px, so no step sits alone on a row; What you get descriptions show in full (no two-line clamp) (cards in a row share the row height); 1.0.5: results band rebuilt as one component, see the RESULTS BAND block; 1.0.3: industry layout review: one drawing scale in What you get with aligned rows, a lone last card spans its row; results card services as one plain line under the description; reading-size step text; Ask us card beside the FAQ; 1.0.2: a lead case card that shares its row takes the top drawing box like the smaller cards; 1.0.1: results band case cards show the case study drawing, BugHerd #12 follow-up)
   was mw-bh 1.0.0 (BugHerd #13, #14, #15 on capability and industry pages; agent opus-5.5|claude-code|hr5b7, 2026-11-26; design QA/bugherd-12-15/DESIGN.md) */

/* ---------- #13 What you get: drawing cards, varied sizes ---------- */
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row dense;gap:1.25rem}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item{grid-column:auto!important;grid-row:auto!important;min-width:0}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]){height:100%;min-height:0!important;display:flex!important;flex-direction:column;justify-content:flex-start!important;gap:.5rem;padding:.75rem .75rem 1.5rem!important;background:var(--_website---background-surface,#fff)!important;color:var(--_website---text-primary)!important;border:1px solid var(--_website---border-subtle,rgba(31,32,27,.12))!important;border-radius:var(--_space---radius-card)!important;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s;position:relative}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]) .mw-cap-art{display:none}
[data-page=cap] .mw-cap-get [data-bh=media]{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:max(calc(var(--_space---radius-card) - .75rem),var(--_space---radius-ui,12px));margin-bottom:.75rem;background:#405548;flex:none}
[data-page=cap] .mw-cap-get [data-bh=media] img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]) :is(.mw-cap-deliv-title,.mw-cap-deliv-text,.mw-cap-problem-link){margin-left:1rem;margin-right:1rem}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]) .mw-cap-deliv-title{font-size:1.25rem;line-height:1.25;margin-top:0;margin-bottom:0}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]) .mw-cap-deliv-text{margin-top:0;margin-bottom:0;color:var(--_website---text-secondary)!important;font-size:1rem;line-height:1.5;}
@media (min-width:992px){
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(3n+1){grid-column:1/-1!important}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(3n+1) .mw-cap-deliv:has([data-bh=media]){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:auto auto 1fr;column-gap:1.5rem;align-items:start}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(3n+1) [data-bh=media]{grid-row:1/-1;margin-bottom:0}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(3n+1) .mw-cap-deliv-title{margin-top:1rem}
}
@media (min-width:768px) and (max-width:991px){
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items{grid-template-columns:repeat(2,minmax(0,1fr))!important}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(odd){grid-column:1/-1!important}
}
@media (max-width:767px){
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items{grid-template-columns:minmax(0,1fr)!important;gap:1rem}
[data-page=cap] .mw-cap-get .w-dyn-list>.w-dyn-items>.w-dyn-item{grid-column:1/-1!important}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]):hover{transform:translateY(-4px);box-shadow:0 18px 40px -24px rgba(31,32,27,.45)}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]):hover [data-bh=media] img{transform:scale(1.03)}
}
[data-page=cap] .mw-cap-get .mw-cap-deliv:has([data-bh=media]):focus-within{outline:.1875rem solid var(--_website---border-strong,#1f201b);outline-offset:.1875rem}

/* ---------- #14 Our process: swimlanes for who does each step ---------- */
[data-page=cap] .mw-cap-process .mw-cap-who{display:none!important}
html.mw-js [data-page=cap] .mw-cap-process .mw-cap-process-grid{position:relative;padding-top:3.25rem}
html.mw-js [data-page=cap] .mw-cap-process .mw-cap-step{position:relative;padding-top:calc(1.5rem + 7.25rem)!important}
[data-page=cap] .bh-legend{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin:0;padding:0;list-style:none;font-size:.875rem;line-height:1.43;color:var(--_website---text-on-inverse-secondary,#c9cbc0)}
[data-page=cap] .bh-legend li{display:flex;align-items:center;gap:.5rem}
[data-page=cap] .bh-node{flex:none;width:1.75rem;height:1.75rem;border-radius:50%;display:grid;place-items:center;color:#1f201b;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
[data-page=cap] .bh-node svg{width:1rem;height:1rem;display:block}
[data-page=cap] .bh-node.is-our{background:#e2f57a}
[data-page=cap] .bh-node.is-your{background:#c9abf5}
[data-page=cap] .bh-node.is-atlas{background:#f4f5ee}
[data-page=cap] .bh-lanes{position:absolute;left:0;right:0;top:1.5rem;height:6.25rem;pointer-events:none}
[data-page=cap] .bh-lane{position:absolute;left:0;right:0;height:1.75rem;display:flex;align-items:center}
[data-page=cap] .bh-lane:nth-child(1){top:0}[data-page=cap] .bh-lane:nth-child(2){top:2.25rem}[data-page=cap] .bh-lane:nth-child(3){top:4.5rem}
[data-page=cap] .bh-lane::before{content:"";position:absolute;left:0;right:0;top:50%;height:0;border-top:2px dotted rgba(244,245,238,.28)}
[data-page=cap] .bh-lane.is-on::before{border-top-style:solid;border-top-color:rgba(244,245,238,.5)}
[data-page=cap] .bh-lane .bh-node{position:relative;margin-left:1.5rem}
[data-page=cap] .bh-lane:not(.is-on) .bh-node{width:.5rem;height:.5rem;margin-left:2.125rem;background:rgba(244,245,238,.3)}
[data-page=cap] .bh-lane:not(.is-on) .bh-node svg{display:none}
[data-page=cap] .bh-lane .bh-pulse{position:absolute;top:50%;left:0;width:2.5rem;height:4px;margin-top:-2px;border-radius:2px;background:#e2f57a;opacity:0}
[data-page=cap] .bh-lane.is-your .bh-pulse{background:#c9abf5}
[data-page=cap] .bh-lane.is-atlas .bh-pulse{background:#f4f5ee}
@media (prefers-reduced-motion:no-preference){
[data-page=cap] .mw-cap-process.bh-in .bh-lane.is-on .bh-pulse{animation:bh-pulse 2.4s cubic-bezier(.4,0,.2,1) calc(var(--bh-i,0) * .35s) 1 both}
[data-page=cap] .mw-cap-process .w-dyn-item:hover .bh-lane.is-on .bh-node{transform:scale(1.15);box-shadow:0 0 0 .375rem rgba(244,245,238,.12)}
}
@keyframes bh-pulse{0%{opacity:0;transform:translateX(0)}12%{opacity:1}88%{opacity:1}100%{opacity:0;transform:translateX(calc(var(--bh-w,300px) - 2.5rem))}}

/* ---------- #15 scroll reveals (units without data-mw-reveal) ---------- */
@media (prefers-reduced-motion:no-preference){
html.mw-motion [data-page=cap] [data-bh-rv]:not(.bh-in){opacity:0;translate:0 12px;animation:bh-show 0s 2.5s forwards}
html.mw-motion [data-page=cap] [data-bh-rv=fade]:not(.bh-in){translate:none}
html.mw-motion [data-page=cap] [data-bh-rv]{transition:opacity .7s cubic-bezier(.2,.7,.2,1) calc(var(--bh-i,0) * 60ms),translate .7s cubic-bezier(.2,.7,.2,1) calc(var(--bh-i,0) * 60ms)}
}
@keyframes bh-show{to{opacity:1;translate:none}}

/* ---------- 1.0.3 industry layout review ---------- */
/* (e) process step text at reading size */
[data-page=cap] .mw-cap-process .mw-cap-step-text{font-size:1.0625rem!important;line-height:1.55!important;font-family:var(--_type---font-text,Inter),sans-serif}
/* (d) Ask us card beside the FAQ (industry template) */
[data-page=cap] [data-bh=ask]{margin-top:2rem;max-width:22rem;padding:1.5rem;border-radius:var(--_space---radius-card);background:var(--_website---background-surface,#fff);border:1px solid var(--_website---border-subtle,rgba(31,32,27,.12))}
[data-page=cap] [data-bh=ask-line]{margin:0 0 1rem;font-size:1rem;line-height:1.5;color:var(--_website---text-primary)}
[data-page=cap] [data-bh=ask-link]{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 1.25rem;border-radius:999px;background:var(--_website---background-inverse,#1f201b);color:var(--_website---text-on-inverse,#f4f5ee);font-weight:500;text-decoration:none}
[data-page=cap] [data-bh=ask-link]:hover{text-decoration:underline;text-underline-offset:.2em}
[data-page=cap] [data-bh=ask-link]:focus-visible{outline:.1875rem solid var(--_website---border-strong,#1f201b);outline-offset:.1875rem}
@media (min-width:992px){[data-page=cap] .mw-h5-faq-intro{position:sticky;top:7rem;align-self:start}}

/* ---------- RESULTS BAND component (1.0.5). The script wraps each linked case card's text and drawing in .bh-case (a grid);
   the card is a size container. Narrow card: text, then the drawing below. Card 640 px and wider: text and drawing in two tracks with a gap.
   The lead card spans the band; the other cards sit in an even auto-fit grid with equal heights. Drawings keep 3:2 with object-fit contain. */
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1.5rem!important}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>*{grid-column:1/-1!important;min-width:0}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1.5rem!important;align-items:stretch}
@media (min-width:600px){
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items:has(>.w-dyn-item:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))!important}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items>.w-dyn-item:last-child:nth-child(odd){grid-column:1/-1!important}
}
@media (min-width:1024px){
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items:has(>.w-dyn-item:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))!important}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items:has(>.w-dyn-item:nth-child(3))>.w-dyn-item:last-child:nth-child(odd){grid-column:auto!important}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items:has(>.w-dyn-item:nth-child(4))>.w-dyn-item:last-child:nth-child(3n+1){grid-column:1/-1!important}
}
[data-page=cap] .mw-cap-proof .mw-cap-proof-grid>.w-dyn-list>.w-dyn-items>.w-dyn-item{min-width:0;grid-column:auto!important;display:flex}
[data-page=cap] .mw-cap-proof .mw-h5-case{min-width:0;width:100%;min-height:0!important;height:auto!important}
[data-page=cap] .mw-cap-proof .mw-h5-case.bh-has{container-type:inline-size;padding:.75rem!important;display:block!important}
[data-page=cap] .mw-cap-proof .bh-case{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;height:100%}
[data-page=cap] .mw-cap-proof .bh-case>.mw-h5-contents{min-width:0;padding:1.25rem 1.25rem .75rem!important;margin:0!important;display:flex!important;flex-direction:column;justify-content:flex-start!important;height:auto!important}
[data-page=cap] .mw-cap-proof .bh-case>[data-bh=case-media]{position:relative;inset:auto;width:100%;aspect-ratio:3/2;overflow:hidden;border-radius:max(calc(var(--_space---radius-card) - .75rem),var(--_space---radius-ui,12px));align-self:end;translate:none;z-index:auto}
[data-page=cap] .mw-cap-proof .bh-case>[data-bh=case-media] img{display:block;width:100%;height:100%;object-fit:contain}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-title{display:block;margin:0}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-figure{display:block;white-space:nowrap;font-size:clamp(2.5rem,16cqw,4.5rem)!important;line-height:1!important;margin:0 0 .5rem}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-figure:empty{display:none}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-line{display:block;font-size:clamp(1.125rem,4.6cqw,1.375rem)!important;line-height:1.3!important;overflow-wrap:anywhere}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-detail{margin:.5rem 0 0;font-size:.9375rem;line-height:1.45}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-detail:empty{display:none}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-foot{margin-top:1.25rem!important;display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-chips{display:block!important;flex:1 1 auto;min-width:0;margin:0;padding:0;font-size:.9375rem;line-height:1.5;opacity:.85}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-chip{display:inline!important;border:0!important;padding:0!important;background:none!important;border-radius:0!important;font-size:inherit!important;line-height:inherit!important;min-height:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-chip:empty{display:none!important}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-chip:first-child{font-weight:600}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-chip:not(:empty)~.mw-h5-chip:not(:empty)::before{content:" \00B7  "}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-link{flex:none;position:relative}
@container (min-width:640px){
[data-page=cap] .mw-cap-proof .bh-case{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;align-items:center}
[data-page=cap] .mw-cap-proof .bh-case>.mw-h5-contents{padding:1.5rem 0 1.5rem 1.5rem!important;align-self:stretch;justify-content:center!important}
[data-page=cap] .mw-cap-proof .bh-case>[data-bh=case-media]{align-self:center}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-figure{font-size:clamp(2.75rem,9cqw,4.75rem)!important}
[data-page=cap] .mw-cap-proof .bh-case .mw-h5-case-line{font-size:clamp(1.125rem,2.2cqw,1.375rem)!important}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){[data-page=cap] .mw-cap-proof .bh-case>[data-bh=case-media] img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}[data-page=cap] .mw-cap-proof .mw-h5-case:hover [data-bh=case-media] img{transform:scale(1.02)}}

/* ---------- 1.0.6 What you get: a card's own link reads as one text link with one arrow after the last word (was a circle with two arrow glyphs above the text) ---------- */
[data-page=cap] .mw-cap-get .mw-cap-deliv .mw-cap-problem-link{display:block!important;align-self:stretch!important;text-align:left!important;margin:auto 1rem 0!important;padding-top:.5rem;font-size:1rem!important;line-height:1.4;color:var(--_website---text-primary)!important;text-decoration:none}
[data-page=cap] .mw-cap-get .mw-cap-deliv .mw-cap-problem-link .mw-cap-problem-arrow{display:none!important}
[data-page=cap] .mw-cap-get .mw-cap-deliv .mw-cap-problem-link>div{display:inline;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
[data-page=cap] .mw-cap-get .mw-cap-deliv .mw-cap-problem-link>div::after{content:"\00A0\2192";display:inline}
[data-page=cap] .mw-cap-get .mw-cap-deliv .mw-cap-problem-link:hover>div{text-decoration-thickness:2px}

/* ---------- 1.0.6 Our process: four steps never leave one step alone on a row (auto-fit gave three columns at 1024 px and step 4 alone) ---------- */
@media (min-width:992px) and (max-width:1199px){
[data-page=cap] .mw-cap-steps .w-dyn-items{grid-template-columns:repeat(2,minmax(0,1fr))!important}
[data-page=cap] .mw-cap-steps .w-dyn-items>.w-dyn-item:last-child:nth-child(odd){grid-column:1/-1}
}
@media (min-width:1200px){
[data-page=cap] .mw-cap-steps .w-dyn-items:has(>.w-dyn-item:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
