/* =====================================================================
   County Outpost — Theme Layer (Olive & Clay)
   PURPOSE:
   - Visual-only skin that sits ON TOP of assets/styles.css
   - Keeps all functionality + IDs intact
   - Use on every page: <link rel="stylesheet" href="assets/theme-olive-clay.css" />
   ===================================================================== */

/* ===== Color system + compatibility mapping ===== */
:root{
  /* COUNTY OUTPOST COLOR SCHEME - OLIVE & CLAY */
  --olive-primary: #5A5C3E;
  --olive-secondary: #6E7252;
  --olive-light: #828766;
  --olive-dark: #3F4129;
  --clay-accent: #C9936A;
  --cream-bg: #F5F1E8;
  --charcoal-text: #2C2C2C;
  --slate-text: #5A5A5A;

  /* Map to current variable names (so existing CSS continues working) */
  --rust: var(--clay-accent);
  --rust-dark: #B8825B;
  --cream: var(--cream-bg);
  --charcoal: var(--olive-primary);
  --slate: var(--slate-text);
  --warm-gray: #E6E0D4;
  --highlight: var(--clay-accent);
  --success: #6B9E78;

  /* Keep existing tokens if referenced elsewhere */
  --line: var(--line, #e6d9c4);
  --paper-2: var(--paper-2, #fff6e9);
  --ink: var(--ink, #1f1c18);
  --ink-2: var(--ink-2, #4b4034);
}

/* ===== Global base polish (visual-only) ===== */
html, body { overflow-x: hidden; }
body{
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal-text);
  line-height: 1.6;
}

/* Keep container consistent across pages that use it */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}
@media (max-width:768px){
  .container{ padding: 0 1rem; }
}

/* ===== Notice banner (if present) ===== */
.notice{
  background: var(--highlight);
  color: var(--charcoal-text);
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ===== Header / Nav skin (keeps your existing IDs) ===== */
header.co-header{
  background:#fff;
  color: var(--charcoal-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.co-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.co-logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  gap:12px;
  min-width:0;
}
.co-logo img{
  height:67px;
  width:auto;
  display:block;
}

.co-nav-right{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.co-nav-links{
  display:flex;
  align-items:center;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
  white-space:nowrap;
}
.co-nav-links a{
  color: var(--charcoal-text);
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
  padding:.35rem .55rem;
  border-radius:8px;
  transition: color .2s, background .2s;
}
.co-nav-links a:hover{
  color: var(--olive-dark);
  background: rgba(63,65,41,0.08);
}

/* Make Login look like a button, without changing link target/ID */
#navLogin{
  background: var(--rust);
  color:#fff !important;
  padding:.45rem .9rem;
  border-radius:8px;
}
#navLogin:hover{ background: var(--rust-dark); color:#fff !important; }

/* Nav collapse behavior (visual-only) */
@media (max-width:900px){
  .co-nav-links{ gap:10px; }
  .co-nav-links a{ font-size:.9rem; }
}

/* ✅ FIX: Do NOT hide menu on mobile.
   Instead, wrap it into two (or more) right-justified rows. */
@media (max-width:768px){
  .co-nav{ padding:12px 0; }
  .co-logo img{ height:58px; }

  .co-nav-right{
    justify-content:flex-end;
  }

  .co-nav-links{
    display:flex;              /* was: none */
    flex-wrap:wrap;            /* allow multi-row */
    justify-content:flex-end;  /* right-justified */
    row-gap:8px;
    column-gap:10px;
    white-space:normal;        /* allow wrapping */
    max-width: 420px;          /* helps encourage two rows */
  }
}

/* ===== Login status pill (works wherever you place #loginStatus) ===== */
#loginStatus{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:.90rem;
  white-space:nowrap;
}
.status-dot{
  width:12px;height:12px;border-radius:50%;
  background:#9aa0a6;
  box-shadow:0 0 0 2px rgba(255,255,255,0.65);
  flex:0 0 12px;
}
.status-pill{
  border:1px solid rgba(44,44,44,0.18);
  background:rgba(255,255,255,0.75);
  border-radius:999px;
  padding:.25rem .65rem;
  line-height:1.1;
  color: var(--charcoal-text);
}
.status-on .status-dot{ background:#2fb344; }

/* Optional wrapper rows (if present on a page) */
.top-status-row{ padding:10px 0 0; }
.top-status-inner{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
@media (max-width:768px){
  .top-status-row{ padding:8px 0 0; }
  .top-status-inner{ justify-content:center; }
}

/* ===== Shared button look (won’t break existing IDs) ===== */
button, input, select { font: inherit; }
.co-btn,
button.co-btn,
a.co-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  background: var(--rust);
  color:#fff;
  border:none;
  border-radius:8px;
  font-weight:900;
  cursor:pointer;
  padding:.58rem 1.0rem;
  text-decoration:none;
  transition: background .2s;
}
.co-btn:hover{ background: var(--rust-dark); color:#fff; }
.co-btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ===== Shared “card” surface (for listings, forms, sections) ===== */
.co-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
}
.co-card--padded{ padding:18px; }

/* ===== Footer skin ===== */
footer.co-footer{
  background: var(--olive-primary);
  color:#fff;
  padding:44px 0 26px;
  margin-top:44px;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
  margin-bottom:22px;
}
.footer-grid h4{
  font-family:'Bitter', serif;
  font-size:1.15rem;
  margin:0 0 10px;
  color:rgba(255,255,255,0.92);
}
.footer-grid p, .footer-grid a{
  color:rgba(255,255,255,0.82);
  text-decoration:none;
  display:block;
  margin:0 0 8px;
  font-weight:600;
}
.footer-grid a:hover{ color:#fff; }
.footer-bottom{
  text-align:center;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.65);
  font-weight:600;
}

/* ===== Small typography helpers ===== */
.co-h1, .co-h2, .co-h3{
  font-family:'Bitter', serif;
  color: var(--olive-dark);
}
