/*捲軸*/
::-webkit-scrollbar {
  height: 0.3em;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/*底層頁*/
.detailTitBox {
  border-bottom: 1px solid rgb(123 137 159 / 50%);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}

.detailTitBox .type {
  padding: 5px 16px;
  display: inline-block;
  border-radius: 6px;
  font-weight: bold;
  font-size: .9rem;
  margin-bottom: .5rem;
}

.detailName {
  font-size: 2.5rem;
  font-weight: bold;
  /*text-decoration: underline;*/
}

.openTit {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  border: none;
  background: inherit;
  width: 100%;
  text-align: left;
}

.openTit .tit {
  font-size: 1.75rem;
  font-weight: bold;
  width: 95%;
}

.openTit i {
  width: 5%;
  text-align: center;
  font-size: 1.5rem;
}

.contentBox+.contentBox {
  margin-top: 2rem;
}

.openInfo {
  display: none;
}

/*網站維護*/
.repairPage {
  position: relative;
  z-index: 1;
}

.repair__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 75%);
}

.repairAni {
  margin-bottom: 1rem
}

.repairAni p {
  padding: 0 0 20px
}

.repairAni:last-child {
  margin-right: 0
}

.line {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 15px;
  background-color: var(--sub-color);
}

.load-2 .line:nth-last-child(1) {
  animation: loadingB 1.5s 1s infinite
}

.load-2 .line:nth-last-child(2) {
  animation: loadingB 1.5s .5s infinite
}

.load-2 .line:nth-last-child(3) {
  animation: loadingB 1.5s 0 infinite
}

@keyframes loadingB {
  0% {
    width: 15px;
  }

  50% {
    width: 35px;
  }

  100% {
    width: 15px;
  }
}

/* lg 以上限制為 800px，確保 1025px 大字模式仍有 5rem 留白 */
@media (min-width: 992px) {
  :root {
    --reading-max-width: 800px;
  }

  .detailTitBox > .container,
  .articleContent > .container,
  .title-container > .container,
  .reading-container {
    max-width: var(--reading-max-width);
  }

  /* 麵包屑跟著閱讀區縮窄；成果案例的閱讀區在頁面下半部，上方仍是滿寬故不列入 */
  body:has(.detailTitBox, .articleContent, .title-container) .breadCrumbs-block > .container {
    max-width: var(--reading-max-width);
  }
}

/* 編輯器內的寬表格與程式碼僅在自身區域水平捲動 */
.detailContent pre,
.detailContent .blob-wrapper,
.detailContent .content-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
