@charset "UTF-8";
/* The Sunflower Standard – Clean CSS */

/* ===== Base ===== */
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  line-height: 1.6;
  background-color: #fff;
  color: #111;
  scroll-behavior: smooth;
}

/* Utility / Misc */
.ad-plug { margin: auto; width: 95%; float: left; }
.article-headshot { width: 30%; display: block; border: thin solid #CD3537; float: none; }
.mugshot { width: 30%; }
/* ============================ */
/* Header & Inline Navigation   */
/* ============================ */

.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.header-banner {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
}

/* Inline Navigation */
.main-nav {
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font: 600 1rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.nav-links a:hover {
  color: #000;
  background-color: #f7f7f7;
}

/* Optional: highlight current page (add class="active" manually) */
.nav-links a.active {
  background-color: #f0f0f0;
  color: #000;
  border-bottom: 2px solid #bb8e00; /* subtle sunflower gold accent */
}

/* Keep nav one row regardless of screen size */
@media (max-width: 600px) {
  .nav-links {
    gap: 1rem;
    overflow-x: auto;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
  }
}



.share-bar {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.share-fb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  text-decoration: none;
  font: 500 0.95rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: transform .04s ease, box-shadow .15s ease;
}

.share-fb:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.share-fb:active {
  transform: translateY(1px);
}


/* Optional legacy nav markup support */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 1rem;
  gap: 2rem;
  flex-wrap: wrap;
}
nav a {
  color: #2A4455;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
nav a:hover {
  border: 1px solid #8b836d;
  background-color: #ffffff;
}

/* ===== Link Button (bottom of article) ===== */
.link-button {
  display: flex;
  justify-content: center;
  margin: 2rem auto 0;
  text-align: center;
}

.link-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background-color: #8b836d;   /* Sunflower Standard gold tone */
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.link-button a:hover,
.link-button a:focus {
  background-color: #7e7862;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link-button img {
  width: 75px;
  height: 75px;
  border-radius: 4px;
  object-fit: cover;
}

.link-button p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

/* Optional: make sure it doesn’t stick too close to the footer */
.news-article .link-button {
  margin-bottom: 2.5rem;
}




/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  .nav-links {
    display: none; /* hidden until .show is toggled */
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem;
    margin-top: 4rem; /* room for header/toggle */
    border-top: 2px solid #8b836d;
    border-radius: 4px;
    width: 100%;
  }
  .nav-links.show { display: flex; }
}

/* ===== Main Layout ===== */
main {
  display: block;
  width: 100%;
  position: relative;
  top: -20px; /* remove if not needed */
}

/* ===== News Grid (Home Page) ===== */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 1.5rem;
}
.news-grid article {
  flex: 1 1 calc(48% - 1rem);
  background-color: #fafafa;
  border-top: 2px solid #2a4455;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
  display: block;
}
.news-grid article:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.news-grid article a { text-decoration: none; display: block; }
.news-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  text-align: center;
  color: #2a4455;
}
.article-content p,
.article-content h3 {
  font-size: 0.95rem;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .news-grid article { flex: 1 1 100%; }
  .article-content h3 { -webkit-line-clamp: 3; }
}

/* ===== Article Page ===== */
.news-article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: #F3D767;
}
.article-title { text-align: left; margin-bottom: 2rem; }
.article-title h1 {
  font-size: 2rem;
  border-bottom: 2px solid #2a4455;
  padding-bottom: 0.5rem;
}
.article-title h4,
.article-title h5 { color: #555; margin-top: 0.3rem; }

/* ===== Blog Content ===== */
.blog-content p { font-size: 1rem; margin-bottom: 1.25rem; }

.news-photo.expandable-img {
  margin: auto;
  border-radius: 4px;
  width: 100%;
}

.blog-content figure { margin: 1.5rem 0; }

/* No italics per preference */
figure figcaption {
    font-style: italic;
}

/* Unified photo helpers */
.article-photo-right,
.article-photo-left {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* ===== Advertisement Block ===== */
.article-ad {
  margin: 2em 0;
  padding: 1em;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.article-ad .ad-label {
  font-size: 0.85em;
  color: #777;
  font-style: normal; /* no italics */
}
.ad-image {
  width: 50%;
  border-radius: 4px;
  max-width: 300px;
}

/* ===== Pagination ===== */
.pagination { text-align: center; margin: 2rem 0; }
.pagination button {
  margin: 0 5px;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #2a4455;
  color: #fff;
  cursor: pointer;
}
.pagination button.active { background-color: #444; }
.pagination button:hover,
.pagination button:focus { background-color: #666; }

/* ===== Footer ===== */
footer {
  border-top: 2px solid #2a4455;
  background-color: #f8f8f8;
  padding: 2rem 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
}
footer p { display: block; width: 50%; float: left; }
.cs-logo { float: right; display: block; width: 50%; }
.creamsicle-logo { max-height: 50px; max-width: 50px; }

/* ===== Election Candidate Grid (3 Across; Scroll on Mobile) ===== */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr)); /* lock 3 columns */
  gap: 18px;
  margin: 1.5rem 0;
  overflow-x: auto;                 /* horizontal scroll on narrow viewports */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.candidate-card {
    background: #f6f6f4;
    border: 1px solid #e5e2db;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    scroll-snap-align: start;
    min-width: 270px; /* ensures width for scroll */
}
.candidate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.candidate-card .headshot {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: #ddd;
  display: block;
}
.candidate-card .headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.candidate-body { padding: 14px 16px 18px; }
.candidate-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.candidate-meta { font-size: 0.9rem; color: #6b6b6b; margin-bottom: 8px; }
.candidate-meta .badge {
  background: #fff;
  border: 1px solid #e5e2db;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}
.candidate-actions { display: flex; gap: 10px; }
.candidate-actions .btn {
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e2db;
  color: #191919;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.candidate-actions .btn:hover {
  border-color: #8b836d;
  background: #fffef7;
}
.candidate-actions .btn-accent {
  background: #8b836d;
  border-color: #8b836d;
  color: #fff;
}
.candidate-actions .btn-accent:hover { background: #7e7862; }
