/* Nonce Live Feed — tabbed homepage feed
 * Editorial palette: ink #0A0A0A, cream #FAFAF7, red #B8242B, mute #6B6B68
 */

.nonce-feed {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Tabs row ---- */
.nonce-feed__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid #EFEFEC;
  padding-bottom: 0;
  margin-bottom: 24px;
  position: relative;
}

.nonce-feed__tab {
  background: transparent;
  border: 0;
  padding: 12px 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  color: #6B6B68;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nonce-feed__tab:hover {
  color: #0A0A0A;
}

.nonce-feed__tab.is-active {
  color: #0A0A0A;
  border-bottom-color: #B8242B;
  font-weight: 600;
}

.nonce-feed__live {
  margin-left: auto;
  font-size: 0.8125rem;
  color: #6B6B68;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nonce-feed__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B8242B;
  animation: nonce-pulse 1.6s ease-in-out infinite;
}

@keyframes nonce-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ---- Panels ---- */
.nonce-feed__panel {
  display: none;
}

.nonce-feed__panel.is-active {
  display: block;
}

.nonce-feed__loading {
  padding: 48px 0;
  text-align: center;
  color: #6B6B68;
  font-style: italic;
}

.nonce-feed__empty {
  padding: 48px 16px;
  text-align: center;
  color: #6B6B68;
}

.nonce-feed__empty p { margin: 4px 0; }
.nonce-feed__empty-hint { font-size: 0.875rem; font-style: italic; }

/* ---- Story list ---- */
.nonce-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nonce-feed__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #EFEFEC;
}

.nonce-feed__item:last-child {
  border-bottom: 0;
}

.nonce-feed__thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
}

.nonce-feed__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nonce-feed__thumb-link:hover .nonce-feed__thumb {
  transform: scale(1.04);
}

.nonce-feed__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nonce-feed__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #6B6B68;
}

.nonce-feed__cat {
  color: #B8242B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 0.6875rem;
}

.nonce-feed__cat:hover {
  text-decoration: underline;
}

.nonce-feed__meta time::before {
  content: "·";
  margin-right: 12px;
  margin-left: -8px;
  color: #C9C9C5;
}

.nonce-feed__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.nonce-feed__title a {
  color: #0A0A0A;
  text-decoration: none;
}

.nonce-feed__title a:hover {
  color: #B8242B;
}

.nonce-feed__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: #4A4A47;
  line-height: 1.5;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .nonce-feed__tab {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }

  .nonce-feed__live { display: none; }

  .nonce-feed__item {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .nonce-feed__title {
    font-size: 1.0625rem;
  }

  .nonce-feed__excerpt {
    display: none; /* save space on mobile, headline + meta is enough */
  }
}
