/* Reusable page introduction, shared by all public pages. */
.hv-public .hv-page-hero {
    background: linear-gradient(115deg, var(--hv-cream) 5%, var(--hv-surface) 100%);
    overflow: hidden;
    padding: clamp(2.75rem, 5vw, 5rem) 0;
}
.hv-public .hv-page-hero h1 {
    color: var(--hv-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.1;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    overflow-wrap: anywhere;
}
.hv-public .hv-page-hero-heading-rule {
    width: 74px;
    height: 4px;
    background: var(--hv-blue);
    border-radius: 99px;
}
.hv-public .hv-page-hero-intro {
    color: var(--hv-muted);
    font-size: clamp(1.08rem, 1.6vw, 1.22rem);
    line-height: 1.85;
    max-width: 670px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.hv-public .hv-page-hero-tagline {
    color: var(--hv-navy-light);
    font: italic 1.15rem Georgia, "Times New Roman", serif;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.hv-public .hv-page-hero-visual {
    height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 15px 45px rgba(21, 46, 80, .12);
}
.hv-public .hv-page-hero-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Safe fallback: no cropping if JavaScript is unavailable. */
    object-position: center center;
    background: transparent;
}
.hv-public .hv-page-hero-visual.hv-hero-image-contained {
    background: transparent;
    box-shadow: none; /* Show the hero section gradient around contained photographs. */
}
.hv-public .hv-page-hero-empty {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 1rem;
    text-align: center;
    color: var(--hv-navy-light);
    background: radial-gradient(circle at 80% 25%, #b7ccdf 0, transparent 45%), linear-gradient(135deg, var(--hv-surface), #c8d9eb);
    font: italic clamp(1.15rem, 2.5vw, 1.9rem) Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}
@media (max-width: 991.98px) {
    .hv-public .hv-page-hero { padding: 2.75rem 0; }
    .hv-public .hv-page-hero-visual { height: 300px; margin-top: 1.5rem; }
}
@media (max-width: 767.98px) {
    .hv-public .hv-page-hero { padding: 2.5rem 0; }
    .hv-public .hv-page-hero-visual { height: 220px; margin-top: 1.25rem; border-radius: 18px; }
}

/* When a page has no hero photograph, remove the reserved image column
   and reduce vertical spacing so the page content starts higher up. */
.hv-public .hv-page-hero.hv-page-hero--no-image {
    padding: clamp(1.75rem, 3vw, 3rem) 0;
}
.hv-public .hv-page-hero--no-image h1 {
    font-size: clamp(2.65rem, 4.8vw, 4.6rem);
}
.hv-public .hv-page-hero--no-image .hv-page-hero-intro {
    max-width: 850px;
}

/* Retain the existing portrait-friendly transparent/rounded treatment. */
.hv-public .hv-page-hero-visual.hv-hero-image-contained {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
}
.hv-public .hv-page-hero-visual.hv-hero-image-contained img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
}
