/* Theme "In ấn & Quảng cáo" (ADR-0054 bổ sung) — kế thừa "Cơ bản": chỉ đổi lớp hiển thị (chủ doanh nghiệp 21/11/2026). Màu / font của
 * hồ sơ website (biến :root ghi sau file này) vẫn thắng — không dùng !important cho màu. Nền đầu trang chỉ tô khi web chọn "Nền sáng"
 * (.cb-hs-sang) để lựa chọn Nền tối / Màu thương hiệu (ADR-0055 mục 5) giữ nguyên.
 * Hoạ tiết in: dải màu CMYK, nền chấm lưới (halftone), dấu chồng màu, dấu cắt ở góc thẻ (vẽ bằng nền, không dùng ::before của thẻ).
 * Bảng trong khối văn bản = bảng giá theo số lượng: cột giá căn phải. */
:root {
  --bg: #FFFFFF; --surface: #F4F4F6; --paper: #FFFFFF; --ink: #111827; --muted: #565E6C; --line: #E4E6EB;
  --accent: #E6007E; --accent-dark: #B80065; --on-accent: #FFFFFF; --link: #0067B1;
  --band: #111827; --on-band: #F8FAFC; --band-muted: #AEB6C4; --band-line: rgba(248, 250, 252, .14);
  --chip: #FDE3F1; --chip-ink: #9C0055;
  --cy: #00AEEF; --mg: #EC008C; --yl: #FFE500; --kk: #111827;
  --cmyk: linear-gradient(90deg, var(--cy) 0 25%, var(--mg) 0 50%, var(--yl) 0 75%, var(--kk) 0);
  --display: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display-weight: 800;
  --r: 10px; --space: clamp(48px, 6vw, 92px);
  --crop: var(--muted);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(27px, 3.3vw, 42px); }
.cb-eyebrow, h6 { color: var(--accent); letter-spacing: .16em; }

/* Nút: bo vừa, chữ đậm; nút chính hồng cánh sen */
.cb-btn, .blk-btn:not(.blk-btn--link) { border-radius: var(--r); font-weight: 800; padding-inline: 26px; }
.cb-btn--primary, .blk-btn--primary { box-shadow: 4px 4px 0 var(--cy); }
.cb-btn--primary:hover, .blk-btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--cy); }
.cb-btn--secondary, .blk-btn--secondary { border-width: 2px; }
.cb-chip { border-radius: 999px; }
.cb-icon-btn, .cb-menu-btn { border-radius: var(--r); }

/* Đầu trang: trắng, vạch CMYK dưới (chỉ khi Nền sáng) */
.cb-skin-in-an.cb-hs-sang .cb-header { background: var(--bg); border-bottom: 4px solid transparent; border-image: var(--cmyk) 1; }
.cb-menu__link { font-weight: 700; }

/* Phần nội dung: không vạch kẻ */
.blk-section { border-top: 0; }

/* Tiêu đề phần: 4 ô màu CMYK */
.cb-page-body > .blk-section:not(:first-child) > .blk-section__inner > .blk-heading:first-child::before,
.cb-page-body > .blk-section:not(:first-child) > .blk-section__inner > .blk-group:first-child > .blk-heading:first-child::before,
.blk-media-text__body > :is(h2, h3):first-child::before { width: 56px; height: 10px; margin-bottom: 18px; background: var(--cmyk); border-radius: 2px; }
.cb-page-body > .blk-section--band > .blk-section__inner > .blk-heading:first-child::before { background: linear-gradient(90deg, var(--cy) 0 25%, var(--mg) 0 50%, var(--yl) 0 75%, var(--on-band) 0); }

/* Khối mở đầu (dải tối đầu trang): chấm lưới in 3 màu + dấu chồng màu + dải CMYK ở mép dưới */
.cb-page-body > .blk-section--band:first-child {
  position: relative; overflow: hidden; padding-block: clamp(76px, 10vw, 150px) clamp(90px, 11vw, 166px);
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--cy) 55%, transparent) 2px, transparent 2.6px) 100% 0 / 18px 18px,
    radial-gradient(circle at center, color-mix(in srgb, var(--mg) 55%, transparent) 2px, transparent 2.6px) 100% 0 / 22px 22px,
    var(--band);
  background-blend-mode: normal;
}
.cb-page-body > .blk-section--band:first-child::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--band) 38%, color-mix(in srgb, var(--band) 55%, transparent) 65%, transparent 100%);
}
.cb-page-body > .blk-section--band:first-child > .blk-section__inner::after {
  content: ''; position: absolute; right: clamp(-30px, 2vw, 40px); top: 50%; width: clamp(130px, 16vw, 210px); aspect-ratio: 1; transform: translateY(-50%); opacity: .55; pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23F8FAFC' stroke-width='2.5'%3E%3Ccircle cx='50' cy='50' r='26'/%3E%3Ccircle cx='50' cy='50' r='12'/%3E%3Cpath d='M50 6v88M6 50h88'/%3E%3C/svg%3E");
}
.cb-page-body > .blk-section--band:first-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--cmyk); }
.cb-page-body > .blk-section--band:first-child > .blk-section__inner { position: relative; z-index: 1; }
.cb-page-body > .blk-section--band:first-child h1 { max-width: 15ch; }
.cb-page-body > .blk-section--band:first-child .blk-rich-text { font-size: clamp(17px, 1.5vw, 20px); color: var(--band-muted); max-width: 38em; }

/* Đầu trang con: nền xám nhạt chấm lưới, dải CMYK dưới */
.cb-page-head { position: relative; background: radial-gradient(color-mix(in srgb, var(--mg) 16%, transparent) 1.4px, transparent 2px) 0 0 / 16px 16px, var(--surface); }
.cb-page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--cmyk); }

/* Thẻ: giấy trắng có dấu cắt ở 4 góc, rê chuột nổi + bóng màu */
.blk-cards:not(.blk-cards--stats) .blk-card, .blk-post-list .blk-card, .cb-tile {
  padding: 22px 22px 24px; border-radius: 2px;
  background:
    linear-gradient(var(--crop), var(--crop)) 0 0 / 14px 1.5px no-repeat, linear-gradient(var(--crop), var(--crop)) 0 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--crop), var(--crop)) 100% 0 / 14px 1.5px no-repeat, linear-gradient(var(--crop), var(--crop)) 100% 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--crop), var(--crop)) 0 100% / 14px 1.5px no-repeat, linear-gradient(var(--crop), var(--crop)) 0 100% / 1.5px 14px no-repeat,
    linear-gradient(var(--crop), var(--crop)) 100% 100% / 14px 1.5px no-repeat, linear-gradient(var(--crop), var(--crop)) 100% 100% / 1.5px 14px no-repeat,
    var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blk-cards:not(.blk-cards--stats) .blk-card:hover, .cb-tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--yl), 0 0 0 1px var(--line); }
.blk-cards:not(.blk-cards--stats) .blk-cols > .blk-card:nth-child(3n+2):hover { box-shadow: 6px 6px 0 var(--cy), 0 0 0 1px var(--line); }
.blk-cards:not(.blk-cards--stats) .blk-cols > .blk-card:nth-child(3n):hover { box-shadow: 6px 6px 0 var(--mg), 0 0 0 1px var(--line); }
.blk-card img, .cb-media img { border-radius: 2px; }
.blk-card :is(h2, h3, h4) { font-weight: 800; }
.blk-section--band .blk-cards:not(.blk-cards--stats) .blk-card { --crop: var(--band-muted); --paper: rgba(248, 250, 252, .04); box-shadow: 0 0 0 1px var(--band-line); }

/* Bảng giá theo số lượng (bảng trong khối văn bản) */
.blk-rich-text table, .blk-html table { display: table; width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; border-top: 6px solid transparent; border-image: var(--cmyk) 1; }
.blk-rich-text th, .blk-html th { background: var(--band); color: var(--on-band); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 0; padding: 12px 14px; }
.blk-rich-text td, .blk-html td { border: 0; border-bottom: 1px solid var(--line); padding: 13px 14px; }
.blk-rich-text tbody tr:nth-child(even) td, .blk-html tbody tr:nth-child(even) td { background: var(--surface); }
.blk-rich-text td:first-child, .blk-html td:first-child { font-weight: 700; color: var(--ink); }
.blk-rich-text td small, .blk-html td small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 13px; }
/* Bảng giá (gắn class "bang-gia" — gói khởi đầu có sẵn): cột số lượng / giá căn phải, chữ đậm; bảng khác căn trái */
:is(.blk-rich-text, .blk-html) table.bang-gia :is(td, th):not(:first-child) { text-align: right; white-space: nowrap; }
:is(.blk-rich-text, .blk-html) table.bang-gia td:not(:first-child) { font-weight: 700; }
/* Phần có tiêu đề căn giữa: bảng / đoạn / nút căn giữa theo */
.blk-section__inner:has(> .blk-heading.blk-center:first-child) > .blk-rich-text { margin-inline: auto; max-width: 860px; }
.blk-section__inner:has(> .blk-heading.blk-center:first-child) > .blk-rich-text > p { text-align: center; }
.blk-section__inner:has(> .blk-heading.blk-center:first-child) > .blk-buttons { justify-content: center; }

/* Danh sách: ô vuông xoay vòng C → M → Y */
.blk-rich-text ul { list-style: none; padding-left: 0; }
.blk-rich-text ul > li { position: relative; padding-left: 24px; }
.blk-rich-text ul > li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; border-radius: 2px; background: var(--cy); }
.blk-rich-text ul > li:nth-child(3n+2)::before { background: var(--mg); }
.blk-rich-text ul > li:nth-child(3n)::before { background: var(--yl); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* Kêu gọi, câu hỏi, ảnh */
.blk-cta { border-radius: var(--r); }
.blk-faq details { border-radius: var(--r); }
.blk-gallery img, .blk-image img { border-radius: 4px; }
.blk-rich-text blockquote { border-left: 4px solid var(--accent); font-family: var(--body); font-style: normal; font-weight: 700; }
.cb-product { border-radius: var(--r); }

@media (max-width: 719.98px) {
  .cb-page-body > .blk-section--band:first-child > .blk-section__inner::after { opacity: .2; }
  /* Điện thoại: chữ nhỏ hơn; bảng nhiều cột vẫn chật thì vuốt ngang */
  .blk-rich-text table, .blk-html table { display: block; overflow-x: auto; font-size: 13px; }
  .blk-rich-text th, .blk-html th { white-space: normal; padding: 10px 7px; font-size: 11px; letter-spacing: .04em; }
  .blk-rich-text td, .blk-html td { padding: 11px 7px; }
  .blk-rich-text td small, .blk-html td small { font-size: 12px; }
}
