:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142c36;background:#f4f7f7;line-height:1.55;font-synthesis:none;--ink:#142c36;--muted:#4d6269;--line:#d7e2e3;--teal:#006b61;--white:#fff}
*{box-sizing:border-box}body{margin:0} [hidden]{display:none!important} .wrap{width:min(100% - 32px,1040px);margin:auto}.top{background:#fff;border-bottom:1px solid var(--line)}.top-inner{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:68px}.brand{display:flex;gap:10px;align-items:center;font-size:1.25rem;font-weight:800;text-decoration:none;color:var(--ink)}.mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--teal);color:white}.tag{font-size:.8rem;color:var(--muted)}.hero{padding:46px 0 22px;max-width:760px}.eyebrow{letter-spacing:.13em;font-size:.75rem;font-weight:750;color:var(--teal)}h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.1;letter-spacing:-.045em;margin:10px 0 16px}h2{font-size:1.25rem;line-height:1.3;margin:0}h3{font-size:1.05rem;margin:0 0 14px}p{margin:8px 0 16px}.subtle,small{color:var(--muted)}.hero>p:not(.eyebrow){font-size:1.05rem}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(16px,3vw,30px);margin:16px 0;box-shadow:0 3px 14px #142c3608}.section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.section-title p{color:var(--muted);margin:4px 0 0;font-size:.94rem}.step{font-size:.8rem;font-weight:750;color:var(--teal);border:1px solid var(--line);border-radius:8px;min-width:34px;padding:7px;text-align:center}.fields,.choices{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}label{display:flex;flex-direction:column;gap:5px;font-size:.9rem;font-weight:650;min-width:0;margin-bottom:12px}small{font-size:.8rem;font-weight:400}input:not([type=radio]):not([type=checkbox]),select{font:inherit;color:var(--ink);background:white;border:1px solid #a8b9bc;border-radius:8px;min-height:46px;padding:10px 12px;width:100%}input::placeholder{color:#687c82}input[type=radio],input[type=checkbox]{accent-color:var(--teal);width:18px;height:18px;flex-shrink:0}fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;margin:18px 0 0;min-width:0}legend{font-weight:700;padding:0 6px}.choices{border:0;padding:0;margin:0;gap:10px}.choices label,.confirm{flex-direction:row;align-items:center;gap:9px;line-height:1.4}.choices label{border:1px solid var(--line);padding:12px;border-radius:10px;margin:0;cursor:pointer}.choices label:has(input:checked){border-color:var(--teal);background:#edf8f5}.example{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;font-size:.8rem;color:var(--muted)}button{font:inherit;font-weight:700;cursor:pointer;min-height:44px;border-radius:9px;padding:10px 16px}.secondary{background:white;border:1px solid var(--teal);color:var(--teal)}.primary{width:100%;background:var(--teal);color:white;border:1px solid var(--teal);display:flex;justify-content:center;gap:12px;margin-top:12px}.primary:hover{background:#00574f}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #168e86;outline-offset:3px}details{border:1px solid var(--line);border-radius:10px;margin:14px 0;padding:12px}summary{cursor:pointer;font-weight:700;min-height:28px}summary span{font-size:.8rem;color:var(--muted);font-weight:400;margin-left:8px}details[open]>summary{margin-bottom:14px}.note{font-size:.85rem;color:var(--muted);background:#f4f7f7;padding:12px;border-radius:8px;grid-column:1/-1}.confirm{font-weight:500;margin-top:18px;align-items:flex-start}#error{background:#fff2ef;color:#902b19;border:1px solid #c57465;padding:12px;border-radius:8px;margin:12px 0}[aria-invalid=true]{border:2px solid #a93422!important}.result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:12px}.result-card{border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.result-card.leader{border:2px solid var(--teal)}.amount{font-size:clamp(1.35rem,3vw,1.9rem);font-weight:800;letter-spacing:-.03em;color:var(--teal);overflow-wrap:anywhere;line-height:1.2}.metric{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:8px 0;font-size:.82rem;align-items:flex-start}.metric strong{text-align:right;overflow-wrap:anywhere;min-width:0;max-width:60%}.metric span{color:var(--muted)}.conclusion{font-weight:700;font-size:1.05rem}.warning{color:#9d351a;font-weight:700}.table-scroll{overflow:auto;max-height:420px}table{border-collapse:collapse;font-size:.8rem;width:100%}th,td{padding:8px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}thead th{position:sticky;top:0;background:#f4f7f7}caption{text-align:left;font-weight:700;margin-bottom:8px}.privacy{padding:22px 0;color:var(--muted)}.privacy h2{font-size:1rem;color:var(--ink)}.footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:20px 0 32px;border-top:1px solid var(--line);font-size:.82rem;color:var(--muted)}a{color:var(--teal)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.wrap{width:calc(100% - 24px)}.hero{padding:28px 0 12px}.fields,.choices{grid-template-columns:1fr;gap:8px}.tag{text-align:right;font-size:.73rem}.panel{border-radius:14px}.result-grid{grid-template-columns:1fr}fieldset{padding:12px}.primary{min-height:50px}.metric{font-size:.86rem}}

/* PR 11: results hierarchy, mobile-safe charts and touch controls. */
.hero{padding-top:clamp(24px,5vw,56px)}.section-title h2{letter-spacing:-.015em}.result-card{display:flex;flex-direction:column;gap:3px}.result-card>p{margin:3px 0 9px}.result-card h3{padding-bottom:8px;border-bottom:1px solid var(--line)}.result-card.leader{background:#f3faf7}.chart-section{margin-top:22px;border:1px solid var(--line);border-radius:14px;padding:clamp(12px,2.4vw,22px);min-width:0}.chart-section>label{max-width:360px}.chart-section h3{margin-bottom:4px}.chart-figure{margin:0}.chart-area{min-width:0;overflow:hidden;background:#f8faf9;border-radius:8px;border:1px solid var(--line)}.chart-area svg{display:block;width:100%;height:auto}.chart-gridline{stroke:#d7e2e3;stroke-width:1}.chart-zero{stroke:#809599;stroke-width:1.3}.chart-axis{font-size:12px;fill:#4d6269}.chart-cursor{stroke:#142c36;stroke-width:1.4;stroke-dasharray:4 4;pointer-events:none}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;list-style:none;font-size:.82rem;color:var(--ink);margin:12px 0}.chart-legend li{display:flex;gap:7px;align-items:center}.legend-key{width:30px;height:10px;flex:none}.month-control{margin-top:14px}.month-control input[type=range]{width:100%;accent-color:var(--teal);min-height:44px;padding:0;border:0}.chart-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}.chart-value{min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px;display:grid;gap:3px;font-size:.8rem}.chart-value strong{font-size:.98rem;overflow-wrap:anywhere}.chart-value span{color:var(--muted)}button:disabled{opacity:.55;cursor:not-allowed}.choices label{min-height:48px}.note{overflow-wrap:anywhere}.conclusion{overflow-wrap:anywhere}
@media(max-width:600px){.top-inner{min-height:58px}.brand{font-size:1.12rem}.chart-section{margin-top:16px}.chart-legend{gap:6px 12px}.chart-axis{font-size:15px}.chart-values{grid-template-columns:1fr}.chart-value{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.chart-value strong{text-align:right;min-width:0;max-width:60%}.result-card{padding:14px}.hero h1{font-size:clamp(1.85rem,8vw,2.7rem)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.assumptions{font-size:.82rem;color:var(--muted);border-left:3px solid var(--teal);padding:8px 12px;background:#f4f7f7;overflow-wrap:anywhere}#refine h3{margin:18px 0 8px}#refine fieldset{margin-top:12px}#refine .fields{min-width:0}

#methodology{scroll-margin-top:16px}#methodology h3{margin:20px 0 8px}#methodology code{overflow-wrap:anywhere}#methodology li{margin:6px 0}.formula{font-weight:650;background:#f4f7f7;border-left:3px solid var(--teal);padding:12px;overflow-wrap:anywhere}#audit-history .metric strong{font-variant-numeric:tabular-nums}


/* PR 14 — local report preview and paper-specific layout. */
.export-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.report-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.report-header img{flex-shrink:0;max-width:85px;height:auto}
.report-url{font-size:.82rem;overflow-wrap:anywhere;color:var(--muted)}
.report h3{margin-top:24px;margin-bottom:10px}
.report h4{margin:12px 0 8px}
.report-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;border-bottom:1px solid var(--line);padding:6px 0;margin:0;font-size:.85rem;break-inside:avoid}
.report-line span{color:var(--muted)}.report-line strong{text-align:right;overflow-wrap:anywhere}
.report-result{border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0}
.report-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.report-actions .primary{width:auto;margin-top:0}
#print-empty{display:none}
@media(max-width:600px){.report-header img{max-width:64px}.report-line{font-size:.8rem}.report-actions{display:grid;grid-template-columns:1fr}.report-actions button{width:100%}.export-entry button{width:100%}}
@page{size:A4;margin:14mm 12mm}
@media print{
  html,body{background:#fff!important;color:#111!important;font-size:10pt}
  body>header,body>footer,main> :not(#report):not(#print-empty){display:none!important}
  main.wrap{width:auto;max-width:none;margin:0;padding:0}
  #report:not([hidden]){display:block!important;border:0;box-shadow:none;padding:0;margin:0}
  #report[hidden]+#print-empty{display:block}
  #report .report-controls{display:none!important}
  #report h2{font-size:17pt}#report h3{font-size:12pt;break-after:avoid}#report h4{break-after:avoid}
  #report .report-header{break-inside:avoid}#report .report-line{font-size:9pt}
  #report .report-result{break-inside:auto;border-radius:0}
  #report .table-scroll{overflow:visible;max-height:none;max-width:none}
  #report table{width:100%;table-layout:fixed;font-size:6.7pt}
  #report th,#report td{white-space:normal;overflow-wrap:anywhere;padding:3px 2px}
  #report thead{display:table-header-group}#report thead th{position:static}
  #report tr{break-inside:avoid}
}

.skip-link{position:absolute;left:12px;top:8px;transform:translateY(-200%);background:#fff;border:2px solid var(--teal);padding:10px 14px;border-radius:8px;z-index:10}.skip-link:focus{transform:none}.example #clear-data{margin-left:auto}@media(max-width:600px){.example #clear-data{margin-left:0;width:100%}}@media print{.skip-link{display:none!important}}


/* Constrain intrinsic widths across browser engines; do not hide page overflow. */
@media screen {
  .wrap{width:min(calc(100% - 32px),1040px);max-width:100%}
  .panel,fieldset,details,.chart-section,.chart-figure,.chart-area,.table-scroll{min-width:0;max-width:100%}
  .section-title>div,.report-header>div,.top-inner>*{min-width:0}
  input:not([type=radio]):not([type=checkbox]),select,button{min-width:0;max-width:100%;margin-inline:0}
  button{white-space:normal;overflow-wrap:anywhere}
  .metric>span,.chart-value>span{min-width:0;overflow-wrap:anywhere}
  .chart-area>svg{max-width:100%;width:100%;height:auto;aspect-ratio:640/250}
  .chart-legend li{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .legend-key{flex:0 0 30px;max-width:30px;max-height:10px}
}
@media screen and (max-width:600px){
  .wrap{width:calc(100% - 24px)}
  .fields,.choices,.result-grid,.chart-values,.report-actions{grid-template-columns:minmax(0,1fr)}
  .example>*,.export-entry>*{max-width:100%;min-width:0;overflow-wrap:anywhere}
  .chart-section>label{width:100%;max-width:100%}
}


/* Native select text must stay within its own control, including WebKit's
   internal rendering; selected choices have concise labels and adjacent help. */
@media screen {
  select{display:block;overflow:hidden;text-overflow:ellipsis}
  select, input:not([type=radio]):not([type=checkbox]){box-sizing:border-box}
}


/* Voluntary sharing and institutional contact; no overlays or tracking. */
.community{scroll-margin-top:16px}
.community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.community-item{min-width:0;border:1px solid var(--line);border-radius:12px;padding:clamp(12px,2.4vw,20px)}
.community-item h3{margin:0 0 10px}
.community-item p{overflow-wrap:anywhere}
.community-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.community-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--teal);border-radius:9px;color:var(--teal);font-weight:700;text-decoration:none;text-align:center;max-width:100%;overflow-wrap:anywhere}
.community-link.community-primary{background:var(--teal);color:white}
.share-address{font-size:.82rem;margin:10px 0}
.share-address input{font-weight:400;font-size:.82rem}
#share-status{font-size:.82rem;min-height:1.2em;margin:8px 0}
.export-entry>a{font-size:.85rem;font-weight:650}
@media(max-width:600px){.community-grid{grid-template-columns:minmax(0,1fr)}.community-actions>*{width:100%}.community-primary{width:100%}}
