/* custom.css — overrides only — each rule cites the vendor line (decisions.md §4). */

/* news.css:36–37, :42–61 — menu hover/current colours gated by body:not(.dark) #header:not(.dark); re-scoped to the dark
   header. R6 (decisions.md §17, T22): category colours only on category badges → every menu item (home + the categories)
   hovers / marks current in the theme colour (bg 5.73 · bgOffset 5.08). Menu links beat style.css:17795 / :17798
   (.menu-item:hover / .current > .menu-link) by specificity, no !important */
#header.dark .menu-container > .menu-item[class*="menu-color-"]:hover > .menu-link,
#header.dark .menu-container > .menu-item[class*="menu-color-"].current > .menu-link { color: var(--cnvs-themecolor); }
/* news.css:96–111 — .menu-color-<c> > a::before category colour bar (!important) → theme colour (R6, T22) */
.menu-item[class*="menu-color-"] > a::before { background: var(--cnvs-themecolor) !important; }

/* news.css:98 .bg-tech, :103 .bg-fashion, :108 .bg-sports, :113 .bg-lifestyle (T33d, nhan-dinh; 75% not 80%: white 5.12 · text-light 4.86; 80% gave text-light 4.36) — white / text-light badge text 3.98 / 3.82 / 4.29:1 → bg 80%
   toward black (--cnvs-white / --cnvs-black, style.css:13289–13290). Fixed fill, both themes (T18: was .dark-scoped toward
   --cnvs-contrast-0, black under .dark). bg-travel unchanged. bg-sports added T05b.
   Home tabs (.bg-color-<c>.nav-link :hover/.active): the primary fill since T22 (R6), tab rule below */
.bg-tech { background: color-mix(in srgb, var(--cnvs-color-tech) 80%, var(--cnvs-black)) !important; }
.bg-fashion { background: color-mix(in srgb, var(--cnvs-color-fashion) 80%, var(--cnvs-black)) !important; }
.bg-sports { background: color-mix(in srgb, var(--cnvs-color-sports) 80%, var(--cnvs-black)) !important; }
.bg-lifestyle { background: color-mix(in srgb, var(--cnvs-color-lifestyle) 75%, var(--cnvs-black)) !important; }

/* news.css:259 — .navbar-nav.nav-sm .nav-link rest colour dark grey literal, invisible on dark (home tabs); light: the same
   literal → --cnvs-contrast-800 (#343A40, T18). Hover/active white (news.css:84–85) kept */
.navbar-nav.nav-sm .nav-link:not(:hover):not(.active) { color: var(--cnvs-contrast-800); }

/* ---- Colour census (T17): vendor colour literals that render → same colour through a custom property ---- */

/* news.css:84–85 — tab hover/active text #FFF on the category fill; news.css:96–111 .bg-color-<c> fill (!important).
   R6 (T22): category colours only on category badges → the home tabs hover / active = the primary fill + ctaLabel
   (5.73:1), both themes */
.navbar-nav.nav-sm .nav-link:hover,
.navbar-nav.nav-sm .nav-link.active { color: var(--xb-cta-label); background: var(--xb-primary) !important; }
/* news.css:192–193 — category badge text #FFF !important on the category fill */
.entry-categories a { color: var(--cnvs-white) !important; }
/* news.css:211–212 — entry meta links #AAA at rest */
.entry-meta li a:not(:hover) { color: var(--xb-meta-text); }
/* style.css:25812–25814 — social icon hover glyph #FFF on the network fill */
.social-icon i:last-child { color: var(--cnvs-white); }
/* style.css:31731 — 404 number #ddd */
.error404 { color: var(--xb-error404); }
/* style.css:31729 — 404 number 18vw (252px at 1400): capped so the cluster fits the first screen (1400×800, 375×667; T22) */
.error404 { font-size: min(18vw, 10rem); }
/* style.css:36214–36215 — footer widget links rgba(255, 255, 255, .75); --cnvs-contrast-rgb = 255, 255, 255 under .dark (:36194) */
.dark#footer .footer-widgets-wrap a, .dark #footer .footer-widgets-wrap a { color: rgba(var(--cnvs-contrast-rgb), .75); }

/* news.css:276, :289 — .line-xs light grey literal, harsh on dark → --xb-line (bgOffset; light: the TPL value, T18) */
.line-xs { border-bottom-color: var(--xb-line); }
.line-xs::after { border-top-color: var(--xb-line); }

/* news.css:441 — .owl-dot demo orange literal */
.owl-carousel .owl-dots .owl-dot { background-color: var(--cnvs-themecolor); }

/* style.css:36221–36224 — #copyrights has no background var (rgba literal over the footer) → bgDeep */
.dark #copyrights, #copyrights.dark { background-color: var(--xb-bg-deep); }

/* style.css:23797–23798 — primary-filled .button: white text on themecolor = 3.24:1 → ctaLabel.
   Variants with their own colours (:23822 dark, :23825 light, :23892 border) and :hover (:23829) excluded. */
.button:not(.button-dark):not(.button-light):not(.button-border):not(:hover) { color: var(--xb-cta-label); }
/* style.css:23829–23831 — .button:hover gray-900 fill + white text (T15 ruling 4): primary-filled buttons (post CTA, search
   submit) and the border button (:23901–23905 themecolor fill + white, 3.24:1) hover to --xb-primary-hover + ctaLabel. */
.button:not(.button-dark):not(.button-light):hover { background-color: var(--xb-primary-hover); color: var(--xb-cta-label); }

/* style.css:13525 — --cnvs-link-hover-color = var(--cnvs---cnvs-heading-color) (invalid) → a:hover (:13811) falls back
   to the inherited near-white text. Primary links (rest --cnvs-link-color, :13524) → --xb-primary-hover (tokens.css) */
.dark { --cnvs-link-hover-color: var(--xb-primary-hover); }

/* news.css:211 / style.css:21807 — entry meta rest = light grey literal via a:not(:hover); hover had no own rule → themecolor */
.dark .entry-meta li a:hover { color: var(--cnvs-themecolor); }

/* style.css:21719–21723 — entry title hover themecolor loses to the !important .text-light (:8782) / .text-white (:8797)
   utilities of TPL markup (carousel overlay, footer W1) */
.dark .entry-title a.text-light:hover,
.dark .entry-title a.text-white:hover { color: var(--cnvs-themecolor) !important; }

/* style.css:36217 — footer widget links hover → white; light rest (:36214) → themecolor */
.dark #footer .footer-widgets-wrap a:hover { color: var(--cnvs-themecolor); }

/* style.css:32692 — copyrights menu hover = opacity only; light rest (:32639 contrast-500) → themecolor */
.copyright-links a:hover { color: var(--cnvs-themecolor); }

/* style.css:13805 — text-decoration: none !important on every link → body links colour-only (WCAG 1.4.1).
   Same selector under .entry-content outranks it; the vendor shorthand is !important, so each longhand is too.
   Option B (decisions.md §4): rest 1px underline at 70% currentColor; hover/focus 2px solid (colour = --xb-primary-hover).
   .button excluded (cta block, style.css:23797) */
.entry-content a:not(.btn-link):not(.text-decoration-underline):not(.more-link):not(.button) {
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: color-mix(in srgb, currentColor 70%, transparent) !important;
  text-underline-offset: .25em;
}
.entry-content a:not(.btn-link):not(.text-decoration-underline):not(.more-link):not(.button):hover,
.entry-content a:not(.btn-link):not(.text-decoration-underline):not(.more-link):not(.button):focus-visible {
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 2px !important;
}

/* Lighthouse color-contrast (decisions.md §4, T04b). style.css:36222 — .dark #copyrights text rgba(255,255,255,.4)
   on bgDeep 3.77:1 → contrast-500 9.54:1 */
.dark #copyrights, #copyrights.dark { color: var(--cnvs-contrast-500); }

/* ==== T05 spacing standard (decisions.md §13) — Canvas variables first, then cited rules. sm = < 992px (T05b) ==== */

/* style.css:13302–13304 — --cnvs-content-padding 5rem (content-wrap :20946, footer widgets :32661, copyrights :32665)
   and --cnvs-section-margin 4rem (.section :13651–13652, .line :13961) → 64 · 48 (sm) and 64 · 36 (sm) */
:root { --cnvs-content-padding: 4rem; }
@media (max-width: 991.98px) {
  :root { --cnvs-content-padding: 3rem; --cnvs-section-margin: 2.25rem; }
}

/* style.css:748–758 — .container gutter 1.5rem → 12px side padding; §13 ≥ 16 on mobile */
@media (max-width: 991.98px) {
  .container { --bs-gutter-x: 2rem; }
}

/* style.css:32661 — footer widgets bottom padding = content padding; §13 48 · 32 (sm) */
#footer .footer-widgets-wrap { padding-bottom: 3rem; }
@media (max-width: 991.98px) {
  #footer .footer-widgets-wrap { padding-bottom: 2rem; }
}

/* style.css:32731 — --cnvs-widget-margin 3rem; titled widgets add the heading's half-leading → 44 · 36 (sm) */
.widget { --cnvs-widget-margin: 2.75rem; }
@media (max-width: 991.98px) {
  .widget { --cnvs-widget-margin: 2.25rem; }
  /* news.css:275 — .line-xs bottom margin 20px → section heading → content 16 on mobile (12 + half-leading, T35v) */
  .line-xs { margin-bottom: .75rem; }
}

/* style.css:21634 — --cnvs-post-content-margin 2rem (cards: /1.5, :21823) → card meta → excerpt 12 */
#posts, .posts, .entry, [class*=entry-] { --cnvs-post-content-margin: .75rem; }

/* style.css:21697 — .posts-md .entry-image + .entry-title .875rem → card image → title 12 on mobile */
@media (max-width: 991.98px) {
  .posts-md .entry-image + .entry-title { margin-top: .5rem; }
}

/* style.css:15289–15295 — card lists (.col-mb-30 / .col-mb-50 rows, col padding-bottom :15283) → row gap 40 · 32 (sm),
   text half-leading included. Only rows that hold cards. */
#content .row.col-mb-30:has(.entry), #content .row.col-mb-50:has(.entry) { --cnvs-col-mb: 2.25rem; }
@media (max-width: 991.98px) {
  #content .row.col-mb-30:has(.entry), #content .row.col-mb-50:has(.entry) { --cnvs-col-mb: 1.75rem; }
}
/* style.css:15279–15281 — the grid row's `mb-0` (src/category.njk, for the pager below) keeps the last cards' col
   padding; a card grid that ends its column (search results, T13) gets the negative row margin back */
#content .col-lg-8 > .row.col-mb-50.mb-0:last-child:has(> .col-md-6) { margin-bottom: calc(var(--cnvs-col-mb) * -1) !important; }

/* style.css:13845 (h1–h3 margin 0 0 30px), :13937 (p, ul, … margin-bottom 30px) — post body headings:
   the block before a heading drops its bottom margin, the heading carries the space → h2 48/16 · h3 32/12,
   sm h2 40/16 · h3 24/12 (half-leading included; h2 top +.25rem for the √φ heading line height, T35g) */
.entry-content > :has(+ h2), .entry-content > :has(+ h3) { margin-bottom: 0; }
.entry-content > h2 { margin: 2.75rem 0 .75rem; }
.entry-content > h3 { margin: 1.75rem 0 .25rem; }
@media (max-width: 991.98px) {
  .entry-content > h2 { margin-top: 2.5rem; }
  .entry-content > h3 { margin-top: 1.25rem; }
}

/* Post body: a block utility (cta partial .mb-5, style.css:8100-range utilities) must not stack on the heading's margin;
   the last block leaves the post-item margin alone */
.entry-content > :has(+ h2), .entry-content > :has(+ h3), .entry-content > :last-child { margin-bottom: 0 !important; }
/* style.css:13926–13937 — paragraph gap 30px, zeroed on the body's last child (rule above) → the block after the body
   takes it: contact line (page), tag list (post) (T12), brand box (post, T16), source line (basic/1 post, T35c) */
.entry-content + address, .entry-content + div:has(> .tagcloud), .entry-content + .promo, .entry-content + .line-sm { margin-top: 2rem; }
/* style.css:13956–13967 (.line / .line-sm margin 64 · 32, border rgba(contrast .1)) — end-line divider (T35y): paragraph gap above (the
   body's last child is zeroed), 16 below; colour = the decorative divider token (as .line-xs, news.css:276) */
.entry-content + .line-sm { margin-bottom: 1rem; border-top-color: var(--xb-line); }
.entry-content + .line-sm + p.small { margin-top: 0; }
/* style.css:4400 (.card, no margin) + :13926–13937 (paragraph gap 30px) — the /gioi-thieu/ operator card (layouts/page.njk)
   before a body block (keyfacts .promo, T35l) takes the paragraph gap; before a heading the rule above zeroes it */
.entry-content > .card { margin-bottom: 2rem; }

/* style.css:1935 — .table margin-bottom 1rem inside the body table wrapper (div.table-responsive): the wrapper drops its
   margin before a heading (rule above), the table's own 1rem stayed → h2/h3 top +16 (T11, /chinh-sach-bao-mat/) */
.entry-content > .table-responsive:has(+ h2, + h3) > .table { margin-bottom: 0; }

/* style.css:13744–13747 (Canvas reset: ol, ul, li padding 0) cancels the reboot indent (style.css:300–303) → body list
   markers hang left of the text column, nested lists flush. Text 24px in per level; style.css:13926–13937
   (ul, ol margin-bottom 30px) also hits a nested list → 0 inside its item; style.css:20952–20954 gives the content
   leading to p only → lists too (visible p → list → block gaps = p → p). Body lists only (block lists keep theirs) */
.entry-content > :is(ul, ol) { line-height: var(--cnvs-line-height-content); }
.entry-content > :is(ul, ol), .entry-content > :is(ul, ol) :is(ul, ol) { padding-left: 1.5rem; }
.entry-content > :is(ul, ol) :is(ul, ol) { margin-bottom: 0; }

/* style.css:710–714 — blockquote attribution #6c757d (Bootstrap literal) on bg 3.96:1 → contrast-500 (light: lever value, T18) */
.blockquote-footer { color: var(--cnvs-contrast-500); }

/* style.css:21618 / :21648 — --cnvs-post-item-margin 50px (post .entry bottom) → post body → post nav 64 · 40 (sm) */
#posts, .posts, .entry, [class*=entry-] { --cnvs-post-item-margin: 4rem; }
@media (max-width: 991.98px) {
  #posts, .posts, .entry, [class*=entry-] { --cnvs-post-item-margin: 2rem; }
}

/* style.css:4400 (.card, no margin) — post tail without the dividers (T35v R4: .line above / .line-sm below the author card
   dropped): post nav → author card → related heading = major section gap (§13 64 · 40 sm) */
.post-navigation + .card, .post-navigation + .card + .h4 { margin-top: var(--xb-section-gap); }

/* Home major sections (§13 64 · 40 sm). The TPL utilities (img.aligncenter mb-5, col mt-4, div mt-5 — demo-news
   index.html) give 48 + 24 / 48; one own gap replaces them */
:root { --xb-section-gap: 4rem; }
@media (max-width: 991.98px) {
  :root { --xb-section-gap: 2.5rem; }
}
/* style.css:13652 — home carousel .section bottom padding */
.section.bg-transparent:has(> .container > #oc-news) { padding-bottom: var(--xb-section-gap); }
/* T23 full-width home sections (latest, ad slots, category sections, topics = .content-wrap children): one gap between
   blocks after the carousel band (its padding is the first gap). T35b: keyed on the home carousel h1, not the latest block
   (hidden below 6 posts) */
.content-wrap:has(> .section > .container > h1 + #oc-news) > :not(.section) ~ * { margin-top: var(--xb-section-gap); }
/* style.css:8076 — .mb-0 !important (TPL demo-news.html:863 `row col-mb-30 mb-0`) cancels the col-mb row margin
   (style.css:15280–15281) → the last column's padding-bottom (:15286) added 30–36px under each category section */
.content-wrap:has(> .section > .container > h1 + #oc-news) > .container > .row.col-mb-30.mb-0 { margin-bottom: calc(var(--cnvs-col-mb) * -1) !important; }
@media (min-width: 992px) {
  /* ≥ 992 a category section ends on the lead card excerpt: minus its line descent (.375rem) */
  .content-wrap:has(> .section > .container > h1 + #oc-news) > .container:has(> .row.col-mb-30) + * { margin-top: var(--xb-section-gap); }
}

/* footer.njk utilities mb-5 (TPL demo-news index.html footer widgets) → footer widgets stacked 32 below 992 (heading half-leading √φ, T35g) */
@media (max-width: 991.98px) {
  #footer .footer-widgets-wrap > [class*=col-]:not(:last-child) { margin-bottom: 1.75rem !important; }
}

/* style.css:20946 — static page whose column ends in body text (page.njk, T11; one column, no sidebar since T21): the
   last line's half-leading (.25rem) adds to the content padding → last block → footer 64 · 48 (sm) */
#content > .content-wrap:has(.col-lg-10 > .entry:last-child > .entry-content:last-child) { padding-bottom: var(--cnvs-content-padding); }

/* style.css:20946 — archive page whose card grid ends the main column (no pager; topic / category with ≤ 10 posts, T22):
   the last excerpt line's half-leading (.25rem) adds to the content padding → last block → footer 64 (≥ 992; < 992 measured 48 without it, T35f) */
@media (min-width: 992px) {
  #content > .content-wrap:has(.col-lg-8 > .row.col-mb-50.mb-0:last-child) { padding-bottom: var(--cnvs-content-padding); }
}

/* style.css:20721 / :20743 — --cnvs-page-title-padding 4rem · 3rem (< 768): the category / topic title band (src/category.njk,
   src/topic.njk; TPL demo-news-category.html:651 inline 120px) → §13 step 64 at every width (T35v) */
.page-title.dark { --cnvs-page-title-padding: 4rem; }

/* style.css:20946 — 404 content top padding: header → first block 40 · 24 (sm); last block → footer 48 on phones */
#content > .content-wrap:has(.error404) { padding-top: 2.5rem; }
/* T21 one cluster, the category links last: li padding-bottom (style.css:32770 widget_links li, 4px) + half-leading → 64 (lg) */
@media (min-width: 992px) {
  #content > .content-wrap:has(.error404) { padding-bottom: calc(var(--cnvs-content-padding) - .4375rem); }
}
@media (max-width: 991.98px) {
  #content > .content-wrap:has(.error404) { padding: 1.5rem 0 2.5rem; }
}

/* style.css:21765–21784 — .entry-meta ul (flex-wrap, negative left margin for the separators) inside overflow:hidden:
   an item that wraps inside itself starts its second line under the clip (last letters only), exposed by the 16px
   mobile gutter. Items stay on one line; the flex row wraps between items */
.entry-meta li { white-space: nowrap; }

/* ---- Touch targets (decisions.md §4): ≥ 24×24; mobile nav items, buttons, pager links ≥ 44×44 ---- */

/* style.css:29435–29443 / :29526–29531 — Owl dot 8px → 24px button, 8px dot kept (content-box background) */
.owl-carousel .owl-dots .owl-dot {
  width: 1.5rem; height: 1.5rem; padding: .5rem; margin: 1.5rem 0 0;
  background-clip: content-box;
}

/* style.css:4827–4834 — Bootstrap rounds only the first/last .page-link; Canvas circle radius 50% (style.css:33035) → every
   item (decisions.md §6); T39: the value itself (radius pass, §46) */
.pagination-circle .page-link { border-radius: 50%; }

/* style.css:4777 — .pagination display:flex, no wrap: the 10-page pager overflows at 360 → wraps, every number stays on
   screen, row gap 8px, items 44×44 kept (decisions.md §50) */
.pagination { flex-wrap: wrap; row-gap: .5rem; }

/* news.css:191–200 — category badge 19px high → ≥ 24px */
.entry-categories a { display: inline-flex; align-items: center; min-height: 1.5rem; }

/* style.css:32686–32691, :32702–32706 — copyrights links inline-block 23px high: three links (T36) wrap at 768 and the two
   lines sit 23px apart → ≥ 24px */
.copyrights-menu a { min-height: 1.5rem; }

/* style.css:18899–18905 — header top-search trigger 20px → 24px box, icon size kept (T13; 44px on mobile below) */
.header-misc-icon > a { width: 1.5rem; height: 1.5rem; }

/* Content edges ≥ 992 (T35v R2): style.css:17852 — .is-expanded-menu .menu-link padding-x 15px put the first menu label 15px
   inside the content edge → the first link shifts left by its own padding (same var, so it follows the vendor padding
   transition); style.css:18896 — .header-misc-icon margin 0 8px + the 24px trigger box around the 18px glyph
   (style.css:17342) left the search glyph 11px short of the right edge → the last icon's margin takes both. Hit areas unchanged */
@media (min-width: 992px) {
  .menu-container > .menu-item:first-child > .menu-link { margin-left: calc(var(--cnvs-primary-menu-padding-x) * -1); }
  #top-search { margin-right: calc((var(--cnvs-header-misc-icons-size) - 1.5rem) / 2); }
}

@media (max-width: 767.98px) {
  /* style.css:17670 / :17727 — menu trigger: 12px padding on the div, 16px button → padding moves to the button (44×44) */
  .primary-menu-trigger { padding: 0; }
  .primary-menu-trigger .cnvs-hamburger { box-sizing: content-box; padding: .875rem; }
  /* style.css:18899–18905 — header top-search trigger → 44px on mobile (T13) */
  .header-misc-icon > a { width: 2.75rem; height: 2.75rem; }
  /* style.css:2995–2996 (.btn padding .375rem .75rem) — header colour mode switch 42×39 → 44×44 (T18) */
  .header-misc-icon > .btn { min-width: 2.75rem; min-height: 2.75rem; }
  /* news.css:381–391, :396–398 — Owl fixed-nav arrows 26px → 44px on mobile */
  .owl-carousel.fixed-nav .owl-nav [class*=owl-],
  .owl-carousel.fixed-nav:hover .owl-nav [class*=owl-] { width: 2.75rem; height: 2.75rem; line-height: 2.625rem; right: 3rem; }
  .owl-carousel.fixed-nav .owl-nav .owl-next,
  .owl-carousel.fixed-nav:hover .owl-nav .owl-next { right: 0; }
  /* news.css:408–409 — top-nav arrows sit 44px above the carousel → 52px for the 44px button */
  .owl-carousel.fixed-nav.top-nav .owl-nav [class*=owl-],
  .owl-carousel.fixed-nav.top-nav:hover .owl-nav [class*=owl-] { top: -3.25rem; }
  /* style.css:33019 — pagination circle 35px → 44px */
  .pagination { --cnvs-pagination-circle-size: 2.75rem; }
  /* style.css:23841 — .button-small (/tim-kiem/ sort + category toggles, T21) 40px → 44px */
  .button.button-small[aria-pressed] { min-height: 2.75rem; }
  /* news.css:258–263 — home tabs .nav-sm .nav-link 25px high (2px padding + 21px line) → 44px (T23; the toggler is gone) */
  .navbar-nav.nav-sm .nav-link { padding-block: calc((2.75rem - 21px) / 2); }
}

/* ---- Focus indicators (T15 ruling 1, 5): solid 2px --xb-focus ring, no outline ---- */

/* style.css:13786–13789 — :active, :focus { outline: none !important } removes every focus ring → box-shadow ring */
:focus-visible { box-shadow: 0 0 0 2px var(--xb-focus); }
/* style.css:3871–3874 — .nav-link:focus-visible Bootstrap-blue .25 shadow (home tabs) */
.nav-link:focus-visible { box-shadow: 0 0 0 2px var(--xb-focus); }
/* style.css:3044–3049 — .btn:focus-visible box-shadow var(--bs-btn-focus-box-shadow), plain .btn has no focus rgb → none (header
   colour mode switch, T18) */
.btn:focus-visible { box-shadow: 0 0 0 2px var(--xb-focus); }
/* style.css:2204–2210 — .form-control:focus Bootstrap-blue border + .25 shadow (/tim-kiem/ input) */
.form-control:focus { border-color: var(--xb-focus); box-shadow: 0 0 0 2px var(--xb-focus); }
/* style.css:18977–18981 — .top-search-form input box-shadow none / outline 0 !important, border 0 → 2px bottom border */
.top-search-form input:focus-visible { border-bottom: 2px solid var(--xb-focus); }
/* T40 (decisions §47): filled CTA .button (style.css:23775–23801 theme fill; .button-border.color fills on focus, rule below) —
   the box-shadow ring touched the fill in the same colour → outline 2px off the fill, corners follow the button radius.
   !important only on outline: against style.css:13786–13789 (:active, :focus { outline: none !important }) */
.button:not(.button-border):focus-visible,
.button.button-border.color:focus-visible { outline: 2px solid var(--xb-focus) !important; outline-offset: 2px; box-shadow: none; }
/* T40 (decisions §46, §47), T36: search group (search-form.njk, joined .input-group style.css:2723–2772) — one ring around the
   group with its outer corners (sm) on keyboard focus only (:has(:focus-visible); a mouse click on the submit shows none); the
   input's own ring off (.form-control:focus rule above). The submit adds its own inset ring so input vs submit focus differ:
   the fill is the theme colour (= --xb-focus in dark), so an inset page-colour band (--cnvs-contrast-bg, style.css:36169 /
   tokens) carries the contrast (dark 5.73 · light 3.24 vs the fill) with the --xb-focus ring inside it.
   !important only on outline: against style.css:13786–13789 and the filled-button rule above */
.input-group:has(:focus-visible) { border-radius: var(--xb-radius-sm); outline: 2px solid var(--xb-focus) !important; outline-offset: 2px; }
.input-group .form-control:focus { border-color: var(--bs-border-color); box-shadow: none; }
.input-group .button:focus-visible { outline: 2px solid var(--xb-focus) !important; outline-offset: -4px; box-shadow: inset 0 0 0 2px var(--cnvs-contrast-bg); }

/* ---- Brand tags + secondary brand CTA (decisions.md §16, T16; §17 R1, T20): outline in the theme colour at rest ---- */

/* style.css:14201 .color / :14205 .border-color (!important) at rest; hover / focus filled = the filled CTA's hover (rule
   above, style.css:23829): --xb-primary-hover + ctaLabel (dark 7.86:1). !important against style.css:33004–33007
   (.tagcloud a:hover border + text !important), :23901–23905 (.button-border:hover border transparent !important) and
   the .color / .border-color utilities */
/* /tim-kiem/ sort + category toggles (T21): same outline button, pressed = the primary fill + ctaLabel (5.73:1); hover rule
   below keeps priority (same specificity, later). !important against the same vendor rules */
.button.button-border.color[aria-pressed="true"] {
  background-color: var(--xb-primary) !important;
  border-color: var(--xb-primary) !important;
  color: var(--xb-cta-label) !important;
}
.tagcloud a.border-color:is(:hover, :focus-visible),
.button.button-border.color:is(:hover, :focus-visible) {
  background-color: var(--xb-primary-hover) !important;
  border-color: var(--xb-primary-hover) !important;
  color: var(--xb-cta-label) !important;
}
/* style.css:8096 — the last brand box disclosure line .mb-5 (48) before the tag rows → major section gap (§13 64 · 40 sm) */
.entry > .promo + p.small:has(+ div > .tagcloud) { margin-bottom: 0 !important; }
.entry > .promo + p.small + div:has(> .tagcloud) { margin-top: var(--xb-section-gap); } /* line descent + heading half-leading */
/* style.css:8096 — brand tag page (topic.njk): disclosure line .mb-5 (48) above the grid → major section gap (§13 64 · 40 sm) */
.col-lg-8 > .promo + p.small:has(+ .row) { margin-bottom: var(--xb-section-gap) !important; } /* line descent */
/* style.css:9799 — rows touch (.tagcloud margin-bottom -2px :32985, heading .mb-sm-4): brand row → topic row = sidebar widget
   gap (§13 48 · 40 sm), heading half-leading included as .widget above */
.entry > div:has(> .tagcloud) + div:has(> .tagcloud) { margin-top: 2.75rem; }
@media (max-width: 991.98px) {
  .entry > div:has(> .tagcloud) + div:has(> .tagcloud) { margin-top: 2.25rem; }
}

/* ---- Light theme (T18, decisions.md §16 Theme rulings): body without .dark; header / footer stay .dark ---- */

/* style.css:17298 — #header has no background (only #header-wrap, :17350–17355): the top row (date) showed the
   dark body; on a light body → the header's own background */
body:not(.dark) #header.dark { background-color: var(--cnvs-header-bg); }
/* style.css:23779 (.button --cnvs-btn-color = theme colour): primary fills keep theme.primary + ctaLabel in both
   themes; the light theme colour is text primary (tokens.css) — outlines in the theme colour (brand tags, secondary brand CTA,
   T20) keep it. news.css:297 /
   :308 .line-home heading rule: decorative, the TPL value needs no contrast → theme.primary too */
body:not(.dark) .button:not(.button-border.color), body:not(.dark) .line-home { --cnvs-themecolor: var(--xb-primary); --cnvs-themecolor-rgb: var(--xb-primary-rgb); }

/* ---- Compact mobile header (T20, decisions.md §17 R7) ---- */

/* style.css:17596 — #header-wrap #logo img height = --cnvs-header-height; the < 992 logo in #header-wrap carries no #logo
   (the top-row logo keeps the id; master ruling T20) → same rule, the small header height (style.css:13313) */
#header-wrap .header-row > a[href="/"] > img { height: var(--cnvs-header-height-sm); }
/* style.css:19062–19066 — open top search fades #logo; the < 992 logo has no id → same fade */
.top-search-open .top-search-parent > a[href="/"] { opacity: 0; }

/* ---- Small-post lists (T20, decisions.md §17 R3; master ruling) ---- */

/* style.css:816–818 (.col flex 1 0 0) + flex min-width auto: the text column's min-content = its widest nowrap meta item
   (custom.css:247, T05) → at 375 the column wrapped under the thumbnail. Thumbnail left, text right at every width */
.posts-sm .grid-inner > .col { min-width: 0; }

/* ---- Post details (T20) ---- */

/* style.css:9513 (.d-sm-flex, author card body ≥ 576) + flex min-width auto: the byline text column would not shrink below
   its longest word / nowrap link → min-width 0, text wraps beside the image */
.card-body > .author-image + div { min-width: 0; }

/* ---- Logo tile (T21, decisions.md §17 T20 answers) ---- */

/* style.css:4417 / :4427 — .card background = --bs-body-bg (white in light): the light-on-dark placeholder logo vanished on
   the light card → fixed dark tile behind the logo in both themes (author card, /gioi-thieu/ operator block). Unconditional
   (T22): the card image is the site logo by definition (decisions.md §15), selected by the card layout, not its file */
.card-body.d-sm-flex > .flex-shrink-0 > img { background-color: var(--xb-bg); }

/* ---- Accents (T22, decisions.md §17 R6): brand primary + dark; category colours only on category badges ---- */

/* news.css:296–318 — .line-<c> / .line-<c>::after heading rules in a category colour (!important): decorative heading lines
   (sidebar categories, home sections) → theme colour, as .line-home (news.css:297 / :308; light: theme.primary, as above) */
:is(.line-travel, .line-tech, .line-fashion, .line-sports, .line-lifestyle, .line-food, .line-market) { border-bottom-color: var(--cnvs-themecolor) !important; }
:is(.line-travel, .line-tech, .line-fashion, .line-sports, .line-lifestyle, .line-food, .line-market)::after { border-top-color: var(--cnvs-themecolor) !important; }
body:not(.dark) :is(.line-travel, .line-tech, .line-fashion, .line-sports, .line-lifestyle, .line-food, .line-market) { --cnvs-themecolor: var(--xb-primary); }

/* style.css:25865–26200 — social network fills .bg-<net> (!important; share bar; profile icons .h-bg-<net> removed T35f):
   rest = the dark surface (white glyph), hover = the primary fill + ctaLabel glyph (5.73:1; replaces the white hover glyph
   of style.css:25812 / the T17 rule above) */
.social-icon:is(.bg-facebook, .bg-x-twitter, .bg-whatsapp, .bg-email3) { background-color: var(--xb-bg-offset) !important; }
.social-icon:is(.bg-facebook, .bg-x-twitter, .bg-whatsapp, .bg-email3):hover { background-color: var(--xb-primary) !important; }
.social-icon:is(.bg-facebook, .bg-x-twitter, .bg-whatsapp, .bg-email3):hover i:last-child { color: var(--xb-cta-label); }

/* style.css:4930–4942 — .alert-success / .alert-info Bootstrap green / cyan (blocks/callout.njk tones tip / info): brand
   surface (dark: bgOffset; light: primary 10% toward white) + brand border, body text. .alert-warning keeps its colours */
.alert-success, .alert-info {
  --bs-alert-color: var(--bs-body-color);
  --bs-alert-bg: var(--xb-callout-bg);
  --bs-alert-border-color: var(--cnvs-themecolor);
  --bs-alert-link-color: var(--cnvs-themecolor);
}

/* style.css:341–345 — mark: Bootstrap highlight (dark brown / light yellow, own text colour) → lever-derived brand tint,
   text inherited (/tim-kiem/ highlights, T21) */
mark, .mark { color: inherit; background-color: var(--xb-mark-bg); }

/* style.css:7062–7068 — .fixed-bottom has no surface → review mobile CTA bar (T24) on the sticky header's dark
   (--cnvs-header-sticky-bg = bgOffset under .dark, tokens.css), both themes like the header */
.fixed-bottom.dark { background-color: var(--cnvs-header-sticky-bg); }
/* style.css:2995–2996 (.btn padding), :23775 (.button) — bar CTA + close button → 44×44 touch targets (§4, T24) */
.fixed-bottom.dark :is(.button, .btn) { min-height: 2.75rem; min-width: 2.75rem; }

/* ---- Contrast (T35v R3, decisions.md §40) ---- */

/* style.css:31380–31386 — .text-overlay-mask black 0 → .85 (opacity-100 in the carousel markup): meta / title down to 2.50:1 on
   the real pictures → lever stops (site.js theme.overlayFrom / overlayTo) */
.text-overlay-mask { background: linear-gradient(to bottom, var(--xb-overlay-from) 0%, var(--xb-overlay-to) 100%); }
/* Control boundaries ≥ 3:1, one lever colour (site.js theme.controlBorder). style.css:2189 / :2762 — .form-control /
   .input-group-text border = --bs-border-color (/tim-kiem/ input group: 2.27 dark · 1.30 light) */
.input-group { --bs-border-color: var(--xb-control-border); }
/* style.css:29145 — --cnvs-owl-nav-border rgba(contrast, .2) (carousel arrows 1.52–1.85) */
.owl-carousel { --cnvs-owl-nav-border: 1px solid var(--xb-control-border); }
/* style.css:32993 — .tagcloud a border contrast-300 (2.27 · 1.30); brand tags keep the theme colour (.border-color) */
.tagcloud a:not(.border-color) { border-color: var(--xb-control-border); }
/* style.css:4763, :4776 — pager border + disabled border = --bs-border-color (2.27 · 1.30); hover / active = the fill (:33028) */
.pagination { --bs-pagination-border-color: var(--xb-control-border); --bs-pagination-disabled-border-color: var(--xb-control-border); }

/* ---- Fewer lines (T35v R4, decisions.md §40): rules whose neighbour is already set apart by a background change ---- */

/* style.css:32638 / :32642 — footer top border 5px over a footer already on its own background (--cnvs-footer-bg = bgDeep) */
#footer { --cnvs-footer-top-border: 0; }
/* style.css:20738 — page-title bottom border under the dark category / topic band (next block on the page background) */
.page-title.dark { border-bottom: 0; }
/* style.css:7510–7512 — .border-top (!important) on #header-wrap (header.njk:40): < 992 the top row is hidden and the rule
   sat at the page top → dropped; ≥ 992 it separates the top row from the menu, kept */
@media (max-width: 991.98px) {
  #header-wrap.border-top { border-top: 0 !important; }
}

/* ---- Layout reservation (T26, master ruling 2026-10-10: CLS < 0.1) ---- */

/* style.css:29181–29183 / :29219–29221 — .owl-carousel is display none until Owl init (js/news.js) → the home featured
   carousel took its box after first paint and pushed the page down (CLS 0.18 desktop / 0.43 mobile). Reserve the initialised
   box, hidden until loaded: slide 400px (inline height, TPL demo-news.html) + dots row < 992 (24px dot button + 24px top
   margin, custom.css "Touch targets"; no dots ≥ 992, js/news.js responsive) */
#oc-news:not(.owl-loaded) { display: block; visibility: hidden; overflow: hidden; height: calc(400px + 1.5rem + 1.5rem); }
@media (min-width: 992px) { #oc-news:not(.owl-loaded) { height: 400px; } }

/* style.css:1460 (.col-lg-10, content height) — /tim-kiem/ results are rendered by /js/search.js after first paint and pushed the
   footer down (CLS 0.48 desktop). The results column (the one holding the .posts-sm template) reserves the form (input-group-lg,
   3rem) + one viewport from the first paint and keeps it (master ruling: always, also without q). Capped at 100rem: a
   viewport resized to the page height (full-page tools, audit-ui) would otherwise grow the reservation with it */
#content .row > div:has(.posts-sm > template) { min-height: min(calc(3rem + 100vh), 100rem); }

/* ---- Type scale √φ (decisions.md §26, T35g): every text size = a step var(--xb-fs-*) (tokens.css, site.js `type`) ---- */

/* style.css:13898–13911 — h1–h4 literals below 768 (1.75 · 1.5 · 1.25 · 1rem) override the size vars → back to the vars
   (tokens.css: h1 fs-3 · h2 fs-2 below 992, h3 fs-2 · h4 fs-1 at every width) */
@media (max-width: 767.98px) {
  h1, .h1 { font-size: var(--cnvs-font-size-h1); }
  h2, .h2 { font-size: var(--cnvs-font-size-h2); }
  h3, .h3 { font-size: var(--cnvs-font-size-h3); }
  h4, .h4 { font-size: var(--cnvs-font-size-h4); }
}

/* Literal sizes → steps (§26 mapping: 10–13 → n1 · 13.x–15 → nh · 18–22 → 1 · 24–28.7 → 2 · 30–33 → 3 · 36–42 → 4).
   Exempt (§26): 404 number (.error404, rule above "404 number 18vw"), icon glyphs, SVG logo. */
/* demos/news/news.css */
.entry-categories a { font-size: var(--xb-fs-n1); }            /* news.css:195 — 10px */
.entry-meta li { font-size: var(--xb-fs-nh); }                 /* news.css:208 — .875rem */
.navbar-nav.nav-sm .nav-link { font-size: var(--xb-fs-n1); }   /* news.css:260 — 12px */
/* style.css (Bootstrap) */
.lead { font-size: var(--xb-fs-1); }                           /* style.css:610 — 1.25rem */
.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .input-group-text,
.input-group-lg > .btn { font-size: var(--xb-fs-1); }          /* style.css:2771 — 1.25rem */
.badge { --bs-badge-font-size: var(--xb-fs-n1); }              /* style.css:4853 — .75em (10.5 · 12) */
.fs-5 { font-size: var(--xb-fs-1) !important; }                /* style.css:8642 — 1.25rem !important */
/* style.css:672, :676 — .display-6 calc(1.375rem + 1.5vw) · 2.5rem ≥ 1200 (review score, brand-box.njk) → as h2: fs-2 · fs-3 ≥ 992 */
.display-6 { font-size: var(--xb-fs-2); }
@media (min-width: 992px) { .display-6 { font-size: var(--xb-fs-3); } }
/* style.css (Canvas) */
#header { --cnvs-top-search-font-size: var(--xb-fs-3); }       /* style.css:17346 — 2rem (≥ 992) */
@media (max-width: 991.98px) {
  .top-search-form input { font-size: var(--xb-fs-1); }        /* style.css:18982 — 1.175rem (≥ 992: :18994 var above) */
}
#page-title, .page-title {
  --cnvs-page-title-font-size: var(--cnvs-font-size-h1);      /* style.css:20726 — 2.25rem → the h1 vars (fs-3 < 992 · fs-4) */
  --cnvs-page-title-subtitle-size: var(--xb-fs-1);             /* style.css:20729 — 1.125rem */
}
@media (max-width: 767.98px) {
  .page-title-content h1, .page-title-content .h1 { font-size: var(--cnvs-page-title-font-size); } /* style.css:20782 — calc(1.5rem + 1.25vw) */
}
.breadcrumb { font-size: var(--xb-fs-nh); }                    /* style.css:20797 — 90% */
#posts, .posts, .entry, [class*="entry-"] { --cnvs-post-title-font-size: var(--xb-fs-2); } /* style.css:21623 — 1.75rem */
.entry-title.title-sm h3, .entry-title.title-sm .h3 { --cnvs-post-title-font-size: var(--xb-fs-1); } /* style.css:21733 — 1.125rem */
.entry-title h4, .entry-title .h4 { --cnvs-post-title-font-size: var(--xb-fs-nh); } /* style.css:21742 — .875rem */
.taxonomy-count { font-size: var(--xb-fs-n1); }                /* style.css:23003 — .8125rem */
.button.button-small { --cnvs-btn-fontsize: var(--xb-fs-nh); } /* style.css:23844 — .875rem */
.button.button-large { --cnvs-btn-fontsize: var(--xb-fs-1); }  /* style.css:23849 — 1.125rem */
.promo { --cnvs-promo-span-font-size: var(--xb-fs-1); }        /* style.css:24753 — 1.125rem */
.iconlist.iconlist-lg { --cnvs-iconlist-size: var(--xb-fs-1); } /* style.css:25740 — 1.125rem */
.heading-block { --cnvs-heading-block-font-size-h1: var(--xb-fs-4); } /* style.css:30722 — 2.5rem */
.heading-block h1 + span, .heading-block .h1 + span { font-size: var(--xb-fs-2); } /* style.css:30778 — h1 / 1.5 */
.widget { --cnvs-widget-title-font-size: var(--xb-fs-nh); }    /* style.css:32733 — .9325rem */
.tagcloud a { font-size: var(--xb-fs-n1) !important; }         /* style.css:32994 — 13px !important */

/* T35i, decisions.md §28: Roboto italic on demand. Icon <i> keeps the UA italic (bootstrap-icons.css:5, unicons.css:2 set normal on ::before only); its line box would load the face on every page. */
i[class*="bi-"], i[class*="uil-"] { font-style: normal; }

/* T35i, decisions.md §28 + §26: post image credit on the caption step, meta line colour. */
.figure-caption { font-size: var(--xb-fs-nh); color: var(--xb-meta-text); } /* style.css:743–746 — 0.875em, --bs-secondary-color */

/* ---- T39, decisions.md §46: corner radius scale (lever site.radius → --xb-radius-*; tokens.css points the Bootstrap and
   Canvas radius vars). Rules below: components the lever cannot reach, or at the wrong level. ---- */
/* sm — labels, tags, tab chips, filter buttons, search group, thumbnails ≤ 120 px, search marks */
.entry-categories a { border-radius: var(--xb-radius-sm); }            /* demos/news/news.css:196 — 2px */
.navbar-nav.nav-sm .nav-link { border-radius: var(--xb-radius-sm); }   /* demos/news/news.css:265 — 2px (home tabs) */
.tagcloud a { border-radius: var(--xb-radius-sm); }                    /* style.css:32996 — 2px */
mark, .mark { border-radius: var(--xb-radius-sm); }                    /* style.css:341–345 — square (search hits) */
.posts-sm [class*="entry-"] { --cnvs-post-image-rounded: var(--xb-radius-sm); } /* style.css:21620 via tokens.css md — 64 px thumbs */
.input-group-lg { --bs-border-radius-lg: var(--xb-radius-sm); }        /* style.css:2766–2772 + .rounded-end-3 :9300–9302 — lg (md) */
/* md — boxes, cards, images > 120 px */
.card {                                                                 /* style.css:4408, :4410 — var(--bs-border-radius) (sm) */
  --bs-card-border-radius: var(--xb-radius-md);
  --bs-card-inner-border-radius: calc(var(--xb-radius-md) - var(--bs-card-border-width));
}
.accordion {                                                            /* style.css:4593–4594 — var(--bs-border-radius) (sm) */
  --bs-accordion-border-radius: var(--xb-radius-md);
  --bs-accordion-inner-border-radius: calc(var(--xb-radius-md) - var(--bs-accordion-border-width));
}
.alert { --bs-alert-border-radius: var(--xb-radius-md); }              /* style.css:4885 — var(--bs-border-radius) (sm) */
.promo-border, .promo-light { border-radius: var(--xb-radius-md); }    /* style.css:24786, :24794 — 3px */
.promo .img-fluid { border-radius: var(--xb-radius-md); }              /* style.css:720 .img-fluid — square (brand logo > 120 px) */
/* style.css:21669–21677 — square image link box: its focus ring (box-shadow) takes the image's corners (thumbnails sm) */
.entry-image > a { border-radius: var(--xb-radius-md); }
.posts-sm .entry-image > a { border-radius: var(--xb-radius-sm); }
.owl-carousel .entry, .owl-carousel .entry > .bg-overlay { border-radius: var(--xb-radius-md); } /* bg image + overlay (overflow
   hidden, style.css:31350–31358) — square */
/* pill — text CTA buttons (the base .button has no radius, style.css:23775–23801); filters sm after it */
.button { border-radius: var(--xb-radius-pill); }
.button.button-small.button-border { border-radius: var(--xb-radius-sm); }
/* circle — carousel arrows */
.owl-carousel.fixed-nav:hover .owl-nav [class*=owl-],
.owl-carousel.fixed-nav .owl-nav [class*=owl-] { border-radius: 50%; } /* demos/news/news.css:380–390 — 3px */
