/*
Theme Name: VRCM
Theme URI: https://vrc.virginia.gov/
Author: Virginia Racing Commission
Author URI: https://vrc.virginia.gov/
Description: The official WordPress theme for the Virginia Racing Commission. Provides the agency hero layout, quick links, news and events feeds, and editable meeting, venue, personnel, and document listings.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vrcm
Tags: accessibility-ready, custom-logo, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* --- BRAND VARIABLES & GLOBAL STYLES --- */
:root {
    --vrc-blue: #002D9C;
    --vrc-green: #3CB371;
    --dark-gray: #333333;
    --light-gray: #F4F4F4;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark-gray); background-color: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; color: var(--vrc-blue); line-height: 1.2; }
h2 { font-size: 3rem; margin-bottom: 3rem; text-align: center; }
a { color: var(--vrc-green); text-decoration: none; transition: color 0.3s ease; border-radius: 2px; }
a:hover { color: var(--vrc-blue); text-decoration: none; }
:focus-visible { outline: 3px solid var(--vrc-blue); outline-offset: 2px; transition: outline 0.2s ease; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 6rem 0; }
img { max-width: 100%; height: auto; }

/* --- ACCESSIBILITY HELPERS --- */
.visually-hidden,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background-color: var(--vrc-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --- SITE ALERT BANNER --- */
.site-alert { background-color: var(--vrc-green); color: var(--white); }
.site-alert .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    padding: 0.85rem 3rem;
}
.site-alert p { margin: 0; text-align: center; font-weight: 600; line-height: 1.4; }
.site-alert a { color: var(--white); text-decoration: underline; }
.site-alert__dismiss {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 0.25rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* --- HEADER & FOOTER --- */
.main-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.5rem 0; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--dark-gray); }
.logo img { height: 40px; width: auto; margin-right: 12px; border-radius: 4px; }
.accessibility-tools { display: flex; align-items: center; }
.accessibility-tools button { background: none; border: none; border-radius: 50%; width: 36px; height: 36px; margin-left: 8px; cursor: pointer; color: #555; transition: background-color 0.3s, color 0.3s; }
.accessibility-tools button:hover { background-color: var(--light-gray); color: var(--vrc-blue); }
#mobile-menu-button { align-items: center; justify-content: center; }
#mobile-menu-button svg { width: 24px; height: 24px; }

.main-footer { background-color: var(--white); color: var(--dark-gray); padding: 4rem 0; border-top: 1px solid #e0e0e0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-grid h4 { color: var(--dark-gray); font-family: var(--font-heading); margin-bottom: 1rem; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.75rem; }
.footer-grid a { color: #555; text-decoration: none; }
.footer-grid a:hover { color: var(--vrc-blue); }
.footer-address { color: #555; }
.footer-bottom { text-align: center; font-size: 0.9rem; color: #777; }

/* --- NAVIGATION --- */
#desktop-menu { display: flex; }
#desktop-menu ul { display: flex; list-style: none; }
#mobile-menu { display: none; padding-top: 0.5rem; }
#mobile-menu ul { list-style: none; }

#mobile-menu a {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    color: #1d1d1f;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link {
    font-family: var(--font-ui);
    color: #1d1d1f;
    position: relative;
    margin: 0.5rem;
    display: inline-block;
    /* Keep each item on one line; the breakpoint below handles the narrow
       range where six items plus the logo would otherwise wrap. */
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--vrc-blue);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.current-menu-item > .nav-link::after,
.current-menu-ancestor > .nav-link::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 8rem 0;
    background-color: #f9f9f9;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-gray);
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 .highlight {
    color: var(--vrc-blue);
}

/* --- HOME PAGE TEMPLATE --- */
/* Blocks that draw their own full-width band (Quick Links, HTML sections) are
   left alone; anything else the editor adds gets the usual reading column. */
.home-content > *:not(section):not(.alignfull) {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
}

.home-content > *:first-child {
    margin-top: 0;
}

/* --- QUICK LINKS --- */
#quick-links,
.quick-links-section {
    padding: 5rem 0;
}

.quick-links-section--shaded {
    background-color: #f9f9f9;
}

.quick-links-section > .container > h2:not(.visually-hidden) {
    margin-bottom: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(var(--quick-links-columns, 4), 1fr);
    gap: 2rem;
    text-align: center;
    list-style: none;
}

/* The inner span stands in for the anchor on a tile with no link set yet. */
.link-item a,
.link-item .link-item__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-gray);
    transition: transform 0.3s ease;
}

.link-item a:hover {
    transform: translateY(-5px);
    color: var(--vrc-blue);
    text-decoration: none;
}

.link-item a:hover span {
    text-decoration: none;
}

.link-item i {
    font-size: 2.5rem;
    color: var(--vrc-blue);
}

/* --- NEWS & EVENTS SECTION --- */
#news-events {
    background-color: var(--light-gray);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.content-column h3 {
    font-size: 2rem;
    border-bottom: 2px solid var(--vrc-green);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
    list-style-type: none;
}

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

.list-item .meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.list-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.list-item p {
    margin: 0;
}

/* --- HIGH CONTRAST MODE --- */
body.high-contrast {
    background-color: #000;
    color: #fff;
}
body.high-contrast section,
body.high-contrast .main-header {
    background-color: #000 !important;
    border-color: yellow !important;
}
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4 {
    color: yellow;
}
body.high-contrast a, body.high-contrast .btn {
    color: cyan;
}
body.high-contrast .logo, body.high-contrast .accessibility-tools button {
    color: #fff;
}

/* --- PAGE HERO --- */
.page-hero { text-align: center; padding: 6rem 0; background-color: #f9f9f9; }
.page-hero h1 { font-size: 4rem; color: var(--dark-gray); }

/* --- MISSION / VISION --- */
.mission-vision {
    text-align: center;
    background-color: #f9f9f9;
}
.mission-vision h2 {
    color: var(--dark-gray);
}
.mission-vision p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- HISTORY TIMELINE --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--vrc-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--vrc-blue);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-left {
    left: 0;
}
.timeline-right {
    left: 50%;
}
.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--light-gray);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-gray);
}
.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--light-gray);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-gray) transparent transparent;
}
.timeline-right::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-gray);
    position: relative;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.timeline-content:hover {
    transform: scale(1.03);
}
.timeline-content h3 {
    font-size: 1.5rem;
}

/* --- GOVERNANCE / TEAM --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.team-member img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1rem;
    border: 4px solid var(--light-gray);
}
.team-member h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.team-member p {
    color: #555;
    font-style: italic;
}
.section-subtitle {
    text-align: center;
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* A single portrait sits centred on its own row, used for the Chair,
   Vice-Chair and Executive Secretary. */
.team-grid--single {
    max-width: 300px;
    margin: 0 auto;
}

/* --- EXECUTIVE STAFF LIST --- */
.staff-list {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}
.staff-list ul {
    list-style: none;
}
.staff-list li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}
.staff-list .title {
    color: #555;
    font-style: italic;
    display: block;
    font-size: 0.9rem;
}

/* --- PUBLIC DUTY CALLOUT --- */
.public-duty {
    background-color: var(--vrc-blue);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
}
.public-duty h2, .public-duty h3 {
    color: var(--white);
}
.public-duty p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
}
.public-duty__inner { padding: 4rem 2rem; }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--vrc-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
}
.btn-primary:hover { background-color: #001f6b; color: var(--white); text-decoration: none; }
.btn-secondary { background-color: var(--vrc-green); }
.btn-secondary:hover { background-color: #2e8b57; }
.btn-details { background-color: var(--vrc-blue); color: var(--white); padding: 0.5rem 1rem; border-radius: 6px; text-align: center; }
.btn-details:hover { background-color: #001f6b; text-decoration: none; color: white; }

/* --- APPLY / RENEW (PERMITS) --- */
.apply-renew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.action-box { text-align: center; padding: 3rem; border: 1px solid #ddd; border-radius: 12px; }
.action-box h3 { font-size: 2rem; margin-bottom: 1rem; }
.action-box p { margin-bottom: 2rem; max-width: 40ch; margin-left: auto; margin-right: auto; }
.action-box .btn-primary { margin: 2%; }

/* --- LICENSE CATEGORIES --- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.category-card { background-color: #f9f9f9; padding: 2rem; border-radius: 12px; text-align: center; }
.category-card i { font-size: 3rem; color: var(--vrc-green); margin-bottom: 1rem; }
.category-card h4 { font-size: 1.5rem; }

/* --- GUIDES & REQUIREMENTS --- */
.guides-list { max-width: 800px; margin: 0 auto; }
.guide-item { display: flex; align-items: center; gap: 2rem; padding: 2rem; border-bottom: 1px solid #e0e0e0; }
.guide-item:last-child { border-bottom: none; }
.guide-item i { font-size: 2.5rem; color: var(--vrc-blue); flex-shrink: 0; }
.guide-item h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- API / LARGE OPERATOR CALLOUT --- */
.api-info { background-color: var(--dark-gray); color: var(--white); padding: 4rem; border-radius: 12px; text-align: center; }
.api-info h2, .api-info h3 { color: var(--white); }
.api-info p { max-width: 60ch; margin: 0 auto 2rem; color: #ccc; }
.api-info a { color: var(--vrc-green); font-weight: 700; }

/* --- CONTACT DIRECTORY --- */
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.directory-division h3 { font-size: 1.75rem; border-bottom: 2px solid var(--vrc-green); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.contact-person { margin-bottom: 1rem; }
.contact-person strong { font-size: 1.1rem; }
.contact-person .title { color: #555; font-style: italic; display: block; }
.contact-person a { font-weight: 700; }

/* --- FORMS & LOCATION GRID --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.form-column h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { font-weight: 700; display: block; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: var(--font-body); }
.form-group textarea { resize: vertical; min-height: 260px; }

/* --- LOCATION INFO --- */
.location-info { background-color: #f9f9f9; padding: 2rem; border-radius: 12px; }
.location-info h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.location-info p { margin-bottom: 1rem; }
.map-placeholder { background-color: #e0e0e0; height: 200px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: italic; color: #777; }

/* --- ANONYMOUS FEEDBACK --- */
.anonymous-form { background-color: var(--dark-gray); color: var(--white); padding: 4rem; border-radius: 12px; }
.anonymous-form h2, .anonymous-form h3 { color: var(--white); }
.anonymous-form p { color: #ccc; max-width: 70ch; margin: 0 auto 2rem; text-align: center; }

/* --- MEETING CALENDAR --- */
.meeting-list { max-width: 900px; margin: 0 auto; }
.meeting-item { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid #e0e0e0; }
.meeting-item:last-child { border-bottom: none; }
.meeting-date { text-align: center; font-family: var(--font-heading); }
.meeting-date .month { font-size: 1rem; text-transform: uppercase; font-weight: 700; }
.meeting-date .day { font-size: 3rem; font-weight: 800; color: var(--vrc-blue); line-height: 1; }
.meeting-details h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.meeting-meta { list-style: none; text-align: left; }
.meeting-meta li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.meeting-meta i { color: var(--vrc-green); }

/* --- MEETING MINUTES & RECORDINGS --- */
.archive-year { font-size: 20pt; text-align: center; margin-bottom: 2rem; }
.archive-controls { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.archive-controls select, .archive-controls input { padding: 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
.archive-list { max-width: 450px; margin: 0 auto; }
.archive-item { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 1rem; }
.archive-item i { font-size: 1rem; color: var(--vrc-blue); }
.archive-info strong { font-size: 1rem; }
.archive-links { margin-left: auto; display: flex; gap: 0.25rem; }
.archive-links a { font-weight: 700; }

/* --- BUDGET & FINANCIALS --- */
.financials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.financial-card { background-color: #f9f9f9; padding: 2rem; border-radius: 12px; text-align: center; }
.financial-card i { font-size: 3rem; color: var(--vrc-green); margin-bottom: 1rem; }
.financial-card h4 { font-size: 1.5rem; margin-bottom: 1rem; }

/* --- RACE CALENDAR --- */
.calendar-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
}
.filter-group label { font-weight: 700; display: block; margin-bottom: 0.5rem; }
.filter-group select, .filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
}
.calendar-results .race-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 120px;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}
.calendar-results .race-item:last-child { border-bottom: none; }
.calendar-results .race-header { font-weight: 800; color: var(--dark-gray); padding-bottom: 1rem; }
.race-item strong { font-family: var(--font-heading); color: var(--vrc-blue); }

/* --- RESULTS & STATISTICS --- */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.live-feed h3, .historical-data h3 { font-size: 2rem; border-bottom: 2px solid var(--vrc-green); padding-bottom: 1rem; margin-bottom: 2rem; }
.result-item { padding: 1rem 0; border-bottom: 1px solid #ddd; }
.result-item:last-child { border-bottom: none; }
.result-item .track-race { font-weight: 800; margin-bottom: 0.5rem; }
.result-item .finishers { display: flex; flex-wrap: wrap; gap: 1rem; }
.historical-data p { margin-bottom: 2rem; }

/* --- TRACKS & VENUES --- */
.tracks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.track-card { background-color: #f9f9f9; border-radius: 12px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.track-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.track-card img { width: 100%; height: 200px; object-fit: cover; }
.track-content { padding: 1.5rem; }
.track-content h4 { font-size: 1.5rem; }
.track-info { list-style: none; margin-top: 1rem; }
.track-info li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.track-info i { color: var(--vrc-green); }

/* --- FEATURE STORIES --- */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.story-card { position: relative; border-radius: 12px; overflow: hidden; color: white; }
.story-card img { width: 100%; height: 400px; object-fit: cover; display: block; }
.story-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.story-content .category { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; color: var(--vrc-green); }
.story-content h4 { font-size: 1.5rem; color: white; }
.story-card a::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

/* --- STATUTES & REGULATIONS --- */
.search-bar { display: flex; max-width: 800px; margin: 0 auto 3rem; }
.search-bar input { flex-grow: 1; padding: 1rem; border: 1px solid #ddd; border-radius: 8px 0 0 8px; font-size: 1rem; }
.search-bar button { padding: 1rem 1.5rem; border: none; background-color: var(--vrc-blue); color: white; font-size: 1rem; border-radius: 0 8px 8px 0; cursor: pointer; }
.document-list { max-width: 800px; margin: 0 auto; }
.document-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; border-bottom: 1px solid #e0e0e0; }
.document-item:last-child { border-bottom: none; }
.document-item i { font-size: 2rem; color: var(--vrc-green); }
.document-info strong { display: block; font-size: 1.25rem; }
.document-info span { color: #555; font-size: 0.9rem; }
.document-item a { margin-left: auto; font-weight: 700; }

/* --- COMPLIANCE CHECKLISTS --- */
.checklists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.checklist-card { background-color: #f9f9f9; padding: 2rem; border-radius: 12px; text-align: center; }
.checklist-card i { font-size: 3rem; color: var(--vrc-blue); margin-bottom: 1rem; }
.checklist-card h4 { font-size: 1.5rem; margin-bottom: 1rem; }

/* --- REPORTING REQUIREMENTS / LINK LISTS --- */
.reporting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.reporting-info p { margin-bottom: 2rem; }
.reporting-info h2 { text-align: left; }
.form-links ul { list-style: none; }
.form-links li { margin-bottom: 1rem; }
.form-links a { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.form-links i { color: var(--vrc-green); }

/* --- AUDITS & REPORTS --- */
.report-list { max-width: 800px; margin: 0 auto; }
.report-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 1rem; }
.report-item i { font-size: 2.5rem; color: var(--vrc-blue); }
.report-info strong { display: block; font-size: 1.25rem; }
.report-info span { color: #555; font-size: 0.9rem; }
.report-item a { margin-left: auto; font-weight: 700; }

/* --- EMBEDS (TABLEAU, IFRAMES) --- */
.embed-wrap { width: 100%; max-width: 1500px; margin: 0 auto; }
.embed-wrap iframe { width: 100%; border: 0; }
/* Opt a banded section out of the 1100px reading width, for wide dashboards. */
.section--wide .container { max-width: 1500px; }

/* --- EDITOR-ONLY HINTS --- */
.vrcm-editor-hint {
    padding: 1rem 1.25rem;
    border: 1px dashed var(--vrc-green);
    border-radius: 8px;
    color: #555;
    background-color: #fbfbfb;
}

/* --- MODAL DIALOG --- */
.vrc-modal { padding: 20px; border: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); max-width: 500px; margin: auto; }
.vrc-modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.vrc-modal h3 { margin-top: 0; color: var(--vrc-blue); }
.vrc-modal p { margin-bottom: 10px; }
.vrc-modal a { word-break: break-all; }
.vrc-modal button { padding: 8px 16px; background-color: var(--vrc-blue); color: white; border: none; border-radius: 4px; cursor: pointer; }

/* --- EDITOR CONTENT (WORDPRESS) --- */
.entry-content { max-width: 900px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: 2.25rem; text-align: left; margin-bottom: 1rem; }
.entry-content h3 { font-size: 1.75rem; }
.entry-content h4 { font-size: 1.35rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.5rem; }
.entry-content ul, .entry-content ol { margin-left: 2rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote { border-left: 4px solid var(--vrc-green); padding-left: 1.5rem; font-style: italic; color: #555; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.75rem; border: 1px solid #e0e0e0; text-align: left; }
.entry-content th { background-color: var(--light-gray); font-family: var(--font-heading); }
.entry-content figure { margin: 0; }
.entry-content img { border-radius: 8px; }
.entry-content--wide { max-width: none; }

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: 0.9rem; color: #777; text-align: center; margin-top: 0.5rem; }
.sticky .entry-title::after { content: ' \2605'; color: var(--vrc-green); }

/* --- POST LISTS & ARCHIVES --- */
.archive-header { margin-bottom: 3rem; text-align: center; }
.archive-description { color: #555; }
.post-list { display: grid; gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.post-summary { padding-bottom: 2.5rem; border-bottom: 1px solid #e0e0e0; }
.post-summary:last-child { border-bottom: none; padding-bottom: 0; }
.post-summary h2 { font-size: 2rem; text-align: left; margin-bottom: 0.5rem; }
.post-summary .meta { font-size: 0.9rem; color: #777; font-weight: 700; margin-bottom: 1rem; }
.post-thumbnail { margin-bottom: 1.5rem; }
.post-thumbnail img { border-radius: 12px; width: 100%; height: auto; }
.entry-footer { margin-top: 2rem; font-size: 0.9rem; color: #777; }
.entry-footer a { font-weight: 700; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: var(--vrc-blue);
    font-family: var(--font-heading);
    font-weight: 700;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background-color: var(--vrc-blue); color: var(--white); border-color: var(--vrc-blue); }

/* --- SEARCH FORM --- */
.search-form { display: flex; max-width: 600px; margin: 0 auto 3rem; }
.search-form .search-field { flex-grow: 1; padding: 1rem; border: 1px solid #ddd; border-radius: 8px 0 0 8px; font-size: 1rem; font-family: var(--font-body); }
.search-form .search-submit { padding: 1rem 1.5rem; border: none; background-color: var(--vrc-blue); color: var(--white); font-size: 1rem; border-radius: 0 8px 8px 0; cursor: pointer; font-family: var(--font-heading); font-weight: 700; }

/* --- WIDGETS --- */
.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: 1.25rem; margin-bottom: 1rem; }
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 0.75rem; }

/* --- COMMENTS --- */
.comments-area { max-width: 900px; margin: 4rem auto 0; }
.comments-title, .comment-reply-title { font-size: 2rem; text-align: left; margin-bottom: 2rem; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 1.5rem 0; border-bottom: 1px solid #e0e0e0; }
.comment-list .children { list-style: none; margin-left: 2rem; }
.comment-meta { font-size: 0.9rem; color: #777; margin-bottom: 0.75rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: var(--font-body); }
.comment-form p { margin-bottom: 1.5rem; }
.comment-form label { font-weight: 700; display: block; margin-bottom: 0.5rem; }

/* --- NO RESULTS --- */
.no-results { max-width: 700px; margin: 0 auto; text-align: center; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h2 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
    h2, .page-hero h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .entry-content h2, .post-summary h2 { font-size: 1.75rem; }

    #mobile-menu-button { display: flex; }
    #desktop-menu { display: none; }
    #mobile-menu.is-open { display: block; }

    .reporting-grid { grid-template-columns: 1fr; }
    .meeting-item { grid-template-columns: 1fr; text-align: center; }
    .meeting-date { margin-bottom: 1rem; }
    .meeting-meta { justify-content: center; }
    .calendar-results .race-item { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
    .calendar-results .race-header { display: none; }
    .results-grid { grid-template-columns: 1fr; }

    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::before { left: 60px; border: medium solid var(--light-gray); border-width: 10px 10px 10px 0; border-color: transparent var(--light-gray) transparent transparent; }
    .timeline-left::after, .timeline-right::after { left: 21px; }
    .timeline-right { left: 0%; }

    .apply-renew-grid { grid-template-columns: 1fr; gap: 2rem; }
    .links-grid { grid-template-columns: 1fr 1fr; gap: 3rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1101px) {
    #mobile-menu-button { display: none; }
    #desktop-menu { display: flex; }
}

/* Just above the mobile breakpoint the full menu and the logo compete for the
   same row. Tighten the navigation rather than let the labels wrap. */
@media (min-width: 1101px) and (max-width: 1280px) {
    .logo { font-size: 1.1rem; }
    .nav-link { font-size: 0.9rem; margin: 0.5rem 0.35rem; }
}

@media (max-width: 600px) {
    section { padding: 4rem 0; }
    .hero { padding: 5rem 0; }
    .page-hero { padding: 4rem 0; }
    .action-box { padding: 2rem; }
    .api-info, .anonymous-form { padding: 2rem; }
    .archive-item { flex-wrap: wrap; }
    .archive-links { margin-left: 0; width: 100%; }
    .team-member img { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .link-item a:hover, .track-card:hover, .timeline-content:hover { transform: none; }
}

@media print {
    .main-header, .main-footer, .site-alert, .skip-link, #mobile-menu { display: none; }
    body { color: #000; }
    section { padding: 1rem 0; }
}
