/* OGAPLE Sogong Playground – story event & 3 popups; scoped to additions */
.og-story-home{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(280px,.83fr);gap:16px;width:100%;min-width:0}
.og-story-card{border:1px solid #dee9fc;background:#fff;border-radius:23px;box-shadow:0 16px 40px rgba(21,58,119,.065);padding:24px;position:relative;overflow:hidden;min-width:0}
.og-story-card.og-story-feature{background:linear-gradient(116deg,#f2f7ff 0%,#fff 70%)}
.og-story-card.og-story-feature:after{content:'✦';position:absolute;right:-22px;top:-34px;font-size:178px;color:#e4efff;opacity:.8;pointer-events:none}
.og-story-card h3{font-size:23px;color:#10213e;letter-spacing:-.9px;margin:8px 0 9px;position:relative;z-index:1}
.og-story-card p{font-size:14px;color:#5a6c89;line-height:1.65;font-weight:700;margin:0 0 14px;position:relative;z-index:1}
.og-story-kicker{font-size:11px;font-weight:950;color:#145bea;letter-spacing:1px;position:relative;z-index:1}
.og-story-pill{display:inline-flex;border-radius:999px;color:#0f51c8;background:#e7f0ff;padding:6px 10px;font-size:11px;font-weight:900}
.og-story-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;position:relative;z-index:1}
.og-story-btn{appearance:none;border:1px solid #d1dffc;border-radius:12px;padding:11px 15px;min-height:42px;background:#fff;color:#174fbf;font-size:13px;font-weight:900;cursor:pointer;text-decoration:none}
.og-story-btn.primary{color:#fff;background:#1557dd;border-color:#1557dd}
.og-story-btn:focus-visible{outline:3px solid #91b6ff;outline-offset:2px}
.og-story-weekly{display:grid;gap:12px}
.og-story-mission{border-radius:15px;background:#f5f8fe;border:1px solid #e5edfb;padding:12px 14px;color:#263e68;font-size:14px;font-weight:800;line-height:1.6}
.og-story-featured-meta{font-size:12px;color:#4b6288;margin:8px 0;line-height:1.6}
.og-story-featured-phone,.og-story-featured-addr{display:block;overflow-wrap:anywhere;color:#3e5481;font-size:12px;margin:4px 0}
.og-story-event-view{background:#f4f7fe;min-height:calc(100vh - 135px)}
.og-story-container{max-width:1280px;margin:auto;padding:30px 22px 85px}
.og-story-event-title{font-size:clamp(29px,4vw,43px);letter-spacing:-1.5px;color:#10213e;margin:8px 0 10px}
.og-story-event-lead{font-size:15px;line-height:1.8;color:#63738d;max-width:760px;margin:0 0 24px}
.og-story-event-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.og-story-form-card,.og-story-side-card{background:#fff;border:1px solid #e3eafa;border-radius:23px;padding:24px;box-shadow:0 12px 34px rgba(22,53,106,.05);min-width:0}
.og-story-form-card h2{margin:0 0 7px;color:#132446;font-size:23px}
.og-story-form-card>p,.og-story-side-card>p{color:#6a7890;line-height:1.6;font-size:13px;margin:0 0 16px}
.og-story-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.og-story-tab{border:1px solid #dee7f8;background:#fff;border-radius:11px;padding:11px 18px;font-size:14px;color:#60728f;font-weight:900;cursor:pointer}
.og-story-tab.active{background:#1559dd;border-color:#1559dd;color:#fff}
.og-story-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.og-story-field{display:grid;gap:7px;color:#304360;font-size:13px;font-weight:900}
.og-story-field.full{grid-column:1/-1}
.og-story-address-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.og-story-address-row .og-story-btn{white-space:nowrap}
#ogStoryAddressStatus:empty{display:none}
.og-story-address-dialog{position:fixed;inset:0;width:min(520px,96vw);height:min(620px,90vh);height:min(620px,90dvh);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #d7e1f2;border-radius:14px;color:#132446;background:#fff;overflow:hidden}
.og-story-address-dialog[open]{display:flex;flex-direction:column}.og-story-address-dialog::backdrop{background:rgba(9,19,38,.58)}
.og-story-address-dialog header{position:static;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;border-bottom:1px solid #d7e1f2}.og-story-address-dialog header h2{margin:0;font-size:18px}
#ogStoryAddressMap{flex:1;min-height:0;width:100%}#ogStoryAddressMap p{padding:12px 16px}
.og-story-field input,.og-story-field textarea,.og-story-field select{width:100%;border:1px solid #d7e1f2;border-radius:11px;background:#fff;color:#1d2d48;padding:12px 13px;font:inherit;font-weight:600;min-height:44px}
.og-story-field textarea{height:170px;resize:vertical;line-height:1.6}
.og-story-field input:focus,.og-story-field textarea:focus{outline:2px solid #a9c5ff;outline-offset:1px}
.og-story-consent{background:#f7faff;border:1px solid #dce8fa;border-radius:15px;padding:14px;margin-top:14px;line-height:1.7;color:#3e4d68;font-size:13px}
.og-story-consent strong{display:block;color:#193052;margin-bottom:4px}
.og-story-consent label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-weight:800}
.og-story-consent input{width:18px;height:18px;flex:none;margin-top:4px;accent-color:#1359dc}
.og-story-consent small{display:block;color:#61738f;margin:7px 0 0 28px;font-size:12px;line-height:1.65}
.og-story-result{padding:13px 14px;border-radius:13px;font-size:13px;font-weight:850;line-height:1.6;margin-top:14px;background:#eff5ff;color:#214b96;white-space:pre-wrap}
.og-story-result.error{background:#fff0f0;color:#aa2630}
.og-story-event-view [hidden]{display:none!important}
.og-story-login-gate{padding:18px 0}
.og-story-login-gate p{margin:0 0 12px}
#ogStoryLegacy{margin-top:20px;border-top:1px solid #dae7e2;padding-top:16px}
#ogStoryLegacy summary{font-weight:700;cursor:pointer}
.og-story-mine-row{padding:14px 0;border-bottom:1px solid #dae7e2;overflow-wrap:anywhere}
.og-story-mine-row h3,.og-story-mine-row p{margin:0 0 5px}
.og-story-mine-row button{display:block;margin-top:10px}
.og-story-panel[hidden],.og-story-result[hidden],.og-popup-overlay[hidden]{display:none!important}
.og-story-help-list{padding-left:18px;margin:12px 0;color:#465977;font-size:13px;line-height:1.85}
.og-story-pub-card{background:#f5f8ff;border:1px solid #e2eafd;border-radius:16px;padding:16px;margin-top:12px;overflow-wrap:anywhere}
.og-story-pub-card h4{margin:0 0 8px;color:#15376e;font-size:17px}
.og-story-pub-card p{font-size:13px;color:#425573;line-height:1.75;margin:8px 0;white-space:pre-line}
.og-story-pub-card a{color:#1d59c4;text-decoration:underline}
.og-story-notice{padding:12px 14px;border:1px solid #ffe3b3;background:#fffaf0;border-radius:12px;font-size:12px;color:#715322;line-height:1.65}
.og-popup-overlay{position:fixed;inset:0;z-index:5000;background:rgba(14,27,49,.62);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.og-popup-wrap{width:min(1080px,100%);max-height:min(95vh,880px);overflow:auto;background:transparent}
.og-popup-heading{display:flex;justify-content:space-between;align-items:center;color:#fff;margin-bottom:12px;gap:12px}
.og-popup-heading strong{font-size:16px}
.og-popup-close-all{border:1px solid rgba(255,255,255,.4);color:#fff;background:transparent;padding:8px 13px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:900}
.og-popup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.og-popup-item{background:#fff;border-radius:20px;overflow:hidden;border:1px solid #e7edfa;box-shadow:0 22px 60px rgba(0,0,0,.15);min-width:0;display:flex;flex-direction:column}
.og-popup-content{min-height:235px;padding:22px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(130deg,#e5f0ff,#fff);color:#152946;border:0;text-align:left;width:100%}
.og-popup-item:nth-child(2) .og-popup-content{background:linear-gradient(130deg,#dbeaff,#f7fbff)}
.og-popup-item:nth-child(3) .og-popup-content{background:linear-gradient(130deg,#fff4dd,#fff)}
.og-popup-content .minor{font-size:11px;letter-spacing:1.3px;font-weight:950;color:#2360c7}
.og-popup-content h3{font-size:24px;letter-spacing:-1.1px;line-height:1.28;margin:12px 0;color:#102e68}
.og-popup-content p{font-size:13px;line-height:1.65;color:#506382;margin:0 0 18px}
.og-popup-cta{margin-top:auto;border-radius:10px;background:#1656d4;color:#fff;padding:9px 13px;font-size:12px;font-weight:900}
.og-popup-actions{display:flex;gap:8px;padding:10px;justify-content:space-between}
.og-popup-actions button{border:1px solid #e1e8f5;background:#fff;border-radius:9px;padding:9px 11px;font-weight:850;font-size:12px;color:#425576;cursor:pointer;flex:1}
.og-story-event-check-link{display:flex;align-items:center;justify-content:space-between;border:1px solid #dae7fa;background:#f7faff;border-radius:14px;padding:14px;gap:10px;margin:16px 0 4px}
.og-story-event-check-link b{color:#19468a;font-size:14px}
.og-story-home-story{font-size:12px;color:#3b587c;line-height:1.55;white-space:pre-line}
@media(max-width:1060px){.og-popup-grid{grid-template-columns:1fr;max-width:520px;margin:auto}.og-popup-content{min-height:150px}.og-story-event-grid{grid-template-columns:1fr}.og-story-home{grid-template-columns:1fr}}
@media(max-width:980px){#home .og-story-home{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:12px}.og-story-container{width:calc(100% - 28px);padding:23px 0 60px}.og-story-card{padding:18px}.og-story-form-card,.og-story-side-card{padding:18px}.og-story-field-grid{grid-template-columns:1fr}.og-story-field{grid-column:1/-1}.og-popup-overlay{padding:12px}.og-popup-wrap{max-height:94vh}.og-popup-content h3{font-size:20px}.og-story-event-grid{grid-template-columns:1fr}}
/* Final visual alignment and compact mobile swipe treatment */
#home .og-story-btn.primary{background:#1557dd!important;color:#fff!important;border-color:#1557dd!important}
.og-popup-mobile-hint{display:none;font-size:11px;color:#eaf1ff}
@media(max-width:650px){
 .og-popup-heading{flex-wrap:wrap;gap:6px}
 .og-popup-heading strong{font-size:14px}
 .og-popup-mobile-hint{display:block;flex-basis:100%;order:3}
 .og-popup-grid{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain;padding-bottom:10px}
 .og-popup-item{flex:0 0 100%;scroll-snap-align:start}
 .og-popup-content{min-height:245px}
}


/* =======================================================
   V7 poster notices: single full-size illustrated popup
   Component-scoped: no changes to homepage menus or auth.
   ======================================================= */
.og-popup-overlay.og-popup-poster-mode{z-index:5000;background:rgba(12,22,42,.68);padding:18px;align-items:center;justify-content:center;overflow:hidden}
.og-popup-poster-mode .og-popup-wrap{width:min(600px,100%);height:auto;max-height:calc(100dvh - 36px);display:grid;grid-template-rows:62px minmax(0,1fr) 38px 54px;background:#fff;border-radius:5px;overflow:hidden;box-shadow:0 28px 84px rgba(5,19,44,.4);border:1px solid rgba(255,255,255,.45)}
.og-popup-poster-mode .og-popup-heading{position:relative;margin:0;padding:0 24px;display:flex;align-items:center;justify-content:center;min-height:62px;background:linear-gradient(135deg,#28436e,#1e3155);color:#fff;border-radius:0}
.og-popup-poster-mode .og-popup-heading strong{font-size:23px;letter-spacing:-.7px;font-weight:950;line-height:1.2}
.og-popup-poster-mode .og-popup-close-all{position:absolute;right:12px;top:7px;display:grid;place-items:center;border:0;box-shadow:none;background:transparent;color:#fff;font-weight:400;font-size:38px;line-height:1;padding:0;width:48px;height:48px;min-height:0;border-radius:7px}
.og-popup-poster-mode .og-popup-close-all:hover{background:rgba(255,255,255,.13)}
.og-popup-poster-mode .og-popup-grid{display:block!important;min-height:0;max-width:none;margin:0;overflow-y:auto!important;overflow-x:hidden!important;scroll-snap-type:none!important;scrollbar-width:thin;overscroll-behavior:contain;padding:0!important;background:#fff}
.og-popup-poster-mode .og-popup-item{display:flex;flex-direction:column;min-height:0;max-width:100%;min-width:0;flex:none!important;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:visible}
.og-popup-poster-mode .og-popup-item[hidden]{display:none!important}
.og-popup-poster-mode .og-popup-poster-link{padding:0;margin:0;background:transparent;border:0;display:block;width:100%;height:auto;text-align:left;cursor:pointer}
.og-popup-poster-mode .og-popup-poster-link img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.og-popup-poster-mode .og-popup-live-actions{display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(#fff,#f0f7ff);padding:15px 21px 19px}
.og-popup-poster-mode .og-popup-main-cta,.og-popup-poster-mode .og-popup-second-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:0;width:min(360px,100%);min-height:54px;border-radius:999px;border:2px solid #1554c9;padding:12px 18px;font-size:19px;font-weight:950;letter-spacing:-.4px;line-height:1.25;cursor:pointer;box-shadow:0 9px 18px rgba(17,73,172,.15);background:linear-gradient(180deg,#1286eb,#0740bf);color:#fff}
.og-popup-poster-mode .og-popup-live-actions.two .og-popup-main-cta,.og-popup-poster-mode .og-popup-live-actions.two .og-popup-second-cta{width:50%;font-size:16px;min-height:53px}
.og-popup-poster-mode .og-popup-second-cta{background:#fff;color:#1248b5;box-shadow:none}
.og-popup-poster-mode .og-popup-pager{display:flex;justify-content:center;align-items:center;gap:12px;height:38px;border-top:1px solid #eaf0fa;background:#f7faff;color:#607391;font-size:13px;font-weight:900}
.og-popup-poster-mode .og-popup-pager button{min-width:44px;min-height:32px;border:0;background:transparent;color:#1750bb;font-size:25px;cursor:pointer;line-height:1}
.og-popup-poster-mode .og-popup-pager button:disabled{opacity:.35;cursor:default}
.og-popup-poster-mode .og-popup-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 20px;min-height:54px;background:#f3f4f7;border-top:1px solid #e8eaf0}
.og-popup-poster-mode .og-popup-today-label{display:flex;align-items:center;gap:9px;color:#374151;font-size:14px;font-weight:750;cursor:pointer}
.og-popup-poster-mode .og-popup-today-label input{width:19px;height:19px;margin:0;accent-color:#1854d2;flex:none}
.og-popup-poster-mode .og-popup-close-current{border:0;background:transparent;color:#333d4f;font-size:15px;font-weight:850;padding:10px 12px;cursor:pointer}
.og-popup-poster-mode button:focus-visible,.og-popup-poster-mode input:focus-visible{outline:3px solid #febf4b;outline-offset:2px}
body.og-story-modal-open{overflow:hidden}
@media(max-width:600px){
 .og-popup-overlay.og-popup-poster-mode{padding:8px!important}
 .og-popup-poster-mode .og-popup-wrap{width:100%;max-height:calc(100dvh - 16px);grid-template-rows:51px minmax(0,1fr) 36px 51px}
 .og-popup-poster-mode .og-popup-heading{min-height:51px;padding:0 52px}
 .og-popup-poster-mode .og-popup-heading strong{font-size:19px}
 .og-popup-poster-mode .og-popup-close-all{right:6px;top:3px;font-size:33px;width:44px;height:44px}
 .og-popup-poster-mode .og-popup-live-actions{padding:11px 12px 15px;gap:7px}
 .og-popup-poster-mode .og-popup-main-cta,.og-popup-poster-mode .og-popup-second-cta{min-height:45px;font-size:15px;padding:9px 10px}
 .og-popup-poster-mode .og-popup-live-actions.two .og-popup-main-cta,.og-popup-poster-mode .og-popup-live-actions.two .og-popup-second-cta{font-size:13px;min-height:44px}
 .og-popup-poster-mode .og-popup-bottom{padding:0 12px;min-height:51px}
 .og-popup-poster-mode .og-popup-today-label{font-size:13px}
 .og-popup-poster-mode .og-popup-close-current{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.og-popup-poster-mode *{scroll-behavior:auto!important;animation:none!important}}

/* V7 polish: keep action buttons visible while scrolling the large poster */
.og-popup-poster-mode .og-popup-wrap{grid-template-rows:62px minmax(0,1fr) auto 38px 54px}
.og-popup-poster-mode .og-popup-global-actions{background:#f6f9ff;border-top:1px solid #e6edf9;min-height:0}
.og-popup-poster-mode .og-popup-global-actions [hidden]{display:none!important}
.og-popup-poster-mode .og-popup-global-actions .og-popup-live-actions{padding:10px 16px 12px}
.og-popup-poster-mode .og-popup-main-cta,.og-popup-poster-mode .og-popup-second-cta{min-height:47px;font-size:16px}
.og-popup-poster-mode .og-popup-live-actions.two .og-popup-main-cta,.og-popup-poster-mode .og-popup-live-actions.two .og-popup-second-cta{min-height:46px}
@media(max-width:600px){
 .og-popup-poster-mode .og-popup-wrap{grid-template-rows:51px minmax(0,1fr) auto 36px 51px}
 .og-popup-poster-mode .og-popup-global-actions .og-popup-live-actions{padding:8px 10px 10px}
 .og-popup-poster-mode .og-popup-main-cta,.og-popup-poster-mode .og-popup-second-cta{min-height:42px;font-size:14px}
 .og-popup-poster-mode .og-popup-live-actions.two .og-popup-main-cta,.og-popup-poster-mode .og-popup-live-actions.two .og-popup-second-cta{min-height:42px;font-size:12px}
}

/* V8: independent, full-size poster dialogs instead of a single 1/2/3 carousel. */
.og-popup-overlay.og-popup-independent[hidden]{display:none!important}
.og-popup-overlay.og-popup-independent{background:rgba(9,19,38,.67);z-index:5500}
.og-popup-independent .og-popup-wrap{width:min(550px,100%)!important;max-height:calc(100dvh - 34px);height:auto;display:grid!important;grid-template-rows:62px minmax(0,1fr) auto 54px!important;border-radius:7px}
.og-popup-independent .og-popup-heading{padding:0 58px!important}
.og-popup-independent .og-popup-heading strong{font-size:clamp(15px,2.6vw,20px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:center}
.og-popup-independent .og-popup-poster-stage{min-height:0;overflow-x:hidden;overflow-y:auto;background:#fff;overscroll-behavior:contain;scrollbar-width:thin}
.og-popup-independent .og-popup-poster-link{display:block;border:0;background:#fff;padding:0;width:100%;cursor:pointer}
.og-popup-independent .og-popup-poster-link img{display:block;width:100%;height:auto;object-fit:contain}
.og-popup-independent .og-popup-global-actions{min-height:0}
.og-popup-independent .og-popup-global-actions .og-popup-live-actions{display:flex!important;gap:10px;align-items:center;justify-content:center;padding:10px 15px 13px}
.og-popup-independent .og-popup-main-cta{min-height:46px;font-size:16px}
.og-popup-independent .og-popup-live-actions.two .og-popup-main-cta,.og-popup-independent .og-popup-live-actions.two .og-popup-second-cta{font-size:15px}
.og-popup-independent .og-popup-bottom{background:#f3f4f7}
@media(max-width:600px){
 .og-popup-overlay.og-popup-independent{padding:8px!important}
 .og-popup-independent .og-popup-wrap{width:100%!important;max-height:calc(100dvh - 16px);grid-template-rows:51px minmax(0,1fr) auto 51px!important}
 .og-popup-independent .og-popup-heading{padding:0 48px!important}
 .og-popup-independent .og-popup-heading strong{font-size:16px!important}
 .og-popup-independent .og-popup-global-actions .og-popup-live-actions{gap:7px;padding:7px 10px 10px}
 .og-popup-independent .og-popup-main-cta{font-size:14px;min-height:42px}
 .og-popup-independent .og-popup-live-actions.two .og-popup-main-cta,.og-popup-independent .og-popup-live-actions.two .og-popup-second-cta{font-size:12px;min-height:42px}
}
