/**
 * Typography — content area overrides
 *
 * Scoped to #main-content and .bodyText so header/footer/nav are unaffected.
 * Loads after stylenewnav.css, works with Bootstrap 5 instead of fighting it.
 *
 * Brand font: Univers (self-hosted)
 * Brand green: #2F883B
 */

/* --- Base -------------------------------------------------- */

body {
    font-family: univers, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;        /* 16px baseline */
    line-height: 1.6;       /* unitless — scales with any font-size */
    color: #333;
}

/* --- Heading scale ----------------------------------------- */

h1 {
    font-size: 2rem;        /* 32px */
    line-height: 1.2;
    font-weight: 700;
    color: #2F883B;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem;      /* 24px */
    line-height: 1.25;
    font-weight: 700;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;     /* 20px */
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;      /* ~17.6px */
    line-height: 1.35;
    font-weight: 600;
    color: #444;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

/* --- Content body text ------------------------------------- */

#main-content p,
#main-content li,
.bodyText p,
.bodyText li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #444;
}

#main-content ul,
#main-content ol,
.bodyText ul,
.bodyText ol {
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

#main-content li + li,
.bodyText li + li {
    margin-top: 0.35rem;
}

/* --- Links in content -------------------------------------- */

#main-content a,
.bodyText a {
    color: #2F883B;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

#main-content a:hover,
.bodyText a:hover {
    color: #18671d;
}

/* --- Bold labels (projects, etc.) -------------------------- */

label.bold,
.bold {
    font-weight: 700;
    color: #333;
}

/* --- Breadcrumbs ------------------------------------------- */

.breadcrumb {
    font-size: 0.875rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: #2F883B;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #18671d;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 767px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.15rem;
    }
}
