/* ============================================================
   TECH HEADER — Clean, mobile-first, accessible
   ============================================================ */

:root {
  --btt-bg: #f8fafc;
  --btt-white: #ffffff;
  --btt-border: #e2e8f0;
  --btt-radius: 10px;
  --btt-radius-lg: 14px;
  --btt-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.18);
  --btt-slate: #0f172a;
  --btt-blue: #2563eb;
  --btt-muted: #64748b;
  --btt-header-h: 72px;
}

.tech-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--btt-header-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--btt-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tech-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.tech-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.tech-header__logo,
.tech-header__logo-wrap .custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.tech-header__logo-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--btt-slate);
  text-decoration: none;
}

.tech-header__logo-wrap img {
  display: block;
  max-height: 38px;
  width: auto;
}

.tech-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.tech-nav {
  min-width: 0;
}

.tech-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-nav__list li {
  margin: 0;
}

.tech-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--btt-muted);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.tech-nav__list a:hover,
.tech-nav__list .current-menu-item a,
.tech-nav__list .current_page_item a {
  background: #eff6ff;
  color: var(--btt-blue);
}

.tech-header__search {
  position: relative;
  flex-shrink: 0;
}

.tech-search-form {
  position: relative;
}

.tech-search-form__input {
  width: 240px;
  min-height: 44px;
  padding: 11px 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  border: 1px solid var(--btt-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--btt-slate);
  outline: none;
  transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-search-form__input:focus {
  width: 290px;
  border-color: var(--btt-blue);
  background: var(--btt-white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.tech-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  max-width: min(520px, calc(100vw - 32px));
  background: var(--btt-white);
  border: 1px solid var(--btt-border);
  border-radius: 16px;
  box-shadow: var(--btt-shadow);
  overflow: hidden;
  z-index: 1001;
}

.tech-sd-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.tech-sd-item {
  margin: 0;
}

.tech-sd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tech-sd-link:hover {
  background: #f8fafc;
}

.tech-sd-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-sd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-sd-thumb-placeholder {
  font-size: 20px;
  color: #94a3b8;
}

.tech-sd-text {
  flex: 1;
  min-width: 0;
}

.tech-sd-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-sd-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

.tech-sd-empty {
  padding: 18px 16px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #64748b;
}

.tech-header__mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.tech-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--btt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--btt-slate);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tech-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tech-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tech-mobile-menu {
  position: fixed;
  inset: var(--btt-header-h) 0 0 0;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 22px 18px 28px;
  border-top: 1px solid var(--btt-border);
}

.tech-mobile-menu.active {
  transform: translateX(0);
}

.tech-mobile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--btt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--btt-slate);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tech-mobile-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tech-mobile-search {
  margin: 34px 0 28px;
}

.tech-mobile-search .tech-search-form__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
}

.tech-mobile-search .tech-search-dropdown {
  position: static;
  min-width: 0;
  max-width: none;
  margin-top: 10px;
}

.tech-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-mobile-nav__list li {
  margin: 0;
}

.tech-mobile-nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--btt-border);
  border-radius: 14px;
  background: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--btt-slate);
  text-decoration: none;
}

.tech-mobile-nav__list a:hover {
  color: var(--btt-blue);
  border-color: #bfdbfe;
  background: #fff;
}

.tech-header-spacer {
  height: var(--btt-header-h);
}

.tech-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tech-skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--btt-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  z-index: 10000;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
}

@media (max-width: 960px) {
  .tech-nav,
  .tech-header__search,
  .tech-header__actions {
    display: none;
  }

  .tech-header__mobile-controls {
    display: flex;
  }

  .tech-header__inner {
    padding: 0 16px;
  }
}

@media (min-width: 961px) {
  .tech-mobile-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .tech-header__logo-text {
    font-size: 16px;
  }

  .tech-icon-btn {
    width: 42px;
    height: 42px;
  }

  .tech-mobile-menu {
    padding: 18px 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-search-form__input,
  .tech-sd-link,
  .tech-mobile-menu,
  .tech-icon-btn,
  .tech-nav__list a {
    transition: none;
  }
}

@media print {
  .tech-header,
  .tech-header-spacer,
  .tech-mobile-menu {
    display: none;
  }
}