/* =================================================================
   Prairie City Oregon .com — Site Styles (Sky Blue Theme)
   Cascade order: colors → typography → layout → components → a11y
   ================================================================= */

/* =================================================================
    1. BASE COLORS — Pico variable overrides & palette
    ================================================================= */

[data-theme=light],
:root:not([data-theme=dark]) {
    --pico-font-family: Rubik, sans-serif;
    --pico-primary: #1a6b8a;
    --pico-primary-background: #1a6b8a;
    --pico-primary-hover: #0e4a5c;
    --pico-color: #2c2c2c;
    --pico-muted-color: #545454;
    --pico-background-color: #ffffff;
    --radius: 8px;
}

/* =================================================================
    2. TYPOGRAPHY
    ================================================================= */

.page-intro {
    background: #1a6b8a;
    text-align: center;
    padding: 0.5em 2em;
    margin: 0.75rem auto 1rem auto;
    width: fit-content;
    border-radius: var(--radius);
}
.page-intro-main {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}
.page-intro-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 640px) {
    .page-intro { display: none; }
}

/* =================================================================
    3. ACCESSIBILITY
    ================================================================= */

.skip-nav {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--pico-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 200;
    font-weight: 500;
}
.skip-nav:focus { top: 0; }

/* =================================================================
    4. LAYOUT — page structure, top to bottom
    ================================================================= */

/* 4a. Banner */
.banner-hero {
    width: 100%;
    height: clamp(160px, 22vw, 350px);
    position: relative;
    overflow: hidden;
}
/* Three-box layout: blur | clear photo | blur */
.banner-fill {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}
.banner-fill__side {
    flex: 1;
    background-image: url('/assets/images/strawberries-banner-focal.webp');
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
}
.banner-fill__center {
    height: 100%;
    aspect-ratio: 736 / 293;
    flex-shrink: 0;
    background-image: url('/assets/images/strawberries-banner.webp');
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
}
.banner-hero--short {
    height: clamp(120px, 15vw, 220px);
}
.banner-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}
.banner-hero-overlay h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
}
.banner-hero-tagline {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
    .banner-hero-overlay h1 { font-size: 1.6rem; }
    .banner-hero-tagline { font-size: 0.9rem; }
}

/* 4b. Navbar */
.site-nav {
    --pico-nav-element-spacing-vertical: 0.35rem;
    --pico-nav-link-spacing-horizontal: 1rem;
    background: var(--pico-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    padding: 0 1rem;
    flex-wrap: wrap;
}
.site-nav a, .site-nav strong { color: #fff !important; }

.nav-toggle { display: none !important; }
.nav-toggle-label {
    display: none !important;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}
.nav-links { display: flex; }

@media (max-width: 768px) {
    .nav-toggle-label { display: block !important; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* 4c. Page main */
body { background: #0e4a5c; }
.page-main { background: #ffffff; padding: 1.5rem; }

/* =================================================================
    5. CONTENT SECTIONS
    ================================================================= */

.content-section {
    background: #f0f6fa;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin: 0 0 0.5rem 0;
    scroll-margin-top: 4rem;
}
.content-section h2,
.content-section h3 {
    font-weight: 700;
}
.content-section h2 {
    background: #3a8aa8;
    color: #fff;
    display: block;
    margin: -3rem -2rem 1.5rem -2rem;
    padding: 0.6rem 2rem;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 1.35rem;
}
.content-section h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--pico-primary);
}
.content-section__table {
    background: #e0f0f5;
    border-radius: var(--radius);
    overflow-x: auto;
}
.content-section__table th,
.content-section__table td {
    background: #e0f0f5;
    word-break: break-word;
}

/* Image-on-left section variant */
.content-section--image-left {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.content-section--image-left .content-section__image {
    flex: 0 0 260px;
    max-width: 100%;
}
.content-section--image-left .content-section__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
}
.content-section--image-left .content-section__body {
    flex: 1;
    min-width: 280px;
}
.content-section--image-left .content-section__body h2 {
    background: none;
    color: var(--pico-primary);
    margin: 0 0 1rem 0;
    padding: 0;
    border-radius: 0;
    font-size: 1.35rem;
}
@media (max-width: 640px) {
    .content-section--image-left .content-section__image {
        flex-basis: 100%;
    }
    .content-section--image-left .content-section__image img {
        height: 180px;
    }
}

/* .gov link box */
.gov-site {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #edf2e8;
    border: 1px solid #2d4a22;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1rem 0;
}
.gov-site__image {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #c8d8c0;
}
.gov-site__text {
    font-size: 0.85rem;
    line-height: 1.4;
}
.gov-site__text strong {
    color: #2d4a22;
}
.gov-site__main {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.gov-site__sub {
    font-size: 0.75rem;
    opacity: 0.75;
    line-height: 1.3;
}

/* Photo gallery */
.photo-gallery h2 {
    margin-bottom: 1rem;
}
.photo-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.photo-gallery__item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.photo-gallery__item:hover {
    border-color: var(--pico-primary);
}
.photo-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
@media (max-width: 480px) {
    .photo-gallery__item img {
        height: 140px;
    }
}
@media (max-width: 480px) {
    .gov-site { flex-direction: column; text-align: center; }
    .gov-site__image { width: 100%; height: 120px; }
}

@media (max-width: 480px) {
    .content-section { padding: 1.5rem 0.75rem; }
}

/* BEM: subsection header */
.content-section__sub {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #b0d8e8;
}
.content-section__sub h3 {
    background: none;
    display: block;
    padding: 0;
    border-radius: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--pico-primary);
}

/* BEM: styled button */
.content-section__button {
    display: inline-block;
    background: var(--pico-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.content-section__button:hover {
    background: var(--pico-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* =================================================================
    6. NEWS SECTION (no bg, admonitions only)
    ================================================================= */

.news-section {
    padding: 0;
    border-radius: var(--radius);
    margin: 0.5rem 0 1rem 0;
    scroll-margin-top: 4rem;
}
.news-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.news-section .admonition {
    font-size: 0.9rem;
    margin: 0.75rem 0;
}
.news-section__more {
    display: inline-block;
    background: var(--pico-primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}
.news-section__more:hover {
    background: var(--pico-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* =================================================================
   7. ADMONITIONS — BEM: .admonition (base) + .admonition--* (flavor)
   ================================================================= */

/* Base — shared by all flavors */
.admonition {
    margin: 1rem 0 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border: none;
    border-left: 4px solid;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.admonition p { margin: 0; padding: 0; background: none; border: none; }
.admonition p + p { margin-top: 0.5rem; }
.admonition p:first-child strong:first-child { color: inherit; }
.admonition strong { color: inherit; }

/* Info (deep sky) */
.admonition--info {
    background: #e0f0f5;
    border-left-color: var(--pico-primary);
}
.admonition--info p:first-child strong:first-child { color: var(--pico-primary); }

/* Notice (gold ochre) */
.admonition--notice {
    background: #fdf6e3;
    border-left-color: #a67509;
}
.admonition--notice p:first-child strong:first-child { color: #7a5505; }

/* Danger (red) */
.admonition--danger {
    background: #fdf0ed;
    border-left-color: #b8442a;
}
.admonition--danger strong { color: #b8442a; }

/* =================================================================
    8. FOOTER
    ================================================================= */

.site-footer {
    text-align: center;
    color: #ffffff;
    opacity: 0.8;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}
.site-footer a { color: #ffffff; }
.site-footer hr { border-color: rgba(255,255,255,0.2); }
