/* Giao diện Điểm tin: chuyển từ bản tin HTML gốc (daily-digest-*.html).
   Mọi luật đều nằm trong .dz-digest để không ảnh hưởng phần còn lại của site.
   Khối bản tin giữ nền sáng như bản gốc, kể cả khi site ở chế độ tối. */

.dz-digest {
  --dz-ink: #1c2024;
  --dz-navy: #16324f;
  --dz-blue: #2c5f8a;
  --dz-muted: #5b6470;
  --dz-soft: #9aa4b0;
  --dz-line: #e4e8ec;
  color-scheme: light;
  background: #eef1f5;
  color: var(--dz-ink);
  border-radius: 18px;
  padding: 16px;
  margin: 1rem 0 2rem;
  line-height: 1.62;
}
.dz-digest *, .dz-digest *::before, .dz-digest *::after { box-sizing: border-box; }
.dz-digest p, .dz-digest li, .dz-digest span, .dz-digest div { color: inherit; }

/* đầu trang */
.dz-digest header.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 18px;
  padding: 28px 30px; margin-bottom: 18px;
  background: linear-gradient(135deg, #16324f 0%, #2c5f8a 55%, #3a7ca5 100%);
}
.dz-digest header.hero h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.3px; color: #fff; line-height: 1.25; }
.dz-digest header.hero .sub { opacity: .92; font-size: 14px; max-width: 640px; color: #fff; }
.dz-digest header.hero .date {
  margin-top: 14px; font-size: 13px; display: inline-block; color: #fff;
  background: rgba(255, 255, 255, .16); padding: 5px 14px; border-radius: 999px;
}
.dz-digest header.hero svg.deco { position: absolute; right: -30px; top: -20px; opacity: .22; }

/* mục lục */
.dz-digest .dz-toc { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.dz-digest .dz-toc a {
  text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 14px;
  border-radius: 999px; background: #fff; color: var(--dz-blue); border: 1px solid #dce1e7;
}

/* bỏ kiểu liên kết mặc định của site bên trong bản tin */
.dz-digest a, .dz-digest a.internal, .dz-digest a.external { background: none; padding: 0; border-radius: 0; font-weight: inherit; }
.dz-digest .dz-toc a.internal { background: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; }

/* nhóm chủ đề */
.dz-digest section.topic { margin-bottom: 26px; }
.dz-digest .sec-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.dz-digest .sec-head .icon { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.dz-digest .sec-head h2 { margin: 0; font-size: 21px; color: var(--dz-ink); line-height: 1.3; }
.dz-digest .sec-head .vi-head { margin: 2px 0 0; color: var(--dz-muted); font-size: 13.5px; font-weight: 500; }
.dz-digest .tier-label {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 11.5px;
  font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #6b7480;
}
.dz-digest .tier-label::after { content: ""; flex: 1; height: 1px; background: #e0e5ea; }
.dz-digest .qnote { font-size: 13px; color: var(--dz-muted); margin: -6px 0 14px; }
.dz-digest .empty { color: #8a94a0; font-size: 14px; padding: 8px 0; }

/* thẻ tin */
.dz-digest .card {
  background: #fff; border: 1px solid var(--dz-line); border-radius: 14px; margin-bottom: 16px;
  overflow: hidden; padding-bottom: 6px;
}
.dz-digest .card-top { display: flex; gap: 14px; padding: 16px 18px 6px; align-items: flex-start; }
.dz-digest .thumb { width: 60px; height: 60px; border-radius: 11px; flex: none; }
.dz-digest .meta { flex: 1; min-width: 0; }
.dz-digest .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dz-digest .badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .2px; line-height: 1.4; }
.dz-digest .badge.journal { background: #eaf2f8; color: #1f5c86; }
.dz-digest .badge.author { background: #f2eef7; color: #6b4a86; }
.dz-digest .badge.depth { background: #eef6ee; color: #3d7a44; }
.dz-digest .badge.thread { background: #efe7fb; color: #5a3aa0; }
.dz-digest .card h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.35; }
.dz-digest .card h3 a { color: var(--dz-navy); text-decoration: none; background: none; padding: 0; }
.dz-digest .card h3 a:hover { text-decoration: underline; }
.dz-digest .card h3 a svg.external-icon { display: none; }

/* hai cột Anh – Việt */
.dz-digest .cols { display: flex; gap: 0; padding: 12px 18px 4px; }
.dz-digest .col { flex: 1 1 50%; padding: 0 16px; }
.dz-digest .col:first-child { border-right: 1px solid #eef1f3; }
.dz-digest .lang {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--dz-soft); margin-bottom: 6px;
}
.dz-digest .col p { margin: 0 0 8px; font-size: 14.5px; color: var(--dz-ink); }
.dz-digest .col.vi p { color: #3c4652; }
.dz-digest .col a { color: var(--dz-blue); }

/* hộp giải thích dễ hiểu */
.dz-digest .plain {
  margin: 2px 18px 6px; background: #fbf7ef; border: 1px solid #f0e6d2;
  border-radius: 10px; padding: 11px 15px;
}
.dz-digest .plain .h {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: #a8791f; margin-bottom: 5px;
}
.dz-digest .plain p { margin: 0 0 6px; font-size: 13.5px; color: #5a4d33; line-height: 1.55; }
.dz-digest .plain p:last-child { margin-bottom: 0; }

/* ô số liệu */
.dz-digest .statbox { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; padding: 0 18px; }
.dz-digest .statcell { flex: 1 1 92px; background: #f6f8fa; border-radius: 10px; padding: 9px 10px; text-align: center; }
.dz-digest .statcell .n { font-size: 18px; font-weight: 800; color: var(--dz-navy); font-variant-numeric: tabular-nums; line-height: 1.3; }
.dz-digest .statcell .l { font-size: 10.5px; color: var(--dz-muted); margin-top: 2px; line-height: 1.25; }
.dz-digest .statcell.up .n { color: #2f8a45; }
.dz-digest .statcell.down .n { color: #b23b3b; }

/* biểu đồ và sơ đồ */
.dz-digest .viz { padding: 4px 18px 14px; }
.dz-digest .viz > svg {
  width: 100%; height: auto; max-width: 660px; display: block; margin: 0 auto;
  background: #fff; border: 1px solid #eef1f3; border-radius: 10px;
}
/* CSS chung của site tô màu mọi <text>; trả lại màu theo SVG gốc */
.dz-digest svg text { fill: inherit; color: inherit; }

@media (max-width: 640px) {
  .dz-digest { padding: 8px; margin-left: -8px; margin-right: -8px; }
  .dz-digest header.hero { padding: 22px 20px; }
  .dz-digest .cols { flex-direction: column; padding: 12px 10px 4px; }
  .dz-digest .col { padding: 0 8px; }
  .dz-digest .col:first-child { border-right: none; border-bottom: 1px solid #eef1f3; padding-bottom: 12px; margin-bottom: 12px; }
}
