/* =========================================================================
   SITE.CSS — Giao dien front-end cho website review san pham (affiliate)
   Nguyen tac: khong JS, chuan SEO/E-E-A-T, toi uu toc do tai (khong web font
   ngoai, khong shadow/gradient nang, dung native lazy-load + aspect-ratio
   de tranh layout shift, content-visibility cho khoi duoi man hinh dau).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1) DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Mau sac - "phong thi nghiem bien tap": muc navy + vang dong xac thuc */
  --ink: #16233a;          /* van ban chinh, tieu de */
  --ink-soft: #3c4a60;     /* van ban phu */
  --muted: #5b6472;        /* van ban meta, chu thich */
  --line: #dde1e6;         /* duong ke, vien mong */
  --line-strong: #c4cbd3;
  --paper: #fbfbf9;        /* nen trang am nhe */
  --paper-tint: #f3f4f1;   /* nen dai/section xen ke */
  --brand: #16233a;        /* dung cho link, nav active */
  --signal: #b3801a;       /* vang dong - CTA, diem so, vach nhan */
  --signal-dark: #8f6714;
  --signal-tint: #faf3e3;
  --good: #1d6f60;         /* uu diem */
  --good-tint: #e9f3f0;
  --bad: #a4402f;          /* nhuoc diem */
  --bad-tint: #f7ece9;
  --focus: #2457c5;

  /* Mau rieng cho khoi page header (luon nen toi o ca 2 che do sang/toi) */
  --head-bg: #161b22;
  --head-ink: #ffffff;
  --head-ink-soft: #c2c9d4;
  --head-line: rgba(255, 255, 255, 0.14);
  --head-line-strong: rgba(255, 255, 255, 0.24);
  --head-accent: #d98324;
  --head-accent-dark: #b96a16;

  /* Typography - font he thong, khong tai tu ngoai (toc do) */
  --font-head: Iowan Old Style, Palatino Linotype, URW Palladio L, P052,
    Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --radius: 3px;
  --wrap: 1160px;
  --gap: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5;
    --ink-soft: #c7cedb;
    --muted: #9aa4b2;
    --line: #2b3444;
    --line-strong: #3a4456;
    --paper: #0f1520;
    --paper-tint: #141b28;
    --brand: #eef1f5;
    --signal: #d9a03f;
    --signal-dark: #eab55c;
    --signal-tint: #26200f;
    --good: #4fb69f;
    --good-tint: #10201c;
    --bad: #e08976;
    --bad-tint: #241512;
    --focus: #6d9bff;
  }
}

/* -------------------------------------------------------------------------
   2) RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--signal-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
time { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Bo qua hieu ung khi nguoi dung yeu cau giam chuyen dong */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip-link cho accessibility (WCAG) */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
   3) MASTHEAD / NAV / DISCLOSURE BAR
   ------------------------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}
.brand span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-color: var(--line-strong); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--signal);
  font-weight: 600;
}

/* Nut menu 3 gach: an tren desktop (chi bat o @media max-width:640px ben duoi) */
.nav-toggle__checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nav-toggle__btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}
.nav-toggle__btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
}

/* Bang cong bo affiliate - bat buoc de dat chuan EEAT / FTC */
.disclosure {
  background: var(--signal-tint);
  border-bottom: 1px solid var(--line);
}
.disclosure p {
  margin: 0;
  padding-block: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   4) HERO
   ------------------------------------------------------------------------- */
.hero {
  padding-block: 2.75rem 2rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: 0.4em;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* -------------------------------------------------------------------------
   5) SPONSORED BANNER
   ------------------------------------------------------------------------- */
.banner { padding-block: 1.25rem; content-visibility: auto; }
.banner__label {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.banner img { margin-inline: auto; border: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   6) SECTION HEADINGS
   ------------------------------------------------------------------------- */
.section { padding-block: 2.5rem; content-visibility: auto; contain-intrinsic-size: 600px; }
.section:nth-of-type(even) { background: var(--paper-tint); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section__head h2 { margin: 0; font-size: 1.4rem; }
.section__head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   7) SPOTLIGHTS (Top pick moi danh muc - trang chu)
   ------------------------------------------------------------------------- */
.spotlights {
  display: grid;
  gap: 2rem;
}
.spotlight {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.spotlight:first-child { border-top: none; padding-top: 0; }
.spotlight__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-tint); border: 1px solid var(--line); border-radius: var(--radius); }
.spotlight__image img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__cat { margin: 0 0 0.35rem; font-size: 0.8rem; }
.spotlight__cat a { color: var(--muted); text-decoration: none; }
.spotlight__pick {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--signal-dark);
  border: 1px solid var(--signal);
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius);
}
.spotlight__body h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.spotlight__body h3 a { text-decoration: none; color: var(--ink); }
.spotlight__body p { color: var(--ink-soft); }
.spotlight__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}
.spotlight__meta { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* -------------------------------------------------------------------------
   8) SCORE (bang diem - trong tam tin cay E-E-A-T)
   ------------------------------------------------------------------------- */
.score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  border-top: 3px solid var(--signal);
  padding-top: 0.3rem;
  margin: 0;
  white-space: nowrap;
}
.score small { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.score--sm { font-size: 1.15rem; border-top-width: 2px; padding-top: 0.15rem; }

/* -------------------------------------------------------------------------
   9) CATBOX (danh sach bai theo tung danh muc - trang chu)
   ------------------------------------------------------------------------- */
.catbox { padding-block: 2rem; border-top: 1px solid var(--line); }
.catbox:first-child { border-top: none; padding-top: 0; }
.catbox__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.catbox__head h2 { margin: 0; font-size: 1.2rem; }
.catbox__head a { font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.catbox__grid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.line__empty { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* -------------------------------------------------------------------------
   10) CARD (dung chung cho danh sach bai / grid)
   ------------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; }
.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.card__kicker { margin: 0 0 0.3rem; font-size: 0.75rem; color: var(--signal-dark); }
.card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* -------------------------------------------------------------------------
   11) TABS - thuan CSS (radio + label), KHONG dung JS
   ------------------------------------------------------------------------- */
.tabs { position: relative; }
.tabs__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.tabs__label {
  cursor: pointer;
  padding: 0.5rem 0.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}
.tabs__label:hover { color: var(--ink); }
.tabs__panel { display: none; }

/* Hien panel tuong ung voi radio dang duoc chon (toi da 10 tab) */
.tabs__radio:nth-of-type(1):checked ~ .tabs__nav .tabs__label:nth-child(1),
.tabs__radio:nth-of-type(2):checked ~ .tabs__nav .tabs__label:nth-child(2),
.tabs__radio:nth-of-type(3):checked ~ .tabs__nav .tabs__label:nth-child(3),
.tabs__radio:nth-of-type(4):checked ~ .tabs__nav .tabs__label:nth-child(4),
.tabs__radio:nth-of-type(5):checked ~ .tabs__nav .tabs__label:nth-child(5),
.tabs__radio:nth-of-type(6):checked ~ .tabs__nav .tabs__label:nth-child(6),
.tabs__radio:nth-of-type(7):checked ~ .tabs__nav .tabs__label:nth-child(7),
.tabs__radio:nth-of-type(8):checked ~ .tabs__nav .tabs__label:nth-child(8),
.tabs__radio:nth-of-type(9):checked ~ .tabs__nav .tabs__label:nth-child(9),
.tabs__radio:nth-of-type(10):checked ~ .tabs__nav .tabs__label:nth-child(10) {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--signal);
}
.tabs__radio:nth-of-type(1):checked ~ .tabs__panels .tabs__panel:nth-child(1),
.tabs__radio:nth-of-type(2):checked ~ .tabs__panels .tabs__panel:nth-child(2),
.tabs__radio:nth-of-type(3):checked ~ .tabs__panels .tabs__panel:nth-child(3),
.tabs__radio:nth-of-type(4):checked ~ .tabs__panels .tabs__panel:nth-child(4),
.tabs__radio:nth-of-type(5):checked ~ .tabs__panels .tabs__panel:nth-child(5),
.tabs__radio:nth-of-type(6):checked ~ .tabs__panels .tabs__panel:nth-child(6),
.tabs__radio:nth-of-type(7):checked ~ .tabs__panels .tabs__panel:nth-child(7),
.tabs__radio:nth-of-type(8):checked ~ .tabs__panels .tabs__panel:nth-child(8),
.tabs__radio:nth-of-type(9):checked ~ .tabs__panels .tabs__panel:nth-child(9),
.tabs__radio:nth-of-type(10):checked ~ .tabs__panels .tabs__panel:nth-child(10) {
  display: block;
}

.notes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.notes li:last-child { border-bottom: none; }
.notes a { text-decoration: none; }
.notes time { font-size: 0.82rem; white-space: nowrap; }

/* -------------------------------------------------------------------------
   12) BREADCRUMB
   ------------------------------------------------------------------------- */
.crumbs { padding-block: 0.9rem; border-bottom: 1px solid var(--line); background: var(--paper-tint); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current="page"] { color: var(--ink); }

/* -------------------------------------------------------------------------
   12b) PAGE HEADER 2 COT (trang chuyen muc / trang chi tiet)
        Cot trai: nhan + tieu de + mo ta + hanh dong
        Cot phai: anh dai dien
   ------------------------------------------------------------------------- */
.pagehead {
  background: var(--head-bg);
  color: var(--head-ink);
  border-bottom: 1px solid var(--head-line);
  /* Hoa tiet caro mo giong anh mau, khong dung file anh nen khong ton request */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.022) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.022) 75%),
    linear-gradient(45deg, rgba(255,255,255,.022) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.022) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

.pagehead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 3rem;
  align-items: center;
  padding-block: 3.25rem;
}
/* Khong co anh dai dien thi tieu de chiem tron chieu ngang */
.pagehead--noimage .pagehead__inner { grid-template-columns: minmax(0, 1fr); }

.pagehead__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--head-accent);
  margin-bottom: 0.9rem;
}
.pagehead__eyebrow a { color: inherit; text-decoration: none; }
.pagehead__eyebrow a:hover { text-decoration: underline; }

.pagehead h1 {
  color: var(--head-ink);
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 0 0.6rem;
}

.pagehead__lede {
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--head-ink-soft);
  max-width: 54ch;
  margin: 0;
}

/* Dong thong tin tac gia / so bai - ban sang cua .byline de doc duoc tren nen toi */
.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--head-ink-soft);
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--head-line);
  border-bottom: 0;
}
.pagehead__meta img { border-radius: 50%; }
.pagehead__meta strong { color: var(--head-ink); font-weight: 600; }
.pagehead__meta a { color: var(--head-ink); }

.pagehead__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.pagehead__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--head-accent);
  background: var(--head-accent);
  color: #10141c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.pagehead__cta:hover { background: var(--head-accent-dark); border-color: var(--head-accent-dark); }
.pagehead__cta--ghost { background: transparent; color: var(--head-ink); border-color: var(--head-line-strong); }
.pagehead__cta--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--head-ink); }

.pagehead__media { margin: 0; }
.pagehead__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--head-line-strong);
  background: rgba(255,255,255,.04);
}
.pagehead__media figcaption {
  font-size: 0.8rem;
  color: var(--head-ink-soft);
  margin-top: 0.55rem;
}

/* -------------------------------------------------------------------------
   13) LAYOUT 2 COT (bai viet / danh muc)
   ------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  padding-block: 2.5rem;
  align-items: start;
}

/* -------------------------------------------------------------------------
   14) ARTICLE / STANDFIRST / BYLINE (tin hieu E-E-A-T)
   ------------------------------------------------------------------------- */
.article h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.35rem); max-width: 24ch; }
.standfirst {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.byline img { border-radius: 50%; }
.byline strong { color: var(--ink); }
.byline a { text-decoration: none; }

.article figure { margin: 1.5rem 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.article figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
   15) VERDICT / SCORECARD - diem nhan thi giac quan trong nhat cua trang
   ------------------------------------------------------------------------- */
.verdict {
  border: 1px solid var(--line);
  border-top: 4px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-block: 2rem;
  background: var(--paper);
}
.verdict__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.verdict__top h2 { margin: 0; font-size: 1.3rem; max-width: 42ch; }
.verdict__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.verdict__cols h3 { font-size: 0.95rem; margin-bottom: 0.6rem; font-family: var(--font-body); }
.verdict__cols h3.good { color: var(--good); }
.verdict__cols h3.bad { color: var(--bad); }
.verdict__cols ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.verdict__cols div:first-child li::before {
  content: "\2713"; /* dau check */
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}
.verdict__cols div:last-child li::before {
  content: "\2715"; /* dau x */
  position: absolute;
  left: 0;
  color: var(--bad);
  font-weight: 700;
}

.buy {
  display: inline-block;
  background: var(--signal);
  color: #16233a;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
}
.buy:hover { background: var(--signal-dark); color: #16233a; }
.buy__note { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--muted); }

/* -------------------------------------------------------------------------
   16) PROSE (noi dung bai viet dai)
   ------------------------------------------------------------------------- */
.prose {
  max-width: 72ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.prose h2 { margin-top: 2rem; font-size: 1.3rem; color: var(--ink); }
.prose h3 { margin-top: 1.5rem; font-size: 1.1rem; color: var(--ink); }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol { list-style: disc; margin: 0 0 1.2rem 1.4rem; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin-block: 1rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
  color: var(--ink-soft);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; }
.prose th { background: var(--paper-tint); }
.prose a { text-decoration-line: underline; }

/* -------------------------------------------------------------------------
   17) SIDEBAR
   ------------------------------------------------------------------------- */
.side section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.side h2 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.side ul li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.side ul li:last-child { margin-bottom: 0; }
.side a { text-decoration: none; }
.side .banner { padding-block: 0; margin-bottom: 1.5rem; }

/* -------------------------------------------------------------------------
   18) PAGINATION
   ------------------------------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.pager li a, .pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pager li a:hover { border-color: var(--ink); color: var(--ink); }
.pager li.is-active span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager li.is-disabled span { color: var(--line-strong); }

/* -------------------------------------------------------------------------
   19) FOOTER
   ------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--paper-tint);
  padding-block: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.foot h2 { font-size: 0.95rem; margin-bottom: 0.85rem; }
.foot p { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.foot ul li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__legal {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   20) RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .pagehead__inner { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.25rem; }
  .pagehead h1 { max-width: none; }
  .side { order: 2; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .masthead__inner { gap: 0.75rem; }

  /* Giup .nav va nut 3 gach noi len tren lop phu (overlay) ben duoi khi menu mo. */
  .masthead { position: relative; z-index: 2; }

  /* Hien nut 3 gach, an menu mac dinh - bam nut (checkbox) thi hien menu
     dang danh sach doc, toan chieu rong. Thuan CSS, khong JS. */
  .nav-toggle__btn { display: flex; }
  .nav {
    position: relative;
    z-index: 2;
    display: none;
    width: 100%;
    order: 5;
  }
  .nav-toggle__checkbox:checked ~ .nav { display: block; }
  .nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .nav a {
    display: block;
    padding-block: 0.65rem;
    border-bottom: 1px solid var(--line);
  }

  /* Lop phu trong suot phu het phan con lai cua trang khi menu dang mo -
     bam vao bat ky dau ben ngoai menu (nam ngoai .masthead) se dong menu
     lai, vi day cung la 1 <label for="nav-toggle"> nhu nut 3 gach. */
  .nav-toggle__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    cursor: default;
  }
  .nav-toggle__checkbox:checked ~ .nav-toggle__overlay { display: block; }
}

@media (max-width: 640px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__image { max-width: 320px; }
  .verdict { padding: 1.25rem; }
  .pagehead__actions { gap: 0.6rem; }
  .pagehead__cta { width: 100%; justify-content: center; }
  .verdict__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .verdict__top { flex-direction: column; }
  .foot__cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .catbox__grid, .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
}

/* -------------------------------------------------------------------------
   21) PRINT (nguoi dung hay in bai review de doi chieu khi mua sam)
   ------------------------------------------------------------------------- */
@media print {
  .masthead, .disclosure, .banner, .side, .foot, .pager, .tabs__nav { display: none; }
  .pagehead { background: none; color: #000; }
  .pagehead__inner { grid-template-columns: 1fr; padding-block: 1rem; }
  .pagehead h1, .pagehead__meta strong, .pagehead__meta a { color: #000; }
  .pagehead__actions { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .layout { grid-template-columns: 1fr; }
}
