/* 2026-11-27 · Trina AX Docs 의 구조를 Relay Docs 에 옮긴 규칙. docs.css 다음에 읽어요.
   색은 docs.css 의 값(--ink, --purple, --line, --soft, --sidebar)과 랜딩의 #19181e · #7461aa 만 써요. */
:root {
  --header-height: 112px;
}

/* 머리글: 사이트 메뉴 한 줄 + 문서 영역 탭 한 줄 */
.lx-docs-header {
  display: block;
  height: var(--header-height);
  padding: 0;
}
.docs-header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 28px;
}
.docs-site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.docs-site-nav a {
  padding: 8px 10px;
  border-radius: 100px;
  color: #56515f;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.docs-site-nav a:hover {
  background: #f4f1fa;
  color: #5b438e;
}
.docs-site-nav a[aria-current] {
  color: #19181e;
  font-weight: 650;
}
.docs-site-nav span {
  color: #8a8494;
}
.lx-docs-header .header-tools {
  gap: 12px;
}
.lx-docs-header .header-search {
  min-width: 190px;
  height: 40px;
}
.docs-login {
  padding: 8px 4px;
  color: #56515f;
  font-size: 14.5px;
  font-weight: 500;
}
.docs-login:hover {
  color: #5b438e;
}
.docs-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  background: #19181e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.docs-start:hover {
  background: #39313f;
  color: #fff;
}
.docs-areas {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 47px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.docs-areas::-webkit-scrollbar {
  display: none;
}
.docs-areas a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #635d6c;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.docs-areas a:hover {
  color: var(--purple);
}
.docs-areas a[aria-current] {
  color: #19181e;
  font-weight: 680;
}
.docs-areas a[aria-current]::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: #7461aa;
}

/* 왼쪽: 지금 영역의 묶음만 */
.lx-docs-sidebar {
  gap: 22px;
  padding-top: 26px;
}
.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0 10px;
  color: #241f36;
  font-size: 13px;
  font-weight: 700;
}
.sidebar-group-title .icon {
  width: 16px;
  height: 16px;
  color: #7461aa;
}
.lx-docs-sidebar .sidebar-links {
  padding-top: 0;
}
.lx-docs-sidebar .sidebar-links a {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 14px;
}
.lx-docs-sidebar .sidebar-links a.active {
  padding-left: 8px;
}
.sidebar-intro a {
  font-weight: 600;
}
.sidebar-areas {
  display: none;
}

/* 본문 머리: 묶음 이름 · 제목 · 페이지 복사 */
.docs-eyebrow {
  margin: 0;
  color: #7461aa;
  font-size: 13.5px;
  font-weight: 650;
}
.docs-eyebrow a {
  color: inherit;
}
.docs-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.docs-title-row h1 {
  margin-top: 8px !important;
}
.reference-main .docs-eyebrow + h1 {
  margin-top: 8px;
}
.copy-page {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.copy-page-main,
.copy-page-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #3d3747;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy-page-main {
  padding: 0 10px;
}
.copy-page-more {
  padding: 0 8px;
  border-left: 1px solid var(--line);
}
.copy-page .icon {
  width: 15px;
  height: 15px;
}
.copy-page-more .icon {
  transform: rotate(90deg);
}
.copy-page-main:hover,
.copy-page-more:hover {
  background: #f6f4fa;
}
.copy-page-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px #211b3820;
}
.copy-page-menu[hidden] {
  display: none;
}
.copy-page-menu button,
.copy-page-menu a {
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #241f36;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.copy-page-menu small {
  color: #706a7a;
  font-size: 12.5px;
  font-weight: 400;
}
.copy-page-menu button:hover,
.copy-page-menu a:hover {
  background: #f4f1fa;
}

/* Docs 홈(Relay 소개) */
.docs-intro .callout a {
  color: #564178;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-intro .guide-figure {
  margin-top: 22px;
}
.docs-path li {
  display: grid;
  gap: 2px;
}
.docs-path li span {
  color: #675d73;
}
.docs-path li a {
  color: #564178;
  font-weight: 600;
}
.docs-intro .docs-starting-points {
  margin-top: 12px;
}
.docs-intro .docs-starting-points a {
  border-color: var(--line);
  background: #fff;
  color: #241f36;
}
.docs-intro .docs-starting-points a:hover,
.docs-intro .docs-starting-points a:focus-visible {
  border-color: #b6a4cd;
  background: #faf9fc;
}
.docs-intro .docs-starting-points .icon:first-child {
  color: #7461aa;
}
.docs-intro .docs-starting-points span {
  color: #675d73;
  font-size: 13.5px;
  line-height: 1.55;
}
.docs-intro .docs-help-links {
  padding: 0;
  border-bottom: 0;
}
.docs-intro .docs-topics {
  margin-top: 33px;
}
.docs-intro .docs-topics > h2 {
  margin-bottom: 14px;
}
.docs-intro .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 좁은 화면 */
@media (max-width: 1320px) {
  .docs-login {
    display: none;
  }
}
@media (max-width: 1170px) {
  .docs-site-nav {
    display: none;
  }
}
@media (max-width: 960px) {
  :root {
    --header-height: 104px;
  }
  .docs-header-main {
    gap: 12px;
    height: 57px;
    padding: 0 16px;
  }
  .lx-docs-header .header-search {
    min-width: 44px;
  }
  .docs-start {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
  .docs-areas {
    padding: 0 8px;
  }
  .sidebar-areas {
    display: block;
  }
  .docs-title-row {
    flex-direction: column;
    gap: 0;
  }
  .copy-page {
    margin-top: 12px;
  }
  .copy-page-menu {
    left: 0;
    right: auto;
  }
  .docs-intro .docs-starting-points,
  .docs-intro .topic-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .docs-header-main {
    gap: 6px;
    padding: 0 12px;
  }
  .lx-docs-header .docs-brand {
    gap: 10px;
  }
  .docs-start span {
    display: none;
  }
}
@media (max-width: 370px) {
  .lx-docs-header .brand-divider,
  .lx-docs-header .docs-label {
    display: none;
  }
}
