/* ============================================
   GEOTHERMAL INSIDER — Live news wire
   Hero rail panel (homepage) + full feed page
   ============================================ */

/* ---- Hero with rail: two-column at desktop ---- */
.hero--with-rail .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero--with-rail .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    text-align: left;
  }
  .hero--with-rail .subtitle { margin-left: 0; }
  .hero--with-rail .stats-bar { justify-content: flex-start; }
}

/* ---- The rail panel ---- */
.news-rail {
  background: rgba(42, 46, 53, 0.75);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  box-shadow: 0 0 42px rgba(212, 116, 14, 0.12), 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  overflow: hidden;
  text-align: left;
}

.news-rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-border);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 0 rgba(232, 137, 26, 0.6);
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 137, 26, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(232, 137, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 137, 26, 0); }
}

.news-rail-head .rail-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.news-rail-head .rail-title em {
  font-style: normal;
  color: var(--accent-light);
}

.news-rail-head .rail-sub {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---- Wire items ---- */
.wire {
  position: relative;
  padding: 6px 0;
}

.wire::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-light), rgba(212, 116, 14, 0.15));
  box-shadow: 0 0 10px rgba(212, 116, 14, 0.45);
}

.wire-item {
  position: relative;
  display: block;
  padding: 14px 20px 14px 52px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.wire-item:hover { background: rgba(212, 116, 14, 0.08); }

.wire-item + .wire-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.wire-node {
  position: absolute;
  left: 24px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 8px rgba(232, 137, 26, 0.55);
}

.wire-item--new .wire-node {
  background: var(--accent-light);
  animation: live-pulse 2s infinite;
}

.wire-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.wire-beat { color: var(--accent-light); }

.wire-tag-new {
  background: var(--accent);
  color: var(--white-pure);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  letter-spacing: 1px;
}

.wire-time {
  margin-left: auto;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
}

.wire-headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-on-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wire-source {
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--text-on-dark-muted);
}

.wire-source .check { color: var(--accent-light); }

.news-rail-foot {
  border-top: 1px solid var(--dark-border);
  padding: 12px 20px;
  text-align: center;
}

.news-rail-foot a {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
}

.news-rail-foot a:hover { color: var(--white-pure); }

/* ---- Full feed page (/news/feed/) ---- */
.feed-page {
  background: var(--dark);
  padding: 64px 0 var(--section-pad);
  min-height: 70vh;
}

.feed-page .container { max-width: 780px; }

.feed-page-head { text-align: center; margin-bottom: 40px; }

.feed-page-head .label { color: var(--accent-light); }

.feed-page-head h1 {
  color: var(--text-on-dark);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 10px 0 12px;
}

.feed-page-head h1 .highlight { color: var(--accent-light); }

.feed-page-head p { color: var(--text-on-dark-muted); font-size: 0.95rem; }

.feed-stream {
  position: relative;
  padding-left: 34px;
}

.feed-stream::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-light), rgba(212, 116, 14, 0.12));
  box-shadow: 0 0 10px rgba(212, 116, 14, 0.4);
}

.feed-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(212, 116, 14, 0.16);
}

.feed-card::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 8px rgba(232, 137, 26, 0.55);
}

.feed-card--new::before {
  background: var(--accent-light);
  animation: live-pulse 2s infinite;
}

.feed-card h3 {
  color: var(--text-on-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
}

.feed-card p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.feed-card .wire-meta { margin-bottom: 10px; }

.feed-links { display: flex; flex-wrap: wrap; gap: 16px; }

.feed-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
}

.feed-links a:hover { color: var(--white-pure); }

.feed-sentinel {
  text-align: center;
  padding: 26px 0;
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .news-rail { max-width: 560px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .hero--with-rail .stat-number { font-size: 2.4rem; white-space: nowrap; }
}

@media (max-width: 520px) {
  .news-rail-head { flex-wrap: wrap; }
  .news-rail-head .rail-title { white-space: nowrap; }
  .news-rail-head .rail-sub { margin-left: 19px; flex-basis: 100%; }
}
