/*
 * The feed: topic tabs, time headings, "new stories" button, "read up to
 * here" line and the caught-up screen. The layout with the side column is
 * in side-column.css, the lead story and the choose card in lead.css.
 */
.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px;
  scrollbar-width: none; position: sticky; top: 60px; z-index: 3; background: var(--bg);
  /* Fades at the far end, so it is clear the row goes on (D39). */
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 40px);
  mask-image: linear-gradient(to left, transparent 0, #000 40px);
  padding-inline-end: 40px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; min-height: 36px;
}
.tab[aria-selected="true"] { background: var(--brown); color: #fff; border-color: var(--brown); }

.feed-status { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 0.85rem; padding: 4px 2px; }
.feed-status button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.time-heading { font-size: 0.95rem; font-weight: 700; color: var(--text-2); margin: 18px 4px 0; }

.new-stories {
  position: sticky; top: 112px; z-index: 4; display: block; margin: 8px auto;
  border: 0; border-radius: 999px; padding: 8px 18px; background: var(--honey); color: #1a1a1a;
  font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
.seen-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.8rem; margin: 6px 0; }
.seen-line::before, .seen-line::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }

.caught-up { text-align: center; padding: 40px 12px; }
.caught-up .bee { font-size: 3rem; }
.caught-up h2 { margin: 8px 0; }
.caught-up blockquote { margin: 16px auto; max-width: 440px; font-size: 1.15rem; font-weight: 600; }
.honeycomb { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.honeycomb span { width: 22px; height: 24px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--line); }
.honeycomb span.on { background: var(--honey); }

.skeleton { height: 110px; border-radius: var(--radius); margin: 10px 0; background: linear-gradient(90deg, var(--line), var(--card), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .card { transition: none; } }

.help { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; font-size: 0.9rem; }
.help kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-family: inherit; }
