/* 去掉页面上部的空白，因为edit on github 插件增加了空白，就把默认的空白去掉。 */
section.content {
  padding-top: 0px;
}
article.markdown-section {
    /*max-width: calc(100%);*/
    max-width: calc(100% - 130px);
    margin-left: 30px;
}

.sidebar .sidebar-nav {
  line-height: 1.3em;
}

.sidebar {
  width: 300px;
}
body.close .sidebar {
    transform: translateX(-400px);
}
/*:root {*/
/*  !*--base-font-size: 14px;*!*/
/*  --theme-color: #b0a4e3;*/
/*}*/


/* toc 插件 */
aside.toc-nav {
    overflow: auto !important;
    width: 300px !important;
    right: 0% !important;
    max-height: 85% !important;
}

/* ---------------------------------------------------------------------------
   Federated-learning paper summary tables: pin only the two columns that need
   it — a wide "Short conclusion" and a narrow, wrapping "URL". Switch these
   tables to fixed layout so the explicit column widths are honored.

   The space-less DOI string in "URL" would otherwise force that column wide and
   squeeze "Short conclusion". Letting the URL wrap and giving the two columns a
   target width is enough — no need to enumerate the rest.

   Scope: ":has(thead th:nth-child(10))" limits this to the paper tables (>= 10
   columns), so the 5-column ccf.md table is left alone; browsers without :has()
   ignore the block. "Short conclusion" and "URL" are always the last two
   columns, so they're addressed from the right. Tweak the two widths to taste. */
.markdown-section table:has(thead th:nth-child(10)) {
  display: table;   /* override docsify's display:block so width:100% and % widths apply */
  width: 100%;
}
.markdown-section table:has(thead th:nth-child(10)) th,
.markdown-section table:has(thead th:nth-child(10)) td {
  vertical-align: top;
}
.markdown-section table:has(thead th:nth-child(10)) tr > :nth-last-child(5) {
  width: 70%;
}
.markdown-section table:has(thead th:nth-child(10)) thead tr > :nth-last-child(5) {
  text-align: center;
  vertical-align: middle;
}
.markdown-section table:has(thead th:nth-child(10)) tbody tr > :nth-last-child(5) {
  text-align: left;
}
.markdown-section table:has(thead th:nth-child(10)) td:not(:nth-last-child(2)):not(:nth-last-child(5)) { font-size: 12px }
