/* ══════════════════════════════════════════
   CulinEire Updates — News Feed
   ══════════════════════════════════════════ */

/* ── Hero image position ────────────────────── */

.hero--news .hero__background img {
  object-fit: cover;
  object-position: center 65%;
}

/* ── Feed shell ────────────────────────────── */

.nf-section {
  padding-block: 2.8rem 4rem;
}

.nf-shell {
  max-width: 740px;
}

.nf-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.nf-toggle {
  min-width: 180px;
}

/* ── Timeline list ─────────────────────────── */

.nf-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Single entry ──────────────────────────── */

.nf-entry {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0 1.75rem;
  position: relative;
  padding-block-end: 2rem;
}

.nf-entry:last-child {
  padding-block-end: 0;
}

/* Vertical connector line between entries */
.nf-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 111px;
  top: 0.55rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

/* ── Entry side (date + dot) ───────────────── */

.nf-entry__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0.15rem;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.nf-entry__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.nf-entry__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--line);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Dot colours per entry type */
.nf-entry__dot--recipe_published,
.nf-entry__dot--article_published        { background: var(--brand); }
.nf-entry__dot--amuse_bouche_published   { background: #a07828; }
.nf-entry__dot--amuse_bouche_featured    { background: #c89030; }
.nf-entry__dot--version_release          { background: #6b5233; }
.nf-entry__dot--security_update          { background: #a01818; }
.nf-entry__dot--site_update              { background: #1e46a0; }
.nf-entry__dot--admin_note               { background: var(--muted); }

/* ── Entry content ─────────────────────────── */

.nf-entry__content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ── Type badge ────────────────────────────── */

.nf-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block-end: 0.1rem;
}

.nf-badge--recipe_published        { background: rgb(24 76 58 / 0.1);   color: #0c4a38; }
.nf-badge--article_published       { background: rgb(24 76 58 / 0.08);  color: #184c3a; }
.nf-badge--amuse_bouche_published  { background: rgb(160 120 40 / 0.10); color: #7a5810; }
.nf-badge--amuse_bouche_featured   { background: rgb(200 144 48 / 0.12); color: #8b6612; }
.nf-badge--version_release         { background: rgb(107 82 51 / 0.1);  color: #5a3f1e; }
.nf-badge--security_update         { background: rgb(180 30 30 / 0.08); color: #9a1010; }
.nf-badge--site_update             { background: rgb(30 70 160 / 0.08); color: #1c42a0; }
.nf-badge--admin_note              { background: var(--surface-muted);  color: var(--ink-soft); }

/* ── Entry title ───────────────────────────── */

.nf-entry__title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  text-decoration: none;
}

a.nf-entry__title:hover,
a.nf-entry__title:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nf-entry__title--plain {
  color: var(--ink);
}

/* ── Message, version, time ────────────────── */

.nf-entry__message {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  white-space: pre-line;
}

.nf-entry__version {
  font-size: 0.73rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  margin: 0;
}

.nf-entry__time {
  font-size: 0.73rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0;
  margin-top: 0.1rem;
}

/* ── Pagination ────────────────────────────── */

.nf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.nf-pagination__info {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 600px) {
  .nf-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-block-end: 1.5rem;
  }

  .nf-entry:not(:last-child)::after {
    display: none;
  }

  .nf-entry__side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0;
  }

  .nf-entry__date {
    font-size: 0.8rem;
    text-align: left;
    white-space: normal;
  }
}
