/* acpc site: page-owned layout on top of vercel-brand.css. Square corners throughout. */

.vbg-report,
.vbg-report *,
.vbg-report *::before,
.vbg-report *::after {
  border-radius: 0 !important;
}

/* One language at a time; the inline script in <head> picks it. */
html[lang="en"] [lang="zh-CN"],
html[lang="zh-CN"] [lang="en"] {
  display: none !important;
}

html[lang="zh-CN"] .vbg-report {
  font-family: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

/* Shell */

.vbg-custom-wordmark {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: var(--vbg-weight-semibold);
  font-size: var(--vbg-type-subsection);
  letter-spacing: -0.02em;
  color: var(--vbg-text-primary);
  text-decoration: none;
}

.vbg-custom-nav {
  display: flex;
  align-items: baseline;
  gap: var(--vbg-space-6);
}

.vbg-custom-nav a {
  color: var(--vbg-text-primary);
}

.vbg-custom-lang {
  display: inline-flex;
  gap: var(--vbg-space-1);
}

#lang button {
  min-height: 0;
  font: inherit;
  color: var(--vbg-text-secondary);
  background: transparent;
  border: 0;
  padding: 0 var(--vbg-space-1);
  cursor: pointer;
}

#lang button[aria-pressed="true"] {
  color: var(--vbg-text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */

.vbg-custom-hero {
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-10);
}

.vbg-custom-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-5);
  max-width: 52rem;
}

.vbg-custom-hero-copy > * {
  margin: 0;
}

.vbg-custom-actions {
  margin-top: var(--vbg-space-2);
}

/* Demo: three real captures, one at a time */

.vbg-custom-demo {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas:
    "term head"
    "cap  head";
  column-gap: var(--vbg-space-8);
  row-gap: var(--vbg-space-3);
  align-items: start;
  min-width: 0;
}

.vbg-custom-demo-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-3);
  min-width: 0;
}

.vbg-custom-demo-head > * {
  margin: 0;
}

.vbg-custom-demo > .vbg-custom-term {
  grid-area: term;
  justify-self: start;
}

.vbg-custom-demo > figcaption {
  grid-area: cap;
  margin: 0;
  max-width: 68ch;
}

.vbg-custom-steps {
  display: flex;
  flex-direction: column;
}

#demo-steps button {
  display: flex;
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  gap: var(--vbg-space-3);
  align-items: baseline;
  text-align: left;
  font: inherit;
  font-size: var(--vbg-type-compact);
  line-height: var(--vbg-leading-compact);
  color: var(--vbg-text-secondary);
  background: transparent;
  border: 0;
  border-left: 2px solid var(--vbg-border-subtle);
  padding: var(--vbg-space-3) var(--vbg-space-4);
  cursor: pointer;
}

#demo-steps button:hover {
  color: var(--vbg-text-primary);
  background: transparent;
}

#demo-steps button[aria-selected="true"] {
  color: var(--vbg-text-primary);
  border-left-color: var(--vbg-text-primary);
}

#demo-steps button:focus-visible {
  outline: 2px solid var(--vbg-focus);
  outline-offset: 2px;
}

.vbg-custom-step-n {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.vbg-custom-term {
  max-width: 100%;
  background: var(--vbg-surface-secondary);
  border: 1px solid var(--vbg-border-subtle);
  overflow-x: auto;
}

.vbg-custom-term pre {
  margin: 0;
  padding: var(--vbg-space-4) 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vbg-text-primary);
  white-space: pre;
  width: max-content;
  min-width: 100%;
  border: 0;
  background: transparent;
}

/* One terminal row; background runs fill its full height. */
.t-row {
  display: block;
  height: 1.5em;
  padding: 0 var(--vbg-space-4);
}

.t-row > span {
  display: inline-block;
  height: 100%;
  vertical-align: top;
}

.vbg-custom-term pre:focus-visible {
  outline: 2px solid var(--vbg-focus);
  outline-offset: -2px;
}

.vbg-custom-term pre + pre {
  border-top: 1px solid var(--vbg-border-subtle);
}

.js .vbg-custom-term pre + pre {
  border-top: 0;
}

.t-b { font-weight: var(--vbg-weight-semibold); }
.t-d { color: var(--vbg-text-secondary); }
.t-i { font-style: italic; }
.t-u { text-decoration: underline; }
.t-r { background: var(--vbg-text-primary); color: var(--vbg-surface-secondary); }
.t-r.t-d { background: var(--vbg-text-secondary); }
.t-bg { background: var(--vbg-border-subtle); }
.t-green { color: var(--vbg-color-success); }
.t-blue { color: var(--vbg-color-info); }
.t-cyan { color: var(--vbg-color-info); }
.t-yellow { color: var(--vbg-color-warning); }
.t-red { color: var(--vbg-color-error); }
.t-magenta { color: var(--vbg-chart-4); }

/* Sections after the hero */

.vbg-custom-intro {
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-3);
  max-width: 44rem;
}

.vbg-custom-intro > * {
  margin: 0;
}

.vbg-custom-shots {
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-10);
  margin-top: var(--vbg-space-8);
}

.vbg-custom-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  column-gap: var(--vbg-space-8);
  row-gap: var(--vbg-space-4);
  align-items: start;
}

.vbg-custom-shot > .vbg-flow {
  display: flex;
  flex-direction: column;
  gap: var(--vbg-space-3);
  max-width: 24rem;
}

.vbg-custom-shot > .vbg-flow > * {
  margin: 0;
}

.vbg-custom-shot > .vbg-custom-term {
  justify-self: end;
}

.vbg-section .vbg-table-wrap {
  margin-top: var(--vbg-space-6);
}

.vbg-custom-aside {
  max-width: 44rem;
  margin: var(--vbg-space-6) 0 0;
  color: var(--vbg-text-secondary);
}

/* Quick start */

#start-band {
  margin-top: var(--vbg-space-16);
}

#start-band code {
  color: var(--vbg-text-on-contrast);
  background: var(--vbg-border-on-contrast);
  border-color: transparent;
}

.vbg-custom-commands pre {
  margin: 0;
  padding: var(--vbg-space-5);
  color: var(--vbg-text-on-contrast);
  background: transparent;
  border: 1px solid var(--vbg-border-on-contrast);
  overflow-x: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

#start-band pre code {
  background: transparent;
  padding: 0;
}

.vbg-custom-dim {
  color: var(--vbg-text-on-contrast-secondary);
}

@media (max-width: 1180px) {
  .vbg-custom-demo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "term"
      "cap";
  }
}

@media (max-width: 1100px) {
  .vbg-custom-shot {
    grid-template-columns: minmax(0, 1fr);
  }

  .vbg-custom-shot > .vbg-custom-term {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .vbg-custom-term pre {
    font-size: 11px;
  }
}
