/* ===== RURAL CEO — NEWSPAPER HEADER OVERRIDE ===== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap");

:root {
  --ink: #1a1208;
  --accent: #8b2000;
  --gold: #b8860b;
  --pale: #c8b89a;
  --muted: #7a6a52;
  --cream: #f5f0e8;
  --paper: #faf6ef;
  --rule: #c8b89a;
}

/* Hide the existing site header/masthead from your current theme */
.site-header,
header.site-header,
#masthead,
.header-wrap,
.jeg_header,
#header {
  display: none !important;
}

/* ── UTILITY BAR ── */
#rc-util-bar {
  background: var(--ink);
  color: var(--pale);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 0;
  border-bottom: 1px solid #3a2e1e;
  position: relative;
  z-index: 9999;
}
#rc-util-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#rc-util-bar a { color: var(--pale); text-decoration: none; margin: 0 10px; }
#rc-util-bar a:hover { color: var(--gold); }
.rc-epaper-btn {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 2px;
  font-weight: 500;
  margin-left: 14px !important;
}

/* ── MASTHEAD ── */
#rc-masthead {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  padding: 14px 0;
  position: relative;
  z-index: 9998;
}
#rc-masthead .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 3-column row: logo | center text | spacer */
.rc-masthead-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  gap: 16px;
}
/* LEFT — logo */
.rc-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.rc-logo-wrap a { display: inline-block; text-decoration: none; }
.rc-logo-wrap img {
  max-height: 110px;
  width: auto;
  display: block;
}
/* CENTER — publication name */
.rc-masthead-center {
  text-align: center;
}
.rc-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.rc-site-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.rc-site-name a { color: var(--ink); text-decoration: none; }
.rc-site-name a span { color: var(--accent); }
.rc-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
}
.rc-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.rc-meta .sep { margin: 0 10px; color: var(--rule); }
.rc-meta .edition { color: var(--accent); font-weight: 500; }
/* RIGHT — empty spacer mirrors logo width */
.rc-masthead-right { width: 160px; }

/* ── TICKER ── */
#rc-ticker {
  background: var(--accent);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
  z-index: 9997;
}
.rc-ticker-label {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 14px;
  margin-right: 20px;
  vertical-align: middle;
}
.rc-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: rc-ticker-scroll 40s linear infinite;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #fff;
}
.rc-ticker-inner span { margin: 0 40px; }
.rc-ticker-inner a { color: #fff; text-decoration: none; }
@keyframes rc-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rc-masthead-row {
    grid-template-columns: 90px 1fr;
  }
  .rc-masthead-right { display: none; }
  .rc-logo-wrap img { max-height: 80px; }
  .rc-site-name { font-size: 32px; }
  .rc-masthead-center { text-align: left; }
}
@media (max-width: 480px) {
  .rc-masthead-row { grid-template-columns: 1fr; }
  .rc-logo-wrap { justify-content: center; }
  .rc-masthead-center { text-align: center; }
  #rc-util-bar .inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ===== RC PRIMARY NAV ===== */
#rc-primary-nav {
  background: #1a1208;
  border-bottom: 3px solid #8b2000;
  position: relative;
  z-index: 9996;
}
#rc-primary-nav .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
#rc-primary-nav .inner::-webkit-scrollbar { display: none; }

/* Style the WP-generated <ul> */
#rc-primary-nav .rc-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
#rc-primary-nav .rc-nav-list li {
  margin: 0;
  padding: 0;
  border-right: 1px solid #3a2e1e;
  flex-shrink: 0;
}
#rc-primary-nav .rc-nav-list li:first-child {
  border-left: none;
}
#rc-primary-nav .rc-nav-list li a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d0c4aa;
  text-decoration: none;
  padding: 13px 18px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
#rc-primary-nav .rc-nav-list li a:hover,
#rc-primary-nav .rc-nav-list li.current-menu-item > a,
#rc-primary-nav .rc-nav-list li.current_page_item > a {
  color: #b8860b;
  background: rgba(255,255,255,0.05);
  border-bottom: 2px solid #b8860b;
}
/* Hide sub-menus (dropdowns) — keep nav flat like the screenshot */
#rc-primary-nav .rc-nav-list li ul {
  display: none !important;
}

@media (max-width: 768px) {
  #rc-primary-nav .rc-nav-list li a { padding: 11px 12px; font-size: 11px; }
}

/* ── Commodity prices in ticker ── */
.rc-commodity {
  margin: 0 28px;
  font-size: 12px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}
.rc-commodity strong {
  color: #ffd580;
  font-weight: 600;
}
.rc-up   { color: #7fff7f; font-size: 10px; }
.rc-dn   { color: #ff9999; font-size: 10px; }

/* Divider between news and mandi rates */
.rc-ticker-divider {
  margin: 0 36px;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
