/* ==============================================
   WebBase — shared CSS for all WebBase clients
   ============================================== */

/* Minimal baseline reset - deliberately foundational (always loaded via WebBasePage.OnPreRender's
   unconditional AddStyleSheetLink), not tied to any per-page StyleSheet record's lifecycle. Keep
   anything here that a site should never lose just because an admin removed unrelated content. */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* Page sections (PageSection.RenderHtml) */
.pagesection {
    display: grid;
    gap: 1rem;
    padding: 1rem 0;
    align-items: center;
}

.pagesection-img-left {
    grid-template-columns: auto 1fr;
}
.pagesection-img-right {
    grid-template-columns: 1fr auto;
    padding-left: 1rem;
}

.pagesection img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 650px) {
    .pagesection-img-left,
    .pagesection-img-right {
        grid-template-columns: 1fr;
    }
    .pagesection img {
        width: 100%;
    }
    .pagesection {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* TextOnlyRenderer */
.pagesection-text-only {
    padding: 1rem 0;
}

/* DownloadListRenderer */
.pagesection-download-list {
    padding: 1rem 0;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.download-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list a::before {
    content: '↓ ';
}

/* HeroBannerRenderer */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.hero-banner-image {
    position: absolute;
    inset: 0;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(0,0,0,0.55), transparent);
    color: white;
}

/* DefaultSiteHeaderRenderer / DefaultSiteFooterRenderer - deliberately plain, a project defining its
   own SiteHeaderRenderBase/SiteFooterRenderBase (see Website Base\CLAUDE.md) supplies its own CSS
   classes and never touches these. */
.webbase-default-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #222;
    color: white;
}

.webbase-default-logo {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.webbase-default-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.webbase-default-nav a {
    color: white;
    text-decoration: none;
}

.webbase-default-nav a:hover {
    text-decoration: underline;
}

.webbase-default-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}
