/* R7 native disclosure; shared complete-face geometry, exact4:3 artwork. */
.pb7-cards{--pb7c-height:max(560px,var(--pb7c-measured-height,620px));--pb7c-line:var(--p3-line,#b8bdc5);--pb7c-ink:var(--ink,#14151a);color:var(--pb7c-ink);padding-bottom:calc(64px + var(--pb7-sticky-height,0px) + env(safe-area-inset-bottom,0px))!important}
.pb7-cards .pb7c-heading{max-width:1040px;margin-bottom:24px}.pb7-cards .pb7c-heading h2{margin:0 0 20px;max-width:18ch}.pb7-cards .pb7c-heading>p:last-child{font-size:17px;line-height:1.55;max-width:64ch;margin:0}
.pb7-cards .pb7c-pills{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}.pb7-cards .pb7c-pills button{min-height:44px;padding:10px 21px;border:1px solid var(--pb7c-line);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}.pb7-cards .pb7c-pills button[aria-pressed=true]{background:#171a20;color:#f4f5f6;border-color:#171a20}
.pb7-cards .pb7c-rail{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:min(760px,calc(100% - 54px));gap:22px;max-width:100%;height:calc(var(--pb7c-height) + 18px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;align-items:start;padding:2px 2px 14px;box-sizing:border-box;touch-action:auto}
.pb7-cards .pb7c-card{position:relative;height:var(--pb7c-height);width:100%;min-width:0;border:1px solid var(--pb7c-line);border-radius:7px;background:rgba(239,241,244,.94);scroll-snap-align:start;box-sizing:border-box;isolation:isolate;scroll-margin-top:calc(12px + env(safe-area-inset-top,0px))}
.pb7-cards .pb7c-disclosure-state{position:absolute;inset:0;margin:0;padding:0;border:0;background:transparent;color:inherit}
.pb7-cards .pb7c-disclosure{position:absolute;z-index:3;right:26px;bottom:26px;display:block;width:44px;height:44px;min-height:44px;box-sizing:border-box;list-style:none;cursor:pointer;border-radius:50%;touch-action:manipulation}
.pb7-cards .pb7c-disclosure::-webkit-details-marker{display:none}.pb7-cards .pb7c-disclosure::marker{content:''}
.pb7-cards .pb7c-disclosure .pb7c-back-button{display:none}.pb7-cards .pb7c-disclosure-state[open]>.pb7c-disclosure{width:auto;min-width:84px;border-radius:999px}
.pb7-cards .pb7c-disclosure-state[open]>.pb7c-disclosure .pb7c-plus{display:none}.pb7-cards .pb7c-disclosure-state[open]>.pb7c-disclosure .pb7c-back-button{display:inline-flex}
.pb7-cards .pb7c-card:has(>.pb7c-disclosure-state[open])>.pb7c-front{display:none!important}
.pb7-cards .pb7c-face{position:absolute;inset:0;padding:26px;box-sizing:border-box;display:grid;gap:12px;background:transparent;color:inherit;pointer-events:auto}
.pb7-cards [hidden]{display:none!important}.pb7-cards .pb7c-front{grid-template-rows:auto var(--pb7c-title-height,78px) auto minmax(0,1fr) minmax(44px,auto);pointer-events:none}.pb7-cards .pb7c-label{font-size:11px;line-height:1.35;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin:0}.pb7-cards .pb7c-face h3{font-size:34px;line-height:1.08;letter-spacing:-.035em;margin:0;max-width:26ch;align-self:start}.pb7-cards .pb7c-visual{position:relative;margin:0;width:100%;height:auto;aspect-ratio:4/3;align-self:start;min-height:0;background:#dce0e5;isolation:isolate}.pb7-cards .pb7c-visual img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}.pb7-cards .pb7c-summary{font-size:17px;line-height:1.5;margin:0;max-width:57ch;align-self:start}.pb7-cards .pb7c-face-foot{display:flex;align-items:center;padding-right:62px;min-width:0}.pb7-cards .pb7c-front-note{font-size:12px;line-height:1.45;min-width:0}
.phase3.story-revision .pb7-cards .pb7c-plus{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #171a20;border-radius:50%;box-sizing:border-box;background:#171a20;color:#f4f5f6!important;font-family:inherit!important;font-size:28px!important;font-weight:400!important;line-height:1!important}
.pb7-cards .pb7c-back{grid-template-rows:auto auto minmax(0,1fr) minmax(44px,auto);z-index:2}.pb7-cards .pb7c-back h3{font-weight:600;letter-spacing:-.04em}.pb7-cards .pb7c-back-copy{display:flex;flex-direction:column;gap:18px;min-height:0;overflow:visible}.pb7-cards .pb7c-back-copy ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}.pb7-cards .pb7c-back-copy li{margin:0;padding:0}.pb7-cards .pb7c-outputs li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start}.pb7-cards .pb7c-output-number{font-size:12px;font-weight:500;line-height:1.7;color:#626b77;letter-spacing:.04em}.pb7-cards .pb7c-outputs h4{font-size:17px;line-height:1.4;font-weight:600;letter-spacing:-.015em;margin:0;color:var(--pb7c-ink)}
.pb7-cards .pb7c-inputs li{border-top:1px solid var(--pb7c-line);padding-top:12px}.pb7-cards .pb7c-inputs h4{font-size:16px;line-height:1.35;font-weight:650;letter-spacing:-.01em;margin:0 0 6px}.pb7-cards .pb7c-inputs p{font-size:16px;line-height:1.5;margin:0;color:#414750}.pb7-cards .pb7c-source-notes{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--pb7c-line)}.pb7-cards .pb7c-back-copy .pb7c-note{font-size:13px;line-height:1.5;color:#59616d;margin:0}
.pb7-cards .pb7c-back-foot{display:flex;align-items:center;min-height:44px;padding-right:96px;align-self:end}.pb7-cards .pb7c-text-button,.pb7-cards .pb7c-back-button{min-height:44px;background:transparent;color:inherit;border:0;font:inherit;font-size:13px;line-height:1.4;padding:8px 0;box-sizing:border-box;cursor:pointer}.pb7-cards .pb7c-text-button{text-decoration:underline;text-underline-offset:4px}.pb7-cards .pb7c-back-button{height:44px;min-width:84px;border:1px solid var(--pb7c-line);border-radius:999px;padding:8px 14px;gap:12px;align-items:center;justify-content:center}
.pb7-cards .pb7c-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:10px 2px 0}.pb7-cards .pb7c-controls p{font-size:12px;line-height:1.5;margin:0}.pb7-cards .pb7c-controls>div{display:flex;gap:8px}.pb7-cards .pb7c-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--pb7c-line);border-radius:50%;background:transparent;color:inherit;font:inherit;cursor:pointer}.pb7-cards .pb7c-controls button:disabled{opacity:.3;cursor:default}.pb7-cards .pb7c-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pb7-cards :is(button,summary,[tabindex]):focus-visible{outline:2px solid currentColor;outline-offset:4px}.pb7-cards .pb7c-back h3:focus{outline:0}
.pb7-cards .pb7c-dialog{max-width:min(1100px,94vw);max-height:90dvh;border:1px solid var(--pb7c-line);border-radius:7px;padding:22px;color:inherit;background:#e7e8ea}.pb7-cards .pb7c-dialog::backdrop{background:rgba(20,21,26,.76)}.pb7-cards .pb7c-dialog header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.pb7-cards .pb7c-dialog header button{min-width:44px;min-height:44px;flex-shrink:0}.pb7-cards .pb7c-dialog h3{font-size:20px;line-height:1.3;margin:0}.pb7-cards .pb7c-dialog img{display:block;width:100%;max-height:65dvh;object-fit:contain}.pb7-cards .pb7c-dialog p{font-size:13px;line-height:1.55;margin:14px 0 0}
.pb7-cards .pb7c-face>*{min-width:0;max-width:100%;box-sizing:border-box}.pb7-cards .pb7c-face :is(h3,p,li,span,strong,button){overflow-wrap:anywhere;word-break:normal;white-space:normal;min-width:0}.pb7-cards .pb7c-text-button{max-width:100%}.pb7-cards .pb7c-source-reference img{object-fit:contain}.pb7-cards .pb7c-reference-label{position:absolute;z-index:1;left:8px;right:8px;bottom:8px;font-size:11px;line-height:1.35;padding:6px 8px;background:#e7e9edf2;color:#4a5360;text-align:center;border:1px solid #b8bdc5;border-radius:3px}
@media(max-width:760px){.pb7-cards{padding-inline:16px!important;--pb7c-height:max(540px,var(--pb7c-measured-height,620px))}.pb7-cards .pb7c-heading{margin:0 6px 22px}.pb7-cards .pb7c-heading h2{font-size:39px!important;max-width:15ch;margin-bottom:16px}.pb7-cards .pb7c-heading>p:last-child{font-size:15px;line-height:1.55}.pb7-cards .pb7c-pills{margin-inline:6px}.pb7-cards .pb7c-rail{grid-auto-columns:calc(100% - 22px);gap:12px}.pb7-cards .pb7c-face{padding:20px;gap:10px}.pb7-cards .pb7c-disclosure{right:20px;bottom:20px}.pb7-cards .pb7c-face h3{font-size:28px;line-height:1.1}.pb7-cards .pb7c-label{font-size:10px}.pb7-cards .pb7c-summary{font-size:15px;line-height:1.5}.pb7-cards .pb7c-back-copy{gap:14px}.pb7-cards .pb7c-back-copy ul{grid-template-columns:1fr;gap:12px}.pb7-cards .pb7c-outputs li{grid-template-columns:20px minmax(0,1fr);gap:9px}.pb7-cards .pb7c-outputs h4{font-size:15px;line-height:1.4}.pb7-cards .pb7c-output-number{font-size:12px;line-height:1.75}.pb7-cards .pb7c-inputs li{padding-top:9px}.pb7-cards .pb7c-inputs h4{font-size:15px;margin-bottom:3px}.pb7-cards .pb7c-inputs p{font-size:15px;line-height:1.45}.pb7-cards .pb7c-source-notes{padding-top:10px;gap:6px}.pb7-cards .pb7c-back-copy .pb7c-note{font-size:12px;line-height:1.5}.pb7-cards .pb7c-front-note{font-size:11px;line-height:1.4}.pb7-cards .pb7c-controls{margin-inline:6px;padding-bottom:env(safe-area-inset-bottom,0px)}}
@media(max-width:350px){.pb7-cards .pb7c-face{padding:17px;gap:9px}.pb7-cards .pb7c-disclosure{right:17px;bottom:17px}.pb7-cards .pb7c-face h3{font-size:26px}.pb7-cards .pb7c-summary{font-size:14px}.pb7-cards .pb7c-outputs h4,.pb7-cards .pb7c-inputs h4,.pb7-cards .pb7c-inputs p{font-size:14px}.pb7-cards .pb7c-back-copy ul{gap:10px}.pb7-cards .pb7c-back-copy{gap:12px}}
@media(prefers-reduced-motion:reduce){.pb7-cards *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Business fronts preview their existing inputs instead of leaving a large empty spacer. */
.pb7-cards .pb7c-summary-wrap{align-self:start;min-width:0}.pb7-cards .pb7c-front-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;list-style:none;margin:16px 0 0;padding:0}.pb7-cards .pb7c-front-facts li{font-size:14px;line-height:1.4;margin:0;padding:9px 0 0;border-top:1px solid var(--pb7c-line);color:#414750}
@media(max-width:760px){.pb7-cards .pb7c-inputs h4,.pb7-cards .pb7c-inputs p{display:inline}.pb7-cards .pb7c-inputs h4:after{content:': '}.pb7-cards .pb7c-front-facts{gap:9px 12px;margin-top:14px}.pb7-cards .pb7c-front-facts li{font-size:13px;line-height:1.4;padding-top:8px}}

@media(max-width:760px){.pb7-cards .pb7c-inputs li{font-size:15px;line-height:1.45}}
@media(max-width:350px){.pb7-cards .pb7c-inputs li{font-size:14px;line-height:1.45}}

/* Forensic v3: rectangular native44px targets and a source-preserving image viewer. */
.pb7-cards summary.pb7c-disclosure,.pb7-cards .pb7c-disclosure-state[open]>summary.pb7c-disclosure{border-radius:0}
.pb7-cards .pb7c-dialog{width:min(1100px,94vw);height:min(900px,90dvh);max-height:90dvh;box-sizing:border-box;overflow:hidden;padding:22px}
.pb7-cards .pb7c-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px}
.pb7-cards .pb7c-dialog header{margin:0;min-width:0}.pb7-cards .pb7c-dialog h3{overflow-wrap:anywhere}
.pb7-cards .pb7c-viewer-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.pb7-cards .pb7c-viewer-tools button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--pb7c-line);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.pb7-cards .pb7c-viewer-tools button:disabled{opacity:.35;cursor:default}
.pb7-cards [data-pb7c-zoom-status]{flex-basis:100%;font-size:12px;line-height:1.45;min-height:18px}
.pb7-cards .pb7c-viewer{overflow:auto;min-height:0;min-width:0;background:#d6d9de;overscroll-behavior:contain;touch-action:auto;scrollbar-width:auto;position:relative}
.pb7-cards .pb7c-viewer-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;box-sizing:content-box}
.pb7-cards .pb7c-dialog .pb7c-viewer img{display:block;max-width:none;max-height:none;object-fit:fill;flex:none;user-select:none}
.pb7-cards .pb7c-dialog>p{font-size:13px;line-height:1.5;margin:0;max-height:6em;overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){.pb7-cards .pb7c-dialog{padding:16px;width:94vw;height:90dvh}.pb7-cards .pb7c-dialog[open]{gap:10px}.pb7-cards .pb7c-dialog h3{font-size:18px}.pb7-cards .pb7c-dialog header{gap:12px}.pb7-cards .pb7c-viewer-tools{gap:6px}.pb7-cards .pb7c-viewer-tools button{padding-inline:10px}}

.pb7-cards a.pb7c-text-button{display:inline-flex;align-items:center;min-height:44px;color:inherit}

/* At short heights or enlarged type the whole dialog scrolls; the image pane never collapses. */
.pb7-cards .pb7c-dialog{overflow:auto;overscroll-behavior:contain}
.pb7-cards .pb7c-dialog[open]{grid-template-rows:auto auto minmax(180px,1fr) auto}
.pb7-cards .pb7c-pills button:disabled{opacity:.5;cursor:default}

.pb7-cards .pb7c-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Compact business facts preserve all inputs and readable type; measurement owns the shared footprint. */
@media(max-width:760px){.pb7-cards .pb7c-inputs{gap:10px}.pb7-cards .pb7c-inputs li{padding-top:8px}.pb7-cards .pb7c-back-copy:has(.pb7c-inputs){gap:12px}}
@media(max-width:350px){.pb7-cards .pb7c-summary,.pb7-cards .pb7c-inputs li,.pb7-cards .pb7c-inputs h4,.pb7-cards .pb7c-inputs p,.pb7-cards .pb7c-outputs h4{font-size:15px}}

/* Keep Close visible when enlarged text makes the whole viewer dialog scroll. */
.pb7-cards .pb7c-dialog header{position:sticky;top:0;z-index:2;background:#e7e8ea}

/* The complete measured face owns mobile height; no inherited aesthetic floor. */
@media(max-width:760px){.pb7-cards{--pb7c-height:var(--pb7c-measured-height,620px)}}
