/* ============================================================
   Cedar & Sea — Puyallup Tribe News Design System
   puyallup-tribe-news.com

   Coast Salish–inspired: geometric (circles, crescents, trigons),
   breathing negative space, earth tones. "Inspired Natives, not
   Native-inspired." — Eighth Generation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- Palette --- */
:root {
  --deep-forest: #1B3A2D;
  --deep-forest-light: #234a3a;
  --cedar-red: #8B2500;
  --cedar-red-dark: #6E1D00;
  --ocean-teal: #1A4D6D;
  --salmon-coral: #D4856A;
  --cedar-parchment: #F5F0E8;
  --cedar-parchment-dark: #EDE7DA;
  --charcoal: #2C2C2C;
  --moss-green: #2D6A4F;
  --cedar-brown: #B6864B;
  --moss: #92B070;
  --glacier-blue: #8DBDBF;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-content: 1140px;
  --max-article: 700px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(27,58,45,0.06);
  --shadow-md: 0 4px 16px rgba(27,58,45,0.08);
  --shadow-lg: 0 8px 32px rgba(27,58,45,0.12);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cedar-parchment);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cedar-red); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--salmon-coral); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--deep-forest);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--deep-forest);
  padding: 2.4rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='60' cy='60' r='28' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M60 32 C70 45, 70 75, 60 88 C50 75, 50 45, 60 32Z' fill='%23fff' opacity='0.5'/%3E%3Cpath d='M32 60 C45 50, 75 50, 88 60 C75 70, 45 70, 32 60Z' fill='%23fff' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cedar-red) 0%, var(--cedar-red) 25%,
    var(--salmon-coral) 25%, var(--salmon-coral) 50%,
    var(--ocean-teal) 50%, var(--ocean-teal) 75%,
    var(--moss-green) 75%, var(--moss-green) 100%
  );
}
.site-header h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.2rem;
  position: relative;
}
.site-header .subtitle {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}
.site-header .tribal-name {
  color: var(--salmon-coral);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  position: relative;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--deep-forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.site-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.85rem 1.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.site-nav a:hover {
  color: #fff;
  border-bottom-color: var(--salmon-coral);
}
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--cedar-red);
}

/* "NEW" badge on a nav link */
.nav-new {
  display: inline-block;
  background: var(--salmon-coral);
  color: var(--deep-forest);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: 2px;
  text-transform: uppercase;
}

/* ============================================================
   ELECTION BANNER
   ============================================================ */
.election-banner {
  background: var(--cedar-red);
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: center;
  position: relative;
}
.election-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 L35 25 L30 20 L25 25Z' fill='%23fff'/%3E%3Cpath d='M30 50 L35 35 L30 40 L25 35Z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 50px 50px;
  pointer-events: none;
}
.election-banner h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  position: relative;
}
.election-banner p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  opacity: 0.9;
  position: relative;
}
.election-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.election-banner a:hover {
  color: var(--salmon-coral);
  text-decoration-color: var(--salmon-coral);
}

/* ============================================================
   CONTENT CONTAINERS
   ============================================================ */
.content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.article-content {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ============================================================
   SECTION HEADERS — Salish-inspired with trigon accent
   ============================================================ */
.section {
  margin-bottom: 1rem;
}
.section-header {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--deep-forest);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  position: relative;
  letter-spacing: -0.5px;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--cedar-red) 0px,
    var(--cedar-red) 48px,
    var(--salmon-coral) 48px,
    var(--salmon-coral) 72px,
    var(--cedar-parchment-dark) 72px,
    var(--cedar-parchment-dark) 100%
  );
}

.section-intro {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

/* ============================================================
   WAVE DIVIDER — Coast Salish crescent-based water motif
   ============================================================ */
.wave-divider {
  width: 100%;
  height: 48px;
  margin: 3rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wave-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cedar-brown) 15%,
    var(--cedar-brown) 85%,
    transparent 100%
  );
  opacity: 0.25;
}
.wave-divider::after {
  content: '';
  position: relative;
  width: 80px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='48' viewBox='0 0 80 48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='24' r='10' fill='none' stroke='%23B6864B' stroke-width='1.2' opacity='0.4'/%3E%3Cpath d='M40 14 C45 20, 45 28, 40 34 C35 28, 35 20, 40 14Z' fill='%23B6864B' opacity='0.2'/%3E%3Cpath d='M30 24 C36 19, 44 19, 50 24 C44 29, 36 29, 30 24Z' fill='%23B6864B' opacity='0.2'/%3E%3Ccircle cx='18' cy='24' r='3' fill='none' stroke='%23B6864B' stroke-width='0.8' opacity='0.3'/%3E%3Ccircle cx='62' cy='24' r='3' fill='none' stroke='%23B6864B' stroke-width='0.8' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--cedar-parchment);
  padding: 0 12px;
}

/* ============================================================
   HERO STORY
   ============================================================ */
.hero-story {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,45,0.06);
  display: flex;
  gap: 0;
  transition: box-shadow 0.3s;
}
.hero-story:hover {
  box-shadow: var(--shadow-md);
}
.hero-story .hero-image {
  width: 45%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}
.hero-story .hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(27,58,45,0.08));
}
.hero-story .hero-text {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-story .category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cedar-red);
  margin-bottom: 0.6rem;
}
.hero-story h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.7rem;
}
.hero-story h2 a { color: var(--deep-forest); }
.hero-story h2 a:hover { color: var(--cedar-red); }
.hero-story .excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.hero-story .date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

/* ============================================================
   STORY GRID + CARDS
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-bottom: 2rem;
}
.story-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.story-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27,58,45,0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 20%;
}
.story-card .card-body {
  padding: 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.story-card .category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ocean-teal);
  margin-bottom: 0.4rem;
}
.story-card .category.election { color: var(--moss-green); }
.story-card .category.history { color: var(--cedar-brown); }
.story-card .category.culture { color: var(--ocean-teal); }
.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.story-card h3 a { color: var(--deep-forest); }
.story-card h3 a:hover { color: var(--cedar-red); }
.story-card .excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.55;
  flex: 1;
}
.story-card .date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 500;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--cedar-parchment-dark);
}

/* ============================================================
   COMMUNITY BOARD
   ============================================================ */
.community-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.4fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-top: -0.4rem;
}

.daily-deal-box,
.community-calendar {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem;
}

.daily-deal-box {
  border-left: 4px solid var(--cedar-red);
}

.community-calendar {
  border-left: 4px solid var(--ocean-teal);
}

.community-kicker {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cedar-red);
  margin-bottom: 0.25rem;
}

.community-board h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  color: var(--deep-forest);
}

.deal-main {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0 0 0.65rem;
}

.deal-heading {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-ui);
}

.deal-heading span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cedar-red);
}

.deal-heading strong {
  font-size: 0.76rem;
  color: #777;
}

.deal-discounts,
.community-calendar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deal-discounts-inline,
.deal-meta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.45;
  color: #666;
}

.deal-discounts li {
  font-size: 0.82rem;
  color: #555;
  padding: 0.28rem 0;
  border-top: 1px solid rgba(27,58,45,0.06);
}

.deal-source {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(27,58,45,0.08);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: #777;
  line-height: 1.45;
}

.community-event {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.3rem 0.8rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(27,58,45,0.06);
}

.community-event:first-child {
  border-top: none;
  padding-top: 0.1rem;
}

.community-event time {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cedar-brown);
}

.community-event a,
.community-event > span:first-of-type {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--deep-forest);
  line-height: 1.3;
}

.community-event a:hover {
  color: var(--cedar-red);
}

.community-event span {
  grid-column: 2;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-sidebar .community-board {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}

.news-sidebar .daily-deal-box,
.news-sidebar .community-calendar {
  box-shadow: none;
  padding: 0.9rem;
}

.news-sidebar .daily-deal-box {
  border-left-width: 2px;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.72);
}

.news-sidebar .community-board h2 {
  font-size: 1.02rem;
}

.news-sidebar .deal-main {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.32;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.news-sidebar .deal-meta {
  font-size: 0.66rem;
  line-height: 1.34;
}

.news-sidebar .deal-discounts li {
  font-size: 0.78rem;
}

.news-sidebar .deal-source {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  font-size: 0.6rem;
  line-height: 1.3;
}

.news-sidebar .community-event {
  grid-template-columns: 1fr;
  gap: 0.18rem;
  padding: 0.55rem 0;
}

.news-sidebar .community-event span {
  grid-column: 1;
}

.news-sidebar .sidebar-header {
  margin-top: 1rem;
}

/* ============================================================
   CANDIDATE CARDS (expandable)
   ============================================================ */
.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.cand-card {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.cand-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--salmon-coral);
}
.cand-card.open {
  cursor: default;
  grid-column: 1 / -1;
  border-color: var(--ocean-teal);
  box-shadow: var(--shadow-md);
}
.cand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.cand-header img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cand-card.open .cand-header img {
  width: 200px;
  height: auto;
  max-height: 260px;
  border-radius: var(--radius);
}
.cand-header .cand-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-forest);
  margin: 0;
}
.cand-header .cand-info .cand-sub {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.2rem 0 0;
}
.cand-header .cand-info .cand-votes {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--moss-green);
  font-weight: 600;
  margin-top: 0.15rem;
}
.cand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1rem;
}
.cand-card.open .cand-body {
  max-height: 800px;
  padding: 0 1rem 1.2rem;
}
.cand-body p {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.cand-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}
.cand-body li {
  font-size: 0.84rem;
  color: #374151;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.cand-body .cand-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--cedar-red);
  font-weight: 600;
  text-decoration: none;
}
.cand-body .cand-link:hover { color: var(--salmon-coral); }
.cand-close {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.4rem;
  line-height: 1;
  transition: color 0.2s;
}
.cand-close:hover { color: var(--cedar-red); }
.cand-card.open .cand-close { display: block; }

/* ============================================================
   FEATURED / HISTORY CARDS
   ============================================================ */
.featured-card {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
  position: relative;
}
.featured-card:hover {
  box-shadow: var(--shadow-md);
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, var(--cedar-brown), var(--salmon-coral));
}
.featured-card img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.featured-card .info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--deep-forest);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.featured-card .info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.featured-card .info .photo-credit {
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}
.featured-card .info a {
  color: var(--cedar-red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27,58,45,0.06);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}
.photo-card:hover img {
  transform: scale(1.03);
}
.photo-card .caption {
  padding: 0.65rem 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: #666;
  line-height: 1.4;
  font-weight: 500;
}

/* ============================================================
   FEATURE CARDS (Family Tree section)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ocean-teal), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card h4 {
  font-family: var(--font-display);
  color: var(--deep-forest);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.2rem 0;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.cta-primary {
  background: var(--cedar-red);
  color: #fff;
  border-color: var(--cedar-red);
}
.cta-primary:hover {
  background: var(--cedar-red-dark);
  border-color: var(--cedar-red-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,37,0,0.25);
}
.cta-outline {
  background: transparent;
  color: var(--deep-forest);
  border: 2px solid var(--deep-forest);
}
.cta-outline:hover {
  background: var(--deep-forest);
  color: #fff;
}

/* ============================================================
   TOP BAR (article pages)
   ============================================================ */
.top-bar {
  background: var(--deep-forest);
  padding: 0.6rem 1rem;
  text-align: center;
  position: relative;
}
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--cedar-red) 0%, var(--cedar-red) 25%,
    var(--salmon-coral) 25%, var(--salmon-coral) 50%,
    var(--ocean-teal) 50%, var(--ocean-teal) 75%,
    var(--moss-green) 75%, var(--moss-green) 100%
  );
}
.top-bar a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}
.top-bar a:hover { color: #fff; }

/* ============================================================
   ARTICLE META
   ============================================================ */
.article-meta {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.article-meta .date {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #999;
  font-weight: 500;
}
.article-meta .category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cedar-red);
  background: rgba(139,37,0,0.06);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}
.article-meta .byline {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #999;
  font-style: italic;
}

/* Article headline */
.article-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--deep-forest);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}
.article-body p { margin-bottom: 1.1rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.7rem;
  font-weight: 700;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
  font-weight: 700;
}
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.article-body li {
  margin-bottom: 0.45rem;
}
.article-body a {
  color: var(--cedar-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(139,37,0,0.3);
}
.article-body a:hover {
  color: var(--salmon-coral);
  text-decoration-color: var(--salmon-coral);
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid var(--cedar-red);
  margin: 1.8rem 0;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #444;
  font-style: italic;
  box-shadow: var(--shadow-sm);
}
.article-body blockquote p { margin-bottom: 0.4rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite,
.article-body blockquote footer {
  display: block;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.6rem;
}

/* Pull quotes */
.article-body .pull-quote {
  border-left: none;
  border-top: 3px solid var(--cedar-red);
  border-bottom: 3px solid var(--cedar-red);
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--deep-forest);
  padding: 1.4rem 2rem;
  margin: 2.5rem 0;
  line-height: 1.35;
}

/* Inline images with captions */
.article-body figure {
  margin: 1.8rem 0;
}
.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.article-body figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.6rem;
  line-height: 1.4;
}
.article-body figure.float-right {
  float: right;
  max-width: 280px;
  margin: 0.3rem 0 1rem 1.5rem;
}
.article-body figure.float-left {
  float: left;
  max-width: 280px;
  margin: 0.3rem 1.5rem 1rem 0;
}

/* Callout boxes */
.article-body .callout {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-left: 4px solid var(--ocean-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.article-body .callout h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ocean-teal);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.article-body .callout p {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body .callout.warning { border-left-color: var(--cedar-red); }
.article-body .callout.warning h4 { color: var(--cedar-red); }
.article-body .callout.success { border-left-color: var(--moss-green); }
.article-body .callout.success h4 { color: var(--moss-green); }

/* Lists */
.article-body ol { list-style-type: decimal; }
.article-body ol ol { list-style-type: lower-alpha; }
.article-body ul { list-style-type: disc; }
.article-body ul ul { list-style-type: circle; }

/* Horizontal rule */
.article-body hr {
  border: none;
  height: 1px;
  background: #e5e0d5;
  margin: 2.5rem 0;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
}
.article-body th {
  font-family: var(--font-ui);
  font-weight: 700;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 2px solid var(--deep-forest);
  color: var(--deep-forest);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.article-body td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e5e0d5;
}
.article-body tr:last-child td { border-bottom: none; }

/* ============================================================
   ELECTION BOX
   ============================================================ */
.election-box {
  background: #fff;
  border: 2px solid var(--moss-green);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 1.8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.election-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--moss-green);
}
.election-box h2 {
  font-family: var(--font-display);
  color: var(--moss-green);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.election-box p { font-size: 0.95rem; }
.election-box .details { font-size: 1rem; color: var(--charcoal); }
.election-box .details strong { color: var(--moss-green); }
.election-box .address {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

/* ============================================================
   DEADLINES BOX
   ============================================================ */
.deadlines {
  background: #fff;
  border-left: 4px solid var(--cedar-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.deadlines h4 {
  color: var(--cedar-red);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.deadlines ul { list-style: none; padding: 0; }
.deadlines li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cedar-parchment-dark);
}
.deadlines li:last-child { border: none; }
.deadlines strong { color: var(--cedar-red); }

/* ============================================================
   HIGHLIGHTS BOX
   ============================================================ */
.highlights {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.highlights::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--ocean-teal), var(--glacier-blue));
  border-radius: var(--radius) var(--radius) 0 0;
}
.highlights h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deep-forest);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.highlights ul { padding-left: 1.2rem; }
.highlights li {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  color: #374151;
  line-height: 1.5;
}

/* ============================================================
   SOURCE CITATION
   ============================================================ */
.source-citation {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #999;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5e0d5;
  line-height: 1.6;
}
.source-citation strong {
  color: #777;
  font-weight: 600;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.share-buttons a, .share-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd8cd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.share-buttons a:hover, .share-buttons button:hover {
  border-color: var(--cedar-red);
  color: var(--cedar-red);
  background: #fff;
  box-shadow: 0 2px 8px rgba(139,37,0,0.08);
}
.share-buttons .copied {
  background: var(--moss-green) !important;
  color: #fff !important;
  border-color: var(--moss-green) !important;
}

/* ============================================================
   RELATED STORIES
   ============================================================ */
.related-stories {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e0d5;
}
.related-stories h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deep-forest);
  margin-bottom: 1rem;
  font-weight: 700;
}
.related-stories ul { list-style: none; padding: 0; }
.related-stories li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cedar-parchment-dark);
}
.related-stories li:last-child { border: none; }
.related-stories a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--deep-forest);
  font-weight: 600;
  transition: color 0.2s;
}
.related-stories a:hover { color: var(--cedar-red); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep-forest);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.8;
  margin-top: 0;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--cedar-red) 0%, var(--cedar-red) 25%,
    var(--salmon-coral) 25%, var(--salmon-coral) 50%,
    var(--ocean-teal) 50%, var(--ocean-teal) 75%,
    var(--moss-green) 75%, var(--moss-green) 100%
  );
}
footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--salmon-coral);
}
footer .footer-links {
  margin-bottom: 1rem;
}
footer .footer-links a {
  margin: 0 0.7rem;
  font-weight: 500;
}
footer .footer-credit {
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
}

/* ============================================================
   ARTICLE-LEVEL CANDIDATE GRID
   ============================================================ */
.candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0;
}
.candidate {
  background: #fff;
  border: 1px solid rgba(27,58,45,0.06);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}
.candidate:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.candidate h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--deep-forest);
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.candidate h3 a { color: var(--deep-forest); }
.candidate h3 a:hover { color: var(--cedar-red); }
.candidate .votes {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.4rem;
}
.candidate a {
  font-size: 0.8rem;
  color: var(--cedar-red);
  font-weight: 600;
}

/* ============================================================
   ARTICLE BANNER IMAGE
   ============================================================ */
img.banner {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   BIO SECTION
   ============================================================ */
.bio {
  font-size: 1rem;
  margin-bottom: 1.8rem;
}
.bio p { margin-bottom: 0.9rem; }

/* ============================================================
   PRIMARY RESULT
   ============================================================ */
.primary-result {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #999;
  margin: 1.2rem 0;
  padding: 0.8rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.primary-result strong {
  color: var(--deep-forest);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============================================================
   ALL CANDIDATES LINK
   ============================================================ */
.all-candidates { text-align: center; margin: 1.5rem 0; }
.all-candidates a {
  color: var(--deep-forest);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
}
.all-candidates a:hover { color: var(--cedar-red); }

/* ============================================================
   UTILITY
   ============================================================ */
.date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-header h1 { font-size: 2rem; }
  .site-header { padding: 1.8rem 1rem 1.5rem; }

  .site-nav a { padding: 0.7rem 0.8rem; font-size: 0.72rem; }

  .hero-story { flex-direction: column; }
  .hero-story .hero-image {
    width: 100%;
    min-height: 220px;
  }
  .hero-story .hero-text { padding: 1.4rem 1.2rem; }
  .hero-story h2 { font-size: 1.35rem; }

	  .story-grid, .story-grid.two-col {
	    grid-template-columns: 1fr;
	    gap: 1rem;
	  }

  .community-board {
    grid-template-columns: 1fr;
  }

  .community-event {
    grid-template-columns: 1fr;
  }

  .community-event span {
    grid-column: 1;
  }

	  .candidates-grid { grid-template-columns: 1fr; }
  .candidates { grid-template-columns: 1fr; }

  .featured-card { flex-direction: column; }
  .featured-card img {
    width: 100%;
    max-width: 300px;
    height: 220px;
    object-fit: cover;
    object-position: center 20%;
  }

  .cand-card.open .cand-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cand-card.open .cand-header img {
    width: 100%;
    max-width: 280px;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .section-header { font-size: 1.4rem; }

  .article-content h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .site-header h1 { font-size: 1.6rem; }
  .site-nav a { padding: 0.6rem 0.55rem; font-size: 0.68rem; }

  .content { padding: 1.5rem 1rem; }
  .article-content { padding: 1.5rem 1rem; }

  .hero-story .hero-text { padding: 1rem; }
  .hero-story h2 { font-size: 1.15rem; }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .photo-card img { aspect-ratio: 1 / 1; }

  .article-body figure.float-right,
  .article-body figure.float-left {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }
  .article-body .pull-quote { font-size: 1.15rem; padding: 1rem; }

  .article-content h1 { font-size: 1.4rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .share-buttons, .cta-row, .election-banner { display: none; }
  body { background: #fff; font-family: Georgia, serif; }
  .site-header { background: none; }
  .site-header h1 { color: #000; }
  .site-header::before, .site-header::after { display: none; }
  footer { background: none; color: #666; }
  footer::before { display: none; }
  .hero-story, .story-card, .featured-card, .photo-card, .feature-card,
  .cand-card, .candidate, .election-box, .deadlines, .highlights {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ============================================================
   News Sidebar — "From Indian Country" feed link sidebar
   ============================================================ */

.section-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
}

@media (max-width: 1100px) {
  .section-with-sidebar { grid-template-columns: 1fr; }
}

.section-main {
  min-width: 0;
}

.news-sidebar {
  background: #fff;
  border: 1px solid rgba(27, 58, 45, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  align-self: start;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cedar-red);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--cedar-red);
}

.sidebar-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-link-item {
  border-bottom: 1px solid rgba(27, 58, 45, 0.06);
}

.sidebar-link-item:last-child {
  border-bottom: none;
}

.sidebar-link-item a {
  display: block;
  padding: 0.65rem 0;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.sidebar-link-item a:hover {
  color: var(--cedar-red);
}

.sidebar-link-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sidebar-link-source {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-foot {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(27, 58, 45, 0.06);
  font-size: 0.7rem;
  color: #888;
  text-align: center;
  font-style: italic;
}

@media (max-width: 800px) {
  .section-with-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   Share Cards — outbound link cards in the main story grid
   (rendered as <a class="story-card share-card-link">)
   ============================================================ */

.share-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.share-card-link:hover {
  text-decoration: none;
}

@media (max-width: 1100px) {
  .section-with-sidebar .news-sidebar {
    display: block;
  }
}

.share-card-tag {
  background: rgba(139, 37, 0, 0.08);
  color: var(--cedar-red);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.share-card-link::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
  pointer-events: none;
}

.share-card-link:hover::after {
  border-color: var(--cedar-red);
}
