/* Readable evidence and recoverable exploration, following the existing atlas. */
:root{--review-muted:#535f50;--review-line:#ced7c8}
.simple-intro>p,.simple-intro .weight-example,.priority-row p,.simple-details p,
.simple-examples-section>p,.simple-example-card p,.single-weight-note,
.simple-overlap,.simple-history-notice,.inspector .explain,.criteria-note,
.method-controls .criteria-note,.compact-section .criteria-note{
  font-size:12px;line-height:1.65;color:var(--review-muted)
}
.priority-title h3{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.priority-row{padding:13px 0}
.priority-row p{margin-top:6px;margin-bottom:7px}
.priority-foot small,.priority-foot button{font-size:11px;color:var(--review-muted)}
.priority-foot button{min-height:28px;padding:3px 0}
.priority-number-control{min-height:30px;flex-basis:76px;width:76px}
.priority-number-control>span{font-size:10px;color:#53604e}
.priority-number-control input{font-size:12px;width:38px}
.info-button,.priority-title .info-button{
  width:28px;height:28px;min-width:28px;min-height:28px;font-size:12px;
  line-height:26px;color:#315b4c;border-color:#8a9e84;margin-top:0;
  display:inline-flex;align-items:center;justify-content:center
}
.weight-stops button{font-size:11px;color:#53604e;min-height:30px}
.simple-summary,.simple-summary-row+.simple-summary-row,.simple-summary .text-button,
.simple-reset{font-size:11px}
.simple-summary{padding:10px 16px}
.simple-summary-row{flex-wrap:wrap;gap:6px}
.simple-details summary,.simple-actions .quiet-button,.simple-actions .solid-button,
.simple-example-card>strong,.simple-example-card button,.simple-map-view button{
  font-size:12px
}
.simple-example-card h3{font-size:14px}
.simple-details summary{padding-block:7px}
.legend-title{font-size:12px;font-weight:600}
.legend-labels,.legend-foot,.legend-scale-note,.category-legend>div{
  font-size:11px;line-height:1.5;color:var(--review-muted)
}
.legend-scale-note{max-width:none}
.map-heading .map-caption{font-size:11px;color:#4e5a49}
.colour-scale-control{margin-top:9px;padding-top:8px}
.colour-scale-control label{font-size:12px}
.colour-scale-control select{font-size:12px;min-height:34px;max-width:100%}
.colour-scale-control p{font-size:11px;line-height:1.5;color:var(--review-muted)}
.modal-head p,.modal-body p,.modal-body ul{font-size:12px}
.modal-close{min-width:36px;min-height:36px;display:grid;place-items:center}

.skip-link{
  position:fixed;top:8px;left:12px;z-index:1000;transform:translateY(-150%);
  background:var(--teal);color:#fffefa;padding:10px 15px;border-radius:6px;
  font-size:14px;box-shadow:0 3px 12px #173b3626
}
.skip-link:focus{transform:translateY(0);outline:3px solid var(--mustard);outline-offset:2px}
.review-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:9px;pointer-events:auto}
.review-tools button,.review-tools a{
  display:inline-flex;gap:5px;align-items:center;justify-content:center;
  min-height:34px;padding:6px 9px;border:1px solid #a2b49a;border-radius:5px;
  background:#fffefa;color:#215e5a;font-size:11px;font-weight:500;line-height:1.4
}
.review-tools button:hover,.review-tools a:hover{background:#e9f0e6;border-color:#71988b}
.review-tools button:disabled{opacity:.55;cursor:default}
.review-tools .text-button{border-color:transparent;background:transparent}
.review-notice{
  margin-top:9px;padding:9px 11px;border-left:3px solid var(--mustard);
  background:#faf1d9;color:#5d4a20;border-radius:3px;font-size:12px;line-height:1.6
}
.review-notice p{margin:3px 0;font-size:inherit;color:inherit}
.review-notice button{font-size:12px;min-height:30px;text-decoration:underline;color:#215e5a}
.comparison-panel{
  margin-top:12px;padding:13px;border:1px solid var(--review-line);
  border-radius:8px;background:#f8f8f1;color:var(--ink);font-size:12px;line-height:1.6
}
.comparison-panel h3{font-size:14px;margin:0 0 8px;line-height:1.4}
.comparison-panel p{font-size:12px;line-height:1.6;margin:6px 0;color:var(--review-muted)}
.comparison-panel ul{padding-left:17px;margin:7px 0}
.comparison-panel li{margin:5px 0}
.comparison-panel summary{font-size:12px;cursor:pointer;padding-block:5px;color:var(--teal)}
.comparison-panel .review-tools{margin-top:10px}
.comparison-panel button{font-size:12px}
.comparison-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}
.comparison-metrics>div{background:#fffefa;border:1px solid #dbe2d6;border-radius:5px;padding:8px}
.comparison-metrics strong{display:block;font:700 20px/1.3 var(--heading);color:var(--teal)}
.comparison-metrics small{font-size:11px;line-height:1.45;color:var(--review-muted)}

.area-summary{margin-top:15px;font-size:12px;line-height:1.6;min-width:0}
.area-summary h3{font:700 15px/1.4 var(--heading);margin:16px 0 8px}
.area-summary p{font-size:12px;line-height:1.65;color:var(--review-muted);margin:8px 0}
.metric-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0}
.metric-pair>div{padding:10px 9px;background:#edf2e8;border:1px solid #d2ddc9;border-radius:6px;min-width:0}
.metric-pair span{display:block;font-size:11px;font-weight:600;line-height:1.45;color:#38513e}
.metric-pair strong{display:block;font:700 22px/1.25 var(--heading);margin-top:5px;color:var(--teal)}
.metric-pair small{display:block;font-size:11px;line-height:1.45;color:var(--review-muted);margin-top:4px}
.area-contributors{list-style:none;padding:0;margin:9px 0}
.area-contributors li{padding:9px 0;border-bottom:1px solid #e1e4d9}
.area-contributors strong{display:block;font-size:12px;line-height:1.5;font-weight:600}
.area-contributors span{display:block;font-size:14px;font-weight:600;color:#215e5a;margin-top:3px}
.area-contributors small{display:block;font-size:11px;line-height:1.5;color:var(--review-muted);margin-top:3px}
.area-missing-note,.area-population-note{padding:9px 10px;background:#f6efd9;border-radius:5px;margin:10px 0;color:#5d4a20;font-size:12px;line-height:1.6}
.area-summary .area-population-note{background:#f0f2ea;color:#46543f}
.area-evidence-table-wrap,.results-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.area-evidence-table,.results-table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.5}
.area-evidence-table th,.area-evidence-table td,.results-table th,.results-table td{
  padding:9px 7px;vertical-align:top;text-align:left;border-bottom:1px solid #dce2d5
}
.area-evidence-table th,.results-table th{font-weight:600;color:#3d5544;background:#edf2e8}
.area-evidence-table{table-layout:fixed}
.area-evidence-table th:first-child{width:53%}
.area-evidence-table th:nth-child(2){width:27%}
.area-evidence-table th:last-child{width:20%}
.area-evidence-table td{overflow-wrap:anywhere}
.area-evidence-table small{display:block;font-size:11px;line-height:1.5;color:var(--review-muted);margin-top:4px}
.area-evidence-table caption{text-align:left;font:700 14px/1.5 var(--heading);padding:10px 0 8px;color:var(--ink)}
.area-evidence-table tbody th{font-weight:500;background:#f7f8f0;color:#334b3a}
.area-evidence-table .text-button{display:block;min-height:28px;font-size:11px;line-height:1.5;margin-top:4px;color:var(--teal);text-align:left}
.area-evidence-status{padding:8px 0;border-block:1px solid #dce2d5}
.area-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0}
.area-metrics>div{min-width:0;padding:10px 9px;border:1px solid #d2ddc9;border-radius:6px;background:#edf2e8}
.area-metrics strong{display:block;font:700 22px/1.25 var(--heading);margin-top:5px;color:var(--teal)}
.area-metrics small,.area-evidence small{display:block;font-size:11px;line-height:1.5;color:var(--review-muted)}
.area-evidence{font-size:12px;line-height:1.6}
.area-original-values{max-width:100%;overflow:auto}
.area-original-values table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}
.area-original-values th,.area-original-values td{padding:8px 6px;text-align:left;border-bottom:1px solid #dce2d5}
.legend details{font-size:11px;line-height:1.5;color:var(--review-muted)}
.legend details>summary{font-size:12px;color:var(--teal);cursor:pointer;padding:5px 0}
.results-table{min-width:550px}
.results-table th{position:sticky;top:0;z-index:1}
.results-table button{font-size:12px;line-height:1.5;min-height:32px;text-align:left;color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.results-table td:not(:first-child){font-variant-numeric:tabular-nums}
.results-table tr:focus-within,.results-table tbody tr:hover{background:#f2f5ed}
.empty-map-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:var(--teal);color:#fffefa;border:1px solid var(--teal);border-radius:6px;
  padding:9px 13px;min-height:40px;font-size:13px;font-weight:600;margin-top:10px;
  pointer-events:auto
}
.empty-map-action:hover{background:#174b48}
.review-tools button:focus-visible,.empty-map-action:focus-visible,
.results-table button:focus-visible,.info-button:focus-visible{
  outline:2px solid #215e5a;outline-offset:3px
}

@media(max-width:960px){
  .info-button,.priority-title .info-button{width:32px;height:32px;min-width:32px;min-height:32px}
  .priority-foot button,.weight-stops button,.review-tools button,.review-tools a{min-height:38px}
  .simple-reset{font-size:12px;min-height:38px}
  .priority-toggle{width:22px;height:22px;flex-basis:22px}
  .legend{max-width:340px}
  .legend-title{font-size:12px}
  .legend-labels,.legend-foot,.legend-scale-note{font-size:11px}
  .map-heading .map-caption{font-size:11px}
  .simple-history-notice{font-size:11px;line-height:1.5}
  .simple-workspace>.inspector.has-selection{width:auto}
}
@media(max-width:400px){
  .priority-list{padding-inline:15px}
  .priority-title{column-gap:4px}
  .priority-title h3{font-size:12px}
  .priority-number-control{flex-basis:70px;width:70px;padding-inline:3px}
  .priority-number-control input{width:34px}
  .priority-number-control>span{font-size:10px}
  .legend{left:10px;right:53px;padding:10px}
  .legend-foot{align-items:flex-start}
  .metric-pair{gap:6px}
}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}
/* Placement of the review controls in the existing map workspace. */
.map-hint{display:none}
.legend-options{margin-top:9px;border-top:1px solid #d6dece;padding-top:7px;font-size:11px}
.legend-options summary{cursor:pointer;color:#215e5a;min-height:26px;font-weight:600}
.legend-options label{display:block;margin:6px 0;font-size:12px}
.legend-options select{width:100%;font-size:12px;padding:7px}
.legend-options p{font-size:11px;line-height:1.55;margin-top:7px}
.technical-breakdown{margin-top:18px;font-size:12px}
.technical-breakdown summary{cursor:pointer;font-weight:600;color:#215e5a;padding:10px 0}
.results-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
.results-controls label{font-size:12px;grid-row:1}
.results-controls input,.results-controls select{font-size:13px;min-height:40px;width:100%;grid-row:2}
.results-table td:first-child small{display:block;font-size:11px;color:#56624e}
.undo-button{font-size:11px;min-height:30px;text-align:left}
.mobile-show-map{display:none}
.map-header-label .review-tools{pointer-events:auto}
.review-feedback:empty{display:none}
.simple-summary .review-notice{font-size:11px}
.simple-summary .review-notice summary{cursor:pointer}
.simple-workspace>.inspector.has-selection{top:145px;width:340px}
@media(max-width:960px){.mobile-show-map{display:block;min-height:36px;font-size:12px}.simple-workspace>.inspector.has-selection{top:auto;width:auto}.review-tools{gap:5px;margin-top:6px}.review-tools button{font-size:10px;min-height:32px;padding:5px 7px}.simple-history-notice{top:160px}.results-controls{grid-template-columns:1fr}.results-controls label,.results-controls input,.results-controls select{grid-row:auto}.results-controls label[for=results-sort]{grid-row:3}}

.bottom-bar .credits-link{
  font-size:10px;min-height:24px;text-decoration:underline;text-underline-offset:2px
}
.atlas-citation{
  padding:12px 14px;border:1px solid var(--review-line);
  border-radius:6px;background:#edf2e8;overflow-wrap:anywhere
}
.citation-feedback:empty{display:none}

/* Phone map: reserve the screen for geography, with details still reachable. */
.legend .mobile-history-note,.legend-phone-text,.phone-map-actions{display:none}
@media(max-width:960px){
  .topbar .brand-sub{display:block;max-width:150px;margin-top:2px;font-size:8.5px;line-height:1.14}
}
@media(max-width:600px){
  #app{display:flex;flex-direction:column;height:100dvh;min-height:100dvh;overflow-y:visible}
  .topbar{position:relative;flex:none;height:90px;padding:0 12px 40px;gap:7px}
  .topbar .brand{gap:6px;min-width:0;flex-shrink:1}
  .topbar .brand-mark{width:26px;height:26px;flex-shrink:0}
  .topbar .wordmark{font-size:20px}
  .top-actions{gap:3px}
  .top-actions .quiet-button{min-width:32px;min-height:36px;padding:7px}
  .top-actions .icon{width:16px;height:16px}
  .language{padding:2px}
  .language button{min-height:30px;padding:4px 6px}
  .main-nav{top:auto;bottom:0;height:40px;padding:2px 7px;gap:2px;overflow-x:auto;scrollbar-width:none}
  .main-nav .navbtn{height:36px;flex:1 0 auto;padding:0 6px;font-size:10px;gap:3px}
  .main-nav .navbtn .icon{display:none}
  .workspace-heading{flex:none;height:auto;min-height:40px;padding:6px 12px;gap:5px}
  .workspace-heading h1{font-size:16px;line-height:1.25;margin-top:2px}
  .workspace-heading .eyebrow{font-size:7px;letter-spacing:.06em}
  .workspace-heading.explore-heading{display:block;padding-block:7px}
  .explore-heading .eyebrow{display:none}
  .explore-heading h1{margin:0;font-size:15px}
  .workspace-heading.explore-heading .intro{display:block;max-width:none;margin:3px 0 0;font-size:11px;line-height:1.4}
  .workspace{flex:1 0 300px;height:auto;min-height:300px;margin-top:0}
  .share-workspace{flex:1 0 300px;height:auto;min-height:300px;margin-top:0}
  .workspace .map-panel{height:100%}
  .mobile-tabs{flex:none;height:44px}
  .mobile-tabs button{font-size:11px;min-height:44px;gap:5px}
  .mobile-tabs .icon{width:16px;height:16px}
  .bottom-bar{flex:none;min-height:34px;padding:3px 10px}
  .bottom-bar .credits-link{margin-left:auto;min-height:28px}

  .map-panel .map-heading,.simple-workspace .map-heading{
    top:7px;left:8px;right:8px;display:grid;
    grid-template-columns:minmax(0,1fr) auto;gap:5px
  }
  .map-panel .map-header-label,.simple-workspace .map-header-label{
    grid-column:2;grid-row:1;max-width:none;position:relative
  }
  .phone-map-actions{
    display:grid;place-items:center;width:38px;height:38px;pointer-events:auto;
    border:1px solid #cbd2c4;border-radius:5px;background:#fffefa;color:var(--teal)
  }
  .phone-map-actions .icon{width:17px;height:17px}
  .phone-map-actions[aria-expanded="true"]{background:#e6eee4}
  .map-review-panel{
    display:none;position:absolute;top:calc(100% + 5px);right:0;width:max-content;
    max-width:min(320px,calc(100vw - 16px));padding:8px;z-index:2;pointer-events:auto;
    border:1px solid #cbd2c4;border-radius:6px;background:#fffefa;box-shadow:0 3px 14px #243a2b26
  }
  .phone-map-actions[aria-expanded="true"]+.map-review-panel{display:block}
  .map-panel .map-heading h2,.simple-workspace .map-heading h2{font-size:12px;line-height:1.35;padding:0}
  .map-panel .map-heading .map-caption{font-size:10px!important;line-height:1.4;padding:3px 0}
  .map-header-label .review-tools{gap:4px;margin-top:4px}
  .map-header-label .review-tools button,.map-header-label .review-tools a{min-height:36px;padding:5px 7px;font-size:11px;line-height:1.3}
  .map-panel .map-tools,.simple-workspace .map-tools{
    grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
    gap:5px;max-width:none;width:100%
  }
  .map-panel .map-heading .map-tools .geography{display:block;height:38px;min-height:38px;width:100%;max-width:none;margin:0;padding:6px 20px 6px 8px;font-size:11px}
  .map-panel .place-search input{height:38px;min-height:38px;padding:6px 8px;font-size:11px}
  #place-results{right:0;width:310px;max-width:calc(100vw - 16px);max-height:min(260px,45dvh)}
  #place-results button{min-height:40px}
  .map-panel .north{top:53px;right:20px;font-size:8px;pointer-events:none}
  .map-panel .north svg{height:21px}
  .map-panel #history-notice{display:none}
  .map-panel .map-controls,.relationships .map-controls{right:8px;bottom:21px}
  .map-panel .map-controls button{width:40px;height:40px}
  .map-panel .map-controls .icon{width:18px;height:18px}
  .map-panel .map-bottom-note{left:8px;right:8px;bottom:4px;font-size:8px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .map-panel .legend,.relationships .legend{left:8px;right:56px;bottom:21px;max-width:none;padding:8px 9px;max-height:52%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .legend .legend-title{font-size:11px;line-height:1.35;margin-bottom:5px}
  .legend .legend-gradient{height:8px}
  .legend .legend-labels{font-size:10px;line-height:1.35;margin-top:3px;gap:5px}
  .legend .legend-evidence{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:6px}
  .legend .legend-evidence .legend-foot{margin:0}
  .legend .legend-foot{font-size:10px;line-height:1.35;gap:5px;margin-top:5px}
  .legend .legend-scale-note{font-size:10px;line-height:1.4;margin-top:5px}
  .legend .legend-disclosures{margin-top:5px;border-top:1px solid #d6dece}
  .legend-disclosures:not(:has(details[open])){display:flex;flex-wrap:wrap;column-gap:12px}
  .legend .legend-options{margin:0;border:0;padding:0}
  .legend details>summary{min-height:32px;padding:7px 0;font-size:10px;line-height:1.4}
  .legend details p{font-size:11px;line-height:1.5}
  .legend details select{font-size:12px;min-height:38px}
  .legend .mobile-history-note{display:block;color:#785e30}
  .legend .mobile-history-note>summary{color:#785e30}
  .legend .mobile-history-note>p{margin:0 0 5px}
  .legend .empty-map-action{font-size:12px;min-height:38px;margin-top:7px;padding:7px 11px}
  .legend .overlap-legend{gap:6px;margin-top:7px}
  .legend .overlap-legend>div{font-size:10px;line-height:1.3;gap:6px}
  .legend .category-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
  .legend .category-legend>div{font-size:10px;line-height:1.35}
  .legend .bivariate-legend{grid-template-columns:10px 54px minmax(0,1fr);grid-template-rows:54px 11px;gap:3px 5px}
  .legend .biv-grid{width:54px;height:54px}
  .legend .biv-key span{font-size:9px}
  .legend .biv-key strong{font-size:10px}
  .legend .biv-cuts{font-size:9px}
  .map-panel .comparison-notice{left:8px;right:56px;bottom:auto;top:54px;max-width:none;font-size:10px;line-height:1.4;padding:6px 8px}
  #toast{bottom:82px;font-size:12px}
}
@media(max-width:350px){
  .legend-wide-text{display:none}
  .legend-phone-text{display:inline}
}
