/* Zoning reform data page — prototype layer. Loads after dsha-child.css; touches only .zr-* classes. */
.zr-note{background:#1e2a54;color:#fff;font-size:.875rem;padding:.5rem 0}
.zr-note a{color:#fff}
.zr-section{padding-top:2.5rem;margin-top:1.5rem;border-top:1px solid var(--hd-rule,#d8dae4)}
.zr-section:first-of-type{border-top:0;margin-top:0;padding-top:0}
.zr-kicker{font-size:.8125rem;letter-spacing:.04em;text-transform:uppercase;color:#5b6170;margin:0 0 .25rem}
.zr-section h2{margin-bottom:.75rem}
.zr-lead{font-size:1.125rem;max-width:62ch}
.zr-src{font-size:.8125rem;color:#5b6170;margin:.75rem 0 0}
.zr-src a{color:inherit}

/* Figures */
.zr-fig{margin:1.5rem 0 0;padding:1.25rem 1.25rem 1rem;border:1px solid var(--hd-rule,#d8dae4);border-radius:.5rem;background:#fff;position:relative}
.zr-fig figcaption{margin-bottom:1rem}
.zr-fig-title{font-size:1.0625rem;font-weight:600;margin:0 0 .125rem;font-family:inherit}
.zr-fig-sub{font-size:.875rem;color:#5b6170;margin:0}
.zr-fig-foot{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;align-items:center;margin-top:1rem;font-size:.875rem}
.zr-fig-foot details{display:inline-block}
.zr-fig-foot summary{cursor:pointer;color:#005f85;text-decoration:underline;list-style:none}
.zr-fig-foot summary::-webkit-details-marker{display:none}
.zr-fig-foot summary:focus-visible{outline:3px solid var(--hd-orange,#f89d23);outline-offset:2px}
.zr-fig-foot details[open]{display:block;width:100%}
.zr-fig-foot details[open] summary{margin-bottom:.5rem}
.zr-table{width:100%;border-collapse:collapse;font-size:.875rem;margin-top:.25rem}
.zr-table caption{text-align:left;font-weight:600;padding:.25rem 0}
.zr-table th,.zr-table td{padding:.375rem .5rem;border-bottom:1px solid var(--hd-rule,#d8dae4);text-align:left}
.zr-table td.num,.zr-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.zr-dl{color:#005f85}

/* Legend */
.zr-legend{display:flex;flex-wrap:wrap;gap:.375rem 1.25rem;font-size:.8125rem;margin:0 0 .75rem;padding:0;list-style:none}
.zr-legend li{display:flex;align-items:center;gap:.5rem}
.zr-key{display:inline-block;width:18px;height:3px;border-radius:2px;background:var(--k)}
.zr-key.dot{width:10px;height:10px;border-radius:50%}
.zr-key.rect{width:14px;height:14px;border-radius:3px}

/* Series colours: one hue (the Policy & Planning ink) plus de-emphasis gray */
:root{--zr-c1:#aa6405;--zr-c2:#8a8f9c;--zr-grid:#e6e7ec;--zr-axis:#5b6170;--zr-ink:#1e2a54}

/* SVG line charts */
.zr-line{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}
.zr-line text{font-family:inherit;font-size:13px;fill:var(--zr-axis)}
.zr-line .zr-ax-lbl{font-size:13px}
.zr-line .zr-end{font-size:13px;font-weight:600;fill:var(--zr-ink)}
.zr-line .zr-pt-lbl{font-size:13px;font-weight:600;fill:var(--zr-ink)}
.zr-line.zr-svg-mobile text,.zr-line.zr-svg-mobile .zr-ax-lbl,.zr-line.zr-svg-mobile .zr-end,.zr-line.zr-svg-mobile .zr-pt-lbl{font-size:15px}
.zr-line .zr-grid{stroke:var(--zr-grid);stroke-width:1}
.zr-line .zr-base{stroke:#c9ccd6;stroke-width:1}
.zr-line .zr-s{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.zr-line .zr-dot{stroke:#fff;stroke-width:2}
.zr-line .zr-xh{stroke:#5b6170;stroke-width:1;opacity:0;pointer-events:none}
.zr-line .zr-xh-dot{opacity:0;pointer-events:none;stroke:#fff;stroke-width:2}
.zr-line.is-hover .zr-xh,.zr-line.is-hover .zr-xh-dot{opacity:1}
.zr-line:focus-visible{outline:3px solid var(--hd-orange,#f89d23);outline-offset:4px;border-radius:4px}
.zr-svg-mobile{display:none}
@media (max-width:575.98px){.zr-svg-desktop{display:none}.zr-svg-mobile{display:block}}

/* HTML bar charts */
.zr-bars-wrap{--label-w:38%;--val-w:4.5rem;--gap:.75rem;position:relative}
.zr-bars{position:relative;margin:0;padding:0;list-style:none}
.zr-bars.has-refs{padding-top:3rem}
.zr-bar-row{display:grid;grid-template-columns:var(--label-w) 1fr var(--val-w);gap:0 var(--gap);align-items:center;padding:.3rem 0;border-radius:4px}
.zr-bar-row:focus-visible{outline:3px solid var(--hd-orange,#f89d23);outline-offset:1px}
.zr-bar-label{font-size:.875rem;line-height:1.25;color:#2b2f3a}
.zr-bar-track{position:relative;height:20px}
.zr-bar{position:absolute;left:0;top:0;height:20px;background:var(--zr-c1);border-radius:0 4px 4px 0;transition:filter .12s}
.zr-bar.is-dim{background:var(--zr-c2)}
.zr-bar-row:hover .zr-bar,.zr-bar-row:focus-visible .zr-bar,.zr-bar-row.is-pinned .zr-bar{filter:brightness(1.12)}
.zr-bar-row.is-pinned,.zr-db-row.is-pinned{background:#f6f3ee}
@media (hover:none){.zr-bar-row,.zr-db-row{-webkit-tap-highlight-color:transparent;cursor:pointer}}
.zr-bar-value{font-size:.875rem;font-variant-numeric:tabular-nums;color:var(--zr-ink);font-weight:600;text-align:right}
.zr-ref-layer{position:absolute;top:0;bottom:0;left:calc(var(--label-w) + var(--gap));right:calc(var(--val-w) + var(--gap));pointer-events:none}
.zr-ref{position:absolute;top:3rem;bottom:0;border-left:1px solid #5b6170}
.zr-ref-lbl{position:absolute;transform:translateX(-50%);white-space:nowrap;font-size:.75rem;line-height:1.1;color:#2b2f3a;text-align:center;background:#fff;padding:0 .2rem;border-radius:3px}
.zr-ref-lbl b{display:block;font-variant-numeric:tabular-nums}
.zr-ref-lbl.row1{top:0;z-index:2}.zr-ref-lbl.row2{top:1.5rem;z-index:1}
.zr-ref-lbl.row1::after,.zr-ref-lbl.row2::after{content:"";position:absolute;left:50%;width:1px;background:#5b6170}
.zr-ref-lbl.row1::after{top:100%;height:1.75rem}
.zr-ref-lbl.row2::after{top:100%;height:.2rem}
@media (max-width:575.98px){
  /* Phone: name and value share a line, full-width bar underneath */
  .zr-bars-wrap{--label-w:0px;--gap:0px;--val-w:0px}
  .zr-bar-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "track track";column-gap:.75rem;row-gap:.3rem;align-items:end;padding:.45rem 0}
  .zr-bar-label{grid-area:label}
  .zr-bar-value{grid-area:value}
  .zr-bar-track{grid-area:track;height:16px}
  .zr-bar{height:16px}
  .zr-ref-layer{left:0;right:0;z-index:2}
  /* Reference lines run behind the text: knock them out only where they cross words */
  .zr-bars.has-refs .zr-bar-label,.zr-bars.has-refs .zr-bar-value{position:relative;z-index:3;--halo:#fff;text-shadow:0 0 2px var(--halo),0 0 2px var(--halo),0 0 3px var(--halo),0 0 4px var(--halo)}
}

/* Dumbbell */
.zr-db{--label-w:32%;--val-w:9.5rem;--gap:.75rem;margin:0;padding:0;list-style:none}
.zr-db-row{display:grid;grid-template-columns:var(--label-w) 1fr var(--val-w);gap:0 var(--gap);align-items:center;padding:.45rem 0;border-radius:4px}
.zr-db-row:focus-visible{outline:3px solid var(--hd-orange,#f89d23);outline-offset:1px}
.zr-db-track{position:relative;height:16px}
.zr-db-line{position:absolute;top:7px;height:2px;background:#c9ccd6}
.zr-db-dot{position:absolute;top:2px;width:12px;height:12px;border-radius:50%;margin-left:-6px;box-shadow:0 0 0 2px #fff}
.zr-db-dot.a{background:var(--zr-c2)}.zr-db-dot.b{background:var(--zr-c1)}
.zr-db-vals{font-size:.8125rem;font-variant-numeric:tabular-nums;color:#2b2f3a;display:flex;gap:.75rem;justify-content:flex-end;white-space:nowrap}
.zr-db-vals b{color:var(--zr-ink)}
.zr-db-vals .zr-key{margin-right:.25rem}
.zr-db-axis{display:grid;grid-template-columns:var(--label-w) 1fr var(--val-w);gap:0 var(--gap);font-size:.75rem;color:var(--zr-axis)}
.zr-db-axis > span:nth-child(2){display:flex;justify-content:space-between;border-top:1px solid var(--zr-grid);padding-top:.25rem}
@media (max-width:575.98px){
  .zr-db{--label-w:0px;--gap:0px;--val-w:0px}
  .zr-db-row{grid-template-columns:1fr;row-gap:.25rem}
  .zr-db-vals{justify-content:flex-start}
  .zr-db-axis{grid-template-columns:1fr}
  .zr-db-axis > span:not(:nth-child(2)){display:none}
}

/* Stat tiles */
.zr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr));gap:1rem;margin:1.25rem 0 0}
/* fixed, equal columns for tile groups: 4 across (2x2 on small screens), pairs side by side */
.zr-stats--n4{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:768px){.zr-stats--n4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.zr-stats--n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.zr-stat{border:1px solid var(--hd-rule,#d8dae4);border-radius:.5rem;padding:1rem 1.125rem;background:#fff}
.zr-stat.is-hero{grid-column:1 / -1;background:var(--hd-program-build-tint,#f8f1e7);border-color:transparent}
.zr-stat-value{font-size:2rem;line-height:1.05;font-weight:600;color:var(--zr-ink);font-family:inherit}
.zr-stat.is-hero .zr-stat-value{font-size:3.25rem}
.zr-stat-label{font-size:.9375rem;margin:.375rem 0 0;color:#2b2f3a}
.zr-stat-note{font-size:.8125rem;color:#5b6170;margin:.25rem 0 0}

/* Housing type cards */
.zr-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:1rem;margin:1.25rem 0 0;padding:0;list-style:none}
.zr-type{border:1px solid var(--hd-rule,#d8dae4);border-radius:.5rem;padding:1rem;background:#fff}
.zr-type .icon{width:28px;height:28px;color:var(--zr-c1);margin-bottom:.5rem}
.zr-type h3{font-size:1rem;margin:0 0 .25rem;font-family:inherit}
.zr-type p{font-size:.875rem;margin:0;color:#2b2f3a}

/* Listen */
.zr-listen{margin:1rem 0 0;font-size:.875rem}
.zr-listen summary{cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;color:#005f85;list-style:none}
.zr-listen summary::-webkit-details-marker{display:none}
.zr-listen summary .icon{width:20px;height:20px}
.zr-listen summary:focus-visible{outline:3px solid var(--hd-orange,#f89d23);outline-offset:2px}
.zr-listen audio{display:block;width:100%;max-width:30rem;margin:.5rem 0}
.zr-listen blockquote{margin:.5rem 0 0;padding-left:.75rem;border-left:3px solid var(--hd-rule,#d8dae4);color:#2b2f3a}

/* Tooltip: grid of key | value | label */
.zr-tip{position:fixed;z-index:1080;pointer-events:none;display:grid;grid-template-columns:auto auto 1fr;column-gap:.5rem;row-gap:.3rem;align-items:baseline;background:#1e2a54;color:#fff;font-size:.8125rem;line-height:1.35;padding:.65rem .8rem .7rem;border-radius:.5rem;box-shadow:0 4px 14px rgba(15,22,48,.28);max-width:18rem;opacity:0;transition:opacity .1s}
.zr-tip.is-on{opacity:1}
.zr-tip-h{grid-column:1/-1;font-weight:600;color:#fff;padding-bottom:.4rem;margin-bottom:.1rem;border-bottom:1px solid rgba(255,255,255,.22)}
.zr-tip-k{align-self:center;display:flex}
.zr-tip-dot{width:10px;height:10px;border-radius:50%;background:var(--k);box-shadow:0 0 0 1.5px #fff}
.zr-tip-v{font-size:.9375rem;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.zr-tip-l{color:rgba(255,255,255,.88);min-width:0;overflow-wrap:anywhere}
.zr-tip-l.is-wide{grid-column:-3/-1;font-size:.75rem;color:rgba(255,255,255,.78)}
.zr-tip:not(:has(.zr-tip-dot)){grid-template-columns:auto 1fr}
.zr-tip:not(:has(.zr-tip-dot)) .zr-tip-k{display:none}

/* Next steps */
.zr-next{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:1rem;margin-top:1rem}
@media print{.zr-note,.zr-listen,.zr-fig-foot details{display:none}}

.zr-ref-legend{font-size:.8125rem;color:#5b6170;margin:.75rem 0 0}
@media print{
  .zr-fig,.zr-stat,.zr-type,.zr-db-row,.zr-bar-row{break-inside:avoid}
  .zr-section{break-before:auto}
  .hd-side-sticky,.offcanvas,.hd-lang,.search-form,#agency-header nav,.hd-crumbs{display:none !important}
  .col-lg-9{flex:0 0 100%;max-width:100%;padding-left:0 !important}
  .zr-svg-mobile{display:none !important}.zr-svg-desktop{display:block !important}
  footer .hd-social,footer form{display:none}
  a[href]::after{content:none !important}
}
@media print{
  footer,.hd-newsletter,.zr-fig-foot,.menu-toggler-button,#agency-header .navbar-toggler,.hd-feedback{display:none !important}
  .zr-fig{page-break-inside:avoid}
  body{background:#fff}
}
@media print{main .pb-6{padding-bottom:0 !important}.hd-contact-card.mb-6{margin-bottom:0 !important}html,body{height:auto}}
/* Debunking Density: Fact or Fiction accordion */
.zr-fof .accordion-button{font-weight:600}
/* One clean outline: theme adds its own right/bottom borders on the body, giving doubled lines */
.zr-fof{border:1px solid var(--hd-rule,#d8dae4);border-radius:.5rem;overflow:hidden}
.zr-fof .accordion-item{border:0;border-radius:0;margin:0}
.zr-fof .accordion-item+.accordion-item{border-top:1px solid var(--hd-rule,#d8dae4)}
.zr-fof .accordion-button{border:0!important;border-radius:0!important}
/* Chevrons: the live theme's self-hosted Lighthouse CSS has its SVG namespace rewritten to https,
   so every built-in icon fails to render. Re-declare the official Lighthouse 1.2 icons here until
   the theme file is repaired (see prep/staging/post-launch/LIGHTHOUSE-SVG-ICON-FIX.md). */
.zr-fof.accordion{--lh-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23202020' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");--lh-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgb%280, 26, 36.4%29' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e")}
.zr-fof .accordion-button{gap:1rem}
.zr-fof .accordion-body{padding:1.25rem 1.5rem 1.5rem;border:0;border-left:4px solid var(--lh-brand-1,#1e2a54)}
.zr-fof .accordion-body p{line-height:1.6}
.zr-verdict{display:inline-block;font-size:.8125rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;line-height:1.2;padding:.2rem .55rem;border-radius:999px;margin-right:.4rem;vertical-align:.08em}
.zr-verdict--fact{background:#e3f1e6;color:#1b5a2b}
.zr-verdict--fiction{background:#fbe7e3;color:#8c1d0f}
@media print{.zr-fof .accordion-collapse{display:block!important}}

/* Long page title: let the breadcrumb wrap instead of running off the right edge */
.zr-page .breadcrumb-list{flex-wrap:wrap;row-gap:.25rem}
.zr-page .breadcrumb-list-item.active{white-space:normal;min-width:0}
.zr-bar-row.is-pinned .zr-bar-label,.zr-bar-row.is-pinned .zr-bar-value{--halo:#f6f3ee}
