/* ==========================================================================
   Cẩm Phả Port — giao diện website
   Bố cục: khung fanpage — thanh trên màu than, ảnh bìa đa giác + logo chồng lên,
   thanh chuyên mục dính, 3 cột: giới thiệu · bảng tin · đọc nhiều.
   ========================================================================== */
:root {
  /* màu thương hiệu (lấy từ logo) */
  --coal: #0f1012;
  --coal-2: #1a1b1d;
  --navy: #253662;
  --teal: #00537f;

  /* màu giao diện – nền sáng */
  --bg: #e8ecf2;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --line: #d9dfe8;
  --fg: #151a24;
  --muted: #586275;
  --accent: #00537f;
  --accent-hover: #00456a;
  --accent-soft: #e0edf5;
  --accent-on: #ffffff;
  --brand: #253662;
  --tag: #00628f;
  --warn-soft: #fff4d6;
  --warn-fg: #6b4e00;
  --shadow: 0 1px 2px rgba(21, 32, 56, .08), 0 3px 10px rgba(21, 32, 56, .05);

  /* không đổi theo giao diện sáng/tối */
  --bar-bg: #0f1012;
  --bar-fg: #f2f4f8;
  --bar-muted: #9aa3b3;
  --bar-field: #1d1f24;
  --overlay: rgba(6, 8, 12, .94);
  --overlay-fg: #f2f4f8;

  --f-display: "Josefin Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --bar-h: 56px;
  --tabs-h: 50px;
  --radius: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f;
    --surface: #16181d;
    --surface-2: #1f2229;
    --line: #2b303a;
    --fg: #e8ebf1;
    --muted: #9ba4b6;
    --accent: #45a6d6;
    --accent-hover: #67b9e2;
    --accent-soft: #11314a;
    --accent-on: #04121c;
    --brand: #a9bcec;
    --tag: #74c3ea;
    --warn-soft: #3a2f10;
    --warn-fg: #f3d68a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #16181d;
  --surface-2: #1f2229;
  --line: #2b303a;
  --fg: #e8ebf1;
  --muted: #9ba4b6;
  --accent: #45a6d6;
  --accent-hover: #67b9e2;
  --accent-soft: #11314a;
  --accent-on: #04121c;
  --brand: #a9bcec;
  --tag: #74c3ea;
  --warn-soft: #3a2f10;
  --warn-fg: #f3d68a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

/* ---------- thanh trên cùng ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bar-bg); color: var(--bar-fg);
  padding-top: var(--safe-top);
}
.topbar-inner { height: var(--bar-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bar-fg); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-name { font: 700 17px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.search { flex: 1; max-width: 380px; margin-left: auto; position: relative; min-width: 0; }
.search .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--bar-muted); width: 18px; height: 18px; }
.search input {
  width: 100%; height: 38px; border: 1px solid transparent; border-radius: 999px;
  background: var(--bar-field); color: var(--bar-fg);
  padding: 0 14px 0 38px; font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--bar-muted); }
.search input:focus { outline: none; border-color: var(--teal); }
.bar-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; font-size: 14px; flex: none;
}
.bar-btn:hover { text-decoration: none; filter: brightness(1.12); }

/* ---------- ảnh bìa + thông tin page ---------- */
.profile { background: var(--surface); box-shadow: var(--shadow); }
.cover {
  aspect-ratio: 1640 / 560; max-height: 400px; width: 100%;
  background: var(--navy) center / cover no-repeat;
  border-radius: 0 0 12px 12px;
}
.profile-row { display: flex; align-items: flex-end; gap: 20px; padding-bottom: 18px; }
.avatar-xl {
  width: 168px; height: 168px; border-radius: 50%; flex: none;
  margin-top: -84px; border: 5px solid var(--surface); background: var(--navy);
}
.profile-id { flex: 1; min-width: 0; padding-bottom: 4px; }
.page-name {
  margin: 0; font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--f-display);
  text-transform: uppercase; letter-spacing: .03em; color: var(--fg); text-wrap: balance;
}
.page-stats { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.page-stats strong { color: var(--fg); font-weight: 600; }
.page-tagline { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 8px; border: 0;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: var(--surface-2); color: var(--fg); }
.btn-soft:hover { background: var(--line); }
.btn .icon { width: 18px; height: 18px; }

/* ---------- thanh chuyên mục ---------- */
.tabs-bar {
  position: sticky; top: calc(var(--safe-top) + var(--bar-h)); z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: var(--tabs-h); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: none; padding: 0 14px; height: 100%;
  font-weight: 600; font-size: 15px; color: var(--muted);
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--fg); background: var(--surface-2); }
.tab[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count {
  font-size: 12px; font-weight: 600; min-width: 22px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums;
}
.tab[aria-pressed="true"] .count { background: var(--accent-soft); color: var(--accent); }

/* ---------- bố cục 3 cột ---------- */
.layout {
  display: grid; gap: 20px; align-items: start; padding-block: 20px 40px;
  grid-template-columns: 300px minmax(0, 1fr) 290px;
  grid-template-areas: "left feed right";
}
.col-left { grid-area: left; }
.col-feed { grid-area: feed; min-width: 0; }
.col-right { grid-area: right; }
.col-left, .col-right, .col-feed { display: grid; gap: 16px; min-width: 0; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.eyebrow {
  margin: 0 0 12px; font: 700 14px/1 var(--f-display); letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); padding-top: 2px;
}

/* giới thiệu */
.about-text { margin: 0 0 12px; font-size: 15px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; min-width: 0; }
.info-list .icon { color: var(--muted); margin-top: 1px; }
.info-list a, .info-list span { min-width: 0; overflow-wrap: anywhere; }
.info-list .fresh { color: var(--muted); }

/* ảnh */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 8px; overflow: hidden; }
.photo-grid button { border: 0; padding: 0; background: var(--surface-2); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid button:hover img { opacity: .88; }

/* đọc nhiều */
.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: t; }
.trend-list li { counter-increment: t; }
.trend-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--fg); }
.trend-list a:hover { text-decoration: none; }
.trend-list a:hover strong { color: var(--accent); }
.trend-list a::before {
  content: counter(t); font: 700 22px/1 var(--f-display); color: var(--accent); padding-top: 3px;
}
.trend-list strong { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* quảng bá */
.promo {
  position: relative; overflow: hidden; color: #f2f4f8;
  background: var(--coal) center / cover no-repeat;
}
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15, 16, 18, .55), rgba(15, 16, 18, .92)); }
.promo > * { position: relative; }
.promo .eyebrow { color: #9fc6e0; }
.promo p { margin: 0 0 14px; font-size: 14px; color: #d9dee8; }
.promo h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; text-wrap: balance; }
.promo .btn { background: #fff; color: var(--coal); }
.promo .btn:hover { background: #e2e8f0; }

/* ---------- bảng tin ---------- */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.feed-head small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.search-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.search-note button { border: 0; background: none; color: var(--accent); font-weight: 600; }
.demo-note { background: var(--warn-soft); color: var(--warn-fg); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; }

.post { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.post-who { min-width: 0; flex: 1; }
.post-who strong { display: block; font-size: 15px; font-weight: 600; }
.post-who small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.post-who time { color: inherit; }
.chip {
  display: inline-block; border: 0; font-size: 12px; font-weight: 600; line-height: 1.6;
  color: var(--accent); background: var(--accent-soft); padding: 0 8px; border-radius: 999px;
}
button.chip:hover { filter: brightness(.96); }
.post-body { padding: 10px 16px 12px; }
.post-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 .7em; }
.post-text p:last-child { margin-bottom: 0; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-text .tag, .article-body .tag { color: var(--tag); font-weight: 500; }
.more { border: 0; background: none; padding: 0; margin-top: 4px; font-weight: 600; color: var(--fg); }
.more:hover { text-decoration: underline; }
mark { background: var(--warn-soft); color: inherit; border-radius: 2px; }

.media { display: grid; gap: 3px; background: var(--surface); }
.media .tile { position: relative; border: 0; padding: 0; background: var(--surface-2); overflow: hidden; display: block; min-width: 0; }
.media .tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.media .tile:hover img { opacity: .92; }
.media.n1 .tile { max-height: 620px; }
.media.n1 .tile img { height: auto; max-height: 620px; }
.media.n2 { grid-template-columns: 1fr 1fr; }
.media.n2 .tile { aspect-ratio: 1; }
.media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.media.n3 .tile:first-child { grid-row: span 2; }
.media.n4 { grid-template-columns: 1fr 1fr; }
.media.n4 .tile { aspect-ratio: 1; }
.tile .more-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6, 8, 12, .55); color: #fff; font: 700 30px/1 var(--f-body);
}
.tile .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 8, 12, .6); color: #fff; border: 2px solid rgba(255, 255, 255, .85);
}
.tile .play .icon { width: 26px; height: 26px; margin-left: 4px; }

.link-card {
  display: grid; gap: 2px; margin: 0 16px 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--fg);
}
.link-card:hover { text-decoration: none; border-color: var(--accent); }
.link-card .link-host { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.link-card strong { font-size: 15px; line-height: 1.4; }
.link-card span:last-child:not(.link-host) { font-size: 13.5px; color: var(--muted); }

.post-stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.likes { display: inline-flex; align-items: center; gap: 6px; }
.like-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.like-dot .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.action {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 0;
  border: 0; background: none; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.action:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.action .icon { width: 19px; height: 19px; }

.feed-list { display: grid; gap: 16px; min-width: 0; }
.load-more { width: 100%; height: 44px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; color: var(--fg); }
.load-more:hover { background: var(--surface-2); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }

/* khung chờ khi đang tải */
.skeleton { height: 360px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- xem ảnh lớn ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--overlay); color: var(--overlay-fg);
}
.lightbox::backdrop { background: var(--overlay); }
.lb-stage { position: absolute; inset: 56px 64px 72px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: var(--overlay-fg); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: calc(10px + var(--safe-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.lb-foot a { color: #9fd3f0; font-weight: 600; }
.lb-count { font-variant-numeric: tabular-nums; color: #b8c0cc; }

/* ---------- đọc bài (hộp thoại & trang riêng) ---------- */
.reader { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 12px; background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.reader::backdrop { background: rgba(6, 8, 12, .6); }
.reader-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.reader-bar span { font-size: 13px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--fg); }
.icon-btn:hover { background: var(--line); }

.article { padding: 24px 24px 28px; }
.article-cat { margin: 0 0 10px; }
.article h1 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-meta img { width: 32px; height: 32px; border-radius: 50%; }
.article-meta strong { color: var(--fg); font-weight: 600; }
.article-body { font-size: 17px; line-height: 1.7; max-width: 65ch; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1em; }
.article-media { margin: 20px 0 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.article-media img { width: 100%; height: auto; }
.video-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(6, 8, 12, .75); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.article .link-card { margin: 20px 0 0; }
.article-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* trang bài viết riêng */
.page-article { padding-block: 24px 48px; display: grid; gap: 20px; max-width: 800px; }
.page-article .article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.related-list { display: grid; gap: 12px; }
.related-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--fg); }
.related-item:hover { text-decoration: none; }
.related-item:hover strong { color: var(--accent); }
.related-item img, .related-noimg { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.related-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.4; }
.related-item small { color: var(--muted); font-size: 13px; }

/* ---------- chân trang ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { font: 700 16px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; display: block; }
.footer-brand small { color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-note { flex-basis: 100%; margin: 0; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 60;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

/* ---------- màn hình vừa & nhỏ ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "left feed" "right feed"; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "feed" "right"; padding-block: 16px 32px; }
  .profile-row { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .avatar-xl { width: 132px; height: 132px; margin-top: -66px; }
  .profile-actions { justify-content: center; }
  .hide-sm { display: none !important; }
  .about-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .bar-btn span { display: none; }
  .bar-btn { width: 38px; padding: 0; justify-content: center; }
  .search { max-width: none; }
  .cover { aspect-ratio: 16 / 7; }
  .profile-actions .btn { flex: 1; }
  .post-head, .post-body, .post-stats { padding-inline: 12px; }
  .link-card { margin-inline: 12px; }
  .post-actions { margin-inline: 8px; }
  .action { font-size: 13px; gap: 4px; }
  .article { padding: 18px 16px 22px; }
  .article-body { font-size: 16px; }
  .lb-stage { inset: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- trang giới thiệu & 404 ---------- */
.card.article { padding: 24px 24px 28px; }
.article-body h2 { margin: 1.6em 0 .5em; font-size: 20px; line-height: 1.35; }
.article-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.article-body li { margin-bottom: .35em; }
.notfound { text-align: center; }
.notfound .article-body { margin-inline: auto; }
.notfound .article-actions { justify-content: center; }
.notfound-code { margin: 0; font: 700 64px/1 var(--f-display); color: var(--accent); letter-spacing: .04em; }
