/* Issue #1287: the on-screen site screening report (OnScreenReportView.razor).

   A GLOBAL sheet, linked from App.razor, for the reason explorer.css is: most of this page's
   markup is built on the server as a string (OnScreenReportDocument) or by Leaflet in the
   browser, and neither carries a Blazor scope attribute.

   Every rule is under .sr-page and every class is sr- prefixed, so nothing here can restyle the
   rest of the app and app.css's own .card / .badge / .btn cannot reach in.

   State classes (sr-intro, sr-reveal, sr-no-anim, sr-ready, sr-pane-open) are put on the .sr-page
   element by on-screen-report.js, never by Razor: Blazor rewrites a class attribute it renders
   whenever its value changes, which would wipe a class the script had added. */
.planner-main:has(.sr-page){max-width:none; padding:0}
.sr-page{
  --navy:#1a365d; --navy-light:#2a4a7f; --navy-dark:#0f2440;
  --red:#c53030; --green:#276749; --amber:#c27803; --amber-ink:#8a5300; --amber-bg:#fdf6e7;
  --g50:#f9fafb; --g100:#f3f4f6; --g200:#e5e7eb; --g300:#d1d5db; --g400:#9ca3af; --g500:#6b7280;
  --g600:#4b5563; --g700:#374151; --g800:#1f2937; --g900:#111827;
  --radius:8px; --pane:440px;
}
.sr-page *, .sr-page *::before, .sr-page *::after{box-sizing:border-box}
html:has(.sr-page){scroll-behavior:smooth; scroll-padding-top:76px}
.sr-page{margin:0; font-family:'Inter',system-ui,-apple-system,sans-serif; font-size:16px; line-height:1.65;
  color:var(--g800); background:#fff; -webkit-font-smoothing:antialiased}
.sr-page button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer}
/* top bar */
.sr-page .sr-bar{position:sticky; top:0; z-index:900; height:52px; display:flex; align-items:center; gap:16px;
  padding:0 28px; background:#fff; border-bottom:1px solid var(--g200); font-size:13.5px}
.sr-page .sr-bar .sr-logo{font-weight:700; color:var(--navy); letter-spacing:-.01em; font-size:15px}
.sr-page .sr-bar .sr-crumb{color:var(--g500); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sr-page .sr-bar .sr-crumb b{color:var(--g800); font-weight:500}
.sr-page .sr-bar .sr-crumb a{color:inherit; text-decoration:none}
.sr-page .sr-bar .sr-crumb a:hover{color:var(--navy); text-decoration:underline}
.sr-page .sr-bar .sr-sp{flex:1}
.sr-page .sr-btn{display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border:1px solid var(--g300);
  border-radius:6px; font-size:13px; font-weight:500; color:var(--g700); background:#fff; white-space:nowrap; text-decoration:none}
.sr-page .sr-btn:hover{border-color:var(--g400); background:var(--g50)}
/* page frame: contents + reading column */
.sr-page .sr-frame{display:grid; grid-template-columns:200px minmax(0,720px); gap:64px; justify-content:center;
  padding:8px 32px 120px; transition:transform .28s ease}
@media (min-width:1280px){
.sr-page.sr-pane-open .sr-frame{transform:translateX(-216px)} 
}
@media (max-width:1100px){
.sr-page .sr-frame{grid-template-columns:minmax(0,720px)}
.sr-page .sr-toc{display:none} 
}
.sr-page .sr-toc{position:sticky; top:96px; align-self:start; font-size:13.5px; margin-top:56px}
.sr-page .sr-toc h2{margin:0 0 10px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g400)}
.sr-page .sr-toc ol{list-style:none; margin:0; padding:0; border-left:1px solid var(--g200)}
.sr-page .sr-toc a{display:block; padding:5px 0 5px 14px; margin-left:-1px; border-left:2px solid transparent; color:var(--g500);
  text-decoration:none; line-height:1.35}
.sr-page .sr-toc a:hover{color:var(--g800)}
.sr-page .sr-toc a.sr-on{color:var(--navy); font-weight:600; border-left-color:var(--navy)}
.sr-page .sr-toc .sr-hint{margin-top:22px; padding-top:14px; border-top:1px solid var(--g200); color:var(--g500); font-size:12.5px; line-height:1.5}
.sr-page .sr-toc .sr-hint .sr-ref{pointer-events:none}
/* header: the same things the PDF front page carries */
.sr-page .sr-kicker{font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g500)}
.sr-page h1{margin:8px 0 6px; font-size:30px; line-height:1.2; letter-spacing:-.02em; color:var(--navy-dark); font-weight:700}
.sr-page .sr-meta{color:var(--g500); font-size:14px}
.sr-page .sr-meta span + span::before{content:"\00b7"; margin:0 8px; color:var(--g300)}
.sr-page .sr-proposal{margin:14px 0 0; padding-left:14px; border-left:2px solid var(--g200); color:var(--g600); font-size:15px}
.sr-page .sr-verdict{margin:24px 0 0; padding:20px 26px 22px; background:var(--amber-bg); border:1px solid #f1dfb6;
  border-left:4px solid var(--amber); border-radius:var(--radius)}
.sr-page .sr-verdict .sr-lbl{font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--amber-ink)}
.sr-page .sr-verdict .sr-call{font-size:38px; line-height:1.15; font-weight:700; letter-spacing:-.025em; color:var(--amber-ink); margin:2px 0 10px}
.sr-page .sr-verdict .sr-line{font-size:19px; line-height:1.5; color:var(--g900); margin:0}
.sr-page .sr-facts{display:grid; grid-template-columns:repeat(4,1fr); margin:0; border-bottom:1px solid var(--g200)}
.sr-page .sr-facts div{padding:16px 16px 16px 0}
.sr-page .sr-facts div + div{padding-left:16px; border-left:1px solid var(--g200)}
.sr-page .sr-facts dt{font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--g500)}
.sr-page .sr-facts dd{margin:4px 0 0; font-size:14.5px; font-weight:600; color:var(--g900); line-height:1.4}
@media (max-width:700px){
.sr-page .sr-facts{grid-template-columns:1fr 1fr} 
}
.sr-page .sr-findings{margin:22px 0 0}
.sr-page .sr-findings h2{margin:0 0 4px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g500)}
.sr-page .sr-findings ol{list-style:none; margin:0; padding:0; counter-reset:f}
.sr-page .sr-findings li{counter-increment:f; display:grid; grid-template-columns:28px 1fr auto; gap:0 12px; align-items:baseline;
  padding:9px 0; border-bottom:1px solid var(--g200); font-size:15.5px; font-weight:500; color:var(--g900); line-height:1.45}
.sr-page .sr-findings li::before{content:counter(f); font-size:13px; font-weight:600; color:var(--g400); font-variant-numeric:tabular-nums}
/* reference chips: the interactive vocabulary of the report */
.sr-page .sr-ref{transition:background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  display:inline-block; padding:0 6px; border-radius:4px; font-size:.82em; font-weight:600; line-height:1.55;
  font-variant-numeric:tabular-nums; white-space:nowrap; vertical-align:baseline; border:1px solid transparent}
.sr-page .sr-ref.sr-pol{background:#eef2f9; color:var(--navy); border-color:#d5deee}
.sr-page .sr-ref.sr-app{background:#fff; color:var(--g800); border-color:var(--g300); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-weight:500; font-size:.78em}
.sr-page .sr-ref.sr-plain{background:var(--g100); color:var(--g600)}
.sr-page button.sr-ref:hover, .sr-page button.sr-ref.sr-is-open{border-color:var(--navy); background:var(--navy); color:#fff}
.sr-page button.sr-ref.sr-is-open{box-shadow:0 0 0 3px rgba(26,54,93,.16)}
.sr-page button.sr-ref:focus-visible, .sr-page .sr-btn:focus-visible, .sr-page .sr-x:focus-visible{outline:2px solid var(--navy-light); outline-offset:2px}
.sr-page .sr-dot{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:var(--g400); vertical-align:middle; position:relative; top:-1px}
.sr-page .sr-dot.sr-ok{background:var(--green)}
.sr-page .sr-dot.sr-no{background:var(--red)}
.sr-page .sr-dot.sr-wait{background:var(--amber)}
/* body sections */
.sr-page section.sr-s{margin-top:56px}
.sr-page section.sr-s > h2{display:flex; gap:12px; align-items:baseline; margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid var(--g200);
  font-size:22px; line-height:1.3; letter-spacing:-.015em; color:var(--navy-dark); font-weight:700}
.sr-page section.sr-s > h2 .sr-n{font-size:13px; font-weight:600; color:var(--g400); font-variant-numeric:tabular-nums; letter-spacing:0}
.sr-page section.sr-s h3{margin:30px 0 8px; font-size:13px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--g600)}
.sr-page section.sr-s p{margin:0 0 14px}
.sr-page section.sr-s ul, .sr-page section.sr-s ol{margin:0 0 14px; padding-left:22px}
.sr-page section.sr-s li{margin:0 0 10px; padding-left:4px}
.sr-page section.sr-s li::marker{color:var(--g400)}
.sr-page section.sr-s ul ul{margin-top:8px}
.sr-page section.sr-s strong{color:var(--g900); font-weight:600}
.sr-page section.sr-s em{color:var(--g700)}
/* comparable entries */
.sr-page section.sr-s ul.sr-cmps{list-style:none; padding:0}
.sr-page ul.sr-cmps > li{margin:0; padding:14px 0 14px 16px; border-top:1px solid var(--g200); border-left:3px solid var(--g300); padding-left:16px}
.sr-page ul.sr-cmps > li.sr-ok{border-left-color:var(--green)}
.sr-page ul.sr-cmps > li.sr-no{border-left-color:var(--red)}
.sr-page ul.sr-cmps > li.sr-wait{border-left-color:var(--amber)}
.sr-page ul.sr-cmps > li{transition:background-color .2s ease}
.sr-page ul.sr-cmps > li.sr-hot{background:var(--g50)}
.sr-page ul.sr-cmps > li:last-child{border-bottom:1px solid var(--g200)}
/* the one map */
.sr-page figure.sr-map{margin:20px 0 26px}
.sr-page #sr-map{height:400px; border:1px solid var(--g300); border-radius:var(--radius); background:var(--g100); z-index:0}
.sr-page .leaflet-tile-pane{filter:saturate(.55)}
.sr-page .leaflet-container{font-family:inherit}
.sr-page figure.sr-map figcaption{display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; margin-top:10px; font-size:13px; color:var(--g600)}
.sr-page figure.sr-map figcaption .sr-sp{flex:1}
.sr-page .sr-key{display:inline-flex; align-items:center}
.sr-page .sr-key i{display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px}
.sr-page .sr-key i.sr-site{border-radius:2px; border:2px solid var(--red); background:rgba(197,48,48,.12)}
.sr-page .sr-seg{display:inline-flex; border:1px solid var(--g300); border-radius:6px; overflow:hidden}
.sr-page .sr-seg button{padding:3px 10px; font-size:12.5px; font-weight:500; color:var(--g600)}
.sr-page .sr-seg button + button{border-left:1px solid var(--g300)}
.sr-page .sr-seg button.sr-on{background:var(--navy); color:#fff}
.sr-page .sr-pin{width:16px; height:16px; border-radius:50%; border:2.5px solid #fff; box-shadow:0 0 0 1px rgba(15,36,64,.45), 0 1px 3px rgba(0,0,0,.3); background:var(--g400)}
.sr-page .sr-pin.sr-ok{background:var(--green)}
.sr-page .sr-pin.sr-no{background:var(--red)}
.sr-page .sr-pin.sr-wait{background:var(--amber)}
.sr-page .sr-pin.sr-small{width:9px; height:9px; border-width:1.5px; box-shadow:0 0 0 1px rgba(15,36,64,.3); opacity:.85}
.sr-page .sr-hide-small .leaflet-marker-icon:has(.sr-pin.sr-small){display:none}
.sr-page .sr-pin.sr-sel{box-shadow:0 0 0 3px var(--navy), 0 0 0 7px rgba(26,54,93,.22)}
.sr-page .leaflet-tooltip.sr-lab{padding:1px 6px; border:1px solid var(--g300); border-radius:4px; box-shadow:0 1px 2px rgba(0,0,0,.12);
  font:500 11.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--g800)}
.sr-page .leaflet-tooltip.sr-lab::before{display:none}
.sr-page .leaflet-tooltip.sr-sitelab{background:none; border:0; box-shadow:none; color:var(--red); font:600 12px/1 'Inter',sans-serif; text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff}
.sr-page .sr-away{margin-top:6px; font-size:13px; color:var(--g600)}
/* applications reviewed */
.sr-page table.sr-apps{width:100%; border-collapse:collapse; font-size:13.5px; line-height:1.45; margin:6px 0 16px}
.sr-page table.sr-apps th{padding:6px 10px 6px 0; text-align:left; font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--g500); border-bottom:1px solid var(--g300)}
.sr-page table.sr-apps td{padding:7px 10px 7px 0; border-bottom:1px solid var(--g200); vertical-align:top}
.sr-page table.sr-apps{table-layout:fixed}
.sr-page table.sr-mdt{width:100%; border-collapse:collapse; font-size:14px; line-height:1.5; margin:8px 0 18px}
.sr-page table.sr-mdt th{padding:6px 12px 6px 0; text-align:left; font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--g500); border-bottom:1px solid var(--g300)}
.sr-page table.sr-mdt td{padding:8px 12px 8px 0; border-bottom:1px solid var(--g200); vertical-align:top}
.sr-page section.sr-s blockquote{margin:12px 0 16px; padding:2px 0 2px 16px; border-left:3px solid var(--g300); color:var(--g600)}
.sr-page table.sr-apps th:nth-child(1){width:158px}
.sr-page table.sr-apps th:nth-child(2){width:150px}
.sr-page table.sr-apps td:nth-child(1){white-space:nowrap}
.sr-page table.sr-apps td:nth-child(2){color:var(--g600); font-variant-numeric:tabular-nums}
.sr-page table.sr-apps tr:hover td{background:var(--g50)}
.sr-page .sr-foot{margin-top:48px; padding-top:18px; border-top:1px solid var(--g200); color:var(--g500); font-size:14px; font-style:italic}
/* side pane */
.sr-page .sr-pane{position:fixed; z-index:950; top:0; right:0; bottom:0; width:var(--pane); max-width:100vw; background:#fff;
  border-left:1px solid var(--g300); transform:translateX(102%); visibility:hidden;
  transition:transform .28s ease, visibility 0s .28s; display:flex; flex-direction:column}
.sr-page.sr-pane-open .sr-pane{transform:none; visibility:visible; transition:transform .28s ease; box-shadow:-12px 0 32px rgba(15,36,64,.10)}
.sr-page .sr-pane header{display:flex; align-items:flex-start; gap:12px; padding:18px 22px 14px; border-bottom:1px solid var(--g200)}
.sr-page .sr-pane header .sr-k{font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g500)}
.sr-page .sr-pane header h2{margin:2px 0 0; font-size:19px; line-height:1.3; letter-spacing:-.01em; color:var(--navy-dark)}
.sr-page .sr-pane header .sr-src{margin-top:3px; font-size:13px; color:var(--g500); line-height:1.4}
.sr-page .sr-x{margin-left:auto; flex:none; width:30px; height:30px; border-radius:6px; font-size:20px; line-height:1; color:var(--g500)}
.sr-page .sr-x:hover{background:var(--g100); color:var(--g900)}
.sr-page .sr-pane .sr-body{flex:1; overflow:auto; padding:18px 22px 28px; font-size:14.5px; line-height:1.6}
.sr-page .sr-pane .sr-body h3{margin:24px 0 8px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g500)}
.sr-page .sr-pane .sr-body h3:first-child{margin-top:0}
.sr-page .sr-pane .sr-body p{margin:0 0 10px}
.sr-page .sr-pane .sr-poltext p{margin:0 0 10px; color:var(--g800)}
.sr-page .sr-pane .sr-poltext p.sr-sub{padding-left:18px}
.sr-page .sr-pane .sr-poltext p.sr-subsub{padding-left:36px}
.sr-page .sr-pane mark{background:#fdecc0; color:inherit; padding:1px 0; box-shadow:0 0 0 2px #fdecc0; border-radius:1px}
.sr-page .sr-pane .sr-note{font-size:12.5px; color:var(--g500); margin-top:6px}
.sr-page .sr-pane dl{display:grid; grid-template-columns:96px 1fr; gap:6px 12px; margin:0}
.sr-page .sr-pane dt{color:var(--g500); font-size:13px}
.sr-page .sr-pane dd{margin:0; color:var(--g900)}
.sr-page .sr-pane .sr-badge{display:inline-flex; align-items:center; padding:2px 9px; border-radius:999px; font-size:12.5px; font-weight:600; background:var(--g100); color:var(--g700)}
.sr-page .sr-pane .sr-badge.sr-ok{background:#e3f1e9; color:var(--green)}
.sr-page .sr-pane .sr-badge.sr-no{background:#fbe6e6; color:var(--red)}
.sr-page .sr-pane .sr-badge.sr-wait{background:#fbf0d3; color:var(--amber-ink)}
.sr-page .sr-pane .sr-says{padding:12px 14px; background:var(--g50); border:1px solid var(--g200); border-radius:var(--radius)}
.sr-page .sr-pane .sr-says p:last-child{margin:0}
.sr-page .sr-pane .sr-uses{list-style:none; margin:0; padding:0}
.sr-page .sr-pane .sr-uses li{padding:6px 0; border-bottom:1px solid var(--g200)}
.sr-page .sr-pane .sr-uses a, .sr-page .sr-pane a.sr-jump{color:var(--navy); text-decoration:none; font-weight:500}
.sr-page .sr-pane .sr-uses a:hover, .sr-page .sr-pane a.sr-jump:hover{text-decoration:underline}
.sr-page .sr-pane .sr-acts{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
/* ================= variant 1: cinematic opening ================= */
.sr-page{ --ease-out:cubic-bezier(.2,.7,.2,1); --ease-io:cubic-bezier(.65,0,.2,1) }
.sr-page button.sr-btn{cursor:pointer}
/* cover = the PDF front page, with a location plate beside it */
.sr-page .sr-cover{display:grid; grid-template-columns:calc(50% - 276px) minmax(0,720px); column-gap:48px;
  transition:grid-template-columns .28s ease}
.sr-page .sr-slot{position:sticky; top:52px; height:calc(100vh - 52px - var(--sr-chrome) - var(--sr-foot)); align-self:start; min-width:0}
.sr-page .sr-summary{min-width:0; padding:34px 32px 40px 0}
.sr-page .sr-summary .sr-proposal{display:none}
@media (min-width:1280px){
.sr-page.sr-pane-open .sr-cover{grid-template-columns:calc(50% - 492px) minmax(0,720px)} 
}
@media (max-width:1279px){
.sr-page .sr-cover{display:block}
.sr-page .sr-slot{position:relative; top:auto; height:270px}
.sr-page .sr-summary{max-width:784px; margin:0 auto; padding:30px 32px 32px}
.sr-page .sr-summary .sr-proposal{display:block}

}
.sr-page .sr-plate{position:absolute; inset:0; overflow:hidden; border-right:1px solid var(--g200);
  background-color:#edf0f3;
  background-image:linear-gradient(rgba(26,54,93,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(26,54,93,.045) 1px, transparent 1px);
  background-size:32px 32px; background-position:center}
@media (max-width:1279px){
.sr-page .sr-plate{border-right:0; border-bottom:1px solid var(--g200)} 
}
.sr-page .sr-plate.sr-stage{position:fixed; inset:calc(var(--sr-chrome) + 52px) 0 0 0; z-index:800; border:0}
.sr-page .sr-plate.sr-receding{transition:width .7s var(--ease-io), height .7s var(--ease-io)}
/* the map is always stage-sized and centred in the plate, so shrinking the plate never resizes Leaflet */
.sr-page .sr-mapwrap{position:absolute; left:calc(50% - 50vw); top:calc(50% - (100vh - 52px) / 2); width:100vw; height:calc(100vh - 52px)}
.sr-page #sr-cmap{width:100%; height:100%; background:transparent; z-index:0}
/* tiles that are too stale to read (slow network) step aside for the drawing-paper ground, then fade back in */
.sr-page #sr-cmap .leaflet-tile-pane{transition:opacity .45s ease}
.sr-page .sr-plate.sr-tiles-wait #sr-cmap .leaflet-tile-pane{opacity:0}
/* marks the site before the line is drawn, and is the whole story for a postcode-only report */
.sr-page .sr-reticle{position:relative; width:44px; height:44px; transition:opacity .4s ease}
.sr-page .sr-reticle::before{content:""; position:absolute; inset:17px; border-radius:50%; background:var(--red); box-shadow:0 0 0 2px #fff}
.sr-page .sr-reticle::after{content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--red); opacity:0; animation:sr-ping 1.5s ease-out infinite}
.sr-page .sr-reticle.sr-gone{opacity:0}
.sr-page .sr-reticle.sr-point::before{inset:14px; box-shadow:0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.35)}
.sr-page .sr-reticle.sr-point.sr-settled::after{animation:sr-ping 1.5s ease-out 2}
.sr-page .sr-reticle.sr-point.sr-still::after{animation:none}
@keyframes sr-ping{ 0%{transform:scale(.3); opacity:.9} 100%{transform:scale(1.5); opacity:0} }
/* opening-only furniture */
.sr-page .sr-stagecap{position:absolute; left:0; right:0; bottom:0; z-index:5; padding:120px 56px 44px; pointer-events:none;
  background:linear-gradient(to top, rgba(255,255,255,.96) 0, rgba(255,255,255,.86) 45%, rgba(255,255,255,0) 100%);
  opacity:0; visibility:hidden; transition:opacity .35s ease, visibility 0s .35s}
.sr-page .sr-stagecap .sr-kicker{color:var(--g600)}
.sr-page .sr-stagecap .sr-t{margin:8px 0 6px; max-width:880px; font-size:40px; line-height:1.15; letter-spacing:-.025em; font-weight:700; color:var(--navy-dark)}
.sr-page .sr-stagecap .sr-meta{font-size:15px; color:var(--g600)}
.sr-page .sr-plate.sr-stage:not(.sr-receding) .sr-stagecap{opacity:1; visibility:visible; transition:opacity .35s ease}
.sr-page .sr-skip{position:absolute; right:28px; bottom:44px; z-index:6; display:none; align-items:center; gap:8px; height:34px; padding:0 12px;
  border:1px solid var(--g300); border-radius:6px; background:#fff; font-size:13px; font-weight:500; color:var(--g700)}
.sr-page .sr-skip:hover{border-color:var(--g400); background:var(--g50)}
.sr-page .sr-skip kbd{font:500 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; padding:3px 5px; border:1px solid var(--g300); border-radius:4px; color:var(--g500)}
.sr-page .sr-plate.sr-stage:not(.sr-receding) .sr-skip{display:inline-flex}
.sr-page .sr-prog{position:absolute; left:0; top:0; right:0; height:2px; z-index:6; background:var(--navy); transform-origin:0 50%; transform:scaleX(0); opacity:0}
.sr-page.sr-intro .sr-prog{opacity:.55; animation:sr-prog 4.6s linear forwards}
@keyframes sr-prog{ to{transform:scaleX(1)} }
/* resting furniture: the plate's title block */
.sr-page .sr-pcard{position:absolute; left:16px; right:16px; bottom:16px; z-index:4; padding:14px 16px 10px; background:rgba(255,255,255,.96);
  border:1px solid var(--g200); border-radius:var(--radius); box-shadow:0 6px 20px rgba(15,36,64,.10); font-size:13.5px; line-height:1.5;
  transition:opacity .5s ease, transform .6s var(--ease-out)}
.sr-page .sr-pcard .sr-k{display:flex; align-items:center; gap:8px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--g500)}
.sr-page .sr-pcard .sr-k i{flex:none; width:12px; height:10px; border-radius:2px; border:2px solid var(--red); background:rgba(197,48,48,.12)}
.sr-page .sr-pcard .sr-k i.sr-pt{width:10px; border-radius:50%; background:var(--red); border-color:#fff; box-shadow:0 0 0 1px var(--red)}
.sr-page .sr-pcard .sr-a{margin:3px 0 0; font-size:15px; font-weight:600; color:var(--g900)}
.sr-page .sr-pcard .sr-p{margin:6px 0 0; color:var(--g600); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden}

.sr-page .sr-pcard .sr-attr{margin-top:4px; font-size:10.5px; color:var(--g400)}
.sr-page .sr-pzoom{position:absolute; right:16px; top:16px; z-index:4; display:flex; flex-direction:column; border:1px solid var(--g300); border-radius:6px;
  background:#fff; overflow:hidden; transition:opacity .4s ease}
.sr-page .sr-pzoom button{width:30px; height:30px; font-size:17px; line-height:1; color:var(--g700)}
.sr-page .sr-pzoom button + button{border-top:1px solid var(--g200)}
.sr-page .sr-pzoom button:hover{background:var(--g100)}
.sr-page .sr-plate.sr-stage .sr-pcard{opacity:0; transform:translateY(10px); pointer-events:none}
.sr-page .sr-plate.sr-stage .sr-pzoom{opacity:0; pointer-events:none}
.sr-page .sr-battr{display:none; position:absolute; right:6px; bottom:4px; z-index:4; font-size:10.5px; color:var(--g500); background:rgba(255,255,255,.75); padding:0 5px; border-radius:3px}
@media (max-width:1279px){
.sr-page .sr-pcard{left:16px; right:auto; bottom:auto; top:14px; padding:7px 12px; box-shadow:0 2px 8px rgba(15,36,64,.10)}
.sr-page .sr-pcard .sr-p{display:none}
.sr-page .sr-pcard .sr-a{font-size:13.5px}
.sr-page .sr-pcard .sr-attr{display:none}
.sr-page .sr-battr{display:block}

}
.sr-page.sr-pane-open .sr-pcard .sr-p{display:none}
/* the landing sequence: only ever hides things while body.intro is set */
.sr-page .sr-rv{transition:opacity .5s ease var(--d,0ms), transform .65s var(--ease-out) var(--d,0ms)}
.sr-page.sr-intro .sr-rv{opacity:0; transform:translateY(14px)}
.sr-page .sr-facts{transition:border-color .5s ease 1.1s}
.sr-page.sr-intro:not(.sr-reveal) .sr-facts{border-color:transparent; transition:none}
.sr-page.sr-intro.sr-reveal .sr-rv{opacity:1; transform:none}
.sr-page.sr-intro .sr-verdict .sr-call.sr-rv{transform:translateY(8px) scale(.97); transform-origin:0 100%}
.sr-page.sr-intro.sr-reveal .sr-verdict .sr-call.sr-rv{transform:none}
.sr-page.sr-no-anim *, .sr-page.sr-no-anim *::before, .sr-page.sr-no-anim *::after{transition:none !important; animation:none !important}
/* verdict tones, from the summary block's verdictTone */
.sr-page .sr-verdict.sr-tone-positive{background:#eef7f1; border-color:#cfe6d8; border-left-color:var(--green)}
.sr-page .sr-verdict.sr-tone-positive .sr-lbl, .sr-page .sr-verdict.sr-tone-positive .sr-call{color:var(--green)}
.sr-page .sr-verdict.sr-tone-negative{background:#fdf0f0; border-color:#f3d2d2; border-left-color:var(--red)}
.sr-page .sr-verdict.sr-tone-negative .sr-lbl, .sr-page .sr-verdict.sr-tone-negative .sr-call{color:var(--red)}
.sr-page .sr-verdict.sr-tone-neutral{background:var(--g50); border-color:var(--g200); border-left-color:var(--g400)}
.sr-page .sr-verdict.sr-tone-neutral .sr-lbl, .sr-page .sr-verdict.sr-tone-neutral .sr-call{color:var(--navy-dark)}
.sr-page .sr-verdict.sr-tone-neutral .sr-line{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden}
/* the same motion language, quieter, in the body */
.sr-page section.sr-s.sr-will{opacity:0; transform:translateY(12px)}
.sr-page section.sr-s{transition:opacity .5s ease, transform .6s var(--ease-out)}
.sr-page section.sr-s.sr-will.sr-seen{opacity:1; transform:none}
.sr-page .sr-pin{transition:box-shadow .2s ease, transform .2s ease}
.sr-page .sr-pin.sr-sel{transform:scale(1.15)}
.sr-page #sr-map.sr-pins-wait .sr-pin{opacity:0; transform:scale(.3)}
.sr-page #sr-map.sr-pins-in .sr-pin{animation:sr-pinin .45s var(--ease-out) both; animation-delay:var(--pd,0ms)}
@keyframes sr-pinin{ from{opacity:0; transform:scale(.3)} }
.sr-page .sr-pane .sr-body > *{animation:sr-rise .4s var(--ease-out) both}
.sr-page .sr-pane .sr-body > *:nth-child(2){animation-delay:40ms}
.sr-page .sr-pane .sr-body > *:nth-child(3){animation-delay:80ms}
.sr-page .sr-pane .sr-body > *:nth-child(4){animation-delay:120ms}
.sr-page .sr-pane .sr-body > *:nth-child(n+5){animation-delay:160ms}
.sr-page .sr-pane header > div{animation:sr-rise .35s var(--ease-out) both}
@keyframes sr-rise{ from{opacity:0; transform:translateY(8px)} }
.sr-page .sr-pane mark{animation:sr-markin .9s ease .35s both}
@keyframes sr-markin{ from{background:transparent; box-shadow:0 0 0 2px transparent} }
@media (prefers-reduced-motion: reduce){
html:has(.sr-page){scroll-behavior:auto}
.sr-page *, .sr-page *::before, .sr-page *::after{transition:none !important; animation:none !important}
.sr-page section.sr-s.sr-will{opacity:1; transform:none}
.sr-page #sr-map.sr-pins-wait .sr-pin{opacity:1; transform:none}

}

/* ---- inside the planner chrome ---- */
/* --sr-chrome: the planner top bar above the report. --sr-foot: the support bar stuck to the
   bottom of the window. The plate is sized to sit between them so its card is never underneath. */
.sr-page{--sr-chrome:60px; --sr-foot:40px}
/* A sticky element is its own stacking context, so the stage inside it cannot rise above the
   page's sticky footer by z-index alone: the slot itself is lifted while the opening plays. */
.sr-page.sr-intro .sr-slot{z-index:800}
.sr-page .sr-bar .sr-actions{display:flex; gap:8px; flex:none}
.sr-page .sr-btn.sr-primary{background:var(--navy); border-color:var(--navy); color:#fff}
.sr-page .sr-btn.sr-primary:hover{background:var(--navy-light); border-color:var(--navy-light)}
.sr-page section.sr-s, .sr-page #sr-top{scroll-margin-top:76px}
.sr-page .sr-tablewrap{overflow-x:auto}

/* No flash before the opening: the cover waits for the script to say which way it is starting
   (the opening, or straight to rest). If the script never runs, the cover shows itself after 3s
   rather than staying hidden: the report must be readable with JavaScript broken. */
.sr-page:not(.sr-ready) .sr-cover{animation:sr-failsafe 0s linear 3s both}
@keyframes sr-failsafe{ from{visibility:hidden} to{visibility:visible} }
.sr-page:not(.sr-ready) .sr-cover{visibility:hidden}

/* ---- a source document in the pane: wider, and animated out to that width ---- */
.sr-page .sr-pane{transition:transform .28s ease, visibility 0s .28s, width .34s var(--ease-io)}
.sr-page.sr-pane-open .sr-pane{transition:transform .28s ease, width .34s var(--ease-io)}
.sr-page.sr-pane-wide .sr-pane{width:min(720px, 100vw)}
.sr-page .sr-doctools{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 22px; border-bottom:1px solid var(--g200); font-size:13px; color:var(--g600)}
.sr-page .sr-docnote{flex:1 1 200px}
.sr-page .sr-docnote:empty{display:none}
.sr-page .sr-quoted{margin-left:2px; padding:1px 7px; border-radius:999px; background:#fdecc0; color:var(--amber-ink); font-size:11.5px; font-weight:600}
.sr-page .sr-docnav{display:inline-flex; align-items:center; gap:8px; font-variant-numeric:tabular-nums; white-space:nowrap}
.sr-page .sr-docnav .sr-btn{width:32px; padding:0; justify-content:center}
.sr-page .sr-pane .sr-doc{font-size:15px; line-height:1.65; color:var(--g800); padding-bottom:64px}
.sr-page .sr-pane .sr-doc p{margin:0 0 12px}
.sr-page .sr-pane .sr-doc mark{background:#fdecc0; color:inherit; padding:1px 0; box-shadow:0 0 0 2px #fdecc0; border-radius:1px; animation:none}
.sr-page .sr-pane .sr-doc mark.sr-q-on{background:#f9d77a; box-shadow:0 0 0 2px #f9d77a, 0 0 0 4px rgba(194,120,3,.35)}
.sr-page .sr-pane .sr-docwarn{padding:8px 12px; background:var(--amber-bg); border:1px solid #f1dfb6; border-radius:6px; font-size:13px; color:var(--amber-ink)}
/* the document does not ripple in paragraph by paragraph the way a record's few blocks do */
.sr-page .sr-pane .sr-doc > *{animation:none}

/* ---- read from a share link: no planner chrome above or below the report ---- */
.sr-page.sr-shared{--sr-chrome:0px; --sr-foot:0px; min-height:100vh}
.sr-page .sr-bar .sr-crumb .sr-logo{margin-right:2px}

/* ---- the share panel, under the report's bar ---- */
.sr-page .sr-sharepanel{position:sticky; top:52px; z-index:890; padding:14px 28px 12px; background:#fff; border-bottom:1px solid var(--g200);
  box-shadow:0 8px 20px rgba(15,36,64,.08); font-size:13.5px; color:var(--g700)}
.sr-page .sr-sharepanel label{display:block; font-weight:600; color:var(--g900); margin-bottom:8px}
.sr-page .sr-sharerow{display:flex; align-items:center; gap:8px; max-width:900px}
.sr-page .sr-sharerow input{flex:1; min-width:0; height:32px; padding:0 10px; border:1px solid var(--g300); border-radius:6px;
  font:500 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--g800); background:var(--g50)}
.sr-page .sr-sharepanel p{margin:8px 0 0; max-width:900px; font-size:12.5px; color:var(--g500)}

/* a report that could not be read */
.sr-page .sr-broken{max-width:560px; margin:0 auto; padding:96px 24px; color:var(--g600); line-height:1.6}
.sr-page .sr-broken p{margin:0 0 12px}

/* ---- phones: one column, no opening (the script never starts it below 641px) ---- */
@media (max-width:640px){
  /* not sticky on a phone: two rows of bar would cover a fifth of the screen for the whole read */
  .sr-page .sr-bar{position:static; height:auto; min-height:52px; flex-wrap:wrap; padding:4px 16px 8px; gap:4px 8px}
  .sr-page .sr-bar .sr-crumb{flex:1 1 100%}
  .sr-page .sr-bar .sr-sp{display:none}
  .sr-page .sr-slot{top:0}
  .sr-page .sr-btn{height:40px}
  .sr-page .sr-bar .sr-crumb a{display:inline-flex; align-items:center; min-height:40px; min-width:40px}
  .sr-page .sr-slot{height:220px}
  .sr-page .sr-summary{padding:22px 16px 24px}
  .sr-page h1{font-size:24px}
  .sr-page .sr-verdict{padding:16px 18px 18px}
  .sr-page .sr-verdict .sr-call{font-size:30px}
  .sr-page .sr-verdict .sr-line{font-size:17px}
  .sr-page .sr-frame{padding:0 16px 96px}
  .sr-page section.sr-s{margin-top:40px}
  .sr-page section.sr-s > h2{font-size:19px}
  .sr-page #sr-map{height:300px}
  .sr-page table.sr-apps{min-width:560px}
  .sr-page table.sr-mdt{min-width:480px}
  .sr-page .sr-pane{width:100vw; border-left:0}
  /* A reference inside a sentence gets a 40px hit area without growing the line: the padding
     is cancelled by the margin, and the boxed chip becomes an underlined reference so the
     taller box has nothing to draw. */
  .sr-page button.sr-ref.sr-app{display:inline-flex; align-items:center; min-height:40px; min-width:40px; padding:0 1px; margin:-14px 0; line-height:1.4; border:0; background:none;
    color:var(--navy); text-decoration:underline dotted; text-underline-offset:3px}
  .sr-page button.sr-ref.sr-app:hover, .sr-page button.sr-ref.sr-app.sr-is-open{background:none; color:var(--navy-dark); text-decoration-style:solid; box-shadow:none}
  .sr-page .sr-x, .sr-page .sr-pzoom button{width:40px; height:40px}
  .sr-page .sr-docnav .sr-btn{width:40px}
  .sr-page .sr-sharepanel{position:static; padding:12px 16px}
  .sr-page .sr-sharerow{flex-wrap:wrap}
  .sr-page .sr-sharerow input{flex:1 1 100%; height:40px}
  .sr-page .sr-seg button{padding:0 14px; min-height:40px}
  .sr-page .leaflet-touch .leaflet-bar a, .sr-page .leaflet-bar a{width:40px; height:40px; line-height:40px}
  .sr-page .sr-pane .sr-uses a{display:inline-block; padding:10px 0}
}

/* ================= assessments and appeals ================= */
/* A report with no recorded location: no plate beside the summary. */
.sr-page.sr-noloc .sr-cover{display:block}
.sr-page.sr-noloc .sr-summary{max-width:784px; margin:0 auto; padding:34px 32px 40px}
.sr-page.sr-noloc .sr-summary .sr-proposal{display:block}
.sr-page section.sr-s hr{border:0; border-top:1px solid var(--g200); margin:26px 0}
.sr-page section.sr-s p.sr-note{margin:0 0 14px; padding:10px 14px; background:var(--g100); border-radius:6px; font-size:13.5px; line-height:1.55; color:var(--g600)}
/* The report's grading of one policy; the PDF's three colours. */
.sr-page .sr-badge{display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; font-weight:600; line-height:1.6; white-space:normal}
.sr-page .sr-badge-compliant{background:#e6f4ea; color:#1e6b3a}
.sr-page .sr-badge-partial{background:#fdf3d8; color:#8a5a00}
.sr-page .sr-badge-conflict{background:#fde8e8; color:#a12626}
/* A finding's one-line explanation (appeals give one; the PDF's summary page shows it too). */
.sr-page .sr-findings li .sr-fnote{display:block; margin-top:3px; font-size:13.5px; line-height:1.5; font-weight:400; color:var(--g600)}
/* Appeals argue under "### Reason 1 - ..." headings with "####" limbs beneath: real sub-headings,
   in that order of weight, not the small label a lone "###" was first styled as. */
.sr-page section.sr-s h3{margin:32px 0 10px; font-size:17.5px; line-height:1.35; font-weight:600; letter-spacing:0; text-transform:none; color:var(--navy)}
.sr-page section.sr-s h4{margin:24px 0 6px; font-size:15px; line-height:1.4; font-weight:600; color:var(--g800)}
/* What hangs under a list entry: sub-points, a quoted block, a follow-on paragraph. */
.sr-page section.sr-s li > p{margin:8px 0 0}
.sr-page section.sr-s li > ul, .sr-page section.sr-s li > ol{margin-top:6px; margin-bottom:4px}
.sr-page section.sr-s li > blockquote{margin:8px 0 4px}
/* An index entry naming several references at once wraps inside its own column. */
.sr-page table.sr-apps td:nth-child(1){white-space:normal; overflow-wrap:anywhere}
.sr-page table.sr-apps td:nth-child(1) .sr-ref{white-space:normal; overflow-wrap:anywhere}
/* The stacked layout puts the location card top-left and the zoom buttons top-right: an address
   (assessments and appeals have one, where a screening has a postcode) must stop short of them. */
@media (max-width:1279px){
.sr-page .sr-pcard{max-width:calc(100% - 78px)}
.sr-page .sr-pcard .sr-a{overflow-wrap:anywhere}
}
/* On a phone a finding's reference goes under its text: an appeal's ("EN5, PPW 6.3.5, 6.3.7, AONB
   SPG 8.42") is long enough to squeeze the text into a few characters a line, or off the screen. */
@media (max-width:640px){
.sr-page .sr-findings li{grid-template-columns:28px minmax(0,1fr)}
.sr-page .sr-findings li > .sr-ref{grid-column:2; justify-self:start; margin-top:6px; white-space:normal; height:auto; text-align:left}
}
