/* Only the private preview gets layout adjustments. Active theme owns the header, font and CTA. */
body.edsp-system-preview #main{padding:0!important;width:100%!important;max-width:none!important}
body.edsp-system-preview #main>.fusion-row{max-width:none!important;padding:0!important}
body.edsp-system-preview #content{width:100%!important;margin:0!important;float:none!important}
body.edsp-system-preview .fusion-page-title-bar{display:none!important}
body.edsp-system-preview #main .post-content{margin:0}
/* Avoid a clipping ancestor around sticky navigation (WebKit scrolling regression history). */
body.edsp-system-preview{overflow:visible;min-width:0!important}
.edsp-system .sys-tabhead{width:100%;margin:0;outline:none}
.edsp-system h1,.edsp-system h2,.edsp-system h3,.edsp-system h4{font-family:inherit!important;text-transform:none}
.edsp-system .edsp-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.edsp-system .sys-sub-head{top:calc(var(--edsp-stack,80px) + 40px)}
@media(min-width:1024px){
    .edsp-system .sys-sub{grid-template-columns:minmax(0,.95fr) minmax(0,2fr)}
    .edsp-system .sys-sub-title{font-size:40px}
}
.edsp-system .edsp-photo-slot{min-width:0;aspect-ratio:4/3;border:1px solid #e5e7eb;border-radius:8px;background:#f7f8fa;display:flex;align-items:center;justify-content:center;padding:18px;text-align:center}
.edsp-system .edsp-photo-slot span{color:#8b95a1;font-size:12px;line-height:1.7}
.edsp-system .edsp-photo-slot img{width:100%;height:100%;object-fit:cover;display:block}
.edsp-system .edsp-photo-slot.edsp-photo-filled{padding:0;overflow:hidden}
.edsp-system .data-table th,.edsp-system .data-table td{border-left:0;border-right:0;line-height:1.7}
.edsp-system .data-table-wrap:focus-visible{outline:2px solid #0065f7;outline-offset:4px}
.edsp-system .edsp-time-panel{margin-top:20px}
.edsp-system .edsp-time-panel .fineprint{margin-top:14px}

/* Reused from edusherpa-success-system.php: deployed winter-school capsule anchor styling. */
.edsp-system .edsp-chipbar{position:sticky;top:0;z-index:80;background:transparent;border-bottom:0}
.edsp-system .edsp-chipbar .edsp-chipbar-in{box-sizing:border-box;width:100%;padding:12px 16px;display:flex;align-items:center;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:auto}
.edsp-system .edsp-chipbar .edsp-chipbar-in::-webkit-scrollbar{display:none}
.edsp-system .edsp-chipbar .edsp-seg{box-sizing:border-box;display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;background:#eef4ff;border-radius:999px;padding:5px;margin:0 auto;border:1px solid transparent;transition:border-color .18s ease,box-shadow .18s ease;max-width:none}
.edsp-system .edsp-chipbar .edsp-seg-b{box-sizing:border-box;appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:44px;min-height:44px;margin:0;padding:0 18px;font-family:inherit;font-size:14px;font-weight:600;color:#6b7684;border:0;background:none;line-height:1.4;border-radius:999px;white-space:nowrap;text-decoration:none;transition:color .18s ease,background-color .18s ease;-webkit-tap-highlight-color:transparent}
@media(hover:hover) and (pointer:fine){.edsp-system .edsp-seg-b:not(.on):hover{color:#1c1a1b}}
.edsp-system .edsp-chipbar .edsp-seg-b.on{background:#0f172a;color:#fff;font-weight:600}
.edsp-system .edsp-chipbar.is-stuck .edsp-seg{border-color:#ececec;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.edsp-system .edsp-chipbar+section>.wrap{padding-top:48px}
.edsp-system .tabs{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;margin:24px 0 0}
.edsp-system .tab-btn{border:1px solid #e5e7eb;background:#fff;color:#6b7684;border-radius:999px;padding:10px 17px;font-size:13px;line-height:1.5}
.edsp-system .tab-btn.active,.edsp-system .tab-btn.active:hover{background:#1c1a1b;color:#fff;border-color:#1c1a1b}
.edsp-system .press-dots{justify-content:center;gap:8px}
.edsp-system .pdot{width:7px;height:7px;border:0;border-radius:999px;background:#e5e7eb;padding:0;position:relative;transition:width .2s,background .2s}
.edsp-system .pdot.active{width:24px;background:#0f1729}
.edsp-system .pdot::before{content:'';position:absolute;inset:-12px -4px}
.edsp-system .pdot:focus-visible{outline:2px solid #0065f7;outline-offset:4px}
.edsp-system .edsp-cta{background:#0f1729;padding:72px 0;text-align:center}
.edsp-system .edsp-cta p{color:#ffffffb8;font-size:15px;margin:0 0 12px}
.edsp-system .edsp-cta h2{color:#fff;font-size:32px;line-height:1.4;margin:0 0 28px}
.edsp-system .edsp-cta-primary{display:inline-block;background:#0065f7;color:#fff!important;border-radius:999px;padding:13px 24px;font-size:15px;text-decoration:none}
@media(max-width:639px){
    .edsp-system .edsp-chipbar .edsp-seg{gap:0;width:auto}
    .edsp-system .edsp-chipbar .edsp-seg-b{padding:0 13px;font-size:12px}
    .edsp-system .edsp-chipbar .edsp-chipbar-in{padding:10px 12px}
    .edsp-system .edsp-chipbar+section>.wrap{padding-top:32px}
    .edsp-system .tabs{gap:6px}
    .edsp-system .tab-btn{padding:9px 12px;font-size:12px}
    .edsp-system .edsp-cta{padding:56px 0 96px}
    .edsp-system .edsp-cta h2{font-size:25px}
}
@media(max-width:359px){
    .edsp-system .edsp-chipbar .edsp-seg-b{padding:0 10px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.edsp-system *{scroll-behavior:auto!important;transition:none!important}}
.edsp-system .edsp-service-screen{background:#f5f6fa;position:relative;overflow:hidden}
.edsp-system .edsp-service-screen>a{position:absolute;inset:0;display:block;text-decoration:none}
.edsp-system .edsp-service-screen img{width:100%;height:100%;object-fit:contain!important;background:#f5f6fa}
.edsp-system .edsp-screen-open{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:20px;background:#fff;color:#334155;font-size:10px;box-shadow:0 2px 10px #00000012}
.edsp-system .edsp-service-screen>a:focus-visible{outline:2px solid #0065f7;outline-offset:-3px}
/* Suppress rings only after real pointer input; keyboard focus-visible rules remain intact. */
html[data-edsp-input="pointer"] .edsp-system :is(button,a,summary,[tabindex]):not(input):not(textarea):not(select):not([contenteditable="true"]):focus{outline:none!important}
.edsp-system :is(button,a,summary,[tabindex]){-webkit-tap-highlight-color:transparent}
/* Native horizontal rails must hand vertical gestures back to the page. */
.edsp-system .edsp-chipbar-in,
.edsp-system .sys-swipe>[data-swipe-track],
.edsp-system .gallery-grid,
.edsp-system .data-table-wrap{overflow-y:hidden;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-y:auto}
/* iOS WebKit: preserve the menu's flow slot while avoiding native sticky jitter. */
.edsp-system .edsp-chipbar-placeholder{display:block;width:100%;height:0;pointer-events:none}
.edsp-system .edsp-chipbar.edsp-ios-bar{position:relative!important;transition:none!important}
.edsp-system .edsp-chipbar.edsp-ios-bar:not(.is-fixed){top:auto!important;left:auto!important;width:100%!important}
.edsp-system .edsp-chipbar.edsp-ios-bar.is-fixed{position:fixed!important;right:auto!important;margin:0!important}

/* SherpaQ details link in the learning Q&A section. */
.edsp-system .sys-feat-link{display:inline-block;white-space:nowrap;margin-top:12px;color:var(--color-primary);font-size:13px;font-weight:500;line-height:1.75;text-decoration:underline;text-underline-offset:3px}
.edsp-system .sys-feat-link:hover{color:var(--color-primary-hover)}
