/* A single type scale for public content, forms and navigation. */
:root{--mas-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mas-body-size:15px;--mas-body-leading:1.75}
body[data-mas-page]{font-family:var(--mas-font);font-size:var(--mas-body-size);line-height:var(--mas-body-leading)}
body[data-mas-page] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,blockquote,figcaption,small,label,input,select,textarea,button,summary,address,time,span,b,strong,a){font-family:var(--mas-font)!important}
body[data-mas-page] main :is(p,li,dt,dd,blockquote){font-size:var(--mas-body-size)!important;line-height:var(--mas-body-leading)!important}
body[data-mas-page] main :is(p,li,dt,dd,blockquote,td,th) :is(span,a,b,strong,em,i){font-size:inherit!important;line-height:inherit!important}
body[data-mas-page] main h1{font-size:clamp(32px,3.4vw,42px)!important;line-height:1.18!important;font-weight:600!important;letter-spacing:-.035em}
body[data-mas-page] main h2{font-size:28px!important;line-height:1.28!important;font-weight:600!important;letter-spacing:-.025em}
body[data-mas-page] main h3{font-size:21px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:-.015em}
body[data-mas-page] main h4{font-size:18px!important;line-height:1.45!important;font-weight:600!important}
body[data-mas-page] main :is(h1,h2,h3,h4) :is(span,a,b,strong){font-size:inherit!important;line-height:inherit!important;font-weight:inherit}
body[data-mas-page] main :is(td,th){font-family:var(--mas-font)!important}
body[data-mas-page] main td{font-size:15px!important;line-height:1.65!important}
body[data-mas-page] main th{font-size:13px!important;line-height:1.6!important;font-weight:600}
body[data-mas-page] main :is(input,select,textarea,button,.btn,.pro-button){font-size:14px;line-height:1.5}
body[data-mas-page] main .mas-home-hero h1{font-size:clamp(36px,4.1vw,52px)!important;line-height:1.12!important;font-weight:550!important}
body[data-mas-page] main :is(.hero-service-workspace,.hero-workspace) h2{font-size:22px!important}
body[data-mas-page] main :is(.hero-service-workspace,.hero-workspace) h3{font-size:16px!important;letter-spacing:0}
body[data-mas-page] main :is(.hero-service-workspace,.hero-workspace) p{font-size:13px!important;line-height:1.65!important}
body[data-mas-page] main .staff-identity h3{font-size:20px!important}
body[data-mas-page] main .nostroy-news-card h3{font-size:21px!important;line-height:1.4!important}
body[data-mas-page] .pro-document h2{font-size:19px!important;line-height:1.45!important;font-weight:600;letter-spacing:0}
body[data-mas-page] .discovery-dialog h2,body[data-mas-page] .mas-assistant h2{font-size:22px!important;line-height:1.3!important;font-weight:600;letter-spacing:-.02em}
body[data-mas-page] .discovery-dialog .discovery-result h3{font-size:15px!important;line-height:1.5!important;letter-spacing:0}
body[data-mas-page] .chat-bubble{font-size:14px;line-height:1.7}
body[data-mas-page] main .search-workspace .discovery-result h3{font-size:18px!important;line-height:1.5!important;letter-spacing:0}
body[data-mas-page] main .search-workspace .discovery-result p{font-size:14px!important;line-height:1.65!important}
/* Registry actions belong to the frame, including its expanded state. */
.official-frame-shell>.registry-official-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 16px;margin:0;border-bottom:1px solid #d9e2e9;background:#f4f7fa;flex:0 0 auto}
.official-frame-shell>.registry-official-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border:1px solid #c6d3dd;border-radius:8px;background:#fff;color:#2c485e;font:500 13px/1.5 var(--mas-font);white-space:normal;cursor:pointer;text-decoration:none}
.official-frame-shell>.registry-official-actions a[href="/extract"]{order:-1;background:#29475f;border-color:#29475f;color:white}
.official-frame-shell>.registry-official-actions .registry-find-site{margin-left:auto}
.official-frame-shell>.embedded-tool-top{padding:12px 16px;background:#29455e;flex:0 0 auto}
.official-frame-shell>.embedded-tool-top>div{display:flex;align-items:center;gap:9px}
.official-frame-shell>.embedded-tool-top :is(a,button){font:500 13px/1.5 var(--mas-font);min-height:38px}
.official-frame-shell.frame-full{inset:12px!important;height:calc(100dvh - 24px);max-height:none;border-radius:15px}
.official-frame-shell.frame-full>.service-frame{flex:1;min-height:0!important;height:auto!important;max-height:none!important}
.discovery-dialog{z-index:1300!important}
body:has(.frame-full) .discovery-dialog{top:160px!important}
.pro-document{display:none;flex-direction:column}
.pro-document[open]{display:flex}
.pro-document>header{height:auto;min-height:82px;max-height:145px;flex:0 0 auto;background:#f8fafc!important;border-bottom:1px solid #d8e2ea!important}
.pro-document>header>div{min-width:0;flex:1}
.pro-document>header>div>span{color:#587186;font-size:10px;letter-spacing:.1em}
.pro-document>header h2{max-height:84px;margin:6px 0 0;overflow:auto;scrollbar-width:thin;color:#263f55}
.pro-document .document-modal-type{display:inline-block;background:#e7edf3;border:1px solid #cedbe5;border-radius:6px;padding:4px 8px;letter-spacing:.03em;font-weight:650;font-size:11px;color:#35566f;margin-right:9px}
.pro-document .document-modal-meta{font:12px/1.5 var(--mas-font);color:#597185;margin-top:6px}
.pro-document>iframe{flex:1;min-height:0;width:100%;height:auto!important;background:#e9eff4}
.pro-document::backdrop{background:#142e4680;backdrop-filter:blur(5px)}
.pro-document>header .modal-close{border:1px solid #ccd8e2;border-radius:10px;background:white;color:#3f5d74;width:40px;height:40px;min-height:40px;font:26px/1 var(--mas-font);align-self:flex-start;flex:0 0 auto}
.pro-document>header .modal-close:hover{background:#e9eff4}
@media(max-width:600px){
 body[data-mas-page] main h1{font-size:32px!important}
 body[data-mas-page] main h2{font-size:26px!important}
 body[data-mas-page] main h3{font-size:20px!important}
 body[data-mas-page] main .mas-home-hero h1{font-size:36px!important}
 body[data-mas-page] main :is(input,select,textarea){font-size:16px!important}
 .official-frame-shell>.registry-official-actions{display:grid;grid-template-columns:1fr 1fr;padding:10px;gap:7px}
 .official-frame-shell>.registry-official-actions :is(a,button){font-size:12px;min-height:40px;width:100%;padding:8px}
 .official-frame-shell>.registry-official-actions .registry-find-site{margin-left:0}
 .official-frame-shell>.embedded-tool-top{padding:10px;gap:10px;font-size:10px;align-items:center}
 .official-frame-shell>.embedded-tool-top>div{gap:6px}
 .official-frame-shell>.embedded-tool-top :is(a,button){font-size:11px;padding:7px 9px}
 .official-frame-shell.frame-full{inset:6px!important;height:calc(100dvh - 12px);border-radius:12px}
 body:has(.frame-full) .discovery-dialog{top:178px!important;max-height:calc(100dvh - 190px)}
 .pro-document>header{min-height:75px;max-height:160px;gap:10px;padding:12px}
 body[data-mas-page] .pro-document h2{font-size:15px!important;line-height:1.45!important;max-height:87px}
 .pro-document>header>div>span{font-size:9px;letter-spacing:.04em}
 .pro-document .document-modal-meta{font-size:11px}
 .pro-document .document-modal-type{font-size:10px;padding:3px 6px}
}
@media print{body[data-mas-page] main{font-size:12pt}.registry-find-site{display:none!important}}
.pro-document>header h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:58px}
@media(max-width:600px){body[data-mas-page] .pro-document h2{max-height:45px}}
[hidden]{display:none!important}

.chat-navigation{display:grid;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #dbe3e9}.chat-navigation>small{color:#65788b;font-size:10px!important;letter-spacing:.08em}.chat-navigation a,.chat-navigation button{display:grid;grid-template-columns:29px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:10px!important;border:1px solid #d8e2e9;border-radius:11px;background:#fff;color:#21394f;text-align:left;text-decoration:none;cursor:pointer;width:100%;font-size:13px!important;line-height:1.4!important}.chat-navigation a:hover,.chat-navigation button:hover{background:#eff5fa;border-color:#91b0ca}.chat-navigation .chat-action-icon{font-size:10px;color:#53728d}.chat-navigation strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}.chat-navigation span small{letter-spacing:normal;text-transform:none;display:block;font-size:11px!important;color:#63788a;margin-top:3px;overflow-wrap:anywhere}.chat-navigation .chat-more-results{display:block;background:transparent;border:0;padding:4px 0!important;color:#34638b;width:auto}.mas-chat-form textarea{font:inherit}.chat-bubble>div{overflow-wrap:anywhere}

/* Composer stays visible and has an explicit send action. */
.mas-chat-form{position:relative;margin:0;background:#f4f8fb;border-top:1px solid #dbe4ec;padding:11px 13px;flex:none}.mas-chat-form>div:first-of-type{display:block;padding:0;background:transparent;border:0}.mas-chat-form textarea{box-sizing:border-box;display:block;width:100%;min-height:44px;max-height:120px;resize:none;margin:5px 0 9px;padding:10px 12px;border:1px solid #b9cbd8;border-radius:10px;background:#fff;color:#21394f;font:15px/1.5 system-ui!important;overflow-y:auto}.mas-chat-form textarea:focus{outline:2px solid #5482a5;outline-offset:1px}.mas-chat-send-row{display:flex!important;align-items:center;gap:8px;background:none!important;padding:0!important;border:0!important}.mas-chat-send-row .mas-compose-status{flex:1;font-size:11px;line-height:1.4;color:#536d81}.mas-chat-send-row button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto!important;min-width:112px;min-height:44px;border-radius:9px;padding:9px 13px!important;border:1px solid #213e58;background:#294d6d;color:white;font:600 14px/1.2 system-ui!important;cursor:pointer}.mas-chat-send-row button svg{width:17px;height:17px}.mas-chat-send-row button:disabled{opacity:.5;cursor:default}.mas-chat-send-row [data-stop-answer]{min-width:96px;background:#fff;color:#31526c;border-color:#bdcddb}.mas-chat-send-row [hidden]{display:none!important}.mas-chat-form>small{display:block;font-size:10px;line-height:1.35;margin-top:7px}.mas-chat-log{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none}.mas-assistant>header,.assistant-mode{flex:none}.mas-chat-empty{min-height:0;overflow:auto}
.source-document-card{border:1px solid #d4e0e9;background:#f5f9fc;border-radius:14px;padding:24px;margin:22px 0}.source-document-card h2{font-size:25px!important;margin:8px 0 12px!important}.source-document-card .document-card-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:19px}.source-document-card .document-card-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #c2d3df;border-radius:9px;text-decoration:none;font-size:14px}.source-document-card .document-card-actions a:first-child{background:#213e58;color:#fff;border-color:#213e58}
@media(max-width:900px){.mas-assistant[data-keyboard-open=true]{height:calc(var(--mas-chat-available-height,100dvh) - var(--mas-chat-inset,8px) - 8px)!important}}
@media(max-width:900px){.mas-assistant{--mas-chat-inset:max(8px,env(safe-area-inset-bottom,0px));left:auto!important;right:8px!important;top:auto!important;bottom:calc(var(--mas-keyboard-gap,0px) + var(--mas-chat-inset))!important;width:calc(100vw - 16px)!important;height:min(660px,78dvh,calc(var(--mas-chat-available-height,100dvh) - var(--mas-chat-inset) - 8px))!important;max-height:calc(var(--mas-chat-available-height,100dvh) - var(--mas-chat-inset) - 8px)!important;min-height:0;border-radius:14px}.mas-assistant.is-expanded{height:calc(var(--mas-chat-available-height,100dvh) - var(--mas-chat-inset) - 8px)!important}.mas-assistant>header{padding:10px 12px;min-height:58px}.mas-assistant h2{font-size:20px!important}.assistant-window-actions button{width:40px;height:40px;min-width:40px}.assistant-mode{padding:6px 12px}.assistant-disclosure{display:none}.mas-chat-form{padding:9px 12px}.mas-chat-form textarea{font-size:16px!important;line-height:1.4!important;min-height:44px}.mas-chat-send-row button{min-height:44px}.mas-chat-log{padding:0 11px 10px}.chat-bubble{font-size:14px!important}.mas-assistant[data-keyboard-open=true] .assistant-mode,.mas-assistant[data-keyboard-open=true] .mas-chat-empty,.mas-assistant[data-keyboard-open=true] .mas-chat-form>small{display:none}.mas-assistant[data-keyboard-open=true] .mas-chat-form>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mas-assistant[data-keyboard-open=true]>header{padding:5px 10px;min-height:48px}.mas-assistant[data-keyboard-open=true] .assistant-brand-icon{display:none}.source-document-card{padding:18px}.source-document-card .document-card-actions{flex-direction:column}}
