/*******************************************************
 * BRINK XR v2 - DOCUMENT PAGE STYLES
 *******************************************************/




/*********************
 * LANGUAGE SWITCHER *
 *********************/
.doc-zh { display: none; }
.doc-en { display: block; }

[data-doc-lang="zh"] .doc-zh { display: block; }
[data-doc-lang="zh"] .doc-en { display: none; }

/* Georgia and Inter carry no CJK glyphs - hand the Chinese copy a real stack */
.doc-zh {
  --font-title: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-body:  'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
.doc-zh h1,
.doc-zh h2 {
  font-weight: 500;
  letter-spacing: 0;
}

.doc-lang {
  display: inline-flex;
  gap: 2px;
  margin-top: 2.5rem;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.doc-lang button {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: var(--fs-body-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.doc-lang button[data-lang="zh"] {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  letter-spacing: 0;
}

.doc-lang button:hover {
  color: var(--text);
}

html:not([data-doc-lang="zh"]) .doc-lang button[data-lang="en"],
html[data-doc-lang="zh"] .doc-lang button[data-lang="zh"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}




/*******************
 * DOCUMENT LAYOUT *
 *******************/
.doc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  padding-top: 6rem;
  padding-bottom: 8rem;
  align-items: start;
}

/* TOC Sidebar */
.doc-toc {
  position: sticky;
  top: 90px;
}

.doc-toc a {
  display: block;
  font-size: var(--fs-body-xs);
  color: rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover {
  color: var(--text);
  border-left-color: var(--gold-border);
}
.doc-toc a.toc-active {
  color: var(--text);
  border-left-color: var(--gold);
  border-left-width: 2px;
  padding-left: calc(1rem - 1px);
}




/********************
 * DOCUMENT CONTENT *
 ********************/
.doc-content {
  max-width: 900px;
}

.doc-content h2 {
  font-size: var(--fs-title-sm);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.doc-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-content .eyebrow {
  letter-spacing: 0.1em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.doc-content p {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.doc-content ul {
  margin: 0.75rem 0 1rem 0;
  padding-left: 0;
  list-style: none;
}
.doc-content ul li {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
}
.doc-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}
.doc-content ul li:last-child {
  border-bottom: none;
}
.doc-content b {
  color: rgba(255, 255, 255, 0.85); font-weight: 600;
}

/* Sits above a translated copy: the English original is the binding text */
.doc-content .doc-note {
  margin-bottom: 2rem;
  padding: 0.9rem 1.15rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-xs);
  line-height: 1.7;
}




/**************************
 * RESPONSIVE BREAKPOINTS *
 **************************/

/* TABLETS / PHONES */
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 6rem; }

  /* Both tables of contents carry a language class, so this has to match the
     specificity of the show rule above and win on source order. */
  .doc-toc,
  [data-doc-lang] .doc-toc { display: none; }
}