/* New comparison only. Existing artwork and all retained styles are unchanged. */
.step-guide-section { --guide-ink: #253744; --guide-blue: #416f9b; --guide-green: #42644f; --guide-orange: #965018; --guide-line: #cad6df; padding-block: 3rem 3.5rem; color: var(--guide-ink); container-type: inline-size; }
.guide-intro { margin-bottom: 3rem; max-width: 48rem; }
.guide-kicker { color: #416f9b; font-size: .875rem; font-weight: 650; margin: 0 0 1rem; }
.guide-intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.45; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.guide-intro-note { margin: 1rem 0 0; color: #53616d; line-height: 1.8; }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-step-row { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.45fr) minmax(0,1fr); gap: 2.25rem; padding-block: 2.75rem; border-top: 1px solid var(--guide-line); align-items: center; }
.guide-step-row > * { min-width: 0; }
.guide-step-heading { align-self: start; padding-top: .25rem; }
.guide-step-number { display: block; color: var(--guide-blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 1.25rem; }
.guide-step-number strong { font-size: 1.6rem; margin-left: .4rem; letter-spacing: 0; }
.guide-pictogram { display: block; width: 80px; height: 80px; flex-shrink: 0; margin-bottom: 1.1rem; }
.guide-step-heading h3 { font-size: 1.45rem; line-height: 1.6; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.guide-heading-note { color: #53616d; line-height: 1.8; margin: .75rem 0 0; font-size: .85rem; }
.guide-step-copy p { font-size: 1rem; line-height: 1.95; margin: 0 0 1.25rem; color: #365b7e; overflow-wrap: anywhere; }
.guide-step-copy .guide-lead { font-weight: 650; }
.guide-step-copy p:last-child { margin-bottom: 0; }
.guide-step-media { width: 100%; justify-self: center; }
.guide-step-media .feature-visual { margin: 0; max-width: 250px; margin-inline: auto; }
.guide-step-media .feature-visual figcaption { line-height: 1.7; margin-top: .75rem; font-size: .75rem; color: #53616d; }
.guide-step-media .screen-context, .guide-step-media .screen-full-scan { overflow: hidden; }
.guide-step-media .screen-full-scan { aspect-ratio: 600 / 1221; }
.guide-stage-images { display: grid; gap: 1.5rem; }
.guide-stage-images .feature-visual { max-width: none; }
.guide-result { padding: .75rem; border-radius: .75rem; border: 1px solid var(--guide-line); background: #f6f9fb; }
.guide-result--library { background: #edf3ef; border-color: #cadcd1; }
.guide-result--store { background: #fdf1e6; border-color: #ecd1ba; }
.guide-result-label { font-size: .8rem; line-height: 1.7; font-weight: 650; margin: 0 0 .75rem; }
.guide-result--library .guide-result-label { color: var(--guide-green); }
.guide-result--store .guide-result-label { color: var(--guide-orange); }
.guide-step-media .result-card-frame { padding: 0; background: transparent; }
.guide-step-media .results-attribution { margin-top: .9rem; text-align: center; }
.guide-step-media .results-attribution img { width: 62px; height: 30px; }
.guide-choices { display: grid; gap: 1.5rem; margin-top: 1.6rem; }
.guide-choice { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 1rem; align-items: start; }
.guide-choice > .guide-pictogram { width: 48px; height: 48px; margin: 0; }
.guide-choice h4, .guide-choice .action-copy h3 { font-size: 1rem; line-height: 1.75; margin: 0 0 .5rem; font-weight: 650; }
.guide-choice .card-number { display: block; font-size: .7rem; margin-bottom: .4rem; line-height: 1.7; letter-spacing: .03em; }
.guide-choice .action-copy p, .guide-choice p { font-size: .9rem; line-height: 1.9; margin-bottom: .5rem; }
.guide-choice .action-copy .fine-print { font-size: .75rem; }
.guide-choice--home h4, .guide-choice--home p { color: var(--guide-blue); }
.guide-choice--library .action-copy > * { color: var(--guide-green); }
.guide-choice--store .action-copy > * { color: var(--guide-orange); }
.guide-choice .heading-unit { display: inline; white-space: normal; overflow-wrap: anywhere; }
.guide-choice .heading-unit + .heading-unit::before { content: ' '; }
.guide-record-labels { color: #53616d !important; font-size: .8rem !important; }
.guide-service-note { font-size: .8rem; line-height: 1.9; color: #53616d; margin-top: 1.6rem; }

/* B: a real vertical rail, with screens before text on desktop. */
[data-step-guide-layout="b"] .guide-intro { margin-left: 6rem; }
[data-step-guide-layout="b"] .guide-steps { position: relative; }
[data-step-guide-layout="b"] .guide-steps::before { content: ''; position: absolute; top: 1.5rem; bottom: 5rem; left: 2.4rem; width: 1px; background: #b5c9db; }
[data-step-guide-layout="b"] .guide-step-row { grid-template-columns: minmax(0,.65fr) minmax(0,1fr) minmax(0,1.35fr); gap: 2.75rem; border-top: 0; padding-block: 1.5rem 4rem; }
[data-step-guide-layout="b"] .guide-step-heading { position: relative; background: #fff; padding-block: .5rem; }
[data-step-guide-layout="b"] .guide-step-number { background: #edf3f9; display: inline-block; padding: .35rem .6rem; border-radius: .4rem; }
[data-step-guide-layout="b"] .guide-step-copy { grid-column: 3; grid-row: 1; }
[data-step-guide-layout="b"] .guide-step-media { grid-column: 2; grid-row: 1; }
[data-step-guide-layout="b"] .guide-step-media .feature-visual { max-width: 260px; }

/* C: the screenshot is the central plate, with numbered annotations. */
[data-step-guide-layout="c"] .guide-step-row { grid-template-columns: minmax(0,.65fr) minmax(0,1.2fr) minmax(0,1.25fr); gap: 3rem; padding-block: 3rem; }
[data-step-guide-layout="c"] .guide-step-copy { grid-column: 3; grid-row: 1; position: relative; }
[data-step-guide-layout="c"] .guide-step-media { grid-column: 2; grid-row: 1; }
[data-step-guide-layout="c"] .guide-step-media .feature-visual { max-width: 300px; }
.guide-copy-pin, .guide-image-pin { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid #8798a6; border-radius: 50%; color: #253744; background: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.guide-copy-pin { margin-right: .5rem; vertical-align: .1em; }
.guide-image-pin { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px #ffffffd9; }
.guide-step-search .guide-image-pin--1 { left: 48%; top: 14%; }
.guide-step-search .guide-image-pin--2 { left: 84%; top: 40%; }
.guide-step-take .guide-image-pin { width: 20px; height: 20px; font-size: 11px; }
.guide-result--library .guide-image-pin--1 { left: 35%; top: 85%; }
.guide-result--store .guide-image-pin--2 { left: 50%; top: 85%; }
.guide-step-record .guide-image-pin--1 { left: 70%; top: 32%; }
[data-step-guide-layout="c"] .guide-callout { position: relative; }
[data-step-guide-layout="c"] .guide-callout::before { content: ''; position: absolute; width: 2.25rem; height: 1px; background: #a0acb6; right: calc(100% + .35rem); top: 1rem; }
[data-step-guide-layout="c"] .guide-choice > div { position: relative; }
[data-step-guide-layout="c"] .guide-choice--library > div::before, [data-step-guide-layout="c"] .guide-choice--store > div::before { content: ''; position: absolute; width: 2.25rem; height: 1px; background: #a0acb6; right: calc(100% + 4rem); top: 1rem; }

/* D: one unified plate, with consistent compact rows and shared gutters. */
[data-step-guide-layout="d"] .guide-intro { margin-bottom: 2rem; }
[data-step-guide-layout="d"] .guide-steps { border: 1px solid #ccd9e4; border-radius: 1rem; overflow: hidden; background: #f8fafc; }
[data-step-guide-layout="d"] .guide-step-row { grid-template-columns: minmax(0,.85fr) minmax(0,1.45fr) minmax(0,.9fr); gap: 2rem; padding: 2rem; border-top: 1px solid #ccd9e4; }
[data-step-guide-layout="d"] .guide-step-row:first-child { border-top: 0; }
[data-step-guide-layout="d"] .guide-step-heading h3 { font-size: 1.25rem; }
[data-step-guide-layout="d"] .guide-pictogram { width: 64px; height: 64px; }
[data-step-guide-layout="d"] .guide-step-media .feature-visual { max-width: 185px; }
[data-step-guide-layout="d"] .guide-stage-images .feature-visual { max-width: none; }
[data-step-guide-layout="d"] .guide-step-copy p { font-size: .95rem; }
[data-step-guide-layout="d"] .guide-choice > .guide-pictogram { width: 48px; height: 48px; }

/* Screenshot buttons retain the inner image layout; all affordances are shared. */
button.image-zoom-trigger { display: block; width: 100%; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; padding: 0; margin: 0; cursor: zoom-in; touch-action: manipulation; border-radius: .7rem; }
button.image-zoom-trigger > div { margin: 0; }
button.image-zoom-trigger:focus-visible { outline: 3px solid #416f9b; outline-offset: 5px; }
button.image-zoom-trigger:active { outline: 2px solid #416f9b; outline-offset: 3px; }
.matrix-hero-image .image-zoom-trigger { border-radius: 1rem; }
.refinement-screen .image-zoom-trigger { max-width: 560px; }
body.image-zoom-open { position: fixed; width: 100%; overflow: hidden; }
#image-zoom-dialog { width: min(94vw, 1050px); max-width: none; max-height: 94dvh; padding: 0; border: 1px solid #ccd6df; border-radius: .8rem; background: #fff; color: #253744; overflow: auto; }
#image-zoom-dialog::backdrop { background: rgb(13 25 36 / 78%); }
.image-zoom-surface { display: flex; flex-direction: column; max-height: 94dvh; }
.image-zoom-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid #d4dfe7; flex: none; }
.image-zoom-toolbar h2 { margin: 0; font-size: 1rem; line-height: 1.6; }
.image-zoom-close { display: inline-flex; gap: .7rem; align-items: center; justify-content: center; padding: .5rem .75rem; min-width: 44px; min-height: 44px; border: 1px solid #aebfcd; border-radius: .4rem; font: inherit; font-size: .85rem; font-weight: 650; background: #edf3f9; color: #253744; cursor: pointer; flex: none; }
.image-zoom-close:focus-visible { outline: 3px solid #416f9b; outline-offset: 2px; }
.image-zoom-close:active { background: #d5e4f1; }
.image-zoom-viewport { min-height: 0; overflow: auto; background: #f4f6f8; padding: .75rem; text-align: center; }
.image-zoom-image { display: block; width: auto; max-width: 100%; max-height: calc(94dvh - 9rem); object-fit: contain; height: auto; margin: auto; }
.image-zoom-error { margin: 2rem auto; max-width: 32rem; padding: 1rem; font-size: 1rem; line-height: 1.8; }
.image-zoom-image[hidden], .image-zoom-error[hidden] { display: none; }
#image-zoom-help { margin: 0; padding: .55rem 1rem; font-size: .75rem; line-height: 1.6; color: #53616d; flex: none; }
.guide-comparison-page .wrap { padding-block: 3rem; max-width: 1100px; margin: auto; }
.guide-comparison-page h1 { font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.5; }
.guide-comparison-page p { line-height: 1.9; }
.guide-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin-block: 2rem; }
.guide-comparison-grid a { display: block; padding: 2rem; border: 1px solid #c9d8e5; border-radius: .75rem; background: #f8fafc; color: #253744; min-width: 0; }
.guide-comparison-grid a:focus-visible { outline: 3px solid #416f9b; outline-offset: 4px; }
.guide-comparison-grid h2 { font-size: 1.2rem; line-height: 1.65; margin: .5rem 0; }
.guide-comparison-letter { font-size: 2rem; color: #416f9b; font-weight: 700; }

@media (max-width: 1000px) {
  .guide-step-row, [data-step-guide-layout="b"] .guide-step-row, [data-step-guide-layout="c"] .guide-step-row, [data-step-guide-layout="d"] .guide-step-row { grid-template-columns: minmax(0,1fr); gap: 1.6rem; }
  .guide-step-copy, .guide-step-media, [data-step-guide-layout="b"] .guide-step-copy, [data-step-guide-layout="b"] .guide-step-media, [data-step-guide-layout="c"] .guide-step-copy, [data-step-guide-layout="c"] .guide-step-media { grid-column: auto; grid-row: auto; }
  .guide-step-heading { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 1rem; align-items: center; padding: 0; }
  .guide-step-number { grid-column: 1 / -1; margin-bottom: .75rem; }
  .guide-step-heading .guide-pictogram { width: 64px; height: 64px; margin: 0; }
  .guide-step-heading h3 { font-size: 1.45rem; }
  .guide-step-take .guide-step-heading h3 { grid-column: 1 / -1; }
  .guide-heading-note { grid-column: 1 / -1; }
  .guide-step-media .feature-visual, [data-step-guide-layout="b"] .guide-step-media .feature-visual, [data-step-guide-layout="c"] .guide-step-media .feature-visual, [data-step-guide-layout="d"] .guide-step-media .feature-visual { max-width: 260px; }
  .guide-stage-images .feature-visual, [data-step-guide-layout] .guide-stage-images .feature-visual { max-width: none; }
  .guide-stage-images { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-step-guide-layout="b"] .guide-intro { margin-left: 0; }
  [data-step-guide-layout="b"] .guide-steps::before, [data-step-guide-layout="c"] .guide-callout::before, [data-step-guide-layout="c"] .guide-choice > div::before { display: none; }
}
@media (max-width: 580px) {
  .step-guide-section { padding-block: 2rem; }
  .guide-intro { margin-bottom: 2rem; }
  .guide-step-row, [data-step-guide-layout="c"] .guide-step-row { padding-block: 2rem; }
  .guide-stage-images { grid-template-columns: minmax(0,1fr); }
  [data-step-guide-layout="d"] .guide-step-row { padding: min(1.1rem, 20px); }
  .guide-comparison-grid { grid-template-columns: minmax(0,1fr); }
  .guide-comparison-grid a { padding: 1.5rem; }
  .image-zoom-toolbar { flex-wrap: wrap; }
  .image-zoom-toolbar h2 { flex: 1; }
}
html[data-text-scale="2"] .guide-step-row, html[data-text-scale="3"] .guide-step-row { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
html[data-text-scale="2"] .guide-step-copy, html[data-text-scale="3"] .guide-step-copy, html[data-text-scale="2"] .guide-step-media, html[data-text-scale="3"] .guide-step-media { grid-column: auto; grid-row: auto; }
html[data-text-scale="2"] .guide-steps::before, html[data-text-scale="3"] .guide-steps::before, html[data-text-scale="2"] .guide-callout::before, html[data-text-scale="3"] .guide-callout::before, html[data-text-scale="2"] .guide-choice > div::before, html[data-text-scale="3"] .guide-choice > div::before { display: none; }
html[data-text-scale="2"] .guide-intro, html[data-text-scale="3"] .guide-intro { margin-left: 0; }
html[data-text-scale="2"] .guide-stage-images, html[data-text-scale="3"] .guide-stage-images, html[data-text-scale="2"] .guide-comparison-grid, html[data-text-scale="3"] .guide-comparison-grid { grid-template-columns: minmax(0,1fr); }
html[data-text-scale="2"] .guide-choice, html[data-text-scale="3"] .guide-choice { grid-template-columns: minmax(0,1fr); }
/* em uses this section's actual text size, so text-only enlargement reflows
   without the preview harness's test attributes. */
@container (max-width: 62.5em) {
  .guide-step-row, [data-step-guide-layout] .guide-step-row { grid-template-columns: minmax(0,1fr); gap: 1.6rem; }
  .guide-step-copy, .guide-step-media, [data-step-guide-layout] .guide-step-copy, [data-step-guide-layout] .guide-step-media { grid-column: auto; grid-row: auto; }
  .guide-step-heading { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 1rem; align-items: center; padding: 0; }
  .guide-step-number { grid-column: 1 / -1; margin-bottom: .75rem; }
  .guide-step-heading .guide-pictogram { width: 64px; height: 64px; margin: 0; }
  .guide-step-take .guide-step-heading h3, .guide-heading-note { grid-column: 1 / -1; }
  .guide-step-media .feature-visual, [data-step-guide-layout] .guide-step-media .feature-visual { max-width: 260px; }
  .guide-stage-images .feature-visual, [data-step-guide-layout] .guide-stage-images .feature-visual { max-width: none; }
  [data-step-guide-layout="b"] .guide-intro { margin-left: 0; }
  [data-step-guide-layout="b"] .guide-steps::before, [data-step-guide-layout="c"] .guide-callout::before, [data-step-guide-layout="c"] .guide-choice > div::before { display: none; }
}
@container (max-width: 30em) {
  .guide-choice, .guide-stage-images { grid-template-columns: minmax(0,1fr); }
  [data-step-guide-layout="d"] .guide-step-row { padding: 20px; }
}
@media (prefers-contrast: more) {
  .guide-step-row, [data-step-guide-layout="d"] .guide-steps, .guide-result { border-color: #73818c; }
  .guide-service-note, .guide-step-media .feature-visual figcaption { color: #303d49; }
}
