/* Documents page — aligned with tuvan / info civic style */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");

.docs-page {
  --blue: #1a6bb5;
  --blue-deep: #0f4f8a;
  --sky: #e8f3fc;
  --line: #d0e0ef;
  --text: #243447;
  --muted: #5a6f82;
  font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  padding: 4px 0 32px;
  box-sizing: border-box;
}

.docs-page *,
.docs-page *:before,
.docs-page *:after {
  box-sizing: border-box;
}

.docs-head {
  margin: 0 0 20px;
}

.docs-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.docs-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.25;
}

.docs-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.docs-panel {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.docs-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.docs-panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-deep);
}

.docs-panel-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.docs-item:last-child {
  border-bottom: 0;
}

.docs-item:hover {
  background: #f7fbfe;
}

.docs-item-index {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.docs-item-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef5fb;
  color: var(--blue);
  font-size: 16px;
}

.docs-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.docs-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.docs-item-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.docs-download {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.docs-download:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff !important;
}

.docs-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.docs-empty i {
  display: block;
  margin: 0 auto 10px;
  font-size: 28px;
  color: var(--blue);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .docs-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .docs-item-index {
    display: none;
  }

  .docs-download {
    width: 100%;
    margin-top: 4px;
  }
}
