/* TAG result-list page: isolated from shared channel styles. */
.tag-list-page {
  --tag-accent: #0870bc;
  --tag-accent-deep: #075da7;
  --tag-ink: #061b3a;
  --tag-copy: #52709a;
  --tag-muted: #8ea4c1;
  --tag-line: #dce6f1;
  --tag-surface: #f5f8fc;
  background: #fff;
}

.tag-list-page .page-header-section {
  padding: 68px 0 86px;
  background: var(--tag-surface);
}

.tag-list-page .page-header h1 {
  margin: 0;
  color: var(--tag-ink);
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.tag-list-page .page-header h1::after {
  display: block;
  width: 54px;
  height: 3px;
  margin: 12px auto 0;
  content: '';
  background: var(--tag-accent);
}

.tag-list-page .taglist {
  padding-top: 32px;
  padding-bottom: 80px;
}

.tag-list-page .taglist > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 28px;
  align-items: start;
  margin: 0;
}

.tag-list-page .taglist .col-md-9,
.tag-list-page .taglist .col-md-3 {
  width: auto;
  max-width: none;
  padding: 0;
}

.tag-list-page .taglist .col-md-9 {
  display: grid;
  gap: 16px;
}

.tag-list-page .list-article {
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid #edf1f6;
  border-radius: 4px !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 40, 81, .07) !important;
  transition: box-shadow .2s ease, transform .2s ease;
}

.tag-list-page .list-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 40, 81, .11) !important;
}

.tag-list-page .list-article h2 {
  margin: 0 0 14px !important;
  color: var(--tag-ink);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.18;
}

.tag-list-page .list-article h2 a {
  color: inherit;
  text-decoration: none;
}

.tag-list-page .list-article h2 a:hover,
.tag-list-page .list-article h2 a:focus {
  color: var(--tag-accent);
}

.tag-list-page .list-article p {
  margin: 0 0 16px;
  color: var(--tag-copy);
  font-size: 14px;
  line-height: 1.55;
}

.tag-list-page .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--tag-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tag-list-page .date,
.tag-list-page .min-tag a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--tag-muted);
  text-decoration: none;
}

.tag-list-page .date .fa {
  display: none;
}

.tag-list-page .date::before,
.tag-list-page .min-tag a::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  content: '';
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tag-list-page .date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238ea4c1'%3E%3Cpath d='M7 2h2v3H7V2Zm8 0h2v3h-2V2ZM4 6h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Zm0 5v9h16v-9H4Z'/%3E%3C/svg%3E");
}

.tag-list-page .min-tag a {
  margin-left: 0; margin-right: 20px;
}

.tag-list-page .min-tag a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238ea4c1'%3E%3Cpath d='M20 12 12 4H4a2 2 0 0 0-2 2v8l8 8a2 2 0 0 0 2.83 0L20 14a2 2 0 0 0 0-2Zm-14-3a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");
}

.tag-list-page .min-tag a:hover,
.tag-list-page .min-tag a:focus {
  color: var(--tag-accent);
}

.tag-list-page .taglist aside {
  display: grid;
  gap: 18px;
}

.tag-list-page .right-card {
  margin: 0 !important;
  border: 0;
  background: var(--tag-surface);
}

.tag-list-page .ps-content-card {
  padding: 15px;
  background: var(--tag-surface);
}

.tag-list-page .tabs-title h2 {
  position: relative;
  margin: 0;
  padding: 2px 0 16px 16px;
  border-bottom: 1px solid var(--tag-line);
  color: var(--tag-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.tag-list-page .tabs-title h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 21px;
  content: '';
  background: var(--tag-accent);
}

.tag-list-page .right-list .item-card {
  display: block;
  padding: 13px 0 10px;
  border-bottom: 1px solid var(--tag-line);
  color: inherit;
  text-decoration: none;
}

.tag-list-page .right-list .item-card:last-child {
  border-bottom: 0;
}

.tag-list-page .right-list .title {
  display: -webkit-box;
  overflow: hidden;
  color: #2f4b72;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list-page .right-list .info {
  margin-top: 3px;
  color: var(--tag-muted);
  font-size: 13px;
  line-height: 1.25;
}

.tag-list-page .right-list .item-card:hover .title,
.tag-list-page .right-list .item-card:focus .title {
  color: var(--tag-accent);
}

.tag-list-page .pagination {
  grid-column: 1;
  margin: 8px 0 0;
}

.tag-list-page .pagination a,
.tag-list-page .pagination span {
  border-color: var(--tag-line);
  color: var(--tag-copy);
}

.tag-list-page .pagination .active a,
.tag-list-page .pagination .active span,
.tag-list-page .pagination a:hover,
.tag-list-page .pagination a:focus {
  border-color: var(--tag-accent);
  background: var(--tag-accent);
  color: #fff;
}

[dir='rtl'] .tag-list-page .tabs-title h2 {
  padding-right: 16px;
  padding-left: 0;
}

[dir='rtl'] .tag-list-page .tabs-title h2::before {
  right: 0;
  left: auto;
}

@media (max-width: 991px) {
  .tag-list-page .taglist > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-list-page .taglist aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tag-list-page .page-header-section {
    padding: 48px 0 56px;
  }

  .tag-list-page .taglist {
    padding-top: 22px;
    padding-bottom: 52px;
  }

  .tag-list-page .list-article {
    padding: 16px !important;
  }

  .tag-list-page .list-article h2 {
    font-size: 20px;
  }

  .tag-list-page .list-article p {
    font-size: 15px;
  }

  .tag-list-page .taglist aside {
    grid-template-columns: 1fr;
  }
}
/* TAG directory page */
.tag-index-page {
  --tag-accent: #0870bc;
  --tag-accent-deep: #075da7;
  --tag-ink: #061b3a;
  --tag-copy: #52709a;
  --tag-line: #dce6f1;
  --tag-surface: #f5f8fc;
  background: #fff;
}

.tag-index-page .page-header-section {
  padding: 68px 0 86px;
  background: var(--tag-surface);
}

.tag-index-page .page-header h1 {
  margin: 0;
  color: var(--tag-ink);
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.tag-index-page .page-header h1::after {
  display: block;
  width: 54px;
  height: 3px;
  margin: 12px auto 0;
  content: '';
  background: var(--tag-accent);
}

.tag-index-page .tag-index-content {
  padding-top: 38px;
  padding-bottom: 84px;
}

.tag-index-page .item-tag {
  margin: 0 0 24px !important;
  padding: 26px 28px 28px;
  border: 1px solid #e6edf5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(7, 40, 81, .06);
}

.tag-index-page .item-tag:last-child {
  margin-bottom: 0 !important;
}

.tag-index-page .item-tag h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 15px;
  color: var(--tag-ink);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.25;
}

.tag-index-page .item-tag h2::before {
  position: absolute;
  top: .08em;
  bottom: .08em;
  left: 0;
  width: 4px;
  content: '';
  border-radius: 2px;
  background: var(--tag-accent);
}

.tag-index-page .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-index-page .tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--tag-accent) !important;
  border-radius: 3px;
  background: #fff;
  color: var(--tag-accent) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.tag-index-page .tag-list a:hover,
.tag-index-page .tag-list a:focus,
.tag-index-page .tag-list a:active {
  border-color: var(--tag-accent-deep) !important;
  background: var(--tag-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(8, 112, 188, .2);
  transform: translateY(-1px);
}

.tag-index-page .tag-list a:focus-visible {
  outline: 2px solid rgba(8, 112, 188, .35);
  outline-offset: 2px;
}

[dir='rtl'] .tag-index-page .item-tag h2 {
  padding-right: 15px;
  padding-left: 0;
}

[dir='rtl'] .tag-index-page .item-tag h2::before {
  right: 0;
  left: auto;
}

@media (max-width: 640px) {
  .tag-index-page .page-header-section {
    padding: 48px 0 56px;
  }

  .tag-index-page .tag-index-content {
    padding-top: 24px;
    padding-bottom: 54px;
  }

  .tag-index-page .item-tag {
    padding: 20px 16px;
  }

  .tag-index-page .item-tag h2 {
    margin-bottom: 16px;
    font-size: 21px;
  }

  .tag-index-page .tag-list {
    gap: 8px;
  }

  .tag-index-page .tag-list a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }
}