/* Kỳ Lân Land — CSS gộp từ assets/css/phan/. KHÔNG sửa tay tệp này; sửa trong phan/ rồi chạy node tools/gop-css.js */

/* ===== variables ===== */
/* Design tokens — kylanland.net (đo từ site cũ, 1440px). Xem .claude-memory/design-spec.md */
:root {
    /* Màu */
    --color-primary: #009688;
    --color-primary-dark: #008a7d;
    --color-nav: #303030;
    --color-nav-text: #efefef;
    --color-nav-active: #000000;
    --color-topbar: #f9f9f9;
    --color-topbar-text: #2f2f2f;
    --color-hot: #dd3333;
    --color-heading: #111111;
    --color-text: #222222;
    --color-muted: #767676;
    --color-crumb: #c3c3c3;
    --color-border: #eaeaea;
    --color-page: #ffffff;
    --color-footer: #222222;
    --color-footer-text: #eaeaea;
    --color-subfooter: #0d0d0d;
    --color-subfooter-text: #cccccc;
    --color-quote-bg: #f7f8fa;

    /* Màu theo khối */
    --block-market: #7f8fa9;
    --block-project: #66bb6a;
    --block-legal: #3f51b5;
    --block-living: #e91e63;
    --block-feng: #e91e63;

    /* Khung */
    --site-width: 1164px;
    --container-max: 1068px;
    --container-pad: 48px;
    --col-gap: 48px;
    --col-side: 324px;
    --site-shadow: 0 0 5px rgba(0, 0, 0, .12);

    /* Kích thước thay đổi theo điểm gãy (xem responsive.css) */
    --mast-pad: 28px; --logo-box: 284px; --logo-ml: 28px; --logo-h: 90px;
    --ad-box: 728px; --ad-img-w: 639px; --ad-img-h: 84px;
    --trend-pad: 18px;
    --mosaic-cols: 532fr 265fr 265fr; --mosaic-row: 198px;
    --tile-gap: 21px;
    --fcol1: 231px; --fcol2: 417px; --fcol3: 324px; --fgap: 48px;
    --thumb-row-w: 100px; --thumb-row-h: 70px;

    /* Chữ */
    --font-body: 'Open Sans', Arial, sans-serif;
    --font-heading: 'Roboto', Arial, sans-serif;
    --font-content: Verdana, BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --text-body: 14px;
    --text-article: 15px;
    --text-nav: 13px;
    --text-meta: 11px;
    --text-block-title: 18px;

    /* Hình thức */
    --radius-sm: 3px;
    --radius-md: 5px;
    --shadow-sm: 0 0 5px rgba(0, 0, 0, .12);
    --transition: .2s ease;
}

/* ===== base ===== */
/* Reset + nền tảng */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-page);
    color: #000;
    font-family: var(--font-content);
    font-size: var(--text-body);
    line-height: 21px;
    -webkit-font-smoothing: antialiased;
}
/* Thuộc tính hidden luôn thắng mọi display khai trong CSS (display:grid/flex sẽ đè nó nếu không có dòng này). */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: middle; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== layout ===== */
/* Khung site: hộp 1164px có bóng, container nội dung 1068px */
.site-wrap { width: min(100%, var(--site-width)); margin: 0 auto; background: var(--color-page); box-shadow: var(--site-shadow); position: relative; }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; }
.site-main { padding-top: var(--container-pad); background: var(--color-page); }
.site-main > .container { padding-inline: 0; }

/* Hai cột: nội dung 696 + cột bên 324, khe 48 */
.layout { display: flex; gap: var(--col-gap); align-items: flex-start; }
.layout__main { flex: 1 1 auto; min-width: 0; }
.layout__side { flex: 0 0 var(--col-side); width: var(--col-side); min-width: 0; }

/* Khối chung: tiêu đề + nội dung */
.block { margin-bottom: 48px; }
.block__head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--block-color, #222); margin-bottom: 26px; position: relative; }
.block__title { font: 700 var(--text-block-title)/17px var(--font-heading); text-transform: uppercase; color: #222; padding: 7px 12px 4px 0; }
.block__title a { color: inherit; }
.block__filters { display: flex; align-items: center; gap: 0; font: 400 11px/28px var(--font-heading); text-transform: uppercase; color: #aaa; margin-left: auto; position: relative; }
.block__filters a { padding: 0 16px; font-family: var(--font-body); font-size: 11px; text-transform: none; color: #aaa; }
.block__filters a:hover { color: var(--color-primary); }
.block__filters .more { padding-right: 0; display: flex; align-items: center; gap: 6px; }
.block__filters .more .bieu-tuong { font-size: 9px; }
.block__cols { display: flex; gap: var(--col-gap); }
.block__cols > * { flex: 1 1 0; min-width: 0; }

.sidebar > * + * { margin-top: 0; }
.pager-arrows { display: flex; gap: 7px; }
.pager-arrows button { width: 25px; height: 25px; border: 1px solid #dcdcdc; color: #b7b7b7; font-size: 7px; display: flex; align-items: center; justify-content: center; background: #fff; }
.pager-arrows button:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.block__foot { display: flex; margin-top: 0; }

/* ===== header ===== */
/* Đầu trang: thanh trên · logo + banner · menu chính */
.topbar { height: 33px; background: var(--color-topbar); border-top: 4px solid var(--color-primary); box-shadow: var(--site-shadow); position: relative; z-index: 3; }
.topbar__inner { display: flex; align-items: flex-start; justify-content: space-between; height: 29px; font: 400 var(--text-meta)/27px var(--font-body); color: var(--color-topbar-text); }
.topbar__date { display: block; }
.social { display: flex; align-items: center; }
.social a { display: flex; align-items: center; justify-content: center; width: 22px; height: 27px; color: var(--color-topbar-text); font-size: 13px; }
.social a:hover { color: var(--color-primary); }
.social .be { font: 700 11px/1 var(--font-body); letter-spacing: -.5px; }

.masthead { background: var(--color-page); box-shadow: var(--site-shadow); position: relative; z-index: 2; }
.masthead__inner { display: flex; align-items: flex-start; justify-content: space-between; padding-block: var(--mast-pad); }
.logo { flex: 0 0 var(--logo-box); width: var(--logo-box); height: var(--logo-h); margin-left: var(--logo-ml); display: flex; align-items: center; justify-content: center; }
.logo img { height: var(--logo-h); width: auto; max-width: 100%; }
.masthead__ad { flex: 0 0 var(--ad-box); width: var(--ad-box); height: var(--logo-h); text-align: center; }
.masthead__ad img { width: var(--ad-img-w); height: var(--ad-img-h); max-width: none; margin: 3px auto 0; object-fit: contain; }

.main-nav { background: var(--color-nav); box-shadow: var(--site-shadow); position: relative; z-index: 5; }
.main-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--color-primary); pointer-events: none; }
.main-nav__inner { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.main-nav__list { display: flex; flex-wrap: wrap; flex: 1 1 auto; padding-right: 48px; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a { display: block; padding: 0 14px; margin-bottom: 5px; font: 400 var(--text-nav)/48px var(--font-body); color: var(--color-nav-text); transition: background var(--transition); }
.main-nav__list > li > a:hover,
.main-nav__list > li.is-current > a { background: var(--color-nav-active); color: #fff; }
.main-nav__tools { display: flex; align-items: center; position: absolute; right: 0; top: 0; }
.search-toggle { width: 48px; height: 48px; font-size: 19px; color: var(--color-nav-text); display: flex; align-items: center; justify-content: center; }
.search-toggle:hover { color: var(--color-primary); }
.menu-toggle { display: none; }

/* Dính khi cuộn (JS gắn .is-stuck) */
.main-nav.is-stuck { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--site-width)); }
.nav-placeholder { display: none; height: 53px; }

.nav-placeholder.is-active { display: block; }

/* Ô tìm kiếm */
.search-panel { position: absolute; left: 0; right: 0; top: 48px; background: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); padding: 12px 18px; display: none; z-index: 6; }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 0; }
.search-panel input[type=search] { flex: 1; height: 40px; border: 1px solid #e1e1e1; padding: 0 12px; font-size: 14px; }
.search-panel button { height: 40px; padding: 0 20px; background: var(--color-primary); color: #fff; font: 600 12px var(--font-body); text-transform: uppercase; }

/* Dải TIN HOT */
.trending { display: flex; align-items: center; height: 25px; margin: -24px 0 24px; padding-inline: var(--trend-pad); position: relative; }
.trending__label { flex: 0 0 auto; background: var(--color-hot); color: #fff; font: 700 13px/22px var(--font-heading); text-transform: uppercase; padding: 2px 10px 1px; }
.trending__items { flex: 1 1 auto; margin-left: 15px; height: 25px; overflow: hidden; position: relative; min-width: 0; }
.trending__item { position: absolute; inset: 0 auto auto 0; width: 100%; font: 400 15px/25px var(--font-heading); color: var(--color-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; visibility: hidden; transition: opacity .3s; }
.trending__item.is-active { opacity: 1; visibility: visible; }
.trending__item:hover { color: var(--color-primary); }
.trending__nav { display: flex; gap: 7px; margin-left: auto; padding-left: 20px; }
.trending__nav button { width: 25px; height: 25px; border: 1px solid #dcdcdc; color: #b7b7b7; font-size: 7px; display: flex; align-items: center; justify-content: center; }
.trending__nav button:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ===== blocks ===== */
/* Thẻ bài (card) + lưới lớn */
.card { position: relative; }
.card__thumb { display: block; position: relative; overflow: hidden; background: #e8e8e8; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__badge { display: inline-block; font: 500 10px/13px var(--font-heading); text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .7); padding: 3px 7px; margin-bottom: 5px; position: relative; z-index: 2; }
.card__badge--solid { background: #222; font-family: var(--font-body); font-weight: 600; line-height: 10px; padding: 3px 6px 4px; }
.card__thumb .card__badge--thumb { position: absolute; left: 0; bottom: 0; margin: 0; background: #222; font: 600 10px/10px var(--font-body); padding: 3px 6px 4px; text-transform: none; }
.card__title { font-family: var(--font-heading); color: var(--color-heading); }
.card__title a:hover { color: var(--color-primary); }
.card__meta { display: flex; align-items: center; gap: 0; font: 400 var(--text-meta)/11px var(--font-body); color: var(--color-muted); }
.card__author { font-weight: 700; color: #000; }
.card__author::after { content: '-'; font-weight: 400; color: var(--color-muted); margin: 0 5px; }
.card__date { color: var(--color-muted); }
.card__comments { margin-left: auto; background: #000; color: #fff; font: 600 10px/10px var(--font-body); padding: 3px 4px 4px 5px; min-width: 17px; text-align: center; }
.card__excerpt { font: 400 13px/21px var(--font-body); color: var(--color-muted); margin-top: 9px; }

/* Lead (module 4): ảnh 324×235, tiêu đề 21/25 */
.card--lead .card__excerpt { min-height: 63px; }
.card--lead .card__thumb { width: 100%; aspect-ratio: 324 / 235; margin-bottom: 13px; }
.card--lead .card__title { font: 400 21px/25px var(--font-heading); margin-bottom: 6px; }
.card--lead .card__meta { margin-bottom: 7px; }

/* Row (module 6): ảnh 100×70 bên trái */
.card--row { display: flex; gap: 16px; padding-bottom: 26px; }
.card--row .card__thumb { flex: 0 0 var(--thumb-row-w); width: var(--thumb-row-w); height: var(--thumb-row-h); }
.card--row .card__body { flex: 1 1 auto; min-width: 0; }
.card--row .card__title { font: 500 14px/20px var(--font-heading); margin-bottom: 6px; }
.card--row .card__meta { font-size: 11px; }
.card--row:last-child { padding-bottom: 0; }

/* Lead rộng (module 2) */
.card--feature { padding-bottom: 21px; }
.card--feature .card__thumb { width: 100%; aspect-ratio: 324 / 160; margin-bottom: 13px; }
.card--feature .card__title { font: 400 21px/25px var(--font-heading); margin-bottom: 6px; }
.card--feature .card__meta { margin-bottom: 7px; }

/* Ô carousel (module mx4) */
.carousel { position: relative; }
.carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tile-gap); }
.carousel + .block__foot { margin-top: 21px; }
.card--tile .card__thumb { width: 100%; aspect-ratio: 218 / 150; margin-bottom: 7px; }
.card--tile .card__title { font: 500 15px/20px var(--font-heading); }

/* Lưới lớn: 1 ô 532×399 + 4 ô 265×198 */
.mosaic { display: grid; grid-template-columns: var(--mosaic-cols); grid-template-rows: var(--mosaic-row) var(--mosaic-row); gap: 3px; height: calc(var(--mosaic-row) * 2 + 3px); margin-bottom: 48px; }
.mosaic .card { overflow: hidden; background: #333; }
.mosaic__subs { display: contents; }
.mosaic .card--main { grid-row: 1 / span 2; }
.mosaic .card__thumb { position: absolute; inset: 0; height: 100%; }
.mosaic .card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8) 100%); z-index: 1; }
.mosaic .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 15px 11px; z-index: 2; color: #fff; }
.mosaic .card__title { font: 500 16px/21px var(--font-heading); color: #fff; margin: 2px 0 0; }
.mosaic .card__title a { color: #fff; }
.mosaic .card__title a:hover { color: #fff; }
.mosaic .card__body { padding-right: 15px; }
.mosaic .card--main .card__body { padding: 0 86px 18px 20px; }
.mosaic .card--main .card__title { font-size: 27px; line-height: 34px; margin: 0 0 9px; }
.mosaic .card__meta { color: #ddd; margin-top: 0; line-height: 15px; }
.mosaic .card__author { color: #fff; }
.mosaic .card__author::after { color: #ddd; }
.mosaic .card__date { color: #ddd; }
.mosaic .card__comments { display: none; }
.mosaic__subs .card .card__meta { display: none; }

/* Lưới 4 ô toàn rộng khung site (mx21): mỗi ô 294 (đệm 6) → hiển thị 282×353 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -6px 48px; position: relative; }
.tiles .card { padding: 0 6px; aspect-ratio: 294 / 353; }
.tiles .card__inner { position: relative; height: 100%; overflow: hidden; background: #444; }
.tiles .card__thumb { position: absolute; inset: 0; height: 100%; }
.tiles .card__thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1; }
.tiles .card__body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 42px 0 43px; color: #fff; }
.tiles .card__title { font: 300 15px/20px var(--font-heading); text-transform: uppercase; color: #fff; }
.tiles .card__title a { color: #fff; }
.tiles .card__meta { color: #fff; justify-content: center; margin-top: 12px; }
.tiles .card__author { color: #fff; }
.tiles .card__author::after { color: #fff; }
.tiles .card__date { color: #fff; }
.tiles .card__comments { display: none; }

/* Quảng cáo trong cột bên */
.ad { text-align: center; margin-bottom: 48px; }
.ad__label { font: 400 11px/14px var(--font-body); color: #aaa; margin-bottom: 7px; }
.ad img { width: 100%; height: auto; display: block; }
.ad--banner { margin: 0 0 48px; text-align: center; }
.ad--banner img { width: auto; max-width: 100%; margin: 0 auto; }

/* Ảnh lưới lớn: bám góc trên-trái, phần dư bị cắt (giống cách hiển thị gốc) */
.mosaic .card__thumb img { position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: left top; }
.mosaic .card:hover .card__thumb img { transform: scale(1.05); }
.tiles .card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform .4s ease; }
.tiles .card:hover .card__thumb img { transform: scale(1.18); }

/* ===== content ===== */
/* Trang trong: breadcrumb, chuyên mục, bài viết, tác giả, tìm kiếm, 404 */
.crumbs { height: 42px; overflow: hidden; padding: 21px 0 0; margin-bottom: 9px; font: 400 12px/21px var(--font-body); color: var(--color-crumb); white-space: nowrap; text-overflow: ellipsis; }
.crumbs a { color: var(--color-crumb); }
.crumbs a:hover { color: var(--color-primary); }
.crumbs__sep { display: inline-block; margin: 0 8px; font-size: 8px; vertical-align: middle; }
.crumbs--cat { margin-bottom: 3px; }
body.is-inner .site-main { padding-top: 0; padding-bottom: 40px; }

/* ---- Đầu trang chuyên mục / tác giả / tìm kiếm ---- */
.page-head { background: var(--color-page); padding-bottom: 29px; box-shadow: var(--site-shadow); position: relative; z-index: 1; }
.page-title { font: 700 30px/38px var(--font-heading); text-transform: uppercase; color: var(--color-heading); margin: -2px 0 0; }
.page-title--plain { text-transform: none; font-weight: 400; font-size: 30px; line-height: 38px; margin: -9px 0 19px; }
.page-title em { font-style: normal; color: var(--color-primary); }
.cat-siblings { display: flex; align-items: flex-start; justify-content: space-between; margin: 13px 0 6px; }
.cat-siblings__list { display: flex; flex-wrap: wrap; gap: 0; max-width: 744px; max-height: 21px; overflow: hidden; }
.cat-siblings__list a { display: block; font: 400 11px/11px var(--font-body); color: #222; border: 1px solid var(--color-border); padding: 3px 7px 4px; margin: 0 4px 0 0; height: 21px; }
.cat-siblings__list a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.cat-siblings__toggle { width: 21px; height: 21px; border: 1px solid var(--color-border); font-size: 8px; display: flex; align-items: center; justify-content: center; margin-left: -1px; }
.cat-desc { font: italic 400 16px/26px var(--font-heading); color: #777; margin-top: 11px; }
.cat-hero { background: var(--color-page); box-shadow: var(--site-shadow); padding-bottom: 48px; position: relative; }
.mosaic--two { grid-template-columns: 1fr 1fr; grid-template-rows: 399px; height: 399px; margin-bottom: 0; gap: 0; width: calc(100% + 4px); }
.mosaic--two .card { margin-right: 3px; }
.mosaic--two .card .card__body { padding: 0 20px 18px; }
.mosaic--two .card--main { grid-row: auto; }
.mosaic--two .card__title { font-size: 27px; line-height: 34px; margin: 0 0 9px; }
.mosaic--two .card__meta { display: flex; }

/* ---- Danh sách bài dạng hàng (module 10) ---- */
.card--list { display: flex; gap: 26px; padding-bottom: 40px; }
.card--list .card__thumb { flex: 0 0 218px; width: 218px; height: 150px; }
.card--list .card__body { flex: 1 1 auto; min-width: 0; }
.card--list .card__title { font: 400 22px/28px var(--font-heading); margin-bottom: 7px; }
.card--list .card__meta { gap: 0; }
.card--list .card__meta .card__badge { margin: 0 10px 0 0; }
.card--list .card__excerpt { margin-top: 9px; }

/* ---- Phân trang ---- */
.page-nav { display: flex; align-items: flex-start; flex-wrap: wrap; margin: 30px 0 35px; font: 400 12px/21px var(--font-body); }
.page-nav a, .page-nav span.current { display: inline-flex; align-items: center; justify-content: center; min-width: 33px; height: 33px; padding: 0 11px; margin: 0 8px 8px 0; border: 1px solid var(--color-border); background: #fff; color: #000; }
.page-nav a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.page-nav span.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.page-nav span.extend { margin: 0 8px 8px 0; line-height: 33px; color: #777; }
.page-nav .pages { margin-left: auto; margin-right: 0; line-height: 33px; color: #aaa; }
.page-nav .bieu-tuong { font-size: 8px; }

/* ---- Bài viết ---- */
.post__cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; min-height: 22px; align-items: flex-start; }
.post__cats a { display: inline-block; background: #222; color: #fff; font: 600 10px/10px var(--font-body); padding: 3px 6px 4px; }
.post__cats a:hover { background: var(--color-primary); }
.post__title { font: 400 41px/50px var(--font-heading); color: var(--color-heading); margin: 0 0 7px; }
.post__meta { display: flex; align-items: center; justify-content: space-between; font: 400 11px/11px var(--font-body); color: var(--color-muted); height: 17px; padding-left: 4px; }
.post__views { display: inline-flex; align-items: center; gap: 6px; color: #000; height: 17px; margin-top: -2px; }
.post__views .bieu-tuong { font-size: 12px; }
.post__content { margin-top: 21px; padding-bottom: 16px; font: 400 var(--text-article)/26.1px var(--font-content); color: var(--color-text); overflow-wrap: break-word; }
.post__content > * + * { margin-top: 0; }
.post__content p { margin: 0 0 26px; }
.post__content img { height: auto; max-width: 100%; }
.post__content img { margin: 0 6px 21px; max-width: calc(100% - 12px); }
.post__content a { color: var(--color-primary); }
.post__content a:hover { text-decoration: underline; }
.post__content strong, .post__content b { font-weight: 700; }
.post__content h2 { font: 700 27px/1.3 var(--font-heading); color: var(--color-heading); margin: 31px 0 21px; }
.post__content h3 { font: 700 22px/1.3 var(--font-heading); color: var(--color-heading); margin: 27px 0 21px; }
.post__content h4 { font: 700 19px/1.3 var(--font-heading); color: var(--color-heading); margin: 21px 0; }
.post__content ul, .post__content ol { margin: 0 0 26px 21px; }
.post__content ul { list-style: disc; }
.post__content ol { list-style: decimal; }
.post__content li { margin-bottom: 4px; }
.post__content figure, .post__content .wp-caption { margin: 0 0 21px; max-width: 100%; }
.post__content figcaption, .post__content .wp-caption-text { font: italic 400 12px/1.5 var(--font-body); color: var(--color-muted); text-align: center; padding-top: 6px; }
.post__content table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 14px; }
.post__content th, .post__content td { border: 1px solid #e1e1e1; padding: 6px 10px; text-align: left; }
.post__content blockquote { background: var(--color-quote-bg); border-left: 5px solid #4db2ec; border-radius: 5px; padding: 25px 30px; margin: 30px 0; font-size: 1.1em; font-style: normal; text-align: left; }
.post__content blockquote p { font: 400 32px/40px var(--font-heading); color: var(--color-primary); text-transform: uppercase; margin: 0 0 26px; }
.post__content iframe { max-width: 100%; }
.post__share { margin: 0 -3px 0; padding: 22px 0 22px 3px; display: flex; gap: 6px; }
.post__share a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.post__share .s-fb { background: #516eab; }
.post__share .s-tw { background: #29c5f6; }
.post__share .s-pi { background: #ca212a; }
.post__share .s-wa { background: #7bbf6a; }
.post__share a:hover { opacity: .85; }

/* Bài liên quan */
.related { margin: 42px 0 48px; }
.related__head { display: flex; align-items: flex-start; border-bottom: 2px solid #222; margin-bottom: 27px; height: 36px; }
.related__head a, .related__head span { font: 700 18px/17px var(--font-heading); text-transform: uppercase; color: #222; padding: 7px 12px 4px 0; display: block; height: 34px; }
.related__head .is-off { color: #c3c3c3; padding-left: 12px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 218px); column-gap: 21px; row-gap: 17px; }
.card--related .card__thumb { width: 218px; height: 150px; margin-bottom: 7px; }
.card--related .card__title { font: 500 13px/20px var(--font-heading); }

/* ---- Widget bài viết trong cột bên ---- */
.widget-posts .card--lead { padding-bottom: 21px; }
.widget-posts .card--lead .card__excerpt { min-height: 0; }
.widget-posts .card--row { padding-bottom: 26px; }
.widget-posts .card--row:last-child { padding-bottom: 0; }

/* ---- Hộp tác giả ---- */
.author-head { max-width: calc(100% - var(--col-side) - var(--col-gap)); }
.author-box { border: 1px solid #ededed; padding: 21px; display: flex; gap: 21px; margin: 0 0 48px; height: 140px; }
.author-box__avatar { width: 96px; height: 96px; background: #c4c4c4; flex: 0 0 96px; overflow: hidden; }
.author-box__avatar svg { width: 100%; height: 100%; display: block; }
.author-box__stats { display: flex; gap: 10px; align-items: flex-start; height: 20px; }
.author-box__stats span { background: #222; color: #fff; font: 700 11px/11px var(--font-heading); text-transform: uppercase; padding: 5px 9px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 0; }
.card--grid .card__thumb { width: 100%; aspect-ratio: 324 / 160; margin-bottom: 13px; }
.card--grid .card__title { font: 400 20px/25px var(--font-heading); margin-bottom: 6px; }
.card--grid .card__meta { margin-bottom: 7px; }
.grid-2 .card--grid { padding-bottom: 24px; }

/* ---- Tìm kiếm ---- */
.search-title { font: 400 30px/38px var(--font-heading); color: var(--color-heading); margin: -9px 0 19px; }
.search-title em { color: var(--color-primary); font-style: normal; }
.search-box { display: flex; height: 32px; }
.search-box input[type=search] { flex: 1; height: 32px; border: 1px solid #e1e1e1; padding: 0 9px; font: 400 13px var(--font-body); }
.search-box button { height: 32px; width: 70px; background: #222; color: #fff; font: 700 13px var(--font-body); }
.search-box button:hover { background: var(--color-primary); }
.search-hint { font: 400 13px/21px var(--font-content); color: #000; margin: 11px 0 58px 2px; }
.search-empty { font: 400 14px/21px var(--font-content); color: #000; margin-bottom: 40px; }

/* ---- 404 ---- */
.e404 { text-align: center; padding-top: 50px; }
.e404__title { font: 400 40px/50px var(--font-heading); color: #222; margin-bottom: 17px; }
.e404__sub { font: 400 21px/24px var(--font-heading); color: #a6a6a6; margin-bottom: 40px; }
.e404__go { font: 400 14px/21px var(--font-content); color: #000; height: 21px; }
.e404__go a { display: inline-block; background: #222; color: #fff; font: 700 11px/11px var(--font-body); text-transform: uppercase; padding: 8px 15px; margin-left: 6px; vertical-align: middle; }
.e404__go a:hover { background: var(--color-primary); }
.e404-latest { margin: 70px 0 0; }
.e404-latest .block__head { margin-bottom: 26px; }
.e404-latest .block__title { font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; row-gap: 0; }
.grid-3 .card--grid { padding-bottom: 24px; }

/* ===== footer ===== */
/* Chân trang */
.site-footer { background: var(--color-footer); color: var(--color-footer-text); position: relative; box-shadow: var(--site-shadow); margin-top: 0; }
.site-footer__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .1; pointer-events: none; }
.site-footer__main { position: relative; padding: 120px 0 59px; }
.site-footer__row { display: flex; gap: var(--fgap); align-items: flex-start; }
.footer-col--logo { flex: 0 0 var(--fcol1); width: var(--fcol1); }
.footer-col--about { flex: 0 0 var(--fcol2); width: var(--fcol2); }
.footer-col--social { flex: 0 0 var(--fcol3); width: var(--fcol3); }
.footer-logo { display: block; margin-top: 33px; }
.footer-logo img { width: 100%; height: auto; }
.footer-title { font: 700 18px/18px var(--font-heading); text-transform: uppercase; color: var(--color-footer-text); margin: 2px 0 26px; }
.footer-text { font: 400 14px/21px var(--font-body); color: var(--color-footer-text); }
.footer-text b { font-weight: 700; }
.footer-email { margin-top: 21px; }
.footer-email a { color: var(--color-primary); }
.footer-social { display: flex; flex-wrap: wrap; gap: 5px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: background var(--transition); }
.footer-social a:hover { background: var(--color-primary); }
.footer-social .be { font: 700 13px/1 var(--font-body); letter-spacing: -.5px; }

.subfooter { background: var(--color-subfooter); color: var(--color-subfooter-text); position: relative; box-shadow: var(--site-shadow); }
.subfooter__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; font: 400 12px/20px var(--font-body); padding-block: 8px; }
.subfooter__menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.subfooter__menu a { color: var(--color-subfooter-text); margin-left: 16px; line-height: 18px; }
.subfooter__menu a:hover { color: var(--color-primary); }

.scroll-up { position: fixed; right: 5px; bottom: -60px; width: 40px; height: 40px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 20; transition: bottom .3s; opacity: .95; }
.scroll-up.is-visible { bottom: 10px; }

/* ===== tien-ich ===== */
/* Phần riêng của giao diện WordPress (không có trong html-view): liên kết nhảy, logo chữ,
   quảng cáo, nhắc quản trị, menu con, bình luận, sắp xếp chuyên mục, thẻ từ khoá. */

.bieu-tuong { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }

/* ---- Liên kết nhảy tới nội dung (chỉ hiện khi bấm Tab lần đầu) ---- */
.bo-qua-toi-noi-dung { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: #111; padding: 10px 16px; font: 600 14px/1 var(--font-body); }
.bo-qua-toi-noi-dung:focus { left: 8px; top: 8px; outline: 2px solid var(--color-primary); }

/* ---- Logo chữ (khi chưa đặt logo ảnh) ---- */
.logo__ten { font: 700 26px/1.1 var(--font-heading); color: var(--color-primary); text-align: center; }
.footer-logo { display: block; }

/* ---- Vùng quảng cáo ---- */
.quang-cao { max-width: 100%; }
.quang-cao img { height: auto; }
.ad--doi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ad--side .quang-cao { text-align: center; }
.ad--side .quang-cao a { display: block; }
.masthead__ad a { display: block; }
.masthead__ad--mau { display: flex; align-items: center; justify-content: center; border: 1px dashed #bbb; color: #888; font: 400 12px/1 var(--font-body); text-decoration: none; }

/* ---- Nhắc dành riêng cho quản trị ---- */
.nhac-quan-tri { background: #fff8e1; border: 1px solid #f0d98c; color: #5f4b00; font: 400 13px/1.5 var(--font-body); padding: 10px 14px; margin: 0 0 16px; }
.nhac-quan-tri a { color: #8a5a00; text-decoration: underline; }

/* ---- Menu con của menu chính (site cũ không có, giữ cho tiện về sau) ---- */
.main-nav__list .menu-con { display: none; position: absolute; left: 0; top: 48px; min-width: 200px; background: var(--color-nav); box-shadow: 0 6px 12px rgba(0, 0, 0, .25); z-index: 8; }
.main-nav__list > li:hover > .menu-con,
.main-nav__list > li:focus-within > .menu-con { display: block; }
.main-nav__list .menu-con a { display: block; padding: 10px 16px; font: 400 13px/20px var(--font-body); color: var(--color-nav-text); }
.main-nav__list .menu-con a:hover { background: #000; }

/* ---- Hộp chọn sắp xếp ở trang chuyên mục (Latest / Popular) ---- */
.cat-sort { position: relative; display: block; background: #222; color: #fff; height: 30px; margin-top: -7px; padding: 0; }
.cat-sort summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; font: 400 11px/21px var(--font-heading); text-transform: uppercase; }
.cat-sort summary::-webkit-details-marker { display: none; }
.cat-sort .bieu-tuong { font-size: 8px; }
.cat-sort__list { position: absolute; right: 0; top: 30px; min-width: 100%; background: #222; z-index: 7; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.cat-sort__list a { display: block; padding: 8px 14px; font: 400 11px/14px var(--font-heading); text-transform: uppercase; color: #fff; white-space: nowrap; }
.cat-sort__list a:hover { background: var(--color-primary); }

/* ---- Tiêu đề bài liên quan (thẻ h2) ---- */
.related__title { font: 700 18px/17px var(--font-heading); text-transform: uppercase; color: #222; padding: 7px 12px 4px 0; margin: 0; height: 34px; }

/* ---- Thẻ từ khoá cuối bài ---- */
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.post__tags a { border: 1px solid var(--color-border); font: 400 11px/11px var(--font-body); color: #222; padding: 4px 8px; }
.post__tags a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.post__figure { margin: 21px 0 0; }
.post__figure img { width: 100%; height: auto; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 33px; height: 33px; padding: 0 11px; margin: 0 8px 8px 0; border: 1px solid var(--color-border); font: 400 12px/21px var(--font-body); }

/* ---- Thông báo không có bài ---- */
.khong-co-bai { padding: 24px 0 48px; font: 400 14px/21px var(--font-content); color: #333; }

/* ---- Ô tìm kiếm mở từ thanh menu: cao 40px ---- */
.search-panel .search-box { height: 40px; }
.search-panel .search-box input[type=search] { height: 40px; }
.search-panel .search-box button { height: 40px; width: auto; padding: 0 20px; background: var(--color-primary); font: 600 12px var(--font-body); text-transform: uppercase; }

/* ---- Widget thường (tìm kiếm, văn bản, ...) trong cột bên ---- */
.layout__side .widget { margin-bottom: 48px; font: 400 14px/21px var(--font-content); }
.layout__side .widget ul { list-style: none; margin: 0; padding: 0; }
.layout__side .widget li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.layout__side .widget-posts li { padding: 0; border: 0; }

/* ---- Bình luận ---- */
.khu-binh-luan { margin: 0 0 48px; font: 400 14px/21px var(--font-content); }
.khu-binh-luan ol { list-style: none; margin: 0; padding: 0; }
.khu-binh-luan li { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.khu-binh-luan textarea, .khu-binh-luan input[type=text], .khu-binh-luan input[type=email], .khu-binh-luan input[type=url] { width: 100%; border: 1px solid #e1e1e1; padding: 8px 10px; font: 400 14px var(--font-body); }
.khu-binh-luan .nut, .khu-binh-luan input[type=submit] { background: #222; color: #fff; border: 0; padding: 10px 24px; font: 700 12px var(--font-body); text-transform: uppercase; cursor: pointer; }
.khu-binh-luan .nut:hover, .khu-binh-luan input[type=submit]:hover { background: var(--color-primary); }
.binh-luan-dong { color: var(--color-muted); }

/* ---- Cảnh báo khi người đọc tắt hiệu ứng chuyển động ---- */
@media (prefers-reduced-motion: reduce) { .card__thumb img { transition: none; } }

/* Khối có nút ‹ › : hàng cuối trong trang vẫn giữ khoảng đệm dưới như html-view (vì phía sau còn hàng nút). */
[data-alxn-trang-khoi] .card--row:last-child { padding-bottom: 26px; }

/* Hàng nút ‹ › dưới bài liên quan cách lưới 17px (khớp html-view). */
.related .block__foot { margin-top: 17px; }

/* Nét vẽ biểu tượng dày như bản html-view (kho biểu tượng gốc vẽ nét 2). */
.menu-toggle .bieu-tuong path { stroke-width: 3; }
.search-toggle .bieu-tuong circle, .search-toggle .bieu-tuong path { stroke-width: 2.6; }
.scroll-up .bieu-tuong path { stroke-width: 3.5; }
.trending__nav .bieu-tuong path, .pager-arrows .bieu-tuong path { stroke-width: 3.5; }
.drawer__close .bieu-tuong path { stroke-width: 3; }

/* Một bình luận (hàm alxn_ve_mot_binh_luan). */
.binh-luan__dau { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.binh-luan__dau img { border-radius: 50%; }
.binh-luan__ten { font-weight: 700; color: var(--color-heading); }
.binh-luan__gio { color: var(--color-muted); font-size: 12px; }
.binh-luan__noi-dung { font: 400 14px/22px var(--font-content); color: var(--color-text); }
.binh-luan__noi-dung p { margin: 0 0 8px; }
.binh-luan__tra-loi a { font: 600 12px var(--font-body); color: var(--color-primary); }
.binh-luan__cho-duyet { font: italic 400 13px var(--font-body); color: var(--color-muted); }

/* ===== responsive ===== */
/* Điểm gãy (khớp site cũ, đo thật):
   ≥1141  : khung 1164 / nội dung 1068 (mặc định, xem variables.css)
   1019–1140 : nội dung 980
   768–1018  : nội dung 740
   ≤767      : 1 cột, lề 20px (điện thoại)                                              */

.drawer, .drawer-backdrop { display: none; }
@media (max-width: 1176px) { .site-wrap { overflow-x: clip; } }

/* ============ 1019–1140: nội dung 980 ============ */
@media (max-width: 1140px) {
    :root {
        --container-max: 980px;
        --col-gap: 40px; --col-side: 300px;
        --logo-box: 224px; --logo-ml: 0px;
        --mosaic-cols: 504fr 235fr 235fr; --mosaic-row: 176px;
        --tile-gap: 20px;
        --fcol1: 215px; --fcol2: 385px; --fcol3: 300px; --fgap: 40px;
    }
    .site-wrap { width: 100%; box-shadow: none; }
    .mosaic .card--main .card__title { font-size: 21.6px; line-height: 28.08px; }
    .mosaic .card--main .card__body { padding: 0 104px 18px 20px; }
    .mosaic .card__title { font-size: 14.4px; line-height: 20.16px; }
    .card--row .card__title { font-size: 12px; line-height: 18px; }
    .subfooter__inner { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 8px 20px; }
    .subfooter__menu { justify-content: flex-end; min-height: 35px; }
    .post__title { font-size: 36px; line-height: 44px; }
    .tiles .card__body { padding-inline: 30px; }
}

/* ============ 768–1018: nội dung 740 ============ */
@media (max-width: 1018px) {
    :root {
        --container-max: 740px;
        --col-gap: 28px; --col-side: 228px;
        --mast-pad: 14px; --logo-box: 272px; --logo-h: 60px;
        --ad-box: 468px; --ad-img-w: 470px; --ad-img-h: 62px;
        --trend-pad: 6px;
        --mosaic-cols: 374fr 180fr 180fr; --mosaic-row: 134px;
        --tile-gap: 18px;
        --fcol1: 164px; --fcol2: 292px; --fcol3: 228px; --fgap: 28px;
        --thumb-row-w: 80px; --thumb-row-h: 56px;
    }
    .container { padding-inline: 0; }
    .main-nav__list > li > a { padding: 0 9px; }
    .masthead__ad img { margin-top: -1px; }
    .mosaic .card--main .card__title { font-size: 16px; line-height: 20.8px; margin-bottom: 7px; }
    .mosaic .card--main .card__body { padding: 0 55px 14px 20px; }
    .mosaic .card__title { font-size: 12.8px; line-height: 17.92px; }
    .mosaic .card__body { padding: 0 15px 10px 15px; }
    .card--lead .card__title, .card--feature .card__title { font-size: 17px; line-height: 22px; }
    .card--row { gap: 15px; }
    .card--row .card__title { font-size: 12px; line-height: 18px; }
    .card--tile .card__title { font-size: 14px; line-height: 20px; }
    .block__filters a:nth-child(n+2) { display: none; }
    .tiles .card__body { padding-inline: 24px; }
    .tiles .card__title { font-size: 13px; line-height: 18px; }
    .post__title { font-size: 32px; line-height: 36px; }
    .post__content blockquote p { font-size: 24px; line-height: 32px; }
    .post__content img { margin: 0 0 21px; max-width: 100%; }
    .card--list { gap: 20px; padding-bottom: 43px; }
    .card--list .card__thumb { flex-basis: 190px; width: 190px; height: 131px; }
    .card--list .card__title { font-size: 19px; line-height: 22px; margin-bottom: 5px; }
    .crumbs { height: 37px; padding-top: 16px; }
    .page-title { font-size: 26px; line-height: 34px; }
    .cat-siblings { margin-top: 14px; }
    .page-head { padding-bottom: 19px; }
    .mosaic--two .card--main .card__body, .mosaic--two .card .card__body { padding: 0 55px 14px 20px; }
    .related__grid { grid-template-columns: repeat(3, 1fr); column-gap: 21px; }
    .card--related .card__thumb { width: 100%; height: auto; aspect-ratio: 218 / 150; }
    .grid-2 { column-gap: 28px; }
    .grid-3 { column-gap: 28px; }
    .site-footer__main { padding: 108px 0 61px; }
    .footer-social a { width: 32px; height: 32px; }
    .mosaic--two { width: 100%; grid-template-rows: 280px; height: 280px; }
    .mosaic--two .card { margin-right: 0; }
    .mosaic--two .card__title { font-size: 17px; line-height: 21px; margin-bottom: 7px; }
}

/* ============ ≤767: điện thoại ============ */
@media (max-width: 767px) {
    :root {
        --container-max: 100%;
        --col-gap: 0px;
        --mast-pad: 10px;
        --ad-box: 100%; --ad-img-w: 100%; --ad-img-h: auto;
        --trend-pad: 0px;
        --tile-gap: 20px;
        --thumb-row-w: 100px; --thumb-row-h: 70px;
    }
    body { overflow-x: hidden; }
    .container { padding-inline: 20px; }
    .topbar { display: none; }
    .masthead__inner { padding-block: 10px; }
    .logo { display: none; }
    .masthead__ad { flex: 1 1 100%; width: 100%; height: auto; }
    .masthead__ad img { width: 100%; height: auto; margin: 0; }
    .main-nav { background: #222; height: 54px; }
    .main-nav::after { display: none; }
    .main-nav__inner { height: 54px; align-items: center; padding-inline: 20px; }
    .main-nav__list { display: none; }
    .menu-toggle { display: flex; width: 44px; height: 54px; align-items: center; font-size: 26px; color: #fff; margin-left: -8px; }
    .main-nav__tools { position: static; }
    .search-toggle { height: 54px; width: 44px; margin-right: -8px; font-size: 24px; }
    .search-panel { top: 54px; }
    .main-nav.is-stuck { position: static; transform: none; width: auto; }

    .site-main { padding-top: 32px; }
    body.is-inner .site-main { padding-top: 0; }
    .site-main > .container { padding-inline: 20px; }
    .trending { flex-direction: column; height: 67px; margin: -24px 0 0; padding: 4px 0 0; align-items: center; }
    .trending__label { margin-bottom: 9px; }
    .trending__items { margin-left: 0; width: 100%; height: 25px; text-align: center; flex: 0 0 25px; }
    .trending__item { white-space: nowrap; text-overflow: clip; text-align: center; font-size: 15px; line-height: 25px; height: 25px; overflow: hidden; }
    .trending__nav { display: none; }

    /* Lưới lớn: ô đầu tràn mép, các ô còn lại cuộn ngang */
    .container > .mosaic:not(.mosaic--two) { margin-inline: -20px; }
    .mosaic:not(.mosaic--two) { display: block; height: auto; margin-bottom: 48px; }
    .mosaic .card--main { height: 337px; margin-bottom: 3px; position: relative; }
    .mosaic__subs { display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
    .mosaic__subs .card { flex: 0 0 312px; height: 170px; position: relative; scroll-snap-align: start; }
    .mosaic .card--main .card__title { font-size: 22px; line-height: 28px; }
    .mosaic .card--main .card__body { padding: 0 24px 20px 15px; }
    .mosaic .card__title { font-size: 16px; line-height: 21px; }

    .layout { flex-direction: column; gap: 0; }
    .layout__main, .layout__side { width: 100%; flex: 1 1 auto; }
    .block__cols { flex-direction: column; gap: 0; }
    .block__filters a { display: none; }
    .block__filters .more { display: flex; }
    .block__filters .more a { display: inline; padding: 0; }
    .carousel__track { display: block; }
    .carousel .card--tile { display: flex; gap: 15px; padding-bottom: 26px; }
    .carousel .card--tile .card__thumb { flex: 0 0 100px; width: 100px; height: 70px; aspect-ratio: auto; margin: 0; }
    .carousel .card--tile .card__thumb .card__badge--thumb { white-space: normal; max-width: 100%; line-height: 10px; }
    .carousel .card--tile .card__title { font-size: 15px; line-height: 22px; }
    .carousel .card--tile:last-child { padding-bottom: 6px; }
    .card--lead .card__title, .card--feature .card__title { font-size: 21px; line-height: 25px; }
    .block__cols .block { margin-bottom: 48px; }
    .card--row .card__title { font-size: 14px; line-height: 20px; }

    .tiles { display: flex; overflow-x: auto; margin: 0 0 48px; width: 100%; scroll-snap-type: x proximity; }
    .tiles .card { flex: 0 0 315px; aspect-ratio: auto; height: 167px; padding: 0 3px 0 0; scroll-snap-align: start; }
    .tiles .card__title { font-size: 16px; line-height: 21px; }
    .tiles .card__body { padding: 0 20px; }

    .layout__side { margin-top: 0; }
    .ad { margin-bottom: 40px; }
    .ad--banner { margin-bottom: 48px; }

    /* Chân trang */
    .site-footer__main { padding: 60px 0 40px; }
    .site-footer__row { flex-direction: column; align-items: center; text-align: center; gap: 36px; }
    .site-footer__row::before { content: ''; display: block; width: 100%; max-width: 312px; border-top: 1px solid rgba(255, 255, 255, .18); }
    .footer-col--logo, .footer-col--about, .footer-col--social { flex: 0 0 auto; width: 100%; max-width: 350px; }
    .footer-col--logo { max-width: 245px; }
    .footer-logo { margin-top: 0; }
    .footer-social { justify-content: center; gap: 15px; }
    .footer-social a { width: 40px; height: 40px; }
    .subfooter__inner { flex-direction: column; align-items: center; text-align: center; padding-block: 16px; gap: 14px; }
    .subfooter__menu { justify-content: center; order: -1; }
    .subfooter__menu a { margin: 0 8px; }

    /* Trang trong */
    .crumbs { padding-top: 12px; height: 30px; margin-bottom: 8px; }
    .page-head { padding-bottom: 16px; }
    .page-title { font-size: 26px; line-height: 32px; }
    .cat-siblings { flex-wrap: wrap; }
    .cat-sort { display: none; }
    .cat-siblings__list a:nth-child(n+3) { display: none; }
    .cat-desc { font-size: 15px; line-height: 24px; }
    .container > .mosaic--two, .cat-hero .mosaic--two { display: grid; width: 100%; margin: 0; grid-template-columns: 100%; grid-template-rows: 220px 220px; height: auto; }
    .mosaic--two .card__title { font-size: 22px; line-height: 28px; }
    .mosaic--two .card .card__body { padding: 0 15px 14px; }
    .cat-hero .container { padding-inline: 0; }
    .mosaic--two .card { margin-right: 0; margin-bottom: 3px; }
    .post__title { font-size: 32px; line-height: 36px; margin: 3px 0 9px; }
    .post__content { font-size: 15px; }
    .post__content blockquote { padding: 18px 20px; }
    .post__content blockquote p { font-size: 22px; line-height: 30px; }
    .post__content img { margin: 0 0 21px; }
    .post__content img { margin-inline: 0; max-width: 100%; }
    .related__grid { grid-template-columns: 1fr; row-gap: 26px; }
    .card--related { display: flex; gap: 15px; }
    .card--related .card__thumb { flex: 0 0 100px; width: 100px; height: 70px; aspect-ratio: auto; margin: 0; }
    .card--related .card__title { font-size: 14px; line-height: 20px; }
    .related__head a, .related__head span { font-size: 15px; }
    .card--list { gap: 15px; padding-bottom: 26px; }
    .card--list .card__thumb { flex-basis: 100px; width: 100px; height: 70px; }
    .card--list .card__title { font: 500 15px/20px var(--font-heading); margin-bottom: 6px; }
    .card--list .card__meta .card__badge { display: none; }
    .card--list .card__excerpt { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .author-head { max-width: none; }
    .author-box { height: auto; flex-direction: column; }
    .page-nav .pages { display: none; }
    .e404__title { font-size: 30px; line-height: 38px; }
    .e404__sub { font-size: 17px; }
}

/* ============ Ngăn kéo menu (≤767) ============ */
@media (max-width: 767px) {
    .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90; }
    .drawer { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 320px); background: #222; color: #fff; transform: translateX(-100%); transition: transform .28s ease; z-index: 100; overflow-y: auto; padding: 56px 0 24px; }
    .drawer__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; color: #fff; font-size: 22px; }
    .drawer__list a { display: block; padding: 13px 24px; font: 400 15px/20px var(--font-body); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .drawer__list a:hover { background: var(--color-primary); }
    body.menu-open { overflow: hidden; }
    body.menu-open .drawer { transform: translateX(0); }
    body.menu-open .drawer-backdrop { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
