/* Appearance preferences affect public pages only. Variables are emitted from validated presets. */
.hv-public .hv-home-hero-description,
.hv-public .hv-home-section-description,
.hv-public .hv-page-hero-intro,
.hv-public .hv-about-body,
.hv-public .hv-exp-story-text,
.hv-public .hv-exp-card-summary,
.hv-public .hv-cv-paper-section p,
.hv-public .hv-cv-highlight-list > li,
.hv-public .hv-rich-content,
.hv-public .hv-footer-description {
    line-height: var(--hv-body-leading, 1.6);
}

.hv-public .hv-home-section,
.hv-public .hv-about-section,
.hv-public .hv-education-section {
    padding-top: var(--hv-section-padding, 4.1rem);
    padding-bottom: var(--hv-section-padding, 4.1rem);
}

.hv-public .hv-home-hero,
.hv-public .hv-page-hero:not(.hv-page-hero--no-image) {
    padding-top: var(--hv-hero-padding, 3.75rem);
    padding-bottom: var(--hv-hero-padding, 3.75rem);
}

@media (min-width: 1200px) {
    .hv-public .container {
        max-width: var(--hv-content-width, 1140px);
    }
}

.hv-public .hv-home-button,
.hv-public .hv-exp-primary-button,
.hv-public .hv-contact-submit,
.hv-public .btn:not(.navbar-toggler) {
    border-radius: var(--hv-button-radius, 10px);
}

.hv-public .hv-home-hero-title,
.hv-public .hv-home-section-title,
.hv-public .hv-home-feature-body h3,
.hv-public .hv-about-section h2,
.hv-public .hv-page-hero h1,
.hv-public .hv-hello h1,
.hv-public .hv-brand-text,
.hv-public .hv-footer-brand,
.hv-public .hv-exp-at-glance h2,
.hv-public .hv-exp-empty-state h3,
.hv-public .hv-cv-paper-section h2,
.hv-public .hv-gallery-title {
    font-family: var(--hv-heading-font, Georgia, 'Times New Roman', serif);
}

/* Theme-tinted accents, without altering user-chosen rich text colours. */
.hv-public .hv-home-section-education,
.hv-public .hv-home-feature-media,
.hv-public .hv-home-section-icon,
.hv-public .hv-about-heading-icon {
    background-color: var(--hv-surface);
}

/* Keep reasonable mobile padding regardless of theme/spacing selection. */
@media (max-width: 575.98px) {
    .hv-public .hv-home-section,
    .hv-public .hv-about-section,
    .hv-public .hv-education-section {
        padding-top: min(var(--hv-section-padding, 4.1rem), 4.2rem);
        padding-bottom: min(var(--hv-section-padding, 4.1rem), 4.2rem);
    }
    .hv-public .hv-home-hero,
    .hv-public .hv-page-hero:not(.hv-page-hero--no-image) {
        padding-top: min(var(--hv-hero-padding, 3.75rem), 3.5rem);
        padding-bottom: min(var(--hv-hero-padding, 3.75rem), 3.5rem);
    }
}

/* Bring the first content block closer to each public page introduction.
   This only affects the handover beneath the shared hero, not spacing
   between subsequent content sections or anything in the admin console. */
.hv-public .hv-page-hero.hv-page-hero--no-image {
    padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.hv-public .hv-page-hero:not(.hv-page-hero--no-image) {
    padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.hv-public .hv-about-page > .hv-about-section:first-of-type,
.hv-public .hv-education-page > .hv-education-section:first-of-type {
    padding-top: calc(var(--hv-section-padding, 4.1rem) * .65);
}

/* These three pages use Bootstrap's !important py-5 utility. */
.hv-public .hv-experiences-list.py-5,
.hv-public .hv-gallery-page.py-5,
.hv-public .hv-contact-page.py-5 {
    padding-top: 2.125rem !important;
}
