.page-node-type-graphql-doc h1.page-title {
    font-size: larger;
}
.grahiql-kw-layout {
  display: flex;
  flex-wrap: wrap; /* allow stacking if needed */
  position: relative;
}

.grahiql-kw-sidebar {
  flex: 0 0 0;
  max-width: 0;
  min-width: 0;
  background: #f2f2f2;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
}
.grahiql-kw-sidebar .view-content {
  height: 60vh;
  overflow-y: auto;
}
.grahiql-kw-main-content {
  flex: 1; /* take remaining space */
  background: #fff;
  padding: 1rem;
}

.grahiql-kw-sidebar a {
  text-decoration: none;
}

.grahiql-kw-sidebar .views-view-responsive-grid__item {
  border-bottom: 1px solid #c6c9c9;
  padding: 3px 0;
}

/* Toggle button */
.sidebar-toggle {
  position: absolute;
  top: 0;
  left: 16px; /* Just outside sidebar when expanded */
  z-index: 100;
  cursor: pointer;

  /* Size */
  width: auto;
  height: auto;
  padding: 0.25rem 0.25rem;

  /* Style */
  background: #ddd;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  transition: left 0.3s ease; /* smooth slide */
}

/* Collapsed state */
.grahiql-kw-layout.sidebar-expanded .grahiql-kw-sidebar {
  flex: 0 0 400px;
  max-width: 400px;
  min-width: 400px;
  padding: 0;
  overflow: hidden;
}

.grahiql-kw-layout.sidebar-expanded .sidebar-toggle {
  left: 10px; /* Move button to edge when collapsed */
}
.grahiql-kw-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #f9f9f9;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
  gap: 1rem; /* small space between columns */
}

.grahiql-kw-info > div {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  min-width: 250px; /* makes them look like evenly spaced columns */
}


/* Mobile view */
@media (max-width: 768px) {
  .grahiql-kw-sidebar,
  .grahiql-kw-main-content {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .sidebar-toggle {
    left: 10px; /* Always at edge for mobile */
  }
  .grahiql-kw-info {
    gap: 0.5rem; /* Smaller gap for mobile */
    padding: 0.5rem;
  }
}


/* Badge styling */

.r-type-Query {
  color: #ffffff !important;
  background: rgb(0 116 17) !important;
}

.r-type-Mutation {
  color: #ffffff !important;
  background: #921300 !important;
}

.r-type-V1 {
    color: #fff !important;
    background-color: #767171 !important;
}    

.r-type-V2 {
  color: #ffffff !important;
  background-color: #000000 !important;
} 

.r-type-EC {
  color: #ffffff !important;
  background-color: #a35b02 !important;
} 

.r-small {
  font-size: .5rem !important;
}