/* All copy and the completed drawing remain visible without JavaScript. */
.pid-reveal-heading{position:relative}
.pid-reveal-rule{position:absolute;display:block;width:36px;height:2px;left:0;top:-13px;background:var(--red);transform-origin:left;pointer-events:none}
.pid-story{border-bottom:1px solid var(--line);scroll-margin-top:112px}
.pid-story .section-heading{max-width:720px}
.pid-story-layout{position:relative}
.pid-story-display{max-width:720px;margin:0 auto 28px;min-width:0}
.pid-story-steps{list-style:none;margin:0;padding:0;display:grid;gap:28px}
.pid-story-step{margin:0;padding:26px;border:1px solid var(--line);border-radius:10px;background:var(--pale)}
.pid-story-number{display:inline-block;font:13px monospace;color:var(--red);margin-bottom:5px}
.pid-story-step h3{margin:8px 0 14px;font-size:24px;line-height:1.25}
.pid-story-step p{color:var(--muted);font-size:16px}
.pid-story-step .pid-story-detail{font-size:13px;margin:0}
.pid-story-link{display:inline-block;margin-top:24px;font-size:14px;font-weight:700;text-underline-offset:4px}
.pid-story-frame{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 16px 45px #0b2d4a0a}
.pid-story-canvas{background:#fff;overflow:hidden}
.pid-standard-panel{min-width:0;background:#fff}
.pid-standard-change{display:flex;align-items:center;justify-content:center;gap:14px;padding:18px 12px 4px;font:12px monospace;letter-spacing:.4px;color:#687d8b}
.pid-standard-change strong{font-weight:700;color:var(--navy);background:#edf3f7;border:1px solid #d6e2e9;border-radius:4px;padding:6px 9px}
.pid-standard-sheet{display:block;width:100%;height:auto}
.pid-story-change{transition:opacity .32s ease}
.pid-title-old,.pid-tag-old,.pid-style-old,.pid-layers-old{opacity:0}
.pid-title-new,.pid-tag-new,.pid-style-new,.pid-layers-new{opacity:1}
[data-story-state="-1"] .pid-title-old,[data-story-state="-1"] .pid-tag-old,[data-story-state="0"] .pid-tag-old,
[data-story-state="-1"] .pid-style-old,[data-story-state="0"] .pid-style-old,[data-story-state="1"] .pid-style-old,
[data-story-state="-1"] .pid-layers-old,[data-story-state="0"] .pid-layers-old,[data-story-state="1"] .pid-layers-old{opacity:1}
[data-story-state="-1"] .pid-title-new,[data-story-state="-1"] .pid-tag-new,[data-story-state="0"] .pid-tag-new,
[data-story-state="-1"] .pid-style-new,[data-story-state="0"] .pid-style-new,[data-story-state="1"] .pid-style-new,
[data-story-state="-1"] .pid-layers-new,[data-story-state="0"] .pid-layers-new,[data-story-state="1"] .pid-layers-new{opacity:0}
.pid-drawing-pipe{transition:stroke .32s ease}
.pid-story-frame:not([data-story-state="2"]) .pid-drawing-pipe{stroke:#516674}
.pid-story-focus{opacity:0;stroke-dasharray:1;stroke-dashoffset:1;transition:opacity .2s ease,stroke-dashoffset .55s ease}
[data-story-state="0"] .pid-story-focus-0,[data-story-state="1"] .pid-story-focus-1,[data-story-state="2"] .pid-story-focus-2{opacity:1;stroke-dashoffset:0}
.pid-story-frame[data-story-state="2"] .pid-standard-change strong{background:#edf7f3;color:#235e50;border-color:#bbdcd0}
.pid-story-readout{display:flex;align-items:center;gap:10px;padding:16px 18px;font-size:12px;font-weight:650}
.pid-story-dot{width:7px;height:7px;flex:0 0 7px;background:var(--red);border-radius:50%}
.pid-story-meter{height:2px;background:var(--line);width:90px;margin-left:auto;overflow:hidden}
.pid-story-meter i{display:block;width:100%;height:100%;background:var(--red);transform:scaleX(1);transform-origin:left;transition:transform .4s ease}
[data-story-state="-1"] .pid-story-meter i{transform:scaleX(0)}
[data-story-state="0"] .pid-story-meter i{transform:scaleX(.3333)}
[data-story-state="1"] .pid-story-meter i{transform:scaleX(.6667)}
.pid-story-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.pid-story-controls[hidden]{display:none}
.pid-story-controls button{appearance:none;min-height:44px;padding:9px 6px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--navy);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
.pid-story-controls button[aria-pressed="true"]{color:#a62031;border-color:#cd7480;background:#fff5f6}
.pid-story-controls button:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.pid-story-resetting *{transition:none!important}
@media(min-width:901px) and (min-height:760px) and (prefers-reduced-motion:no-preference){
    .pid-story-scroll .pid-story-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:64px;align-items:start}
    .pid-story-scroll .pid-story-display{position:sticky;top:120px;margin:0;width:100%}
    .admin-bar .pid-story-scroll .pid-story-display{top:152px}
    .pid-story-scroll .pid-story-steps{display:block;padding-bottom:220px}
    .pid-story-scroll .pid-story-step{display:flex;align-items:center;min-height:310px;border:0;border-left:2px solid var(--line);border-radius:0;padding:24px 0 24px 26px;background:transparent;transition:border-color .4s ease}
    .pid-story-scroll .pid-story-step.is-current{border-left-color:var(--red)}
    .pid-story-scroll .pid-story-copy{max-width:355px}
    .pid-story-scroll .pid-story-step h3{font-size:27px}
    .pid-story-scroll .pid-story-link{margin-top:0}
}
@media(max-width:520px){
    .pid-story-step{padding:20px}
    .pid-story-step h3{font-size:22px}
    .pid-story-step p{font-size:15px}
    .pid-story-step .pid-story-detail{font-size:12px}
    .pid-standard-change{font-size:10px;letter-spacing:0;gap:9px;padding-top:14px}
    .pid-standard-change strong{padding:5px 7px}
    .pid-story .drawing-top{font-size:9px;padding:14px 12px;gap:10px}
    .pid-story-readout{padding:12px;font-size:11px}
    .pid-story-meter{width:60px}
}
@media(prefers-reduced-motion:reduce){
    .pid-story-change,.pid-story-focus,.pid-drawing-pipe,.pid-story-meter i{transition:none}
}
@media print{
    .pid-story-display{position:static!important;max-width:620px}
    .pid-story-layout,.pid-story-steps{display:block!important}
    .pid-story-step{break-inside:avoid;min-height:0!important}
    .pid-story-controls,.pid-reveal-rule,.pid-story-focus{display:none!important}
    .pid-title-old,.pid-tag-old,.pid-style-old,.pid-layers-old{opacity:0!important}
    .pid-title-new,.pid-tag-new,.pid-style-new,.pid-layers-new{opacity:1!important}
}
