/* BidEquity redesign: the story pop-up (BEP-2310, 4 November 2026; contract C1).
   story-popup.js builds the dialog. It fills the window less a 24px margin, in the stage's navy frame
   (a navy-700 bezel, 10px outside and 4px inside, as the homepage draws it), with no shadow. */
.story-pop{box-sizing:border-box;width:calc(100% - 48px);height:calc(100% - 48px);max-width:none;max-height:none;margin:auto;padding:8px;border:0;border-radius:10px;background:var(--be-navy-700);color:var(--be-sand);overflow:hidden}
.story-pop[open]{display:flex;flex-direction:column}
.story-pop::backdrop{background:var(--be-navy-900);opacity:.85}
/* the bar holds the Close button; the dialog's title (the preview link's name) is for screen readers, since the
   story's own title is the first line inside the frame */
.story-pop-bar{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 0 8px}
.story-pop-title{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.story-pop-close{flex:none;min-height:44px;padding:8px 20px;border:1.5px solid var(--be-sand);border-radius:6px;background:transparent;color:var(--be-sand);font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer;transition:transform 500ms var(--e)}
.story-pop-close:hover{background:var(--be-navy)}
.story-pop-close:active{transform:scale(.98);transition-duration:160ms}
.story-pop-close:focus-visible{outline:2px solid var(--be-bright-aqua);outline-offset:3px}
.story-pop-frame{display:block;flex:1;width:100%;min-height:0;border:0;border-radius:4px;background:var(--be-navy)}
/* the page behind does not scroll while the pop-up is open */
html.story-pop-open,html.story-pop-open body{overflow:hidden}
@media (prefers-reduced-motion:reduce){
  .story-pop-close{transition:none}
}
