/**
 * base.css — design tokens and site-wide foundations. Loaded first.
 *
 * Holds the brand variables every other file uses (--brand-teal, --font-headers,
 * --wrap-max-width, --radius-card …), body/heading defaults, the .wrap content
 * width, shared section titles and the shared Button block styles.
 * Loaded on the front end and in the block editor (see inc/setup.php).
 * Change a brand color or font here and it updates everywhere.
 */

/* Design tokens: brand colors, fonts, widths, radii, shadows */
:root {
    --brand-teal: #008285;
    --brand-black: #000000;
    --white: #FFFFFF;

    --neutral-dark: #1A2124;
    --neutral-light: #F5F5F5;
    --neutral-input: #E2E8E7;

    --font-headers: 'Raleway', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --wrap-max-width: 1200px;
    --radius-card: 10px;
    --radius-pill: 30px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.15);
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Page defaults: body text, headings, content width */
body {
    font-family: var(--font-body);
    color: var(--neutral-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    color: var(--brand-black);
}

.wrap {
    max-width: var(--wrap-max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.entry-content > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

/* Grid resets: WordPress Post Template lists used as grids lose their default list styling */
.rn27-lead-grid,
.rn27-muni-grid,
.rn27-spotlight-grid,
.rn27-latest-list,
.rn27-sponsors-grid {
    margin-bottom: 60px;
}

/* Section titles: the teal-underlined heading + subtitle used by every homepage and archive section */
.rn27-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    position: relative;
    display: inline-block;
}

.rn27-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-teal);
    margin-top: 8px;
    border-radius: 2px;
}

.rn27-section-subtitle {
    font-size: 1rem;
    color: #606F7B;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

/* Shared buttons: add class rn27-button (+ rn27-button--outline) to a Button block */
.rn27-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex;
}

.rn27-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s var(--transition-smooth);
    cursor: pointer;
    border: none !important;
}

.rn27-button--outline {
    margin-top: 30px !important;
}

.rn27-button--outline .wp-block-button__link {
    background: transparent !important;
    color: var(--brand-teal) !important;
    border: 2px solid var(--brand-teal) !important;
    padding: 10px 24px !important;
}

.rn27-button--outline:hover .wp-block-button__link {
    background: var(--brand-teal) !important;
    color: var(--white) !important;
}
