/* Native detail headings and reading styles remain in control. Preserve the
   approved illustrations' internal hierarchy, using shared tokens where available. */
.os-case{--os-illustration-accent:#0062c9}
[data-portfolio-theme="dark"] .os-case{--os-illustration-accent:#82b9ff}
.os-case .os-kicker,.os-case .os-caption{font-size:var(--pf-type-caption);line-height:1.5;color:var(--yhy-muted)}
.os-case .os-kicker{margin:0;font-weight:var(--yhy-weight-medium)}
.os-case .os-task{position:relative;display:block;min-width:0;box-sizing:border-box;border:1px solid var(--yhy-action-border);border-radius:var(--pf-radius-media);padding:var(--ds-content-space);background:none;color:var(--yhy-ink)}
.os-case .os-task>.os-kicker{position:absolute;inset-block-start:0;inset-inline-start:var(--yhy-space-6);transform:translateY(-50%);padding:0 var(--yhy-space-2);background:var(--yhy-surface);color:var(--yhy-ink)}
.os-case .os-task>.os-caption{display:block;margin-top:var(--pf-space-paragraph)}
.final-preview #main.os-case .os-task>p{max-width:none;font-size:var(--yhy-type-heading-lg);line-height:var(--yhy-leading-heading);font-weight:var(--yhy-weight-medium);margin:0;color:var(--yhy-ink);overflow-wrap:break-word}
.final-preview #main.os-case #handoff-outcome>.case-section-heading{margin-bottom:0}
.os-case .os-comparison{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--yhy-line);border-radius:var(--ds-radius);overflow:hidden}
.os-case .os-comparison article{padding:var(--ds-content-space);min-width:0}
.os-case .os-comparison article+article{border-left:1px solid var(--yhy-line)}
.os-case :is(.os-comparison,.os-flow) h3{line-height:var(--pf-type-heading-line);font-weight:var(--yhy-weight-medium);margin:var(--ds-group-space) 0}
.os-case .os-comparison h3{font-size:var(--yhy-heading-font)}
.os-case .os-comparison p:not(.os-kicker){font-size:var(--pf-type-reading-mobile);line-height:var(--pf-type-reading-line);margin:0;color:var(--yhy-muted)}
.os-case .os-comparison p.os-tradeoff{margin-top:var(--ds-content-space);padding-top:var(--pf-space-paragraph);border-top:1px solid var(--yhy-line)}
.os-case .os-web-schedule{margin-top:var(--ds-block-space)}
.os-case .os-flows{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-content-space)}
.os-case .os-flow{background:var(--yhy-surface-subtle);padding:var(--ds-content-space);border-radius:var(--ds-radius);min-width:0}
.os-case .os-flow h3{font-size:var(--detail-subsection);margin-bottom:var(--ds-content-space)}
.os-case .os-flow ol{margin:0;padding:0;list-style:none;display:grid;gap:var(--yhy-space-6);counter-reset:flow}
.os-case .os-flow li{position:relative;min-height:52px;display:flex;align-items:center;gap:var(--ds-group-space);padding:var(--yhy-space-3) var(--yhy-action-inset);border:1px solid var(--yhy-line);background:var(--yhy-surface-raised);border-radius:var(--yhy-control-radius);font-size:var(--pf-type-reading-mobile);line-height:1.5;color:var(--yhy-muted);counter-increment:flow}
.os-case .os-flow li::before{content:counter(flow,decimal-leading-zero);font-size:var(--yhy-caption-font);font-variant-numeric:tabular-nums}
.os-case .os-flow li:not(:last-child)::after{content:'↓';position:absolute;left:var(--yhy-space-6);bottom:calc(-1 * var(--yhy-space-6));font-size:var(--pf-type-reading-mobile);color:var(--yhy-muted)}
.os-case .os-flow li.os-flow-detour{border-style:dashed;background:transparent}
.os-case .os-flow li.os-flow-key{border-color:var(--os-illustration-accent);box-shadow:inset 0 0 0 1px var(--os-illustration-accent)}
.os-case .os-media-stack{display:grid;gap:var(--ds-block-space)}
.os-case .os-evidence-pair{margin-top:0}
.final-preview .os-case .os-tv-layouts .case-subhead{margin:var(--pf-space-paragraph) 0 var(--yhy-space-2)}
.final-preview .os-case .os-tv-layouts figure>p{margin:0;color:var(--yhy-muted);font-size:var(--yhy-type-body);line-height:var(--yhy-leading-body)}
.final-preview .os-case #tv-handoff>.os-tv-layouts+.os-evidence-pair{margin-top:var(--ds-block-space)}
.final-preview .os-case #tv-handoff>.os-spacing-title{margin:var(--pf-space-paragraph) 0 var(--yhy-space-2)}
.final-preview .os-case #tv-handoff>.os-spacing-title+p{margin-bottom:0}
.final-preview .os-case .os-tv-layouts .rv-system-crop img{border:0}
.final-preview .os-case .os-live-figure img{border:0}
/* A new typographic specimen, not an edited source screenshot. It shares the
   live-row crop's 440:72 frame and keeps the original message verbatim. */
.os-case .os-empty-state{aspect-ratio:440/72;border-radius:var(--ds-radius);background:#252525;color:#bfbfbf;display:flex;align-items:center;justify-content:center;text-align:center;padding-inline:var(--yhy-action-inset)}
.os-case .os-empty-state span{font-size:var(--pf-type-meta);line-height:1.5;font-weight:var(--yhy-weight-medium)}
.os-case .os-tv-handoff .surface-handoff-crop{aspect-ratio:1800/469;border:0}
.final-preview .os-case .os-tv-handoff .surface-handoff-crop img{width:100%;height:auto;outline:0}
/* Source crop coordinates keep the complete QR code and address visible. */
@media(max-width:760px){
 .os-case .os-kicker,.os-case .os-caption{font-size:var(--pf-type-caption-mobile)}
 .os-case .os-task{padding:var(--pf-space-content-mobile)}
 .os-case .os-task>.os-kicker{inset-inline-start:var(--pf-space-paragraph)}
 .os-case .os-task br{display:none}
 .final-preview #main.os-case .os-task>p{font-size:var(--yhy-type-heading-lg-mobile)}
 .os-case .os-comparison h3{font-size:var(--yhy-heading-font-mobile)}
 .os-case .os-comparison,.os-case .os-flows{grid-template-columns:1fr}
 .os-case .os-comparison article+article{border-left:0;border-top:1px solid var(--yhy-line)}
 .os-case .os-empty-state span{font-size:var(--pf-type-caption-mobile)}
 /* Use the same closer crop for both originals on a narrow screen. The image
    itself keeps its source aspect ratio; only the visible window changes. */
 .os-case .os-tv-layouts .rv-system-crop{aspect-ratio:1080/750}
 .final-preview .os-case .os-tv-layouts .rv-system-crop img{width:177.777778%}
 .os-case .os-tv-handoff .surface-handoff-crop{aspect-ratio:530/469}
 .final-preview .os-case .os-tv-handoff .surface-handoff-crop img{width:339.6226%;left:-128.3019%;max-width:none}
}
