﻿/* Article detail inherits the news archive's type, palette and media components. */
.dgp-article {
  --news-ink: #000;
  --news-muted: #000;
  --news-accent: #000;
  --dgp-heading: #000;
  --dgp-body: #000;
  padding-top: 30px;
  color: #000;
  font-size: 16px;
  font-weight: 400;
}
#content.dgp-article,
#content.dgp-article :not(i):not(svg):not(svg *):not(.icon):not([class*="icon-"]) {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}
.dgp-article [hidden] { display: none !important; }
.dgp-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: start; }
.dgp-article__main { min-width: 0; }
.dgp-article__post { margin: 0; }
.dgp-article__header { width: 100%; padding: 10px 0 28px; margin-bottom: 32px; border-bottom: 1px solid var(--news-line); }
.dgp-article h1 { max-width: none; font-size: clamp(32px, 3.5vw, 52px); line-height: 1.23; font-weight: 500; overflow-wrap: anywhere; margin-bottom: 24px; }
.dgp-article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--news-muted); font-size: 12px; }
.dgp-article__byline strong { color: var(--news-ink); font-weight: 500; }
.dgp-article__byline .dgp-news__meta { font-size: 12px; }
.dgp-article .dgp-article__lead { color: var(--dgp-body); font-size: 18px; font-weight: 400; line-height: 1.8; margin: 24px 0 0; max-width: 70ch; }
.dgp-article__cover { margin: 0 0 36px; }
.dgp-article__cover img { display: block; width: 100%; height: auto; }
.dgp-article__cover figcaption { font-size: 12px; line-height: 1.7; color: var(--news-muted); margin-top: 12px; text-align: center; }
.dgp-article__body { width: 100%; max-width: none; padding: 0; margin: 0; color: #000; font-size: 16px; line-height: 1.8; font-weight: 400; overflow-wrap: anywhere; }
.dgp-article__body::after { content: ""; display: table; clear: both; }
.dgp-article__body > :first-child { margin-top: 0; }
.dgp-article__body p { margin-bottom: 1.4em; color: #000; font-size: 16px; font-weight: 400; }
.dgp-article__body h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.35; font-weight: 500; margin: 1.6em 0 .65em; }
.dgp-article__body h3 { font-size: 24px; line-height: 1.4; font-weight: 500; margin: 1.4em 0 .65em; }
.dgp-article__body :is(h2,h3,h4,[id]) { scroll-margin-top: 130px; }
.dgp-article__body a { text-decoration: underline; color: var(--news-accent); }
.dgp-article__body :is(ul,ol) { margin: 0 0 1.5em; padding-left: 1.6em; }
.dgp-article__body li { margin-bottom: .55em; }
.dgp-article__body :is(img,video,iframe,figure,.wp-caption,.alignwide,.alignfull) { max-width: 100%; }
.dgp-article__body img { height: auto; }
.dgp-article__body .alignfull { width: 100%; margin-inline: 0; left: auto; }
.dgp-article__body figcaption, .dgp-article__body .wp-caption-text { color: var(--news-muted); font-size: 13px; line-height: 1.7; margin-top: 10px; }
.dgp-article__body blockquote { border: 0; background: var(--dgp-wood-light); color: var(--news-ink); padding: 26px 30px; margin: 32px 0; font-size: 20px; font-style: normal; }
.dgp-article__body blockquote p:last-child { margin-bottom: 0; }
.dgp-article__body pre { max-width: 100%; overflow-x: auto; padding: 20px; background: #fff; font-size: 14px; }
.dgp-article__body table { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: 14px; }
.dgp-article__body th, .dgp-article__body td { padding: 12px 14px; border-bottom: 1px solid var(--news-line); text-align: left; }
.dgp-article__body th { background: var(--dgp-wood-light); color: var(--news-ink); }
.dgp-article__table-scroll, .dgp-article__body .wp-block-table { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--news-accent) var(--dgp-wood-light); }
.dgp-article__table-scroll:focus-visible { outline: 2px solid var(--news-accent); outline-offset: 3px; }
.dgp-article__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; }
.dgp-article__pages :is(a,.post-page-numbers) { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
.dgp-article__pages .current { background: var(--news-ink); color: #fff; }
.dgp-article__end { padding-top: 28px; margin-top: 34px; border-top: 1px solid var(--news-line); }
.dgp-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 13px; margin-bottom: 18px; }
.dgp-article__tags a { text-decoration: underline; }
.dgp-article__share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--news-ink); }
.dgp-article__share > span:first-child { color: var(--news-muted); }
.dgp-article__share > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.dgp-article .dgp-article__copy { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px; margin: 0; border: 1px solid var(--news-line); border-radius: 0; background: transparent; box-shadow: none; color: var(--news-ink); text-transform: none; letter-spacing: normal; line-height: 1.5; font: inherit; font-size: 13px; cursor: pointer; }
.dgp-article .dgp-article__copy:hover { background: var(--dgp-wood-light); }
.dgp-article__copy-field { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.dgp-article__back { margin: 24px 0 0; font-size: 13px; }
.dgp-article__back a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.dgp-article__sidebar { min-width: 0; align-self: stretch; border-left: 1px solid var(--news-line); padding-left: 24px; }
.dgp-article__sidebar-inner { position: sticky; top: 112px; }
.admin-bar .dgp-article__sidebar-inner { top: 144px; }
.dgp-article__sidebar h2 { font-size: 24px; font-weight: 500; line-height: 1.4; margin: 0 0 20px; }
.dgp-article__side-post { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--news-line); }
.dgp-article__side-media { display: block; grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dgp-wood-light, #e7dccd); }
.dgp-article__side-media .dgp-news__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(.16, 1, .3, 1); }
.dgp-article__side-media:hover .dgp-news__image { transform: scale(1.025); }
.dgp-article__side-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.dgp-article__side-post h3 { display: -webkit-box; margin: 0 0 8px; overflow: hidden; font-size: 18px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dgp-article__topics { margin-top: 32px; }
.dgp-article__topics a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--news-line); font-size: 12px; min-height: 44px; }
.dgp-article__related { margin-top: 64px; border-top: 1px solid var(--news-line); padding-top: 36px; }
.dgp-article__related-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dgp-article__related-heading h2 { font-size: clamp(27px, 2.8vw, 36px); font-weight: 500; margin: 0; }
.dgp-article__related-heading > a { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; }
.dgp-article__comments { border-top: 1px solid var(--news-line); margin-top: 40px; padding-top: 32px; }
.dgp-article__comments h2 { font-size: 30px; font-weight: 500; line-height: 1.4; margin-bottom: 28px; }
.dgp-article__comments h2 span { font-size: 18px; color: var(--news-muted); }
.dgp-article__comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.dgp-article__comments .comment-list li { margin: 0; padding: 0; }
.dgp-article__comments .comment-body { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--news-line); font-size: 14px; overflow-wrap: anywhere; }
.dgp-article__comments .comment-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--news-ink); }
.dgp-article__comments .comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; margin: 0 8px 0 0; }
.dgp-article__comments .comment-author .says { display: none; }
.dgp-article__comments .comment-metadata { margin: 8px 0 16px; font-size: 11px; color: var(--news-muted); }
.dgp-article__comments .comment-content p { margin-bottom: 14px; line-height: 1.8; }
.dgp-article__comments .reply { font-size: 12px; color: var(--news-accent); }
.dgp-article__comments .children { margin: 0 0 0 20px; list-style: none; padding: 0; }
.dgp-article__comments .comment-respond { margin: 0; padding: 28px 32px; background: #fff; }
.dgp-article__comments .comment-reply-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 12px; font-size: 26px; font-weight: 500; }
.dgp-article__comments .comment-reply-title small { font-family: "Be Vietnam Pro", Arial, sans-serif; font-size: 12px; }
.dgp-article__comments :is(.comment-notes,.logged-in-as,.comment-form-cookies-consent) { font-size: 12px; color: var(--news-muted); line-height: 1.8; }
.dgp-article__comments label, .dgp-article__body .post-password-form label { display: block; font-size: 13px; color: var(--news-ink); font-weight: 500; margin-bottom: 7px; }
.dgp-article__comments :is(input:not([type=checkbox],[type=submit]),textarea), .dgp-article__body input[type=password] { width: 100%; border: 1px solid var(--news-muted); border-radius: 0; background: #fff; box-shadow: none; padding: 12px; font-size: 16px; color: var(--news-ink); caret-color: var(--news-accent); margin: 0; }
.dgp-article__comments textarea { resize: vertical; min-height: 140px; }
.dgp-article__comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.dgp-article__comments .comment-form-cookies-consent input { margin: 5px 0 0; accent-color: var(--news-ink); }
.dgp-article__comments .comment-form-cookies-consent label { font-size: 12px; font-weight: 400; line-height: 1.8; }
.dgp-article__comments input[type=submit], .dgp-article__body input[type=submit] { background: var(--news-ink); color: #fff; border: 1px solid var(--news-ink); border-radius: 0; padding: 10px 24px; min-height: 46px; box-shadow: none; margin: 0; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 500; }
.dgp-article__comments input[type=submit]:hover { background: var(--news-accent); border-color: var(--news-accent); }
.dgp-article__comments .form-submit { margin: 20px 0 0; }
.dgp-article__comments-closed { font-size: 14px; color: var(--news-muted); }
@media (max-width: 1100px) {
  .dgp-article__layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 320px; }
  .dgp-article__sidebar { padding-left: 18px; }
}
@media (max-width: 900px) {
  .dgp-article__layout { grid-template-columns: 1fr; gap: 44px; }
  .dgp-article__header { width: 100%; }
  .dgp-article__body { max-width: none; }
  .dgp-article__sidebar { display: none; }
  .dgp-article__sidebar-inner { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .dgp-article__topics { margin-top: 0; }
}
@media (max-width: 580px) {
  .dgp-article { padding-top: 22px; }
  .dgp-article__header { padding-top: 4px; padding-bottom: 24px; margin-bottom: 26px; }
  .dgp-article h1 { margin-bottom: 20px; }
  .dgp-article__byline { gap: 10px 18px; }
  .dgp-article__body { font-size: 16px; line-height: 1.9; }
  .dgp-article .dgp-article__lead { font-size: 17px; }
  .dgp-article__body blockquote { padding: 22px; font-size: 18px; }
  .dgp-article__share { gap: 10px 18px; }
  .dgp-article__share > span:first-child { width: 100%; }
  .dgp-article__comments h2 { font-size: 26px; }
  .dgp-article__comments .comment-respond { padding: 24px 20px; }
  .dgp-article__sidebar-inner { display: block; }
  .dgp-article__topics { margin-top: 28px; }
  .dgp-article__related { margin-top: 40px; padding-top: 28px; }
  .dgp-article__related-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
}

/* Reading typography shared with the news archive and About page. */
#content.dgp-article {
  --dgp-type-family: "Be Vietnam Pro", Arial, sans-serif;
  --dgp-type-h1: clamp(2.125rem, 2rem + 1.1vw, 3rem);
  --dgp-type-h2: clamp(1.8125rem, 1.65rem + .8vw, 2.375rem);
  --dgp-type-h3: clamp(1.5rem, 1.38rem + .35vw, 1.75rem);
  --dgp-type-body: clamp(1.0625rem, 1.02rem + .14vw, 1.125rem);
  --dgp-type-control: 1rem;
  --dgp-type-meta: .875rem;
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}
#content.dgp-article,
#content.dgp-article :not(i):not(svg):not(svg *):not(.icon):not([class*="icon-"]) { font-family: "Be Vietnam Pro", Arial, sans-serif !important; }
.dgp-article h1 { width: 100%; max-width: none; font-size: var(--dgp-type-h1) !important; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: wrap; }
.dgp-article :is(.dgp-article__body h2,.dgp-article__sidebar h2,.dgp-article__related-heading h2,.dgp-article__comments h2) { font-size: var(--dgp-type-h2) !important; font-weight: 700; line-height: 1.2; letter-spacing: -.018em; }
.dgp-article :is(.dgp-article__body h3,.dgp-article__side-post h3,.dgp-article__comments .comment-reply-title) { font-size: var(--dgp-type-h3) !important; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.dgp-article :is(.dgp-article__lead,.dgp-article__body,.dgp-article__body p,.dgp-article__comments .comment-content p) { font-size: var(--dgp-type-body) !important; line-height: 1.72 !important; }
.dgp-article__body { width: 100%; max-width: none; }
.dgp-article :is(.dgp-article__copy,.dgp-article__back,.dgp-article__related-heading > a,.dgp-article__topics a,.dgp-article__comments label,.dgp-article__comments input[type=submit]) { font-size: var(--dgp-type-control) !important; }
.dgp-article :is(.dgp-article__byline,.dgp-news__meta,.dgp-article__cover figcaption,.dgp-article__body figcaption,.dgp-article__tags,.dgp-article__share,.comment-metadata,.comment-notes,.logged-in-as) { font-size: var(--dgp-type-meta) !important; line-height: 1.5; }
body #main #content.dgp-article .dgp-article__sidebar h2 { font-size: 1.5rem !important; line-height: 1.3; }
body #main #content.dgp-article .dgp-article__side-post h3 { font-size: 1.125rem !important; font-weight: 500 !important; line-height: 1.4; }
.dgp-article .dgp-article__sidebar .dgp-article__topics a { font-size: .9rem !important; }

/* Easy Table of Contents is normalized into the article reading system. */
.dgp-article__body #ez-toc-container {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem;
  padding: 1.25rem 1.375rem;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.dgp-article__body #ez-toc-container .ez-toc-title-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dgp-article__body #ez-toc-container .ez-toc-title { color: var(--news-ink); font-size: 0 !important; font-weight: 700; line-height: 1.3 !important; }
.dgp-article__body #ez-toc-container .ez-toc-title::before { color: var(--news-ink); content: "Mục lục"; font-size: 1.25rem; }
.dgp-article__body #ez-toc-container nav,
.dgp-article__body #ez-toc-container ul,
.dgp-article__body #ez-toc-container li { width: 100%; max-width: 100%; min-width: 0; overflow: visible; }
.dgp-article__body #ez-toc-container nav { margin-top: 1rem; }
.dgp-article__body #ez-toc-container ul ul { margin: .5rem 0 .25rem 1.25rem; padding-left: .875rem; border-left: 1px solid var(--news-line); }
.dgp-article__body #ez-toc-container li + li { margin-top: .625rem; }
.dgp-article__body #ez-toc-container a.ez-toc-link { display: block; width: 100%; min-height: 0; color: var(--news-ink); font-size: 1rem !important; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.dgp-article__body #ez-toc-container.ez-toc-counter nav a::before { display: none !important; content: none !important; }
.dgp-article__body #ez-toc-container .ez-toc-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin: 0; }

.dgp-article__body > :is(h2,h3) { text-wrap: balance; }
.dgp-article__body > h2 { margin-top: 1.75em; margin-bottom: .65em; }
.dgp-article__body > h3 { margin-top: 1.45em; margin-bottom: .55em; }
.dgp-article__body :is(ul,ol):not(.ez-toc-list) { padding-left: 1.35em; }
.dgp-article__body :is(ul,ol):not(.ez-toc-list) li + li { margin-top: .45em; }
.dgp-article__body table { font-size: 1rem; line-height: 1.55; }
.dgp-article__body th { font-weight: 700; }
@media (max-width: 650px) {
  #content.dgp-article { --dgp-type-h1: 2.125rem; --dgp-type-h2: 1.8125rem; --dgp-type-h3: 1.5rem; --dgp-type-body: 1.0625rem; --dgp-type-control: .9375rem; }
  .dgp-article :is(a,button,input,select,textarea) { min-height: 44px; }
  .dgp-article__body #ez-toc-container { padding: 1rem; }
  .dgp-article__body #ez-toc-container ul ul { margin-left: .5rem; padding-left: .75rem; }
  .dgp-article__body #ez-toc-container a.ez-toc-link { font-size: .9375rem !important; line-height: 1.55; }
  .dgp-article__side-post { grid-template-columns: minmax(112px, 40%) minmax(0, 1fr); }
  .dgp-article__body :is(table,thead,tbody,tfoot,tr,th,td) { overflow-wrap: anywhere; }
}

/* Article typography: Be Vietnam Pro with a navy, ink and wood hierarchy. */
#content.dgp-article {
  --news-ink: #243c57;
  --news-heading: #243c57;
  --news-body: #34312d;
  --news-muted: #686056;
  --news-accent: #0b57d0;
  --dgp-heading: #243c57;
  --dgp-body: #34312d;
  --dgp-type-family: "Be Vietnam Pro", Arial, sans-serif;
  --dgp-type-h1: clamp(2.5rem, 3.8vw, 3.5rem);
  --dgp-type-h2: clamp(1.875rem, 2.5vw, 2.375rem);
  --dgp-type-h3: clamp(1.5rem, 1.8vw, 1.8125rem);
  --dgp-type-body: 1.125rem;
  --dgp-type-lead: clamp(1.1875rem, 1.1rem + .2vw, 1.25rem);
  --dgp-type-control: 1rem;
  --dgp-type-meta: .875rem;
  color: var(--news-body);
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

#content.dgp-article,
#content.dgp-article :not(i):not(svg):not(svg *):not(.icon):not([class*="icon-"]) {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
}

.dgp-article :is(h1, h2, h3, h4, h5, h6) {
  color: var(--news-heading) !important;
}

.dgp-article h1 {
  font-size: var(--dgp-type-h1) !important;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.dgp-article :is(.dgp-article__body h2, .dgp-article__related-heading h2, .dgp-article__comments h2) {
  font-size: var(--dgp-type-h2) !important;
  font-weight: 700;
  line-height: 1.22;
}

.dgp-article :is(.dgp-article__body h3, .dgp-article__comments .comment-reply-title) {
  font-size: var(--dgp-type-h3) !important;
  font-weight: 700;
  line-height: 1.3;
}

.dgp-article .dgp-article__lead {
  max-width: 68ch;
  color: var(--news-body) !important;
  font-size: var(--dgp-type-lead) !important;
  line-height: 1.72 !important;
}

.dgp-article :is(.dgp-article__body, .dgp-article__body p, .dgp-article__body li, .dgp-article__comments .comment-content p) {
  color: var(--news-body) !important;
  font-size: var(--dgp-type-body) !important;
  line-height: 1.8 !important;
}

.dgp-article :is(.dgp-article__byline, .dgp-news__meta, .dgp-article__cover figcaption, .dgp-article__body figcaption, .dgp-article__tags, .dgp-article__share, .comment-metadata, .comment-notes, .logged-in-as) {
  color: var(--news-muted) !important;
  font-size: var(--dgp-type-meta) !important;
  line-height: 1.55;
}

.dgp-article :is(.dgp-article__byline strong, .dgp-article__sidebar h2, .dgp-article__side-post h3) {
  color: var(--news-heading) !important;
}

.dgp-article :is(.dgp-article__body a, .dgp-article__tags a, .dgp-article__share a, .dgp-article__back a, .dgp-article__related-heading > a) {
  color: var(--news-accent) !important;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dgp-article a:hover,
.dgp-article a:focus-visible {
  color: var(--news-ink) !important;
}

.dgp-article__body blockquote {
  color: var(--news-heading);
  font-size: 1.375rem;
  line-height: 1.6;
}

@media (max-width: 650px) {
  #content.dgp-article {
    --dgp-type-h1: 2.25rem;
    --dgp-type-h2: 1.875rem;
    --dgp-type-h3: 1.5rem;
    --dgp-type-body: 1.0625rem;
    --dgp-type-lead: 1.125rem;
    --dgp-type-control: 1rem;
  }
}

/* Keep the article sidebar on desktop; only the heading needs a full line box. */
.dgp-article__body :is(h2, h3, h4) { width: 100%; max-width: none; text-wrap: wrap; }
