/* Law Books TOC — frontend */

.lbt-issue-block,
.lbt-article-page {
  font-size: 1.18rem;
  line-height: 1.55;
  color: #1e2d36;
}

.lbt-issue-block { margin: 1.75rem 0 2.25rem; }

.lbt-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid #b7c9d4;
}
.lbt-tab {
  padding: 0.55rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #7a8f9c;
}
.lbt-tab-active {
  color: #1e2d36;
  border-bottom: 2px solid #5a8a96;
  margin-bottom: -1px;
}

.lbt-pdf-actions {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lbt-toc {
  border: 1px solid #b7c9d4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 45, 54, 0.06);
}

.lbt-acc { border-bottom: 1px solid #d0dde5; }
.lbt-acc:last-child { border-bottom: none; }

.lbt-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: #e8f0f4;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #1e2d36;
  font-size: 1.25rem;
  font-weight: 700;
}
.lbt-acc-head:hover { background: #dde8ee; }
.lbt-acc-title { flex: 1; }
.lbt-acc-icon {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #5a8a96;
  border-bottom: 2px solid #5a8a96;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lbt-acc.is-open .lbt-acc-icon {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}
.lbt-acc-body {
  padding: 0.35rem 1.2rem 0.9rem;
  background: #fff;
}

.lbt-toc-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2ebf0;
}
.lbt-toc-item:last-child { border-bottom: none; }

.lbt-toc-link {
  display: block;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.45;
  color: #2a5f72 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 0.4rem;
}

.lbt-toc-meta {
  display: grid;
  gap: 0.25rem;
}
.lbt-toc-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.55rem;
  font-size: 1.18rem;
  align-items: baseline;
}
.lbt-toc-label {
  color: #6a7f8c;
  white-space: nowrap;
}
.lbt-toc-val { color: #1e2d36; }

.lbt-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none !important;
}
.lbt-btn-pdf {
  background: #5a8a96;
  color: #fff !important;
  border: 1px solid #4d7a86;
}

.lbt-text-pdf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.lbt-text-pdf-label { color: #3d5260; font-weight: 600; }

.lbt-chip {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
}
.lbt-chip-read { background: #3b9dd6; }
.lbt-chip-dl { background: #3cb87a; }

/* —— страница статьи —— */
.lbt-article-page { max-width: 960px; }

.lbt-art-header { margin-bottom: 0.75rem; }
.lbt-art-journal {
  font-size: 1.05rem;
  color: #5a6f7c;
  line-height: 1.5;
}
.lbt-art-journal a { color: #2a5f72; }

.lbt-author-chips {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}
.lbt-author-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.lbt-author-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #5a8a96;
  flex-shrink: 0;
}

.lbt-article-page .lbt-acc {
  border: 1px solid #b7c9d4;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: #fff;
}
.lbt-article-page .lbt-acc-head {
  background: #e8f0f4;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 1.15rem;
}
.lbt-article-page .lbt-acc-body {
  padding: 0.75rem 1.15rem 1rem;
}

/* Таблица метаданных: широкая колонка подписей, без ломания длинных фраз */
.lbt-info-table {
  display: grid;
  gap: 0.45rem;
}
.lbt-info-row {
  display: grid;
  grid-template-columns: minmax(13.5rem, 16rem) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.15rem;
  font-size: 1.12rem;
  line-height: 1.45;
  align-items: start;
}
.lbt-info-label {
  color: #5a6f7c;
  font-weight: 500;
  /* не рвать «Дата поступления…» на три строки */
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.lbt-info-val {
  color: #1e2d36;
  min-width: 0;
}

.lbt-sublabel {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: #3d5260;
  font-size: 1.08rem;
}
.lbt-text {
  color: #1e2d36;
  line-height: 1.65;
  font-size: 1.12rem;
}
.lbt-muted { color: #6a7f8c; }
.lbt-back { margin-top: 1.25rem; }
.lbt-back a { color: #2a5f72; }

@media (max-width: 720px) {
  .lbt-toc-row,
  .lbt-info-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .lbt-toc-label,
  .lbt-info-label {
    font-size: 0.95rem;
  }
}
