/* ==========================================================================
   KNOWLEDGE HUB - MASTER STYLESHEET (WTI CABS INTEGRATED)
   Refined for: B2B Buyer Enablement & WTI Cabs Brand Alignment
   ========================================================================== */

/* 1. CORE DEFAULTS - Matches WTI Cabs Typography and Professional Tone */
body {
  /* font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
  font-family: "Lato", sans-serif;
  /* max-width: 850px;
    margin: 40px auto;
    padding: 20px; */
  line-height: 1.6;
  color: #212f62; /* WTI Primary Navy (Cello) */
  background-color: #f8fafc;
}
.wti-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}
.hub-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
/* 2. BUYER ENABLEMENT HOME PAGE */
.hub-home-hero {
  text-align: left;
  padding: 60px 40px;
  background: linear-gradient(90deg, #007BFF 0%, #212F62 100%);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 40px;
}
.hub-home-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}
.hub-tagline {
  font-size: 1.1rem;
  color: #d1d5db;
  font-weight: 400;
}

.hub-enablement-note {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 20px;
  font-weight: 500;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.hub-trunk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}
.hub-trunk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.hub-trunk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #212f62;
}
.hub-card-cta {
  display: block;
  margin-top: 15px;
  font-weight: 700;
  color: #212f62;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* 3. NAVIGATION COMPONENTS */
.hub-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 25px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-breadcrumbs a {
  text-decoration: none;
  color: #212f62;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.hub-breadcrumbs a:hover {
  color: #1a1950; /* WTI Darker Accent (Bunting) */
  border-bottom: 1px solid #212f62;
}
.hub-breadcrumb-current {
  color: #475569;
  font-weight: 700;
  pointer-events: none;
}

.hub-sub-nav {
  margin: 30px 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.hub-sub-nav h2 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #212f62;
}

.hub-anchor-nav {
  background: #f1f5f9;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
}
.hub-anchor-nav a {
  color: #212f62;
  text-decoration: none;
  margin-right: 15px;
  font-weight: 600;
}

/* 4. CONTENT HIERARCHY */
.hub-headline {
  font-size: 2.2rem;
  color: #212f62;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hub-intro {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 20px;
}
.hub-scope {
  background: #f8fafc;
  padding: 15px 20px;
  border-left: 5px solid #212f62;
  margin: 25px 0;
  font-style: italic;
  color: #334155;
}

/* 5. DIAGNOSTIC RED FLAGS (Leaf Pages) */
.hub-signals {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.hub-signals li {
  padding: 10px 15px;
  background: #fff1f2;
  border-left: 4px solid #fecaca;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
  color: #be123c;
}

/* 6. ACCORDIONS & ANIMATIONS */
details {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #212f62;
  background: #f8fafc;
  outline: none;
}
.hub-qa-id {
  font-weight: 400 !important;
  font-size: 0.8rem !important;
  color: #64748b;
  margin-right: 6px;
}

.hub-qa-content,
.hub-concept-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease-in-out,
    padding 0.3s ease;
}
details[open] > .hub-qa-content,
details[open] > .hub-concept-content {
  max-height: 5000px;
  padding: 20px;
  border-top: 1px solid #e2e8f0;
}

/* 7. Q&A DEMARCATION (Aesthetic Upgrade) */
.hub-id-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.geo-question {
  font-size: 0.95rem;
  color: #1e293b;
  background: #f9fafb;
  padding: 18px;
  border-radius: 8px;
  border-left: 5px solid #212f62;
  margin-bottom: 20px;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.geo-question::before {
  content: "BUYER CONCERN";
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #212f62;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

/* Scoped Content (DB Answers) */
.answer p {
  margin-bottom: 1.2rem;
  color: #475569;
}
.answer p:first-of-type {
  font-weight: 600;
  color: #212f62;
}
.answer img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e2e8f0;
}

/* 8. GLOSSARY & PILLS (WTI Navy Accents) */
.hub-page-glossary {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}
.hub-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.hub-glossary-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.hub-glossary-mini-card {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.hub-glossary-card-link:hover .hub-glossary-mini-card {
  border-color: #212f62;
  background-color: #f0f7ff;
  transform: translateY(-2px);
}

.hub-glossary-term {
  font-weight: 700;
  color: #212f62;
  font-size: 0.95rem;
  margin-bottom: 5px;
  text-decoration: none;
}

.hub-glossary-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}

.hub-term {
  color: #212f62;
  border-bottom: 1.5px dotted #212f62;
  cursor: help;
  font-weight: 600;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-synonym {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}
.pill-vernacular {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-style: italic;
}
.pill-neutral {
  background: #f1f5f9;
  color: #212f62;
  border: 1px solid #cbd5e0;
}

/* 9. MASTER GLOSSARY PAGE */
.glossary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 12px;
}
.glossary-variants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}
.glossary-variants strong {
  font-size: 0.85rem;
  color: #475569;
  min-width: 150px;
  font-weight: 700;
}

/* Sitemap top-nav indicator */
.hub-breadcrumbs a[href*="sitemap.html"] {
  color: #2c5282;
  font-weight: 800;
  border-right: 1px solid #cbd5e0;
  padding-right: 10px;
  margin-right: 5px;
}

/* Second: Reduce vertical gap while maintaining aesthetics */
.hub-sitemap-tree .hub-concept-accordion {
  margin-bottom: 4px !important; /* Tightens the vertical stack */
}

.hub-sitemap-tree .hub-concept-content {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Third: Branch link styling to distinguish from expander */
.sitemap-branch-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
}

.sitemap-branch-link:hover {
  color: #2c5282; /* WTI/StoryProcess Brand Blue */
  text-decoration: underline;
}

/* Prevent the summary click from triggering the link if the text is clicked */
summary a {
  position: relative;
  z-index: 10;
}
