/* Prospectus treatment for existing inner-page content and navigation. */
body:not(.home) .section--page {
    padding-block: clamp(3rem, 5.5vw, 6rem) clamp(4rem, 8vw, 8rem);
    background: var(--egps-paper, #f6f7f3);
    color: var(--egps-ink, #252b28);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
}

body:not(.home) .page-shell {
    width: min(calc(100% - 5rem), 1360px);
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

body:not(.home) .page-card {
    min-width: 0;
    order: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body:not(.home) .page-header {
    padding: 0 0 clamp(2.5rem, 4vw, 4rem);
    border: 0;
}

body:not(.home) .page-header .eyebrow {
    margin-bottom: 1.4rem;
    color: var(--egps-wine, #722536);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body:not(.home) .page-header h1 {
    max-width: 18ch;
    margin: 0;
    color: var(--egps-wine, #722536);
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-size: clamp(3.5rem, 6.4vw, 6.25rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

body:not(.home) .page-header__intro {
    max-width: 43rem;
    margin: 1.75rem 0 0;
    color: var(--egps-ink, #252b28);
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.75;
}

body:not(.home) .page-shell > .page-card:only-child .page-header {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 0 4rem;
    align-items: end;
}

body:not(.home) .page-shell > .page-card:only-child .page-header .eyebrow {
    grid-column: 1 / -1;
}

body:not(.home) .page-shell > .page-card:only-child .page-header__intro {
    margin: 0 0 0.35rem;
}

/* A quiet section index alongside the opening title and reading column. */
body:not(.home) .page-sidebar {
    min-width: 0;
    order: 0;
    position: sticky;
    top: calc(var(--egps-header-offset, 8rem) + 1.5rem);
}

body:not(.home) .page-sidebar__inner {
    padding: 1.25rem 0 0;
    border: 0;
    border-top: 3px solid var(--egps-wine, #722536);
    border-radius: 0;
    background: transparent;
}

body:not(.home) .page-sidebar__eyebrow,
body:not(.home) .page-sidebar__cta .eyebrow {
    color: var(--egps-wine, #722536);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

body:not(.home) .page-sidebar h2 {
    margin-top: 0.75rem;
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

body:not(.home) .page-sidebar h2 a {
    color: var(--egps-ink, #252b28);
}

body:not(.home) .page-sidebar__nav {
    margin-top: 1.75rem;
}

body:not(.home) .page-sidebar__nav li + li {
    margin-top: 0;
}

body:not(.home) .page-sidebar__nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgb(37 43 40 / 14%);
    color: var(--egps-ink, #252b28);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.6;
}

body:not(.home) .page-sidebar__nav a.is-current {
    color: var(--egps-wine, #722536);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

body:not(.home) .page-sidebar__cta {
    margin-top: 2rem;
    padding-top: 0;
    border: 0;
    font-size: 0.8rem;
    line-height: 1.85;
}

body:not(.home) .page-sidebar__cta .text-link {
    margin-top: 0.15rem;
    color: var(--egps-wine, #722536);
}

/* Preserve supplied summaries while giving routes and prose greater prominence. */
body:not(.home) .page-summary-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    margin: 0 0 3rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgb(37 43 40 / 20%);
    border-bottom: 1px solid rgb(37 43 40 / 20%);
}

body:not(.home) .page-summary-strip__highlights {
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

body:not(.home) .page-summary-strip__highlights span {
    padding: 0;
    border: 0;
    color: var(--egps-ink, #252b28);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.6;
}

body:not(.home) .page-summary-strip__cta {
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--egps-wine, #722536);
    border-radius: 0;
    font-size: 0.85rem;
    line-height: 1.75;
}

body:not(.home) .page-summary-strip__title {
    color: var(--egps-wine, #722536);
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-size: 1.75rem;
    line-height: 1.2;
}

body:not(.home) .page-summary-strip__cta .text-link {
    margin-top: 0.35rem;
}

body:not(.home) .page-section-routes {
    margin: 0 0 3rem;
    padding: 0;
    border: 0;
}

body:not(.home) .page-section-routes h2 {
    margin: 0 0 1.5rem;
    color: var(--egps-ink, #252b28);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
}

body:not(.home) .page-section-routes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3rem;
}

body:not(.home) .page-section-route {
    position: relative;
    min-width: 0;
    padding: 1.65rem 2rem 1.65rem 0;
    border: 0;
    border-top: 1px solid rgb(37 43 40 / 20%);
    color: var(--egps-ink, #252b28);
}

body:not(.home) .page-section-route::after {
    content: "\2197";
    position: absolute;
    top: 1.75rem;
    right: 0;
    color: var(--egps-wine, #722536);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 1.15rem;
}

body:not(.home) .page-section-route__title {
    margin-bottom: 0.65rem;
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-size: clamp(1.7rem, 2.35vw, 2.35rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

body:not(.home) .page-section-route__copy {
    max-width: 40ch;
    color: var(--egps-ink, #252b28);
    font-size: 0.84rem;
    line-height: 1.85;
}

body:not(.home) .page-section-route:hover .page-section-route__title {
    color: var(--egps-wine, #722536);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* A generous reading measure without another enclosing card. */
body:not(.home) .page-layout .entry-content {
    padding: 0;
    color: var(--egps-ink, #252b28);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 1rem;
    line-height: 1.9;
}

body:not(.home) .entry-content :is(p, ul, ol, blockquote) {
    max-width: 68ch;
}

body:not(.home) .entry-content p {
    margin-bottom: 1.35rem;
}

body:not(.home) .entry-content :is(h2, h3, h4) {
    max-width: 32ch;
    color: var(--egps-ink, #252b28);
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

body:not(.home) .entry-content h2 {
    margin-top: 2.75rem;
    margin-bottom: 1.2rem;
    font-size: clamp(2rem, 3.25vw, 3rem);
}

body:not(.home) .entry-content h3 {
    margin-top: 2rem;
    font-size: clamp(1.6rem, 2.25vw, 2.15rem);
}

body:not(.home) .page-layout--long-form .entry-content h2 {
    padding-top: 2.5rem;
    border-top: 1px solid rgb(37 43 40 / 20%);
}

body:not(.home) .entry-content :is(h2, h3, h4):first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

body:not(.home) .entry-content a {
    color: var(--egps-wine, #722536);
}

body:not(.home) .entry-content .egps-imported-content :is(h6, .egps-letter-small) {
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0;
}

body:not(.home) .page-contents {
    max-width: none;
    margin: 0 0 3.5rem;
    padding: clamp(1.5rem, 2.75vw, 2.5rem);
    border: 0;
    border-radius: 0;
    background: var(--egps-sage, #e7ece4);
    color: var(--egps-ink, #252b28);
}

body:not(.home) .page-contents__title {
    margin-bottom: 1rem;
    color: var(--egps-wine, #722536);
    font-size: 0.8rem;
    font-weight: 800;
}

body:not(.home) .page-contents ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 2.5rem;
    padding-left: 1.3rem;
    font-size: 0.88rem;
    line-height: 1.65;
}

body:not(.home) .page-contents a {
    color: var(--egps-ink, #252b28);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
}

body:not(.home) .page-contents a:hover {
    text-decoration-color: currentColor;
}

/* Document libraries: file type, title and genuine supplied metadata. */
body:not(.home) .page-layout--document-library .entry-content .egps-imported-content :is(ul, ol):has(a.egps-document-link) {
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

body:not(.home) .entry-content .egps-imported-content li:has(> a.egps-document-link) {
    margin: 0;
    list-style: none;
}

body:not(.home) .page-layout--document-library .entry-content .egps-imported-content p:has(a.egps-document-link) {
    margin: 0;
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 4.75rem;
    max-width: none;
    padding: 1.1rem 0.75rem;
    border: 0;
    border-top: 1px solid rgb(37 43 40 / 20%);
    border-radius: 0;
    background: transparent;
    color: var(--egps-ink, #252b28);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link::before {
    content: "File";
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--egps-wine, #722536);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link[href*=".pdf"]::before {
    content: "PDF";
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link:is([href*=".doc"], [href*=".docx"])::before {
    content: "DOC";
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link:is([href*=".ppt"], [href*=".pptx"])::before {
    content: "PPT";
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link .egps-document-link__meta {
    display: block;
    margin: 0;
    color: #515b54;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link:hover {
    background: var(--egps-sage, #e7ece4);
    color: var(--egps-wine, #722536);
}

body:not(.home) .entry-content .egps-imported-content a.egps-resource-link {
    padding-block: 1.2rem;
    color: var(--egps-ink, #252b28);
    font-size: 0.92rem;
}

body:not(.home) .entry-content .egps-imported-content a.egps-resource-link::before {
    margin-right: 1rem;
    color: var(--egps-wine, #722536);
    font-family: var(--egps-bodyfont, "Manrope", sans-serif);
    font-size: 0.7rem;
}

/* Contact details remain the first practical actions, above the map. */
body:not(.home) .page-contact-directions {
    padding: 0;
    margin: 0 0 3rem;
    border: 0;
}

body:not(.home) .page-contact-cards {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.15fr) minmax(0, 1.1fr);
    gap: 2rem;
    margin: 0;
    padding-block: 1.75rem;
    border-top: 1px solid rgb(37 43 40 / 20%);
    border-bottom: 1px solid rgb(37 43 40 / 20%);
}

body:not(.home) .page-contact-card {
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--egps-ink, #252b28);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

body:not(.home) .page-contact-card--wide {
    grid-column: auto;
}

body:not(.home) .page-contact-card__label {
    margin-bottom: 0.65rem !important;
    color: var(--egps-wine, #722536);
    font-size: 0.75rem;
    font-weight: 700;
}

body:not(.home) .page-contact-card a {
    color: var(--egps-wine, #722536);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

body:not(.home) .page-contact-map {
    margin-top: 3rem;
    padding: 0;
    border: 0;
}

body:not(.home) .page-contact-map__header {
    margin-bottom: 1.5rem;
}

body:not(.home) .page-contact-map__header h2 {
    max-width: 28ch;
    color: var(--egps-ink, #252b28);
    font-family: var(--egps-displayfont, "Bodoni Moda", Georgia, serif);
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

body:not(.home) .page-contact-map__viewer {
    border: 0;
    border-radius: 0;
}

body:not(.home) .page-featured-image {
    margin-bottom: 3rem;
}

body:not(.home) .page-featured-image img {
    max-height: 620px;
    object-fit: contain;
}

body:not(.home) .page-path--welcome .entry-content .egps-imported-content {
    grid-template-columns: 137px minmax(0, 44rem);
    gap: 1rem 3rem;
}

body:not(.home) .page-path--welcome .entry-content .egps-imported-content > img:first-child {
    width: 137px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

body:not(.home) .page-path--welcome .entry-content .egps-imported-content > :not(img:first-child) {
    max-width: 68ch;
}

body:not(.home) .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    background: transparent;
}

body:not(.home) .entry-content :is(th, td) {
    padding: 0.9rem 1rem;
    border-color: rgb(37 43 40 / 20%);
    font-size: 0.85rem;
    line-height: 1.65;
}

body:not(.home) .entry-content th {
    background: var(--egps-sage, #e7ece4);
    color: var(--egps-ink, #252b28);
}

body:not(.home) .section--page :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--egps-wine, #722536);
    outline-offset: 4px;
    box-shadow: none;
}

@media (max-width: 1040px) {
    body:not(.home) .page-shell {
        width: min(calc(100% - 3rem), 1360px);
        grid-template-columns: minmax(0, 1fr);
        gap: 4rem;
    }

    body:not(.home) .page-shell > .page-card {
        order: 1;
    }

    body:not(.home) .page-sidebar {
        position: static;
        order: 2;
    }

    body:not(.home) .page-sidebar__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2rem;
    }

    body:not(.home) .page-sidebar__cta {
        max-width: 38rem;
    }

    body:not(.home) .page-shell > .page-card:only-child .page-header {
        gap: 0 2.5rem;
    }

    body:not(.home) .page-contact-cards {
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    body:not(.home) .section--page {
        padding-block: 2.75rem 4rem;
    }

    body:not(.home) .page-shell {
        width: calc(100% - 2.5rem);
        gap: 3rem;
    }

    body:not(.home) .page-shell > .page-card:only-child .page-header {
        display: block;
    }

    body:not(.home) .page-header {
        padding-bottom: 2.25rem;
    }

    body:not(.home) .page-header .eyebrow {
        margin-bottom: 1.1rem;
    }

    body:not(.home) .page-header h1 {
        max-width: 16ch;
        font-size: clamp(2.75rem, 11.5vw, 4.5rem);
        line-height: 1.1;
        letter-spacing: -0.045em;
    }

    body:not(.home) .page-header__intro,
    body:not(.home) .page-shell > .page-card:only-child .page-header__intro {
        margin: 1.4rem 0 0;
        font-size: 1rem;
        line-height: 1.8;
    }

    body:not(.home) .page-summary-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding-block: 1.5rem;
    }

    body:not(.home) .page-summary-strip__cta {
        padding-left: 1rem;
    }

    body:not(.home) .page-section-routes__grid {
        grid-template-columns: 1fr;
    }

    body:not(.home) .page-section-route {
        padding-block: 1.35rem;
    }

    body:not(.home) .page-section-route::after {
        top: 1.45rem;
    }

    body:not(.home) .page-section-route__title {
        font-size: 1.9rem;
    }

    body:not(.home) .page-contents {
        margin-bottom: 2.75rem;
        padding: 1.35rem;
    }

    body:not(.home) .page-contents ol {
        grid-template-columns: 1fr;
        row-gap: 0.55rem;
    }

    body:not(.home) .page-layout .entry-content {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    body:not(.home) .entry-content .egps-imported-content :is(h6, .egps-letter-small) {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link {
        grid-template-columns: 2.15rem minmax(0, 1fr);
        gap: 0.3rem 0.6rem;
        min-height: 4.5rem;
        padding: 1rem 0.25rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    body:not(.home) .page-layout .entry-content .egps-imported-content a.egps-document-link .egps-document-link__meta {
        grid-column: 2;
    }

    body:not(.home) .page-contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    body:not(.home) .page-contact-map__header {
        align-items: start;
        flex-direction: column;
    }

    body:not(.home) .page-path--welcome .entry-content .egps-imported-content {
        display: block;
    }

    body:not(.home) .page-path--welcome .entry-content .egps-imported-content > img:first-child {
        margin: 0 0 1.75rem;
    }
}

@media (max-width: 420px) {
    body:not(.home) .page-sidebar__nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.home) .section--page *,
    body:not(.home) .section--page *::before,
    body:not(.home) .section--page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
