/* FinGround shared reading and interaction scale. Loaded after page styles. */
:root{--fg-text:#20332b;--fg-muted:#52645a;--fg-border:#ccd8d0;--fg-brand:#185b43;--fg-surface:#fff;--fg-background:#f5f7f4;--fg-focus:#1769aa;--ink:var(--fg-text);--muted:var(--fg-muted);--line:var(--fg-border)}
html{font-size:100%;scroll-padding-top:88px}
body{font-size:1rem;line-height:1.65;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
button,select,input:not([type=checkbox]):not([type=radio]),summary{min-height:44px}
input[type=checkbox],input[type=radio]{width:20px;height:20px;accent-color:var(--fg-brand);flex-shrink:0}
input::placeholder,textarea::placeholder{color:#65756b;opacity:1}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--fg-focus)!important;outline-offset:3px!important}
p,li,h1,h2,h3{overflow-wrap:anywhere}
h1{font-size:clamp(1.75rem,2.5vw,2.25rem);line-height:1.35}
h2{line-height:1.4}p{line-height:1.75}
.supers-lnb nav a{font-size:15px!important;min-height:44px!important}
.supers-lnb summary{font-size:16px!important;height:auto!important;min-height:44px!important}
.supers-role,.lnb-account small{font-size:13px;color:#bacdd8}
.supers-lnb .lnb-account button{font-size:15px!important;min-height:44px}
.supers-lnb nav a[aria-current]{box-shadow:none;font-weight:700}
.article p,.weekly-lesson p,.analysis-box p,.analysis-box li{font-size:1rem;line-height:1.8;color:var(--fg-text)}
.article{max-width:80ch}.article>p{max-width:72ch}
.auth-fine,#provider-status{font-size:14px!important;color:var(--fg-muted);line-height:1.7}
.auth-card input{font-size:16px}.auth-card{padding:clamp(20px,4vw,32px)}
.company-card small,.company-finder .lab-fine,.finder-badge{font-size:14px!important;color:var(--fg-muted)}
.company-card dl{gap:10px}.company-card dd{font-variant-numeric:tabular-nums}
.table-wrap{max-width:100%;overflow:auto}th,td{font-size:15px;line-height:1.6}
.app-shell .page{max-width:1360px;padding:32px clamp(16px,3vw,40px) 64px}
.refresh-btn,.live-status{font-size:14px}
.welcome h1{font-size:clamp(26px,3vw,34px);line-height:1.4}
.welcome>div>p:last-child,.brief-copy p,.market-brief>p{font-size:16px;line-height:1.75}
.eyebrow,.ai-label,.tag,.region-badge,.rank-badge,.ticker{font-size:12px}
.section-heading h2,.rail-head h3{font-size:18px}
.text-btn,.primary-btn,.filter,.sort-tabs button,.region-tabs button{font-size:14px}
.filter-row,.story-badges,.story-foot,.section-heading{flex-wrap:wrap;gap:10px}
.source,.impact,.rail-head>small{font-size:14px;color:var(--fg-muted)}
.story-card{padding:24px}.story-card h3{font-size:20px;line-height:1.5}
.story-card>p{font-size:16px;line-height:1.75;color:var(--fg-muted);max-width:72ch}
.score{width:56px;height:56px;font-size:16px}.score small{font-size:11px;color:var(--fg-muted)}
.bookmark,.close-btn{min-width:44px;min-height:44px}
.cause-node small,.cause-node p{font-size:13px;color:var(--fg-muted)}
.cause-node strong{font-size:15px}.brief-grid{grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:24px}
.cause-flow{flex-wrap:wrap;gap:16px}.cause-node{min-width:0}
.source-row strong,.source-row small,.source-row span,.event-guide p,.event-guide small{font-size:14px;line-height:1.65}
.source-rows{max-height:420px}.source-row{padding:14px 0}
.detail-drawer{width:min(680px,100%);height:100dvh;z-index:120}
.overlay{z-index:110}.detail-hero h2{font-size:clamp(24px,3vw,30px);line-height:1.5}
.detail-hero p{font-size:14px;color:#d3e3d9}.detail-hero .source{color:#d3e3d9}
.analysis-box h3{font-size:19px}.analysis-box>small{font-size:13px;letter-spacing:.03em}
.analysis-box{padding:24px}.detail-body{padding:24px}.analysis-box a{color:var(--fg-brand);text-decoration:underline}
.research-refine{padding:16px;background:#edf3ef;border:1px solid var(--fg-border);border-radius:12px;font-size:15px}
.research-refine label{min-height:44px}.research-refine #resultCount{font-size:14px;font-weight:600}
.loading-state,.error-state{font-size:16px;line-height:1.75;padding:24px}
.footer-policies a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
@media(max-width:1100px){.brief-grid{grid-template-columns:1fr}.cause-flow{justify-content:flex-start}}
@media(max-width:900px){.app-shell .page{padding:24px 16px 48px}.welcome{align-items:flex-start;gap:16px;flex-wrap:wrap}.supers-lnb{max-width:calc(100vw - 48px)!important}}
@media(max-width:600px){.story-card{padding:20px 16px}.story-top{gap:12px}.story-card h3{font-size:19px}.section-heading{align-items:flex-start}.detail-body{padding:16px}.detail-hero{padding:28px 20px}.analysis-box{padding:20px 16px}.research-refine{gap:12px}.research-refine label{flex-wrap:wrap}.source{flex-wrap:wrap}.cases,.impact-grid{grid-template-columns:1fr}.company-card{padding:18px}.company-card dl{font-size:15px}.field-grid>*{min-width:0}.auth-card{margin:20px auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Keep mobile actions understandable and modal layers consistent. */
body.market-shell .assistant-panel { z-index:120; height:100dvh; }
@media(max-width:760px) {
 body.market-shell .welcome { flex-direction:column; gap:16px; }
 body.market-shell .welcome .primary-btn { font-size:14px; padding:12px 16px; }
}
input[type=email],input[type=text],input[type=password],textarea { font-size:16px!important; }
h1,h2,h3 { word-break:keep-all; overflow-wrap:break-word; }
/* Research filters: grouped controls and removable selections. */
.filter-panel{background:#fff;border:1px solid #ccd8d0;border-radius:16px;padding:16px 20px;margin:20px 0 12px}
.filter-panel summary{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:17px;font-weight:700;list-style:none}
.filter-panel summary::-webkit-details-marker{display:none}
.filter-panel #filterCount{font-size:13px;background:#e8f2ed;color:#185b43;padding:4px 10px;border-radius:20px}
.filter-toggle{margin-left:auto;font-size:14px;color:#52645a;font-weight:400}
.filter-help,.filter-label{font-size:14px;color:#52645a;margin:12px 0 8px}
.filter-panel .research-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:16px 0}
.filter-panel .source-select{display:flex;align-items:center;gap:10px;flex:1;min-width:220px}
.filter-panel select{font-size:16px;padding:10px 12px;border:1px solid #a8bcb0;border-radius:8px;background:#fff;max-width:100%;min-width:0}
.filter-panel .source-select select{width:100%}
.filter-panel .filter-row{flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.filter-panel .filter{font-size:14px;padding:10px 16px;min-height:44px}
.filter-panel .research-refine{padding:16px 0 0;border:0;border-top:1px solid #e1e8e3;border-radius:0;background:white;margin-bottom:0}
.active-filters{display:flex;flex-wrap:wrap;gap:8px}
.active-filters button{border:1px solid #96b9a5;background:#eaf4ee;color:#174c36;border-radius:24px;padding:8px 14px;font-size:14px;max-width:100%;overflow-wrap:anywhere}
.active-filters button span{margin-left:8px;font-size:18px}
.filter-results{font-size:14px;color:#52645a;margin:14px 0 20px}
#research .sort button{font-size:14px;min-height:44px;padding:10px 12px}
@media(max-width:760px){#research .section-title{flex-direction:column;align-items:stretch;gap:16px}#research .sort{display:flex;align-self:flex-start;max-width:100%}#research .sort button{flex:1;white-space:nowrap}.filter-panel{padding:12px 16px}.filter-panel .research-controls{flex-direction:column;align-items:stretch}.filter-panel .source-select{min-width:0;flex-direction:column;align-items:stretch}.filter-panel .research-refine{align-items:stretch;flex-direction:column}.filter-panel .research-refine label{justify-content:space-between}.filter-panel .research-refine label:has(input){justify-content:flex-start}.filter-panel .region-row{display:flex}.filter-panel .region{flex:1}}
.filter-panel .region-row{width:auto;max-width:100%;display:flex;gap:4px}
.filter-panel .region{font-size:14px;white-space:nowrap;padding:10px 16px;min-width:64px}
#research{scroll-margin-top:80px}
