/* StudentSOS v14 — clear mobile menu, compact hero bubbles, contacts/blog, cursor fix */
:root{--s14-blue:#1769ff;--s14-ink:#172033;--s14-muted:#6b7485;--s14-line:#e3e9f2;--s14-soft:#f6f8fc}

/* --- Mobile menu: real full-screen sheet below the header, no dependence on app.js --- */
.s14-mobile-nav{display:none;position:relative;flex:0 0 auto}
.s14-mobile-nav>summary{list-style:none}.s14-mobile-nav>summary::-webkit-details-marker{display:none}
.s14-mobile-nav-toggle{width:46px;height:46px;border:0;border-radius:15px;background:#f3f6fb;color:#1288c7;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.s14-mobile-nav-toggle .sos-icon{width:25px;height:25px}.s14-cross{display:none;font:400 32px/1 Arial,sans-serif;color:#1f2937}
.s14-mobile-nav[open] .s14-hamburger{display:none}.s14-mobile-nav[open] .s14-cross{display:block}.s14-mobile-nav[open] .s14-mobile-nav-toggle{background:#eaf2ff;color:var(--s14-blue)}
.s14-mobile-panel{display:none}
@media(max-width:1000px){
  .s14-header{position:sticky!important;top:0!important;z-index:30000!important;transform:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fff!important}
  .s14-header .desktop-nav{display:none!important}.s14-mobile-nav{display:block!important}
  .s14-mobile-nav[open]>.s14-mobile-panel{display:block!important;position:fixed!important;z-index:29990!important;left:0!important;right:0!important;top:68px!important;bottom:0!important;width:100vw!important;height:calc(100dvh - 68px)!important;max-height:calc(100dvh - 68px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;background:#f7f9fc!important;border-top:1px solid #e7ecf3!important;box-shadow:0 24px 70px rgba(17,32,51,.14)!important}
  .s14-mobile-panel-inner{width:min(100% - 24px,720px);margin:0 auto;padding:18px 0 calc(30px + env(safe-area-inset-bottom))}
  .s14-mobile-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px;padding:0 2px 14px;border-bottom:1px solid #e3e8f0}
  .s14-mobile-panel-head>div{display:grid;gap:2px}.s14-mobile-panel-head>div>span{color:var(--s14-blue);font-size:11px;font-weight:900;letter-spacing:.12em}.s14-mobile-panel-head h2{margin:0;font-size:26px;line-height:1.1;letter-spacing:-.04em}.s14-mobile-panel-head small{max-width:180px;text-align:right;color:#8a94a5;font-size:11px!important;line-height:1.35!important}
  .s14-login-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 15px;margin:0 0 12px;border:1px solid #cfe0ff;border-radius:17px;background:#eef5ff}.s14-login-box>div{display:grid;gap:2px}.s14-login-box b{font-size:15px}.s14-login-box span{font-size:12px;color:#667085}.s14-login-box>a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:12px;background:#fff;border:1px solid #b8d0ff;color:#155bd8;font-size:14px;font-weight:850;text-decoration:none}
  .s14-auth-banner{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:10px;align-items:center;padding:13px 14px;margin-bottom:12px;border-radius:16px;background:#eef5ff;color:#263247;text-decoration:none}.s14-auth-banner>span{display:grid;place-items:center;color:#1769ff}.s14-auth-banner .sos-icon{width:21px}.s14-auth-banner>div{display:grid}.s14-auth-banner b{font-size:15px}.s14-auth-banner small{font-size:12px!important;color:#718096}.s14-auth-banner em{font-style:normal;color:#1769ff}
  .s14-mobile-links{display:grid;gap:8px}.s14-mobile-links>a{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;gap:10px;align-items:center;min-width:0;padding:12px 13px;border:1px solid #e1e7ef;border-radius:16px;background:#fff;color:#263247;text-decoration:none}.s14-mobile-links>a>.sos-icon:first-child{width:21px;color:#1769ff;justify-self:center}.s14-mobile-links>a>.sos-icon:last-child{width:16px;color:#9aa4b2}.s14-mobile-links>a>span{display:grid;gap:2px;min-width:0}.s14-mobile-links b{font-size:15px;line-height:1.25}.s14-mobile-links small{font-size:12px!important;line-height:1.3!important;color:#778296;overflow-wrap:anywhere}
  .s14-mobile-work-details{margin-top:9px;border:1px solid #e1e7ef;border-radius:16px;background:#fff;overflow:hidden}.s14-mobile-work-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:14px 15px;font-size:15px;font-weight:850;cursor:pointer}.s14-mobile-work-details>summary::-webkit-details-marker{display:none}.s14-mobile-work-details>summary span{font-size:22px;color:#1769ff;transition:.15s transform}.s14-mobile-work-details[open]>summary span{transform:rotate(45deg)}
  .s14-mobile-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;padding:10px 15px 17px;border-top:1px solid #edf1f6}.s14-mobile-work-grid section{min-width:0}.s14-mobile-work-grid section>b{display:block;margin:5px 0 6px;color:#1769ff;font-size:11px;line-height:1.3;text-transform:uppercase;letter-spacing:.05em}.s14-mobile-work-grid a{display:block;padding:5px 0;color:#344054;font-size:13px;line-height:1.35;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
  .s14-menu-socials{margin-top:12px;padding:14px 15px;border:1px solid #e1e7ef;border-radius:16px;background:#fff}.s14-menu-socials>b{display:block;margin-bottom:10px;font-size:13px}.s14-menu-socials>div{display:flex;flex-wrap:wrap;gap:8px}.s14-menu-socials a{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:11px;background:#f4f7fb;color:#344054;font-size:12px;font-weight:750;text-decoration:none}.s14-menu-socials i,.s14-footer-socials i{display:grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border-radius:8px;background:#1769ff;color:#fff;font-size:9px;font-style:normal;font-weight:900}
  .s14-register-cta{display:flex!important;width:100%;margin-top:12px;min-height:48px!important}
  html:has(.s14-mobile-nav[open]),body:has(.s14-mobile-nav[open]){overflow:hidden!important;overscroll-behavior:none!important}
}
@media(max-width:700px){
  .s14-mobile-nav[open]>.s14-mobile-panel{top:64px!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important}
  .s14-mobile-nav-toggle{width:44px;height:44px;border-radius:14px}
  .s14-mobile-panel-head small{display:none}
}
@media(max-width:430px){.s14-mobile-work-grid{grid-template-columns:1fr}.s14-mobile-panel-inner{width:calc(100% - 22px)}}

/* --- Hero bubbles: five on desktop, four on phone --- */
.s11-bubble-stage .s11-float-bubble.b6,.s11-bubble-stage .s11-float-bubble.b7,.s11-bubble-stage .s11-float-bubble.b8,.s11-bubble-stage .s11-float-bubble.b9{display:none!important}
@media(max-width:620px){
  .s11-bubble-stage{min-height:245px!important}
  .s11-bubble-stage .s11-float-bubble{font-size:11.5px!important;line-height:1.25!important;padding:7px 9px!important;max-width:70%!important;white-space:normal!important}
  .s11-bubble-stage .s11-float-bubble.b1{left:0!important;top:6%!important}.s11-bubble-stage .s11-float-bubble.b2{right:0!important;top:20%!important}.s11-bubble-stage .s11-float-bubble.b3{left:2%!important;bottom:7%!important}.s11-bubble-stage .s11-float-bubble.b4{right:1%!important;bottom:1%!important}.s11-bubble-stage .s11-float-bubble.b5{display:none!important}
}

/* --- Fake typing invitation: caret is inline after the text, even when it wraps --- */
.s7-composer,.s6-composer{position:relative!important}
.s11-typing-invite{display:block!important;left:32px!important;right:28px!important;top:29px!important;line-height:1.55!important;white-space:normal!important}
.s11-typing-invite>span{display:inline!important;min-width:0!important;overflow-wrap:anywhere!important}
.s11-typing-invite>i{display:none!important}
.s11-typing-invite>span:after{content:"";display:inline-block;width:2px;height:1.16em;margin-left:3px;vertical-align:-.13em;background:#1769ff;border-radius:2px;animation:s14CaretBlink .9s steps(1,end) infinite}
.s11-typing-invite[style*="opacity: 0"]>span:after{animation:none}
.s11-work-typing-invite{left:39px!important;right:39px!important;top:39px!important}
@keyframes s14CaretBlink{0%,48%{opacity:1}49%,100%{opacity:0}}
@media(max-width:620px){.s11-typing-invite{left:21px!important;right:20px!important;top:23px!important;font-size:17px!important}.s11-work-typing-invite{left:27px!important;right:27px!important;top:28px!important}}
@media(prefers-reduced-motion:reduce){.s11-typing-invite>span:after{animation:none!important}}

/* Work-page form polish: no decorative gradient/strip above the form. */
.seo5-generator-card,.seo5-generator-card .s6-ai-card{background:#fff!important}.seo5-generator-card{padding-top:0!important}.seo5-generator-card:before,.seo5-generator-card:after,.s6-ai-card:before,.s7-tool-ai-card:before{content:none!important;display:none!important;height:0!important;background:none!important}.seo5-kicker i{font-style:normal!important;color:#168256!important;background:#eafaf2!important;border-radius:999px!important;padding:5px 8px!important}

/* --- Footer socials --- */
.s14-footer-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.s14-footer-socials a{display:inline-flex!important;align-items:center;gap:7px!important;padding:7px 9px!important;border:1px solid #e1e7ef;border-radius:11px;color:#465166!important;text-decoration:none!important}.s14-footer-socials span{font-size:12px}.s14-footer-socials i{min-width:24px;height:24px;border-radius:7px}

/* --- Contacts + Blog --- */
.s14-content-page,.s14-article-page{background:#fff;color:#172033}.s14-content-hero{padding:68px 0 42px;background:linear-gradient(180deg,#f5f8ff,#fff)}.s14-content-hero .shell{max-width:1040px}.s14-content-hero span{display:block;margin-bottom:10px;color:#1769ff;font-size:12px;font-weight:900;letter-spacing:.12em}.s14-content-hero h1{max-width:900px;margin:0;font-size:clamp(38px,6vw,68px);line-height:1.03;letter-spacing:-.055em}.s14-content-hero p{max-width:800px;margin:18px 0 0;color:#667085;font-size:18px;line-height:1.65}
.s14-contact-section{padding:20px 0 80px}.s14-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.s14-contact-card{display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:13px;padding:20px;border:1px solid #e1e7ef;border-radius:19px;background:#fff;color:#253047;text-decoration:none;box-shadow:0 10px 30px rgba(38,55,88,.04)}.s14-contact-card>i{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf4ff;color:#1769ff;font-size:13px;font-style:normal;font-weight:900}.s14-contact-card>div{display:grid;gap:4px;min-width:0}.s14-contact-card b{font-size:17px}.s14-contact-card span{font-size:14px;color:#6f7a8c;overflow-wrap:anywhere}.s14-contact-card em{font-style:normal;color:#9ba5b5;font-size:22px}.s14-contact-note{margin-top:22px;padding:24px;border-radius:20px;background:#f5f8ff;border:1px solid #dce8ff}.s14-contact-note>b{font-size:21px}.s14-contact-note p{max-width:760px;color:#5f6d82;line-height:1.65}
.s14-blog-list{padding:16px 0 82px}.s14-blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.s14-blog-grid article{min-width:0;padding:24px;border:1px solid #e1e7ef;border-radius:20px;background:#fff}.s14-blog-meta{display:flex;gap:10px;align-items:center;color:#7a8495;font-size:12px;font-weight:700}.s14-blog-meta span+span:before{content:"·";margin-right:10px}.s14-blog-grid h2{margin:13px 0 10px;font-size:24px;line-height:1.25;letter-spacing:-.035em}.s14-blog-grid h2 a{color:#172033;text-decoration:none}.s14-blog-grid p{color:#667085;font-size:15px;line-height:1.65}.s14-blog-more{display:inline-block;margin-top:10px;color:#1769ff;font-weight:850;text-decoration:none}
.s14-article{max-width:850px;padding-top:54px;padding-bottom:90px}.s14-crumb{display:flex;gap:9px;margin-bottom:24px;color:#7b8596;font-size:13px}.s14-crumb a{color:#1769ff;text-decoration:none}.s14-article h1{margin:14px 0 18px;font-size:clamp(38px,6vw,64px);line-height:1.04;letter-spacing:-.055em}.s14-article-lead{font-size:20px!important;line-height:1.65!important;color:#59677c!important}.s14-article section{margin-top:38px}.s14-article h2{margin:0 0 13px;font-size:30px;line-height:1.18;letter-spacing:-.035em}.s14-article p{font-size:17px;line-height:1.78;color:#46546a}.s14-article-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:48px;padding:22px 24px;border-radius:20px;background:#f3f7ff;border:1px solid #dbe7ff}.s14-article-cta b{font-size:20px}.s14-article-cta p{margin:5px 0 0;font-size:14px;color:#667085}
@media(max-width:700px){.s14-content-hero{padding:44px 0 28px}.s14-content-hero h1{font-size:40px}.s14-content-hero p{font-size:16px}.s14-contact-grid,.s14-blog-grid{grid-template-columns:1fr}.s14-contact-section,.s14-blog-list{padding-bottom:58px}.s14-article{padding-top:34px;padding-bottom:70px}.s14-article h1{font-size:39px}.s14-article-lead{font-size:17px!important}.s14-article h2{font-size:26px}.s14-article p{font-size:16px}.s14-article-cta{display:grid}.s14-article-cta .btn{width:100%}}

/* v14.1 refinements */
@media(max-width:1000px){
  .s14-mobile-panel-head{position:sticky;top:0;z-index:3;margin:0 -2px 12px;padding:12px 2px 14px;background:#f7f9fc}
  .s14-menu-close{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 11px;border:1px solid #d6deea;border-radius:11px;background:#fff;color:#445066;font:750 12px/1 Manrope,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .s14-menu-close b{font:500 23px/1 Arial,sans-serif;color:#1769ff}
}
@media(max-width:620px){
  .s11-bubble-stage{min-height:210px!important}
  .s11-bubble-stage .s11-float-bubble.b4,.s11-bubble-stage .s11-float-bubble.b5{display:none!important}
  .s11-bubble-stage .s11-float-bubble.b1{left:0!important;top:5%!important}
  .s11-bubble-stage .s11-float-bubble.b2{right:0!important;top:29%!important}
  .s11-bubble-stage .s11-float-bubble.b3{left:4%!important;bottom:3%!important}
}
/* Admin cards must never escape their grid on narrow screens. */
.admin-v6-main,.admin-v6-section,.admin-v6-grid,.admin-v6-card,.admin-v11-sms-form,.admin-v11-chain-card,.admin-v11-provider-grid,.admin-v11-provider-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.admin-v6-card input,.admin-v6-card select,.admin-v6-card textarea,.admin-v11-sms-form input,.admin-v11-sms-form select,.admin-v11-sms-form textarea{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(max-width:760px){.admin-v11-provider-grid,.admin-v6-grid{grid-template-columns:1fr!important}.admin-v11-chain-card{grid-template-columns:1fr!important}.admin-v11-chain-fields{grid-template-columns:1fr!important}}
