/* 1:1 FS Technical Documents Workspace + 3 Feishu-Pool Competitor Sidebar Styles */

.doc_workspace {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr) 220px;
  align-items: start;
  min-height: 820px;
  background: #FFFFFF;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19191A;
  transition: grid-template-columns 0.18s ease;
}
.doc_workspace.is-sidebar-collapsed {
  grid-template-columns: 28px minmax(0, 1fr) 220px;
}
.doc_workspace.is-sidebar-collapsed .doc_sidebar > *:not(.doc_collapse_handle) {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.doc_workspace.is-sidebar-collapsed .doc_collapse_handle svg {
  transform: rotate(180deg);
}

.m_doc_bar { display: none; }
.m_hpe_drawer_head { display: none; }
.doc_toc_head { display: none; }
.doc_nv_root { display: none; }
.doc_collapse_handle { display: none; }

/* ---- Left Sidebar Base (FS Current 1:1 Match) ---- */
.doc_sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 10px);
  max-height: 920px;
  overflow-y: auto;
  padding: 20px 20px 36px 24px;
  border-right: 1px solid #EAECEF;
  background: #FFFFFF;
  scrollbar-width: thin;
}
.doc_sidebar::-webkit-scrollbar { width: 5px; }
.doc_sidebar::-webkit-scrollbar-thumb { background: #D6D9DE; border-radius: 99px; }

html.is-locating-target .doc_sidebar {
  outline: 2px solid rgba(192, 0, 0, 0.55);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 3px rgba(192, 0, 0, 0.06);
}

/* Search Box - FS Current: underline style */
.doc_search_wrap {
  position: relative;
  margin-bottom: 18px;
}
.doc_search_input {
  width: 100%;
  height: 38px;
  padding: 6px 32px 6px 2px;
  border: 0;
  border-bottom: 1px solid #E5E7EB;
  background: transparent;
  color: #19191A;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.doc_search_input::placeholder { color: #8C8F94; }
.doc_search_input:focus { border-bottom-color: #19191A; }
.doc_search_icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #707070;
  display: inline-flex;
  pointer-events: none;
}

/* Tree - FS Current */
.doc_tree { display: flex; flex-direction: column; }
.doc_group {
  padding: 14px 0;
  border-bottom: 1px solid #EFEFEF;
}
.doc_group:first-child { padding-top: 4px; }
.doc_group:last-child { border-bottom: 0; }

.doc_group_title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 8px;
  border: 0;
  background: transparent;
  color: #19191A;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: left;
  cursor: default;
}
.doc_group_chev { display: none; color: #707070; transition: transform 0.16s ease; }
.doc_group_items { display: flex; flex-direction: column; gap: 2px; }

.doc_l2_btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4B4B4D;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.doc_l2_btn:hover { color: #19191A; }
.doc_item_label { flex: 1; min-width: 0; }
.doc_chev { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: #707070; flex-shrink: 0; transition: transform 0.16s ease; }
.doc_chev--left { display: none; }
.doc_l2_btn.is-expanded .doc_chev--right { transform: rotate(90deg); }
.doc_l2_btn.is-expanded,
.doc_l2_btn.is-active {
  color: #0060BF;
  font-weight: 600;
}
.doc_l2_btn.is-expanded .doc_chev--right { color: #0060BF; }

.doc_l3_list {
  margin: 4px 0 6px 4px;
  padding-left: 14px;
  border-left: 1px solid #DEE0E3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc_l3_btn {
  position: relative;
  width: 100%;
  padding: 6px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #707070;
  font-size: 13px;
  line-height: 19px;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.doc_l3_btn:hover { color: #19191A; }
.doc_l3_btn.is-active {
  color: #0060BF;
  font-weight: 600;
}
.doc_empty { padding: 20px 4px; color: #707070; font-size: 13px; }

/* =====================================================================
   SCHEME 1: HPE Juniper Networking (按 HPE 真实源码 1:1 还原：300px 侧栏 + 42.5px/8px 圆角列表搜索框 + 18px 目录头与 12px 常规 Expand all + 22px 无阴影圆形收起钮 + 全层级 14px 常规字重与 #F7F7F7 4px 选中底块)
   ===================================================================== */
html[data-benchmark-variant="hpe"] .doc_workspace {
  grid-template-columns: 300px minmax(0, 1fr) 220px;
}
html[data-benchmark-variant="hpe"] .doc_workspace.is-sidebar-collapsed {
  grid-template-columns: 60px minmax(0, 1fr) 220px;
}
html[data-benchmark-variant="hpe"] .doc_sidebar {
  position: sticky;
  top: 0;
  overflow: visible;
  background: #FFFFFF;
  border-right: 1px solid #D4D8DB;
  padding: 16px 24px 16px 32px;
}
html[data-benchmark-variant="hpe"] .doc_collapse_handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: -11px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: 1px solid #D4D8DB;
  border-radius: 100%;
  background: #FFFFFF;
  color: #606A70;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease-out;
}
html[data-benchmark-variant="hpe"] .doc_collapse_handle:hover {
  background: #F7F7F7;
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_search_wrap {
  padding: 8px 0;
  margin-bottom: 0;
}
html[data-benchmark-variant="hpe"] .doc_search_input {
  height: 42.5px;
  padding: 10px 26px 10px 36px;
  border: 1px solid #B1B9BE;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #3E4550;
}
html[data-benchmark-variant="hpe"] .doc_search_input::placeholder {
  color: #606A70;
}
html[data-benchmark-variant="hpe"] .doc_search_input:focus {
  border-color: #B1B9BE;
}
html[data-benchmark-variant="hpe"] .doc_search_icon {
  left: 10px;
  right: auto;
  color: #3E4550;
}
html[data-benchmark-variant="hpe"] .doc_search_icon svg {
  width: 18px;
  height: 18px;
}
html[data-benchmark-variant="hpe"] .doc_toc_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 0;
  line-height: 1.4;
}
html[data-benchmark-variant="hpe"] .doc_toc_head_title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_expand_all_btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #4B4B4D;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}
html[data-benchmark-variant="hpe"] .doc_expand_all_btn:hover {
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_tree {
  margin-left: 20px;
  padding-bottom: 16px;
}
html[data-benchmark-variant="hpe"] .doc_group {
  padding: 0;
  border-bottom: 0;
}
html[data-benchmark-variant="hpe"] .doc_group_title {
  position: relative;
  display: block;
  padding: 5px 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #19191A;
  cursor: pointer;
}
html[data-benchmark-variant="hpe"] .doc_group_title:hover {
  background: transparent;
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_group:not(.is-collapsed) > .doc_group_title {
  font-weight: 400;
}
html[data-benchmark-variant="hpe"] .doc_group_chev {
  position: absolute;
  left: -22px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: #606A70;
  transform: rotate(90deg);
  transition: transform 0.2s ease-out, color 0.15s ease;
}
html[data-benchmark-variant="hpe"] .doc_group:not(.is-collapsed) > .doc_group_title .doc_group_chev,
html[data-benchmark-variant="hpe"] .doc_group_title:hover .doc_group_chev {
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_group.is-collapsed .doc_group_chev {
  transform: rotate(0deg);
}
html[data-benchmark-variant="hpe"] .doc_group.is-collapsed .doc_group_items {
  display: none;
}
html[data-benchmark-variant="hpe"] .doc_group_items {
  margin-left: 24px;
  margin-bottom: 8px;
  gap: 0;
}
html[data-benchmark-variant="hpe"] .doc_chev--left {
  position: absolute;
  left: -20px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: #606A70;
  transition: transform 0.2s ease-out, color 0.15s ease;
}
html[data-benchmark-variant="hpe"] .doc_chev--left.is-empty { display: none; }
html[data-benchmark-variant="hpe"] .doc_chev--right { display: none; }
html[data-benchmark-variant="hpe"] .doc_l2_btn {
  display: block;
  padding: 5px 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #0060BF;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn[data-has-sub="1"] {
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn:hover {
  background: transparent;
  color: #004999;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn[data-has-sub="1"]:hover {
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn:hover .doc_chev--left,
html[data-benchmark-variant="hpe"] .doc_l2_btn.is-expanded .doc_chev--left {
  color: #19191A;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn.is-expanded {
  color: #19191A;
  font-weight: 400;
}
html[data-benchmark-variant="hpe"] .doc_l2_btn.is-expanded .doc_chev--left {
  transform: rotate(90deg);
}
html[data-benchmark-variant="hpe"] .doc_l2_btn.is-active {
  padding: 4px 8px;
  margin-left: -8px;
  width: calc(100% + 8px);
  background: #F7F7F7;
  border-radius: 4px;
  color: #0060BF;
  font-weight: 400;
}
html[data-benchmark-variant="hpe"] .doc_l3_list {
  margin: 0 0 8px 24px;
  padding-left: 0;
  border-left: 0;
  gap: 0;
}
html[data-benchmark-variant="hpe"] .doc_l3_btn {
  padding: 5px 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #0060BF;
}
html[data-benchmark-variant="hpe"] .doc_l3_btn:hover {
  background: transparent;
  color: #004999;
}
html[data-benchmark-variant="hpe"] .doc_l3_btn.is-active {
  padding: 4px 8px;
  margin-left: -8px;
  width: calc(100% + 8px);
  background: #F7F7F7;
  border-radius: 4px;
  color: #0060BF;
  font-weight: 400;
}

/* =====================================================================
   SCHEME 2: Alibaba Cloud (按阿里云真实源码 1:1 还原：14px/24px 统一字阶 + 直角过滤框 + 8px 细灰轨 + 选中态 -1px 深灰叠边与淡蓝底)
   ===================================================================== */
html[data-benchmark-variant="alibaba"] .doc_workspace {
  grid-template-columns: 300px minmax(0, 1fr) 220px;
}
html[data-benchmark-variant="alibaba"] .doc_sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E9E9E9;
  padding: 22px 24px 40px 24px;
}
html[data-benchmark-variant="alibaba"] .doc_sidebar::-webkit-scrollbar {
  width: 3px;
}
html[data-benchmark-variant="alibaba"] .doc_sidebar::-webkit-scrollbar-thumb {
  background: #D8D8D8;
  border-radius: 3px;
}
html[data-benchmark-variant="alibaba"] .doc_search_wrap {
  margin-bottom: 16px;
}
html[data-benchmark-variant="alibaba"] .doc_search_input {
  height: 32px;
  padding: 3px 12px 3px 32px;
  border: 1px solid #EAEAEA;
  border-radius: 0;
  background: #FFFFFF;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0;
  color: #3D3D3D;
}
html[data-benchmark-variant="alibaba"] .doc_search_input::placeholder { color: #999999; }
html[data-benchmark-variant="alibaba"] .doc_search_input:focus {
  border-color: #0060BF;
}
html[data-benchmark-variant="alibaba"] .doc_search_icon {
  left: 12px;
  right: auto;
  color: #999999;
}
html[data-benchmark-variant="alibaba"] .doc_search_icon svg {
  width: 16px;
  height: 16px;
}
html[data-benchmark-variant="alibaba"] .doc_group {
  padding: 0 0 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #E9E9E9;
}
html[data-benchmark-variant="alibaba"] .doc_group:first-child { padding-top: 0; }
html[data-benchmark-variant="alibaba"] .doc_group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
html[data-benchmark-variant="alibaba"] .doc_group_title {
  padding: 3px 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: #19191A;
}
html[data-benchmark-variant="alibaba"] .doc_group_items {
  gap: 0;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn {
  padding: 3px 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.4px;
  font-weight: 400;
  color: #3D3D3D;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn:hover {
  color: #0060BF;
  background: transparent;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn:hover .doc_chev--right {
  color: #0060BF;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn.is-expanded {
  color: #3D3D3D;
  font-weight: 400;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn .doc_chev--right {
  width: 24px;
  height: 24px;
  color: #3D3D3D;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn .doc_chev--right svg {
  width: 12px;
  height: 12px;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn.is-expanded .doc_chev--right {
  color: #3D3D3D;
}
html[data-benchmark-variant="alibaba"] .doc_l2_btn.is-active {
  background: #F7F9FC;
  color: #0060BF;
  font-weight: 400;
  padding-left: 8px;
  margin-left: -8px;
  width: calc(100% + 8px);
}
html[data-benchmark-variant="alibaba"] .doc_l3_list {
  margin: 0 0 0 8px;
  padding-left: 0;
  border-left: 1px solid #E9E9E9;
  gap: 0;
}
html[data-benchmark-variant="alibaba"] .doc_l3_btn {
  padding: 3px 0 3px 12px;
  border-radius: 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.4px;
  font-weight: 400;
  color: #3D3D3D;
}
html[data-benchmark-variant="alibaba"] .doc_l3_btn:hover {
  color: #0060BF;
  background: transparent;
}
html[data-benchmark-variant="alibaba"] .doc_l3_btn.is-active {
  margin-left: -1px;
  padding-left: 12px;
  width: calc(100% + 1px);
  border-left: 1px solid #B3B3B3;
  background: #F7F9FC;
  color: #0060BF;
  font-weight: 400;
}

/* =====================================================================
   SCHEME 3: NVIDIA Networking (按 NVIDIA Cumulus Linux 真实源码 1:1 还原：264px 无边框 #F6F8FA 浅灰栏 + 无侧栏搜索框 + 顶部文档总标题 + 15px/25px 宽松行距 + 全路径品牌红高亮与红箭头 + 子文档 1px 品牌红竖线 + hover 50% 透明度)
   ===================================================================== */
html[data-benchmark-variant="nvidia"] .doc_workspace {
  grid-template-columns: 264px minmax(0, 1fr) 220px;
}
html[data-benchmark-variant="nvidia"] .doc_sidebar {
  background: #F6F8FA;
  border-right: 0;
  padding: 36px 20px 44px 20px;
}
html[data-benchmark-variant="nvidia"] .doc_search_wrap {
  display: none;
}
html[data-benchmark-variant="nvidia"] .doc_nv_root {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 25px;
  font-weight: 600;
  color: #C00000;
}
html[data-benchmark-variant="nvidia"] .doc_nv_root_chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 25px;
  color: #C00000;
  flex-shrink: 0;
}
html[data-benchmark-variant="nvidia"] .doc_tree {
  margin-left: 14px;
}
html[data-benchmark-variant="nvidia"] .doc_group {
  padding: 0;
  margin: 0 0 18px;
  border-bottom: 0;
}
html[data-benchmark-variant="nvidia"] .doc_group:last-child {
  margin-bottom: 0;
}
html[data-benchmark-variant="nvidia"] .doc_group_title {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 25px;
  font-weight: 400;
  color: #36424A;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
html[data-benchmark-variant="nvidia"] .doc_group_title:hover {
  background: transparent;
  opacity: 0.5;
}
html[data-benchmark-variant="nvidia"] .doc_group.is-active-group > .doc_group_title {
  font-weight: 600;
  color: #C00000;
}
html[data-benchmark-variant="nvidia"] .doc_group_chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 25px;
  color: #C00000;
  flex-shrink: 0;
  transform: rotate(0deg);
  transition: transform 0.16s ease;
}
html[data-benchmark-variant="nvidia"] .doc_group.is-collapsed .doc_group_chev {
  transform: rotate(-90deg);
}
html[data-benchmark-variant="nvidia"] .doc_group.is-collapsed .doc_group_items {
  display: none;
}
html[data-benchmark-variant="nvidia"] .doc_group_items {
  margin: 16px 0 0 14px;
  padding-left: 0;
  gap: 0;
}
html[data-benchmark-variant="nvidia"] .doc_l2_wrap {
  margin-bottom: 16px;
}
html[data-benchmark-variant="nvidia"] .doc_l2_wrap:last-child {
  margin-bottom: 0;
}
html[data-benchmark-variant="nvidia"] .doc_chev--left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 25px;
  color: #C00000;
  flex-shrink: 0;
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}
html[data-benchmark-variant="nvidia"] .doc_chev--left.is-empty { display: none; }
html[data-benchmark-variant="nvidia"] .doc_chev--right { display: none; }
html[data-benchmark-variant="nvidia"] .doc_l2_btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 25px;
  font-weight: 400;
  color: #36424A;
  transition: opacity 0.15s ease;
}
html[data-benchmark-variant="nvidia"] .doc_l2_btn[data-has-sub="0"] {
  border-left: 1px solid #C00000;
  padding-left: 20px;
}
html[data-benchmark-variant="nvidia"] .doc_l2_btn:hover {
  background: transparent;
  color: #36424A;
  opacity: 0.5;
}
html[data-benchmark-variant="nvidia"] .doc_l2_btn.is-expanded .doc_chev--left {
  transform: rotate(0deg);
  color: #C00000;
}
html[data-benchmark-variant="nvidia"] .doc_l2_wrap.is-active-branch > .doc_l2_btn,
html[data-benchmark-variant="nvidia"] .doc_l2_btn.is-active {
  color: #C00000;
  font-weight: 600;
}
html[data-benchmark-variant="nvidia"] .doc_l3_list {
  margin: 16px 0 0 14px;
  padding-left: 0;
  border-left: 1px solid #C00000;
  gap: 0;
}
html[data-benchmark-variant="nvidia"] .doc_l3_btn {
  padding: 0 0 16px 20px;
  border-radius: 0;
  font-size: 15px;
  line-height: 25px;
  font-weight: 400;
  color: #36424A;
  transition: opacity 0.15s ease;
}
html[data-benchmark-variant="nvidia"] .doc_l3_btn:last-child {
  padding-bottom: 0;
}
html[data-benchmark-variant="nvidia"] .doc_l3_btn:hover {
  background: transparent;
  color: #36424A;
  opacity: 0.5;
}
html[data-benchmark-variant="nvidia"] .doc_l3_btn.is-active {
  color: #C00000;
  font-weight: 600;
  background: transparent;
}
html[data-benchmark-variant="nvidia"] .doc_l3_btn.is-active:hover {
  color: #C00000;
}

/* ---- Right Document Content & TOC (1:1 Clean Technical Docs) ---- */
.doc_article {
  padding: 28px 44px 64px;
  min-width: 0;
}
.doc_crumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: #707070; margin-bottom: 14px;
}
.doc_crumb strong { color: #19191A; font-weight: 600; }
.doc_h1 {
  margin: 0 0 10px; font-size: 28px; line-height: 36px; font-weight: 600; color: #19191A;
}
.doc_meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #707070; padding-bottom: 18px; border-bottom: 1px solid #EAECEF; margin-bottom: 20px;
}
.doc_lead { font-size: 15px; line-height: 24px; color: #4B4B4D; margin: 0 0 24px; }
.doc_h2 { margin: 28px 0 12px; font-size: 18px; line-height: 26px; font-weight: 600; color: #19191A; }
.doc_p { font-size: 14px; line-height: 23px; color: #4B4B4D; margin: 0 0 14px; }
.doc_p code {
  padding: 1px 6px; border-radius: 4px; background: #F4F5F7; font-size: 12.5px; color: #19191A;
}
.doc_ul { margin: 0 0 18px; padding-left: 20px; color: #4B4B4D; display: grid; gap: 8px; font-size: 14px; line-height: 22px; }
.doc_ul strong { color: #19191A; }
.doc_table_wrap { overflow-x: auto; margin: 16px 0 22px; }
.doc_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc_table th, .doc_table td {
  padding: 10px 12px; border: 1px solid #DEE0E3; text-align: left;
}
.doc_table th { background: #FAFBFB; font-weight: 600; color: #19191A; }

.doc_toc {
  position: sticky; top: 0; padding: 28px 20px; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 8px;
}
.doc_toc_title { font-weight: 600; color: #19191A; margin-bottom: 4px; }
.doc_toc_link {
  color: #707070; text-decoration: none; padding-left: 10px; border-left: 2px solid transparent; line-height: 18px;
}
.doc_toc_link:hover { color: #19191A; }
.doc_toc_link.is-active { color: #C00000; border-left-color: #C00000; font-weight: 600; }

/* ---- Mobile (<= 768px) Responsive ---- */
@media (max-width: 1120px) {
  .doc_workspace { grid-template-columns: 272px minmax(0, 1fr); }
  .doc_toc { display: none; }
}
@media (max-width: 768px) {
  html, body, #__nuxt, #product_support {
    overflow-x: hidden;
    max-width: 100%;
  }
  .doc_workspace,
  .doc_workspace * {
    box-sizing: border-box;
  }
  .doc_workspace,
  .doc_workspace.is-sidebar-collapsed,
  html[data-benchmark-variant="hpe"] .doc_workspace,
  html[data-benchmark-variant="alibaba"] .doc_workspace,
  html[data-benchmark-variant="nvidia"] .doc_workspace {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }
  html[data-benchmark-variant="hpe"] .doc_collapse_handle { display: none; }

  /* Mobile bar container & per-competitor slots */
  .m_doc_bar {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid #EAECEF;
    background: #FAFBFB;
  }
  .m_bar_slot { display: none; width: 100%; }
  html:not([data-benchmark-variant]) .m_bar_current { display: block; }
  html[data-benchmark-variant="hpe"] .m_bar_hpe { display: flex; align-items: center; justify-content: space-between; }
  html[data-benchmark-variant="alibaba"] .m_bar_alibaba { display: flex; align-items: center; gap: 12px; }
  html[data-benchmark-variant="nvidia"] .m_bar_nvidia { display: flex; align-items: center; justify-content: space-between; }

  /* FS Current mobile button */
  .m_doc_toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #DEE0E3;
    border-radius: 6px;
    background: #FFFFFF;
    color: #19191A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  /* Scheme 1: HPE Juniper mobile trigger (outlined 40x40 list button, no divider) + 100% fullscreen overlay */
  html[data-benchmark-variant="hpe"] .m_doc_bar {
    background: #FFFFFF;
    padding: 12px 16px 4px;
    border-bottom: 0;
  }
  .m_hpe_tocbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #D4D8DB;
    border-radius: 4px;
    background: #FFFFFF;
    color: #292D3A;
    cursor: pointer;
  }
  html[data-benchmark-variant="hpe"] .doc_expand_all_btn {
    font-size: 14px;
  }
  .m_hpe_close_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #19191A;
    cursor: pointer;
  }
  .m_hpe_close_btn:hover { background: #F4F5F6; }

  /* Scheme 2: Alibaba Cloud mobile subheader (rotating 90deg hamburger, no X) */
  html[data-benchmark-variant="alibaba"] .m_doc_bar {
    background: #FFFFFF;
    padding: 0 16px;
    min-height: 44px;
    justify-content: center;
    border-bottom: 1px solid #E9E9E9;
  }
  .m_ali_menu_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #19191A;
    cursor: pointer;
  }
  .m_ali_menu_btn svg {
    transition: transform 0.18s ease;
  }
  .m_ali_menu_btn.is-open svg {
    transform: rotate(90deg);
  }
  .m_ali_title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #19191A;
  }
  .m_ali_book {
    display: inline-flex;
    color: #4B4B4D;
  }

  /* Scheme 3: NVIDIA mobile layout-switch toolbar (3 wireframe buttons + independent search, pure stroke color change, no box/fill) */
  html[data-benchmark-variant="nvidia"] .m_doc_bar {
    background: #FFFFFF;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
    gap: 10px;
  }
  .m_nv_layouts {
    display: inline-flex;
    align-items: center;
    gap: 18px;
  }
  .m_nv_btn,
  .m_nv_search_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #36424A;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
  }
  .m_nv_btn.is-active {
    color: #C00000;
    background: transparent;
    border: 0;
  }
  .m_nv_search_btn[aria-expanded="true"] {
    color: #C00000;
    background: transparent;
  }
  .m_nv_search_drawer {
    width: 100%;
    padding-top: 2px;
  }
  .m_nv_search_input {
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    border: 1px solid #DEE0E3;
    border-radius: 4px;
    font-size: 13px;
    color: #19191A;
    outline: none;
  }
  .m_nv_search_input:focus { border-color: #19191A; }

  /* Default mobile sidebar state: hidden until triggered */
  .doc_sidebar {
    display: none;
    position: static;
    width: 100%;
    height: auto;
    max-height: 420px;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid #DEE0E3;
    padding: 14px 16px 24px;
  }
  .doc_sidebar.is-mobile-open {
    display: block;
  }

  /* HPE Juniper opened: 100% full-screen white overlay with top-right X */
  html[data-benchmark-variant="hpe"] .doc_sidebar.is-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    padding: 14px 16px 36px;
    background: #FFFFFF;
    border: 0;
  }
  html[data-benchmark-variant="hpe"] .doc_sidebar.is-mobile-open .m_hpe_drawer_head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }

  /* Alibaba Cloud opened: 100%-width white panel below subheader */
  html[data-benchmark-variant="alibaba"] .doc_sidebar.is-mobile-open {
    display: block;
    max-height: 68vh;
    padding: 18px 20px 32px;
    border-bottom: 1px solid #E9E9E9;
  }

  /* NVIDIA opened: inline view replacement (hides article, no search inside sidebar) */
  html[data-benchmark-variant="nvidia"] .doc_sidebar .doc_search_wrap {
    display: none;
  }
  html[data-benchmark-variant="nvidia"] .doc_workspace[data-nv-view="menu"] .doc_sidebar {
    display: block;
    max-height: none;
    background: #FAFBFB;
    border-bottom: 1px solid #EAECEF;
    padding: 14px 16px 32px;
  }
  html[data-benchmark-variant="nvidia"] .doc_workspace[data-nv-view="menu"] .doc_article,
  html[data-benchmark-variant="nvidia"] .doc_workspace[data-nv-view="toc"] .doc_article {
    display: none;
  }
  html[data-benchmark-variant="nvidia"] .doc_workspace[data-nv-view="toc"] .doc_toc {
    display: flex;
    position: static;
    background: #FAFBFB;
    padding: 18px 16px 32px;
  }

  .doc_article {
    padding: 20px 16px 40px;
  }
  .doc_h1 { font-size: 22px; line-height: 30px; }
}
