/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  margin: 0 0 12px;
  font-size: 13px;
  color: #555;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a {
  color: #269253;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  color: #aaa;
}
.breadcrumbs [aria-current='page'] {
  color: #2b2b2b;
  font-weight: 600;
}

/* ---------- json-block ---------- */
.json-block {
  margin: 16px 0 24px;
}
.json-block__label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #2b2b2b;
}
.json-block__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.json-block__toggle {
  display: inline-flex;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
}
.json-block__toggle-btn {
  background: #fff;
  color: #2b2b2b;
  border: 0;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}
.json-block__toggle-btn.is-active {
  background: #0a0a0a;
  color: #fff;
}
.json-block__actions {
  display: inline-flex;
  gap: 6px;
}
.json-block__btn {
  background: #0a0a0a;
  color: #fff;
  border: 0;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.json-block__btn:hover {
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.18);
}
.json-block pre {
  margin: 0;
}
.json-block__code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  overflow: auto;
  max-height: 480px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #232323;
  color: #f5f5f5;
}

/* ---------- snippet-tabs ---------- */
.snippet-tabs {
  margin: 16px 0 24px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.snippet-tabs__tablist {
  display: flex;
  flex-wrap: wrap;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.snippet-tabs__tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
  font-family: inherit;
}
.snippet-tabs__tab.is-active {
  color: #2b2b2b;
  border-bottom-color: #269253;
  background: #fff;
}
.snippet-tabs__panel {
  position: relative;
  background: #232323;
}
.snippet-tabs__panel[hidden] {
  display: none;
}
.snippet-tabs__panel pre {
  margin: 0;
}
.snippet-tabs__panel code {
  display: block;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #f5f5f5;
  white-space: pre;
  overflow: auto;
  max-height: 480px;
}
.snippet-tabs__panel-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}
.snippet-tabs__copy {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.snippet-tabs__copy:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ---------- related footer ---------- */
.related {
  margin: 40px 0 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}
.related h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.related h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin: 0 0 6px;
}
.related__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.related__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related__col li {
  margin: 4px 0;
}
.related__col a {
  color: #269253;
  text-decoration: none;
  font-size: 14px;
}
.related__col a:hover {
  text-decoration: underline;
}
.related__col small {
  color: #888;
}

/* ---------- intro / "when to use" blocks ---------- */
.when-to-use {
  background: #f0fbf4;
  border-left: 4px solid #269253;
  padding: 12px 16px;
  margin: 16px 0 24px;
  border-radius: 0 8px 8px 0;
}
.when-to-use h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2b2b2b;
  margin: 0 0 6px;
}
.when-to-use p {
  margin: 0;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- common variations block ---------- */
.variations {
  margin: 24px 0;
}
.variations h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.variations__item {
  margin-bottom: 18px;
}
.variations__item-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ---------- copy link ---------- */
.copy-link-row {
  margin: 12px 0 24px;
}
.copy-link-btn {
  background: transparent;
  border: 1px solid #d0d0d0;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  color: #2b2b2b;
  font-family: inherit;
}
.copy-link-btn:hover {
  background: #f0f0f0;
}

/* ---------- hub / cluster grid (homepage + hub pages) ---------- */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 80%;
  margin: 0 auto 32px;
}
.cluster-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cluster-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.cluster-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.cluster-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- expanded site footer ---------- */
footer.site-footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 32px 24px 16px;
  margin-top: 40px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site-footer li {
  margin: 4px 0;
}
footer.site-footer li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}
footer.site-footer li a:hover {
  color: #49c37c;
  text-decoration: underline;
}
footer.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
footer.site-footer .footer-bottom a {
  color: #ccc;
  text-decoration: none;
}
footer.site-footer .footer-bottom a:hover {
  color: #49c37c;
}
footer.site-footer .footer-tag {
  color: #888;
}

/* ---------- hub / child page layout ---------- */
.content-page {
  max-width: 880px;
  margin: 24px auto 40px;
  padding: 0 20px;
}
.content-page h1 {
  font-size: 32px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.content-page h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}
.content-page h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.content-page p {
  color: #2b2b2b;
  line-height: 1.55;
}
.content-page .last-updated {
  font-size: 12px;
  color: #888;
  margin: 4px 0 16px;
}
.content-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}
.content-page p code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- hub list of children ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 32px;
}
.hub-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.hub-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
.hub-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.hub-card p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

/* ---------- header (rebrand: support new nav items) ---------- */
header nav .items li a {
  text-decoration: none;
}
header nav .items li.active a {
  color: #269253;
}

/* ---------- docs side-nav active section ---------- */
aside ul li.heading.is-active > a {
  color: #269253;
  font-weight: 700;
}
aside ul li.heading.is-active::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #269253;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- image hero (rebrand) ---------- */
header.image-hero {
  position: relative;
  height: auto;
  padding: 80px 24px 60px;
  background: #1a1a1a;
  color: #fff;
}
header.image-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
header.image-hero h2 {
  font-size: 16px;
  font-weight: 400;
  color: #ccc;
  margin: 0;
}

/* ---------- live endpoint response area ---------- */
.live-endpoint {
  margin: 16px 0 24px;
}
.live-endpoint button {
  background: #269253;
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.live-endpoint button:hover {
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.18);
}
.live-endpoint pre {
  margin-top: 10px;
}
.live-endpoint code {
  display: block;
  padding: 12px 14px;
  background: #232323;
  color: #f5f5f5;
  border-radius: 10px;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  max-height: 360px;
  overflow: auto;
}
