/* The Verifier 2026: header ([tv_header], [tv_header_mobile]). */

/* Logo and icons per mode */
body.tv-2026[data-theme="dark"] .tv-on-light,
body.tv-2026:not([data-theme="dark"]) .tv-on-dark {
  display: none !important;
}

/* Foxiz wrappers: no background or shadow of their own */
body.tv-2026 .header-template .navbar-outer,
body.tv-2026 .header-template-inner,
body.tv-2026 .header-mobile,
body.tv-2026 .header-mobile-wrap {
  background: var(--tv-bg);
  box-shadow: none;
}

.tvh {
  background: var(--tv-bg);
  border-bottom: 1px solid var(--tv-line);
  font-family: var(--tv-font);
  color: var(--tv-text);
}
.tvh a { text-decoration: none; }

/* Logo */
.tvh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--tv-text);
}
.tvh-logo__mark { display: block; width: 46px; height: 30px; }
/* The wordmark is outlined Archivo ExtraBold caps (no font to load). Height = cap height. */
.tvh-logo__word { display: block; width: 157px; height: 13.7px; overflow: visible; }
.tvh-logo--sm .tvh-logo__mark { width: 40px; height: 26px; }
.tvh-logo--sm .tvh-logo__word { width: 134px; height: 11.7px; }

/* Icon buttons */
.tvh-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tv-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tvh-btn:hover { color: var(--tv-accent-text); }
.tvh-btn svg { display: block; }
.tvh-btn > span { display: inline-flex; }

/* Desktop */
.tvh__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.tvh-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
  min-width: 0;
}
.tvh-nav a {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--tv-muted);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.tvh-nav a:hover { color: var(--tv-text); }
.tvh-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  min-width: 0;
  height: 76px;
  overflow: hidden; /* a category that doesn't fit drops to a hidden second row */
}
.tvh-nav__list a { height: 76px; box-sizing: border-box; }
.tvh-nav a.tvh-nav__all { flex-shrink: 0; color: var(--tv-accent-text); } /* the last item, the way to every topic */
/* Pages and links from the menu (מפרטים, דילים): pinned at the end, a hairline away from the categories (inc/header.php) */
.tvh-nav__pins { display: flex; align-items: stretch; flex-shrink: 0; position: relative; margin-inline-start: 8px; padding-inline-start: 8px; }
.tvh-nav__pins::before { content: ""; position: absolute; inset-inline-start: 0; top: 26px; bottom: 26px; width: 1px; background: var(--tv-line); }
.tvh-nav a.is-current {
  color: var(--tv-text);
  font-weight: 800;
  border-bottom-color: var(--tv-cyan);
}
.tvh-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tvh-app {
  margin-right: 12px;
  min-height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  background: var(--tv-cyan);
  color: var(--tv-navy) !important;
  font-size: 15px;
  font-weight: 700;
}

/* Search field that opens under the bar */
.tvh-search {
  display: flex;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 16px;
}
.tvh-search[hidden] { display: none; }
.tvh-search input {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--tv-line);
  border-radius: 0;
  background: var(--tv-surface);
  color: var(--tv-text);
  font: 500 16px var(--tv-font);
}
.tvh-search input:focus { outline: 2px solid var(--tv-cyan); outline-offset: -2px; }
.tvh-search button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--tv-cyan);
  color: var(--tv-navy);
  font: 700 15px var(--tv-font);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--tv-cut-md) 100%, 0 calc(100% - var(--tv-cut-md)));
}

/* Mobile */
.tvh--mobile { width: 100%; }
.tvh__bar {
  height: 58px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tvh--mobile .tvh-search { padding: 4px 16px 12px; }
.tvh-nav--scroll {
  flex: none;
  gap: 2px;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tvh-nav--scroll::-webkit-scrollbar { display: none; }
.tvh-nav--scroll a {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 12px;
  border-top: 0;
}

/* Mobile menu that Foxiz opens from the burger */
body.tv-2026 .mobile-collapse {
  background: var(--tv-bg);
  font-family: var(--tv-font);
}
body.tv-2026 .mobile-collapse a { color: var(--tv-text); }

/* Mobile bar: two equal sides so the logo stays centred */
.tvh__side {
  flex: 1;
  display: flex;
  align-items: center;
}
.tvh__side--end { justify-content: flex-end; }

/* App button: keep the whole word visible */
.tvh-app {
  flex-shrink: 0;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap;
  overflow: visible;
  padding: 0 22px 0 24px;
}
