/*
Theme Name: RCA Theme
Theme URI: https://www.radioclubofamerica.org/
Author: Radio Club of America
Description: Clean, modern theme for the Radio Club of America. Replaces the
 ClubExpress look: RCA blue palette (no legacy red menus), soft corners, white
 panels on a pale blue-gray ground. Includes a compatibility layer for the
 ClubExpress layout classes used by the migrated content.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: rca-theme
*/

/* ------------------------------------------------------------------ tokens */
:root {
    --rca-blue:       #1966a7;   /* brand primary (links, buttons, accents) */
    --rca-blue-dark:  #12507f;
    --rca-navy:       #1a3150;   /* header / footer band */
    --rca-navy-dark:  #122238;
    --ink:            #1a1f2b;
    --muted:          #5a6478;
    --rule:           #c9d2e0;
    --page-bg:        #eef2f8;
    --panel:          #ffffff;
    --tint:           #eaf0fa;   /* hover tint */
    --radius:         8px;
    --shadow:         0 10px 26px rgba(16, 28, 51, .18);
    --max:            1200px;
    --heading:        Montserrat, "Segoe UI", system-ui, sans-serif;
    --body:           system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------ reset */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--rca-blue); }
a:hover { color: var(--rca-blue-dark); }
h1, h2, h3, h4, h5 {
    font-family: var(--heading);
    color: var(--rca-navy);
    line-height: 1.25;
    margin: 1.2em 0 .5em;
}
h1 { font-size: 2em; margin-top: .2em; }
h2 { font-size: 1.45em; }
h3 { font-size: 1.15em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.6em 0; }
blockquote {
    margin: 1em 0; padding: .6em 1.2em;
    border-left: 4px solid var(--rca-blue);
    background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0;
}
table { border-collapse: collapse; max-width: 100%; }
th, td { padding: .5em .7em; border-bottom: 1px solid var(--rule); text-align: left; }
th { background: var(--tint); font-family: var(--heading); font-size: .92em; }

/* ------------------------------------------------------------- masthead */
.rca-masthead { background: var(--panel); border-bottom: 1px solid var(--rule); }
.rca-masthead-inner {
    max-width: var(--max); margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.rca-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.rca-brand img { width: 84px; height: auto; display: block; }
.rca-brand-name {
    font-family: var(--heading); font-weight: 800; font-size: 26px;
    color: var(--rca-navy); line-height: 1.15; letter-spacing: .2px;
}
.rca-brand-tag {
    display: block; font-family: var(--heading); font-weight: 600;
    font-size: 11.5px; letter-spacing: 2.2px; text-transform: uppercase;
    color: var(--rca-blue); margin-top: 4px;
}
.rca-util { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.rca-util a {
    font-family: var(--heading); font-weight: 600; font-size: 13.5px;
    text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.rca-util a.util-link { color: var(--rca-blue); }
.rca-util a.util-link:hover { background: var(--tint); }
.rca-util a.util-cta { background: var(--rca-blue); color: #fff; }
.rca-util a.util-cta:hover { background: var(--rca-blue-dark); }

/* ------------------------------------------------------------------ nav */
.rca-nav { background: var(--rca-navy); position: relative; z-index: 50; }
.rca-nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 12px; }
.rca-nav ul { margin: 0; padding: 0; list-style: none; }
.rca-nav > .rca-nav-inner > ul { display: flex; flex-wrap: wrap; }
.rca-nav li { position: relative; }
.rca-nav > .rca-nav-inner > ul > li > a {
    display: block; padding: 13px 16px; color: #e8eefa; text-decoration: none;
    font-family: var(--heading); font-weight: 600; font-size: 14px;
    border-bottom: 3px solid transparent; white-space: nowrap;
}
.rca-nav > .rca-nav-inner > ul > li:hover > a,
.rca-nav > .rca-nav-inner > ul > li:focus-within > a,
.rca-nav > .rca-nav-inner > ul > li.current-menu-item > a,
.rca-nav > .rca-nav-inner > ul > li.current-menu-ancestor > a {
    color: #fff; border-bottom-color: var(--rca-blue);
    background: var(--rca-navy-dark);
}
/* dropdown panels: white, blue top accent, soft shadow, rounded bottom.
   (Replaces the legacy ClubExpress red menus.) */
.rca-nav ul.sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 60;
    min-width: 250px; padding: 6px 0; background: var(--panel);
    border: 1px solid var(--rule); border-top: 3px solid var(--rca-blue);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.rca-nav li:hover > ul.sub-menu,
.rca-nav li:focus-within > ul.sub-menu { display: block; }
.rca-nav ul.sub-menu a {
    display: block; padding: 9px 18px; color: var(--ink); text-decoration: none;
    font-size: 14.5px; white-space: nowrap;
}
.rca-nav ul.sub-menu a:hover,
.rca-nav ul.sub-menu a:focus-visible { background: var(--tint); color: var(--rca-blue-dark); }

.rca-nav-toggle {
    display: none; background: none; border: 0; color: #fff; font-size: 26px;
    padding: 10px 16px; cursor: pointer;
}

/* ----------------------------------------------------------------- layout */
.rca-main { max-width: var(--max); margin: 28px auto; padding: 0 20px; }
.rca-panel {
    background: var(--panel); border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(16, 28, 51, .10); padding: 30px 38px;
}
.entry-title { margin-top: 0; }
.post-meta { color: var(--muted); font-size: .9em; margin: -0.4em 0 1.2em; }

/* ------------------------------------------------------------------ hero */
.rca-hero {
    background: linear-gradient(135deg, var(--rca-navy) 0%, var(--rca-blue-dark) 100%);
    color: #fff; text-align: center; padding: 64px 20px 72px;
}
.rca-hero h1 {
    color: #fff; font-size: 2.6em; margin: 0 0 .3em; letter-spacing: .5px;
}
.rca-hero p {
    max-width: 44em; margin: 0 auto 1.6em; font-size: 1.2em; color: #dbe6f5;
}
.rca-hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons */
.btn, .ce-button, button.btn, input[type="submit"] {
    display: inline-block; background: var(--rca-blue); color: #fff !important;
    font-family: var(--heading); font-weight: 600; font-size: 15px;
    padding: .65em 1.5em; border: 0; border-radius: 999px; cursor: pointer;
    text-decoration: none !important; transition: background .15s;
}
.btn:hover, .ce-button:hover, input[type="submit"]:hover { background: var(--rca-blue-dark); }
.btn.btn-ghost { background: transparent; border: 2px solid #fff; }
.btn.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.button-bar { display: flex; gap: .7em; flex-wrap: wrap; margin: 1em 0; }

/* ------------------------------------------------------------------ cards */
.rca-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; margin: 26px 0;
}
.rca-card {
    background: var(--panel); border-radius: var(--radius); padding: 24px 26px;
    box-shadow: 0 1px 4px rgba(16, 28, 51, .10); border-top: 4px solid var(--rca-blue);
}
.rca-card h3 { margin-top: 0; }
.rca-card .more { font-family: var(--heading); font-weight: 600; font-size: 14px;
    text-decoration: none; }

/* news grid (front page + archive) */
.rca-news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-top: 18px;
}
.rca-news-card {
    background: var(--panel); border-radius: var(--radius); padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(16, 28, 51, .10); display: flex; flex-direction: column;
}
.rca-news-card time { color: var(--muted); font-size: .85em; }
.rca-news-card h3 { margin: .3em 0 .4em; font-size: 1.05em; }
.rca-news-card h3 a { text-decoration: none; color: var(--rca-navy); }
.rca-news-card h3 a:hover { color: var(--rca-blue); }
.rca-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1em; margin-top: 10px;
}
.rca-section-head h2 { margin: 0; }

/* pagination */
.rca-pagination { margin: 26px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.rca-pagination .page-numbers {
    padding: .4em .85em; background: var(--panel); border: 1px solid var(--rule);
    border-radius: 6px; text-decoration: none; font-size: .95em;
}
.rca-pagination .page-numbers.current { background: var(--rca-blue); color: #fff;
    border-color: var(--rca-blue); }

/* ----------------------------------------------------------------- footer */
.rca-footer { background: var(--rca-navy); color: #c7d4e8; margin-top: 44px; }
.rca-footer-inner {
    max-width: var(--max); margin: 0 auto; padding: 40px 20px 24px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px;
}
.rca-footer h4 {
    color: #fff; font-family: var(--heading); font-size: 13px;
    letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 .9em;
}
.rca-footer a { color: #c7d4e8; text-decoration: none; }
.rca-footer a:hover { color: #fff; text-decoration: underline; }
.rca-footer ul { margin: 0; padding: 0; list-style: none; }
.rca-footer li { margin: .35em 0; }
.rca-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center; padding: 16px 20px; font-size: .85em; color: #93a6c4;
}
.rca-footer-legal a { color: #93a6c4; }

/* ------------------------------------------------- ClubExpress content
   compatibility layer: the migrated pages still carry these classes. */
.build-row, .resp-row, .img-row { clear: both; width: 100%; display: flow-root; }
.build-column, .column { float: left; box-sizing: border-box; padding: 0 14px 0 0; }
.column { padding: 8px 14px 8px 0; }
.build-column.full, .column.full { width: 100%; }
.build-column.half, .column.half { width: 50%; }
.build-column.third, .column.third { width: 33.33%; }
.build-column.quarter, .column.quarter { width: 25%; }
.build-column.threequarter, .column.threequarter { width: 75%; }
.build-column.fifth, .column.fifth { width: 20%; }
.build-column.sixty, .column.sixty { width: 60%; }
.build-column.forty, .column.forty { width: 40%; }
.build-column.seventy, .column.seventy { width: 70%; }
.build-column.thirty, .column.thirty { width: 30%; }
.cell-item, .inner-column { max-width: 100%; }
.clear { clear: both; }
.img-right-flt { float: right; margin: 0 0 12px 16px; max-width: 40%; }
.img-left-flt { float: left; margin: 0 16px 12px 0; max-width: 40%; }
.zero-top-margin { margin-top: 0; }
.article-container img, .news-text img { border-radius: 6px; }

/* board / committee roster cards (biz-*) */
.biz-card-inner {
    display: inline-block; vertical-align: top; width: 250px;
    background: var(--panel); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 16px; margin: 0 14px 14px 0;
    box-shadow: 0 1px 4px rgba(16, 28, 51, .08);
}
.biz-card-image img, .biz-image-holder img { border-radius: 6px; }
.biz-card-title, .biz-name-container { font-family: var(--heading); font-weight: 700;
    color: var(--rca-navy); margin: .5em 0 .2em; }
.biz-location, .biz-join-date, .biz-expire-date, .biz-us-location {
    color: var(--muted); font-size: .88em; }
.biz-social-row { margin-top: .5em; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 880px) {
    .build-column, .column { width: 100% !important; float: none; padding-right: 0; }
    .img-right-flt, .img-left-flt { max-width: 55%; }
    .rca-panel { padding: 22px 20px; }
    .rca-hero h1 { font-size: 2em; }
    .rca-brand img { width: 64px; }
    .rca-brand-name { font-size: 21px; }

    .rca-nav-toggle { display: block; }
    .rca-nav > .rca-nav-inner > ul { display: none; flex-direction: column; }
    .rca-nav.nav-open > .rca-nav-inner > ul { display: flex; }
    .rca-nav ul.sub-menu {
        position: static; display: block; box-shadow: none; border: 0;
        border-left: 3px solid var(--rca-blue); border-radius: 0;
        margin: 0 0 6px 18px; background: var(--rca-navy-dark);
    }
    .rca-nav ul.sub-menu a { color: #dbe6f5; }
    .rca-nav ul.sub-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
    .rca-util { margin-left: 0; }
}
