/*
Theme Name: Rockingham County Republican Committee
Theme URI: https://rockingham.republican/
Author: David B. Briggman
Author URI: https://rockingham.republican/
Description: A bold, patriotic, fully responsive WordPress theme built for the Rockingham County Republican Committee. Features a four-seal badge header (Rockingham County, United States, Republican Party, and Commonwealth of Virginia), a home page with news, events, and a Get Involved call to action, a prominent Donate button, and a lightweight built-in Events post type. Friendly to desktops, tablets, and phones.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: rockingham-gop
Tags: political, patriotic, responsive, custom-menu, custom-logo, featured-images, footer-widgets, translation-ready
*/

/* =====================================================================
   1. Design tokens
   ===================================================================== */
:root {
    --rgop-navy:        #0a2a66;
    --rgop-blue:        #10387f;
    --rgop-blue-bright: #1e5bd6;
    --rgop-red:         #c8102e;
    --rgop-red-dark:    #9e0c24;
    --rgop-gold:        #e8a52c;
    --rgop-ink:         #16213a;
    --rgop-slate:       #4a5568;
    --rgop-cream:       #f6f8fc;
    --rgop-line:        #e2e8f0;
    --rgop-white:       #ffffff;

    --rgop-maxwidth: 1180px;
    --rgop-radius: 10px;
    --rgop-radius-lg: 16px;
    --rgop-shadow: 0 10px 30px rgba(10, 42, 102, 0.10);
    --rgop-shadow-sm: 0 4px 14px rgba(10, 42, 102, 0.10);

    --rgop-font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --rgop-font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =====================================================================
   2. Base / reset
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--rgop-font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--rgop-ink);
    background: var(--rgop-white);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rgop-blue-bright); text-decoration: none; }
a:hover, a:focus { color: var(--rgop-red); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rgop-font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--rgop-navy);
    margin: 0 0 0.5em;
    text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }

blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.4em;
    border-left: 5px solid var(--rgop-red);
    background: var(--rgop-cream);
    font-size: 1.1rem;
    font-style: italic;
}

code, pre {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    background: var(--rgop-cream);
    border-radius: 6px;
}
code { padding: 0.15em 0.4em; font-size: 0.9em; }
pre { padding: 1em; overflow: auto; }

hr { border: 0; border-top: 2px solid var(--rgop-line); margin: 2em 0; }

/* Accessibility helpers */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; padding: 0;
    overflow: hidden; position: absolute !important;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--rgop-red); color: #fff; padding: 12px 20px;
    font-family: var(--rgop-font-head); text-transform: uppercase;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--rgop-blue-bright); outline-offset: 2px; }

/* =====================================================================
   3. Layout helpers
   ===================================================================== */
.rgop-container {
    width: 100%;
    max-width: var(--rgop-maxwidth);
    margin-inline: auto;
    padding-inline: 20px;
}
.rgop-section { padding: 56px 0; }
.rgop-section--tight { padding: 36px 0; }
.rgop-section--cream { background: var(--rgop-cream); }
.rgop-section--navy { background: var(--rgop-navy); color: #dbe4f5; }
.rgop-section--navy h1,
.rgop-section--navy h2,
.rgop-section--navy h3 { color: #fff; }

.rgop-section-head { text-align: center; margin-bottom: 36px; }
.rgop-section-head .eyebrow {
    display: inline-block;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: var(--rgop-red);
    background: rgba(200, 16, 46, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.rgop-section-head h2 { margin: 0; }
.rgop-section-head p { margin: 10px auto 0; max-width: 640px; color: var(--rgop-slate); }

/* Decorative flag stripe used above sections and under the header */
.rgop-stripe {
    height: 6px;
    background: linear-gradient(90deg,
        var(--rgop-red) 0 33.33%,
        var(--rgop-white) 33.33% 66.66%,
        var(--rgop-navy) 66.66% 100%);
}

/* =====================================================================
   4. Buttons
   ===================================================================== */
.rgop-btn {
    display: inline-block;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 15px 28px;
    border-radius: var(--rgop-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration: none;
}
.rgop-btn:hover, .rgop-btn:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--rgop-shadow-sm);
}
.rgop-btn--red    { background: var(--rgop-red); color: #fff; }
.rgop-btn--red:hover, .rgop-btn--red:focus { background: var(--rgop-red-dark); color: #fff; }
.rgop-btn--blue   { background: var(--rgop-blue-bright); color: #fff; }
.rgop-btn--blue:hover, .rgop-btn--blue:focus { background: var(--rgop-blue); color: #fff; }
.rgop-btn--ghost  { background: transparent; color: var(--rgop-navy); border-color: var(--rgop-navy); }
.rgop-btn--ghost:hover, .rgop-btn--ghost:focus { background: var(--rgop-navy); color: #fff; }
.rgop-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.rgop-btn--ghost-light:hover, .rgop-btn--ghost-light:focus { background: #fff; color: var(--rgop-navy); }
.rgop-btn--lg { font-size: 1.15rem; padding: 18px 34px; }

/* =====================================================================
   5. Site header
   ===================================================================== */
.rgop-topbar {
    background: var(--rgop-navy);
    color: #cdd9f0;
    font-size: 0.9rem;
}
.rgop-topbar .rgop-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding-block: 8px;
}
.rgop-topbar a { color: #fff; }
.rgop-topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rgop-topbar__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin-left: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    transition: background .15s ease;
}
.rgop-topbar__social a:hover { background: var(--rgop-red); }
.rgop-topbar__social svg { width: 15px; height: 15px; fill: #fff; }

/* Badge / seal row */
.rgop-badges {
    background: #fff;
    border-bottom: 1px solid var(--rgop-line);
}
.rgop-badges .rgop-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 5vw, 60px);
    padding-block: 18px;
    text-align: center;
}
.rgop-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 130px;
}
.rgop-badge img {
    width: clamp(58px, 9vw, 92px);
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(10,42,102,.18));
    transition: transform .18s ease;
}
.rgop-badge:hover img { transform: translateY(-3px) scale(1.04); }
.rgop-badge span {
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: var(--rgop-slate);
    line-height: 1.15;
}

/* Identity + primary navigation */
.rgop-masthead {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--rgop-navy);
    background: linear-gradient(180deg, var(--rgop-navy), var(--rgop-blue));
    color: #fff;
    box-shadow: 0 2px 12px rgba(10,42,102,.25);
}
.rgop-masthead .rgop-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 12px;
}
.rgop-brand { display: flex; flex-direction: row; align-items: center; gap: 14px; text-decoration: none; }
.rgop-brand__text { display: flex; flex-direction: column; }
.rgop-brand__title {
    font-family: var(--rgop-font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    color: #fff;
    line-height: 1.05;
}
.rgop-brand:hover .rgop-brand__title { color: #fff; }
.rgop-brand__tagline {
    font-size: 0.82rem;
    color: #bcd0f5;
    letter-spacing: 0.03em;
    margin-top: 2px;
}
/* White circular disc so a seal/logo reads crisply on navy */
.rgop-logo-disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    line-height: 0;
    flex: 0 0 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.rgop-brand__logo { width: 64px; height: 64px; }
.rgop-brand__img,
.rgop-brand .custom-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; display: block; }

/* Navigation */
.rgop-primary-nav { display: flex; align-items: center; gap: 8px; }
.rgop-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0; padding: 0;
}
.rgop-menu li { position: relative; }
.rgop-menu a {
    display: block;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.98rem;
    font-weight: 600;
    color: #eaf1ff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.rgop-menu a:hover, .rgop-menu a:focus,
.rgop-menu .current-menu-item > a,
.rgop-menu .current_page_item > a {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.rgop-menu .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--rgop-red); }

/* Sub menus */
.rgop-menu ul.sub-menu {
    position: absolute;
    left: 0; top: 100%;
    min-width: 220px;
    background: #fff;
    list-style: none;
    margin: 0; padding: 8px;
    border-radius: var(--rgop-radius);
    box-shadow: var(--rgop-shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all .15s ease;
    z-index: 950;
}
.rgop-menu li:hover > ul.sub-menu,
.rgop-menu li:focus-within > ul.sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.rgop-menu ul.sub-menu a { color: var(--rgop-ink); }
.rgop-menu ul.sub-menu a:hover,
.rgop-menu ul.sub-menu a:focus { background: var(--rgop-cream); color: var(--rgop-red); }

.rgop-nav-donate { margin-left: 6px; }

/* Mobile toggle */
.rgop-nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--rgop-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 10px 16px;
    cursor: pointer;
}
.rgop-nav-toggle .bars {
    display: inline-block; width: 20px; height: 14px; position: relative;
}
.rgop-nav-toggle .bars::before,
.rgop-nav-toggle .bars::after,
.rgop-nav-toggle .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px;
}
.rgop-nav-toggle .bars::before { top: 0; }
.rgop-nav-toggle .bars span { top: 6px; }
.rgop-nav-toggle .bars::after { top: 12px; }

/* =====================================================================
   6. Hero
   ===================================================================== */
.rgop-hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(10,42,102,.94) 0%, rgba(16,56,127,.86) 45%, rgba(200,16,46,.82) 100%),
        var(--rgop-navy);
    color: #fff;
    overflow: hidden;
}
.rgop-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}
.rgop-hero .rgop-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding-block: clamp(48px, 8vw, 88px);
    z-index: 1;
}
.rgop-hero__copy { max-width: 780px; }
.rgop-hero__eyebrow {
    display: inline-block;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #ffd9df;
    margin-bottom: 14px;
}
.rgop-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 0.4em; }
.rgop-hero p.lead { font-size: 1.2rem; color: #eaf1ff; max-width: 46ch; margin: 0 auto 1.6em; }
.rgop-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.rgop-hero__art {
    order: -1;              /* logo on top, above the headline, on all devices */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.rgop-hero__art img {
    width: clamp(200px, 46vw, 320px);
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.35));
}
.rgop-hero__art .rgop-logo-disc {
    width: clamp(190px, 44vw, 300px);
    padding: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.rgop-hero__art .rgop-logo-disc img { width: 100%; filter: none; border-radius: 50%; }

/* =====================================================================
   7. Cards & grids
   ===================================================================== */
.rgop-grid { display: grid; gap: 26px; }
.rgop-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rgop-grid--2 { grid-template-columns: repeat(2, 1fr); }

.rgop-card {
    background: #fff;
    border: 1px solid var(--rgop-line);
    border-radius: var(--rgop-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--rgop-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rgop-card:hover { transform: translateY(-4px); box-shadow: var(--rgop-shadow); }
.rgop-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--rgop-cream); }
.rgop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rgop-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.rgop-card__meta {
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--rgop-red);
    margin-bottom: 8px;
}
.rgop-card__title { font-size: 1.35rem; margin: 0 0 10px; }
.rgop-card__title a { color: var(--rgop-navy); text-decoration: none; }
.rgop-card__title a:hover { color: var(--rgop-red); }
.rgop-card__excerpt { color: var(--rgop-slate); margin-bottom: 18px; }
.rgop-card__more {
    margin-top: auto;
    font-family: var(--rgop-font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rgop-blue-bright);
}
.rgop-card__more:hover { color: var(--rgop-red); }

/* Event cards */
.rgop-event {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--rgop-line);
    border-radius: var(--rgop-radius);
    padding: 18px 20px;
    box-shadow: var(--rgop-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rgop-event:hover { transform: translateY(-3px); box-shadow: var(--rgop-shadow); }
.rgop-event__date {
    background: linear-gradient(160deg, var(--rgop-red), var(--rgop-red-dark));
    color: #fff;
    border-radius: var(--rgop-radius);
    text-align: center;
    padding: 12px 6px;
    line-height: 1;
}
.rgop-event__date .m {
    font-family: var(--rgop-font-head);
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.85rem; display: block; margin-bottom: 4px;
}
.rgop-event__date .d { font-family: var(--rgop-font-head); font-size: 1.9rem; font-weight: 700; display: block; }
.rgop-event__body h3 { font-size: 1.25rem; margin: 0 0 6px; }
.rgop-event__body h3 a { color: var(--rgop-navy); }
.rgop-event__where {
    font-size: 0.92rem; color: var(--rgop-slate);
    display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px;
}
.rgop-event__where strong { color: var(--rgop-ink); }

/* Get Involved cards */
.rgop-involve {
    text-align: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--rgop-radius-lg);
    padding: 30px 26px;
}
.rgop-involve__icon {
    width: 62px; height: 62px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--rgop-red);
}
.rgop-involve__icon svg { width: 30px; height: 30px; fill: #fff; }
.rgop-involve h3 { color: #fff; margin-bottom: 8px; }
.rgop-involve p { color: #cdd9f0; margin-bottom: 18px; }

/* CTA band */
.rgop-cta {
    background: linear-gradient(120deg, var(--rgop-red), var(--rgop-red-dark));
    color: #fff;
    text-align: center;
}
.rgop-cta h2 { color: #fff; }
.rgop-cta p { max-width: 620px; margin: 0 auto 26px; color: #ffe4e8; font-size: 1.15rem; }
.rgop-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =====================================================================
   8. Content / posts (single, page, archive)
   ===================================================================== */
.rgop-main { padding: 48px 0; }
.rgop-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 44px; }
.rgop-layout--full { grid-template-columns: minmax(0,1fr); }

.rgop-article { background: #fff; }
.rgop-article + .rgop-article { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rgop-line); }
.rgop-entry-header { margin-bottom: 22px; }
.rgop-entry-meta {
    font-family: var(--rgop-font-head);
    text-transform: uppercase; letter-spacing: 0.07em;
    font-size: 0.82rem; color: var(--rgop-red);
    display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px;
}
.rgop-entry-meta a { color: var(--rgop-slate); }
.rgop-entry-title { margin: 0 0 6px; }
.rgop-entry-title a { color: var(--rgop-navy); text-decoration: none; }
.rgop-entry-title a:hover { color: var(--rgop-red); }
.rgop-featured { margin: 0 0 26px; border-radius: var(--rgop-radius-lg); overflow: hidden; box-shadow: var(--rgop-shadow-sm); }

.rgop-entry-content > * { max-width: 100%; }
.rgop-entry-content h2 { margin-top: 1.4em; }
.rgop-entry-content h3 { margin-top: 1.2em; }
.rgop-entry-content ul, .rgop-entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.rgop-entry-content li { margin-bottom: 0.4em; }
.rgop-entry-content img { border-radius: var(--rgop-radius); margin: 1em 0; }
.rgop-entry-content a { text-decoration: underline; }
.wp-caption, figure { margin: 1.4em 0; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--rgop-slate); text-align: center; margin-top: 6px; }
.alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.sticky .rgop-entry-title::before {
    content: "★ Featured"; display: inline-block;
    font-family: var(--rgop-font-head); font-size: 0.7rem; letter-spacing: 0.1em;
    background: var(--rgop-gold); color: var(--rgop-ink);
    padding: 3px 8px; border-radius: 6px; margin-bottom: 8px;
    text-transform: uppercase; vertical-align: middle;
}

.rgop-tags { margin-top: 28px; font-size: 0.9rem; }
.rgop-tags a {
    display: inline-block; background: var(--rgop-cream); color: var(--rgop-slate);
    padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0; text-decoration: none;
}
.rgop-tags a:hover { background: var(--rgop-red); color: #fff; }

.rgop-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rgop-line); }
.rgop-postnav a { font-family: var(--rgop-font-head); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

.rgop-page-hero {
    background: linear-gradient(120deg, var(--rgop-navy), var(--rgop-blue));
    color: #fff;
    padding: 46px 0;
    text-align: center;
}
.rgop-page-hero h1 { color: #fff; margin: 0; }
.rgop-breadcrumb { font-size: 0.85rem; color: #bcd0f5; margin-bottom: 8px; }
.rgop-breadcrumb a { color: #fff; }

/* =====================================================================
   9. Sidebar & widgets
   ===================================================================== */
.rgop-sidebar .widget {
    background: #fff;
    border: 1px solid var(--rgop-line);
    border-radius: var(--rgop-radius-lg);
    padding: 22px 24px;
    margin-bottom: 26px;
    box-shadow: var(--rgop-shadow-sm);
}
.widget-title, .rgop-sidebar .widget h2 {
    font-size: 1.15rem; margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 3px solid var(--rgop-red); display: inline-block;
}
.rgop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.rgop-sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--rgop-line); }
.rgop-sidebar li:last-child { border-bottom: 0; }
.rgop-sidebar a { color: var(--rgop-ink); text-decoration: none; }
.rgop-sidebar a:hover { color: var(--rgop-red); }
.rgop-widget-cta { text-align: center; background: linear-gradient(160deg, var(--rgop-navy), var(--rgop-blue)) !important; color: #fff; border: 0 !important; }
.rgop-widget-cta h2, .rgop-widget-cta .widget-title { color: #fff; border-color: rgba(255,255,255,.4); }
.rgop-widget-cta p { color: #cdd9f0; }

.rgop-search { display: flex; }
.rgop-search input[type="search"] {
    flex: 1; border: 1px solid var(--rgop-line); border-right: 0;
    border-radius: 8px 0 0 8px; padding: 10px 14px; font-size: 1rem; min-width: 0;
}
.rgop-search button {
    border: 0; background: var(--rgop-red); color: #fff;
    border-radius: 0 8px 8px 0; padding: 0 18px; font-family: var(--rgop-font-head);
    text-transform: uppercase; cursor: pointer;
}

/* =====================================================================
   10. Forms & comments
   ===================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="number"], input[type="password"], textarea, select {
    width: 100%; font: inherit; color: var(--rgop-ink);
    border: 1px solid var(--rgop-line); border-radius: 8px;
    padding: 12px 14px; background: #fff; max-width: 100%;
}
textarea { min-height: 140px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { margin-bottom: 22px; }
.comment-body {
    background: var(--rgop-cream); border-radius: var(--rgop-radius);
    padding: 18px 20px; border: 1px solid var(--rgop-line);
}
.comment-author { font-family: var(--rgop-font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.comment-metadata { font-size: 0.8rem; color: var(--rgop-slate); }
.children { list-style: none; margin: 18px 0 0 26px; padding: 0; }

/* Pagination */
.rgop-pagination { margin-top: 40px; text-align: center; }
.rgop-pagination .page-numbers {
    display: inline-block; min-width: 44px; padding: 10px 14px; margin: 0 4px 8px;
    border: 1px solid var(--rgop-line); border-radius: 8px; color: var(--rgop-navy);
    font-family: var(--rgop-font-head); text-decoration: none;
}
.rgop-pagination .page-numbers.current { background: var(--rgop-red); color: #fff; border-color: var(--rgop-red); }
.rgop-pagination a.page-numbers:hover { background: var(--rgop-navy); color: #fff; border-color: var(--rgop-navy); }

/* =====================================================================
   11. Footer
   ===================================================================== */
.rgop-footer { background: var(--rgop-navy); color: #c3d2ee; }
.rgop-footer a { color: #fff; }
.rgop-footer a:hover { color: var(--rgop-gold); }
.rgop-footer__top { padding: 52px 0 36px; }
.rgop-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.rgop-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.rgop-footer__brand img { width: 66px; flex: 0 0 auto; }
.rgop-footer__brand .rgop-logo-disc { width: 78px; height: 78px; padding: 4px; }
.rgop-footer__brand .rgop-logo-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.rgop-footer__brand h3 { color: #fff; margin: 0 0 8px; font-size: 1.25rem; }
.rgop-footer__brand p { font-size: 0.95rem; color: #b7c7e6; margin: 0; }
.rgop-footer .widget-title,
.rgop-footer__col h4 {
    color: #fff; font-size: 1.05rem; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 3px solid var(--rgop-red); display: inline-block;
}
.rgop-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rgop-footer__col li { padding: 6px 0; }
.rgop-footer__social { display: flex; gap: 10px; margin-top: 10px; }
.rgop-footer__social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); transition: background .15s ease;
}
.rgop-footer__social a:hover { background: var(--rgop-red); }
.rgop-footer__social svg { width: 17px; height: 17px; fill: #fff; }

.rgop-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: 20px 0;
    font-size: 0.88rem;
}
.rgop-footer__bottom .rgop-container {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
}
.rgop-copyright { color: #aebfdf; }
.rgop-copyright strong { color: #fff; font-weight: 600; }
.rgop-footer__legal a { margin-left: 18px; }

/* =====================================================================
   12. Responsive
   ===================================================================== */
@media (max-width: 980px) {
    .rgop-layout { grid-template-columns: 1fr; }
    .rgop-footer__grid { grid-template-columns: 1fr 1fr; }
    .rgop-grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    /* Collapse primary nav into mobile menu */
    .rgop-nav-toggle { display: inline-flex; }
    .rgop-primary-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(320px, 86vw);
        background: var(--rgop-navy);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 84px 22px 30px;
        box-shadow: -12px 0 30px rgba(0,0,0,.35);
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    .rgop-primary-nav.is-open { transform: translateX(0); }
    .rgop-menu { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    .rgop-menu a { padding: 13px 12px; font-size: 1.05rem; border-radius: 8px; }
    .rgop-menu ul.sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: rgba(255,255,255,.06); padding: 0 0 0 10px; margin: 2px 0 4px;
    }
    .rgop-menu ul.sub-menu a { color: #dbe4f5; }
    .rgop-menu ul.sub-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
    .rgop-nav-donate { margin: 14px 0 0; }
    .rgop-nav-donate .rgop-btn { display: block; text-align: center; }
    .rgop-nav-close {
        display: block; position: absolute; top: 18px; right: 18px;
        background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
    }
    body.rgop-nav-open { overflow: hidden; }
    .rgop-nav-scrim {
        position: fixed; inset: 0; background: rgba(6,18,44,.55);
        opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 999;
    }
    .rgop-nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 861px) { .rgop-nav-close { display: none; } }

@media (max-width: 680px) {
    body { font-size: 17px; }
    .rgop-section { padding: 40px 0; }
    .rgop-grid--3, .rgop-grid--2 { grid-template-columns: 1fr; }
    .rgop-footer__grid { grid-template-columns: 1fr; }
    .rgop-badge span { font-size: 0.66rem; }
    .rgop-topbar .rgop-container { justify-content: center; }
    .rgop-footer__bottom .rgop-container { justify-content: center; text-align: center; }
    .rgop-footer__legal a:first-child { margin-left: 0; }
    .rgop-postnav { flex-direction: column; }
}

@media (max-width: 420px) {
    .rgop-badges .rgop-container { gap: 14px; }
    .rgop-badge { max-width: 74px; }
    .rgop-badge span { display: none; } /* keep the four seals, drop labels on very small screens */
    .rgop-event { grid-template-columns: 70px 1fr; gap: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
    .rgop-topbar, .rgop-masthead, .rgop-badges, .rgop-footer, .rgop-nav-toggle, .rgop-hero__actions { display: none !important; }
    body { color: #000; }
}
