:root{color-scheme:light;--ink:#142e33;--muted:#4e6465;--green:#126556;--edge:#cad7d3;--paper:#f4f6f2;--white:#fff;--accent:#f3d48b;font:16px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-underline-offset:3px}header{background:#fff;border-bottom:1px solid var(--edge)}.bar,main{width:min(1320px,94%);margin:auto}.bar{min-height:74px;display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);margin-right:auto}.brand span{font-size:.7rem;letter-spacing:.13em;font-weight:700}.brand strong{display:block;font:700 1.4rem/1.1 Georgia,serif;letter-spacing:-.04em}.bar nav,.actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.bar nav a{font-size:.92rem;text-decoration:none;font-weight:600;color:var(--ink)}.bar nav a:hover,.open:hover{text-decoration:underline}main{padding:2.3rem 0 4rem;min-height:74vh}section{margin-bottom:2.5rem}.hero{border-radius:1rem;background:#123d3e;color:white;display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden}.hero-text{padding:clamp(2rem,4vw,4rem)}.hero-image img{width:100%;height:100%;max-height:395px;object-fit:cover;display:block}.hero .kicker{color:var(--accent)}.hero h1,.title h1,main>h1,.panel h1{font-family:Georgia,serif;letter-spacing:-.046em;font-weight:500;line-height:1.08}.hero h1{font-size:clamp(2.65rem,4.7vw,4.9rem);margin:.5rem 0 1rem}.intro{max-width:36rem;color:#e1ebe5;font-size:1.08rem;margin-bottom:1.5rem}.kicker{text-transform:uppercase;letter-spacing:.11em;font-size:.72rem;font-weight:700}.button,button{font:600 .92rem/1.25 inherit;font-family:inherit;font-size:.94rem;font-weight:650;border:1px solid transparent;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border-radius:.45rem;min-height:43px;padding:.6rem 1.08rem;cursor:pointer;text-decoration:none}.secondary{border-color:var(--edge);background:#fff;color:var(--ink)}button:disabled{opacity:.55;cursor:wait}button:hover,.button:hover{filter:brightness(.93)}button.text{background:transparent;color:var(--green);padding:.35rem}.google,.hero .button{background:white;color:#163834}.g-icon{font-weight:800;color:#3367bc;font-size:1.22rem}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.card,.panel{border:1px solid var(--edge);border-radius:.8rem;background:#fff}.card{color:var(--ink);text-decoration:none;padding:1.35rem;display:flex;flex-direction:column;position:relative;transition:border-color .15s,box-shadow .15s}.card:hover{border-color:var(--green);box-shadow:0 3px 14px #123d3e10}.card-line,.section-head{display:flex;align-items:center;gap:.8rem}.section-head{justify-content:space-between;flex-wrap:wrap;margin-bottom:1rem}.section-head h2{margin:0}.section-head>span,.muted{color:var(--muted)}.glyph{border-radius:.55rem;background:#e5f0e7;color:#226e5d;font-size:1.35rem;display:grid;place-items:center;width:2.55rem;height:2.55rem}.card h3{font-size:1.27rem;line-height:1.25;margin:1.1rem 0 .45rem}.card p{color:var(--muted);margin:0 0 1.2rem}.open{margin-top:auto;color:var(--green);font-weight:650;font-size:.9rem}h2{font-size:1.55rem;line-height:1.2;letter-spacing:-.035em}h3{letter-spacing:-.02em}.title h1,main>h1,.panel h1{font-size:clamp(2.1rem,4vw,3.8rem);margin:.5rem 0}.crumb,.title p{color:var(--muted)}.title{margin:1.1rem 0 1.5rem}.panel{padding:clamp(1rem,2.4vw,2rem)}.panel h2:first-child{margin-top:0}.prose{max-width:58rem}.prose li{margin:.7rem 0}.prose h2{margin-top:1.8rem}.upload,details.editor{border:1px solid var(--edge);border-radius:.5rem;padding:.8rem;margin-bottom:1rem}.upload{background:#f4f8f4}summary{cursor:pointer;font-weight:650;min-height:32px}label{display:grid;gap:.32rem;font-weight:600;font-size:.9rem;color:#334d4c}label.check{display:flex;align-items:center;margin:.75rem 0}.check input{width:18px;height:18px;min-height:18px}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin:1rem 0}.field-grid .wide{grid-column:1/-1}input,select,textarea{font:inherit;color:var(--ink);border:1px solid #a7bcb5;border-radius:.35rem;background:white;padding:.55rem;min-height:42px;max-width:100%;min-width:0}input[type=file]{background:#fff;max-width:100%;width:min(100%,23rem)}textarea{resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #419c88;outline-offset:2px}.scroll{overflow:auto;max-width:100%;max-height:58vh;overscroll-behavior:contain}table{border-collapse:separate;border-spacing:0;font-size:.86rem;width:100%;font-variant-numeric:tabular-nums}td,th{padding:.55rem .65rem;vertical-align:top;text-align:left;border-bottom:1px solid #dbe5de;min-width:6.4rem;white-space:pre-wrap;overflow-wrap:anywhere}th{position:sticky;top:0;background:#e5efe9;font-weight:650;z-index:1}th button{min-height:30px;font-size:.84rem;padding:.1rem .2rem;color:var(--ink);background:transparent}td.num{text-align:right}td input,td select{min-width:8rem;width:100%}td input[type=text]{min-width:12rem}small,.hint{font-size:.84rem;font-weight:400;color:var(--muted)}.report-section{margin:2rem 0}.report-section .actions,.editor .actions,.panel>.actions{margin:1rem 0}.report-section canvas{max-width:100%;display:block}.callout,#app-alert:not(:empty){background:#e9f2eb;border-left:4px solid var(--green);padding:.8rem 1rem;margin:1rem 0}.error,#app-alert.error:not(:empty){background:#fff1e7;border-left-color:#944021}.ref-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1rem;margin-top:1rem}.ref h2{font-size:1.15rem}.ref dt{font-weight:650}.ref dd{margin:0 0 .5rem;color:var(--muted)}.photo{border-radius:50%;width:50px}.skip{position:absolute;top:-80px}.skip:focus{top:4px;background:white;z-index:4}footer{border-top:1px solid var(--edge);background:#fff}footer .bar{font-size:.86rem;color:var(--muted)}#global-status:not(:empty){position:fixed;bottom:1rem;left:3%;max-width:92%;padding:.75rem 1rem;background:var(--ink);color:#fff;border-radius:.5rem;z-index:3}[hidden]{display:none!important}.busy{cursor:progress}@media(max-width:850px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.bar{padding:.6rem 0}.hero-image img{max-height:none}}@media(max-width:600px){.bar nav{gap:.8rem;flex-wrap:wrap}.bar nav a{min-height:32px}.hero{grid-template-columns:1fr}.hero-image{max-height:140px}.hero-image img{height:140px}.cards{grid-template-columns:1fr}.section-head{align-items:flex-start}.bar, main{width:94%}main{padding-top:1.1rem}.hero-text{padding:1.5rem}.panel{padding:1rem}.actions{gap:.6rem}h2{font-size:1.35rem}}
main,.field-grid>*,.editor,.panel,label{min-width:0}
.panel p,.panel li,.panel dd,.panel h3,.ref-grid a,.callout{overflow-wrap:anywhere}
.field-grid select{width:100%}

/* Working papers use a single overview followed by expandable evidence. */
.result-heading{background:#183651;color:white;border-radius:12px;padding:clamp(18px,3vw,32px);border-left:6px solid #54d1bd;margin:1rem 0}
.result-heading h3{font-size:clamp(1.45rem,3vw,2.3rem);line-height:1.16;margin:0;color:white}
.result-heading p{color:#d4e8ef;margin:.6rem 0 0}
.result-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.8rem;margin:1.2rem 0}
.result-metric{--accent:#00786f;--tint:#e6f6ef;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;min-width:0;padding:1rem 1.1rem;background:var(--tint);border-top:4px solid var(--accent);border-radius:8px}
.result-metric:nth-child(4n+2){--accent:#2258a1;--tint:#edf3fd}.result-metric:nth-child(4n+3){--accent:#64469c;--tint:#f2edfb}.result-metric:nth-child(4n){--accent:#96520c;--tint:#fff4df}
.result-metric strong{color:var(--accent);font-size:clamp(1.35rem,2vw,1.85rem);line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.result-metric>span{font-weight:650}.evidence{display:inline-block;color:#294e70;font-size:.84rem;text-decoration:underline;text-underline-offset:3px;padding:4px 0}
.result-metric .evidence{margin-top:auto}.result-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem;margin:1.25rem 0}
.result-insights section{border:1px solid #ccdce3;border-radius:10px;padding:1.1rem;min-width:0}.result-insights h3{margin:0 0 .9rem;color:#183651}
.finding{border-left:3px solid #00786f;padding:0 .85rem;margin:1rem 0}.finding.attention{border-color:#ad6819}.finding p{margin:.2rem 0}.finding strong{color:#164d4b}.finding.attention strong{color:#814206}
.bar-row{margin:1rem 0}.bar-row>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem}.bar-row strong{font-variant-numeric:tabular-nums}.bar-row meter{appearance:none;width:100%;height:12px;display:block;margin:.4rem 0;border:0;border-radius:6px;background:#e9eef1}.bar-row meter::-webkit-meter-bar{border:0;border-radius:6px;background:#e9eef1}.bar-row meter::-webkit-meter-optimum-value{border-radius:6px;background:#00786f}.bar-row:nth-of-type(2) meter::-webkit-meter-optimum-value{background:#2258a1}.bar-row:nth-of-type(3) meter::-webkit-meter-optimum-value{background:#64469c}.bar-row meter::-moz-meter-bar{background:#00786f;border-radius:6px}
.report-detail{border:1px solid #c8d8de;border-radius:8px;margin:.55rem 0;scroll-margin:12px}.report-detail>summary{padding:.75rem 1rem;background:#f2f6f8;color:#183651;border-radius:8px}.report-detail[open]>summary{background:#e6f2ef;color:#155b53}.report-detail .report-section{padding:0 1rem;margin:1rem 0}.report-detail .report-section>h3{display:none}.report-detail ul{padding-right:1rem}.report-detail td.num{white-space:nowrap}.report-detail th{color:#14394d}
@media(max-width:600px){
 .result-metrics{grid-template-columns:minmax(0,1fr);gap:.5rem}
 .result-metric{flex-flow:row wrap;align-items:baseline;justify-content:space-between;gap:.2rem .75rem;padding:.75rem}
 .result-metric strong{font-size:1.2rem;max-width:100%}
 .result-metric .evidence{flex-basis:100%;min-height:34px}
 .result-insights{grid-template-columns:minmax(0,1fr)}
}
#report canvas{display:block;width:100%;max-width:100%;height:166px;margin:.4rem 0}
.chart-legend{display:flex;flex-wrap:wrap;gap:.45rem 1rem;font-size:.86rem;margin:.6rem 0}
.chart-legend span::before{content:"";display:inline-block;width:.7rem;height:.7rem;border-radius:2px;background:#00786f;margin-right:.35rem}.chart-legend span:nth-child(2)::before{background:#2258a1}.chart-legend span:nth-child(3)::before{background:#754e9f}
.chart-values>summary{color:#2258a1;font-size:.88rem}.chart-values .report-section>h3{display:none}
#worksheet-controls{min-width:0;margin:0;padding:0;border:0}
#worksheet-controls>.actions{margin:1rem 0}
#import-status:not([hidden]){padding:.7rem .9rem;border-left:3px solid #944021;background:#fff1e7}
#ref-feedback:empty{display:none}
th[aria-sort] button{color:#125d51}
th[aria-sort="ascending"] button::after{content:"▲";font-size:.7em}
th[aria-sort="descending"] button::after{content:"▼";font-size:.7em}
@media(max-width:820px){
 input:not([type="checkbox"]),select,textarea{font-size:16px;min-height:44px}
 .bar nav a,footer .bar a{display:inline-flex;align-items:center;min-height:40px}
 label.check{min-height:40px;gap:.5rem}
 label.check input[type="checkbox"]{flex:0 0 18px;height:18px}
 summary,th button{min-height:36px}
 .result-metric .evidence{min-height:38px}
}
