/* Hub-only overrides. The shared guide stylesheet also serves the article pages. */
body[data-guide-ux="hub"] .seo-main > .seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(16px, 3vw, 32px) !important;
  border: 1px solid #d9decf !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #edf2e7, #faf8ef) !important;
  text-align: left;
}

body[data-guide-ux="hub"] .seo-main > .seo-hero::before { content: none; }
body[data-guide-ux="hub"] .guide-hub-intro { grid-area: 1 / 1; min-width: 0; }
body[data-guide-ux="hub"] .guide-hub-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #795819;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
}

body[data-guide-ux="hub"] .guide-hub-finder {
  grid-area: 1 / 2;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d2dbc9;
  border-radius: 14px;
  background: #fbfcf8;
  scroll-margin-top: calc(var(--kh3-header-h, 110px) + 12px);
}

body[data-guide-ux="hub"] .guide-hub-finder .kbc-hub-search {
  gap: 2px 10px;
  padding: 10px 12px;
  border-color: #97ab8b;
  border-radius: 10px;
}

body[data-guide-ux="hub"] .guide-hub-finder input { min-height: 28px; font-size: 1rem; }
body[data-guide-ux="hub"] .guide-hub-matches { margin-top: 12px; }
body[data-guide-ux="hub"] .guide-hub-match-count {
  margin: 0 0 6px;
  color: #45613b;
  font-size: .78rem;
  font-weight: 800;
}

body[data-guide-ux="hub"] .guide-hub-match-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-guide-ux="hub"] .guide-hub-match-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #c6d5bf;
  border-radius: 10px;
  background: #fff;
  color: #243d18;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body[data-guide-ux="hub"] .guide-hub-match-list a:hover { border-color: #607649; }
body[data-guide-ux="hub"] .guide-hub-match-list strong { font-size: .96rem; }
body[data-guide-ux="hub"] .guide-hub-match-meta {
  display: block;
  margin-bottom: 3px;
  color: #4f6945;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body[data-guide-ux="hub"] .guide-hub-match-arrow {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e8f0e2;
  color: #294d20;
}

body[data-guide-ux="hub"] .guide-hub-no-match {
  margin: 0;
  color: #505c49;
  font-size: .85rem;
}

body[data-guide-ux="hub"] .guide-hub-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 2px;
  color: #294d20;
  font-size: .85rem;
  font-weight: 800;
}

body[data-guide-ux="hub"] .guide-ux-family-nav {
  padding: 0;
  border: 0;
  margin: 16px 0 0;
}

body[data-guide-ux="hub"] .guide-ux-family-nav a {
  display: inline-flex;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  font-size: .85rem;
}

body[data-guide-ux="hub"] .guide-ux-family-nav a:hover {
  border-color: #607649;
  text-decoration: underline;
}

body[data-guide-ux="hub"] .guide-ux-family-nav a:focus-visible,
body[data-guide-ux="hub"] .guide-hub-finder a:focus-visible,
body[data-guide-ux="hub"] .kbc-hub-tools :is(button, select):focus-visible,
body[data-guide-ux="hub"] .kbc-hub-search:focus-within,
body[data-guide-ux="hub"] .unit-blog-card[data-kbc-card]:focus-visible,
body[data-guide-ux="hub"] .general-guide-card:focus-visible {
  outline: 2px solid #536b35;
  outline-offset: 3px;
}

body[data-guide-ux="hub"] .kbc-hub-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  border: 1px solid #d9decf;
  border-radius: 14px;
  background: #f0f3ea;
}

body[data-guide-ux="hub"] .kbc-hub-search input::placeholder { color: #60695d; }

body[data-guide-ux="hub"] .kbc-hub-tools [data-seo-geo-region] {
  margin: 0;
  font-size: .85rem;
  font-weight: 750;
}

body[data-guide-ux="hub"] .kbc-force-filters,
body[data-guide-ux="hub"] .kbc-hub-results {
  grid-column: 1 / -1;
  margin: 0;
}

body[data-guide-ux="hub"] .kbc-force-filters button { min-height: 44px; }

body[data-guide-ux="hub"] .kbc-hub-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 10px;
  min-height: 44px;
  border-top: 1px solid #d9decf;
}

body[data-guide-ux="hub"] .kbc-hub-status { margin: 0; font-size: .85rem; }

body[data-guide-ux="hub"] .kbc-hub-reset {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #294d20;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

body[data-guide-ux="hub"] .kbc-hub-reset[hidden] { display: none; }
body[data-guide-ux="hub"] .kbc-hub-empty:not([hidden]) { margin: 0 0 18px; }

@media (max-width: 700px) {
  body[data-guide-ux="hub"] .seo-main > .seo-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px !important;
  }

  body[data-guide-ux="hub"] .guide-hub-finder { grid-area: auto; }
  body[data-guide-ux="hub"] .guide-hub-intro { grid-area: auto; padding: 0 4px 4px; }
  body[data-guide-ux="hub"] .guide-ux-family-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-guide-ux="hub"] .kbc-hub-tools { grid-template-columns: minmax(0, 1fr); }
  body[data-guide-ux="hub"] .kbc-hub-tools select { flex: 1; min-width: 0; }
}
