/* Modernist saved-report presentation. The supplied HTML handoff defines these
   colour roles, type scale and square rules. Keep every rule local to this design. */
@font-face {
    font-family: Archivo;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('./fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Archivo;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('./fonts/archivo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.report-design-modern,
.report-modern {
    --color-bg: #f3f2f2;
    --color-text: #201e1d;
    --color-divider: #d7d3d3;
    --color-neutral-200: #eae7e7;
    --color-neutral-300: #d7d3d3;
    --color-neutral-400: #bab6b6;
    --color-neutral-500: #9b9797;
    --color-neutral-600: #7d7979;
    --color-neutral-700: #605d5d;
    --color-neutral-800: #444141;
    --here: #3b3f8c;
    --here-2: #8f93c2;
    --here-tint: #ececf6;
    --boro: #9b9797;
    --wide: #d7d3d3;
    --track: #eae7e7;
    --good: #2f8a76;
    --warn: #d9a441;
    --bad: #ec3013;
    --bad-text: #ae1800;
    --color-accent: var(--here);
    --font-heading: Archivo, 'Arial', sans-serif;
    --font-body: Archivo, 'Arial', sans-serif;
    --sans: var(--font-body);
    --serif: var(--font-heading);
    --ink: var(--color-text);
    --navy: var(--here);
    --muted: var(--color-neutral-700);
    --paper: var(--color-bg);
    --line: var(--color-divider);
    --green: var(--good);
    --amber: #846018;
    --red: var(--bad-text);
    --sky: var(--here-tint);
    background: var(--color-bg);
    color: var(--color-text);
    font: 400 15px/1.5 var(--font-body);
}
/* Keep the full site header at the top; the compact report bar is the only
   sticky header, so section links never sit underneath a second fixed row. */
.report-design-modern .site-header { position: relative; height: auto; background: var(--color-bg); }
.report-design-modern .header-inner { max-width: 1176px; width: calc(100% - 64px); min-height: 73px; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; }
.report-design-modern .header-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 13px; }
.report-design-modern .header-nav a { white-space: nowrap; }
.report-design-modern .header-actions { flex-wrap: wrap; }
.report-design-modern .site-header .brand-logo { width: 180px; }
.report-design-modern .site-header :focus-visible { outline: 2px solid var(--here); outline-offset: 3px; }
.report-design-modern .site-footer { background: var(--color-bg); }
.report-design-modern .footer-inner { flex-wrap: wrap; }
.report-design-modern .site-footer .brand-logo { filter: grayscale(1); }
.report-modern { min-width: 0; }
.report-modern *,
.report-design-modern .preferences-dialog,
.report-design-modern .preferences-dialog * { border-radius: 0; box-shadow: none; }
.report-modern :is(h1, h2, h3, h4, strong) { font-family: var(--font-heading); font-weight: 800; }
.report-modern :is(p, figure) { margin: 0; }
.report-modern p { line-height: 1.5; }
.report-modern a { color: inherit; text-underline-offset: 3px; }
.report-modern a:hover { color: var(--color-neutral-700); }
.report-modern :focus-visible { outline: 2px solid var(--here); outline-offset: 3px; }
.report-modern :is(.view-switch, .evidence-expand) { display: none; }
.report-modern .button { color: var(--color-text); border: 1px solid var(--color-divider); background: transparent; }
.report-modern .button:hover { background: var(--track); box-shadow: none; }
.report-modern .button-primary { color: #fff; background: var(--here); border-color: var(--here); }
.report-modern .button-primary:hover { color: #fff; background: #303474; }
.report-modern .text-button { color: var(--here); }

/* Two compact rows replace the normal report sidebar. */
.mr-nav { position: sticky; top: 0; z-index: 1090; border-bottom: 2px solid var(--color-divider); background: var(--color-bg); }
.mr-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mr-nav > :is(.mr-nav-top, .mr-nav-links) { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.mr-nav-top { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; border-bottom: 1px solid var(--color-divider); }
.mr-nav-top > a:first-child { flex: none; display: flex; align-items: center; text-decoration: none; }
.mr-nav-top img { width: auto; height: 18px; max-width: 175px; object-fit: contain; filter: grayscale(1); }
.mr-nav-top strong,
.mr-nav-address { font-size: 14px; font-weight: 800; }
.mr-nav-meta { margin-left: auto; font-size: 11px; color: var(--color-neutral-700); }
.mr-nav-top > a:not(:first-child) { font-size: 11px; }
.mr-site-menu { flex: none; }
.mr-site-menu > summary { min-height: 40px; padding: 9px 12px; border: 1px solid var(--color-divider); cursor: pointer; font-size: 12px; font-weight: 600; }
.mr-site-menu[open] > summary { background: var(--track); }
.mr-site-menu > nav { position: absolute; top: calc(100% + 6px); right: max(32px, calc((100% - 1176px) / 2)); z-index: 1; display: flex; flex-direction: column; width: 220px; max-height: calc(100dvh - 160px); overflow-y: auto; padding: 6px; border: 1px solid var(--color-divider); background: var(--color-bg); }
.mr-site-menu > nav a { min-height: 44px; padding: 11px 12px; font-size: 13px; text-decoration: none; }
.mr-site-menu > nav a:hover { background: var(--track); color: var(--color-text); }
.mr-nav-links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mr-nav-links a { flex: none; padding: 12px 0 9px; border-bottom: 3px solid transparent; text-decoration: none; }
.mr-nav-links a:is(.active, [aria-current="location"], [aria-current="true"]) { border-color: var(--here); }
.mr-nav-links a:hover { border-color: var(--wide); }
.mr-nav-links a:focus-visible { outline-offset: -2px; }
.mr-main { max-width: 1240px; margin: 0 auto; padding: 0 32px 96px; }
.mr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--color-divider); }
.mr-toolbar p { color: var(--color-neutral-700); font-size: 12px; }
.mr-toolbar > :is(span, a) { color: var(--color-neutral-700); font-size: 12px; }
.mr-toolbar .report-actions { flex-wrap: wrap; }
.mr-toolbar .button { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.mr-toolbar .icon-button { border-color: var(--color-divider); color: var(--color-text); background: transparent; }
.mr-section,
.mr-overview,
.mr-questions,
.mr-supplement { scroll-margin-top: 150px; }
.mr-section + .mr-section { margin-top: 40px; }

/* A headline and four facts form the opening of each section. Grid gaps are
   actual rules, so there are no border shadows or doubled edges. */
.mr-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1px; background: var(--color-divider); border-bottom: 2px solid var(--color-divider); }
.mr-intro { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 56px 40px 48px 0; background: var(--color-bg); }
.mr-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-700); }
.mr-intro :is(h1, h2) { max-width: 16ch; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; }
.mr-overview .mr-intro h1 { max-width: 24ch; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; }
.mr-place-context { margin: -8px 0 0; color: var(--color-neutral-700); font-size: 20px; }
.mr-overview-map { margin-top: 32px; }
.report-modern .map-section { scroll-margin-top: 150px; }
.mr-stations { padding-block: 28px; border-bottom: 1px solid var(--color-divider); }
.mr-stations > h2 { margin: 8px 0 12px; font-size: 28px; letter-spacing: -.02em; }
.mr-stations > .mr-context { margin-block: 12px; }
.mr-stations .mr-tiles { margin-top: 20px; }
.mr-stations .mr-tile h3 { font-size: 20px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.mr-overview .mr-neighbourhood-heading { max-width: 36ch; padding-top: 8px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; text-wrap: pretty; }
.mr-summary { max-width: 54ch; font-size: 18px; text-wrap: pretty; }
.mr-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--color-neutral-700); }
.mr-legend > span { display: inline-flex; gap: 7px; align-items: center; }
.mr-legend i { display: inline-block; flex: none; width: 12px; height: 12px; background: var(--here); }
.mr-legend i.is-borough { background: var(--boro); }
.mr-legend i.is-wide { background: var(--wide); }
.mr-legend .icon { width: 16px; height: 16px; }
.mr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; align-content: stretch; min-width: 0; background: var(--color-divider); }
.mr-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 32px 28px 28px; background: var(--color-bg); }
.mr-tile > :is(label, span, .mr-tile-label) { color: var(--color-neutral-700); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mr-tile > strong { display: block; color: var(--color-text); font-size: clamp(34px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.03em; overflow-wrap: anywhere; }
.mr-tile > small { display: block; color: var(--color-neutral-800); font-size: 12px; line-height: 1.5; }
.mr-tile.is-warning { padding-top: 26px; border-top: 6px solid var(--warn); }
.mr-tile.is-warning > :is(label, span, strong, .mr-tile-label) { color: var(--amber); }
.mr-tile.is-unavailable > strong { color: var(--color-neutral-700); font-size: 27px; letter-spacing: -.02em; }
.mr-tile.mr-tile-long > strong { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.mr-tile > .evidence-links { margin-top: auto; font-size: 11px; }

/* Currency stays complete, sizing against its own tile instead of the viewport.
   Character count changes only the type size; no rounding or shortened money labels. */
.mr-tile-money { container-type: inline-size; --mr-money-size: clamp(34px, 3.4vw, 46px); }
.report-modern .mr-tile.mr-tile-money > strong {
    font-size: min(var(--mr-money-size), calc(100cqi / var(--mr-money-characters) * 1.8));
    line-height: 1.06;
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: lining-nums tabular-nums;
}
.mr-section-focused .mr-tile-money { --mr-money-size: 30px; }
@media (max-width: 760px) { .mr-tile-money { --mr-money-size: 34px; } }
@media print { .mr-tile-money { --mr-money-size: 25pt; } }

/* Reviewed brand names use this report's neutral initials, with no remote logo requests. */
.mr-brand-chart { container-type: inline-size; }
.mr-brand-groups { display: grid; gap: 24px; }
.mr-brand-summary { margin-bottom: 18px !important; font-size: 14px; }
.mr-brand-group + .mr-brand-group { padding-top: 20px; border-top: 1px solid var(--color-divider); }
.mr-brand-group h4 { margin: 0 0 14px; font-size: 16px; line-height: 1.3; }
.mr-brand-subtitle { margin-bottom: 14px !important; font-size: 12px; color: var(--color-neutral-700); }
.mr-brand-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mr-brand-tier { min-width: 0; }
.mr-brand-tier h5 { margin: 0 0 12px; font-size: 12px; line-height: 1.4; font-weight: 800; }
.mr-brand-list { list-style: none; margin: 0; padding: 0; }
.mr-brand-list > li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 0; border-top: 1px solid var(--color-divider); }
.mr-brand-list > li > div { min-width: 0; }
.mr-brand-list strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.mr-brand-list small { display: block; margin-top: 3px; color: var(--color-neutral-700); font-size: 11px; line-height: 1.4; }
.mr-brand-badge { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--color-neutral-200); border: 1px solid var(--color-divider); color: var(--color-neutral-800); font-size: 10px; font-weight: 800; letter-spacing: .01em; }
.mr-brand-note { color: var(--color-neutral-700); font-size: 12px; }
.mr-brand-key { margin: 18px 0 8px !important; font-size: 11px; }
.mr-brand-more { margin-top: 6px; font-size: 11px; line-height: 1.5; }
.mr-brand-more > summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mr-brand-more[open] > summary { margin-bottom: 10px; }
@container (max-width: 430px) {
    .mr-brand-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .mr-brand-list strong { font-size: 14px; }
    .mr-brand-list small { font-size: 12px; }
}
@media print {
    .mr-brand-more:not([open]) > :not(summary) { display: block !important; }
    .mr-brand-more::details-content { display: block !important; content-visibility: visible !important; height: auto !important; }
}
.mr-context,
.mr-period { color: var(--color-neutral-700); font-size: 12px; line-height: 1.5; }
.mr-period { margin-top: auto !important; }
.mr-summary a { text-decoration: none; }
.mr-summary a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mr-street-photo { margin: 20px 0; }
.mr-street-photo img { display: block; width: min(100%, 640px); height: auto; }
.mr-street-photo figcaption { max-width: 75ch; font-size: 12px; margin-top: 12px; }
.mr-flood { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--color-neutral-800); font-size: 13px; }
.mr-flood .icon { width: 18px; height: 18px; }
.mr-flood small { width: 100%; padding-left: 26px; color: var(--color-neutral-700); font-size: 12px; }
.mr-identity { padding-block: 24px; border-bottom: 1px solid var(--color-divider); }
.mr-main > .mr-context { margin-block: 20px; }
.report-modern .mr-warning-text,
.report-modern .evidence-rows .mr-warning-text { color: var(--amber); }
.mr-tile-track { height: 10px; margin-top: 6px; background: var(--track); }
.mr-tile-track > span { display: block; height: 100%; background: var(--here); }

/* Numbered findings retain one reading and one chart before their evidence. */
.mr-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); column-gap: 56px; border-bottom: 2px solid var(--color-divider); }
.mr-article { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 48px 0 40px; border-bottom: 1px solid var(--color-divider); }
.mr-article > header { display: flex; align-items: center; gap: 16px; }
.mr-article-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; color: #fff; background: var(--here); }
.mr-article-icon .icon { width: 26px; height: 26px; stroke-width: 2; }
.mr-article-number { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--color-neutral-700); }
.mr-article h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.mr-reading { font-size: 17px; max-width: 65ch; text-wrap: pretty; }
.mr-chart { min-width: 0; margin-top: 6px; }
.mr-chart > figure { margin: 0; }
.mr-chart :is(figcaption, .mr-caption) { color: var(--color-neutral-700); font-size: 12px; line-height: 1.5; }
.mr-chart-heading { margin-bottom: 12px !important; font-size: 17px; font-weight: 800; }
.mr-chart-reading { margin-bottom: 18px !important; color: var(--color-neutral-800); font-size: 17px; }
.mr-chart-chip { display: inline-block; margin-bottom: 14px; padding: 3px 6px; background: var(--track); color: var(--color-neutral-800); font-size: 11px; font-weight: 600; }
.mr-bars,
.mr-pairs { display: grid; gap: 22px; }
.mr-bar-row,
.mr-pair-row { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; min-width: 0; }
.mr-bar-label { grid-column: 1; grid-row: 1; min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.mr-bar-label small { display: block; margin-top: 4px; color: var(--color-neutral-700); font-size: 11px; line-height: 1.45; }
.mr-bar-value { grid-column: 3; grid-row: 1; font-size: 16px; line-height: 1.25; text-align: right; font-variant-numeric: tabular-nums; }
.mr-bar-track { position: relative; grid-column: 2; grid-row: 1; height: 12px; min-width: 0; background: var(--track); }
.mr-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; }
.mr-bar-mark { position: absolute; top: -3px; height: 18px; border-left: 2px dashed var(--boro); }
.mr-bar-notes,
.mr-chart-scale { color: var(--color-neutral-700); font-size: 11px; line-height: 1.5; }
.mr-bar-notes { grid-column: 2 / -1; }
.mr-bar-row > .mr-chart-scale { grid-column: 2 / -1; }
.mr-chart > .mr-chart-scale { margin-top: 18px; }
.mr-chart figcaption { margin-top: 18px; }
.mr-pair-track { position: relative; grid-column: 2; grid-row: 1; height: 6px; min-width: 0; margin: 12px 6px; background: var(--track); }
.mr-pair-span { position: absolute; top: 0; height: 6px; background: var(--here); }
.mr-pair-from,
.mr-pair-to { position: absolute; top: -3px; width: 12px; height: 12px; transform: translateX(-50%); border: 3px solid var(--here); background: var(--color-bg); z-index: 2; }
.mr-pair-to { background: var(--here); }
.mr-pair-boro { position: absolute; top: -7px; height: 20px; border-left: 3px solid var(--boro); transform: translateX(-50%); }
.mr-pair-nation { position: absolute; top: 12px; width: 0; height: 0; transform: translateX(-50%); border-inline: 4px solid transparent; border-bottom: 6px solid var(--color-neutral-700); }
.mr-parts { display: flex; gap: 2px; height: 30px; margin-bottom: 20px; }
.mr-part-segment { display: block; min-width: 0; flex-shrink: 1; height: 100%; }
.mr-parts-total { margin-bottom: 16px !important; font-size: 14px; color: var(--color-neutral-700); }
.mr-parts-total strong { margin-right: 6px; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--color-text); }
.mr-parts-key { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.mr-parts-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 48px; gap: 10px; align-items: baseline; font-size: 13px; }
.mr-parts-key li > :last-child { text-align: right; color: var(--color-neutral-700); font-variant-numeric: tabular-nums; }
.mr-part-swatch { display: inline-block; width: 10px; height: 10px; }
.mr-chart-svg.gfx { background: transparent; border: 0; padding: 0; max-width: none; }
.mr-chart-svg .gfx-svg { max-width: 100%; }
/* These SVGs use a small, fixed coordinate system. Limit enlargement so labels
   and line weights remain readable when an article spans both columns. */
.mr-chart-svg.gfx-lines > .gfx-svg { width: 100%; max-width: 720px; margin-inline: 0; }
.mr-chart-svg.gfx-trend > .gfx-svg { width: 100%; max-width: 560px; margin-inline: 0; }
.mr-chart-svg .gfx-heading { font-size: 17px; color: var(--color-text); font-weight: 800; }
.mr-chart-svg .gfx-reading { margin-bottom: 18px; font-size: 15px; color: var(--color-neutral-800); }
.mr-chart-svg .gfx-chip { position: static; display: inline-block; margin-bottom: 14px; background: var(--track); color: var(--color-neutral-800); font-size: 11px; }
.mr-chart-svg :is(.gfx-big, .gfx-value, .gfx-step) { fill: var(--color-text); font-weight: 800; }
.mr-chart-svg :is(.gfx-small, .gfx-tiny) { fill: var(--color-neutral-700); }
.mr-chart-svg .gfx-step-light { fill: #fff; }
.mr-chart-svg .school-list { color: var(--color-text); font-size: 13px; }
.mr-chart-svg .school-list :is(th, td) { border-color: var(--color-divider); }
.mr-chart-svg .school-list :is(small, a, .school-pupils, .school-distance, .school-inspection > span) { color: var(--color-neutral-700); }
.mr-chart-svg .school-list strong { color: var(--color-text); }
.mr-article .mr-evidence { margin-top: auto; padding-top: 8px; }
.mr-article--wide { grid-column: 1 / -1; }
.mr-evidence { min-width: 0; font-size: 14px; }
.mr-evidence > summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 2px solid var(--color-text); list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mr-evidence > summary::-webkit-details-marker { display: none; }
.mr-evidence > summary:hover { color: var(--color-neutral-700); }
.mr-evidence > summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: -4px 3px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.mr-evidence[open] > summary::after { transform: translateY(4px) rotate(225deg); }
.mr-evidence > summary > .icon { width: 14px; height: 14px; }
.mr-evidence > summary:has(> .icon)::after { content: none; }
.mr-evidence[open] > summary > .icon { transform: rotate(180deg); }
.mr-evidence > :not(summary) { margin-top: 16px; color: var(--color-neutral-800); }
.mr-evidence > :is(p, ul, ol) { max-width: 76ch; }
.mr-evidence ul { margin-bottom: 0; padding-left: 20px; }
.mr-evidence li + li { margin-top: 12px; }
.mr-evidence li small,
.mr-evidence .mr-source-label { display: block; margin-bottom: 4px; font-size: 11px; color: var(--color-neutral-700); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mr-evidence a { overflow-wrap: anywhere; }
.mr-section-evidence { padding: 24px 0 32px; border-bottom: 2px solid var(--color-divider); }
.mr-evidence .evidence-rows { max-width: none; padding: 0; }
.mr-evidence .evidence-rows li { padding: 14px 0; border-color: var(--color-divider); }
.mr-evidence .evidence-rows :is(strong, p, li > span) { color: var(--color-neutral-800); font-size: 14px; }
.mr-evidence .evidence-rows li > span { overflow-wrap: anywhere; }
.mr-evidence .evidence-note { background: var(--track); color: var(--color-neutral-800); font-size: 13px; }
.mr-evidence .source-line { border-color: var(--color-divider); color: var(--color-neutral-700); font-size: 12px; line-height: 1.5; flex-wrap: wrap; }
.mr-evidence .source-line a { color: inherit; text-decoration: underline; }
.mr-records { margin: 20px 0 0; }
.mr-records > div { display: grid; grid-template-columns: minmax(160px, 30%) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--color-divider); }
.mr-records dt { color: var(--color-neutral-700); font-size: 14px; }
.mr-records dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mr-records dd > strong { display: block; margin-bottom: 6px; font-size: 18px; }
.mr-records .evidence-links { margin-top: 8px; font-size: 12px; }
.mr-signals { list-style: none; max-width: none !important; padding: 0 !important; }
.mr-signals li { padding: 16px 0; border-bottom: 1px solid var(--color-divider); }
.mr-signals li > span { display: block; color: var(--color-neutral-700); font-size: 12px; margin-top: 4px; }
.mr-signals li p { margin-top: 8px; }

/* The three ideas from the neighbourhood discussion stay separate: today's
   character, measured direction and the strength of its supporting evidence. */
.mr-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--color-divider); border-block: 2px solid var(--color-divider); }
.mr-story > :is(article, div) { min-width: 0; padding: 28px; background: var(--color-bg); }
.mr-story > div > span { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--color-neutral-700); letter-spacing: .04em; text-transform: uppercase; }
.mr-story > div > strong { display: block; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.mr-story > div > a { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 600; }
.mr-story h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.mr-story p { font-size: 14px; color: var(--color-neutral-800); }
.mr-story strong { color: var(--color-text); }
.mr-story small { display: block; margin-top: 12px; font-size: 12px; color: var(--color-neutral-700); }
.mr-gentrification { padding: 36px 28px 24px; border-bottom: 2px solid var(--color-divider); scroll-margin-top: 150px; }
.mr-gentrification > header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.mr-gentrification > header h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.mr-gentrification > header > span { font-size: 12px; color: var(--color-neutral-700); }
.mr-gentrification-reading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mr-gentrification-reading > div { min-width: 0; }
.mr-gentrification-verdict > strong { display: block; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; color: var(--here); }
.mr-gentrification-verdict p { max-width: 48ch; margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.mr-gentrification-verdict .mr-gentrification-caveat { font-size: 12px; color: var(--color-neutral-700); }
.mr-gentrification-guard { padding-left: 12px; border-left: 3px solid var(--here-2); }
.mr-gentrification-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 25px; font-size: 14px; }
.mr-gentrification-balance strong { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.mr-gentrification-scale { position: relative; height: 16px; margin-inline: 6px; background: linear-gradient(to right, var(--color-neutral-300) 0 50%, var(--here-2) 50% 100%); }
.mr-gentrification-zero { position: absolute; left: 50%; top: -5px; height: 26px; border-left: 1px solid var(--color-neutral-700); }
.mr-gentrification-marker { position: absolute; top: -7px; bottom: -7px; width: 6px; transform: translateX(-50%); background: var(--here); box-shadow: 0 0 0 2px var(--color-bg); }
.mr-gentrification-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--color-neutral-700); line-height: 1.5; }
.mr-gentrification-axis > span { flex: 1; }
.mr-gentrification-axis > span:nth-child(2) { text-align: center; }
.mr-gentrification-axis > span:last-child { text-align: right; }
.mr-gentrification-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 12px; gap: 16px; }
.mr-gentrification-counts > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.mr-gentrification-counts dt { font-size: 12px; color: var(--color-neutral-700); }
.mr-gentrification-counts dd { margin: 0; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mr-gentrification-coverage { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-700); }
.mr-gentrification-unavailable { margin: 0; padding: 16px 0; border-block: 1px solid var(--color-divider); color: var(--color-neutral-700); }
.mr-gentrification-drivers { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; }
.mr-gentrification-drivers h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.mr-gentrification-drivers ul { list-style: none; margin: 0; padding: 0; }
.mr-gentrification-drivers li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--color-divider); font-size: 13px; }
.mr-gentrification-drivers p { font-size: 13px; color: var(--color-neutral-700); }
.mr-gentrification-weight { display: flex; flex-shrink: 0; align-items: center; gap: 8px; font-size: 11px; color: var(--color-neutral-700); }
.mr-gentrification-weight-track { display: block; width: 40px; height: 5px; background: var(--track); }
.mr-gentrification-weight-track > span { display: block; height: 100%; background: var(--here-2); }
.mr-gentrification .mr-gentrification-details { margin-top: 24px; }
.mr-gentrification-details > p { max-width: 80ch; font-size: 13px; line-height: 1.6; }
.mr-gentrification-signals { list-style: none; padding: 0; margin: 20px 0; }
.mr-gentrification-signals li { padding: 14px 0; border-top: 1px solid var(--color-divider); }
.mr-gentrification-signals li > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.mr-gentrification-signals li > div > span { flex-shrink: 0; color: var(--color-neutral-700); }
.mr-gentrification-signals li > p { max-width: 90ch; font-size: 12px; margin: 8px 0 0; line-height: 1.6; color: var(--color-neutral-700); }
@media (max-width: 680px) {
    .mr-gentrification { padding: 28px 0; }
    .mr-gentrification > header { align-items: start; }
    .mr-gentrification-reading, .mr-gentrification-drivers { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mr-gentrification-signals li > div { flex-direction: column; gap: 6px; }
}
@media print {
    .mr-gentrification { break-inside: auto; }
    .mr-gentrification-reading, .mr-gentrification-drivers > div, .mr-gentrification-signals li { break-inside: avoid; }
}
.mr-assessment,
.mr-findings { padding: 40px 0; border-bottom: 2px solid var(--color-divider); }
.mr-assessment h2,
.mr-findings h2 { margin: 14px 0 18px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.mr-assessment > p:not(.mr-kicker) { max-width: 76ch; font-size: 17px; }
.mr-assessment ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.mr-assessment li { display: flex; gap: 10px; align-items: baseline; max-width: 90ch; font-size: 14px; }
.mr-assessment li .icon { width: 16px; height: 16px; align-self: start; margin-top: 3px; }
.mr-findings ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; list-style: none; padding: 0; margin: 28px 0 0; }
.mr-findings li > strong { font-size: 18px; }
.mr-findings li p { margin: 10px 0; font-size: 14px; color: var(--color-neutral-800); }
.mr-findings li a { font-size: 12px; color: var(--color-neutral-700); }

.mr-questions { padding-top: 56px; }
.mr-questions .question-cards { margin: 0; }
.mr-questions .question-cards h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.mr-questions .question-cards-intro { margin-bottom: 24px; font-size: 15px; color: var(--color-neutral-700); }
.mr-questions .question-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); column-gap: 56px; row-gap: 0; border-top: 2px solid var(--color-divider); }
.mr-questions .question-card { padding: 32px 0; gap: 18px; background: transparent; border: 0; border-bottom: 1px solid var(--color-divider); }
.mr-questions .question-card header { gap: 14px; flex-wrap: wrap; }
.mr-questions .question-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.mr-questions .question-direction { color: var(--color-neutral-800); background: var(--track); font-size: 12px; padding: 5px 8px; }
.mr-questions .question-answer { font-size: 17px; font-weight: 400; color: var(--color-text); }
.mr-questions .question-card li { color: var(--color-neutral-800); font-size: 14px; }
.mr-questions .question-tag { background: var(--track); color: var(--color-neutral-800); font-size: 11px; padding: 2px 5px; }
.mr-questions .question-note { color: var(--color-neutral-700); font-size: 12px; }
.mr-questions .question-card > a { align-self: flex-start; padding-bottom: 3px; border-bottom: 2px solid var(--color-text); font-size: 13px; }

/* Retained map, source and personal-preference components inherit the design
   without changing their data, controls or saved-report behaviour. */
.mr-supplement { padding: 32px 0; border-bottom: 2px solid var(--color-divider); }
.mr-supplement > :is(h2, header > h2) { margin: 0 0 20px; font-size: 32px; font-weight: 800; letter-spacing: -.025em; }
.mr-supplement .evidence-section { background: transparent; border: 0; padding: 0; margin: 0; }
.mr-supplement .evidence-heading h2 { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.report-modern .map-section { background: transparent; border: 1px solid var(--color-divider); margin: 0; }
.report-modern .map-heading h2 { font-size: 24px; font-weight: 800; }
.report-modern .map-heading p,
.report-modern .map-controls > label { color: var(--color-neutral-700); font-size: 12px; }
.mr-supplement .checks-list strong { font-size: 15px; }
.mr-supplement .checks-list label > span > span { color: var(--color-neutral-700); font-size: 14px; }
.mr-supplement .report-sources { padding: 0; }
.mr-supplement .report-sources h2 { font-size: 28px; font-weight: 800; }
.mr-supplement .report-sources > p { font-size: 14px; color: var(--color-neutral-700); }
.mr-supplement .report-meta { font-size: 12px; color: var(--color-neutral-700); }
.report-modern .next-checks { padding: 40px 0; background: transparent; border-bottom: 2px solid var(--color-divider); }
.report-modern .next-checks > h2,
.report-modern .report-sources > h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; }
.report-modern .next-checks > p,
.report-modern .report-sources > p { font-size: 15px; color: var(--color-neutral-700); }
.report-modern .next-checks > a { display: inline-block; margin-top: 14px; font-size: 13px; }
.report-modern .checks-list strong { font-size: 15px; }
.report-modern .checks-list label > span > span { color: var(--color-neutral-700); font-size: 14px; }
.report-modern .checks-group { margin-top: 32px; font-size: 20px; }
.report-modern .next-checks > .mr-context { margin-top: 32px; font-size: 14px; }
.report-modern .report-sources { padding: 40px 0 24px; }
.report-modern :is(.status-label, .quiet-badge) { border-color: var(--color-divider); color: var(--color-neutral-700); background: transparent; }
.report-modern .source-key { font-size: 12px; }
.report-modern .report-end { padding: 24px 0 0; }
.report-modern .report-end p { color: var(--color-neutral-700); font-size: 12px; }
.report-design-modern .preferences-dialog { background: var(--color-bg); font-family: var(--font-body); }
.report-design-modern .dialog-header h2 { font-family: var(--font-heading); font-weight: 800; }

@media (max-width: 960px) {
    .report-design-modern .header-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .report-design-modern .header-actions { margin-left: auto; }
    .report-design-modern .header-example { display: none; }
    .mr-nav-links { flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: thin; }
    .mr-nav-meta { margin-left: 0; }
    .mr-nav-top { padding: 10px 0; }
    .mr-intro { padding-top: 40px; padding-bottom: 36px; }
    .mr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mr-tile { padding: 28px 20px; }
    .mr-tile.is-warning { padding-top: 22px; }
    .mr-articles { column-gap: 32px; }
}
@media (max-width: 760px) {
    .report-design-modern .header-inner { width: calc(100% - 40px); gap: 8px 16px; padding-block: 12px 4px; }
    .report-design-modern .site-header .brand-logo { width: 150px; }
    .report-design-modern .header-nav { gap: 20px; font-size: 12px; }
    .report-design-modern .header-nav a { min-height: 44px; padding-block: 12px; }
    .mr-nav-inner,
    .mr-main,
    .mr-nav > :is(.mr-nav-top, .mr-nav-links) { padding-inline: 20px; }
    .mr-main { padding-bottom: 56px; }
    .mr-nav-top { gap: 0 14px; padding-block: 6px; }
    .mr-nav-top > a:first-child { display: none; }
    .mr-nav-top > strong { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mr-nav-top > a:not(:first-child) { display: inline-flex; align-items: center; min-height: 40px; }
    .mr-site-menu { margin-left: auto; }
    .mr-site-menu > nav { right: 20px; }
    .mr-nav-top img { height: 16px; max-width: 150px; }
    .mr-nav-top strong,
    .mr-nav-address { font-size: 12px; }
    .mr-nav-meta { display: none; }
    .mr-nav-links { font-size: 10px; gap: 18px; }
    .mr-nav-links a { padding-top: 11px; padding-bottom: 8px; }
    .mr-toolbar { padding: 14px 0; }
    .mr-toolbar .report-actions { width: auto; }
    .mr-hero { grid-template-columns: minmax(0, 1fr); }
    .mr-intro { padding: 36px 0 32px; gap: 20px; }
    .mr-summary { font-size: 17px; }
    .mr-tile { padding: 24px 16px; }
    .mr-tile.is-warning { padding-top: 18px; }
    .mr-tile > strong { font-size: 34px; }
    .mr-tile > :is(label, span, .mr-tile-label) { font-size: 11px; }
    .mr-articles { grid-template-columns: minmax(0, 1fr); }
    .mr-article { padding: 32px 0; gap: 16px; }
    .mr-article h3 { font-size: 28px; }
    .mr-reading { font-size: 16px; }
    .mr-bar-row,
    .mr-pair-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; }
    .mr-bar-value { grid-column: 2; }
    .mr-bar-track,
    .mr-pair-track { grid-column: 1 / -1; grid-row: 2; }
    .mr-pair-track { margin-block: 8px 12px; }
    .mr-bar-notes,
    .mr-bar-row > .mr-chart-scale { grid-column: 1 / -1; }
    .mr-chart-svg .school-list :is(th, td) { padding-right: 8px; overflow-wrap: anywhere; }
    .mr-chart-svg .school-distance { white-space: normal; }
    .mr-evidence .evidence-rows li { align-items: flex-start; gap: 16px; }
    .mr-evidence .evidence-rows li > span { max-width: 40%; }
    .mr-records > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .mr-records dd > strong { font-size: 20px; }
    .mr-section + .mr-section { margin-top: 24px; }
    .mr-questions { padding-top: 40px; }
    .mr-questions .question-grid { grid-template-columns: minmax(0, 1fr); }
    .mr-story > :is(article, div) { padding: 24px 20px; }
    .mr-supplement { padding-block: 28px; }
    .report-modern .map-heading { padding: 18px; }
    .mr-evidence .source-line > span { text-align: left; }
}
@media (max-width: 359px) {
    .mr-site-menu > nav { right: 16px; }
    .mr-nav-inner,
    .mr-main,
    .mr-nav > :is(.mr-nav-top, .mr-nav-links) { padding-inline: 16px; }
    .mr-tiles { grid-template-columns: minmax(0, 1fr); }
    .mr-tile { padding: 24px 0; }
    .mr-intro :is(h1, h2) { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .report-modern *,
    .report-modern *::before,
    .report-modern *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .report-design-modern,
    .report-modern { background: #fff; --color-bg: #fff; font-size: 10pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .mr-nav,
    .mr-toolbar { display: none !important; }
    .mr-main { width: 100%; max-width: none; padding: 0; }
    .mr-section,
    .mr-overview,
    .mr-supplement { scroll-margin: 0; }
    .mr-section + .mr-section { margin-top: 28px; }
    .mr-hero { grid-template-columns: 1fr; background: #fff; break-inside: auto; }
    .mr-intro { padding: 24px 0; gap: 14px; }
    .mr-intro :is(h1, h2),
    .mr-overview .mr-intro h1 { max-width: 25ch; font-size: 30pt; line-height: 1.05; }
    .mr-overview .mr-neighbourhood-heading { font-size: 16pt; line-height: 1.2; }
    .mr-place-context { font-size: 12pt; }
    .mr-summary { font-size: 11pt; }
    .mr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mr-tile { padding: 16px; break-inside: avoid; }
    .mr-tile > strong { font-size: 25pt; }
    .mr-tile.is-warning { padding-top: 10px; }
    .mr-articles { display: block; }
    .mr-article { padding: 24px 0; gap: 12px; break-inside: auto; }
    .mr-article > header,
    .mr-article h3,
    .mr-reading { break-after: avoid; }
    .mr-article h3 { font-size: 20pt; }
    .mr-reading { font-size: 11pt; }
    .mr-chart { break-inside: avoid; }
    .mr-article-icon { width: 36px; height: 36px; }
    .mr-article-icon .icon { width: 22px; height: 22px; }
    .mr-evidence { font-size: 10pt; }
    .mr-evidence > summary { font-size: 9pt; }
    .mr-evidence > summary::after { display: none; }
    .mr-evidence::details-content { display: block !important; content-visibility: visible !important; height: auto !important; }
    .mr-evidence:not([open]) > :not(summary) { display: block !important; }
    .mr-evidence .evidence-rows :is(strong, p, li > span) { font-size: 10pt; }
    .mr-records > div { break-inside: avoid; }
    .mr-story,
    .mr-questions .question-grid { grid-template-columns: 1fr; }
    .mr-story > :is(article, div),
    .mr-questions .question-card { padding: 20px 0; break-inside: avoid; }
    .mr-supplement .evidence-section { break-inside: auto; }
    .report-modern .map-section { break-inside: avoid; scroll-margin: 0; }
}

/* Planning is a local sequence, schools a side-by-side comparison, energy a path
   through a certificate. Supporting charts stay quieter than those primary views. */
.mr-articles-supporting .mr-article > header { display: none; }
.mr-articles-supporting .mr-article { padding-block: 28px; }
.mr-articles-supporting .mr-article h3 { font-size: 23px; }
.mr-planning-lead, .mr-energy-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding: 40px 0; border-bottom: 2px solid var(--color-divider); }
.mr-planning-lead h3, .mr-energy-lead h3, .mr-energy-work h3 { font-size: 27px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 18px; }
.mr-planning-lead p, .mr-energy-lead p, .mr-energy-work > p { font-size: 14px; line-height: 1.6; margin: 12px 0; max-width: 72ch; }
.mr-map-entry { padding: 28px; background: var(--track); align-self: start; border-left: 5px solid var(--here); }
.mr-map-entry .map-jump { margin: 20px 0; background: var(--here); color: #fff; border: 0; }
.mr-map-entry > a { display: inline-block; margin-block: 8px 18px; font-size: 14px; text-decoration: underline; }
.mr-map-entry:has(.map-jump:not([hidden])) > a { display: none; }
.report-modern .mr-caption { font-size: 12px; color: var(--color-neutral-700); line-height: 1.6; }
.mr-timeline { list-style: none; margin: 0; padding: 0; }
.mr-planning-history .mr-timeline { max-height: 36rem; overflow-y: auto; padding-right: 12px; scrollbar-gutter: stable; }
.mr-planning-history .mr-timeline:focus-visible { outline: 2px solid var(--here); outline-offset: 4px; }
.mr-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--color-divider); position: relative; }
.mr-timeline time { font-size: 12px; color: var(--here); font-weight: 700; font-variant-numeric: tabular-nums; }
.mr-timeline li p { margin: 0; }
.mr-school-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.mr-school-card { min-width: 0; padding: 24px 0; border-top: 3px solid var(--here); }
.mr-school-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.mr-school-card h4 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.mr-school-card > header > span { font-size: 13px; white-space: nowrap; color: var(--here); font-weight: 700; }
.mr-school-type { color: var(--color-neutral-700); font-size: 12px; line-height: 1.6; margin: 12px 0 20px; }
.mr-school-card dl { margin: 0; }
.mr-school-card dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--color-divider); padding: 12px 0; }
.mr-school-card dt { color: var(--color-neutral-700); font-size: 12px; }
.mr-school-card dd { margin: 0; font-size: 13px; line-height: 1.55; }
.mr-school-card dd p { margin: 8px 0; font-size: 12px; }
.mr-school-card dd a { display: inline-block; margin-top: 8px; font-size: 12px; text-decoration: underline; }
.mr-energy-journey { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.mr-energy-journey > div { flex: 1; }
.mr-energy-journey div > span { display: block; font-size: 12px; min-height: 36px; }
.mr-energy-journey strong { display: block; font-size: 70px; line-height: 1; font-weight: 800; color: var(--here); letter-spacing: -.05em; }
.mr-energy-journey > div:last-child strong { color: var(--color-neutral-700); }
.mr-energy-arrow { color: var(--here); font-size: 32px; }
.mr-energy-costs table { width: 100%; border-collapse: collapse; margin-block: 20px; font-size: 14px; }
.mr-energy-costs :is(th,td) { padding: 14px 8px; border-bottom: 1px solid var(--color-divider); text-align: right; font-variant-numeric: tabular-nums; }
.mr-energy-costs th:first-child { text-align: left; padding-left: 0; }
.mr-energy-costs thead th { font-size: 12px; color: var(--color-neutral-700); font-weight: 500; }
.mr-energy-work { padding: 32px 0; border-bottom: 2px solid var(--color-divider); }
.mr-improvement-sequence { padding-left: 28px; margin: 24px 0 0; }
.mr-improvement-sequence li { padding: 16px 0 24px 12px; border-top: 1px solid var(--color-divider); }
.mr-improvement-sequence li::marker { color: var(--here); font-weight: 700; }
.mr-improvement-sequence h4 { font-size: 18px; margin: 0 0 16px; }
.mr-improvement-sequence dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.mr-improvement-sequence dt { font-size: 12px; color: var(--color-neutral-700); }
.mr-improvement-sequence dd { margin: 7px 0 0; font-size: 16px; font-weight: 600; }
.report-modern .evidence-tables { display: grid; gap: 14px; margin: 18px 0; min-width: 0; }
.report-modern .evidence-table { min-width: 0; font-size: 13px; }
.report-modern .evidence-table > summary { padding: 12px 0; cursor: pointer; font-weight: 600; }
.report-modern .evidence-table-scroll { overflow-x: auto; max-width: 100%; }
.report-modern .evidence-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-modern .evidence-table caption { text-align: left; color: var(--color-neutral-700); line-height: 1.6; padding: 12px 0; }
.report-modern .evidence-table :is(th,td) { text-align: right; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--color-divider); font-variant-numeric: tabular-nums; }
.report-modern .evidence-table th:first-child { text-align: left; padding-left: 0; min-width: 140px; }
.report-modern .evidence-table thead th { color: var(--color-neutral-700); font-weight: 500; min-width: 100px; }
.report-modern :is(.evidence-table-scroll, .evidence-table > summary):focus-visible { outline: 3px solid var(--here); outline-offset: 3px; }
@media (max-width: 760px) {
    .mr-planning-lead, .mr-energy-lead, .mr-school-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mr-map-entry { padding: 22px; }
    .mr-school-card dl > div { grid-template-columns: 85px minmax(0, 1fr); gap: 12px; }
    .mr-improvement-sequence dl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mr-timeline li { grid-template-columns: 75px minmax(0, 1fr); gap: 16px; }
}
@media print {
    .mr-planning-lead, .mr-energy-lead { display: block; padding: 24px 0; }
    .mr-planning-history .mr-timeline { max-height: none; overflow: visible; padding-right: 0; }
    .mr-map-entry { padding: 16px; margin-bottom: 20px; }
    .mr-school-cards { display: block; }
    .mr-school-card, .mr-timeline li, .mr-improvement-sequence li { break-inside: avoid; }
    .report-modern .evidence-table-scroll { overflow: visible; }
    .report-modern .evidence-table:not([open]) > :not(summary) { display: block !important; }
    .report-modern .evidence-table::details-content { display: block !important; content-visibility: visible !important; height: auto !important; }
}
.mr-energy-key { display: flex; gap: 20px; color: var(--color-neutral-700); }
.mr-energy-cost-track { display: block; position: relative; height: 10px; background: var(--track); margin-bottom: 8px; min-width: 56px; }
.mr-energy-cost-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--here); }
.mr-energy-cost-potential { background: transparent; border: 2px solid var(--here); }
.mr-energy-costs td { width: 30%; }
.mr-school-capacity-track { display: block; position: relative; height: 8px; background: var(--track); margin-block: 14px 12px; }
.mr-school-capacity-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--here); }
.mr-school-capacity-mark { position: absolute; top: -4px; height: 16px; border-left: 2px solid var(--color-text); }
.mr-school-capacity-key { display: block; font-size: 11px; color: var(--color-neutral-700); }

/* The three comparison-led sections reach their primary view before the fold.
   Long source explanations remain native disclosures, opened by print handling. */
.mr-section-focused .mr-intro { gap: 16px; padding-block: 28px; padding-right: 28px; }
.mr-section-focused .mr-intro h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; max-width: 20ch; }
.mr-section-focused .mr-summary { font-size: 14px; line-height: 1.6; max-width: 70ch; }
.mr-section-focused .mr-tile { padding: 20px; gap: 9px; }
.mr-section-focused .mr-tile.is-warning { padding-top: 14px; }
.mr-section-focused .mr-tile > strong { font-size: 30px; }
.mr-section-focused .mr-tile.mr-tile-long > strong { font-size: 20px; line-height: 1.2; }
.mr-section-focused .mr-tile > span { font-size: 11px; line-height: 1.4; letter-spacing: .03em; }
.mr-tile-details { margin-top: 2px; font-size: 12px; line-height: 1.55; color: var(--color-neutral-700); }
.mr-tile-details > summary { display: list-item; cursor: pointer; width: fit-content; font-weight: 600; }
.mr-tile-details > p { margin-top: 12px; }
.mr-tile-details > summary:focus-visible { outline: 3px solid var(--here); outline-offset: 3px; }
@media (max-width: 760px) {
    .mr-section-focused .mr-intro { padding-right: 0; }
    .mr-section-focused .mr-tile { padding-inline: 16px; }
}
@media print {
    .mr-tile-details:not([open]) > :not(summary) { display: block !important; }
    .mr-tile-details::details-content { display: block !important; content-visibility: visible !important; height: auto !important; }
    .mr-section-focused .mr-tile { break-inside: auto; }
}

/* Price and rent changes share a zero line; their reference month stays local to
   each panel because the publishers need not release the same month together. */
.mr-market-changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 28px 0; border-bottom: 2px solid var(--color-divider); }
.mr-market-change { min-width: 0; margin: 0; }
.mr-market-change h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.mr-market-period { font-size: 13px; color: var(--color-neutral-700); margin: 0 0 20px; }
.mr-market-change-rows { display: grid; gap: 16px; }
.mr-market-change-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr) minmax(44px, auto); gap: 10px 16px; align-items: center; }
.mr-market-change-name { font-size: 13px; overflow-wrap: anywhere; }
.mr-market-change-value { grid-column: 3; grid-row: 1; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.mr-market-change-track { position: relative; grid-column: 2; grid-row: 1; height: 12px; background: var(--track); }
.mr-market-change-zero { position: absolute; left: 50%; top: -5px; height: 22px; width: 1px; background: var(--color-neutral-700); }
.mr-market-change-fill { position: absolute; top: 0; bottom: 0; background: var(--here); }
.mr-market-change-comparator { background: var(--boro); }
.mr-market-change .mr-chart-scale { margin: 22px 0 12px; }
.mr-market-change figcaption { font-size: 12px; line-height: 1.6; color: var(--color-neutral-700); max-width: 76ch; }
@media (max-width: 760px) {
    .mr-market-changes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .mr-market-change-row { grid-template-columns: minmax(0, 1fr) auto; }
    .mr-market-change-value { grid-column: 2; }
    .mr-market-change-track { grid-column: 1 / -1; grid-row: 2; }
}
@media print {
    .mr-market-changes { display: block; }
    .mr-market-change { margin: 0 0 24px; break-inside: avoid; }
}

/* The lead market article spans the grid, but the original SVG's label system
   should not grow to the full page width. Keep the plot aligned with its text. */
#value .mr-article--wide .gfx-svg { margin-inline: 0; }
#value .mr-article--wide .mr-chart-svg:not(.gfx-lines):not(.gfx-trend) .gfx-svg { width: 100%; max-width: 880px; }
#value .mr-article--wide > h3 { max-width: 42ch; }
#value .mr-article--wide :is(figcaption, .gfx-reading, .mr-chart-reading) { max-width: 76ch; }

/* The same saved population and housing evidence, grouped before the census detail. */
.mr-population-context { margin: 24px 0 32px; padding-block: 22px; border-block: 1px solid var(--color-divider); }
.mr-population-context h3 { margin: 0 0 12px; font-size: 22px; }
.mr-population-context > p { max-width: 85ch; font-size: 14px; color: var(--color-neutral-700); }
.mr-population-context dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.mr-population-context dt { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.mr-population-context dd { margin: 0; }
.mr-population-context strong { display: block; margin-bottom: 12px; font-size: 32px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mr-population-context small { font-size: 13px; font-weight: 400; }
.mr-population-context dd span { display: block; font-size: 12px; color: var(--color-neutral-700); }
@media (max-width: 700px) { .mr-population-context dl { grid-template-columns: minmax(0, 1fr); } }
@media print { .mr-population-context { break-inside: avoid; } }
.report-modern .mr-neighbourhood-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 24px 0 32px; }
.report-modern .mr-neighbourhood-panel { min-width: 0; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.report-modern .mr-neighbourhood-panel:nth-child(even) { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.report-modern .mr-neighbourhood-panel h3 { font-size: 20px; margin: 0 0 16px; }
.report-modern .mr-neighbourhood-panel .mr-chart { margin: 0; }
.report-modern .mr-neighbourhood-panel .mr-chart-heading { font-size: 14px; }
.report-modern .mr-neighbourhood-panel > .mr-evidence { margin-top: 16px; }
@media (max-width: 700px) {
    .report-modern .mr-neighbourhood-overview { grid-template-columns: minmax(0, 1fr); }
    .report-modern .mr-neighbourhood-panel,
    .report-modern .mr-neighbourhood-panel:nth-child(even) { padding: 20px 0; border-left: 0; }
}
@media print {
    .report-modern .mr-neighbourhood-overview { display: block; }
    .report-modern .mr-neighbourhood-panel,
    .report-modern .mr-neighbourhood-panel:nth-child(even) { padding: 16px 0; border-left: 0; break-inside: avoid; }
}
/* Compact pupil context on the V2 one-page summary. */
.summary-pupils{border-top:2px solid var(--mr-ink,#222);margin-top:20px;padding-top:14px}
.summary-pupils h2{font-size:22px;margin:0 0 12px}.summary-pupil-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.summary-pupils h3{font-size:14px;margin:0 0 6px}.summary-pupils p{font-size:12px;line-height:1.5;margin:6px 0}.summary-pupils .summary-pupil-value{font-size:21px;font-weight:700}.summary-pupil-note{color:#555}.summary-actions{flex-wrap:wrap;gap:12px}
@media(max-width:600px){.summary-pupil-grid{grid-template-columns:1fr;gap:14px}}
@media print{.summary-pupil-grid{grid-template-columns:1fr 1fr}.summary-pupils{break-inside:avoid}.summary-pupils .summary-pupil-value{font-size:16px}.summary-pupils h2{font-size:18px}.summary-pupils p{font-size:10px}}

.report-modern .mr-place-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem;margin:1.2rem 0 1.6rem;padding:1rem 0;border-block:1px solid var(--mr-line,#d7d5d3)}
.report-modern .mr-place-facts span{display:block;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.report-modern .mr-place-facts strong{display:block;font-size:1.18rem;line-height:1.35;margin:.4rem 0}
.report-modern .mr-place-facts p,.report-modern .mr-place-facts summary{font-size:.85rem;line-height:1.5;margin:.3rem 0}
.report-modern .mr-place-facts summary{cursor:pointer;text-decoration:underline}

/* Locally vendored brand icons; names alongside remain the accessible labels. */
.mr-brand-icon{display:block;width:24px;height:24px;max-width:none;object-fit:contain}
.economic-profile-bar{display:block;height:5px;background:var(--mr-line,#dededb);margin:5px 0;max-width:220px}
.economic-profile-bar>span{display:block;height:100%;background:var(--mr-ink,#343a37)}
.report-modern .mr-economic-profile{border-top:3px solid #37327d;margin:2rem 0;padding-top:1.3rem}.report-modern .mr-economic-profile>h2{font-size:clamp(1.4rem,2.4vw,2rem)}
.report-modern .mr-economic-profile>p{font-size:.9rem;max-width:85ch}.report-modern .mr-economic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;margin:1.2rem 0}
.report-modern .mr-economic-grid article{min-width:0;border-top:1px solid #d7d5d3;padding:.8rem 0}.report-modern .mr-economic-grid h3{font-size:.85rem;line-height:1.4;min-height:2.4em;margin:0 0 .5rem}.report-modern .mr-economic-grid article>strong{font-size:1.6rem;line-height:1.25;overflow-wrap:anywhere}.report-modern .mr-economic-grid p{font-size:.78rem;line-height:1.5}.report-modern .mr-economic-grid summary{font-size:.78rem}.report-modern .mr-economic-bar{display:block;height:5px;background:#dedce4;margin:.7rem 0}.report-modern .mr-economic-bar>span{display:block;height:100%;background:#56518f}
@media(max-width:650px){.report-modern .mr-economic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}}@media(max-width:360px){.report-modern .mr-economic-grid{grid-template-columns:1fr}}

/* Historical inspection warnings retain their own date and never recolour the current grade. */
.mr-school-card .mr-inspection-history-warning{color:#ad291f;font-weight:700;border-left:3px solid currentColor;padding-left:.65rem}
.mr-zone-status{display:flex;align-items:center;gap:1rem;padding:1.2rem;background:#eeedf7;border-left:4px solid #443e91}
.mr-zone-status strong{font-size:1.5rem}.mr-zone-status p{margin:.25rem 0 0}.mr-zone-status-icon{color:#443e91;font-size:2rem}
.mr-zone-reading{font-size:1.05rem;line-height:1.6}.mr-zone-diagram{margin-top:1rem}.mr-zone-diagram>summary{cursor:pointer;color:#443e91;font-weight:700;padding:.5rem 0}.mr-zone-diagram .mr-chart{max-width:28rem;margin-top:1rem}

/* Keep the full narrative and all charts, with less dominant section typography. */
.mr-section .mr-intro h2 { max-width: 28ch; font-size: clamp(28px, 3vw, 40px); line-height: 1.14; }
.mr-section .mr-summary { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.mr-section .mr-article h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; }
.mr-section .mr-period, .mr-section .mr-context { max-width: 75ch; line-height: 1.6; }
.mr-confidence { max-width: 75ch; margin: 16px 0; }
.mr-confidence > div { margin: 0 0 12px; }
.mr-confidence dt { font-weight: 700; }
.mr-confidence dd { margin: 3px 0 0; line-height: 1.6; }
@media print { .mr-section .mr-intro h2 { font-size: 22pt; } .mr-section .mr-summary { font-size: 11pt; } .mr-section .mr-article h3 { font-size: 18pt; } }
.mr-investment-trends { padding: 20px 0; border-bottom: 1px solid var(--color-border, #ddd); max-width: 85ch; }
.mr-investment-trends h3 { font-size: 22px; line-height: 1.3; }
.mr-investment-trends p, .mr-investment-trends li { font-size: 15px; line-height: 1.6; }
.mr-investment-trends li { margin-block: 10px; }
