@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Semibold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --charcoal: #222a2e;
    --rain-blue: #2d8ecf;
    --warm-yellow: #f2c14e;
    --cloud: #f4f7f8;
    --white: #ffffff;
    color-scheme: light;
    font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--cloud);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .home-page .site-nav,
    .home-page .menu-button,
    .home-page .menu-button img,
    .home-page .menu-button::after {
        transition: none !important;
    }

    .admin-report-card,
    .admin-report-card-action span {
        transition: none !important;
    }

    .admin-report-card:hover,
    .admin-report-card:focus-visible,
    .admin-report-card:hover .admin-report-card-action span {
        transform: none !important;
    }
}

/* Customer homepage */
body.home-page {
    min-height: 100vh;
    margin: 0;
    display: block;
    padding: 0;
    color: var(--charcoal);
    background: var(--white);
    font-size: 1.125rem;
    line-height: 1.55;
}

.home-page a {
    color: inherit;
    text-decoration: none;
}

.home-page img {
    display: block;
    max-width: 100%;
}

.home-page figure,
.home-page p,
.home-page h1,
.home-page h2,
.home-page h3 {
    margin-top: 0;
}

.home-page figure,
.home-page p {
    margin-bottom: 0;
}

.home-page h1,
.home-page h2,
.home-page h3 {
    text-wrap: balance;
}

.home-page .section-shell {
    width: min(100% - 3rem, 75rem);
    margin-inline: auto;
}

.home-page .site-header {
    position: absolute;
    z-index: 10;
    top: 1.25rem;
    left: 50%;
    width: min(calc(100% - 3rem), 75rem);
    min-height: 6rem;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem 0.75rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    color: var(--white);
    background: rgba(34, 42, 46, 0.96);
}

.home-page .site-logo {
    width: 17.5rem;
}

.home-page .site-logo img {
    width: 100%;
    height: auto;
}

.home-page .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    font-size: 1rem;
    font-weight: 600;
}

.home-page .site-nav a {
    padding-block: 0.5rem;
}

.home-page .nav-phone {
    display: none;
}

.home-page .header-phone {
    padding-block: 0.5rem;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-page .header-phone:focus-visible,
.home-page .footer-phone:focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 3px;
}

.home-page .menu-button {
    display: none;
}

.home-page .button {
    min-height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 0.35rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.home-page .button-primary {
    color: var(--charcoal);
    background: var(--warm-yellow);
    border-color: var(--warm-yellow);
}

.home-page .button-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.home-page .hero {
    min-height: 55rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--charcoal);
}

.home-page .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-page .hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(20, 48, 66, 0.42);
}

.home-page .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 55rem;
    display: flex;
    align-items: flex-start;
    padding-top: 10.5rem;
    padding-bottom: 3rem;
}

.home-page .hero-copy {
    max-width: 45rem;
    padding: 2.5rem 2.5rem 2.75rem;
    border-left: 0.4rem solid var(--warm-yellow);
    background: rgba(34, 42, 46, 0.82);
}

.home-page .eyebrow,
.home-page .section-kicker {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-page .eyebrow {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.home-page .hero h1 {
    max-width: 13ch;
    margin: 0 0 1.5rem;
    color: var(--white);
    font-size: clamp(3.8rem, 5.7vw, 6rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.home-page .hero h1 .hero-heading-question {
    display: block;
    max-width: 100%;
    font-size: 0.9em;
    text-wrap: balance;
}

.home-page .hero-intro {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

.home-page .hero-offer {
    width: fit-content;
    margin-top: 1.35rem;
    color: var(--white);
}

.home-page .offer-price {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    line-height: 1;
}

.home-page .offer-price strong {
    color: var(--warm-yellow);
    font-size: 3.35rem;
    letter-spacing: -0.04em;
}

.home-page .was-price {
    position: relative;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.6rem;
    font-weight: 700;
}

.home-page .was-price::after {
    content: "";
    position: absolute;
    left: -0.12em;
    right: -0.12em;
    top: 52%;
    height: 0.18rem;
    border-radius: 999px;
    background: #ef5350;
    transform: rotate(-8deg);
}

.home-page .hero-offer p {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
}

.home-page .hero-offer a {
    margin-left: 0.55rem;
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.home-page .postcode-control {
    width: min(100%, 30rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    margin-top: 1.4rem;
    padding: 0.5rem;
    border: 1px solid #d5dfe3;
    border-radius: 0.45rem;
    background: var(--white);
}

.home-page .postcode-control input {
    min-width: 0;
    min-height: 3.5rem;
    padding-inline: 1rem;
    border: 1px solid #bdc9ce;
    border-radius: 0.25rem;
    color: var(--charcoal);
    background: var(--white);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.home-page .postcode-control input::placeholder {
    text-transform: none;
}

.home-page .postcode-control .button {
    font-size: 1.05rem;
}

.home-page .problem-section,
.home-page .transformation-section,
.home-page .services-section,
.home-page .process-section,
.home-page .standards-section,
.home-page .area-cta {
    padding-block: clamp(5.5rem, 9vw, 9rem);
}

/* Homepage depth */
.home-page .problem-section,
.home-page .area-cta {
    box-shadow: inset 0 1.75rem 3.25rem -3.25rem rgba(34, 42, 46, 0.32);
}

.home-page .transformation-section,
.home-page .standards-section {
    position: relative;
    z-index: 1;
    box-shadow:
        0 -1.25rem 3rem rgba(34, 42, 46, 0.13),
        0 1.25rem 3rem rgba(34, 42, 46, 0.1);
}

.home-page .section-kicker {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.home-page .section-heading {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.home-page .section-heading h2,
.home-page .editorial-copy h2,
.home-page .service-heading h2,
.home-page .process-heading h2,
.home-page .standards-copy h2,
.home-page .area-cta h2 {
    margin-bottom: 1.35rem;
    font-size: clamp(2.75rem, 5vw, 5.25rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.home-page .editorial-split {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.home-page .editorial-copy > p:last-child,
.home-page .service-heading > p:last-child {
    max-width: 36rem;
    color: #4f5b60;
    font-size: 1.22rem;
}

.home-page .editorial-photo {
    position: relative;
}

.home-page .editorial-photo img {
    width: 100%;
    height: clamp(26rem, 45vw, 38rem);
    object-fit: cover;
}

.home-page .editorial-photo figcaption {
    position: absolute;
    right: -1.25rem;
    bottom: -1.25rem;
    width: min(24rem, calc(100% - 2rem));
    padding: 1.15rem 1.35rem;
    border-top: 0.35rem solid var(--warm-yellow);
    color: var(--white);
    background: var(--charcoal);
    font-size: 0.96rem;
}

.home-page .transformation-section {
    padding-block: clamp(3.5rem, 5vw, 5rem);
    color: var(--white);
    background: #167abb;
}

.home-page .transformation-section .section-heading {
    margin-bottom: 2.25rem;
}

.home-page .transformation-section .section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 3.7vw, 3.7rem);
}

.home-page .standards-section .section-kicker {
    color: var(--warm-yellow);
}

.home-page .transformation-section .section-kicker,
.home-page .trader-strip .section-kicker {
    color: var(--white);
}

.home-page .before-after {
    width: min(100%, 52rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    margin-inline: auto;
}

.home-page .before-after figure {
    position: relative;
}

.home-page .before-after img {
    width: 100%;
    height: clamp(13rem, 20vw, 16rem);
    object-fit: cover;
}

.home-page .before-after figcaption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    min-width: 5.25rem;
    padding: 0.55rem 0.85rem;
    color: var(--charcoal);
    background: var(--warm-yellow);
    font-weight: 700;
    text-align: center;
}

.home-page .transformation-cta {
    width: min(100%, 52rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.home-page .transformation-cta p {
    color: var(--white);
    font-size: 1.12rem;
    font-weight: 700;
}

.home-page .services-section {
    background: var(--cloud);
}

.home-page .service-layout,
.home-page .process-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    align-items: start;
    gap: clamp(3.5rem, 8vw, 8rem);
}

.home-page .service-heading,
.home-page .process-heading {
    position: sticky;
    top: 2rem;
    margin-bottom: 0;
}

.home-page .service-list,
.home-page .process-list {
    border-top: 0.3rem solid var(--rain-blue);
}

.home-page .service-list {
    overflow: hidden;
    border: 1px solid #d4e0e5;
    border-top: 0.3rem solid var(--rain-blue);
    border-radius: 0.65rem;
    background: var(--white);
    box-shadow: 0 1.75rem 4rem rgba(34, 42, 46, 0.14);
}

.home-page .service-item,
.home-page .process-step {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 1.5rem;
    padding-block: 2.25rem;
    border-bottom: 1px solid #cbd7dc;
}

.home-page .step-number {
    color: var(--charcoal);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-page .service-item {
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    align-items: center;
    padding-inline: clamp(1.25rem, 2.5vw, 2rem);
    border-left: 0.3rem solid var(--rain-blue);
    border-bottom-color: #b7cbd4;
}

.home-page .service-item:last-child {
    border-bottom: 0;
}

.home-page .service-item:nth-child(even) {
    background: #f7fbfd;
}

.home-page .service-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #bfd0d8;
    border-radius: 0.3rem;
}

.home-page .service-item h3,
.home-page .process-step h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    line-height: 1.08;
}

.home-page .service-item p,
.home-page .process-step p {
    max-width: 35rem;
    color: #4f5b60;
}

.home-page .service-quote-link {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #126d9f;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.home-page .service-quote-link:hover {
    text-decoration: underline;
}

.home-page .service-quote-link:focus-visible {
    outline: 3px solid var(--rain-blue);
    outline-offset: 3px;
}

.home-page .exterior-service-group {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 0.3rem solid var(--warm-yellow);
    background: #edf3f5;
}

.home-page .service-group-kicker {
    margin-bottom: 0.45rem;
    color: #5c6b72;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-page .exterior-service-group > h3 {
    margin-bottom: 1.4rem;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    line-height: 1.05;
}

.home-page .exterior-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .exterior-service-item {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #cbd9df;
    border-radius: 0.45rem;
    background: var(--white);
}

.home-page .exterior-service-item h4 {
    margin: 0 0 0.7rem;
    font-size: 1.35rem;
    line-height: 1.12;
}

.home-page .exterior-service-item p {
    color: #4f5b60;
    font-size: 1rem;
}

.home-page .process-section {
    background: var(--white);
}

.home-page .process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .process-step {
    grid-template-columns: 6rem 1fr;
}

.home-page .process-step .step-number {
    color: var(--rain-blue);
    font-size: 2.75rem;
    line-height: 1;
}

.home-page .standards-section {
    color: var(--white);
    background: var(--charcoal);
}

.home-page .standards-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.home-page .standards-grid figure {
    border-bottom: 0.55rem solid var(--warm-yellow);
}

.home-page .standards-grid figure img {
    width: 100%;
    height: clamp(30rem, 44vw, 40rem);
    object-fit: cover;
}

.home-page .standards-copy ul {
    display: grid;
    gap: 0.9rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.home-page .standards-copy li {
    padding: 0.75rem 0 0.75rem 1.25rem;
    border-left: 0.3rem solid var(--warm-yellow);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.home-page .area-cta {
    background: var(--cloud);
}

.home-page .area-cta-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.home-page .area-cta h2 {
    margin-bottom: 0;
}

.home-page .area-cta .postcode-control {
    width: min(100%, 30rem);
    margin-top: 0;
}

.home-page .trader-strip {
    padding-block: 2.75rem;
    color: var(--white);
    background: #167abb;
}

.home-page .trader-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.home-page .trader-strip h2 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    line-height: 1;
}

.home-page .trader-strip > p,
.home-page .trader-strip-inner > p {
    color: var(--white);
    font-size: 1rem;
}

.home-page .site-footer {
    padding: clamp(4rem, 7vw, 6.5rem) 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    background: #142c38;
}

.home-page .footer-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1.35fr) repeat(2, minmax(8rem, 0.75fr)) minmax(13rem, 1fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 4.5rem);
}

.home-page .footer-brand img {
    width: min(14rem, 100%);
    margin-bottom: 1.5rem;
}

.home-page .footer-service-line {
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
}

.home-page .footer-label {
    margin-bottom: 0.9rem;
    color: var(--warm-yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-page .footer-links {
    display: grid;
    gap: 0.7rem;
}

.home-page .footer-links a,
.home-page .footer-cookie-settings {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.home-page .footer-cookie-settings {
    width: fit-content;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.home-page .footer-cookie-settings:focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 3px;
}

.home-page .footer-cta {
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.65rem;
    background: rgba(4, 18, 26, 0.25);
    box-shadow: 0 1.25rem 2.5rem rgba(3, 14, 21, 0.16);
}

.home-page .footer-cta > p:not(.footer-label) {
    color: rgba(255, 255, 255, 0.82);
}

.home-page .footer-cta-button {
    width: 100%;
    margin-top: 1.25rem;
}

.home-page .footer-bottom {
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.home-page .cookie-consent-banner {
    position: fixed;
    z-index: 20;
    right: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: min(calc(100% - 2rem), 72rem);
    margin: 0;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid #bdcbd1;
    border-radius: 0.65rem;
    color: var(--charcoal);
    background: var(--white);
    box-shadow: 0 1rem 3rem rgba(3, 14, 21, 0.24);
    transform: translateX(-50%);
}

.home-page .cookie-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.home-page .cookie-consent-copy h2 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    line-height: 1.15;
}

.home-page .cookie-consent-copy p {
    color: #4f5b60;
    font-size: 0.875rem;
    line-height: 1.4;
}

.home-page .cookie-consent-copy a {
    color: #126d9f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.home-page .cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
}

.home-page .cookie-consent-actions button {
    min-height: 2.5rem;
    padding: 0.5rem 0.9rem;
    border: 2px solid #167abb;
    border-radius: 0.3rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.home-page .cookie-consent-accept {
    color: var(--white);
    background: #167abb;
}

.home-page .cookie-consent-reject {
    color: #126d9f;
    background: var(--white);
}

.home-page .cookie-consent-actions button:focus-visible,
.home-page .cookie-consent-copy a:focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 3px;
}

@media (min-width: 48.0625rem) and (max-width: 81rem) {
    body.home-page:has(.cookie-consent-banner:not([hidden])) .whatsapp-button {
        bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 48rem) {
    .home-page .cookie-consent-banner {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        width: auto;
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
        transform: none;
    }

    .home-page .cookie-consent-inner {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .home-page .cookie-consent-actions button {
        flex: 1;
    }
}

@media print {
    .home-page .cookie-consent-banner {
        display: none !important;
    }
}

/* Quote page */
.home-page.quote-page {
    background: var(--cloud);
}

.quote-page .quote-main {
    padding: 10.5rem 0 clamp(5rem, 8vw, 8rem);
}

.quote-page .quote-shell {
    width: min(100% - 3rem, 48rem);
    margin-inline: auto;
}

.quote-page .quote-heading {
    margin-bottom: 2.25rem;
}

.quote-page .quote-heading .section-kicker {
    color: #167abb;
}

.quote-page .quote-heading h1 {
    max-width: 44rem;
    margin: 0 0 1.25rem;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.quote-page .quote-heading > p:last-child {
    max-width: 39rem;
    color: #4f5b60;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.contact-page .contact-direct {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border-left: 0.3rem solid var(--warm-yellow);
    color: #4f5b60;
    background: var(--white);
}

.contact-page .contact-direct a {
    color: #167abb;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-page .contact-direct a:focus-visible {
    outline: 3px solid #167abb;
    outline-offset: 3px;
}

.quote-page .quote-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid #cbd9df;
    border-top: 0.35rem solid var(--rain-blue);
    border-radius: 0.65rem;
    background: var(--white);
    box-shadow: 0 1.75rem 4rem rgba(34, 42, 46, 0.13);
}

.quote-page .service-selection {
    min-width: 0;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid #b8c9d0;
    border-radius: 0.5rem;
    background: #f7fafb;
}

.quote-page .service-selection[aria-invalid="true"] {
    border-color: #a53d38;
    box-shadow: 0 0 0 3px rgba(165, 61, 56, 0.12);
}

.quote-page .service-selection legend {
    padding-inline: 0.35rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.quote-page .service-selection-hint,
.quote-page .service-details-help {
    color: #5d696e;
    font-size: 0.98rem;
}

.quote-page .service-selection-hint {
    margin-bottom: 1rem;
}

.quote-page .service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.quote-page .service-option {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cbd9df;
    border-radius: 0.4rem;
    background: var(--white);
    cursor: pointer;
}

.quote-page .service-option:has(input:checked) {
    border-color: var(--rain-blue);
    background: #eef7fc;
}

.quote-page .service-option input {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #167abb;
}

.quote-page .service-option input:focus-visible {
    outline: 3px solid rgba(45, 142, 207, 0.35);
    outline-offset: 3px;
}

.quote-page .service-selection-error {
    margin-top: 0.8rem;
    color: #7a2f2a;
    font-weight: 700;
}

.quote-page .service-details-help {
    margin-bottom: 0.3rem;
}

.quote-page .form-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
}

.quote-page .form-field label {
    font-weight: 700;
}

.quote-page .form-field label span {
    color: #68757b;
    font-size: 0.92em;
    font-weight: 400;
}

.quote-page .form-field input,
.quote-page .form-field select,
.quote-page .form-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid #aebfc6;
    border-radius: 0.3rem;
    color: var(--charcoal);
    background: var(--white);
    font: inherit;
}

.quote-page .form-field textarea {
    min-height: 9rem;
    resize: vertical;
}

.quote-page .form-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 3rem;
    background-image: url("img/select-arrow.svg");
    background-position: right 1rem center;
    background-size: 0.8rem auto;
    background-repeat: no-repeat;
}

.quote-page .form-field input:focus-visible,
.quote-page .form-field select:focus-visible,
.quote-page .form-field textarea:focus-visible {
    border-color: var(--rain-blue);
    outline: 3px solid rgba(45, 142, 207, 0.28);
    outline-offset: 2px;
}

.quote-page .postcode-field input {
    max-width: 12rem;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.quote-page .form-note {
    color: #5d696e;
    font-size: 0.95rem;
}

.quote-page .form-note a {
    color: #167abb;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.quote-page .quote-submit {
    justify-self: start;
    font-size: 1.125rem;
}

.home-page .message-box {
    margin-bottom: 1.4rem;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd9df;
    border-left-width: 0.35rem;
    border-radius: 0.45rem;
    background: var(--white);
    box-shadow: 0 0.75rem 1.75rem rgba(34, 42, 46, 0.08);
}

.home-page .message-box-error {
    border-color: #e7c0bd;
    border-left-color: #a53d38;
    color: #682a27;
    background: #fff7f6;
}

.home-page .message-box-success {
    border-color: #b9d9c4;
    border-left-color: #2e7d4f;
    color: #225336;
    background: #f3fbf5;
    padding: 1.25rem 1.4rem;
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

.home-page .message-box-title {
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.home-page .message-box-list {
    margin: 0;
    padding-left: 1.25rem;
}

/* Legal pages */
.home-page.legal-page {
    background: var(--cloud);
}

.legal-page .legal-main {
    padding: 10.5rem 0 clamp(5rem, 8vw, 8rem);
}

.legal-page .legal-shell {
    width: min(100% - 3rem, 58rem);
    margin-inline: auto;
}

.legal-page .legal-header {
    max-width: 50rem;
    margin-bottom: 2.5rem;
}

.legal-page .legal-header .section-kicker {
    color: #167abb;
}

.legal-page .legal-header h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(3.4rem, 7vw, 5.75rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.legal-page .legal-header > p:not(.section-kicker, .legal-updated) {
    max-width: 44rem;
    color: #4f5b60;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.legal-page .legal-updated {
    margin-top: 1.25rem;
    color: #68757b;
    font-size: 0.95rem;
    font-weight: 600;
}

.legal-page .legal-content {
    overflow: hidden;
    border: 1px solid #cbd9df;
    border-top: 0.35rem solid var(--rain-blue);
    border-radius: 0.65rem;
    background: var(--white);
    box-shadow: 0 1.75rem 4rem rgba(34, 42, 46, 0.12);
}

.legal-page .legal-section {
    padding: clamp(1.6rem, 4vw, 3rem);
    border-bottom: 1px solid #dce5e9;
}

.legal-page .legal-section:last-child {
    border-bottom: 0;
}

.legal-page .legal-section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
    color: #445056;
}

.legal-page .legal-section p + p {
    margin-top: 1rem;
}

.legal-page .legal-section ul {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.legal-page .legal-section a {
    color: #167abb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Pricing page */
.price-page {
    background: var(--cloud);
}

.price-page .price-main {
    overflow: hidden;
    background: var(--cloud);
}

.price-page .price-shell {
    width: min(100% - 3rem, 75rem);
    margin-inline: auto;
}

.price-page .price-hero {
    padding: 12rem 0 6.5rem;
    color: var(--white);
    background: var(--charcoal);
}

.price-page .price-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.price-page .price-hero-copy {
    max-width: 44rem;
}

.price-page .price-hero .section-kicker,
.price-page .price-details-card .section-kicker,
.price-page .price-change-card .section-kicker,
.price-page .price-cta-section .section-kicker {
    color: var(--warm-yellow);
}

.price-page .price-hero h1 {
    max-width: 12ch;
    margin: 0 0 1.5rem;
    color: var(--white);
    font-size: clamp(3.5rem, 7vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.price-page .price-hero-copy > p:not(.section-kicker) {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.price-page .price-hero-card {
    padding: clamp(1.6rem, 4vw, 2.75rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 0.4rem solid var(--warm-yellow);
    border-radius: 0.65rem;
    background: #2a353a;
    box-shadow: 0 1.75rem 4rem rgba(0, 0, 0, 0.22);
}

.price-page .price-card-kicker {
    margin-bottom: 0.7rem;
    color: #167abb;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.price-page .price-hero-card .price-card-kicker {
    color: var(--warm-yellow);
}

.price-page .price-hero-card h2 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.price-page .price-hero-card p:last-child {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.price-page .price-amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.7rem;
    line-height: 1;
}

.price-page .price-amount strong {
    color: var(--charcoal);
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    letter-spacing: -0.05em;
}

.price-page .price-amount > span:not(.price-was) {
    color: #68757b;
    font-size: 0.98rem;
    font-weight: 600;
}

.price-page .price-hero-card .price-amount strong {
    color: var(--warm-yellow);
}

.price-page .price-hero-card .price-amount > span:not(.price-was) {
    color: rgba(255, 255, 255, 0.72);
}

.price-page .price-was {
    position: relative;
    color: #68757b;
    font-size: 1.35rem;
    font-weight: 700;
}

.price-page .price-was::after {
    content: "";
    position: absolute;
    right: -0.12em;
    left: -0.12em;
    top: 52%;
    height: 0.16rem;
    border-radius: 999px;
    background: #ef5350;
    transform: rotate(-8deg);
}

.price-page .price-hero-card .price-was {
    color: rgba(255, 255, 255, 0.7);
}

.price-page .price-list-section,
.price-page .price-faq-section {
    padding-block: clamp(5rem, 8vw, 8rem);
    background: var(--cloud);
}

.price-page .price-heading {
    max-width: 46rem;
    margin-bottom: 2.75rem;
}

.price-page .price-heading h2,
.price-page .price-details-card h2,
.price-page .price-change-card h2,
.price-page .price-cta-section h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.price-page .price-heading > p:last-child,
.price-page .price-details-card > p:last-child {
    max-width: 40rem;
    color: #4f5b60;
    font-size: 1.18rem;
}

.price-page .price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.price-page .price-card {
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid #cbd9df;
    border-top: 0.35rem solid var(--rain-blue);
    border-radius: 0.55rem;
    background: var(--white);
    box-shadow: 0 1.25rem 2.5rem rgba(34, 42, 46, 0.08);
}

.price-page .price-card-featured {
    border-top-color: var(--warm-yellow);
    box-shadow: 0 1.5rem 3rem rgba(34, 42, 46, 0.14);
}

.price-page .price-card h3 {
    min-height: 3.8rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.08;
}

.price-page .price-card .price-amount {
    margin-bottom: 1rem;
}

.price-page .price-card .price-amount strong {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.price-page .price-amount-link {
    color: var(--charcoal);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

.price-page .price-card > p:not(.price-card-kicker) {
    margin-top: auto;
    color: #4f5b60;
}

.price-page .price-card-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: #167abb;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.price-page .price-details-section {
    padding-block: clamp(5rem, 8vw, 8rem);
    color: var(--white);
    background: #167abb;
}

.price-page .price-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
}

.price-page .price-details-card h2,
.price-page .price-change-card h2 {
    color: var(--white);
}

.price-page .price-details-card > p:last-child,
.price-page .price-change-card > p {
    color: rgba(255, 255, 255, 0.88);
}

.price-page .price-check-list {
    display: grid;
    gap: 0.9rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.price-page .price-check-list li {
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    border-left: 0.3rem solid var(--warm-yellow);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(4, 18, 26, 0.14);
}

.price-page .price-change-card {
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.65rem;
    background: rgba(4, 18, 26, 0.2);
}

.price-page .price-change-card p + p {
    margin-top: 1rem;
}

.price-page .price-service-links {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.price-page .price-service-links a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.price-page .price-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.price-page .price-faq-list {
    overflow: hidden;
    border: 1px solid #cbd9df;
    border-top: 0.35rem solid var(--rain-blue);
    border-radius: 0.65rem;
    background: var(--white);
    box-shadow: 0 1.5rem 3rem rgba(34, 42, 46, 0.1);
}

.price-page .price-faq-list details {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid #dce5e9;
}

.price-page .price-faq-list details:last-child {
    border-bottom: 0;
}

.price-page .price-faq-list summary {
    cursor: pointer;
    color: var(--charcoal);
    font-size: 1.2rem;
    font-weight: 700;
}

.price-page .price-faq-list details p {
    max-width: 42rem;
    margin-top: 0.8rem;
    color: #4f5b60;
}

.price-page .price-cta-section {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    color: var(--white);
    background: var(--charcoal);
}

.price-page .price-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.price-page .price-cta-section h2 {
    margin-bottom: 0;
    color: var(--white);
}

@media (hover: hover) {
    .home-page .button,
    .home-page .site-nav a,
    .home-page .header-phone,
    .home-page .footer-grid a {
        transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
    }

    .home-page .button:hover {
        transform: translateY(-2px);
    }

    .home-page .site-nav a:hover,
    .home-page .header-phone:hover,
    .home-page .footer-grid a:hover {
        opacity: 0.65;
    }
}

@media (max-width: 68rem) {
    .home-page .site-header {
        gap: 1.25rem;
    }

    .home-page .site-nav {
        gap: 1rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 80rem) {
    .home-page .hero-inner {
        align-items: flex-start;
        padding-top: 10.5rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 48.0625rem) and (max-width: 66rem) {
    .home-page .header-phone {
        display: none;
    }
}

@media (min-width: 48.0625rem) and (max-width: 56rem) {
    .home-page .site-header {
        gap: 1rem;
    }

    .home-page .site-logo {
        width: clamp(13rem, 27vw, 15rem);
    }

    .home-page .site-nav {
        gap: clamp(0.75rem, 1.6vw, 1rem);
        font-size: 0.95rem;
    }

    .home-page .header-quote {
        padding-inline: 1rem;
        white-space: nowrap;
    }

    .home-page .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .home-page .section-shell {
        width: min(100% - 2rem, 75rem);
    }

    .home-page .site-header {
        top: 0.6rem;
        width: calc(100% - 1rem);
        min-height: 5rem;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .home-page .site-logo {
        width: min(10.625rem, 43.6vw);
    }

    .home-page .site-nav {
        display: flex;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        width: min(15rem, calc(100vw - 1.5rem));
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 0.65rem;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(20, 44, 56, 0.98);
        box-shadow: 0 1rem 2rem rgba(3, 14, 21, 0.28);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-0.5rem) scale(0.98);
        transform-origin: top right;
        transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    }

    .home-page .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition-delay: 0s;
    }

    .home-page .site-nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 0.4rem;
        transition: color 160ms ease, background-color 160ms ease;
    }

    .home-page .site-nav a:hover,
    .home-page .site-nav a:focus-visible {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
    }

    .home-page .site-nav a:focus-visible,
    .home-page .menu-button:focus-visible,
    .home-page .nav-phone:focus-visible {
        outline: 3px solid var(--warm-yellow);
        outline-offset: 2px;
    }

    .home-page .site-nav .nav-phone {
        display: block;
        color: var(--warm-yellow);
    }

    .home-page .header-phone {
        display: none;
    }

    .home-page .header-quote {
        min-height: 2.75rem;
        padding: 0.65rem;
        font-size: 0.82rem;
    }

    .home-page .menu-button {
        width: 2.75rem;
        height: 2.75rem;
        position: relative;
        display: grid;
        place-items: center;
        padding: 0.65rem;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 0.25rem;
        color: var(--white);
        background: transparent;
        transition: border-color 160ms ease, background-color 160ms ease;
    }

    .home-page .menu-button.is-open {
        border-color: var(--warm-yellow);
        background: rgba(242, 193, 78, 0.14);
    }

    .home-page .menu-button img {
        width: 100%;
        filter: invert(1);
        transition: opacity 160ms ease;
    }

    .home-page .menu-button::after {
        content: "×";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: var(--warm-yellow);
        font-size: 1.7rem;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease;
    }

    .home-page .menu-button.is-open img {
        opacity: 0;
    }

    .home-page .menu-button.is-open::after {
        opacity: 1;
    }

    .home-page .hero-inner {
        min-height: 54rem;
        padding-top: 7rem;
        padding-bottom: 2rem;
        align-items: flex-end;
    }

    .home-page .hero-photo {
        object-position: 72% center;
    }

    .home-page .hero-copy {
        width: 100%;
        padding: 1.5rem 1rem 1.75rem;
    }

    .home-page .hero h1 {
        font-size: clamp(3rem, 13vw, 4rem);
        line-height: 0.94;
    }

    .home-page .hero-intro {
        font-size: 1.1rem;
    }

    .home-page .hero-offer {
        margin-top: 1rem;
    }

    .home-page .offer-price strong {
        font-size: 2.8rem;
    }

    .home-page .was-price {
        font-size: 1.35rem;
    }

    .home-page .hero-offer p {
        font-size: 0.9rem;
    }

    .home-page .postcode-control {
        grid-template-columns: minmax(0, 1fr) 7.25rem;
        gap: 0.35rem;
        padding: 0.35rem;
    }

    .home-page .postcode-control .button {
        width: auto;
        min-width: 7.25rem;
        padding-inline: 0.55rem;
        font-size: 1.05rem;
    }

    .home-page .editorial-split,
    .home-page .service-layout,
    .home-page .process-layout,
    .home-page .standards-grid,
    .home-page .area-cta-inner,
    .home-page .trader-strip-inner,
    .home-page .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-page .editorial-split,
    .home-page .service-layout,
    .home-page .process-layout,
    .home-page .standards-grid,
    .home-page .area-cta-inner {
        gap: 2.5rem;
    }

    .home-page .section-heading h2,
    .home-page .editorial-copy h2,
    .home-page .service-heading h2,
    .home-page .process-heading h2,
    .home-page .standards-copy h2,
    .home-page .area-cta h2 {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .home-page .editorial-photo img,
    .home-page .standards-grid figure img {
        height: clamp(22rem, 118vw, 31rem);
    }

    .home-page .editorial-photo figcaption {
        right: 0;
        bottom: -1rem;
    }

    .home-page .before-after {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }


    .home-page .before-after figcaption {
        left: 0.6rem;
        bottom: 0.6rem;
        min-width: 4.4rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }

    .home-page .transformation-cta {
        align-items: flex-start;
    }

    .home-page .service-heading,
    .home-page .process-heading {
        position: static;
    }

    .home-page .process-step {
        grid-template-columns: 3.25rem 1fr;
        gap: 1rem;
        padding-block: 1.75rem;
    }

    .home-page .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-block: 1.75rem;
    }

    .home-page .exterior-service-grid,
    .quote-page .service-options {
        grid-template-columns: 1fr;
    }

    .home-page .service-thumb {
        width: min(100%, 15rem);
    }

    .home-page .process-step .step-number {
        font-size: 2rem;
    }

    .home-page .standards-copy {
        order: -1;
    }

    .home-page .area-cta .postcode-control {
        margin-top: 0;
    }

    .home-page .trader-strip-inner {
        gap: 1.25rem;
    }

    .home-page .trader-strip .button {
        justify-self: start;
    }

    .home-page .footer-grid {
        gap: 2.25rem;
    }

    .home-page .footer-bottom {
        margin-top: 2.75rem;
    }

    .quote-page .quote-main {
        padding-top: 7.5rem;
    }

    .quote-page .quote-shell {
        width: min(100% - 2rem, 48rem);
    }

    .quote-page .quote-heading {
        margin-bottom: 1.75rem;
    }

    .quote-page .quote-heading h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .quote-page .quote-form {
        padding: 1.25rem;
    }

    .contact-page .contact-direct {
        padding: 0.9rem 1rem;
    }

    .quote-page .quote-submit {
        width: 100%;
    }

    .legal-page .legal-main {
        padding-top: 7.5rem;
    }

    .legal-page .legal-shell {
        width: min(100% - 2rem, 58rem);
    }

    .legal-page .legal-header {
        margin-bottom: 1.75rem;
    }

    .legal-page .legal-header h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .legal-page .legal-section {
        padding: 1.4rem 1.25rem;
    }

    .price-page .price-shell {
        width: min(100% - 2rem, 75rem);
    }

    .price-page .price-hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .price-page .price-hero-grid,
    .price-page .price-details-grid,
    .price-page .price-faq-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .price-page .price-hero h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .price-page .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-page .price-card {
        min-height: 20rem;
    }

    .price-page .price-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .price-page .price-cta-inner .button {
        width: 100%;
    }

}

/* Homepage refinement: scoped separately from pages sharing home-page basics. */
.home-page .homepage-content {
    --section-space: clamp(3.75rem, 7vw, 6.5rem);
}

.homepage-content :is(.problem-section, .transformation-section, .services-section, .process-section, .standards-section, .area-cta) {
    padding-block: var(--section-space);
    box-shadow: none;
}

.homepage-content :is(.section-heading, .editorial-copy, .standards-copy, .area-cta) h2 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.homepage-content :is(.editorial-copy, .service-heading) > p:last-child {
    font-size: 1.2rem;
    line-height: 1.65;
}

.homepage-content .hero,
.homepage-content .hero-inner {
    min-height: 0;
}

.homepage-content .hero-inner {
    padding-block: 10.5rem 4rem;
    align-items: flex-start;
}

.homepage-content .hero-copy {
    max-width: 41rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-left-width: 0.25rem;
    border-radius: 0 0.85rem 0.85rem 0;
    background: rgba(25, 36, 43, 0.88);
}

.homepage-content .hero h1 {
    max-width: 14ch;
    margin-bottom: 1.25rem;
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.homepage-content .hero-intro {
    font-size: 1.2rem;
    line-height: 1.6;
}

.homepage-content .hero-offer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.homepage-content .postcode-control {
    width: min(100%, 32rem);
    border-radius: 0.65rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 31, 40, 0.08);
}

.homepage-content .postcode-control input {
    border-color: transparent;
    background: #f1f5f6;
    font-size: 1.1rem;
}

.homepage-content :is(a, button, input):focus-visible {
    outline: 3px solid var(--rain-blue);
    outline-offset: 4px;
}

.homepage-content :is(.hero, .transformation-section, .trader-strip) :is(a, button, input):focus-visible {
    outline-color: var(--warm-yellow);
}

.homepage-content :is(.editorial-split, .standards-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 5rem);
}

.homepage-content .editorial-photo img,
.homepage-content .standards-grid figure img {
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    border-radius: 0.85rem;
}

.homepage-content .editorial-photo figcaption {
    right: 1rem;
    bottom: 1rem;
    border-top-width: 0.2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Balanced comparison cards; reset figure margins before sizing either image. */
.homepage-content .transformation-section {
    padding-block: clamp(2.75rem, 6vw, 5rem);
    background: linear-gradient(135deg, #176fa6, #125b8c);
}
.homepage-content .transformation-section .section-heading {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.homepage-content .before-after,
.homepage-content .transformation-cta {
    width: min(100%, 64rem);
}
.homepage-content .before-after {
    align-items: stretch;
    gap: clamp(1rem, 2.2vw, 1.75rem);
}
.homepage-content .before-after figure {
    min-width: 0;
    margin: 0;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 1.125rem;
    background: rgba(255,255,255,.12);
    box-shadow: 0 12px 28px rgba(6,35,56,.2);
}
.homepage-content .before-after figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: .75rem;
}
.homepage-content .before-after figcaption {
    top: 1rem;
    bottom: auto;
    left: 1rem;
    min-width: 0;
    padding: .4rem .85rem;
    border: 1px solid rgba(34,42,46,.08);
    border-radius: 999px;
    background: #fff;
    color: #222a2e;
    font-size: .95rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(6,35,56,.12);
}
.homepage-content .before-after figure:last-child figcaption {
    background: var(--warm-yellow);
}
.homepage-content .transformation-cta {
    margin-top: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 1rem;
    background: rgba(6,35,56,.16);
}
.homepage-content .transformation-cta p { margin: 0; }
@media (max-width: 599px) {
    .homepage-content .before-after { grid-template-columns: minmax(0, 1fr); }
    .homepage-content .transformation-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .homepage-content .transformation-cta .button { width: 100%; }
}

.homepage-content .service-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

.homepage-content .service-heading {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    column-gap: 4rem;
    align-items: end;
}

.homepage-content .service-heading .section-kicker {
    grid-column: 1 / -1;
}

.homepage-content .service-heading h2 {
    max-width: 23ch;
    margin-bottom: 0;
}

.homepage-content .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.homepage-content .service-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 1.5rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid #d4e0e5;
    border-radius: 0.85rem;
    background: var(--white);
}

.homepage-content .service-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.5rem;
}

.homepage-content .service-item > div,
.homepage-content .exterior-service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.homepage-content .service-item h3 {
    font-size: clamp(1.65rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.homepage-content .service-quote-link {
    margin-top: auto;
    padding-top: 1.25rem;
    line-height: 1.4;
}

.homepage-content .exterior-service-group {
    grid-column: 1 / -1;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid #d4e0e5;
    border-top: 3px solid var(--warm-yellow);
    border-radius: 0.85rem;
    background: #eaf0f3;
}

.homepage-content .exterior-service-group > h3 {
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
    line-height: 1.15;
}

.homepage-content .exterior-service-grid {
    gap: 2rem;
}

.homepage-content .exterior-service-item {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Supporting services keep shallower imagery than the primary gutter cards. */
.homepage-content .exterior-service-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 11rem;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    object-position: center 45%;
    margin-bottom: 1rem;
    padding: 4px;
    border: 1px solid #d4e0e5;
    border-radius: .875rem;
    background: #f1f6f9;
}

.homepage-content .exterior-service-item .service-price-note {
    margin-top: 0.65rem;
}

.homepage-content .process-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 5rem);
}

.homepage-content .process-list {
    border-top-width: 2px;
}

.homepage-content .process-step {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1.75rem;
}

.homepage-content .process-step .step-number {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #edf4f8;
    color: #176c9b;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.homepage-content .process-step h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}

.homepage-content .standards-grid figure {
    border: 0;
}

.homepage-content .standards-copy li {
    border-left-width: 2px;
}

.homepage-content .area-cta-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.homepage-content .trader-strip h2 {
    line-height: 1.15;
}

/* Homepage finish: light editorial cards balance the approved blue comparison. */
.homepage-content .hero {
    border-radius: 0;
    box-shadow: 0 14px 24px -14px rgba(16,42,56,.3);
}
.homepage-content .hero-copy {
    border: 1px solid rgba(255,255,255,.22);
    border-left: 4px solid var(--warm-yellow);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(8,24,34,.24);
}
.homepage-content .hero-offer { width: 100%; }
.homepage-content .problem-section { background: linear-gradient(180deg, #fff, #f6f9fb); }
.homepage-content :is(.editorial-photo, .standards-grid figure) {
    min-width: 0;
    margin: 0;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #cbdce5;
    border-radius: 1.125rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18,53,73,.12);
}
.homepage-content :is(.editorial-photo, .standards-grid figure) img {
    display: block;
    width: 100%;
    border-radius: .75rem;
}
.homepage-content .editorial-photo figcaption {
    position: absolute;
    left: .875rem;
    right: .875rem;
    bottom: .875rem;
    width: fit-content;
    max-width: calc(100% - 1.75rem);
    margin: 0;
    padding: .45rem .65rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .5rem;
    background: rgba(20,35,44,.88);
    color: #fff;
    font-size: .8125rem;
    line-height: 1.4;
}
.homepage-content .services-section { background: linear-gradient(180deg, #f4f8fa, #eaf2f6); }
.homepage-content .service-item {
    padding: clamp(1rem, 2.5vw, 1.75rem);
    border-color: #cbdde6;
    border-radius: 1.125rem;
    box-shadow: 0 10px 26px rgba(18,53,73,.08);
}
.homepage-content .service-thumb {
    padding: 5px;
    border: 1px solid #d9e5eb;
    border-radius: .875rem;
    background: #f1f6f9;
}
.homepage-content .service-quote-link { min-height: 44px; }
.homepage-content .exterior-service-group {
    border-color: #d4dee3;
    border-top-color: var(--warm-yellow);
    border-radius: 1.125rem;
    background: #fffdf6;
    box-shadow: 0 8px 22px rgba(18,53,73,.05);
}
.homepage-content .exterior-service-item + .exterior-service-item {
    padding-left: 2rem;
    border-left: 1px solid #e1e0d7;
}
.homepage-content .process-list { display: grid; gap: 1rem; border: 0; }
.homepage-content .process-step {
    margin: 0;
    padding: clamp(1.15rem, 2.5vw, 1.75rem);
    border: 1px solid #d8e4eb;
    border-radius: 1rem;
    background: #f8fbfc;
    box-shadow: 0 6px 18px rgba(18,53,73,.05);
}
.homepage-content .process-step .step-number {
    border: 1px solid #bdd7e6;
    background: #e7f2f9;
}
.homepage-content .standards-section { background: linear-gradient(135deg, #233a46, #172c38); }
.homepage-content .standards-grid figure { border-color: #557181; background: rgba(255,255,255,.1); }
.homepage-content .standards-copy li {
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-left: 3px solid var(--warm-yellow);
    border-radius: .65rem;
    background: rgba(255,255,255,.05);
}
.homepage-content .area-cta { background: linear-gradient(180deg, #eef5f9, #fff); }
.homepage-content .area-cta-inner {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid #cbdde7;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18,53,73,.08);
}
.homepage-content .area-cta .postcode-control { padding: .65rem; background: #eaf3f8; border-color: #aacbdc; }
.homepage-content .trader-strip { padding-block: 0 clamp(2.5rem, 5vw, 4rem); background: #fff; }
.homepage-content .trader-strip-inner {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    gap: clamp(1.5rem, 3vw, 3rem);
    border: 1px solid #407da1;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #176fa6, #125b8c);
    box-shadow: 0 12px 28px rgba(18,53,73,.14);
}
@media (max-width: 48rem) {
    .homepage-content :is(.editorial-photo, .standards-grid figure) img { aspect-ratio: 6 / 5; }
    .homepage-content .exterior-service-item + .exterior-service-item { padding: 1.5rem 0 0; border: 0; border-top: 1px solid #e1e0d7; }
    .homepage-content .area-cta-inner { gap: 1.5rem; }
    .homepage-content .area-cta .postcode-control { width: 100%; }
    .homepage-content .trader-strip-inner { gap: 1.25rem; }
}
@media (max-width: 599px) {
    .homepage-content .process-step { grid-template-columns: 2.75rem minmax(0,1fr); gap: .875rem; padding: 1rem; }
    .homepage-content .process-step .step-number { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; }
    .homepage-content .area-cta .postcode-control { grid-template-columns: minmax(0,1fr); }
    .homepage-content .trader-strip .button { width: 100%; }
}

/* Shared finishing details keep public and admin shells consistent. */
.home-page .site-header {
    box-shadow: 0 0.5rem 1.5rem rgba(12, 25, 33, 0.14);
}

.home-page .site-header :is(a, button):focus-visible,
.home-page .site-footer :is(a, button):focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 4px;
}

.home-page .site-footer :is(.footer-links a, .footer-cookie-settings) {
    width: fit-content;
    text-underline-offset: 0.22em;
}

.home-page .site-footer :is(.footer-links a, .footer-cookie-settings):hover {
    opacity: 1;
    color: var(--white);
    text-decoration: underline;
}

@media (min-width: 68.0625rem) {
    .home-page .site-logo {
        width: 15rem;
    }
}

@media (max-width: 48rem) {
    .homepage-content .hero-inner {
        padding-block: 7.5rem 2.5rem;
    }

    .homepage-content .hero-copy {
        padding: 1.5rem 1rem;
    }

    .homepage-content .hero h1 {
        font-size: clamp(2.6rem, 11.7vw, 3.75rem);
    }

    .homepage-content .hero h1 .hero-heading-question {
        max-width: 100%;
        text-wrap: balance;
    }

    .homepage-content .hero-intro {
        font-size: 1.125rem;
    }

    .homepage-content :is(.editorial-split, .standards-grid, .service-heading, .service-list, .process-layout, .area-cta-inner) {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-content .service-heading {
        gap: 1rem;
    }

    .homepage-content .service-heading .section-kicker {
        margin-bottom: 0;
    }

    .homepage-content .editorial-photo img,
    .homepage-content .standards-grid figure img {
        aspect-ratio: 1;
    }



    .homepage-content .process-step {
        gap: 1rem;
    }
}

/* Local service pages */
.service-area-main {
    font-size: 1.2rem;
}

.service-area-hero,
.service-areas-hero {
    padding: clamp(11rem, 16vw, 14rem) 0 clamp(4rem, 7vw, 6.5rem);
    color: var(--white);
    background:
        radial-gradient(circle at 88% 24%, rgba(45, 142, 207, 0.42), transparent 28rem),
        var(--charcoal);
}

.service-area-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.service-area-breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.service-area-hero h1,
.service-areas-hero h1 {
    max-width: 13ch;
    margin: 0.55rem 0 1.4rem;
    color: var(--white);
    font-size: clamp(3.7rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.service-area-lead,
.service-areas-hero > .section-shell > p:not(.section-kicker) {
    max-width: 47rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.service-areas-secondary {
    margin-top: 1rem;
}

.service-areas-secondary a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.service-area-lead p + p,
.service-area-rich-text p + p,
.service-area-cta p + p {
    margin-top: 1rem;
}

.service-area-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.service-area-phone {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.service-area-phone:focus-visible,
.service-area-breadcrumbs a:focus-visible,
.service-area-card a:focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 4px;
}

.service-area-section,
.service-area-services,
.service-areas-directory {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.service-area-section-muted,
.service-areas-directory {
    background: var(--cloud);
}

.service-area-copy-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
}

.service-area-copy-grid h2,
.service-area-services h2,
.service-area-cta h2,
.service-areas-directory h2 {
    margin: 0.45rem 0 0;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.service-area-rich-text {
    color: #50616a;
    font-size: clamp(1.2rem, 1.45vw, 1.3rem);
    line-height: 1.65;
}

.service-area-service-grid,
.service-area-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.service-area-service-grid article,
.service-area-card {
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid #d6e1e6;
    border-radius: 0.75rem;
    background: var(--white);
}

.service-area-service-grid h3,
.service-area-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.65rem;
    line-height: 1.05;
}

.service-area-service-grid p,
.service-area-card > p:not(.service-area-card-kicker) {
    color: #596b74;
}

.service-area-price-link,
.service-area-postcodes {
    margin-top: 2rem !important;
}

.service-area-price-link a,
.service-area-card-link,
.service-area-card h3 a {
    color: #126d9f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.service-area-card-kicker {
    margin-bottom: 1.1rem !important;
    color: #687a83;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-area-card-link {
    display: inline-flex;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.service-area-secondary-services {
    margin-top: 2rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-left: 0.35rem solid var(--warm-yellow);
    background: var(--cloud);
}

.service-area-secondary-services h3 {
    margin-bottom: 0.6rem;
    font-size: 1.55rem;
}

.service-area-secondary-services p {
    max-width: 54rem;
    color: #50616a;
}

.service-area-secondary-services a {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #126d9f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.service-area-cta {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    color: var(--white);
    background: #1f343e;
}

.service-area-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
}

.service-area-cta h2 {
    max-width: 18ch;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-area-cta p {
    max-width: 45rem;
    color: rgba(255, 255, 255, 0.78);
}

.service-areas-empty,
.service-area-not-found-main .section-shell {
    max-width: 50rem;
}

.service-area-not-found-main .button-outline-dark {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
}

/* Location management */
.admin-locations-hero,
.admin-location-editor-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.admin-locations-directory,
.admin-location-form {
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid #d3dfe4;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 2.75rem rgba(31, 43, 51, 0.08);
}

.admin-locations-toolbar,
.admin-locations-filter,
.admin-location-primary,
.admin-location-actions,
.admin-location-editor-meta,
.admin-location-form-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-locations-filter label {
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-locations-filter select {
    min-height: 2.8rem;
    padding: 0.5rem 2.2rem 0.5rem 0.75rem;
    border: 1px solid #b9c9d0;
    border-radius: 0.35rem;
    background: var(--white);
    font: inherit;
}

.admin-location-list {
    border-top: 1px solid #d7e1e5;
}

.admin-location-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid #d7e1e5;
}

.admin-location-primary h3,
.admin-location-primary p,
.admin-location-updated {
    margin: 0;
}

.admin-location-primary p,
.admin-location-updated {
    color: #687a83;
    font-size: 0.85rem;
}

.admin-location-status {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    color: #4f5d64;
    background: #e4ebee;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-location-status-published {
    color: #145c3a;
    background: #d9f0e4;
}

.admin-location-status-archived {
    color: #76531b;
    background: #f6e8c8;
}

.admin-location-editor-meta {
    align-items: flex-end;
    flex-direction: column;
}

.admin-location-editor-meta a,
.admin-location-actions > a:not(.button) {
    color: #bfe1f5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.admin-location-actions > a:not(.button) {
    color: #126d9f;
}

.admin-location-form-section {
    display: grid;
    grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: 1rem 0 2.5rem;
}

.admin-location-form-section + .admin-location-form-section {
    padding-top: 2.5rem;
    border-top: 1px solid #d7e1e5;
}

.admin-location-form-heading h2 {
    margin: 0.25rem 0 0.5rem;
    font-size: 2rem;
    line-height: 1;
}

.admin-location-form-heading > p:last-child,
.admin-location-form .form-field small {
    color: #687a83;
    font-size: 0.85rem;
}

.admin-location-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-location-form-stack {
    display: grid;
    gap: 1rem;
}

.admin-location-form .form-field {
    margin: 0;
}

.admin-location-form-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #d7e1e5;
}

.home-page .button-outline-dark {
    color: var(--charcoal);
    border-color: #8ea0a9;
    background: transparent;
}

.home-page .button-danger {
    color: #74251f;
    border-color: #cc8c85;
    background: #fff5f3;
}

.admin-location-message {
    margin-top: 1.25rem;
}

@media (max-width: 62rem) {
    .service-area-service-grid,
    .service-area-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-location-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-location-updated {
        display: none;
    }
}

@media (max-width: 48rem) {
    .service-area-main,
    .service-area-rich-text {
        font-size: 1.125rem;
    }

    .service-area-rich-text {
        line-height: 1.6;
    }

    .service-area-copy-grid,
    .service-area-cta-inner,
    .admin-location-form-section {
        grid-template-columns: 1fr;
    }

    .service-area-service-grid,
    .service-area-card-grid,
    .admin-location-form-grid {
        grid-template-columns: 1fr;
    }

    .service-area-hero,
    .service-areas-hero {
        padding-top: 9.5rem;
    }

    .service-area-hero h1,
    .service-areas-hero h1 {
        font-size: clamp(3.2rem, 15vw, 4.8rem);
    }

    .service-area-cta-inner {
        align-items: start;
    }

    .admin-report-nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-locations-hero,
    .admin-location-editor-hero,
    .admin-locations-toolbar,
    .admin-location-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-locations-filter,
    .admin-location-actions {
        flex-wrap: wrap;
    }

    .admin-location-editor-meta {
        align-items: flex-start;
    }

    .admin-location-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (min-width: 30rem) and (max-width: 48rem) {
    .home-page .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }

    .home-page .site-logo {
        width: min(10.625rem, 30vw);
    }

    .home-page .header-phone {
        display: block;
        padding-inline: 0.2rem;
        font-size: 1.1rem;
    }

    .home-page .site-nav .nav-phone {
        display: none;
    }
}

/* WhatsApp contact button */
.home-page .whatsapp-button {
    position: fixed;
    z-index: 8;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0.45rem 1.2rem rgba(3, 14, 21, 0.2);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        bottom 160ms ease,
        opacity 400ms ease,
        visibility 0s linear 0s,
        box-shadow 160ms ease;
}

.home-page .whatsapp-button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 400ms ease,
        visibility 0s linear 400ms;
}

.home-page .whatsapp-button-icon {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
    transition: filter 160ms ease;
}

.home-page .whatsapp-button:focus-visible {
    outline: 3px solid var(--warm-yellow);
    outline-offset: 3px;
}

@media (hover: hover) {
    .home-page .whatsapp-button:hover {
        box-shadow: 0 0.55rem 1.4rem rgba(3, 14, 21, 0.25);
    }

    .home-page .whatsapp-button:hover .whatsapp-button-icon {
        filter: brightness(0.9);
    }
}

@media (max-width: 48rem) {
    .home-page .whatsapp-button {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        width: 3rem;
        height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .whatsapp-button,
    .home-page .whatsapp-button.is-hidden {
        transition: none !important;
    }
}

@media print {
    .home-page .whatsapp-button {
        display: none !important;
    }
}

@media (max-width: 27rem) {
    .price-page .price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 23rem) {
    .homepage-content .postcode-control {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-content .postcode-control .button {
        min-height: 3.25rem;
    }
}

/* Admin reports */
.admin-report-main,
.viewer-report-main {
    min-height: 100vh;
    padding: 9.5rem 0 clamp(5rem, 8vw, 8rem);
    color: #1f2b33;
    background:
        radial-gradient(circle at 92% 4%, rgba(45, 142, 207, 0.12), transparent 25rem),
        linear-gradient(rgba(31, 43, 51, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 43, 51, 0.025) 1px, transparent 1px),
        #edf2f4;
    background-size: auto, 2.5rem 2.5rem, 2.5rem 2.5rem, auto;
}

.admin-report-shell,
.viewer-report-shell {
    width: min(100% - 3rem, 86rem);
    margin-inline: auto;
}

.admin-report-nav {
    flex-wrap: wrap;
    min-height: 4.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.75rem 0.65rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    color: var(--white);
    background: #192831;
    box-shadow: 0 1rem 2.5rem rgba(25, 40, 49, 0.16);
}

.admin-report-brand {
    display: grid;
    line-height: 1.05;
}

.admin-report-brand span {
    color: #9eb2bd;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-report-brand strong {
    margin-top: 0.28rem;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.admin-report-nav-links {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.admin-report-nav-links a {
    min-height: 3.15rem;
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 0.55rem;
    color: #bed0d9;
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 160ms ease, background-color 160ms ease;
}

.admin-report-nav-links a:hover,
.admin-report-nav-links a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.admin-report-nav-links a[aria-current="page"] {
    color: #17252d;
    background: var(--warm-yellow);
}

.admin-report-brand:focus-visible,
.admin-report-nav-links a:focus-visible {
    outline: 3px solid rgba(242, 193, 78, 0.55);
    outline-offset: 2px;
}

.admin-report-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 20%, rgba(45, 142, 207, 0.36), transparent 20rem),
        #21343e;
    box-shadow: 0 1.35rem 3.5rem rgba(31, 43, 51, 0.16);
}

.admin-report-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #b9cad2;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-report-eyebrow span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--warm-yellow);
    box-shadow: 0 0 0 0.28rem rgba(242, 193, 78, 0.13);
}

.admin-report-hero h1 {
    max-width: 12ch;
    margin: 0.55rem 0 0.85rem;
    color: var(--white);
}

.admin-report-hero > div > p:last-child {
    max-width: 43rem;
    color: #c7d5db;
    font-size: 1.08rem;
}

.admin-report-hero-hub {
    min-height: 11rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.admin-report-hero-hub h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
}

.admin-report-hero-mark {
    display: grid;
    place-items: center;
    width: clamp(4.5rem, 7vw, 6rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
}

.admin-report-directory {
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid #d3dfe4;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1rem 2.75rem rgba(31, 43, 51, 0.08);
}

.admin-report-section-heading,
.admin-report-controls-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.admin-report-section-heading {
    margin-bottom: 1.5rem;
}

.admin-report-section-heading h2,
.admin-report-controls-heading h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.admin-report-section-heading > p,
.admin-report-controls-heading > p {
    max-width: 30rem;
    color: #667780;
    font-size: 0.92rem;
    text-align: right;
}

.admin-report-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-report-card {
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid #d6e1e6;
    border-radius: 0.85rem;
    background: #f8fafb;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-report-card:hover,
.admin-report-card:focus-visible {
    border-color: #8dbdd8;
    transform: translateY(-0.2rem);
    box-shadow: 0 1rem 2.4rem rgba(31, 43, 51, 0.11);
}

.admin-report-card:focus-visible {
    outline: 3px solid rgba(45, 142, 207, 0.36);
    outline-offset: 3px;
}

.admin-report-card-number {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    margin-bottom: 2.5rem;
    border-radius: 50%;
    color: #0f679d;
    background: #dceef8;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-report-card-kicker {
    color: #71818a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-report-card h3 {
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.admin-report-card p:not(.admin-report-card-kicker) {
    max-width: 34rem;
    color: #5d6e76;
    font-size: 1rem;
}

.admin-report-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    color: #106da7;
    font-weight: 700;
}

.admin-report-card-action span {
    font-size: 1.4rem;
    transition: transform 180ms ease;
}

.admin-report-card:hover .admin-report-card-action span {
    transform: translateX(0.25rem);
}

.viewer-report-heading,
.viewer-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.viewer-report-heading {
    margin-bottom: 1.25rem;
}

.viewer-report-heading h1 {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(3.4rem, 7vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.viewer-latest-heading > p {
    color: #687982;
}

.viewer-report-heading.admin-report-hero > div > p:last-child {
    color: #c7d5db;
}

.viewer-back-link,
.viewer-filter-reset {
    color: #0f6fa9;
    font-weight: 700;
}

.viewer-back-link {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.55rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.viewer-back-link:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.admin-report-controls {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid #d2dfe4;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.8rem 2.25rem rgba(31, 43, 51, 0.07);
}

.admin-report-controls-heading {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e8ec;
}

.viewer-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
    align-items: end;
    gap: 0.8rem;
}

.viewer-events-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto;
}

.viewer-filter-field {
    display: grid;
    gap: 0.42rem;
}

.viewer-filter-field label {
    color: #53646d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.viewer-filter-field input,
.viewer-filter-field select {
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #bfced5;
    border-radius: 0.5rem;
    color: var(--charcoal);
    background-color: #f8fafb;
    font: inherit;
    font-size: 0.93rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.viewer-filter-field select {
    padding-right: 2.6rem;
    background-image: url("img/select-arrow.svg");
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    background-size: 0.75rem auto;
    appearance: none;
}

.viewer-filter-field input:focus-visible,
.viewer-filter-field select:focus-visible {
    border-color: var(--rain-blue);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(45, 142, 207, 0.12);
}

.viewer-filter-reset:focus-visible,
.viewer-report-links a:focus-visible,
.viewer-chart-scroll:focus-visible,
.viewer-table-scroll:focus-visible {
    outline: 3px solid rgba(45, 142, 207, 0.42);
    outline-offset: 3px;
}

.viewer-back-link:focus-visible {
    outline: 3px solid rgba(242, 193, 78, 0.72);
    outline-offset: 3px;
}

.viewer-filter-submit {
    min-height: 3.1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 0.55rem 1.2rem rgba(45, 142, 207, 0.17);
}

.viewer-filter-reset {
    align-self: center;
    padding: 0.75rem 0.45rem;
    text-decoration: underline;
    text-decoration-color: #a5b6be;
    text-underline-offset: 0.22em;
}

.viewer-validation {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d5a454;
    border-left: 0.3rem solid #b56a12;
    border-radius: 0.5rem;
    color: #68420f;
    background: #fff7e7;
}

.viewer-validation p + p {
    margin-top: 0.35rem;
}

.viewer-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.25rem 0;
}

.viewer-summary-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.35rem;
    border: 1px solid #d3e0e5;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.7rem 1.8rem rgba(31, 43, 51, 0.055);
}

.viewer-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--rain-blue);
}

.viewer-summary-card:nth-child(2)::before {
    background: #6a8fa4;
}

.viewer-summary-card:nth-child(3)::before {
    background: #34a277;
}

.viewer-summary-card:nth-child(4)::before {
    background: var(--warm-yellow);
}

.viewer-summary-card:nth-child(5)::before {
    background: #7b6acb;
}

.viewer-summary-card strong,
.viewer-summary-card span {
    display: block;
}

.viewer-summary-card strong {
    color: #20313a;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.viewer-summary-card span {
    margin-top: 0.45rem;
    color: #687982;
    font-size: 0.82rem;
    font-weight: 600;
}

.viewer-report-panel {
    margin-top: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #d2dfe4;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0.9rem 2.4rem rgba(31, 43, 51, 0.065);
}

.viewer-panel-heading {
    margin-bottom: 1.5rem;
}

.viewer-panel-heading h2 {
    margin: 0.1rem 0 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.viewer-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #52636c;
    font-size: 0.84rem;
    font-weight: 700;
}

.viewer-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d9e3e7;
    border-radius: 999px;
    background: #f8fafb;
}

.viewer-chart-legend i {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.15rem;
}

.viewer-legend-human,
.viewer-bar-human {
    fill: var(--rain-blue);
    background: var(--rain-blue);
}

.viewer-legend-bot,
.viewer-bar-bot {
    fill: var(--warm-yellow);
    background: var(--warm-yellow);
}

.viewer-chart {
    margin: 0;
}

.viewer-chart-scroll,
.viewer-table-scroll {
    overflow-x: auto;
    border-radius: 0.6rem;
    scrollbar-color: #9bb4c0 var(--cloud);
}

.viewer-chart-scroll {
    padding: 0.8rem 0.8rem 0.25rem;
    border: 1px solid #e0e8eb;
    background: #f8fafb;
}

.viewer-chart svg {
    display: block;
    width: max(100%, 47.5rem);
    height: auto;
}

.viewer-grid-line {
    stroke: #dbe5e9;
    stroke-width: 1;
}

.viewer-axis-line {
    stroke: #82959e;
    stroke-width: 1.2;
}

.viewer-axis-label,
.viewer-x-label {
    fill: #637178;
    font-family: "Source Sans 3", sans-serif;
    font-size: 11px;
}

.viewer-chart figcaption {
    margin-top: 0.75rem;
    color: #718089;
    font-size: 0.82rem;
}

.viewer-chart-data {
    margin-top: 0.8rem;
}

.viewer-chart-data summary {
    width: fit-content;
    cursor: pointer;
    color: #126fae;
    font-size: 0.86rem;
    font-weight: 700;
}

.viewer-chart-data summary:focus-visible,
.viewer-chart-data-scroll:focus-visible {
    outline: 3px solid rgba(45, 142, 207, 0.42);
    outline-offset: 3px;
}

.viewer-chart-data-scroll {
    max-height: 24rem;
    margin-top: 0.75rem;
    overflow: auto;
    border: 1px solid #dbe5e9;
    border-radius: 0.55rem;
    background: var(--white);
}

.viewer-chart-data table {
    width: 100%;
    min-width: 28rem;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 0.86rem;
}

.viewer-chart-data caption {
    padding: 0.8rem;
    color: #53646d;
    font-weight: 700;
    text-align: left;
}

.viewer-chart-data th,
.viewer-chart-data td {
    padding: 0.65rem 0.8rem;
    border-top: 1px solid #e3eaed;
    text-align: left;
}

.viewer-chart-data thead th {
    position: sticky;
    z-index: 1;
    top: 0;
    color: #50616a;
    background: #edf3f5;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.viewer-chart-data tbody tr:nth-child(even) {
    background: #fafcfc;
}

.viewer-events-ranking {
    display: grid;
    gap: 0.55rem;
}

.viewer-events-rank-item {
    display: grid;
    grid-template-columns: minmax(13rem, 20rem) minmax(12rem, 1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    background: #f8fafb;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.viewer-events-rank-item:hover {
    border-color: #cadbe2;
    background: var(--white);
}

.viewer-events-rank-copy {
    display: grid;
    gap: 0.2rem;
}

.viewer-events-rank-copy strong {
    overflow-wrap: anywhere;
}

.viewer-events-rank-copy span {
    color: #68757b;
    font-size: 0.9rem;
}

.viewer-events-rank-track {
    height: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8ec;
}

.viewer-events-rank-bar {
    display: block;
    min-width: 0.2rem;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rain-blue), #61b5e9);
}

.viewer-events-rank-item:hover .viewer-events-rank-bar {
    background: var(--charcoal);
}

.viewer-empty-state {
    padding: 3rem 1.25rem;
    border: 1px dashed #afc3cc;
    border-radius: 0.65rem;
    text-align: center;
    background: #f8fafb;
}

.viewer-empty-state strong {
    display: block;
    font-size: 1.3rem;
}

.viewer-empty-state p {
    margin-top: 0.35rem;
    color: #68757b;
}

.viewer-table {
    width: 100%;
    min-width: 74rem;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 0.92rem;
}

.viewer-events-table {
    min-width: 86rem;
}

.viewer-table th,
.viewer-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid #e1e9ec;
    vertical-align: top;
    text-align: left;
}

.viewer-table th {
    position: sticky;
    z-index: 1;
    top: 0;
    color: #50616a;
    background: #edf3f5;
    font-size: 0.72rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.viewer-table tbody tr:nth-child(even) {
    background: #fafcfc;
}

.viewer-table tbody tr:hover {
    background: #eef7fb;
}

.viewer-table tbody tr:last-child td {
    border-bottom: 0;
}

.viewer-table-scroll {
    border: 1px solid #dbe5e9;
    background: var(--white);
}

.viewer-referrer,
.viewer-agent {
    max-width: 18rem;
    overflow-wrap: anywhere;
}

.viewer-agent[title] {
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: #82969f;
    text-underline-offset: 0.2em;
}

.viewer-referrer a {
    color: #126fae;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.viewer-id-link {
    min-width: 2.25rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    color: #126fae;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #9bbdcc;
    text-underline-offset: 0.18em;
}

.viewer-id-link:hover {
    color: #174c68;
    text-decoration-color: currentColor;
}

.viewer-id-link:focus-visible,
.viewer-pagination a:focus-visible {
    border-radius: 0.2rem;
    outline: 3px solid rgba(45, 142, 207, 0.42);
    outline-offset: 3px;
}

.viewer-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
}

.viewer-detail-grid > div {
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe5e9;
    border-radius: 0.6rem;
    background: #f8fafb;
}

.viewer-detail-grid .viewer-detail-wide {
    grid-column: span 3;
}

.viewer-detail-grid dt {
    margin-bottom: 0.35rem;
    color: #687982;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.viewer-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #20313a;
    font-size: 1rem;
    font-weight: 600;
}

.viewer-detail-events-table {
    min-width: 48rem;
}

.viewer-more-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.viewer-more-results-list {
    display: grid;
    gap: 1.15rem;
}

.viewer-more-card {
    overflow: hidden;
    border: 1px solid #cfdee4;
    border-radius: 0.85rem;
    background: var(--white);
    box-shadow: 0 0.7rem 1.8rem rgba(31, 43, 51, 0.065);
}

.viewer-more-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #dce6ea;
    background: linear-gradient(105deg, #f5f9fa 0%, #edf5f8 100%);
}

.viewer-more-card-identity {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.15rem 0.75rem;
}

.viewer-more-card-kicker {
    grid-column: 1 / -1;
    color: #72838b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.viewer-more-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.viewer-more-card-identity > p:last-child {
    color: #61727b;
    font-size: 0.86rem;
}

.viewer-more-card-identity time {
    color: #344a55;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.viewer-more-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.viewer-more-device {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border: 1px solid #d1dce1;
    border-radius: 999px;
    color: #52646d;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.74rem;
    font-weight: 700;
}

.viewer-more-meta {
    display: grid;
    grid-template-columns: minmax(8rem, 0.65fr) minmax(13rem, 1fr) minmax(16rem, 1.35fr);
    margin: 0;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #e1e9ec;
}

.viewer-more-meta > div {
    min-width: 0;
    padding: 0.2rem 1rem;
    border-left: 1px solid #e1e9ec;
}

.viewer-more-meta > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.viewer-more-meta dt {
    margin-bottom: 0.3rem;
    color: #788990;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.viewer-more-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #293d47;
    font-size: 0.88rem;
    font-weight: 600;
}

.viewer-more-journey {
    padding: 1rem 1.15rem 1.15rem;
    background: #f8fafb;
}

.viewer-more-journey > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.viewer-more-journey h4 {
    margin: 0;
    color: #314852;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

.viewer-more-journey > header > span {
    color: #75868e;
    font-size: 0.74rem;
    font-weight: 700;
}

.viewer-more-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.viewer-more-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(10.5rem, auto) minmax(12rem, 1fr) minmax(5rem, auto);
    gap: 1rem;
    align-items: baseline;
    min-height: 2.6rem;
    padding: 0.55rem 0.8rem 0.55rem 2.25rem;
    color: #53646d;
    font-size: 0.82rem;
}

.viewer-more-timeline li::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0.95rem;
    left: 0.85rem;
    width: 0.48rem;
    height: 0.48rem;
    border: 0.15rem solid #f8fafb;
    border-radius: 50%;
    background: #8fa6b0;
}

.viewer-more-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    bottom: -1.15rem;
    left: 1.08rem;
    width: 1px;
    background: #cad8de;
}

.viewer-more-timeline li.is-selected {
    border-radius: 0.45rem;
    background: #eaf5fb;
}

.viewer-more-timeline li.is-selected::before {
    border-color: #eaf5fb;
    background: var(--rain-blue);
    box-shadow: 0 0 0 0.2rem rgba(45, 142, 207, 0.12);
}

.viewer-more-timeline time {
    color: #6d7e86;
    font-variant-numeric: tabular-nums;
}

.viewer-more-timeline strong {
    color: #20313a;
    overflow-wrap: anywhere;
}

.viewer-more-event-name {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.viewer-more-event-name .viewer-more-elapsed {
    flex: none;
    padding: 0.16rem 0.48rem;
    border: 1px solid #d0dee4;
    border-radius: 999px;
    color: #667b85;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.viewer-more-timeline li.is-selected .viewer-more-elapsed {
    border-color: #a9d2e9;
    color: #126fae;
    background: #f7fcff;
}

.viewer-more-event-context {
    justify-self: end;
    overflow-wrap: anywhere;
    color: #5d6f78;
}

.viewer-more-no-events {
    padding: 0.8rem 1rem;
    color: #687982;
    font-size: 0.86rem;
}

.viewer-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.viewer-pagination a,
.viewer-pagination span {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid #c8d8df;
    border-radius: 0.45rem;
    font-weight: 700;
}

.viewer-pagination a {
    color: #126fae;
    background: #f8fafb;
}

.viewer-pagination a:last-child,
.viewer-pagination span:last-child {
    justify-self: end;
}

.viewer-pagination span[aria-disabled="true"] {
    color: #89979d;
    background: #edf2f4;
}

.viewer-pagination strong {
    color: #53646d;
    font-size: 0.88rem;
}

.viewer-status {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.viewer-status.is-human {
    color: #075d91;
    border-color: #beddee;
    background: #dceffb;
}

.viewer-status.is-bot {
    color: #73520a;
    border-color: #eed58a;
    background: #fff1c7;
}

@media (max-width: 68rem) {
	.admin-report-hero-hub {
		min-height: 10rem;
	}

	.admin-report-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

    .viewer-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .viewer-filter-submit,
    .viewer-filter-reset {
        justify-self: start;
    }

    .viewer-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .viewer-more-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
	.admin-report-main,
    .viewer-report-main {
        padding-top: 7.5rem;
    }

	.admin-report-shell,
    .viewer-report-shell {
        width: min(100% - 2rem, 86rem);
    }

	.admin-report-nav {
		align-items: stretch;
		flex-direction: column;
		gap: 0.75rem;
		padding: 1rem;
	}

	.admin-report-brand {
		padding-inline: 0.25rem;
	}

	.admin-report-nav-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.admin-report-nav-links a {
		min-height: 2.75rem;
		justify-content: center;
		padding-inline: 0.45rem;
	}

	.admin-report-hero {
		padding: 1.6rem;
	}

	.admin-report-hero-hub {
		min-height: 0;
		grid-template-columns: 1fr;
	}

	.admin-report-hero-mark {
		display: none;
	}

	.admin-report-directory {
		padding: 1.25rem;
	}

	.admin-report-section-heading,
	.admin-report-controls-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}

	.admin-report-section-heading > p,
	.admin-report-controls-heading > p {
		text-align: left;
	}

	.admin-report-card-grid {
		grid-template-columns: 1fr;
	}

	.admin-report-card {
		min-height: 18rem;
	}

    .viewer-report-heading,
    .viewer-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .viewer-report-heading h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

	.viewer-back-link {
		align-self: flex-start;
	}

    .viewer-filters,
    .viewer-summary-grid {
        grid-template-columns: 1fr;
    }

    .viewer-more-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .viewer-more-card-badges {
        justify-content: flex-start;
    }

    .viewer-more-meta {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .viewer-more-meta > div,
    .viewer-more-meta > div:first-child {
        padding: 0.7rem 0;
        border-left: 0;
        border-bottom: 1px solid #e1e9ec;
    }

    .viewer-more-meta > div:first-child {
        padding-top: 0.2rem;
    }

    .viewer-more-meta > div:last-child {
        padding-bottom: 0.2rem;
        border-bottom: 0;
    }

    .viewer-more-timeline li {
        grid-template-columns: 1fr;
        gap: 0.18rem;
        padding-left: 2.25rem;
    }

    .viewer-more-event-context {
        justify-self: start;
    }

    .viewer-filter-submit {
        width: 100%;
    }

    .viewer-summary-grid {
        gap: 0.65rem;
    }

    .viewer-summary-card {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
    }

    .viewer-summary-card span {
        margin-top: 0;
        text-align: right;
    }

    .viewer-chart-legend {
        align-self: flex-start;
    }

    .viewer-events-rank-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .viewer-detail-grid {
        grid-template-columns: 1fr;
    }

    .viewer-detail-grid .viewer-detail-wide {
        grid-column: auto;
    }

    .viewer-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .viewer-pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}

/* Simplified cleaner lead page */
.lead-page .lead-main {
    min-height: 100vh;
    padding: 9.5rem 0 clamp(4rem, 7vw, 6rem);
    color: #1f2b33;
    background: #f4f7f8;
}

.lead-page .lead-shell {
    width: min(100% - 3rem, 75rem);
    margin-inline: auto;
}

.lead-page .lead-heading {
    padding: 1.4rem 0 1.75rem;
    border-bottom: 1px solid #cfdadf;
}

.lead-page .lead-heading h1 {
    max-width: none;
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2.75rem, 4.5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.lead-page .lead-heading > p:not(.section-kicker) {
    max-width: 46rem;
    color: #52636c;
    font-size: 1.05rem;
}

.lead-page .lead-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.lead-page .lead-job-meta li {
    display: grid;
    gap: 0.15rem;
}

.lead-page .lead-job-meta span {
    color: #5d6e76;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead-page .lead-job-meta strong {
    font-size: 0.98rem;
}

.lead-page .lead-job-gallery {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.lead-page .lead-simple-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.lead-page .lead-simple-heading h2,
.lead-page .lead-secondary-section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.lead-page .lead-simple-heading p {
    max-width: 34rem;
    color: #667780;
    font-size: 0.92rem;
    text-align: right;
}

.lead-page .lead-photo-flow {
    columns: 3 15rem;
    column-gap: 1rem;
}

.lead-page .lead-photo {
    break-inside: avoid;
    margin: 0 0 1rem;
}

.lead-page .lead-photo img {
    width: 100%;
    height: auto;
    background: transparent;
}

.lead-page .lead-photo figcaption {
    padding-top: 0.45rem;
    color: #667780;
    font-size: 0.8rem;
}

.lead-page .lead-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #cfdadf;
    border-bottom: 1px solid #cfdadf;
}

.lead-page .lead-secondary-section {
    min-width: 0;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem) 0;
}

.lead-page .lead-secondary-section + .lead-secondary-section {
    padding-right: 0;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    border-left: 1px solid #cfdadf;
}

.lead-page .lead-secondary-section h2 {
    margin: 0.25rem 0 0.75rem;
}

.lead-page .lead-secondary-section > p:not(.section-kicker) {
    max-width: 34rem;
    color: #5d6e76;
    font-size: 0.95rem;
}

.lead-page .lead-rate-summary {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.25rem;
}

.lead-page .lead-rate-summary p {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.lead-page .lead-rate-summary strong {
    color: #176f9f;
    font-size: 1.65rem;
    line-height: 1;
}

.lead-page .lead-rate-summary span {
    max-width: 12rem;
    color: #5d6e76;
    font-size: 0.78rem;
    line-height: 1.25;
}

.lead-page .lead-privacy-note {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.85rem 0 0.85rem 1rem;
    border: 0;
    border-left: 0.2rem solid var(--rain-blue);
    border-radius: 0;
    background: transparent;
}

.lead-page .lead-privacy-note strong {
    flex: 0 0 auto;
    font-size: 0.82rem;
}

.lead-page .lead-privacy-note p {
    color: #667780;
    font-size: 0.82rem;
}

@media (max-width: 48rem) {
    .lead-page .lead-main {
        padding-top: 7.5rem;
    }

    .lead-page .lead-shell {
        width: min(100% - 2rem, 75rem);
    }

    .lead-page .lead-heading {
        padding-top: 1.5rem;
    }

    .lead-page .lead-heading h1 {
        font-size: clamp(2.8rem, 12vw, 3.75rem);
    }

    .lead-page .lead-job-meta,
    .lead-page .lead-simple-heading,
    .lead-page .lead-privacy-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .lead-page .lead-job-meta {
        gap: 0.85rem;
    }

    .lead-page .lead-simple-heading {
        gap: 0.5rem;
    }

    .lead-page .lead-simple-heading p {
        text-align: left;
    }

    .lead-page .lead-photo-flow {
        columns: 1;
    }

    .lead-page .lead-secondary {
        grid-template-columns: 1fr;
    }

    .lead-page .lead-secondary-section,
    .lead-page .lead-secondary-section + .lead-secondary-section {
        padding: 2rem 0;
        border-left: 0;
    }

    .lead-page .lead-secondary-section + .lead-secondary-section {
        border-top: 1px solid #cfdadf;
    }

    .lead-page .lead-rate-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .lead-page .lead-privacy-note {
        gap: 0.25rem;
    }
}
/* Admin submission inboxes */
.admin-submissions-page .admin-report-hero,
.admin-page .viewer-report-main .admin-report-hero { padding: 22px 26px; margin-bottom: 20px; }
.admin-submissions-page .admin-report-hero h1,
.admin-page .viewer-report-main .admin-report-hero h1 { max-width: none; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.admin-submissions-page .admin-report-hero p,
.admin-page .viewer-report-main .admin-report-hero p { margin-top: 10px; }
.admin-submissions-table caption { text-align: left; padding-bottom: 10px; color: #52616c; font-size: .9rem; }
.admin-submissions-directory { background: #fff; border: 1px solid #dce0e4; border-radius: 16px; padding: clamp(12px, 2vw, 24px); min-width: 0; }
.admin-submissions-toolbar, .admin-submissions-toolbar form, .admin-submissions-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-submissions-toolbar { justify-content: space-between; margin-bottom: 20px; }
.admin-submissions-toolbar select { padding: 10px; border: 1px solid #697580; border-radius: 8px; color: #19232d; background: white; }
.admin-submissions-scroll { max-width: 100%; overflow-x: auto; }
.admin-submissions-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 1rem; line-height: 1.55; color: #24303b; }
.admin-submissions-table th, .admin-submissions-table td { text-align: left; vertical-align: top; padding: 18px 14px; overflow-wrap: anywhere; border-bottom: 1px solid #dce0e4; }
.admin-submissions-table thead { background: #edf1f4; }
.admin-submissions-table th:nth-child(1) { width: 15%; }
.admin-submissions-table th:nth-child(2) { width: 24%; }
.admin-submissions-table th:nth-child(3) { width: 42%; }
.admin-submissions-table th:nth-child(4) { width: 19%; }
.admin-submissions-table tbody tr:nth-child(even) { background: #f7f9fa; }
.admin-submissions-table time { display: block; font-size: .9rem; font-weight: 400; margin-top: 6px; }
.admin-submissions-table td p { margin: 8px 0 12px; }
.admin-submission-message { white-space: pre-wrap; }
.admin-submissions-property { margin: 0 0 12px; }
.admin-submissions-property dt { font-weight: 650; }
.admin-submissions-property dd { margin: 0 0 8px; }
.admin-submission-badge { display: inline-block; background: #e5ebef; color: #24303b; padding: 3px 9px; border-radius: 6px; font-size: .9rem; font-weight: 650; }
.admin-submissions-pagination { justify-content: center; margin-top: 22px; }
.admin-submissions-page :is(a, button, select, [tabindex]):focus-visible { outline: 3px solid #c58c00; outline-offset: 3px; }

/* Keep long customer names and email addresses inside the detail panel. */
.admin-customer-details dd { overflow-wrap: anywhere; }
/* Contact forms and the location editor follow the established Orders spacing. */
.admin-page .admin-contact-page .admin-report-shell > .admin-submissions-directory { padding: 18px; margin: 0 0 24px; border-radius: 14px; }
.admin-page .admin-contact-page .admin-location-form { padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.admin-page .admin-contact-page .admin-contact-back { margin: 24px 0 40px; }
.admin-page :is(.admin-contact-page, .admin-location-editor-main) .admin-location-form-actions { margin-top: 16px; padding-top: 16px; }
.admin-page .admin-location-editor-main .admin-report-shell > .admin-location-form { padding: 18px; margin: 24px 0; }
.admin-page .admin-location-editor-main .admin-location-form-section { padding: 0 0 24px; gap: 24px; }
.admin-page .admin-location-editor-main .admin-location-form-section + .admin-location-form-section { padding-top: 24px; }
@media (min-width: 49rem) {
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) { font-size: .9375rem; }
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) .admin-report-hero { padding: 20px; margin-bottom: 24px; }
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) .admin-report-hero h1 { font-size: 1.75rem; }
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) .admin-report-hero p { font-size: .9375rem; }
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) .form-field > label { font-size: .9rem; }
    .admin-page :is(.admin-contact-page, .admin-location-editor-main) .admin-location-form-grid { gap: 12px 18px; }
    .admin-page .admin-location-editor-main .admin-location-form-heading h2 { font-size: 1.25rem; line-height: 1.3; }
}
@media (max-width: 48rem) {
    .admin-page .admin-contact-page .admin-report-shell > .admin-submissions-directory,
    .admin-page .admin-location-editor-main .admin-report-shell > .admin-location-form { padding: 16px; margin-bottom: 20px; }
    .admin-page .admin-contact-page .admin-contact-back { margin-top: 20px; }
    .admin-customers-list .customer-note-preview { max-width: calc(100vw - 92px); }
}
.admin-customers-list .admin-submissions-table [data-customer-row] { background: #fff; }
.admin-customers-list .admin-submissions-table [data-customer-notes] { background: #fff8e3; }
.admin-customers-list .admin-submissions-table [data-customer-notes] > td { padding: .65rem 1rem .8rem; }
.customer-note-preview { max-width: 70rem; padding-left: .75rem; border-left: 2px solid #d5e2e9; font-size: .85rem; line-height: 1.4; color: #52616c; }
.customer-note-preview ul { list-style: none; padding: 0; margin: 0; }
.customer-note-preview li + li { margin-top: .5rem; }
.admin-customers-list .admin-submissions-table .customer-note-preview p { margin: 0; }
.customer-note-preview-meta { font-size: .78rem; color: #687a83; }
.admin-customers-list .admin-submissions-table .customer-note-preview time { display: inline; margin: 0; font: inherit; color: inherit; }
.customer-note-preview-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #354651; }
.customer-note-preview a { color: #155d88; text-decoration: underline; text-underline-offset: .15em; }
.customer-notes-history-link { display: inline-block; margin-top: .4rem; }
.admin-customers-list [data-customer-notes-toggle][hidden], .admin-customers-list [data-customer-notes][hidden] { display: none; }

/* Admin workspace: presentation only; public-page styles stay unchanged. */
.admin-page .admin-report-main,
.admin-page .viewer-report-main { padding-top: 1.5rem; }
.admin-page .admin-report-shell,
.admin-page .viewer-report-shell { width: min(100% - 3rem, 76rem); }
.admin-workspace-header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: .7rem 1.2rem; margin-bottom: 1.75rem; border-radius: .9rem; background: #192831; color: #fff; }
.admin-workspace-header .admin-report-nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 3.5rem; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-workspace-header .admin-report-brand { display: flex; column-gap: .49rem; align-items: center; padding: .4rem 0; min-height: 44px; }
.admin-workspace-header .admin-report-brand-mark { display: block; width: 5.90625rem; max-width: none; height: 5.90625rem; object-fit: contain; }
.admin-workspace-header .admin-report-brand-mark-frame { flex: 0 0 auto; width: 4.926rem; height: 5.90625rem; overflow: hidden; border-radius: .75rem; }
.admin-workspace-header .admin-report-brand-copy { display: grid; align-content: center; row-gap: .09375rem; line-height: 1.05; }
.admin-workspace-header .admin-report-brand-copy strong { margin-top: 0; }
.admin-workspace-header .admin-report-brand span { color: #bed0d9; font-size: .91rem; }
.admin-workspace-header .admin-report-brand strong { color: #fff; font-size: 1.420146rem; }
.admin-workspace-header .admin-report-brand[aria-current="page"] strong { color: #f2c14e; }
.admin-workspace-header .admin-report-nav-links { display: flex; flex-wrap: wrap; }
.admin-workspace-header .admin-report-nav-links a { min-height: 44px; padding: .55rem .8rem; }
.admin-workspace-header .admin-nav-count { min-width: 1.5rem; margin-left: .4rem; padding: .14rem .42rem; border-radius: 999px; background: #b42318; color: #fff; font-size: .82rem; font-weight: 800; line-height: 1.25; text-align: center; }
.admin-workspace-header .admin-nav-count--unavailable { background: #38505e; }
.admin-workspace-utilities { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-left: auto; }
.admin-workspace-utilities a { display: inline-flex; align-items: center; min-height: 44px; color: #bed0d9; font-size: .95rem; text-decoration: underline; text-underline-offset: .2em; }
.admin-skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; transform: translateY(-200%); background: #fff; color: #192831; border: 2px solid #0f679d; border-radius: .3rem; }
.admin-skip-link:focus { transform: none; }
.admin-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #0f679d; outline-offset: 3px; }
.admin-workspace-header a:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.admin-page .admin-report-hero-hub { display: block; min-height: 0; padding: 0; margin: 0 0 1.8rem; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; color: #1f2b33; }
.admin-page .admin-report-hero-hub h1 { max-width: none; margin: 0 0 .4rem; color: #1f2b33; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; }
.admin-page .admin-report-hero-hub > div > p:last-child { margin: 0; color: #52616c; font-size: 1.05rem; }
.admin-page .admin-report-hub .admin-dashboard-group { margin-bottom: 1.5rem; }
.admin-page .admin-report-hub .admin-dashboard-group:last-child { margin-bottom: 0; }
.admin-page .admin-report-hub .admin-dashboard-group h2 {
    margin: 0 0 .75rem;
    color: #24303b;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}
.admin-page .admin-report-hub .admin-dashboard-group .admin-report-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.admin-page .admin-report-hub .admin-report-card { min-height: 0; padding: 1.1rem 1.2rem; background: #fff; }
.admin-page .admin-report-hub .admin-report-card h3 { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; color: #155d88; }
.admin-page .admin-report-hub .admin-report-card p { margin: 0; font-size: 1rem; color: #52616c; }
.admin-report-hub .admin-submission-badge { margin-bottom: .65rem; }
.admin-report-hub .admin-upcoming-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; }
.admin-page .admin-report-hub .admin-upcoming-count { flex: 0 0 auto; margin-bottom: 0; padding: .1rem .4rem; border-color: #b42318; background: #b42318; color: #fff; font-size: .7rem; line-height: 1.2; }
.admin-page .admin-report-hub .admin-dashboard-group:first-of-type .admin-report-card { border-top: 3px solid #2d8ecf; }
@media (max-width: 68rem) {
    .admin-page .admin-report-hub .admin-dashboard-group .admin-report-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Shared admin lists: consistent controls and column proportions for each record type. */
.admin-page .admin-submissions-directory { border-color: #d9e2e8; box-shadow: 0 3px 12px rgba(25, 40, 49, .035); }
.admin-page .admin-submissions-toolbar { gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e4eaee; }
.admin-page .admin-submissions-toolbar > p { margin: 0; color: #52616c; font-size: .9rem; }
.admin-page .admin-submissions-toolbar form { gap: .6rem; }
.admin-page .admin-submissions-toolbar label,
.admin-page .admin-table-source-form label { font-size: .85rem; font-weight: 650; color: #435561; }
.admin-page .admin-report-main :is(.button, select, input:not([type="hidden"])) { min-height: 44px; font: inherit; font-size: .9rem; line-height: 1.4; border-radius: 8px; box-sizing: border-box; }
.admin-page .admin-report-main .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1rem; font-weight: 650; text-transform: none; letter-spacing: 0; box-shadow: none; text-decoration: none; }
.admin-page .admin-report-main .button-outline-dark { color: #244a60; border: 1px solid #b7c9d4; background: #fff; }
.admin-page .admin-report-main .button-outline-dark:hover { color: #173b50; border-color: #7799ad; background: #edf4f8; transform: none; }
.admin-page .admin-report-main .button-primary { background: #f2c14e; border: 1px solid #d9a72f; color: #192831; }
.admin-page .admin-report-main .button-primary:hover { background: #e9b63d; transform: none; }
.admin-page .admin-report-main :is(select, input:not([type="hidden"]), textarea) { padding: .65rem .8rem; border: 1px solid #b7c9d4; background-color: #fff; color: #24303b; font-family: inherit; }
.admin-page .admin-report-main select { padding-right: 2rem; max-width: 100%; }
.admin-page .admin-submissions-scroll { border: 1px solid #dfe7ec; border-radius: 10px; scrollbar-color: #9aaebc #eef3f6; }
.admin-page .admin-submissions-table { min-width: 880px; font-size: .925rem; line-height: 1.55; }
.admin-page .admin-submissions-table caption:not(.sr-only) { padding: .7rem 1rem; background: #f8fafb; font-size: .8rem; }
.admin-page .admin-submissions-table :is(th, td) { padding: 1.15rem 1rem; border-color: #e4eaee; }
.admin-page .admin-submissions-table thead { background: #edf3f7; }
.admin-page .admin-submissions-table thead th { padding-block: .8rem; font-size: .8rem; font-weight: 700; color: #435b6b; }
.admin-page .admin-submissions-table tbody tr:nth-child(even) { background: #fafcfd; }
.admin-page .admin-submissions-table tbody tr:hover { background: #f3f8fb; }
.admin-page .admin-submissions-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.admin-page .admin-submissions-table tbody th { font-weight: 600; }
.admin-page .admin-submissions-table time { color: #52616c; font-size: .85rem; }
.admin-page .admin-submissions-table td > .button { margin: 0 .25rem .5rem 0; }
.admin-page .admin-submissions-table td > form { margin: .65rem 0; }
.admin-page .admin-table-source-form { display: grid; gap: .5rem; padding-top: .85rem; border-top: 1px solid #dfe7ec; }
.admin-page .admin-table-source-form :is(select, button) { width: 100%; min-width: 0; }
.admin-page .admin-report-main .admin-table-source-form button { color: #fff; background: #245570; border-color: #245570; }
.admin-page .admin-report-main .admin-table-source-form button:hover { color: #fff; background: #193f56; border-color: #193f56; }
.admin-page .admin-table-requests th:nth-child(1) { width: 12%; }
.admin-page .admin-table-requests th:nth-child(2) { width: 22%; }
.admin-page .admin-table-requests th:nth-child(3) { width: 38%; }
.admin-page .admin-table-requests th:nth-child(4) { width: 28%; }
.admin-page .admin-table-contacts th:nth-child(1) { width: 16%; }
.admin-page .admin-table-contacts th:nth-child(2) { width: 23%; }
.admin-page .admin-table-contacts th:nth-child(3) { width: 29%; }
.admin-page .admin-table-contacts th:nth-child(4) { width: 12%; }
.admin-page .admin-table-contacts th:nth-child(5) { width: 20%; }
.admin-page .admin-table-orders th:nth-child(1) { width: 25%; }
.admin-page .admin-table-orders th:nth-child(2) { width: 25%; }
.admin-page .admin-table-orders th:nth-child(3) { width: 28%; }
.admin-page .admin-table-orders th:nth-child(4) { width: 22%; }
.admin-page .admin-submission-badge { padding: .2rem .6rem; border: 1px solid #d4e1e9; border-radius: 6px; color: #385565; background: #eef4f7; font-size: .8rem; }
.admin-page .admin-submissions-pagination { color: #52616c; font-size: .9rem; }
.admin-notes { display: grid; gap: 24px; margin: 24px 0; }
.admin-page .admin-notes > .admin-submissions-directory { padding: 18px; margin: 0; }
.admin-page .admin-notes h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .6rem; }
.admin-page .admin-notes .admin-location-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-page .admin-notes .admin-location-form-actions { margin-top: 12px; padding-top: 12px; }
.admin-page .admin-notes textarea { display: block; width: 100%; min-height: 88px; resize: vertical; border-radius: 8px; font: inherit; font-size: .925rem; box-sizing: border-box; }
.admin-notes-history-summary { margin: 0 0 .6rem; font-size: .8rem; color: #687a83; }
.admin-notes-history { list-style: none; margin: 0; padding: 0; }
.admin-notes-history li { padding: .6rem 0; border-top: 1px solid #e4eaee; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }
.admin-notes-history p { margin: 0; }
.admin-notes-meta { font-size: .8rem; color: #52616c; margin-bottom: .25rem; }
@media (max-width: 48rem) {
    .admin-notes { gap: 20px; margin-block: 20px; }
    .admin-page .admin-notes > .admin-submissions-directory { padding: 16px; }
}
.admin-archive-feedback { margin: 0; font-size: .9rem; color: #355369; }
.admin-archive-feedback:not(:empty) { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; min-width: min(15rem, calc(100vw - 2rem)); max-width: min(28rem, calc(100vw - 2rem)); min-height: 56px; box-sizing: border-box; padding: 1rem 1.25rem; border: 2px solid #c9dce5; border-radius: 10px; background: #edf6fa; box-shadow: 0 6px 24px #19283140; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.admin-archive-feedback[data-state="success"] { display: flex; align-items: center; justify-content: center; text-align: center; background: #245b36; color: #fff; border-color: #fff; }
.admin-archive-feedback[data-state="success"]::before { content: '\2713'; flex-shrink: 0; margin-right: .65rem; font-size: 1.2em; }
.admin-archive-feedback[data-state="error"] { background: #fff1ef; color: #862e25; border-color: #e7bcb5; }
[data-archive-form] button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 48rem) {
    .admin-page .admin-submissions-toolbar form { width: 100%; }
    .admin-page .admin-submissions-toolbar select { flex: 1; min-width: 0; }
    .admin-page .admin-report-main, .admin-page .viewer-report-main { padding-top: 1rem; }
    .admin-page .admin-report-shell, .admin-page .viewer-report-shell { width: calc(100% - 2rem); }
    .admin-workspace-header { gap: .35rem; padding: .65rem 1rem; margin-bottom: 1.25rem; }
    .admin-workspace-header .admin-report-nav { width: 100%; min-width: 0; gap: .5rem; justify-content: space-between; }
    .admin-workspace-header .admin-report-brand { flex: 0 0 auto; }
    .admin-workspace-header .admin-report-nav-links { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: .25rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    .admin-workspace-header .admin-report-nav-links a { flex: 0 0 auto; justify-content: center; padding-inline: .5rem; }
    .admin-workspace-utilities { width: 100%; margin: .2rem 0 0; border-top: 1px solid #52616c; }
    .admin-page .admin-report-hub .admin-dashboard-group { margin-bottom: 1.25rem; }
    .admin-page .admin-report-hub .admin-dashboard-group .admin-report-card-grid { grid-template-columns: 1fr; gap: .65rem; }
    .admin-page .admin-report-hub .admin-report-card { padding: 1rem; }
}

/* Compact secondary contact actions on the Orders agreement form. */
.admin-page .admin-order-contact-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}
.admin-page .admin-order-contact-heading > label { margin: 0; }
.admin-page .admin-order-contact-add {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 44px;
    padding: 0 0.375rem;
    border-radius: 6px;
    color: #48616b;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.admin-page .admin-order-contact-add svg { flex: none; }
.admin-page .admin-order-contact-add:hover { background: #eef4f7; text-decoration: underline; }
.admin-page .admin-order-contact-add:focus-visible { outline: 2px solid #276d91; outline-offset: 2px; }

/* Orders editor: restrained card interiors with deliberate space between sections. */
.admin-page .admin-order-page .admin-report-shell > .admin-submissions-directory {
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 14px;
}
.admin-page .admin-order-page .admin-location-form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.admin-page .admin-order-page .admin-location-form-actions { margin-top: 16px; padding-top: 16px; }
.admin-page .admin-order-page .admin-order-back { margin: 24px 0 40px; }
.admin-page .admin-order-page .admin-submissions-directory > h2 { margin: 0 0 12px; }
.admin-page .admin-order-page .admin-submissions-directory > p { margin: 0 0 12px; }
@media (min-width: 49rem) {
    .admin-page .admin-order-page { font-size: 0.9375rem; }
    .admin-page .admin-order-page .admin-report-hero { padding: 20px; margin-bottom: 24px; }
    .admin-page .admin-order-page .admin-report-hero h1 { font-size: 1.75rem; }
    .admin-page .admin-order-page .admin-report-hero p { font-size: 0.9375rem; }
    .admin-page .admin-order-page .admin-submissions-directory > h2 { font-size: 1.2rem; line-height: 1.3; }
    .admin-page .admin-order-page .form-field > label,
    .admin-page .admin-order-page .admin-order-contact-heading > label { font-size: 0.9rem; }
    .admin-page .admin-order-page .form-field p { margin: 6px 0 0; font-size: 0.85rem; line-height: 1.45; }
    .admin-page .admin-order-page .admin-location-form-grid { gap: 12px 18px; align-items: start; }
    .admin-page .admin-order-page .admin-customer-details {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 6px 16px;
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.45;
    }
    .admin-page .admin-order-page .admin-customer-details :is(dt, dd) { margin: 0; }
    .admin-page .admin-order-page form[method="get"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
    }
}
@media (max-width: 48rem) {
    .admin-page .admin-order-page .admin-report-shell > .admin-submissions-directory { padding: 16px; margin-bottom: 20px; }
    .admin-page .admin-order-page form[method="get"] > button { margin-top: 12px; }
}

/* The contextual Add customer action submits only a draft handoff. */
.admin-page button.admin-order-contact-add {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.admin-page button.admin-order-contact-add:hover { background: #eef4f7; }

/* Hidden preview rows remain in the DOM: the last visible customer meets the wrapper border. */
#admin-notes-add-heading { scroll-margin-top: 20px; }
/* These noninteractive anchor targets retain programmatic focus without a control-like frame. */
.admin-page :is(#admin-content, #admin-notes, #admin-notes-add-heading)[tabindex="-1"]:focus {
    outline: none;
}

/* Keep table names available to assistive technology without repeating the page heading. */
.admin-page .admin-submissions-table caption.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.admin-page .admin-customers-list .admin-table-contacts th:nth-child(4) { width: 32%; }
.admin-customer-status { display: inline-block; margin: 0 .5rem .5rem 0; padding: .15rem .4rem; border-radius: 4px; background: #eef3f5; color: #405563; font-size: .8rem; white-space: nowrap; }

/* Quote notes stay with their record, matching the Customers preview treatment. */
.admin-page .admin-quotes-list .admin-submissions-table [data-quote-notes] { background: #fff8e3; }
.admin-page .admin-quotes-list .admin-submissions-table [data-quote-notes] > td { padding: .65rem 1rem .8rem; }
.admin-quotes-list .admin-submissions-table .quote-note-preview p { margin: 0; }
.admin-quotes-list .admin-submissions-table .quote-note-preview time { display: inline; margin: 0; font: inherit; color: inherit; }
.quote-notes-context { max-width: 70rem; }
.quote-notes-context .admin-notes { margin: 0; }
@media (max-width: 48rem) {
    .admin-quotes-list :is(.quote-note-preview,.quote-notes-context) { max-width: calc(100vw - 100px); }
}

.admin-page .admin-quotes-list [data-quote-notes][tabindex="-1"]:focus { outline: none; }
.admin-quotes-list [data-quote-notes-toggle][hidden], .admin-quotes-list [data-quote-preview][hidden] { display: none; }
.admin-quotes-list .admin-submissions-scroll { position: relative; }
.admin-quotes-list .admin-submissions-table .admin-notes-history p { margin: 0; }
.admin-quotes-list .admin-submissions-table .admin-notes-meta time { display: inline; margin: 0; font: inherit; color: inherit; }
