/* PRCS explorer extends the approved PRenDatos design system. Changes here are
   isolated from the three released pages. Width-only chart observers in JS
   prevent redraw loops when content height changes. */
.header-inner,main,.footer-inner{max-width:1480px}.header-inner{gap:20px}.brand img{width:230px}.intro-row{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:26px}.intro-row h1{font-size:34px}.intro{margin-bottom:0}.period-badge{padding-left:25px;border-left:1px solid var(--line);flex-shrink:0}.period-badge strong{font-size:18px;display:block}.period-badge span{font-size:12px;color:var(--muted)}
.explorer-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:28px}.explorer-content{min-width:0}.variable-library{align-self:start;position:sticky;top:22px;max-height:calc(100vh - 44px);overflow-y:auto;padding-right:12px;scrollbar-width:thin}.variable-library h2{font-size:18px;margin-bottom:16px}.variable-library input{width:100%;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;min-height:42px}.library-help{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0 24px}.variable-group{margin:0 0 20px}.variable-group h3{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 9px}.variable-choice{display:block;width:100%;text-align:left;font-size:13px;border:0;border-radius:7px;background:transparent;padding:9px 11px;min-height:38px;margin:2px 0;line-height:1.4}.variable-choice[aria-pressed=true]{background:var(--teal-soft);color:#066b65;box-shadow:inset 3px 0 var(--teal);font-weight:650}.catalog-note{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.scope-controls{display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:20px}.control-label{display:block;font-size:11px;letter-spacing:.04em;color:var(--muted);margin-bottom:7px}.scope-controls .toggle button{font-size:13px;padding:8px 14px;min-height:39px}.control-end{margin-left:auto;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.uncertainty-control{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);cursor:pointer}.uncertainty-control input{accent-color:#066b65;width:15px;height:15px}.text-button{background:transparent;border:0;color:#066b65;padding:5px 0;font-size:12px;min-height:32px;text-align:left}.text-button:hover{background:transparent;text-decoration:underline}
.map-card,.comparison-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:24px}.map-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-height:84px}.view-kicker{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#066b65;margin:0 0 5px;font-weight:650}.map-heading h2{font-size:24px}.measurement-label{font-size:12px;color:var(--muted);margin:6px 0 0;max-width:650px}select{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 30px 9px 11px;max-width:100%;min-height:39px;font-size:12px}#category-control{max-width:290px;min-width:150px}#category-control label,.inspection-panel>label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}#category-select{width:100%}.map-and-detail{display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:22px;margin-top:16px;align-items:start}.map-column{min-width:0}.map-legend{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:12px}.legend-gradient{width:125px;height:10px;background:linear-gradient(to right,#e5f2f0,#087f78);border-radius:2px}.legend-missing{background:#dce2e5;width:11px;height:11px;border:1px solid #cdd6db}.scale-note{flex-basis:100%;font-size:10px;margin-top:2px}#map-note{font-size:11px;min-height:34px}.map-hint{font-size:11px;color:var(--muted);margin:14px 0 0}#prcs-map a:focus-visible path{stroke:#163143;stroke-width:2.5}.inspection-panel{border-left:1px solid var(--line);padding-left:21px;min-height:340px}#area-select{width:100%;margin-bottom:20px}.inspection-panel h3{font-size:19px;line-height:1.3;min-height:25px;margin:0 0 3px}.inspection-panel #area-kind{font-size:11px;color:var(--muted);margin-bottom:14px;min-height:17px}.inspection-panel #area-value{display:block;font-size:32px;letter-spacing:-.04em;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}.inspection-panel #area-unit{font-size:11px;color:var(--muted);margin:5px 0 8px;min-height:17px}.inspection-panel #area-moe{font-size:11px;color:var(--muted);line-height:1.5;min-height:33px;margin:0 0 12px}.inspection-panel dl{border-top:1px solid var(--line);padding-top:10px;margin:0;font-size:11px}.inspection-panel dl div{display:flex;gap:8px;justify-content:space-between;margin:7px 0}.inspection-panel dt{color:var(--muted)}.inspection-panel dd{text-align:right;margin:0;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.chart-pair{display:grid;grid-template-columns:1.05fr 1fr;gap:20px;margin-top:20px;align-items:start}.comparison-card{min-width:0}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:20px}.section-heading h2{font-size:18px}.section-heading p{font-size:11px;color:var(--muted);margin:5px 0 0;min-height:32px}.compact-select select{padding-top:6px;padding-bottom:6px;min-height:32px;max-width:105px;font-size:11px}.bar-chart{min-height:272px}.bar-axis{display:flex;justify-content:space-between;margin-left:43%;padding-left:12px;padding-right:2px;color:var(--muted);font-size:10px;margin-bottom:5px}.bar-row{display:grid;grid-template-columns:43% 1fr;align-items:center;width:100%;background:transparent;border:0;border-radius:4px;padding:6px 0;min-height:37px;text-align:left;gap:0;position:relative;font-weight:400}.bar-row:hover,.bar-row.is-active{background:#eef7f5}.bar-label{font-size:11px;line-height:1.3;padding:0 12px 0 2px;overflow-wrap:anywhere}.bar-track{display:block;position:relative;height:25px;margin-left:12px}.bar-fill{position:absolute;left:0;top:8px;height:9px;background:#66afa7;border-radius:0 2px 2px 0;min-width:0}.bar-row.is-active .bar-fill{background:var(--teal)}.bar-value{position:absolute;right:0;top:-5px;font-size:10px;font-variant-numeric:tabular-nums;background:rgba(255,255,255,.88);padding-left:3px;line-height:1.2}.bar-interval{position:absolute;top:12px;border-top:1px solid #163143;min-width:1px;pointer-events:none}.bar-interval::before,.bar-interval::after{content:'';position:absolute;top:-4px;height:7px;border-left:1px solid #163143}.bar-interval::before{left:0}.bar-interval::after{right:0}.bar-missing{font-size:11px;color:var(--muted)}.chart-footnote{font-size:11px;color:var(--muted);line-height:1.6;margin:18px 0 0}.empty-chart{padding:28px 14px;color:var(--muted);background:var(--paper);font-size:13px;border-radius:8px}.evidence-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0;font-size:11px;color:var(--muted)}.evidence-bar button{font-size:12px;flex-shrink:0}.source-details{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;font-size:13px}.source-details summary{font-weight:500}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:22px 0;font-size:12px}.source-grid h3{font-size:14px}.source-grid p{color:var(--muted)}.source-id{font-size:11px;line-height:1.7}.table-scroll{max-height:360px}.table-scroll th:not(:first-child),.table-scroll td:not(:first-child){text-align:right}.table-scroll .selected-row td{background:#e5f4f1}
@media(min-width:1500px){.map-and-detail{grid-template-columns:minmax(0,1fr) 260px}}@media(max-width:1160px){.explorer-layout{grid-template-columns:185px minmax(0,1fr);gap:20px}.control-end{margin-left:0}.map-and-detail{grid-template-columns:minmax(0,1fr) 210px;gap:14px}.inspection-panel{padding-left:14px}.map-card,.comparison-card{padding:20px}.map-heading h2{font-size:21px}.chart-pair{grid-template-columns:1fr}.bar-chart{min-height:200px}.bar-label{font-size:12px}.bar-axis,.bar-row{font-size:12px}.bar-row{min-height:40px}.bar-value{font-size:11px}}
@media(max-width:900px){.header-inner{align-items:flex-start;flex-direction:column;gap:8px;padding-top:16px;padding-bottom:12px}.intro-row{align-items:flex-start}.intro-row h1{font-size:29px}.period-badge{padding-left:14px}.explorer-layout{grid-template-columns:160px minmax(0,1fr);gap:16px}.variable-choice{font-size:12px}.map-and-detail{grid-template-columns:1fr}.inspection-panel{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;min-height:290px;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.inspection-panel>label,.inspection-panel>select,.inspection-panel>h3,.inspection-panel>#area-kind{grid-column:1/-1}.inspection-panel>select{margin-bottom:12px}.inspection-panel #area-value,.inspection-panel #area-unit,.inspection-panel #area-moe{grid-column:1}.inspection-panel dl{grid-column:2;grid-row:5/8;border-top:0;padding-top:0}.inspection-panel #reset-area{grid-column:1/-1}.map-heading{flex-direction:column;gap:14px}.map-heading #category-control{width:100%;max-width:100%}.source-grid{grid-template-columns:1fr}}
@media(max-width:650px){.intro-row{display:block}.period-badge{border-left:0;padding:0;margin-top:18px}.period-badge strong{display:inline;font-size:14px}.period-badge span{margin-left:10px;font-size:11px}.explorer-layout{grid-template-columns:1fr}.variable-library{position:static;max-height:none;overflow:visible;padding-right:0}.variable-library h2{font-size:16px;margin-bottom:9px}.library-help,.catalog-note{display:none}.variable-library input{margin-bottom:10px}.variable-group{margin:0 0 12px}.variable-group h3{margin-bottom:6px;font-size:10px}.variable-options-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:6px}.variable-choice{width:auto;flex-shrink:0;border:1px solid var(--line);background:#fff;padding:8px 12px;min-height:37px;font-size:12px;margin:0}.variable-choice[aria-pressed=true]{box-shadow:none;border-color:#066b65}.scope-controls{margin-top:8px;gap:14px}.control-end{width:100%;justify-content:space-between}.map-card,.comparison-card{padding:18px 15px}.map-heading h2{font-size:22px}.measurement-label{font-size:11px}.map-and-detail{margin-top:8px}.inspection-panel{gap:0 14px}.inspection-panel #area-value{font-size:29px}.chart-pair{gap:16px;margin-top:16px}.evidence-bar{align-items:flex-start;flex-direction:column;gap:12px}.evidence-bar button{width:100%}.section-heading{margin-bottom:15px}.bar-label{font-size:11px}.bar-row{grid-template-columns:43% 1fr}.bar-axis{margin-left:43%}.site-nav a{padding:8px;font-size:12px}.brand img{width:220px}.source-details{font-size:12px}}

/* The site's generic pressed buttons use white text on navy. Chart rows use a
   pale selection instead, so retain dark text explicitly for readable labels. */
.bar-row[aria-pressed]{color:var(--ink);border:0}
/* Reserve the same panel slots for short and long area names. Hiding the reset
   control must not shrink the panel and move the map under the pointer. */
.inspection-panel h3{min-height:50px}
.inspection-panel #area-unit{min-height:34px}
.inspection-panel #area-moe{min-height:50px}
.inspection-panel #reset-area[hidden]{display:block!important;visibility:hidden}

/* Grid children default to a content-based minimum width. Let the variable
   library shrink so its horizontal chip rows scroll inside a phone viewport,
   rather than widening the entire page to fit the longest button. */
.variable-library,.inspection-panel{min-width:0}
@media(max-width:650px){
  .explorer-layout{grid-template-columns:minmax(0,1fr)}
  .inspection-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* The product switch has its own scope above geography and category controls.
   Coverage remains visible even when source details are collapsed. */
.estimate-controls{display:flex;align-items:center;gap:24px;margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.estimate-controls .toggle{white-space:nowrap}
.estimate-controls button{font-size:13px;min-height:39px;padding:8px 14px}
.coverage-note{font-size:12px;color:var(--muted);line-height:1.6;margin:16px 0 0;max-width:600px}
@media(max-width:1100px){.estimate-controls{align-items:flex-start;flex-direction:column;gap:8px}.coverage-note{margin:0}}
