/* Ask SENBOX: centered reading, school-style actions, shared navigation. */
:root{--portal-action:#087bbd;--portal-hover:#096eaa;--portal-ink:#103d59;--portal-pale:#edf7fd;--portal-focus:#095caf;--portal-header-height:164px}
body{text-align:center;color:var(--portal-ink)}
body>header.portal-header,body.chat-page>header.topbar{position:sticky;top:0;z-index:30;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;height:auto;min-height:0;padding:18px 24px;background:var(--portal-pale);box-sizing:border-box;transition:transform .22s ease-out}
body>header.menu-hidden{transform:translateY(-100%)}
body>header:focus-within{transform:translateY(0)}
body>header .brand{align-self:center;justify-content:center;margin:0;color:var(--portal-ink)}
.site-nav,.chat-page .site-nav{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:10px;width:100%;margin:0;order:initial}
.site-nav a,.site-nav a[href="/regulation/"],.chat-page .site-nav a,.chat-page .site-nav a[href="/chat/"]{display:flex;justify-content:center;align-items:center;gap:8px;max-width:230px;min-height:48px;padding:12px 19px;border:2px solid var(--portal-action);border-radius:999px;background:var(--portal-action);color:#fff;font:700 14px/1.35 Arial,sans-serif;text-decoration:none;white-space:normal;text-align:center;box-sizing:border-box}
.site-nav a:hover,.chat-page .site-nav a:hover{background:var(--portal-hover);border-color:var(--portal-hover);color:#fff}
.site-nav a[aria-current="page"],.chat-page .site-nav a[aria-current="page"]{background:#fff;color:var(--portal-action);border-color:var(--portal-action)}
.site-nav a:active,.primary:active{transform:translateY(1px)}
.site-nav a:focus-visible,.primary:focus-visible,.contents a:focus-visible{outline:3px solid var(--portal-focus);outline-offset:4px}
.ui-icon{display:inline-block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.site-nav .ui-icon{width:19px;height:19px}
main p,main .lead{margin-inline:auto}
h1,h2,h3{text-align:center;text-wrap:balance}
.get-started-page main{max-width:1100px}
.get-started-page .intro{display:flex;flex-direction:column;gap:36px;padding:56px 0 48px;align-items:center}
.get-started-page .intro>div{width:100%}
.get-started-page .intro h1{max-width:850px;margin:0 auto 24px;font-size:clamp(36px,5vw,60px);line-height:1.08;letter-spacing:-.025em;color:var(--portal-ink)}
.get-started-page .intro .lead{font-size:23px;margin-bottom:12px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:999px;background:var(--portal-action);color:#fff;min-height:48px;padding:14px 24px;font-weight:700;text-decoration:none}
.primary:hover{background:var(--portal-hover);color:#fff}
.get-started-page .announcement{width:min(100%,720px);padding:24px 28px;border-radius:16px}
.announcement h2,.support h2{display:flex;align-items:center;justify-content:center;gap:12px}
.announcement h2{margin:0 0 16px}
.announcement p{margin-inline:auto}
.get-started-page .guide-layout{display:block;max-width:900px;margin:0 auto;padding-bottom:40px}
.get-started-page .contents{position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:0;margin:0 0 36px;overflow:visible}
.contents h2{display:none}
.get-started-page .contents a{color:var(--portal-ink);background:var(--portal-pale);padding:12px 20px;border-radius:999px;font-size:16px;min-height:48px;text-decoration:none;box-sizing:border-box}
.get-started-page .contents a:hover{background:#d4eefa}
.activity-group>h2{font-size:28px;line-height:1.25;margin:0 0 24px}
.get-started-page .activity{border:0;background:var(--portal-pale);border-radius:16px;margin:0 0 12px}
.get-started-page .activity summary{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;min-height:76px;padding:18px 54px;list-style:none;text-align:center;cursor:pointer}
.activity summary::-webkit-details-marker{display:none}
.get-started-page .activity summary::after{content:'+';position:absolute;right:22px;font-size:26px;color:var(--portal-action);font-weight:400}
.get-started-page .activity[open] summary::after{content:'−'}
.activity summary .ui-icon{width:26px;height:26px;color:var(--portal-action)}
.get-started-page .activity-title{flex:0 1 auto;font-size:17px;line-height:1.5;max-width:650px}
.get-started-page .activity-content{padding:0 28px 24px;text-align:center}
.get-started-page .activity-content p{margin:0 auto}
.get-started-page .unlock{justify-content:center;align-items:center;margin:36px 0;padding:28px}
.get-started-page .unlock>.ui-icon{width:28px;height:28px;color:var(--portal-action)}
.get-started-page .support{margin:32px 0 0;padding-bottom:20px}
.get-started-page .support>.placeholder{margin-inline:auto}
.feature-page .feature-catalog{max-width:1100px;margin:32px auto 0}
.feature-page .feature-catalog p{margin-inline:auto}
.terms-page{max-width:1000px}
.terms-layout{display:block;max-width:850px;margin:0 auto}
.terms-index{position:static;max-height:210px;padding:22px;background:var(--portal-pale);border-radius:16px;margin:0 0 40px;overflow:auto}
.terms-index nav{align-items:center}
.terms-index a{font-size:14px;text-align:center}
.language-label,.language-buttons{justify-content:center}
.language-label{flex-wrap:wrap}
#terms-document p,#terms-document h1,#terms-document h2{margin-inline:auto;text-align:center}
#terms-document .term-li{padding-left:0}
#terms-document .term-li:before{position:static;margin-right:6px}
html{scroll-padding-top:calc(var(--portal-header-height) + 20px)}
footer.senbox-portal-footer,footer .senbox-network,footer .senbox-network h2{text-align:center}
footer .senbox-network ul,.portal-footer-meta{justify-content:center!important}
.chat-page .new-chat{margin:0;min-height:44px}
body.chat-page>main.sheet{height:calc(100dvh - var(--portal-header-height) - 16px);min-height:560px}
.chat-page .welcome,.chat-page .messages,.chat-page .composer textarea{text-align:center}
.chat-page .starters{margin-inline:auto}
@media(max-width:700px){
 body>header.portal-header,body.chat-page>header.topbar{padding:14px 20px;gap:12px}
 .site-nav,.chat-page .site-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .site-nav a,.site-nav a[href="/regulation/"],.chat-page .site-nav a{width:100%;max-width:none;min-height:56px;padding:10px 12px;font-size:13px}
 .site-nav .ui-icon{width:18px;height:18px}
 .get-started-page .intro{padding:36px 0;gap:28px}
 .get-started-page .intro h1{font-size:clamp(30px,7.7vw,44px);max-width:600px;line-height:1.15}
 .get-started-page .intro .lead{font-size:20px}
 .get-started-page .announcement{padding:24px 20px}
 .get-started-page .activity summary{padding:18px 38px 18px 18px;gap:10px}
 .get-started-page .activity summary::after{right:14px}
 .get-started-page .activity-title{font-size:16px}
 .activity summary .ui-icon{width:23px;height:23px}
 .language-label{align-items:center;flex-direction:column}
 .language-label select{width:100%;max-width:360px}
 .feature-page .section{padding:36px 0}
 .terms-page{padding:32px 20px 48px}
 body.chat-page>main.sheet{min-height:560px}
}
@media(prefers-reduced-motion:reduce){body>header.portal-header,body.chat-page>header.topbar{transition:none}html{scroll-behavior:auto}}
.chat-page .new-chat,.chat-page .starters button{justify-content:center;gap:12px;background:var(--portal-action);color:#fff;border:0;border-radius:999px;min-height:48px;text-align:center;font-weight:700}
.chat-page .new-chat:hover,.chat-page .starters button:hover{background:var(--portal-hover);color:#fff}
.chat-page .starters button svg,.chat-page .new-chat svg{color:inherit;stroke:currentColor}
.activity-entry{background:var(--portal-pale);border-radius:16px;padding:28px;margin:0 0 26px;text-align:center}
.activity-heading{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 22px;font:700 20px/1.45 Arial,sans-serif;max-width:720px}
.activity-heading .ui-icon{color:var(--portal-action);width:26px;height:26px}
.activity-gif{max-width:560px;margin:0 auto 20px}
.activity-gif img{display:block;width:100%;height:auto;border-radius:16px;background:#fff}
.activity-gif figcaption{font:400 14px/1.6 Arial,sans-serif;color:var(--portal-ink);margin:14px auto 8px;max-width:65ch}
.get-started-page .activity-entry .activity{background:transparent;margin:0}
.get-started-page .activity-entry .activity summary{width:fit-content;min-height:48px;margin:auto;padding:12px 52px 12px 24px;background:var(--portal-action);color:#fff;border-radius:999px;font-weight:700}
.get-started-page .activity-entry .activity summary::after{color:#fff;right:20px}
.get-started-page .activity-entry .activity-content{padding:24px 0 0}
@media(max-width:600px){.activity-entry{padding:22px 16px}.activity-heading{font-size:18px;gap:10px}.activity-gif figcaption{font-size:13px}}
