/* Shared public shell elements that must not depend on a page-specific bundle. */
.contact-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-float a {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(0 0 0 / 25%);
}

.contact-float svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentcolor;
}

.contact-float .zalo {
  background: #0068ff;
  font-size: 13px;
}

.contact-float .messenger {
  background: #0a7cff;
}

.contact-float .phone {
  background: #34a853;
  animation: contact-phone-pulse 1.5s infinite;
}

.contact-float .phone .material-symbols-outlined {
  font-size: 23px;
}

@keyframes contact-phone-pulse {
  50% {
    transform: scale(1.07);
  }
}

.cp-article-content table {
  display: block;
  width: 100%;
  margin: 28px 0 32px;
  overflow-x: auto;
  border: 1px solid #cbd8e1;
  border-radius: 10px;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

.cp-article-content th,
.cp-article-content td {
  min-width: 150px;
  padding: 15px 17px;
  border-right: 1px solid #cbd8e1;
  border-bottom: 1px solid #cbd8e1;
  text-align: left;
  vertical-align: top;
}

.cp-article-content th {
  background: var(--thl-color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.cp-article-content th strong {
  color: inherit;
}

.cp-article-content tbody tr:nth-child(even) {
  background: var(--thl-color-surface-subtle);
}

.cp-article-content td:first-child {
  color: var(--thl-color-primary);
  font-weight: 700;
}

.cp-article-content th:last-child,
.cp-article-content td:last-child {
  border-right: 0;
}

.cp-article-content tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 767px) {
  .contact-float {
    right: 14px;
    bottom: 14px;
    gap: 9px;
  }

  .contact-float a {
    width: 48px;
    height: 48px;
  }

  .cp-article-content table {
    margin-block: 22px 26px;
    font-size: 14px;
  }

  .cp-article-content th,
  .cp-article-content td {
    min-width: 160px;
    padding: 12px 14px;
  }
}

/* Category titles carry the subject: show them in full at every viewport. */
.cp-category-list .cp-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.cp-category-list .cp-news-grid article {
  height: auto;
  min-height: 0;
}

.cp-category-list .cp-news-copy h2 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.cp-category-list .cp-news-copy > a {
  padding-top: 8px;
}

.cp-category-list .cp-news-grid figure > span {
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .cp-category-list .cp-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .cp-category-list .cp-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Extend the existing native link across the card, including its image. */
.cp-news-grid .cp-linked-card {
  position: relative;
}

.cp-linked-card .cp-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.cp-linked-card:hover h2 {
  color: var(--thl-color-accent);
}

.cp-linked-card:focus-within {
  outline: 3px solid var(--thl-color-accent);
  outline-offset: 4px;
}

.site-footer .newsletter-status { min-height: 4.5em; margin: 8px 0 0; font-size: 13px; line-height: 1.5; overflow-anchor: none; }
