/**
 * Knowledge Base index — ported from Open Design export (index.html).
 * Scoped under .gc-kb; site header/footer come from the live theme.
 */

.gc-kb {
  --gc-bg:            #f4f6f9;
  --gc-surface:       #ffffff;
  --gc-surface-2:     #f2f3f5;
  --gc-fg:            #131720;
  --gc-muted:         #5b6472;
  --gc-border:        #e3e7ee;
  --gc-accent:        #0967d8;
  --gc-accent-ink:    #0756b6;
  --gc-accent-soft:   #eaf2ff;
  --gc-lime:          #e2ff11;

  --font-display: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --container: 1240px;
  --gutter:    28px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(15,23,42,.06);
  --shadow-md: 0 14px 36px rgba(15,23,42,.09);

  --t-fast: 150ms;
  --t-base: 250ms;
  --ease-out: cubic-bezier(.22,.61,.36,1);

  --od-gap: 12px;
  --od-cols: 3;

  background: var(--gc-bg);
  color: var(--gc-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-knowledge-base,
body.page-id-47575 {
  background: #f4f6f9;
}

.gc-kb *,
.gc-kb *::before,
.gc-kb *::after { box-sizing: border-box; }

.gc-kb img { max-width: 100%; height: auto; }
.gc-kb a { color: inherit; text-decoration: none; }
.gc-kb h1,
.gc-kb h2,
.gc-kb h3,
.gc-kb h4 {
  font-family: var(--font-display);
  color: var(--gc-fg);
  margin: 0;
  letter-spacing: -0.02em;
}
.gc-kb p { margin: 0; }
.gc-kb ul { margin: 0; padding: 0; list-style: none; }
.gc-kb button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

.gc-kb :focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.gc-kb .gc-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gc-kb .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gc-kb .icon {
  width: 1em;
  height: 1em;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.gc-kb .od-grid {
  display: grid;
  gap: var(--od-gap, 12px);
  grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr));
}
.gc-kb .od-tile { display: grid; grid-template-rows: auto 1fr; }
.gc-kb .od-tile > * { display: block; min-width: 0; }

/* breadcrumbs */
.gc-kb .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gc-muted);
  padding-top: 26px;
}
.gc-kb .breadcrumbs a { color: var(--gc-muted); }
.gc-kb .breadcrumbs a:hover { color: var(--gc-accent); }
.gc-kb .breadcrumbs .sep { opacity: .55; }
.gc-kb .breadcrumbs [aria-current] { color: var(--gc-fg); font-weight: 500; }

/* hero */
.gc-kb .kb-hero {
  background: #fff;
  border-bottom: 1px solid var(--gc-border);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.gc-kb .kb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(9,103,216,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  pointer-events: none;
}
.gc-kb .kb-hero .gc-container { position: relative; z-index: 1; }
.gc-kb .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gc-accent);
}
.gc-kb .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gc-accent);
  border-radius: 2px;
}
.gc-kb .kb-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: -0.035em;
}
.gc-kb .kb-hero .lede {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--gc-muted);
}

.gc-kb .kb-search {
  margin-top: 28px;
  max-width: 640px;
  position: relative;
}
.gc-kb .search-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--gc-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
  overflow: hidden;
}
.gc-kb .search-box:focus-within {
  border-color: var(--gc-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(9,103,216,.14), var(--shadow-sm);
}
.gc-kb .search-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 16px;
  color: var(--gc-fg);
  outline: none;
}
.gc-kb .search-box input::placeholder { color: #8b93a1; }
.gc-kb .search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px;
  padding: 0 18px;
  background: var(--gc-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t-fast) ease;
}
.gc-kb .search-btn:hover { background: var(--gc-accent-ink); }
.gc-kb .search-btn .icon { width: 16px; height: 16px; }
.gc-kb .search-btn span { display: none; }
.gc-kb .search-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gc-muted);
}
.gc-kb .search-hint kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface-2);
  color: var(--gc-fg);
}

.gc-kb .hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.gc-kb .stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 15px;
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--gc-muted);
}
.gc-kb .stat-chip b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gc-fg);
}

/* note */
.gc-kb .kb-note { padding-top: 40px; }
.gc-kb .note-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  background: var(--gc-accent-soft);
  border: 1px solid rgba(9,103,216,.22);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.gc-kb .note-card .note-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gc-accent);
  color: #fff;
}
.gc-kb .note-card .note-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.gc-kb .note-card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.gc-kb .note-card p { margin-top: 6px; font-size: 15px; color: #2c3a4e; }
.gc-kb .note-card p + p { margin-top: 10px; }
.gc-kb .note-card strong { color: var(--gc-fg); }

/* browse */
.gc-kb .browse { padding-top: 56px; }
.gc-kb .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.gc-kb .section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.gc-kb .section-head p {
  max-width: 52ch;
  font-size: 15px;
  color: var(--gc-muted);
}

.gc-kb .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.gc-kb .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--gc-border);
  color: var(--gc-fg);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.gc-kb .filter-chip:hover { border-color: rgba(9,103,216,.4); color: var(--gc-accent); }
.gc-kb .filter-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gc-muted);
  background: var(--gc-surface-2);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}
.gc-kb .filter-chip[aria-pressed="true"] {
  background: var(--gc-fg);
  border-color: var(--gc-fg);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.gc-kb .filter-chip[aria-pressed="true"] .count {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.gc-kb .result-status {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--gc-muted);
  min-height: 20px;
}
.gc-kb .result-status b { color: var(--gc-fg); }
.gc-kb .clear-btn {
  color: var(--gc-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gc-kb .hub-grid {
  --od-gap: 22px;
  --od-cols: 3;
  margin-top: 18px;
}
.gc-kb .hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gc-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
@media (hover: hover) {
  .gc-kb .hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(9,103,216,.28);
  }
}
.gc-kb .hub-card[hidden] { display: none; }
.gc-kb .hub-media { position: relative; background: #0f1420; }
.gc-kb .hub-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gc-kb .hub-media .hub-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15,20,32,.78);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gc-kb .hub-media .hub-badge .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc-lime);
}

.gc-kb .hub-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 20px 22px;
  gap: 14px;
}
.gc-kb .hub-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gc-kb .hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--gc-accent-soft);
  color: var(--gc-accent);
}
.gc-kb .hub-icon .icon { width: 21px; height: 21px; stroke-width: 1.9; }
.gc-kb .hub-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.gc-kb .hub-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gc-muted);
}

.gc-kb .term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.gc-kb .term-list li { display: block; }
.gc-kb .term-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gc-fg);
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.gc-kb .term-list a::after {
  content: "↗";
  font-size: 11px;
  color: var(--gc-muted);
  transition: color var(--t-fast) ease;
}
.gc-kb .term-list a:hover {
  background: var(--gc-accent-soft);
  border-color: rgba(9,103,216,.35);
  color: var(--gc-accent);
}
.gc-kb .term-list a:hover::after { color: var(--gc-accent); }
.gc-kb .term-list li[hidden] { display: none; }

.gc-kb .hub-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gc-kb .hub-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gc-muted);
  white-space: nowrap;
}
.gc-kb .hub-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gc-accent);
}
.gc-kb .hub-link .icon { width: 15px; height: 15px; transition: transform var(--t-fast) ease; }
.gc-kb .hub-link:hover .icon { transform: translateX(3px); }

.gc-kb .no-results {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  background: #fff;
  border: 1px dashed var(--gc-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  margin-top: 18px;
}
.gc-kb .no-results[hidden] { display: none; }
.gc-kb .no-results .icon { width: 30px; height: 30px; color: var(--gc-muted); }
.gc-kb .no-results h3 { font-size: 18px; }
.gc-kb .no-results p {
  font-size: 14.5px;
  color: var(--gc-muted);
  max-width: 44ch;
}

/* howto */
.gc-kb .howto { padding-top: 64px; padding-bottom: 72px; }
.gc-kb .howto-card {
  background: #fff;
  border: 1px solid var(--gc-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.gc-kb .howto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.gc-kb .howto-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}
.gc-kb .howto-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gc-muted);
}
.gc-kb .steps {
  --od-gap: 20px;
  --od-cols: 3;
  margin-top: 26px;
}
.gc-kb .step {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-border);
}
.gc-kb .step .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--gc-accent);
  letter-spacing: -0.04em;
}
.gc-kb .step h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.gc-kb .step p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--gc-muted);
  line-height: 1.55;
}
.gc-kb .closing-line {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--gc-muted);
  font-style: italic;
}
.gc-kb .closing-line .icon {
  width: 18px;
  height: 18px;
  color: var(--gc-accent);
  stroke-width: 2;
  flex: none;
}

@media (max-width: 1080px) {
  .gc-kb .hub-grid { --od-cols: 2; }
}
@media (max-width: 900px) {
  .gc-kb .steps { --od-cols: 1; }
}
@media (max-width: 640px) {
  .gc-kb { --gutter: 16px; }
  .gc-kb .hub-grid { --od-cols: 1; }
  .gc-kb .note-card { grid-template-columns: 1fr; }
  .gc-kb .howto-card { padding: 22px; }
  .gc-kb .kb-hero .lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-kb *,
  .gc-kb *::before,
  .gc-kb *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
