/* Kiểu bài nội dung — không gắn vào landing.css (parity byte trang chủ). */
.chviet-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chviet-skip:focus,
.chviet-skip:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: #0b203a;
  color: #f5f8fc;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.chviet-crumbs {
  background: #fff;
  border-bottom: 1px solid #e6eef6;
}
.chviet-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.35;
}
.chviet-crumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.chviet-crumbs__link,
.chviet-crumbs__here {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.chviet-crumbs__link {
  color: #3d4f63;
  text-decoration: none;
}
.chviet-crumbs__link:hover {
  color: #0866ff;
}
.chviet-crumbs__here {
  color: #0b203a;
  font-weight: 600;
}
.chviet-crumbs__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 0.35rem;
  color: #8a9bb0;
}
.chviet-crumbs__home {
  flex: none;
}
@media (min-width: 640px) {
  .chviet-crumbs__list {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.chviet-chrome-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-width: 0;
}
.chviet-chrome-logo {
  display: block;
  max-width: min(10rem, 46vw);
  height: auto;
}
.chviet-chrome-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}
.chviet-chrome-h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.5rem, 4.6vw, 2.25rem);
  line-height: 1.2;
}

.chviet-article {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #0b203a;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.chviet-article h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
}
.chviet-article h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  line-height: 1.35;
  font-weight: 650;
}
.chviet-article p,
.chviet-article blockquote {
  margin: 0.85rem 0;
}
.chviet-article ul,
.chviet-article ol {
  margin: 0.85rem 0;
  padding-left: 1.35rem;
}
.chviet-article ul {
  list-style: disc;
}
.chviet-article ol {
  list-style: decimal;
}
.chviet-article li {
  margin: 0.35rem 0;
  display: list-item;
}
.chviet-article li > ul,
.chviet-article li > ol {
  margin: 0.25rem 0;
}
.chviet-article a {
  color: #0866ff;
  text-decoration-underline-offset: 0.12em;
}
.chviet-article pre,
.chviet-article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.chviet-article pre,
.chviet-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}
.chviet-article pre {
  margin: 0.85rem 0;
  padding: 0.75rem 1rem;
  background: #f5f8fc;
  border-radius: 0.5rem;
  white-space: pre;
}
.chviet-article :not(pre) > code {
  background: #f5f8fc;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}
.chviet-article img,
.chviet-article svg {
  max-width: 100%;
  height: auto;
}
.chviet-article table {
  border-collapse: collapse;
}
.chviet-article th,
.chviet-article td {
  padding: 0.4rem 0.6rem;
  border: 1px solid #d7e1ee;
  white-space: nowrap;
}

.chviet-plain {
  font-weight: 500;
}

@media (max-width: 420px) {
  .chviet-chrome-nav a:last-child {
    white-space: normal;
    text-align: center;
  }
}

.chviet-hub-shell--article {
  display: grid;
  grid-template-columns: minmax(0, 18.5rem) minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: 2rem;
  align-items: start;
}
.chviet-hub-side {
  grid-area: side;
  padding: 1rem 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
}
.chviet-hub-main {
  grid-area: main;
}
.chviet-hub-back {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}
.chviet-hub-side-summary {
  cursor: pointer;
  font-weight: 600;
  color: #0b203a;
  margin-bottom: 0.75rem;
}
.chviet-hub-topics {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chviet-hub-topic {
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #f5f8fc;
}
.chviet-hub-topic[open] {
  background: #fff;
  border-color: #0866ff;
}
.chviet-hub-topic-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  list-style: none;
}
.chviet-hub-topic-head::-webkit-details-marker {
  display: none;
}
.chviet-hub-topic-chevron {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
  border-right: 2px solid #4b5a6b;
  border-bottom: 2px solid #4b5a6b;
  transform: rotate(-45deg);
}
.chviet-hub-topic[open] .chviet-hub-topic-chevron {
  margin-top: 0.1rem;
  border-color: #0866ff;
  transform: rotate(45deg);
}
.chviet-hub-topic-label {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b203a;
}
.chviet-hub-topic-count {
  flex: none;
  margin-left: auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e6eef6;
  color: #0b203a;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
}
.chviet-hub-topic[open] .chviet-hub-topic-count {
  background: #e8f1ff;
  color: #0756d6;
}
.chviet-hub-topic-pages {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0 0.4rem 0.5rem;
  list-style: none;
}
.chviet-hub-topic-link {
  display: block;
  padding: 0.45rem 0.6rem 0.45rem 0.7rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #1e3348;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.chviet-hub-topic-link:hover {
  background: #f5f8fc;
  color: #0866ff;
}
.chviet-hub-topic-link[aria-current='page'] {
  background: #e8f1ff;
  border-left-color: #0866ff;
  color: #0b203a;
  font-weight: 600;
}
.chviet-hub-empty-topic {
  margin: 0.2rem 0.35rem 0;
  font-size: 0.875rem;
  color: #5b6b7c;
}
.chviet-hub-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0866ff;
}
/* Nhãn 12px trên Mist #F5F8FC: #4B5A6B ≈ 6.63:1 (≥ 4.5). Không dùng text-ink-400/#64748B. */
.chviet-hub-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4b5a6b;
}
.chviet-hub-toc {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 0.75rem;
}
.chviet-hub-toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}
.chviet-hub-toc-h3 {
  margin-left: 0.75rem;
}
.chviet-hub-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #d7e1ee;
}
.chviet-hub-banner {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ff9f00;
  background: #fff8eb;
  color: #0b203a;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}
.chviet-hub-home-topics {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.chviet-hub-results {
  list-style: none;
  padding: 0;
}
.chviet-hub-results li {
  margin: 0 0 1rem;
}
.chviet-hub-results p {
  margin: 0.25rem 0 0;
  color: #5b6b7c;
}
.chviet-article table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
}
.chviet-article th,
.chviet-article td {
  border: 1px solid #d7e1ee;
  padding: 0.45rem 0.7rem;
  text-align: left;
}
.chviet-article blockquote {
  margin: 1rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid #0866ff;
  background: #f5f8fc;
  color: #0b203a;
}
.chviet-article img {
  max-width: 100%;
  height: auto;
}
.cms-inline {
  margin: 1.35rem 0;
  padding: 0.75rem 0.75rem 0.7rem;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
}
.cms-inline-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #f5f8fc;
  cursor: zoom-in;
}
.cms-inline-open img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 22rem;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}
.cms-inline figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: #3d4f63;
}
.cms-inline figcaption::after {
  content: " · Bấm để phóng lớn";
}
.cms-zoom {
  display: none;
  flex-direction: column;
  width: min(96vw, 72rem);
  max-height: 92vh;
  margin: auto;
  padding: 0.75rem;
  border: 0;
  border-radius: 12px;
  background: #0b203a;
}
.cms-zoom[open] {
  display: flex;
}
.cms-zoom img[src=""] {
  display: none;
}
.cms-zoom::backdrop {
  background: rgba(11, 32, 58, 0.72);
}
.cms-zoom img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 3.75rem);
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
}
.cms-zoom-close {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 2.25rem;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0b203a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 768px) {
  .chviet-hub-shell--article {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "side";
  }
  .chviet-hub-side {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}
@media (min-width: 769px) {
  .chviet-hub-side {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
  .chviet-hub-side-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.chviet-share {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 0.75rem;
}
.chviet-share + .cms-cover {
  margin-top: 1.75rem;
}
.chviet-share-label {
  margin: 0 0 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d4f63;
}
.chviet-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chviet-share-ico {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}
.chviet-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  color: #0b203a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.chviet-share-btn:hover {
  border-color: #0866ff;
  color: #0756d8;
}
.chviet-share-btn--primary {
  border-color: #0866ff;
  background: #0866ff;
  color: #fff;
}
.chviet-share-btn--primary:hover {
  border-color: #0756d8;
  background: #0756d8;
  color: #fff;
}
.chviet-share-status {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: #166534;
}
.cms-cover {
  display: block;
  width: min(100%, 48rem);
  height: auto;
  margin-top: 1.5rem;
  border-radius: 12px;
}

.cms-webm {
  margin: 1.35rem 0;
  padding: 0.75rem 0.75rem 0.7rem;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
}
.cms-webm video {
  display: block;
  width: 100%;
  max-height: 28rem;
  background: #0b203a;
  border-radius: 8px;
}
.cms-webm figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: #3d4f63;
}
.cms-youtube figcaption::after {
  content: none;
}
.cms-youtube-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e6eef6;
  border-radius: 12px;
  background: #f7f9fc;
}
.cms-youtube-frame.is-playing {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #0b203a;
}
.cms-youtube-zoom-close {
  display: none;
}
.cms-youtube.is-zoomed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 32, 58, 0.72);
}
.cms-youtube.is-zoomed .cms-youtube-frame {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(96vw, 72rem);
  max-height: 92vh;
  margin: 0;
  aspect-ratio: auto;
  padding: 0.75rem;
  border: 0;
  border-radius: 12px;
  background: #0b203a;
}
.cms-youtube.is-zoomed .cms-youtube-zoom-close {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 2.25rem;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0b203a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.cms-youtube.is-zoomed .cms-youtube-frame iframe {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.cms-youtube-play {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1.25rem 1.05rem;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #0b203a;
  font: inherit;
  cursor: pointer;
}
.cms-youtube-play::before,
.cms-youtube-play::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cms-youtube-play::before {
  right: -7rem;
  bottom: -9rem;
  width: 16rem;
  height: 16rem;
  background: rgba(8, 102, 255, 0.07);
}
.cms-youtube-play::after {
  left: -5rem;
  bottom: -7rem;
  width: 11rem;
  height: 11rem;
  background: rgba(8, 102, 255, 0.045);
}
.cms-youtube-play[hidden] {
  display: none;
}
.cms-youtube-top,
.cms-youtube-heading,
.cms-youtube-play-mark,
.cms-youtube-cta,
.cms-youtube-rule,
.cms-youtube-note {
  position: relative;
  z-index: 1;
}
.cms-youtube-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.1rem;
}
.cms-youtube-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b203a;
}
.cms-youtube-brand-mark {
  width: 0.85rem;
  height: 0.18rem;
  border-radius: 2px;
  background: #ff9f00;
}
.cms-youtube-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8aa0b5;
}
.cms-youtube-heading {
  max-width: 14em;
  margin: 0 0 0.95rem;
  font-size: clamp(1.45rem, 4.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: #0b203a;
}
.cms-youtube-play-mark {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  background: #0866ff;
}
.cms-youtube-play:hover .cms-youtube-play-mark {
  background: #0756d8;
}
.cms-youtube-cta {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b203a;
}
.cms-youtube-rule {
  width: min(100%, 16rem);
  height: 1px;
  margin: 0.95rem 0 0.7rem;
  background: #d5e0ec;
}
.cms-youtube-note {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8aa0b5;
}
.cms-youtube-frame iframe,
.cms-zoom-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cms-youtube-zoom {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0866ff;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cms-youtube-zoom::before {
  content: ": ";
  color: #3d4f63;
  font-weight: 400;
}
.cms-zoom-video {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0b203a;
}
.cms-zoom-video.is-active {
  display: block;
}
