/* The Verifier 2026: category pages. Mobile first; desktop from 1025px. */

.tvcat { font-family: var(--tv-font); color: var(--tv-text); padding: 0 0 48px; }
.tvcat a { text-decoration: none; color: inherit; }
.tvcat h1, .tvcat h2 { font-family: var(--tv-font); color: var(--tv-text); margin: 0; }

/* Header: type, not a photo */
.tvcat__head { padding: 22px 16px 18px; border-bottom: 1px solid var(--tv-line); }
.tvcat__titles { display: flex; flex-direction: column; gap: 10px; }
.tvcat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tvcat__h1 { font-size: 52px !important; line-height: 0.9 !important; font-weight: 800 !important; letter-spacing: -1.6px; }
.tvcat__desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--tv-body); }

/* Foxiz follow button, restyled */
.tvcat__follow .rb-follow {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--tv-cyan);
  border-radius: 0;
  background: transparent;
  color: var(--tv-text);
  font: 700 15px var(--tv-font);
  cursor: pointer;
  white-space: nowrap;
}
.tvcat__follow .rb-follow:empty { display: none; }
.tvcat__follow .rb-follow.followed { background: var(--tv-cyan); color: var(--tv-navy); }

/* Sub-topics */
.tvcat__chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; scrollbar-width: none; }
.tvcat__chips::-webkit-scrollbar { display: none; }
.tvcat__chips a { flex-shrink: 0; min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; background: var(--tv-chip-bg); color: var(--tv-text); }
.tvcat__chips a.is-current { background: var(--tv-cyan); color: var(--tv-navy); }

/* Lead + secondaries */
.tvcat__top { margin-top: 22px; }
.tvcat__lead { display: flex; flex-direction: column; }
.tvcat__lead-img { width: 100%; height: 230px; object-fit: cover; }
.tvcat__lead-box { position: relative; margin: -40px 16px 0; padding: 18px 16px 22px; background: var(--tv-bg); display: flex; flex-direction: column; gap: 10px; }
.tvcat__lead-box::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--tv-band); }
.tvcat__lead-title { font-size: 23px; line-height: 1.2; font-weight: 700; }
.tvcat .tv-meta { font-size: 13px; }
.tvcat .tv-meta .tv-av { width: 28px; height: 28px; }
.tvcat .tv-meta__name { display: inline; }

.tvcat__seconds { padding: 0 16px; }
.tvcat__second { display: flex; flex-direction: row-reverse; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--tv-line); }
.tvcat__second-img { width: 100px; height: 76px; flex-shrink: 0; object-fit: cover; }
.tvcat__second-txt { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tvcat__second-title { font-size: 17px; line-height: 1.3; font-weight: 700; }

/* Feed */
.tvcat__body { padding: 0 16px; }
.tvfeed { display: flex; flex-direction: column; }
.tvfeed__item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--tv-line); }
.tvfeed__txt { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tvfeed__label { font-size: 12px; font-weight: 700; color: var(--tv-accent-text); }
.tvfeed__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.tvfeed__date { font-size: 12px; color: var(--tv-muted); }
.tvfeed__img { width: 100px; height: 76px; flex-shrink: 0; object-fit: cover; }

/* Pagination */
.tvpager { display: flex; flex-wrap: wrap; gap: 6px; padding: 28px 0 0; }
.tvpager .page-numbers {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tv-surface); color: var(--tv-text);
  font-size: 15px; font-weight: 700;
}
.tvpager .page-numbers.current { background: var(--tv-cyan); color: var(--tv-navy); }
.tvpager .page-numbers.dots { background: none; }

/* Sidebar: most read */
.tvside { margin-top: 36px; }
.tvside__t { font-size: 22px !important; line-height: 1.2; font-weight: 700; margin-bottom: 6px !important; }
.tvside__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--tv-line); }
.tvside__n { flex-shrink: 0; width: 26px; font-size: 28px; line-height: 1; font-weight: 800; color: var(--tv-accent-text); }
.tvside__txt { display: flex; flex-direction: column; gap: 6px; }
.tvside__title { font-size: 16px; line-height: 1.35; font-weight: 700; }

/* ================= Desktop ================= */
@media (min-width: 1025px) {
  .tvcat__head, .tvcat__chips, .tvcat__top, .tvcat__body { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  .tvcat__head { padding-top: 40px; padding-bottom: 24px; }
  .tvcat__row { justify-content: flex-start; align-items: center; gap: 24px; }
  .tvcat__h1 { font-size: 104px !important; line-height: 0.88 !important; letter-spacing: -3.5px; }
  .tvcat__desc { font-size: 19px; max-width: 760px; }
  .tvcat__chips { padding: 20px 0; overflow: visible; flex-wrap: wrap; }
  .tvcat__chips a { min-height: 40px; padding: 0 16px; font-size: 15px; }

  .tvcat__top { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .tvcat__lead-img { height: 440px; }
  .tvcat__lead-box { margin: -80px 32px 0; padding: 28px 32px 34px; gap: 14px; }
  .tvcat__lead-box::after { height: 6px; }
  .tvcat__lead-title { font-size: 36px; line-height: 1.12; letter-spacing: -0.4px; }
  .tvcat__seconds { padding: 0; display: flex; flex-direction: column; gap: 28px; }
  .tvcat__second { flex-direction: column; gap: 12px; padding: 0; border: 0; }
  .tvcat__second-img { width: 100%; height: 200px; }
  .tvcat__second-title { font-size: 20px; line-height: 1.25; }

  .tvcat__body { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .tvfeed__item--big { gap: 24px; align-items: center; padding: 22px 0; }
  .tvfeed__item--big .tvfeed__title { font-size: 21px; }
  .tvfeed__item--big .tvfeed__label, .tvfeed__item--big .tvfeed__date { font-size: 13px; }
  .tvfeed__item--big .tvfeed__img { width: 220px; height: 132px; }
  .tvside { margin-top: 0; position: sticky; top: 100px; }
}

/* Follow button: a labelled button instead of Foxiz's bare "+" icon */
.tvcat__follow .rb-follow { width: auto !important; height: auto !important; border-radius: 0 !important; font-size: 15px !important; }
.tvcat__follow .rb-follow i { display: none !important; }
.tvcat__follow .rb-follow::before { content: "+ עקבו"; line-height: 1; }
.tvcat__follow .rb-follow.followed::before { content: "✓ במעקב"; }
.tvcat__follow .rb-follow:empty { display: inline-flex; }

/* Mobile: room between the lead's brand band and the list below it */
@media (max-width: 1024px) {
  .tvcat__lead { margin-bottom: 16px; }
}

/* Mobile: clear gap under the lead's band */
@media (max-width: 1024px) {
  .tvcat__lead { margin-bottom: 0; }
  .tvcat__seconds { margin-top: 28px; }
  .tvcat__seconds .tvcat__second:first-child { padding-top: 0; }
}

/* Desktop: the lead column fills the height of the two secondaries, so the band lines up with their bottom */
@media (min-width: 1025px) {
  .tvcat__top { align-items: stretch; }
  .tvcat__lead { height: 100%; }
  .tvcat__lead-img { flex: 1 1 auto; min-height: 420px; height: auto; }
  .tvcat__lead-box { flex: 0 0 auto; }
  .tvcat__second-img { height: 180px; }
  .tvcat__body { margin-top: 56px; }
}

/* Desktop: tighter */
@media (min-width: 1025px) {
  .tvcat__seconds { gap: 20px; }
  .tvcat__second { gap: 10px; }
  .tvcat__second-img { height: 160px; }
  .tvcat__lead-img { min-height: 360px; }
  .tvcat__body { margin-top: 32px; }
}
