/* Postcode SEO overview — DESIGN.md warm parchment / terracotta accent (see site.css) */
.rr-po {
    padding-bottom: 3rem;
}

.rr-po-hero {
    background: linear-gradient(180deg, #faf9f5 0%, #f5f4ed 100%);
    border: 1px solid #f0eee6;
    border-radius: 16px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 2rem;
    box-shadow: 0 1px 0 #f0eee6 inset, 0 8px 24px rgba(20, 20, 19, 0.04);
}

.rr-po-hero h1 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #141413;
}

.rr-po-hero-meta {
    color: #5e5d59;
    font-size: 0.97rem;
    line-height: 1.6;
}

.rr-po-hero-ward {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #ebe8dc;
    background: #fffdf9;
    line-height: 1.5;
}

.rr-po-hero-ward-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c96442;
    margin-bottom: 0.2rem;
}

.rr-po-hero-ward-name {
    display: block;
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    color: #141413;
    letter-spacing: -0.02em;
}

.rr-po-hero-ward-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #87867f;
    line-height: 1.45;
}

.rr-po-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.12rem 0.65rem;
    border: 1px solid #e8e6dc;
    background: #ffffff;
    color: #4d4c48;
    font-size: 0.78rem;
    font-weight: 600;
}

.rr-po-section {
    background: #faf9f5;
    border: 1px solid #f0eee6;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.rr-po-section h2 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 600;
    color: #141413;
    letter-spacing: -0.02em;
}

.rr-po-lead {
    color: #4d4c48;
    font-size: 1.05rem;
    line-height: 1.65;
}

.rr-po-tone-line {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: #c96442;
    font-size: 1.1rem;
}

.rr-po-score-grid .rr-po-score-pill {
    border: 1px solid #e8e6dc;
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    background: #ffffff;
}

.rr-po-score-pill .label {
    color: #5e5d59;
    font-size: 0.84rem;
}

.rr-po-score-pill .value {
    font-weight: 700;
    color: #141413;
    font-size: 1.05rem;
}

.rr-paywall {
    position: relative;
    border-radius: 14px;
    border: 1px dashed #d1cfc5;
    background:
        repeating-linear-gradient(
            -12deg,
            rgba(248, 247, 240, 0.9),
            rgba(248, 247, 240, 0.9) 12px,
            rgba(236, 234, 224, 0.55) 12px,
            rgba(236, 234, 224, 0.55) 24px
        );
}

.rr-paywall-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    background: rgba(250, 249, 245, 0.26);
    border-radius: inherit;
}

.rr-paywall-body {
    position: relative;
    z-index: 1;
}

.rr-paywall h3 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: #141413;
}

.rr-paywall .btn-rr-accent {
    background: #c96442;
    color: #faf9f5;
    border: none;
    font-weight: 600;
}

.rr-paywall .btn-rr-accent:hover,
.rr-paywall .btn-rr-accent:focus-visible {
    background: #d97757;
    color: #ffffff;
}

.rr-paywall-secondary {
    background: #e8e6dc;
    color: #4d4c48;
}

.rr-po-table thead th {
    color: #4d4c48;
    font-size: 0.84rem;
    font-weight: 600;
}

.rr-po-section--compact {
    padding: 1.1rem 1.25rem;
}

/* Hub → postcode → (optional topic) breadcrumb */
.rr-po-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #5e5d59;
}

.rr-po-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rr-po-breadcrumb-list li:not(:first-child)::before {
    content: "›";
    display: inline-block;
    padding-right: 0.2rem;
    color: #87867f;
    font-weight: 500;
}

.rr-po-breadcrumb-link {
    color: #5e5d59;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    text-decoration-thickness: 1px;
    font-weight: 600;
}

.rr-po-breadcrumb-link:hover,
.rr-po-breadcrumb-link:focus-visible {
    color: #c96442;
}

.rr-po-breadcrumb-link:focus-visible {
    outline: 2px solid rgba(201, 100, 66, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
}

.rr-po-breadcrumb-current {
    font-weight: 700;
    color: #141413;
}

li[aria-current="page"] {
    font-weight: 700;
}

/* Phase A topic tabs */
.rr-po-topic-nav {
    border: 1px solid #f0eee6;
    border-radius: 12px;
    background: #faf9f5;
    padding: 0.5rem 0.75rem;
}

.rr-po-topic-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.rr-po-topic-nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4d4c48;
    text-decoration: none;
    border: 1px solid transparent;
}

.rr-po-topic-nav-link:hover,
.rr-po-topic-nav-link:focus-visible {
    background: #ffffff;
    border-color: #e8e6dc;
    color: #141413;
}

.rr-po-topic-nav-link.is-active {
    background: #ffffff;
    border-color: rgba(201, 100, 66, 0.45);
    color: #c96442;
}

/* Plain English narration (readable first, tables second) */
.rr-po-plain {
    border-radius: 14px;
    border: 1px solid #ebe8dc;
    border-left: 4px solid #c96442;
    background: linear-gradient(95deg, #fffdf9 0%, #faf9f5 50%, #ffffff 100%);
    padding: 1.35rem clamp(1.1rem, 3vw, 1.85rem);
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 16px rgba(20, 20, 19, 0.04);
}

.rr-po-plain-title {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #c96442;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.rr-po-plain-body {
    font-size: clamp(1.03rem, 2.8vw, 1.09rem);
    line-height: 1.74;
    color: #3a3934;
}

.rr-po-plain-crime-mix {
    font-size: clamp(1.02rem, 2.7vw, 1.065rem);
    line-height: 1.72;
    color: #35342f;
    padding-left: 0.55rem;
    border-left: 3px solid rgba(201, 100, 66, 0.42);
}

.rr-po-plain-footnote {
    margin-top: 1rem;
    font-size: 0.87rem;
    color: #6f6e68;
    border-top: 1px dashed #e8e6dc;
    padding-top: 0.85rem;
    line-height: 1.56;
}

.rr-po-footnote {
    color: #87867f;
    font-size: 0.86rem;
    line-height: 1.6;
}

/* Hero deck + map */
.rr-po-hero-deck {
    color: #5e5d59;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 42rem;
}

/* Hub (/report/postcode) — jump to overview by postcode */
.rr-po-hub-lookup {
    background: linear-gradient(180deg, #faf9f5 0%, #f5f4ed 100%);
    border: 1px solid #f0eee6;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.85rem);
    max-width: 42rem;
    box-shadow: 0 1px 0 #f0eee6 inset, 0 8px 24px rgba(20, 20, 19, 0.04);
}

.rr-po-hub-lookup h2 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: #141413;
}

.rr-po-hub-lookup .rr-po-hub-lookup__form .form-control {
    border: 1px solid #e4e0d4;
}

.rr-po-hub-lookup .rr-po-hub-lookup__form .form-control:focus {
    border-color: rgba(201, 100, 66, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(201, 100, 66, 0.2);
}

/* Hub illustrative map column */
.rr-po-hub-demo-panel {
    border-radius: 16px;
    border: 1px solid #f0eee6;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f5 100%);
    padding: clamp(1.15rem, 3vw, 1.65rem);
    box-shadow: 0 8px 28px rgba(20, 20, 19, 0.06), 0 1px 0 #f7f6f1 inset;
}

@media (min-width: 992px) {
    .rr-po-hub-demo-panel {
        position: sticky;
        top: 5.5rem;
    }
}

.rr-po-hub-demo-heading {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #141413;
}

.rr-po-hub-demo-intro {
    color: #5e5d59;
    line-height: 1.55;
}

.rr-po-hub-demo-chip {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: #6344a8;
    border-color: #e4ddf5;
    background: #f8f5ff;
}

.rr-hub-demo-map {
    height: clamp(268px, 42vw, 400px);
    min-height: 240px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    border: 1px solid #ece9e0;
    z-index: 0;
    background: #e5e3df;
}

.rr-hub-demo-map.leaflet-container {
    width: 100%;
    height: 100%;
}

.rr-hub-demo-map .leaflet-control-container {
    z-index: 1200;
}

.leaflet-div-icon .rr-hub-demo-amenity-pin {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    color: #61429a;
}

.rr-po-hub-demo-legend .rr-po-hub-demo-sw {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    border-radius: 999px;
}

.rr-po-hub-demo-sw-centroid {
    border: 2px solid #ffffff;
    background: #c96442;
    box-shadow: 0 0 0 1px rgba(201, 100, 66, 0.35);
}

.rr-po-hub-demo-sw-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e8e6dc;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 20, 19, 0.08);
    color: #61429a;
}

.rr-po-hub-demo-sw-crime {
    border-radius: 999px;
    border: 2px solid #fca5a5;
    background: #7f1d1d;
}

.rr-po-hub-benefits {
    color: #5e5d59;
    font-size: 0.97rem;
    line-height: 1.6;
    max-width: 42rem;
}

.rr-po-hub-benefits li + li {
    margin-top: 0.35rem;
}

.rr-po-hub-details {
    max-width: 42rem;
    border-top: 1px solid #f0eee6;
    padding-top: 0.85rem;
}

.rr-po-hub-details summary {
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: #141413;
    list-style-position: outside;
}

.rr-po-hub-details summary:hover {
    color: #c96442;
}

.rr-po-chip-warn {
    border-color: rgba(201, 100, 66, 0.35);
    background: rgba(255, 248, 244, 0.95);
}

.rr-po-map-wrap {
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 14px;
    padding: 1rem 1rem 0.75rem;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 22px rgba(20, 20, 19, 0.06);
}

.rr-po-map-caption {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5e5d59;
    margin: 0;
}

.rr-po-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.rr-po-map-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    padding: 0.15rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c96442;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    cursor: pointer;
    white-space: nowrap;
}

.rr-po-map-fullscreen-btn:hover,
.rr-po-map-fullscreen-btn:focus-visible {
    color: #a85032;
    outline: 2px solid rgba(201, 100, 66, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.rr-po-map-fullscreen-btn i {
    text-decoration: none;
}

/* Fullscreen map (browser Fullscreen API) */
.rr-po-map-wrap:fullscreen {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    justify-content: flex-start;
}

.rr-po-map-wrap:-webkit-full-screen {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.rr-po-map-wrap:fullscreen .rr-po-map,
.rr-po-map-wrap:-webkit-full-screen .rr-po-map {
    flex: 1;
    min-height: 0;
}

.rr-po-map {
    flex: 1;
    min-height: 220px;
    border-radius: 10px;
    margin-top: 0.25rem;
    overflow: hidden;
    border: 1px solid #f0eee6;
    z-index: 0;
    position: relative;
}

/* Leaflet must fill the box; flex:1 alone often leaves wrong height before first invalidateSize */
.rr-po-map.leaflet-container {
    width: 100%;
    height: 100%;
    background: #e5e3df;
}

.rr-po-map-wrap--hero-rich .rr-po-map {
    min-height: 300px;
}

.rr-po-map-wrap--hero-rich {
    min-height: 320px;
}

.rr-po-map-legend {
    color: #5e5d59;
}

.rr-po-map-legend-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 0.28rem;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.12);
}

.rr-po-map-legend-dot--centroid {
    background: #c96442;
}

.rr-po-map-legend-dot--crime {
    background: #cf4a43;
}

.rr-po-map-legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    flex: 0 0 auto;
    border: 1px solid #e8e6dc;
    box-shadow: 0 6px 18px rgba(20, 20, 19, 0.12);
}

.rr-po-map-legend-chip--amenity {
    color: #7a5bb8;
    font-size: 0.82rem;
    background: #ffffff;
}

.rr-po-map-legend-chip--school {
    color: #246b7a;
    font-size: 0.82rem;
    background: linear-gradient(180deg, #f4fbfc 0%, #ffffff 100%);
}

.rr-po-map .leaflet-control-container {
    z-index: 1200;
}

.rr-po-map .leaflet-control-zoom a {
    display: block;
    text-decoration: none;
    line-height: 26px;
}

/* Tall map (amenities topic): explicit height inside the content column */
.rr-po-map-wrap.rr-po-map-wrap--tall .rr-po-map {
    flex: 0 0 auto;
    height: min(72vh, 640px);
    min-height: min(72vh, 640px);
    margin-top: 0;
}

/* Amenity POI markers (Leaflet divIcon) */
.leaflet-div-icon.rr-po-amenity-divicon {
    border: none;
    background: transparent;
}

.rr-po-amenity-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e8e6dc;
    box-shadow: 0 6px 18px rgba(20, 20, 19, 0.12);
    color: #7a5bb8;
    font-size: 0.85rem;
    line-height: 1;
}

.rr-po-amenity-pin i {
    text-decoration: none;
}

/* School markers */
.leaflet-div-icon.rr-po-school-divicon {
    border: none;
    background: transparent;
}

.rr-po-school-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4fbfc 0%, #ffffff 100%);
    border: 1px solid rgba(36, 107, 122, 0.35);
    box-shadow: 0 6px 18px rgba(20, 20, 19, 0.12);
    color: #246b7a;
    font-size: 0.85rem;
    line-height: 1;
}

.rr-po-school-pin i {
    text-decoration: none;
}

/* Headline stats */
.rr-po-stat-card {
    border-radius: 14px;
    border: 1px solid #f0eee6;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f5 100%);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 14px rgba(20, 20, 19, 0.05);
}

.rr-po-stat-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: #87867f;
}

.rr-po-stat-value {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 5vw, 2.45rem);
    font-weight: 700;
    color: #141413;
    line-height: 1.1;
    margin: 0.35rem 0 0.3rem;
}

.rr-po-stat-label {
    color: #5e5d59;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Score bars */
.rr-po-score-bar-track {
    height: 8px;
    border-radius: 999px;
    background: #eceae0;
    overflow: hidden;
}

.rr-po-score-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c96442 0%, #e08a6c 100%);
    transition: width 0.35s ease;
}

/* Census expandable */
.rr-po-details-summary {
    cursor: pointer;
    font-weight: 600;
    color: #c96442;
    list-style-position: outside;
}

.rr-po-details summary::-webkit-details-marker {
    color: #c96442;
}

/* Next steps + CTAs outside paywall */
.rr-po-next {
    background: linear-gradient(135deg, #faf9f5 0%, #f6f5ee 42%, #ffffff 100%);
    border-style: solid;
}

.rr-po-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rr-po-steps > li {
    position: relative;
    padding-left: 0;
}

.rr-po-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #faf9f5;
    background: #c96442;
    margin-bottom: 0.65rem;
}

.rr-po-step-title {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 1.12rem;
    color: #141413;
}

.rr-po .btn-rr-accent {
    background: #c96442;
    color: #faf9f5 !important;
    border: none;
    font-weight: 600;
}

.rr-po .btn-rr-accent:hover,
.rr-po .btn-rr-accent:focus-visible {
    background: #d97757;
    color: #ffffff !important;
}

/* FAQ */
.rr-po-faq dt {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: #141413;
    margin-top: 1.1rem;
    font-size: 1.02rem;
}

.rr-po-faq dt:first-child {
    margin-top: 0;
}

.rr-po-faq dd {
    margin: 0.4rem 0 0;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid #f0eee6;
}

.rr-po-faq dd:last-of-type {
    border-bottom: none;
}
