/* Table cells wrap content in <p>, which inherits Shibuya's chip-style
   p > code background. Keep field names monospace without the tag look. */
.yue table code {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  font-weight: 600;
  color: inherit;
}

/* Stripe-style endpoint path line above method badges on reference pages */
.yue .highlight-text .highlight pre,
.yue pre.literal-block {
  font-size: 0.9rem;
}

/* Sidebar HTTP method pills (from [GET]/[POST] prefixes via nav-methods.js) */
.globaltoc a.has-api-method {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.globaltoc .api-method {
  flex-shrink: 0;
  min-width: 2.25rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font: 700 0.625rem/1.15 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  text-align: center;
}

html.light .api-method--get {
  background: color-mix(in srgb, var(--sy-c-accent, #2563eb) 14%, transparent);
  color: var(--sy-c-accent, #1d4ed8);
}

html.dark .api-method--get {
  background: color-mix(in srgb, var(--sy-c-accent, #60a5fa) 18%, transparent);
  color: color-mix(in srgb, var(--sy-c-accent, #93c5fd) 90%, white);
}

html.light .api-method--post {
  background: #dcfce7;
  color: #15803d;
}

html.dark .api-method--post {
  background: color-mix(in srgb, #22c55e 22%, transparent);
  color: #86efac;
}

html.light .yue {
  color: #6b7280;
}

html.dark .yue {
  color: #9ca3af;
}

/* Stripe-style code blocks */
.yue .highlight {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.yue .highlight pre {
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  border-radius: 0.5rem;
}

html.light .yue .highlight {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html.dark .yue .highlight {
  background: #1e293b;
  border-color: #334155;
}

html.light .yue .highlight pre {
  background: #f8fafc;
  color: #334155;
}

html.dark .yue .highlight pre {
  background: #1e293b;
  color: #e2e8f0;
}

/* Syntax highlighting - Light theme (Stripe-style) */
html.light .highlight .nt { color: #0550ae; }
html.light .highlight .s2 { color: #0a3069; }
html.light .highlight .p { color: #6e7781; }
html.light .highlight .w { color: transparent; }
html.light .highlight .kc { color: #0550ae; }
html.light .highlight .nc { color: #953800; }
html.light .highlight .nf { color: #8250df; }
html.light .highlight .mi { color: #0550ae; }

/* Syntax highlighting - Dark theme (Stripe-style) */
html.dark .highlight .nt { color: #79c0ff; }
html.dark .highlight .s2 { color: #a5d6ff; }
html.dark .highlight .p { color: #8b949e; }
html.dark .highlight .w { color: transparent; }
html.dark .highlight .kc { color: #79c0ff; }
html.dark .highlight .nc { color: #ffa657; }
html.dark .highlight .nf { color: #d2a8ff; }
html.dark .highlight .mi { color: #79c0ff; }

/* Tabbed views (Stripe-style) */
.yue .sd-tab-set.outline {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

html.light .yue .sd-tab-set.outline {
  border-color: #e2e8f0;
}

html.dark .yue .sd-tab-set.outline {
  border-color: #334155;
}

.yue .sd-tab-set > label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

div.sd-tab-content {
  padding: 1rem 1.25rem !important;
}

html.light div.sd-tab-content {
  background: #fcfdfe;
}

html.dark div.sd-tab-content {
  background: color-mix(in srgb, #1e293b 35%, transparent);
}

/* Code blocks inside tabs: snug fit, no double spacing */
.yue .sd-tab-content .highlight {
  margin: 0.5rem 0 0.25rem;
  overflow: hidden;
}

.yue .sd-tab-content .highlight pre {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  border-radius: 0.5rem;
}

.yue .sd-tab-content p + .highlight {
  margin-top: 0.75rem;
}

/* Enhanced headers (Stripe-style) */
.yue h2,
.yue h3,
.yue h4,
.yue h5,
.yue h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.yue h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  padding-bottom: 0.75rem;
}

html.light .yue h1 {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .yue h1 {
  color: #f1f5f9;
  border-bottom: 1px solid #334155;
}

.yue h2 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
}

html.light .yue h2 {
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .yue h2 {
  color: #e2e8f0;
  border-bottom: 1px solid #334155;
}

.yue h3 {
  font-size: 1.25rem;
}

html.light .yue h3 {
  color: #1e293b;
}

html.dark .yue h3 {
  color: #e2e8f0;
}

.yue h4 {
  font-size: 1.125rem;
}

html.light .yue h4 {
  color: #334155;
}

html.dark .yue h4 {
  color: #cbd5e1;
}

.yue h5,
.yue h6 {
  font-size: 1rem;
}

html.light .yue h5,
html.light .yue h6 {
  color: #475569;
}

html.dark .yue h5,
html.dark .yue h6 {
  color: #94a3b8;
}
