/* =============================================================================
   Redlands Council of PTAs — main.css  v2.0
   Design tokens: cream bg, navy text, gold CTAs, rust accent
   ============================================================================= */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --bg:           #f7f2eb;
    --bg-alt:       #fff8f2;
    --surface:      #ffffff;
    --text:         #1c2a3a;
    --muted:        #5e6c7a;
    --primary:      #c84425;
    --primary-dk:   #a43318;
    --gold:         #e8a020;
    --gold-dk:      #c98b12;
    --gold-lt:      #fdf0d5;
    --navy:         #111827;
    --track:        #f2d5c8;
    --border:       #e8ddd4;
    --shadow:       0 4px 20px rgba(28,42,58,.10);
    --shadow-lg:    0 10px 36px rgba(28,42,58,.14);
    --radius:       12px;
    --radius-sm:    7px;
    /* DEPRECATED aliases. Every rule now uses the canonical token above; these
       definitions are kept for one deploy cycle in case any page content written
       outside this file still references a short name. Safe to delete after a
       pass through the live site — nothing in the theme, the plugins, or any
       rendered page references them. */
    --r:            12px;
    --r-sm:         7px;
    --rs:           7px;
    --bdr:          #e8ddd4;
    /* Form fields only. --border is 1.34:1 on white — fine for a decorative card
       edge, too faint for the boundary of a control someone has to type into
       (WCAG 1.4.11 wants 3:1). Deliberately not applied to cards or dividers. */
    --field-border: #9c8e7f;
    --surf:         #ffffff;
    --sh:           0 4px 20px rgba(28,42,58,.10);
    --shlg:         0 10px 36px rgba(28,42,58,.14);
    --red-light:    #f0e8e5;
    --maxw:         1120px;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-serif:   'Playfair Display', Georgia, serif;
    --transition:   180ms ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
    width: min(100% - 2.5rem, var(--maxw));
    margin-inline: auto;
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -40px; left: 1rem;
    background: var(--primary); color: #fff;
    padding: .5rem 1rem; border-radius: 0 0 6px 6px;
    transition: top .2s;
    z-index: 9999;
}
.skip-link:focus { top: 0; }

/* <main> carries tabindex="-1" so the skip link reliably moves focus.
   Suppress the ring it would otherwise draw around the whole page. */
.site-main:focus { outline: none; }

/* ── 404 page ───────────────────────────────────────────────────────────── */
.rcpta-404-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.rcpta-404-img {
    width: 100%;
    max-width: 260px;
    height: auto;
}
.rcpta-404-text { max-width: 640px; }
.rcpta-404-lead {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}
.rcpta-404-links {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: .95rem;
    line-height: 2;
    color: var(--muted);
}
.rcpta-404-links a { font-weight: 700; color: var(--primary); text-decoration: none; }
.rcpta-404-links a:hover,
.rcpta-404-links a:focus-visible { text-decoration: underline; }
.rcpta-404-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

@media (max-width: 780px) {
    .rcpta-404-img { max-width: 200px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═════════════════════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    overflow: visible;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: .5rem 0;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand img,
.brand .custom-logo,
.brand .custom-logo-link img,
.brand a img,
.site-header .custom-logo,
.site-header .custom-logo-link img {
    max-height: 52px !important;
    width: auto !important;
    height: auto !important;
    max-width: 52px !important;
    display: block;
}
.brand-icon { font-size: 2rem; line-height: 1; }
.brand-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

/* Nav right wrapper */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Primary nav */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .15rem;
    flex-wrap: wrap;
}
.nav-menu a {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    padding: .4em .7em;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
/* --primary-dk, not --primary, wherever the brand red is TEXT on one of the warm
   tints: --primary manages only 4.32:1 on --gold-lt and 4.38:1 on --bg, both under
   AA. It still passes on white (4.87:1) and is unchanged as a fill colour. */
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background: var(--gold-lt);
    color: var(--primary-dk);   /* 6.07:1 on --gold-lt */
}

/* Dropdown */
.nav-menu .menu-item-has-children { position: relative; }
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 200px;
    list-style: none;
    z-index: 9999;
    padding-top: 4px;
}
/* Invisible bridge fills the gap so the mouse doesn't leave the hover area */
.nav-menu .menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    display: none;
}
.nav-menu .menu-item-has-children:hover::after { display: block; }
.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children.open > .sub-menu { display: block; }
.nav-menu .sub-menu a {
    border-radius: 0;
    padding: .55em 1em;
    font-size: .85rem;
    display: block;
}
.nav-menu .sub-menu a:hover { background: var(--bg); color: var(--primary); }

/* Social icons in nav */
.nav-socials { display: flex; gap: .5rem; }
.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--text);
    border: 1.5px solid var(--border);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-social-link:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    background-size: cover;
    background-position: center 72%;
    background-repeat: no-repeat;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,14,20,.18) 0%,
        rgba(10,14,20,.52) 60%,
        rgba(10,14,20,.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 4rem 2rem;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.45);
    letter-spacing: -.02em;
}

.hero-sub {
    font-size: clamp(.88rem, 1.6vw, 1rem);
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 600px;
    margin-inline: auto;
    font-weight: 400;
}

/* Hero buttons */
.btn-gold {
    background: var(--gold);
    color: var(--text);          /* 6.58:1 — white on --gold was 2.22:1 */
    border-color: var(--gold);
    border-radius: 100px;
    padding: .75em 2em;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.btn-gold:hover, .btn-gold:focus-visible {
    background: var(--gold-dk);
    border-color: var(--gold-dk);
    transform: translateY(-1px);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 100px;
    padding: .75em 2em;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.9);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════════════════════════ */
.cta-row {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .7em 1.6em;
    border-radius: 100px;
    font-weight: 700;
    font-size: .92rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    text-decoration: none;
    letter-spacing: .01em;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200,68,37,.3);
}
.btn-outline {
    background: transparent;
    color: var(--primary-dk);   /* 6.15:1 on --bg; --primary was 4.38:1 */
    border-color: var(--primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═════════════════════════════════════════════════════════════════════════ */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg); }
.section { background: var(--bg); }

.section-heading {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: .5rem;
    position: relative;
    padding-bottom: .6rem;
}
.section-heading::after {
    content: '';
    display: block;
    width: 44px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: .4rem;
}

.section-intro {
    color: var(--muted);
    font-size: .97rem;
    margin-bottom: 1.5rem;
    max-width: 64ch;
}

.section-cta { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE STRIP
   ═════════════════════════════════════════════════════════════════════════ */
.feature-strip {
    background: var(--bg);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-grid {
    display: grid;
    /* minmax(0, 1fr), not 1fr: a bare 1fr floors each track at the item's
       min-content width, and these cards hold a full sentence. The tracks
       refused to shrink and pushed the whole page into horizontal scroll
       (1448px of content in a 1300px window). */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition), border-left-color var(--transition);
    box-shadow: var(--shadow);
}
.feature-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-left-color: var(--gold);
}
.feature-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--red-light, #f0e8e5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: background var(--transition);
}
.feature-item:hover .feature-icon-wrap {
    background: var(--primary);
    color: #fff;
}
.feature-text {
    flex: 1;
    min-width: 0;
}
.feature-item h3 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .1rem;
    line-height: 1.3;
}
/* These descriptions are the only thing this strip adds over the main nav, which
   already links all three destinations — so let them wrap rather than truncating
   them to an ellipsis. */
.feature-item p {
    font-size: .77rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}
.feature-arrow {
    font-size: 1rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}
.feature-item:hover .feature-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRESS BARS (Leaderboard)
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-progress-track {
    background: var(--track);
    border-radius: 100px;
    height: 12px;
    overflow: hidden;
}
.rcpta-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), #e66f34);
    transition: width .6s ease;
}
.bar-complete { background: linear-gradient(90deg,#27ae60,#2ecc71); }
.bar-high     { background: linear-gradient(90deg,#c84425,#e66f34); }
.bar-mid      { background: linear-gradient(90deg,#c84425,#e66f34); }

/* Leaderboard table */
.rcpta-leaderboard { overflow-x: auto; }
.rcpta-lb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: .92rem;
}
.rcpta-lb-table thead tr { background: var(--navy); color: #fff; }
.rcpta-lb-table th, .rcpta-lb-table td { padding: .8rem 1rem; text-align: left; }
.rcpta-lb-table td.lb-current, .rcpta-lb-table td.lb-goal,
.rcpta-lb-table td.lb-pct, .rcpta-lb-table th.lb-current,
.rcpta-lb-table th.lb-goal, .rcpta-lb-table th.lb-pct { text-align: center; }
.rcpta-lb-table td.lb-bar { min-width: 140px; }
.rcpta-lb-table tbody tr:nth-child(even) { background: var(--bg); }
.rcpta-lb-table tbody tr:hover { background: #fdf0d5; }
.lb-top-1 { border-left: 4px solid #f1c40f; }
.lb-top-2 { border-left: 4px solid #bdc3c7; }
.lb-top-3 { border-left: 4px solid #cd7f32; }
.rcpta-lb-table a { color: var(--primary-dk); font-weight: 600; }   /* rows alternate onto --bg */
.rcpta-view-all { text-align: center; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRESIDENT BLOCK
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-president-block {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.rcpta-president-photo-wrap { flex-shrink: 0; }
.rcpta-president-photo {
    width: 150px; height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--track);
    display: block;
}
.rcpta-president-text { flex: 1; min-width: 200px; }
.rcpta-president-text p { line-height: 1.75; margin-bottom: .75rem; color: var(--text); }
.rcpta-president-message-body p { font-weight: 400; font-size: .97rem; line-height: 1.8; color: var(--text); }
.rcpta-president-message-body p:last-child { margin-bottom: 0; }
.rcpta-president-sig {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-top: 1rem;
}
.rcpta-president-sig-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}
.rcpta-president-sig-title {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT CARDS
   ═════════════════════════════════════════════════════════════════════════ */
/* ── Announcements Archive (page-announcements-archive.php) ──────────────
   The filter controls reuse .rcpta-search-input / .rcpta-level-select from the
   units grid so the two search bars on the site look and behave alike. */
.rcpta-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}
.rcpta-filter-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;      /* let a field shrink rather than push the row wide */
}
.rcpta-filter-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
}
.rcpta-archive-filters .rcpta-search-input { min-width: 260px; }
.rcpta-archive-count {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 1.25rem;
}
.rcpta-archived-badge {
    display: inline-block;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: .1em .45em;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: .4rem;
}
.rcpta-archive-empty {
    color: var(--muted);
    font-size: .95rem;
    padding: 1.5rem 0;
}
.rcpta-archive-reset {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--primary-dk);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.rcpta-archive-pointer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: .95rem;
    color: var(--muted);
}
.rcpta-archive-pointer a { color: var(--primary-dk); font-weight: 700; }
.rcpta-archive-pointer a:hover,
.rcpta-archive-pointer a:focus-visible { text-decoration: underline; }

@media (max-width: 640px) {
    .rcpta-archive-filters { flex-direction: column; align-items: stretch; }
    .rcpta-archive-filters .rcpta-search-input,
    .rcpta-archive-filters .rcpta-level-select { min-width: 0; width: 100%; }
}

.rcpta-announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.rcpta-announcement-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.rcpta-announcement-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.announcement-card-thumb {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 200px;
}
.announcement-card-thumb img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}
.rcpta-announcement-card:hover .announcement-card-thumb img { transform: scale(1.04); }
.announcement-card-body {
    padding: 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.announcement-card-title { font-size: .98rem; font-weight: 700; margin: 0; line-height: 1.35; }
.announcement-card-title a { color: var(--text); text-decoration: none; }
.announcement-card-title a:hover { color: var(--primary); }
.announcement-card-excerpt { font-size: .86rem; line-height: 1.6; color: var(--muted); flex: 1; margin: 0; }
.announcement-card-excerpt p { margin: 0 0 .5rem; }
.announcement-card-excerpt p:last-child { margin-bottom: 0; }
.announcement-card-excerpt strong { font-weight: 700; color: var(--text); }
.announcement-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid var(--border);
}
.announcement-card-date { font-size: .75rem; color: var(--muted); }
.announcement-card-link { font-size: .8rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.announcement-card-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   UNITS GRID
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-units-wrap { max-width: 100%; }
.rcpta-units-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rcpta-search-input, .rcpta-level-select {
    padding: .5rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9rem;
    background: var(--surface);
    color: var(--text);
    min-width: 180px;
    transition: border-color var(--transition);
}
.rcpta-search-input:focus, .rcpta-level-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,68,37,.12);
}
.rcpta-units-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.rcpta-unit-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.rcpta-unit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; text-decoration: none; }
.unit-card-body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.unit-card-name { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.unit-level-badge { font-size: .7rem; font-weight: 700; background: #fdf0d5; color: #7d5f16;   /* 5.28:1 — --gold-dk was 2.59:1 */ padding: .15em .55em; border-radius: 100px; }
.unit-card-meta { list-style: none; font-size: .84rem; color: var(--muted); line-height: 1.7; }
.unit-card-meta .meta-label { font-weight: 600; color: var(--text); }
.unit-card-meta a { color: var(--primary); }
.unit-card-progress { display: flex; flex-direction: column; gap: .3rem; }
.unit-progress-label { font-size: .77rem; font-weight: 600; color: var(--muted); }
.unit-card-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.unit-link {
    font-size: .75rem; font-weight: 700; color: var(--primary);
    border: 1px solid #f2d5c8; padding: .2em .6em; border-radius: 4px;
    background: #fff9f7;
    transition: background var(--transition), color var(--transition);
}
.unit-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.unit-card-awards { display: flex; flex-wrap: wrap; gap: .4rem; }
.unit-award-badge { font-size: .73rem; font-weight: 700; background: var(--gold-lt); color: var(--navy); padding: .2em .55em; border-radius: 4px; border: 1px solid #f0c96a; }

/* ═══════════════════════════════════════════════════════════════════════════
   BOARD GRID
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-board-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.rcpta-board-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.rcpta-board-card:hover { box-shadow: var(--shadow-lg); }

/* ═══════════════════════════════════════════════════════════════════════════
   AWARDS
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-awards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.rcpta-award-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    display: flex; flex-direction: column; gap: .75rem;
}
.award-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.award-card-deadline { font-size: .8rem; color: var(--primary); font-weight: 700; }
.award-card-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESOURCES — tabs
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-tab-list { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); padding-bottom: .5rem; }
.rcpta-tab-btn {
    padding: .5em 1.15em; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 700;
    font-family: var(--font-body); cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.rcpta-tab-btn.is-active, .rcpta-tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rcpta-resources-list { display: flex; flex-direction: column; gap: .6rem; max-width: 760px; }
.rcpta-resource-item {
    display: flex; align-items: center; gap: .75rem;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: .75rem 1rem;
    color: var(--text); transition: background var(--transition), border-color var(--transition);
}
.rcpta-resource-item:hover { background: #fff9f5; border-color: var(--primary); }
.resource-icon { font-size: 1.2rem; flex-shrink: 0; }
.resource-name { font-weight: 600; font-size: .92rem; }
.resource-type-tag { font-size: .72rem; color: var(--muted); margin-left: auto; white-space: nowrap; font-weight: 600; background: var(--bg); padding: .15em .55em; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═════════════════════════════════════════════════════════════════════════ */
/* The single email address on the contact page, as a line of copy rather than a
   card. See page-contact.php for why the card grid was dropped there. */
.rcpta-inline-contact {
    font-size: 1rem;
    color: var(--muted);
    max-width: 64ch;
    margin: 0 0 2rem;
}
.rcpta-inline-contact a { color: var(--primary-dk); font-weight: 700; }   /* on --bg */
.rcpta-inline-contact a:hover,
.rcpta-inline-contact a:focus-visible { text-decoration: underline; }

/* Still used if [rcpta_contact_cards] is placed in page content. auto-fit, not
   auto-fill, so a lone card fills the row instead of sitting in a 240px track
   with the empty tracks held open beside it. */
.rcpta-contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 2rem; }
.rcpta-contact-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.contact-card-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.contact-card-email { font-size: .92rem; color: var(--primary); font-weight: 700; }
.contact-card-email:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   SOCIAL LINKS (shortcode)
   ═════════════════════════════════════════════════════════════════════════ */
.rcpta-socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.rcpta-social-link {
    display: inline-flex; align-items: center; gap: .45em;
    font-size: .9rem; font-weight: 700; color: var(--text);
    padding: .4em .9em; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--surface);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.rcpta-social-ig:hover { background: #e1306c; color: #fff; border-color: #e1306c; }
.rcpta-social-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }

/* Calendar embed */
.rcpta-calendar-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.rcpta-empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* Accordion */
.rcpta-accordion { display: flex; flex-direction: column; gap: .5rem; max-width: 860px; }
.rcpta-accordion-item { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.rcpta-accordion-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem; background: none; border: none; cursor: pointer;
    font-size: .95rem; font-weight: 700; font-family: var(--font-body); color: var(--text);
    text-align: left; transition: background var(--transition);
}
.rcpta-accordion-trigger:hover, .rcpta-accordion-trigger[aria-expanded="true"] { background: #fff9f5; color: var(--primary); }
.rcpta-accordion-icon { font-size: 1.2rem; font-weight: 300; flex-shrink: 0; margin-left: 1rem; }
.rcpta-accordion-panel { padding: .75rem 1.2rem 1.2rem; border-top: 1px solid var(--border); }
.rcpta-committee-members { list-style: none; font-size: .9rem; line-height: 1.9; }
.committee-member-role { color: var(--muted); }

/* Year tabs */
.rcpta-year-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.rcpta-year-tab {
    padding: .4em .9em; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); font-size: .88rem; font-weight: 700;
    font-family: var(--font-body); cursor: pointer; color: var(--muted);
    transition: all var(--transition);
}
.rcpta-year-tab.is-active, .rcpta-year-tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* What we do (about page) */
.rcpta-what-we-do-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rcpta-feature-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.rcpta-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon { font-size: 2.2rem; margin-bottom: .6rem; display: block; }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.feature-desc { font-size: .88rem; line-height: 1.55; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero {
    background: var(--bg);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}
/* The hero already ends with 2.5rem of padding below its rule; the section's
   own 3.5rem on top of that left a ~6rem gap on every interior page. */
.page-hero + .section { padding-top: 1.25rem; }
.page-hero h1 {
    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: .5rem;
}
.page-hero h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: .6rem auto 0;
}
.page-hero p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 640px;
    margin: .4rem auto 0;
}
.page-hero p::after {
    content: '';
    display: block;
    width: min(480px, 70%);
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}
/* When both h1 and p exist, only show the line after p */
.page-hero:has(p) h1::after { display: none; }
.page-hero .page-hero-eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .5rem; display: block; }

/* Mission block */
.mission-block { background: var(--bg); padding: 2.5rem 1.5rem 0; text-align: center; }
.mission-block h2 { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.mission-quote { color: var(--text); font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.65; max-width: 720px; margin: 0 auto 2rem; }
.mission-divider { width: 60px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #111217;
    color: #fff;
    margin-top: 4rem;
}
.footer-gold-bar { height: 5px; background: var(--gold); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 3rem;
    padding: 3rem 0 2.5rem;
}
.footer-col--brand {}
.footer-brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .6rem;
}
.footer-desc {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
    max-width: 42ch;
    margin-bottom: 1rem;
}
.footer-socials {
    display: flex;
    gap: .6rem;
}
/* Lifted alongside the footer text. At .08/.12 the disc sat at 1.22:1 against
   the footer ground — invisible as a shape — which only became obvious once the
   type around it was raised to 5–7:1. Keep it in step with the text. */
.footer-social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.9);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer-social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--text); }
/* Alpha values below are chosen against the footer's own #111217 ground so every
   style clears WCAG AA (4.5:1) — all of this is normal-size text, so none of it
   qualifies for the 3:1 large-text allowance. Don't dim them without re-checking. */
.footer-col-title {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.62);   /* 7.59:1 */
    margin-bottom: .9rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.footer-links li a {
    font-size: .9rem;
    color: rgba(255,255,255,.55);   /* 6.20:1 */
    transition: color var(--transition);
}
.footer-links li a:hover { color: rgba(255,255,255,.9); }
.footer-contact-item { margin-bottom: .55rem; }
.footer-contact-helper {
    font-size: .9rem;
    color: rgba(255,255,255,.6);    /* 7.18:1 */
    line-height: 1.55;
    margin: 0 0 .35rem;
}
/* Gold, not --primary: the brand terracotta is built for white backgrounds and
   only manages 3.84:1 here. Gold echoes the bar at the top of the footer. */
.footer-contact-item a {
    font-size: .95rem;
    color: var(--gold);             /* 8.44:1 */
    transition: color var(--transition);
}
.footer-contact-item a:hover { color: #f2b64a; }
.footer-mascot {
    display: block;
    width: 150px;
    height: auto;
    margin: 1rem 0 0 -6px;          /* nudge left; the art carries side padding */
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.25rem 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.55); }        /* 6.20:1 */
.footer-nonprofit { font-size: .8rem; color: rgba(255,255,255,.5); font-style: italic; } /* 5.32:1 */
.footer-login-link { font-size: .8rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-login-link:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: .35rem; }
    .footer-desc { max-width: 100%; }
    .nav-toggle { display: flex; }
    .nav-right {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
        gap: .75rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
    }
    .nav-right.is-open { display: flex; }
    .nav-menu { flex-direction: column; gap: 0; width: 100%; }
    .nav-menu a { padding: .65em .5em; width: 100%; }
    .nav-menu .sub-menu { position: static; box-shadow: none; border: none; background: var(--bg); display: none; }
    .nav-menu .menu-item-has-children.open > .sub-menu { display: block; }
    .nav-socials { padding-top: .5rem; border-top: 1px solid var(--border); width: 100%; }
    .feature-grid { grid-template-columns: 1fr; gap: .75rem; }
    .feature-item { padding: .9rem 1rem; }
    .rcpta-president-block { flex-direction: column; text-align: center; }
    .rcpta-president-photo-wrap { align-self: center; }
}

@media (max-width: 640px) {
    .hero { min-height: 420px; }
    .hero h1 { font-size: 1.8rem; }
    .rcpta-lb-table th.lb-updated, .rcpta-lb-table td.lb-updated,
    .rcpta-lb-table th.lb-current, .rcpta-lb-table td.lb-current,
    .rcpta-lb-table th.lb-goal, .rcpta-lb-table td.lb-goal { display: none; }
    .rcpta-units-filters { flex-direction: column; }
    .rcpta-search-input, .rcpta-level-select { width: 100%; min-width: 0; }
    .feature-icon-wrap { width: 60px; height: 60px; }
}

/* feature-item--link is now handled by .feature-item base styles */

/* ── Calendar header (title + action buttons side by side) ─────────────── */
.calendar-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.calendar-header-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.calendar-header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .calendar-header { flex-direction: column; align-items: flex-start; }
    .calendar-header-actions { width: 100%; }
    .calendar-header-actions .btn { flex: 1; justify-content: center; }
}

/* ── Resources hub ──────────────────────────────────────────────────────── */
.resources-callout {
    background: var(--gold-lt);
    padding: 1rem 0;
    border-bottom: 1px solid #f0c96a;
    font-size: .92rem;
}
.resources-callout a { color: var(--primary-dk); font-weight: 700; }   /* on --gold-lt */

.resources-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.resources-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), transform var(--transition), border-top-color var(--transition);
}
.resources-hub-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-top-color: var(--primary);
}
.resources-hub-icon { font-size: 2rem; line-height: 1; }
.resources-hub-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.resources-hub-card p { font-size: .85rem; color: var(--muted); line-height: 1.55; flex: 1; }
.resources-hub-cta { font-size: .82rem; font-weight: 700; color: var(--primary); margin-top: auto; }

/* ── Partner links ──────────────────────────────────────────────────────── */
.partner-links-grid {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-width: 720px;
}
.partner-link-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.partner-link-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.partner-link-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}
.partner-link-card h4 { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.partner-link-card p  { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 0; }
.partner-link-card > div { flex: 1; }
.partner-link-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity var(--transition), transform var(--transition);
}
.partner-link-card:hover .partner-link-arrow { opacity: 1; transform: translateX(3px); }

/* ── Resources sub-nav ──────────────────────────────────────────────────── */
.resources-sub-nav {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}
.resources-sub-nav .container { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Page hero breadcrumb ───────────────────────────────────────────────── */
.page-hero-breadcrumb {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.page-hero-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
.page-hero-breadcrumb a:hover { color: var(--primary-dk); }

/* ── Nav dropdown (Resources submenu) ───────────────────────────────────── */
.nav-menu .sub-menu {
    padding: .4rem 0;
}
.nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: .82rem;
    padding: .5em 1.1em;
    border-radius: 0;
    white-space: nowrap;
}
.nav-menu .sub-menu .sub-menu-ext-link::after {
    content: ' ↗';
    font-size: .72rem;
    opacity: .55;
}

/* ── Unit card address ──────────────────────────────────────────────────── */
.unit-card-address {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    font-size: .78rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}
.unit-card-address svg {
    flex-shrink: 0;
    margin-top: .15rem;
    color: var(--primary);
}
.unit-card-address a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}
.unit-card-address a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ── President row with photo / avatar ──────────────────────────────────── */
.unit-president-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
    border: 1.5px solid var(--border);
}
.unit-president-photo {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 2px solid var(--track);
}
.unit-president-avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    border: 2px solid var(--track);
}
.unit-president-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}
.unit-president-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    line-height: 1;
}
.unit-president-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.unit-president-name:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ── Progress header (label + count side by side) ───────────────────────── */
.unit-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .25rem;
}
.unit-progress-label {
    font-size: .77rem;
    font-weight: 700;
    color: var(--muted);
}
.unit-progress-count {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Join PTA nav button (always visible) ───────────────────────────────── */
.nav-join-btn {
    display: inline-flex;
    align-items: center;
    padding: .4em .9em;
    background: var(--primary);
    color: #fff !important;
    font-size: .83rem;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}
.nav-join-btn:hover {
    background: var(--primary-dk);
}

/* ── Instagram feed section ─────────────────────────────────────────────── */
.instagram-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.instagram-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface);
}
.instagram-placeholder-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
}
.instagram-placeholder-inner svg { opacity: .4; }
.instagram-placeholder-inner p { font-size: .9rem; line-height: 1.65; }

/* ── Single Announcement Page ───────────────────────────────────────────── */
.announcement-single { max-width: 800px; }
.announcement-back a { color: var(--primary); font-weight: 700; font-size: .88rem; text-decoration: none; }
.announcement-back a:hover { text-decoration: underline; }
.announcement-single-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: .75rem 0 .4rem; color: var(--text); }
.announcement-single-date { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.announcement-single-content { line-height: 1.8; font-size: 1rem; color: var(--text); }
.announcement-single-content p { margin-bottom: 1rem; }
.announcement-single-content p:last-child { margin-bottom: 0; }
.announcement-single-content strong { font-weight: 700; }
.announcement-single-content a { color: var(--primary); }
.announcement-single-content a:hover { text-decoration: underline; }
.announcement-single-content img { border-radius: var(--radius); max-width: 100%; height: auto; }
.announcement-single-content .wp-block-embed { display: none !important; }

/* ── Gutenberg button block — override to match theme ───────────────────── */
.announcement-single-content .wp-block-buttons { margin: 1.5rem 0; }
.announcement-single-content .wp-block-button__link,
.announcement-single-content .wp-element-button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: .7em 2em !important;
    font-family: var(--font-body) !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(200,68,37,.25) !important;
    transition: background .18s, transform .18s, box-shadow .18s !important;
    cursor: pointer !important;
}
.announcement-single-content .wp-block-button__link:hover,
.announcement-single-content .wp-element-button:hover {
    background: var(--primary-dk) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(200,68,37,.35) !important;
}
.announcement-single-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: none !important;
}
.announcement-single-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary) !important;
    color: #fff !important;
}
/* Also hide embed blocks on single page */
.announcement-single-content .wp-block-embed { display: none !important; }

/* ── Single School Unit Page ────────────────────────────────────────────── */
.unit-single-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}
.unit-single-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: .75rem;
    align-items: start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
}
.unit-single-row:first-child { border-top: 1px solid var(--border); }
.unit-single-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    padding-top: .1rem;
}
.unit-single-value { font-size: .93rem; color: var(--text); line-height: 1.6; }
.unit-single-value a { color: var(--primary); text-decoration: none; }
.unit-single-value a:hover { text-decoration: underline; }
.unit-single-president { display: flex; align-items: center; gap: .75rem; }
.unit-single-pres-photo { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--track); }
.unit-single-pres-avatar { width: 44px; height: 44px; border-radius: 6px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.unit-single-pres-name { font-size: .93rem; font-weight: 700; color: var(--text); }
.unit-single-pres-email { font-size: .8rem; color: var(--primary); text-decoration: none; }
.unit-single-pres-email:hover { text-decoration: underline; }
.unit-single-links { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.5rem; }
.unit-single-membership-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}
.unit-single-mem-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.unit-single-mem-pct { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.unit-single-mem-sub { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.unit-single-mem-counts { display: flex; justify-content: space-between; }
.unit-single-mem-num { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.unit-single-mem-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 700px) {
    .unit-single-grid { grid-template-columns: 1fr; }
    .unit-single-membership-card { position: static; }
    .unit-single-row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ── Contact Form ───────────────────────────────────────────────────────── */
/* Spacing here comes from layout gaps, never sibling margins. The previous
   `.rcpta-form-group + .rcpta-form-group { margin-top: 1rem }` also matched the
   second group *inside* the two-up row, pushing the email field 1rem lower than
   the name field it is meant to line up with. Keep using gap. */
.rcpta-contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 0; max-width: 720px; }
.rcpta-form-row { display: flex; flex-direction: column; gap: 1rem; }
.rcpta-form-row--2 { flex-direction: row; align-items: flex-start; }
.rcpta-form-group { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 0; }
.rcpta-form-group label { font-size: .82rem; font-weight: 700; color: var(--text); }
.rcpta-form-group .req { color: var(--primary-dk); }   /* required marker, on --bg */
.rcpta-form-group input,
.rcpta-form-group select,
.rcpta-form-group textarea {
    width: 100%;
    padding: .7em 1em;
    border: 2px solid var(--field-border);   /* 3.19:1 — --bdr was 1.34:1 */
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .93rem;
    color: var(--text);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.rcpta-form-group input:focus,
.rcpta-form-group select:focus,
.rcpta-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,68,37,.1);
}
.rcpta-form-group input::placeholder,
.rcpta-form-group textarea::placeholder { color: #a0aab4; }
.rcpta-form-group textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.rcpta-form-submit { display: flex; align-items: center; gap: 1.25rem; margin-top: .5rem; flex-wrap: wrap; }
.rcpta-form-success {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #edf7ed;
    border: 1.5px solid #7ec87e;
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    color: #2d6a2d;
    font-size: .93rem;
    margin-bottom: 1.5rem;
}
.rcpta-form-success svg { flex-shrink: 0; stroke: #2d6a2d; margin-top: .1rem; }
.rcpta-form-error {
    background: #fef2f0;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
    color: var(--primary);
    font-size: .88rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .rcpta-form-row--2 { flex-direction: column; }
}

/* ── Programs Page ──────────────────────────────────────────────────────── */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.program-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.program-card-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; margin-top: .1rem; }
.program-card-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; color: var(--text); }
.program-card-body p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.program-card-body a { color: var(--primary); font-weight: 600; }
.program-card-body a:hover { text-decoration: underline; }
.board-card-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--track); margin: 0 auto .75rem; display: block; }
.board-card-photo--placeholder { background: var(--bg); display: flex; align-items: center; justify-content: center; }
.board-card-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.board-card-role { font-size: .83rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.board-card-term { font-size: .77rem; color: var(--muted); }
.board-card-bio { font-size: .82rem; line-height: 1.5; color: var(--muted); margin-top: .5rem; }
.lb-last-updated { text-align: right; font-size: .75rem; color: var(--muted); margin-top: .75rem; }

/* ── Unit single page — large president photo ───────────────────────────── */
.unit-single-president {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
}
.unit-single-pres-photo-lg {
    width: 160px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--track);
    display: block;
    margin-bottom: .25rem;
}
.unit-single-pres-avatar-lg {
    width: 160px;
    height: 200px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid var(--track);
    margin-bottom: .25rem;
}

/* ── Units carousel ─────────────────────────────────────────────────────── */
.rcpta-carousel { width: 100%; }
.rcpta-carousel-controls { display: flex; align-items: center; gap: 1rem; }
.rcpta-carousel-viewport { flex: 1; overflow: hidden; }
/* minmax(0, 1fr) is defensive here — measured at 901–1300px with the real unit
   cards, this renders identically to a bare 1fr today. It stops a track being
   floored at min-content if a card ever gains a long unbreakable line, which is
   exactly what broke .feature-grid. */
.rcpta-carousel-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rcpta-carousel-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.rcpta-carousel-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.rcpta-carousel-btn:disabled { opacity: .35; cursor: default; }
.rcpta-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.25rem;
}
.rcpta-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bdr, #e8ddd4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), width var(--transition);
}
.rcpta-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}
@media (max-width: 900px) {
    .rcpta-carousel-track { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .rcpta-carousel-btn { display: none; }
    .rcpta-unit-card { font-size: .85rem; }
    .rcpta-unit-card .unit-card-name { font-size: .88rem; }
    .rcpta-unit-card .unit-card-address { font-size: .78rem; }
}
@media (max-width: 480px) {
    .rcpta-carousel-track { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* ── Stretched link — whole card clickable, inner links still work ───────── */
.rcpta-unit-card { position: relative; }
.unit-card-stretched-link { color: inherit; text-decoration: none; }
.unit-card-stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.rcpta-unit-card .unit-card-links,
.rcpta-unit-card .unit-card-links a,
.rcpta-unit-card .unit-president-name,
.rcpta-unit-card .unit-card-address a {
    position: relative;
    z-index: 2;
}
.unit-card-progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
