
/* —— 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;
}


/* ==========================================================================
   Content surface v34 — match homepage glass / bento language
   Used by category.php, search.php (.xh-surface) + Foxiz leftovers (single)
   ========================================================================== */

body.xh-skin-dark .xh-chrome-main,
body.xh-chrome-on .xh-chrome-main {
  width: min(100% - 2rem, 1120px);
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 0 3.5rem;
}

/* Kill Foxiz chrome leftovers when V2 chrome is on */
body.xh-chrome-on .header-wrap,
body.xh-chrome-on .navbar-outer,
body.xh-chrome-on .header-mobile,
body.xh-chrome-on .footer-wrap,
body.xh-chrome-on .footer-etemplate,
body.xh-chrome-on .site-footer:not(.xh-v2-footer),
body.xh-chrome-on .rb-loader,
body.xh-chrome-on .is-backtop,
body.xh-chrome-on .privacy-bar {
  display: none !important;
}

/* —— Surface shell (archive / search) —— */
.xh-surface {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
  font-family: var(--xh-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--xh-text, #f4f1ea);
}
.xh-surface__head {
  margin: 0 0 1.75rem;
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.xh-surface__kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xh-amber, #f0b429);
}
.xh-surface__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--xh-text, #f4f1ea) !important;
}
.xh-surface__lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.72) !important;
}
.xh-surface__count {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(244, 241, 234, 0.5);
}

/* Search form (V2) */
.xh-surface__search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
  max-width: 36rem;
}
.xh-surface__search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f4f1ea !important;
  font-size: 1rem;
  outline: none;
}
.xh-surface__search input[type="search"]:focus {
  border-color: rgba(240, 180, 41, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}
.xh-surface__search button,
.xh-surface__search input[type="submit"] {
  padding: 0.8rem 1.35rem;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(180deg, #ffc857, #f0b429) !important;
  color: #0a0c12 !important;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

/* Card grid — bento-adjacent */
.xh-surface__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}
@media (max-width: 900px) {
  .xh-surface__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .xh-surface__grid {
    grid-template-columns: 1fr;
  }
}

.xh-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s, box-shadow 0.35s, background 0.25s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  min-height: 100%;
}
.xh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.xh-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(240, 180, 41, 0.14), transparent 55%),
    #0c1220;
  overflow: hidden;
}
.xh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.xh-card:hover .xh-card__media img {
  transform: scale(1.04);
}
.xh-card__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(280px 160px at 70% 20%, rgba(240, 180, 41, 0.18), transparent 60%),
    radial-gradient(240px 140px at 20% 80%, rgba(88, 140, 255, 0.14), transparent 55%),
    #0c1220;
}
.xh-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}
.xh-card__tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xh-amber, #f0b429) !important;
  text-decoration: none !important;
  margin-bottom: 0.15rem;
}
.xh-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.xh-card__title a {
  color: var(--xh-text, #f4f1ea) !important;
  text-decoration: none !important;
}
.xh-card:hover .xh-card__title a {
  color: #ffc857 !important;
}
.xh-card__excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.58) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.xh-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: rgba(244, 241, 234, 0.48);
}
.xh-card__go {
  font-weight: 650;
  color: var(--xh-amber, #f0b429);
  opacity: 0.85;
}
.xh-card:hover .xh-card__go {
  opacity: 1;
}

/* Empty-search hints */
.xh-surface__hints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 36rem;
}
.xh-surface__hints a {
  display: block;
  padding: 0.9rem 1.05rem;
  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: 600;
}
.xh-surface__hints a:hover {
  border-color: rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.1);
}
.xh-surface__hints span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(244, 241, 234, 0.55);
}

/* Pagination */
.xh-surface__pager {
  margin-top: 2rem;
}
.xh-surface__pager .page-numbers,
.xh-surface__pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.xh-surface__pager a,
.xh-surface__pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 241, 234, 0.78) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
}
.xh-surface__pager .current,
.xh-surface__pager span.current {
  background: linear-gradient(180deg, #ffc857, #f0b429) !important;
  color: #0a0c12 !important;
  border-color: transparent !important;
}
.xh-surface__pager a:hover {
  border-color: rgba(240, 180, 41, 0.4);
  color: #ffc857 !important;
}

/* —— Foxiz archive leftovers (tag/author if any) —— */
body.xh-skin-dark.archive .rb-container,
body.xh-skin-dark.search .rb-container,
body.xh-skin-dark .taxonomy-description {
  color: rgba(244, 241, 234, 0.72);
}
body.xh-skin-dark .archive-title,
body.xh-skin-dark .search-title,
body.xh-skin-dark .page-header .page-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: #f4f1ea !important;
}
body.xh-skin-dark .search-header,
body.xh-skin-dark .page-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Foxiz cards → glass */
body.xh-skin-dark .p-wrap {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.3s;
}
body.xh-skin-dark .p-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 180, 41, 0.35) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
body.xh-skin-dark .p-wrap .entry-title,
body.xh-skin-dark .p-wrap .entry-title a,
body.xh-skin-dark .p-wrap .p-url {
  color: #f4f1ea !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
body.xh-skin-dark .p-wrap:hover .entry-title a,
body.xh-skin-dark .p-wrap:hover .p-url {
  color: #ffc857 !important;
}
body.xh-skin-dark .p-wrap .entry-summary,
body.xh-skin-dark .p-wrap .p-excerpt {
  color: rgba(244, 241, 234, 0.58) !important;
}
body.xh-skin-dark .p-wrap .p-meta,
body.xh-skin-dark .p-wrap .p-meta a,
body.xh-skin-dark .p-wrap .meta-date,
body.xh-skin-dark .p-wrap time {
  color: rgba(244, 241, 234, 0.48) !important;
}
body.xh-skin-dark .p-featured img,
body.xh-skin-dark .p-wrap .featured-img {
  border-radius: 0;
}
body.xh-skin-dark .p-categories a,
body.xh-skin-dark .p-category {
  background: rgba(240, 180, 41, 0.14) !important;
  color: #f0b429 !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.65rem !important;
}
body.xh-skin-dark .block-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.xh-skin-dark .block-h .heading-title,
body.xh-skin-dark .block-h h3 {
  color: #f4f1ea !important;
}

/* —— Single / page content —— */
body.xh-skin-dark.single .single-header,
body.xh-skin-dark.single .s-feat,
body.xh-skin-dark.single-post .s-header {
  background: transparent !important;
}
body.xh-skin-dark.single h1.s-title,
body.xh-skin-dark.single .single-title,
body.xh-skin-dark.single .entry-title {
  font-size: clamp(1.75rem, 4vw, 2.45rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.15 !important;
  color: #f4f1ea !important;
}
body.xh-skin-dark.single .s-ct,
body.xh-skin-dark.single article .rbct,
body.xh-skin-dark.single .entry-content {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  color: rgba(244, 241, 234, 0.78) !important;
  line-height: 1.7;
}
body.xh-skin-dark.single .s-ct h2,
body.xh-skin-dark.single .s-ct h3,
body.xh-skin-dark.single .entry-content h2,
body.xh-skin-dark.single .entry-content h3 {
  color: #f4f1ea !important;
  letter-spacing: -0.02em;
}
body.xh-skin-dark.single .s-ct a:not(.button):not(.is-btn),
body.xh-skin-dark.single .entry-content a:not(.button):not(.is-btn) {
  color: #ffc857 !important;
}
body.xh-skin-dark.single .breadcrumb-inner,
body.xh-skin-dark.single .p-meta {
  color: rgba(244, 241, 234, 0.55) !important;
}
body.xh-skin-dark.single .rb-related,
body.xh-skin-dark.single .related-inner {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Elementor hubs: repaint common light cards */
body.xh-skin-dark .elementor-widget-wrap > .elementor-element {
  /* keep layout */
}
body.xh-skin-dark .elementor-widget-heading .elementor-heading-title {
  color: #f4f1ea !important;
}
body.xh-skin-dark .elementor-widget-text-editor {
  color: rgba(244, 241, 234, 0.78) !important;
}
body.xh-skin-dark .elementor-button-wrapper .elementor-button {
  border-radius: 999px !important;
}
body.xh-skin-dark .elementor-button-wrapper .elementor-button.elementor-size-sm,
body.xh-skin-dark .elementor-button-wrapper .elementor-button {
  background: linear-gradient(180deg, #ffc857, #f0b429) !important;
  color: #0a0c12 !important;
  border: none !important;
  font-weight: 650;
}

/* Edge padding containers transparent */
body.xh-skin-dark .edge-padding,
body.xh-skin-dark .rb-container,
body.xh-skin-dark .mid-header {
  background: transparent !important;
}

/* Tag / author archives share surface width */
body.xh-skin-dark.archive .xh-chrome-main .rb-container.edge-padding {
  max-width: 1120px;
}
