/* Copyright © 2026 Michael A. Bennett. All rights reserved. */
/* Page-title banner and light content area for the simple content pages
   (Privacy, Terms, About, Contact, Suggest a Campground, the guides).
   Markup: Views/Shared/_PageHeader.cshtml, followed by
   <section class="sb-section sb-section-opt-light sb-content-page">.
   Loaded after theme.css, whose tokens it uses. */

/* ---------- Banner ---------- */

.sb-page-header {
    background-color: var(--surface-dark); /* same as the navigation bar */
    color: var(--text-on-dark);
    padding: 2.5rem 0 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06); /* separates it from the nav bar of the same colour */
}

.sb-page-header__title {
    font-family: var(--bs-font-sans-serif);
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--text-on-dark);
    margin: 0;
}

/* Thin gold rule under the title */
.sb-page-header__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 1rem;
    background-color: var(--accent);
}

.sb-page-header__subtitle {
    color: var(--text-on-dark-muted);
    font-size: 1.125rem;
    font-weight: 300;
    margin: 1rem 0 0;
}

@media (max-width: 767.98px) {
    .sb-page-header {
        padding: 1.75rem 0 1.5rem;
    }

    .sb-page-header__title {
        font-size: 1.875rem;
    }

    .sb-page-header__subtitle {
        font-size: 1rem;
    }
}

/* ---------- Content area ---------- */

/* The banner already gives the page its top edge, so the section needs less padding */
.sb-page-header + .sb-content-page {
    padding-top: 3rem;
}

@media (max-width: 767.98px) {
    .sb-page-header + .sb-content-page {
        padding: 2rem 0 3rem;
    }
}

/* sb-section-opt-light is a mid-grey; the usual link gold (--accent-strong) and Bootstrap's
   muted grey are below 4.5:1 on it, so these pages use darker shades. */
.sb-content-page {
    --sb-content-link: #5c4520;        /* 5.4:1 on the grey */
    --sb-content-link-hover: #3f2f16;
}

.sb-content-page a:not(.btn) {
    color: var(--sb-content-link);
}

.sb-content-page a:not(.btn):hover {
    color: var(--sb-content-link-hover);
}

.sb-content-page .text-muted,
.sb-content-page .sb-contact-info-item p {
    color: #495057 !important;        /* Bootstrap gray-700, 4.9:1 on the grey */
}
