/* Modern research, catalog, and documentation pages */
:root {
  --hub-ink: #111827;
  --hub-muted: #3e3f41;
  --hub-soft: #f5f7fb;
  --hub-line: #dfe6ef;
  --hub-card: #ffffff;
  --hub-brand: #ff7746;
  --hub-brand-dark: #ff7746;
  --hub-accent: #174687;
  --hub-dark: #08111f;
  --hub-dark-2: #0f1f33;
  --hub-success: #187a55;
  --hub-shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
}

body.hub-page {
  margin: 0;
  background: var(--hub-soft);
  color: var(--hub-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.hub-page a {
  color: inherit;
}

.hub-topbar {
  background: #07111d;
  color: #dbe6f4;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hub-topbar a {
  color: #f3c98b;
  text-decoration: none;
  font-weight: 700;
}

.hub-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.hub-nav .navbar-brand img {
  width: 186px;
  height: auto;
}

.hub-nav .nav-link {
  color: #1f2937 !important;
  font-weight: 750;
  margin: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 10px;
}

.hub-nav .nav-link:hover,
.hub-nav .nav-link.active {
  color: var(--hub-brand-dark) !important;
  background: rgba(196, 122, 44, 0.1);
}

.hub-nav .dropdown-menu {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  box-shadow: var(--hub-shadow);
  padding: 8px;
}

.hub-nav .dropdown-item {
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 650;
}

.hub-nav .dropdown-item:hover {
  background: #f5efe7;
  color: var(--hub-brand-dark);
}

.hub-icon-btn,
.hub-login {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.hub-icon-btn {
  width: 42px;
  border: 1px solid var(--hub-line);
  background: #fff;
  color: var(--hub-ink);
}

.hub-login {
  padding: 0 16px;
  border: 0;
  background: var(--hub-dark);
  color: #fff;
}

.hub-login:hover {
  color: #fff;
  background: var(--hub-brand-dark);
}

.hub-search-panel {
  position: absolute;
  inset: 100% 0 auto;
  background: #fff;
  border-bottom: 1px solid var(--hub-line);
  box-shadow: var(--hub-shadow);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.hub-search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hub-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.hub-search-form input,
.hub-search-form select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-ink);
}

.hub-search-form input {
  flex: 1 1 200px;
  min-width: 120px;
}

.hub-search-form select {
  font-weight: 700;
}

.hub-search-form button {
  border: 0;
  background: transparent;
  color: var(--hub-muted);
}

.hub-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.95), rgba(15, 31, 51, 0.9)),
    url("/assets/optimized/researcher.webp") center/cover no-repeat;
  color: #fff;
  padding: 74px 0 46px;
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8d49d;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hub-hero h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
  margin: 0 0 18px;
}

.hub-hero p {
  max-width: 760px;
  color: #d7e0ec;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
}

.hub-hero-actions,
.hub-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hub-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--hub-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.hub-btn:hover {
  color: #fff;
  background: var(--hub-brand-dark);
}

.hub-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.hub-btn.light {
  background: #fff;
  color: var(--hub-ink);
  border-color: var(--hub-line);
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f7ead8;
  font-size: 0.88rem;
  font-weight: 750;
}

.hub-main {
  padding: 52px 0 72px;
}

.hub-section {
  margin-top: 42px;
}

.hub-section:first-child {
  margin-top: 0;
}

.hub-section-header {
  max-width: 800px;
  margin-bottom: 24px;
}

.hub-eyebrow {
  color: var(--hub-brand-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.hub-section h2,
.hub-section-header h2 {
  color: var(--hub-ink);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
  margin: 6px 0 10px;
}

.hub-section p,
.hub-section li {
  color: var(--hub-muted);
  line-height: 1.72;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card,
.hub-panel {
  background: var(--hub-card);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  box-shadow: var(--hub-shadow);
}

.hub-card {
  padding: 22px;
}

.hub-card h3 {
  color: var(--hub-ink);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 10px 0 8px;
}

.hub-card p {
  margin-bottom: 0;
}

.hub-card a:not(.hub-btn) {
  color: var(--hub-brand-dark);
  font-weight: 850;
  text-decoration: none;
}

.hub-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #f5efe7;
  color: var(--hub-brand-dark);
  font-size: 1.2rem;
}

.hub-panel {
  padding: 26px;
}

.hub-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-link-list a,
.hub-resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  color: var(--hub-ink);
  text-decoration: none;
  font-weight: 800;
}

.hub-link-list a:hover,
.hub-resource-link:hover {
  border-color: rgba(196, 122, 44, 0.35);
  color: var(--hub-brand-dark);
}

.hub-note {
  padding: 18px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.hub-note strong {
  color: #7c2d12;
}

.hub-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hub-toc a {
  text-decoration: none;
  font-weight: 850;
  color: var(--hub-ink);
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.hub-toc a:hover {
  color: var(--hub-brand-dark);
  border-color: rgba(196, 122, 44, 0.35);
}

.hub-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  box-shadow: var(--hub-shadow);
}

.hub-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.hub-table th,
.hub-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--hub-line);
  vertical-align: top;
}

.hub-table th {
  color: var(--hub-ink);
  background: #f8fafc;
  font-weight: 900;
}

.hub-table td {
  color: var(--hub-muted);
}

.hub-faq {
  display: grid;
  gap: 12px;
}

.hub-faq details {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.hub-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--hub-ink);
  font-weight: 900;
}

.hub-faq summary::-webkit-details-marker {
  display: none;
}

.hub-faq details[open] summary {
  color: var(--hub-brand-dark);
  background: #fbf7f1;
}

.hub-faq details p,
.hub-faq details ul {
  padding: 0 20px 18px;
  margin: 0;
}

.hub-catalog-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hub-filter-panel {
  position: sticky;
  top: 94px;
}

.hub-filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--hub-ink);
  font-weight: 850;
  margin-bottom: 14px;
}

.hub-filter-panel select,
.hub-filter-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hub-ink);
  padding: 0 12px;
}

.hub-category-row {
  display: grid;
  gap: 8px;
}

.hub-category-row button {
  min-height: 42px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hub-ink);
  text-align: left;
  padding: 0 12px;
  font-weight: 800;
}

.hub-category-row button.active,
.hub-category-row button:hover {
  color: var(--hub-brand-dark);
  border-color: rgba(196, 122, 44, 0.4);
  background: #fbf7f1;
}

.hub-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hub-page .products-grid {
  gap: 18px;
}

.hub-page .product-card {
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--hub-shadow);
  color: var(--hub-ink);
}

.hub-page .product-card:hover,
.hub-page .product-card.active {
  transform: translateY(-4px);
  border-color: rgba(196, 122, 44, 0.38);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.12);
}

.hub-page .product-media {
  background: #f8fafc;
}

.hub-page .product-media img {
  object-fit: contain;
  padding: 10px;
}

.hub-page .product-chip,
.hub-page .product-rating-row {
  color: var(--hub-muted);
}

.hub-page .product-title,
.hub-page .product-card h3 {
  color: var(--hub-ink) !important;
}

.hub-page .product-description {
  color: var(--hub-muted);
}

.hub-page .product-price {
  color: var(--hub-brand-dark);
}

.hub-page .add-cart-btn,
.hub-page .view-product-btn {
  border-radius: 8px;
}

.hub-footer {
  background: var(--hub-dark);
  color: #dbe6f4;
  padding: 58px 0 22px;
}

.hub-footer a {
  color: #dbe6f4;
  text-decoration: none;
}

.hub-footer a:hover {
  color: #f3c98b;
}

.hub-footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 16px;
}

.hub-footer p,
.hub-footer li {
  color: #b8c4d4;
  line-height: 1.7;
}

.hub-footer h2,
.hub-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.hub-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.hub-footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.hub-footer-bottom p {
  margin: 0;
}

.hub-footer-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 991px) {
  .hub-topbar {
    display: none;
  }

  .hub-nav .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--hub-line);
    background: #fff;
  }

  .hub-search-form {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .hub-search-form input,
  .hub-search-form select {
    min-height: 42px;
    flex: 1 1 100%;
  }

  .hub-grid,
  .hub-grid.two,
  .hub-catalog-shell {
    grid-template-columns: 1fr;
  }

  .hub-filter-panel {
    position: static;
  }

  .hub-hero {
    padding: 54px 0 38px;
  }
}

@media (max-width: 575.98px) {
  .hub-main {
    padding: 38px 0 56px;
  }

  .hub-hero h1 {
    font-size: 2.25rem;
  }

  .hub-hero-actions .hub-btn,
  .hub-btn {
    width: 100%;
  }

  .hub-result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
