/* ═══ 3a. BÌA TẠP CHÍ + THẺ NỔI ═══════════════════════════════════════════════
 * Bìa ảnh toàn chiều ngang (trang chủ, chuyên mục, bài) và thẻ trắng đè mép dưới bìa.
 * Ảnh là ảnh THẬT (tlk_anh_bia_tc), lớp phủ tối làm chữ trắng luôn đọc được.
 * Bố cục đổi ở ≤ 760px bằng @media (khối điện thoại ở cuối file này).
 */

.tlk-bia-tc {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 150px;
  background: var(--ink);
  overflow: hidden;
}
.tlk-bia-tc--khong-the { min-height: 420px; padding-bottom: 44px; }
.tlk-bia-tc--khong-anh { background: linear-gradient(160deg, #2A3A48, #18222C 60%, #3A1A2A); }
.tlk-bia-tc__anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tlk-bia-tc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 17, 22, 0.3) 0%, rgba(11, 17, 22, 0.12) 32%, rgba(11, 17, 22, 0.82) 100%);
}
.tlk-bia-tc::after {                       /* hình thoi viền mảnh trang trí, không chặn bấm */
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -150px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transform: rotate(45deg);
  pointer-events: none;
}
.tlk-bia-tc__trong { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.tlk-bia-tc__toa { position: absolute; top: 26px; left: 0; right: 0; width: 100%; }
.tlk-bia-tc h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.tlk-bia-tc h1 em { font-style: normal; color: #FFC2D6; }

/* Toạ độ: nhãn Plex Mono trên nền tối, góc trái trên */
.tlk-toado--bia {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  background: rgba(15, 24, 32, 0.72);
  backdrop-filter: blur(6px);
}
.tlk-toado--bia .tlk-thoi { width: 6px; height: 6px; background: #fff; }

/* Nhãn dạng bài, breadcrumb và dòng tác giả đọc được trên ảnh */
.tlk-loai {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--chu-nhan);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tlk-loai .tlk-thoi, .tlk-bia-tc .tlk-tg .tlk-thoi { background: #fff; }
.tlk-bia-tc .tlk-bc { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 13px; }
.tlk-bia-tc .tlk-bc a, .tlk-bia-tc .tlk-bc__tach { color: rgba(255, 255, 255, 0.9); }
.tlk-bia-tc .tlk-tg { margin: 0; color: rgba(255, 255, 255, 0.9); }
.tlk-bia-tc .tlk-tg a { color: #fff; }
.tlk-bia-tc .tlk-tg .tlk-thoi { width: 6px; height: 6px; }

/* ── Thẻ nổi: đè mép dưới bìa, viền trên hồng ───────────────────────── */
.tlk-the-noi {
  position: relative;
  z-index: 2;
  margin: -112px 0 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 30px 24px;
  background: var(--surface);
  border-top: 4px solid var(--brand);
  border-radius: 12px;
  box-shadow: var(--bong);
}
.tlk-the-noi__nhan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin: 0;
  font-family: var(--chu-de);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--action);
}
.tlk-the-noi__nhan .tlk-thoi { margin-right: 0; }
.tlk-the-noi__nhan span { font: 500 12px var(--chu-nhan); letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.tlk-the-noi__qa { margin: 0; font-size: 21px; line-height: 1.5; color: var(--ink); }
.tlk-the-noi__hang { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.tlk-the-noi__hang small { font: 12px/1.45 var(--chu-nhan); color: var(--muted); max-width: 36em; }
.tlk-the-noi__hang small .tlk-thoi { width: 6px; height: 6px; margin-right: 4px; }
.tlk-the-noi .tlk-chip-hang { margin: 2px 0 0; }

/* Khối "Where to sleep on this route": các nút còn lại của ô Quick answer, href giữ nguyên */
.tlk-ngu {
  background: var(--tint);
  border-left: 4px solid var(--action);
  border-radius: 6px;
  padding: 20px 22px;
  margin: 1.8em 0;
  max-width: 760px;
  scroll-margin-top: 16px;
}
.tlk-ngu > .tlk-nhan { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--action); }
.tlk-ngu__luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tlk-ngu__luoi p { display: contents; }
.tlk-ngu__luoi br { display: none; }
.tlk-ngu__luoi a:not(.tl-btn) { grid-column: 1 / -1; font-family: var(--chu-de); font-size: 15px; font-weight: 600; padding: 6px 0; }

/* ── Dải 12 tháng (bài best-time), dựng từ chính bảng "month by month" của bài ── */
.tlk-thang { max-width: 760px; margin: 1.2em 0 1.6em; }
.tlk-thang__luoi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.tlk-thang__luoi button {
  min-height: 52px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 600 12.5px var(--chu-nhan);
  cursor: pointer;
}
.tlk-thang__luoi button:hover { border-color: var(--brand); }
.tlk-thang__luoi button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tlk-thang__ct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.tlk-van .tlk-thang__ct h3 { grid-column: 1 / -1; margin: 0; font-size: 22px; font-weight: 800; }
.tlk-thang__ct small { display: block; font: 600 11px var(--chu-nhan); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tlk-thang__ct b { font: 700 17px/1.3 var(--chu-de); color: var(--ink); }

/* ── Điện thoại (≤ 760px): lề 16px, bìa thấp hơn, thẻ nổi đè ít hơn ──── */
@media (max-width: 760px) {
  .tlk-bia-tc { min-height: 500px; padding: 72px 0 104px; }
  .tlk-bia-tc--khong-the { min-height: 340px; padding-bottom: 28px; }
  .tlk-bia-tc::after { width: 300px; height: 300px; right: -110px; top: -90px; }
  .tlk-bia-tc__toa { top: 16px; }
  .tlk-toado--bia { font-size: 11.5px; }
  .tlk-bia-tc h1 { font-size: clamp(30px, 9vw, 40px); }
  .tlk-bia-tc .tlk-bc { font-size: 12px; }
  .tlk-the-noi { margin-top: -80px; padding: 18px; border-radius: 10px; }
  .tlk-the-noi__qa { font-size: 18px; }
  .tlk-the-noi .tlk-nut { width: 100%; }
  .tlk-the-noi__hang { gap: 10px; }
  .tlk-ngu { padding: 16px; }
  .tlk-ngu__luoi { grid-template-columns: 1fr; }
  .tlk-thang__luoi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
