
/* —— Light skin (entity /gioi-thieu etc.) — do NOT force dark —— */
body.xh-skin-light {
  --xh-amber: #d97706;
  --xh-amber-2: #f0b429;
  --xh-link: #b45309;
}
body.xh-skin-light .main-menu > li > a:hover,
body.xh-skin-light .main-menu > li.current-menu-item > a {
  color: var(--xh-amber) !important;
}
/* Fact boxes stay readable on light */
body.xh-skin-light .xh-fact-box,
body.xh-skin-light .xh-fact-box td {
  color: #0b1220 !important;
}
body.xh-skin-light .xh-fact-box a {
  color: #b45309 !important;
}

/* Light entity/trust pages: override Foxiz is-cmode dark when xh-skin-light */
body.xh-skin-light,
body.xh-skin-light .site-outer,
body.xh-skin-light .site-wrap,
body.xh-skin-light #wrapper {
  background: #f7f5f1 !important;
  color: #0b1220 !important;
}
body.xh-skin-light h1,
body.xh-skin-light h2,
body.xh-skin-light h3,
body.xh-skin-light .s-title,
body.xh-skin-light .lede {
  color: #0b1220 !important;
}
body.xh-skin-light .lede,
body.xh-skin-light .entry-content,
body.xh-skin-light .s-ct,
body.xh-skin-light .rbct,
body.xh-skin-light p {
  color: rgba(11, 18, 32, 0.88) !important;
}
body.xh-skin-light a {
  color: #b45309;
}
body.xh-skin-light .header-wrap,
body.xh-skin-light .navbar-outer,
body.xh-skin-light .navbar-inner,
body.xh-skin-light .header-mobile {
  background: rgba(247, 245, 241, 0.95) !important;
  border-color: rgba(11, 18, 32, 0.08) !important;
  color: #0b1220 !important;
}
body.xh-skin-light .main-menu > li > a {
  color: rgba(11, 18, 32, 0.75) !important;
}
body.xh-skin-light .footer-wrap,
body.xh-skin-light .site-footer {
  background: #efece6 !important;
  color: rgba(11, 18, 32, 0.65) !important;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}


/**
 * XuanHieu sitewide — V2 cinematic dark skin (match homepage)
 * Scope: body.xh-skin-dark
 * Elementor: paint shell + classic content; avoid widget layout wars
 */

body.xh-skin-dark {
  --xh-bg: #06080f;
  --xh-bg-2: #0c1220;
  --xh-bg-3: #151d30;
  --xh-elev: rgba(255, 255, 255, 0.045);
  --xh-elev-2: rgba(255, 255, 255, 0.07);
  --xh-text: #f4f1ea;
  --xh-muted: rgba(244, 241, 234, 0.72);
  --xh-dim: rgba(244, 241, 234, 0.58);
  --xh-line: rgba(255, 255, 255, 0.1);
  --xh-line-strong: rgba(255, 255, 255, 0.16);
  --xh-amber: #f0b429;
  --xh-amber-2: #ffc857;
  --xh-amber-soft: rgba(240, 180, 41, 0.14);
  --xh-link: #ffc857;
  --xh-link-hover: #ffe08a;
  --xh-r: 16px;
  --xh-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --xh-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--xh-bg) !important;
  color: var(--xh-text);
  font-family: var(--xh-font-ui);
}

/* Atmospheric wash like home */
body.xh-skin-dark::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(240, 180, 41, 0.1), transparent 58%),
    radial-gradient(900px 560px at 92% 8%, rgba(88, 140, 255, 0.12), transparent 52%),
    var(--xh-bg);
}

body.xh-skin-dark .site-outer,
body.xh-skin-dark .site-wrap,
body.xh-skin-dark #wrapper,
body.xh-skin-dark .rb-container-outer {
  background: transparent !important;
  color: var(--xh-text);
}

/* —— Header / navbar (Foxiz) —— */
body.xh-skin-dark .header-wrap,
body.xh-skin-dark .navbar-outer,
body.xh-skin-dark .navbar-wrap,
body.xh-skin-dark .navbar-inner,
body.xh-skin-dark .header-mobile,
body.xh-skin-dark .header-mobile-wrap {
  background: rgba(6, 8, 15, 0.92) !important;
  border-color: var(--xh-line) !important;
  color: var(--xh-text) !important;
  box-shadow: 0 1px 0 var(--xh-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.xh-skin-dark .main-menu > li > a,
body.xh-skin-dark .navbar-wrap a,
body.xh-skin-dark .navbar-left a,
body.xh-skin-dark .navbar-right a,
body.xh-skin-dark .header-mobile a {
  color: var(--xh-muted) !important;
}

body.xh-skin-dark .main-menu > li > a:hover,
body.xh-skin-dark .main-menu > li.current-menu-item > a,
body.xh-skin-dark .main-menu > li.current-menu-ancestor > a,
body.xh-skin-dark .navbar-wrap a:hover {
  color: var(--xh-amber) !important;
}

body.xh-skin-dark .main-menu .sub-menu,
body.xh-skin-dark .header-dropdown {
  background: var(--xh-bg-2) !important;
  border: 1px solid var(--xh-line) !important;
  color: var(--xh-text) !important;
}

body.xh-skin-dark .main-menu .sub-menu a {
  color: var(--xh-muted) !important;
}

body.xh-skin-dark .main-menu .sub-menu a:hover {
  color: var(--xh-amber) !important;
  background: var(--xh-amber-soft) !important;
}

/* Icons in header */
body.xh-skin-dark .header-wrap .icon-holder,
body.xh-skin-dark .search-btn,
body.xh-skin-dark .login-toggle,
body.xh-skin-dark .mode-icon-dark,
body.xh-skin-dark .mode-icon-default {
  color: var(--xh-muted) !important;
  fill: var(--xh-muted);
}

/* —— Page header / titles —— */
body.xh-skin-dark .page-header,
body.xh-skin-dark .page-header-inner,
body.xh-skin-dark .single-header,
body.xh-skin-dark .s-feat {
  background: transparent !important;
  color: var(--xh-text) !important;
}

body.xh-skin-dark h1,
body.xh-skin-dark h2,
body.xh-skin-dark h3,
body.xh-skin-dark h4,
body.xh-skin-dark .s-title,
body.xh-skin-dark .breadcrumb-inner,
body.xh-skin-dark .p-meta,
body.xh-skin-dark .p-categories a {
  color: var(--xh-text) !important;
}

body.xh-skin-dark .p-categories a {
  color: var(--xh-amber) !important;
}

body.xh-skin-dark .breadcrumb-inner a,
body.xh-skin-dark .p-meta a {
  color: var(--xh-dim) !important;
}

/* —— Content surface (classic + s-ct) —— */
body.xh-skin-dark .s-ct,
body.xh-skin-dark .entry-content,
body.xh-skin-dark .rbct {
  color: var(--xh-muted);
}

body.xh-skin-dark .s-ct p,
body.xh-skin-dark .entry-content p,
body.xh-skin-dark .s-ct li,
body.xh-skin-dark .entry-content li {
  color: var(--xh-muted);
}

/* Classic content links */
body.xh-skin-dark .entry-content > p a,
body.xh-skin-dark .entry-content > ul a,
body.xh-skin-dark .entry-content > ol a,
body.xh-skin-dark .s-content > p a,
body.xh-skin-dark .s-ct > p a,
body.xh-skin-dark .rbct a:not(.button):not(.p-url):not(.elementor-button):not(.is-btn) {
  color: var(--xh-link) !important;
  text-underline-offset: 3px;
}

body.xh-skin-dark .entry-content > p a:hover,
body.xh-skin-dark .s-ct > p a:hover {
  color: var(--xh-link-hover) !important;
}

/* Content card wrap on single (readability) */
body.xh-skin-dark.single-post .s-ct,
body.xh-skin-dark.single article .rbct {
  background: var(--xh-elev);
  border: 1px solid var(--xh-line);
  border-radius: var(--xh-r);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* Soften pure-white Foxiz boxes */
body.xh-skin-dark .block-wrap,
body.xh-skin-dark .widget,
body.xh-skin-dark .sidebar-inner .widget,
body.xh-skin-dark .p-wrap,
body.xh-skin-dark .box-inner {
  background: var(--xh-elev) !important;
  border-color: var(--xh-line) !important;
  color: var(--xh-text) !important;
}

body.xh-skin-dark .p-wrap .p-title a,
body.xh-skin-dark .widget a {
  color: var(--xh-text) !important;
}

body.xh-skin-dark .p-wrap .p-title a:hover,
body.xh-skin-dark .widget a:hover {
  color: var(--xh-amber) !important;
}

body.xh-skin-dark .p-excerpt,
body.xh-skin-dark .widget p {
  color: var(--xh-dim) !important;
}

/* Buttons */
body.xh-skin-dark .is-btn.btn-primary,
body.xh-skin-dark a.is-btn.btn-primary,
body.xh-skin-dark .pagination-wrap a,
body.xh-skin-dark .page-numbers.current {
  background: linear-gradient(180deg, var(--xh-amber-2), var(--xh-amber)) !important;
  border-color: transparent !important;
  color: #0a0c12 !important;
  border-radius: 999px;
}

body.xh-skin-dark .is-btn,
body.xh-skin-dark a.is-btn {
  border-radius: 999px;
}

/* —— Elementor pages: shell dark, content sections slightly lifted —— */
body.xh-skin-dark.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
  /* don't break layouts */
}

body.xh-skin-dark .elementor-widget-text-editor,
body.xh-skin-dark .elementor-widget-heading .elementor-heading-title {
  color: var(--xh-text);
}

body.xh-skin-dark .elementor-widget-text-editor {
  color: var(--xh-muted);
}

/* Force light text when Elementor left dark-on-dark or dark-on-light wrongly */
body.xh-skin-dark .elementor-section[data-settings*="background_background"] {
  /* leave painted backgrounds */
}

/* —— Footer —— */
body.xh-skin-dark .footer-wrap,
body.xh-skin-dark .site-footer,
body.xh-skin-dark .footer-etemplate {
  background: #04060c !important;
  color: var(--xh-dim) !important;
  border-top: 1px solid var(--xh-line);
}

body.xh-skin-dark .footer-wrap a,
body.xh-skin-dark .site-footer a {
  color: var(--xh-muted) !important;
}

body.xh-skin-dark .footer-wrap a:hover {
  color: var(--xh-amber) !important;
}

/* —— Author card (matches dark home) —— */
.xh-author-card {
  margin: 2.5rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--xh-line, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--xh-font-ui, system-ui, sans-serif);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--xh-text, #f4f1ea);
}

.xh-author-card__img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.xh-author-card__body {
  flex: 1;
  min-width: 200px;
}

.xh-author-card__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xh-amber, #f0b429);
  font-weight: 700;
}

.xh-author-card__name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--xh-text, #f4f1ea);
}

.xh-author-card__role {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--xh-muted, rgba(244, 241, 234, 0.72));
}

.xh-author-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc857, #f0b429);
  color: #0a0c12 !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.88rem;
  border: none;
  white-space: nowrap;
}

.xh-author-card__cta:hover {
  filter: brightness(1.05);
  color: #0a0c12 !important;
}

/* Entity byline from W5 */
body.xh-skin-dark .xh-entity-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--xh-amber);
  background: var(--xh-amber-soft);
  border-radius: 0 10px 10px 0;
  color: var(--xh-muted);
  font-size: 0.92rem;
}

body.xh-skin-dark .xh-entity-note a {
  color: var(--xh-amber) !important;
}

/* Focus */
body.xh-skin-dark a:focus-visible,
body.xh-skin-dark button:focus-visible {
  outline: 2px solid var(--xh-amber);
  outline-offset: 2px;
}

/* Tables / code blocks on classic posts */
body.xh-skin-dark table,
body.xh-skin-dark pre,
body.xh-skin-dark code {
  background: var(--xh-bg-2) !important;
  color: var(--xh-text) !important;
  border-color: var(--xh-line) !important;
}

body.xh-skin-dark hr {
  border-color: var(--xh-line) !important;
}

/* Comments */
body.xh-skin-dark .comment-list,
body.xh-skin-dark .comment-respond,
body.xh-skin-dark .rb-related {
  color: var(--xh-muted);
}

/* Inputs */
body.xh-skin-dark input[type="text"],
body.xh-skin-dark input[type="email"],
body.xh-skin-dark input[type="search"],
body.xh-skin-dark textarea,
body.xh-skin-dark select {
  background: var(--xh-bg-2) !important;
  border: 1px solid var(--xh-line-strong) !important;
  color: var(--xh-text) !important;
}

/* Hide broken light-scheme assumptions */
body.xh-skin-dark .light-scheme {
  color: var(--xh-text);
}

/* —— Shell: 404 / empty search (standalone) —— */
body.xh-shell {
  margin: 0;
  min-height: 100vh;
  background: #06080f;
  color: #f4f1ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.xh-shell__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(240, 180, 41, 0.14), transparent 55%),
    radial-gradient(700px 480px at 90% 10%, rgba(88, 140, 255, 0.14), transparent 50%),
    #06080f;
}
.xh-shell__wrap {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 6rem) 0 4rem;
}
.xh-shell__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0a0c12;
  background: linear-gradient(145deg, #ffc857, #f0b429);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.xh-shell__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b429;
  margin: 0 0 0.75rem;
}
.xh-shell h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.xh-shell__lede {
  margin: 0 0 1.75rem;
  color: rgba(244, 241, 234, 0.72);
  font-size: 1.05rem;
  max-width: 36rem;
}
.xh-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.xh-shell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.xh-shell__btn--amber {
  background: linear-gradient(180deg, #ffc857, #f0b429);
  color: #0a0c12 !important;
}
.xh-shell__btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f1ea !important;
  border-color: rgba(255, 255, 255, 0.16);
}
.xh-shell__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.xh-shell__list a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f1ea !important;
  text-decoration: none !important;
  font-weight: 550;
}
.xh-shell__list a:hover {
  border-color: rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.1);
}
.xh-shell__list span {
  display: block;
  font-size: 0.82rem;
  color: rgba(244, 241, 234, 0.58);
  font-weight: 400;
  margin-top: 0.2rem;
}
.xh-shell__search {
  margin: 0 0 1.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.xh-shell__search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f1ea;
  font-size: 1rem;
}
.xh-shell__search input[type="submit"],
.xh-shell__search button {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #ffc857, #f0b429);
  color: #0a0c12;
  font-weight: 650;
  cursor: pointer;
}
.xh-shell__foot {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.45);
}
.xh-shell__foot a {
  color: #f0b429;
}

/* Light editorial cards must not inherit dark table paint */
body.xh-skin-dark .xh-fact-box,
body.xh-skin-dark .xh-fact-box table,
body.xh-skin-dark .xh-fact-box td,
body.xh-skin-dark [class*="fact-box"],
body.xh-skin-dark [style*="background: #f"],
body.xh-skin-dark [style*="background:#f"],
body.xh-skin-dark [style*="background: #fff"],
body.xh-skin-dark [style*="background:#fff"] {
  color: #0b1220 !important;
}
body.xh-skin-dark .xh-fact-box table,
body.xh-skin-dark .xh-fact-box td {
  background: transparent !important;
  color: #0b1220 !important;
}
body.xh-skin-dark .xh-fact-box a {
  color: #b45309 !important;
}

