/* Edupstairs AI standalone portal v2.1.0. Same header, palette and full-width design language as Teaching Posts / DPSA / Fantastic Jobs. */
:root{--edai-navy:#10233f;--edai-teal:#008f86;--edai-bg:#f5f7fb;--edai-text:#1b3048;--edai-line:#e2eaf1}
html{scroll-behavior:smooth}
body.edai-body{margin:0!important;padding:0!important;background:var(--edai-bg);color:var(--edai-text);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif}
.edai-portal,.edai-portal *,.edai-portal *::before,.edai-portal *::after{box-sizing:border-box}
.edai-portal a{text-decoration:none}.edai-portal button,.edai-portal textarea{font:inherit}
.edai-portal button{cursor:pointer}.edai-portal p,.edai-portal h1,.edai-portal h2{margin-top:0}
.edai-portal a:focus-visible,.edai-portal button:focus-visible,.edai-portal textarea:focus-visible{outline:3px solid #4cd4c4;outline-offset:3px}
.edai-skip{position:absolute;top:-100px;left:18px;padding:10px 16px;background:#fff;color:var(--edai-navy);border-radius:8px;z-index:100}.edai-skip:focus{top:12px}
.edai-site-header{background:#fff;border-bottom:1px solid var(--edai-line)}
.edai-header-inner{max-width:1480px;min-height:83px;padding:0 32px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.edai-brand{display:inline-flex;align-items:center;gap:11px;color:#15263e;flex-shrink:0}
.edai-brand-image{display:block;width:auto;height:auto;max-width:230px;max-height:55px;object-fit:contain;object-position:left center}
.edai-brand-mark{display:flex;width:46px;height:46px;align-items:center;justify-content:center;background:#122740;color:#fff;border-radius:13px;font-size:30px;line-height:1;font-weight:850}
.edai-brand-mark>span{color:#31d3c5}.edai-brand-copy{display:flex;flex-direction:column;line-height:1.2}.edai-brand-copy strong{font-size:20px;font-weight:850;letter-spacing:-.04em}.edai-brand-copy small{font-size:11px;color:#758599;font-weight:750;margin-top:3px}
.edai-header-side{display:flex;align-items:center;gap:20px}.edai-header-label{display:inline-flex;align-items:center;gap:8px;color:#73869a;font-size:12px;font-weight:750}
.edai-header-dot{width:8px;height:8px;border-radius:50%;background:#00a69b;box-shadow:0 0 0 5px #e4f8f3}
.edai-home-link{display:inline-flex;align-items:center;gap:9px;background:#f5f9fb;border:1px solid #e0e8f0;color:#234159;font-size:12px;font-weight:800;padding:9px 14px;border-radius:9px}
.edai-home-link:hover{background:#e8f6f3;color:#007e74}
.edai-main{max-width:1480px;margin:0 auto;padding:29px 32px 70px;min-height:75vh}
.edai-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;padding:50px 56px 36px;background:linear-gradient(112deg,#10233f 3%,#103957 63%,#075c63 110%);box-shadow:0 14px 38px rgba(6,33,57,.11);color:#fff}
.edai-hero-deco{position:absolute;right:-190px;top:-235px;width:590px;height:590px;border:85px solid rgba(255,255,255,.035);border-radius:50%;z-index:-1;pointer-events:none}
.edai-hero-deco::after{content:"";position:absolute;inset:-123px;border:1px solid rgba(255,255,255,.07);border-radius:50%}
.edai-hero-intro{position:relative;max-width:970px;margin:auto;text-align:center;z-index:1}
.edai-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#a9e9df;font-weight:850;font-size:11px;letter-spacing:.125em}
.edai-sparkle{font-size:18px;color:#5bdfcf}
.edai-hero h1{font-size:clamp(34px,4.3vw,58px);letter-spacing:-.045em;font-weight:850;line-height:1.12;color:#fff;margin:17px auto 15px;max-width:850px}
.edai-hero h1 span{color:#94e4d8}
.edai-hero-intro>p{max-width:680px;margin:0 auto 30px;color:#cde0e9;font-size:15px;line-height:1.8}
.edai-ai-area{position:relative;max-width:1060px;margin:auto;z-index:2}
/* Retain the existing chat markup and JavaScript selectors; replace visual treatment only. */
.edai-portal .edupstairs-ai-shell{max-width:none;margin:0;font-family:inherit;color:#1b3048}
.edai-portal .edupstairs-ai-hero{position:relative;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.edai-portal .edupstairs-ai-search-card{background:#fff;backdrop-filter:none;border:1px solid #e7eff3;border-radius:17px;padding:15px;box-shadow:0 18px 42px rgba(1,24,40,.19)}
.edai-portal .edupstairs-ai-input-wrap{border:1px solid #dbe7ee;border-radius:11px;box-shadow:none;background:#fff;align-items:stretch}
.edai-portal .edupstairs-ai-input-wrap:focus-within{border-color:#00a49a;box-shadow:0 0 0 3px rgba(0,154,143,.1)}
.edai-portal .edupstairs-ai-input{min-height:83px;background:transparent;border:0!important;outline:0!important;box-shadow:none!important;padding:18px 112px 16px 18px;resize:vertical;font-size:16px;color:#233b54;line-height:1.55;border-radius:11px}
.edai-portal .edupstairs-ai-input::placeholder{color:#8496a9}
.edai-portal .edupstairs-ai-actions{bottom:12px;right:12px;gap:8px}
.edai-portal .edupstairs-ai-icon-btn{width:43px;height:43px;border-radius:10px}
.edai-portal .edupstairs-ai-voice{background:#edf5f5;color:#2b6b6b}
.edai-portal .edupstairs-ai-voice:hover{background:#ddf1ed}
.edai-portal .edupstairs-ai-submit{background:#008f86;color:white;box-shadow:none;font-size:25px}
.edai-portal .edupstairs-ai-submit:hover{background:#00766e;box-shadow:none}
.edai-portal .edupstairs-ai-hints{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:11px}
.edai-portal .edupstairs-ai-chip{background:#f7fafc;border:1px solid #e6edf1;color:#355169;box-shadow:none;padding:12px 13px;font-size:12px;font-weight:700;line-height:1.4;text-align:left;border-radius:10px;transition:background .15s,border-color .15s}
.edai-portal .edupstairs-ai-chip:hover{background:#e9f7f4;border-color:#93cdc5;box-shadow:none;transform:none;color:#006d65}
.edai-portal .edupstairs-ai-output{max-width:1060px;margin:23px auto 0}
.edai-portal .edupstairs-ai-chat-stream{gap:15px}
.edai-portal .edupstairs-ai-user-bubble{background:#0e756f;border:1px solid #329d94;box-shadow:0 8px 18px rgba(1,25,32,.1);color:white}
.edai-portal .edupstairs-ai-answer-card{border-radius:15px;box-shadow:0 8px 24px rgba(7,32,53,.14);padding:26px 30px}
.edai-portal .edupstairs-ai-answer-label{color:#008f86}
.edai-portal .edupstairs-ai-answer-body a{color:#007e77}
.edai-portal .edupstairs-ai-followup{border-radius:15px;box-shadow:0 8px 24px rgba(7,32,53,.13)}
.edai-portal .edupstairs-ai-followup-suggestions{border-radius:14px}
.edai-portal .edupstairs-ai-history{background:#fff;border:1px solid #e6eff3;border-radius:14px;margin:17px auto 0;color:#1d334b}
.edai-content{padding-top:22px}
.edai-trust-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.edai-trust-row>div{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--edai-line);padding:19px 22px;border-radius:14px;min-width:0}
.edai-feature-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:39px;height:39px;border-radius:11px;background:#e7f7f3;color:#007e75;font-size:24px;font-weight:800}
.edai-trust-row strong{display:block;font-size:13px;color:#283e55;line-height:1.35}
.edai-trust-row small{display:block;font-size:11px;color:#75879a;margin-top:3px}
.edai-discover{padding:42px 0 25px}
.edai-discover-intro{max-width:700px;margin-bottom:19px}
.edai-section-label{font-size:11px;color:#00867b;font-weight:850;letter-spacing:.11em}
.edai-discover h2{font-size:27px;line-height:1.2;letter-spacing:-.03em;font-weight:850;margin:8px 0 9px;color:#1b3048}
.edai-discover-intro p{color:#6b7f94;font-size:13px;line-height:1.7;margin:0}
.edai-resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.edai-resource-grid>a{position:relative;min-width:0;min-height:150px;padding:20px;border:1px solid var(--edai-line);border-radius:15px;background:#fff;color:#20364e;display:flex;flex-direction:column;gap:4px;transition:box-shadow .15s,border-color .15s}
.edai-resource-grid>a:hover{border-color:#9ed9d1;box-shadow:0 10px 26px rgba(0,48,70,.065)}
.edai-resource-icon{height:35px;width:35px;display:grid;place-items:center;font-size:23px;background:#e9f7f4;border-radius:8px;color:#00887f;margin-bottom:10px}
.edai-resource-grid strong{font-size:14px;font-weight:850;line-height:1.3}
.edai-resource-grid small{font-size:12px;color:#71879c;line-height:1.45}
.edai-resource-arrow{position:absolute;right:18px;top:23px;color:#008f86;font-size:18px}
.edai-disclaimer{margin:3px 0 0;background:#edf5f4;border:1px solid #d5e8e5;color:#58727b;font-size:12px;line-height:1.75;border-radius:12px;padding:17px 21px}
.edai-disclaimer strong{color:#26545a}
.edai-footer{background:#fff;border-top:1px solid var(--edai-line);font-size:12px;color:#74869b}
.edai-footer>div{max-width:1480px;padding:25px 32px;margin:auto;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.edai-footer a{color:#008279;font-weight:850}
@media(max-width:920px){.edai-hero{padding:40px 30px 29px}.edai-main{padding:23px 22px 55px}.edai-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.edai-header-label{display:none}}
@media(max-width:700px){.edai-header-inner{padding:0 16px;min-height:70px}.edai-brand-image{max-width:175px;max-height:42px}.edai-brand-mark{width:38px;height:38px;font-size:25px;border-radius:11px}.edai-brand-copy strong{font-size:17px}.edai-brand-copy small{font-size:10px}.edai-home-link{padding:7px 10px;font-size:11px}.edai-main{padding:16px 13px 48px}.edai-hero{padding:29px 16px 22px;border-radius:15px}.edai-hero h1{font-size:33px;margin:11px auto 12px}.edai-hero-intro>p{font-size:13px;margin-bottom:22px;line-height:1.7}.edai-eyebrow{font-size:10px}.edai-portal .edupstairs-ai-search-card{padding:11px;border-radius:13px}.edai-portal .edupstairs-ai-input{min-height:106px;padding:15px 95px 19px 13px;font-size:15px}.edai-portal .edupstairs-ai-hints{grid-template-columns:1fr 1fr;gap:7px}.edai-portal .edupstairs-ai-chip{font-size:11px;padding:10px 9px;border-radius:8px}.edai-portal .edupstairs-ai-icon-btn{width:38px;height:38px}.edai-portal .edupstairs-ai-answer-card{padding:18px;border-radius:13px}.edai-trust-row{grid-template-columns:1fr;gap:8px}.edai-trust-row>div{padding:13px 15px}.edai-resource-grid{grid-template-columns:1fr 1fr;gap:10px}.edai-resource-grid>a{min-height:142px;padding:14px}.edai-resource-grid strong{font-size:13px}.edai-resource-grid small{font-size:11px}.edai-resource-icon{width:31px;height:31px;margin-bottom:6px}.edai-discover{padding:30px 0 21px}.edai-discover h2{font-size:23px}.edai-footer>div{padding:22px 14px}}
@media(max-width:395px){.edai-header-side{display:none}.edai-portal .edupstairs-ai-hints{grid-template-columns:1fr}.edai-resource-grid{grid-template-columns:1fr}.edai-hero h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
