/* ==========================================================================
   XScore 3.0 — modern app-style design
   Soft surfaces · rounded cards · overlay lead story · floating dock
   · swipeable tips · page transitions · dark mode follows the device.
   ========================================================================== */

:root {
	--xs-accent: #0a8f4e;
	--xs-accent-2: #14b8a6;
	--xs-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--xs-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--xs-wrap: 1180px;
	--xs-pad: 16px;
	--xs-r-lg: 24px;
	--xs-r: 18px;
	--xs-r-sm: 12px;
	--xs-bar-h: 0px;
	--xs-ease: cubic-bezier(.2, .8, .2, 1);

	--xs-bg: #f2f3f6;
	--xs-surface: #ffffff;
	--xs-soft: #eceef2;
	--xs-text: #0d1117;
	--xs-muted: #6b7280;
	--xs-line: rgba(13, 17, 23, .08);
	--xs-glass: rgba(255, 255, 255, .72);
	--xs-shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 4px 16px rgba(13, 17, 23, .05);
	--xs-shadow-lg: 0 10px 40px rgba(13, 17, 23, .12);
	--xs-overlay: rgba(13, 17, 23, .4);
	--xs-grad: linear-gradient(135deg, var(--xs-accent), var(--xs-accent-2));
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		--xs-bg: #000000; --xs-surface: #16171b; --xs-soft: #23252b; --xs-text: #f2f3f5; --xs-muted: #8e939c;
		--xs-line: rgba(255, 255, 255, .08); --xs-glass: rgba(18, 19, 22, .72);
		--xs-shadow: none; --xs-shadow-lg: 0 10px 40px rgba(0, 0, 0, .6); --xs-overlay: rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
[data-mode="dark"] {
	--xs-bg: #000000; --xs-surface: #16171b; --xs-soft: #23252b; --xs-text: #f2f3f5; --xs-muted: #8e939c;
	--xs-line: rgba(255, 255, 255, .08); --xs-glass: rgba(18, 19, 22, .72);
	--xs-shadow: none; --xs-shadow-lg: 0 10px 40px rgba(0, 0, 0, .6); --xs-overlay: rgba(0, 0, 0, .6);
	color-scheme: dark;
}

@media (min-width: 768px) { :root { --xs-pad: 28px; } }

/* Smooth app-like page transitions (Chrome/Edge/Safari 18+; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.xs-header { view-transition-name: xs-header; }
.xs-bottombar { view-transition-name: xs-dock; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
html, body { overflow-x: clip; max-width: 100%; }
body {
	margin: 0; background: var(--xs-bg); color: var(--xs-text);
	font: 16px/1.6 var(--xs-font); letter-spacing: -.005em;
	-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
	padding-bottom: var(--xs-bar-h); overflow-wrap: break-word;
}
img, svg, video, iframe, embed, object { max-width: 100%; height: auto; }
img { display: block; }
iframe { border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--xs-accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--xs-font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--xs-accent) 25%, transparent); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.xs-wrap { width: 100%; max-width: var(--xs-wrap); margin: 0 auto; padding: 0 var(--xs-pad); }
.xs-skip { position: absolute; left: -999px; }
.xs-skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--xs-accent); color: #fff; padding: 8px 12px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.xs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
	background: var(--xs-surface); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line);
	font-size: 15px; font-weight: 600; white-space: nowrap;
	transition: transform .15s var(--xs-ease), box-shadow .2s;
}
.xs-btn:active { transform: scale(.96); }
@media (hover: hover) { .xs-btn:hover { box-shadow: var(--xs-shadow-lg), inset 0 0 0 1px var(--xs-line); } }
.xs-btn:disabled { opacity: .6; cursor: default; }
.xs-btn-vip { background: var(--xs-grad); color: #fff; min-height: 38px; padding: 0 16px; box-shadow: 0 4px 14px color-mix(in srgb, var(--xs-accent) 35%, transparent); }
.xs-btn-vip:hover { color: #fff; }
.xs-btn-wa { background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, .3); }
.xs-btn-wa:hover { color: #fff; }

/* ---------- Header (glass) ---------- */
.xs-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--xs-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--xs-line);
	transition: transform .3s var(--xs-ease);
}
.admin-bar .xs-header { top: 32px; }
.xs-header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.xs-brand { flex: none; }
.xs-brand img { max-height: 34px; width: auto; }
.xs-wordmark { font: 800 25px/1 var(--xs-font-display); letter-spacing: -.04em; background: var(--xs-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xs-wordmark span { color: var(--xs-text); -webkit-text-fill-color: var(--xs-text); }
.xs-nav { flex: 1; min-width: 0; }
.xs-nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.xs-nav-list > li { position: relative; flex: none; }
.xs-nav-list a { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 550; color: var(--xs-muted); white-space: nowrap; transition: background .15s, color .15s; }
.xs-nav-list a:hover { color: var(--xs-text); background: var(--xs-soft); }
.xs-nav-list .current-menu-item > a, .xs-nav-list .current_page_item > a, .xs-nav-list .current-menu-ancestor > a { color: var(--xs-text); background: var(--xs-surface); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line); font-weight: 650; }
.xs-nav-list .sub-menu { list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; margin: 0; padding: 6px; background: var(--xs-surface); border-radius: var(--xs-r-sm); box-shadow: var(--xs-shadow-lg); display: none; }
.xs-nav-list .sub-menu a { border-radius: 8px; }
.xs-nav-list li:hover > .sub-menu, .xs-nav-list li:focus-within > .sub-menu { display: block; }
.xs-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.xs-search-trigger {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 14px; min-width: 200px;
	border: 0; border-radius: 999px; background: var(--xs-soft); color: var(--xs-muted); font-size: 14px;
}
.xs-search-trigger:hover { color: var(--xs-text); }
.xs-search-trigger kbd { margin-left: auto; font: 600 11px/1 var(--xs-font); padding: 4px 7px; border-radius: 6px; background: var(--xs-surface); box-shadow: inset 0 0 0 1px var(--xs-line); }

/* Reading progress */
.xs-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.admin-bar .xs-progress { top: 32px; }
.xs-progress span { display: block; height: 100%; background: var(--xs-grad); transform: scaleX(0); transform-origin: 0 50%; border-radius: 0 3px 3px 0; }

/* ---------- Search sheet ---------- */
.xs-search { position: fixed; inset: 0; z-index: 100; background: var(--xs-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12vh var(--xs-pad) 0; animation: xs-fade .18s ease; }
.xs-search-panel { max-width: 620px; margin: 0 auto; background: var(--xs-surface); border-radius: var(--xs-r-lg); padding: 14px; box-shadow: var(--xs-shadow-lg); animation: xs-pop .22s var(--xs-ease); }
@keyframes xs-fade { from { opacity: 0; } }
@keyframes xs-up { from { transform: translateY(100%); } }
@keyframes xs-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.xs-search-bar { display: flex; gap: 8px; align-items: center; }
.xs-search-bar .xs-searchform { flex: 1; max-width: none; }
.xs-search-close { border: 0; background: none; color: var(--xs-accent); font-weight: 600; min-height: 44px; padding: 0 6px; }
.xs-suggest ul { list-style: none; margin: 10px 0 0; padding: 0; }
.xs-suggest li a { display: block; padding: 12px 12px; border-radius: 12px; font-weight: 550; line-height: 1.35; }
.xs-suggest li a:hover, .xs-suggest li a:active { background: var(--xs-soft); }
.xs-suggest-note { margin: 14px 12px 6px; color: var(--xs-muted); font-size: 14px; }
.xs-suggest-all { display: block; padding: 12px 12px 4px; color: var(--xs-accent); font-weight: 600; font-size: 14px; }
body.xs-search-open { overflow: hidden; }

.xs-searchform { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 0 5px 0 14px; max-width: 560px; background: var(--xs-soft); }
.xs-searchform:focus-within { box-shadow: 0 0 0 2px var(--xs-accent); }
.xs-searchform .xs-ico { color: var(--xs-muted); flex: none; }
.xs-searchform input { flex: 1; min-width: 0; border: 0; background: none; height: 50px; outline: none; font-size: 16px; }
.xs-searchform input::-webkit-search-cancel-button { -webkit-appearance: none; }
.xs-searchform button { border: 0; background: var(--xs-grad); color: #fff; font-weight: 600; height: 40px; padding: 0 16px; border-radius: 10px; }

/* ---------- Sections ---------- */
.xs-section { padding-top: 36px; }
.xs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.xs-h { font-size: 28px; margin: 0; letter-spacing: -.03em; }
.xs-sub { margin: 4px 0 0; color: var(--xs-muted); font-size: 14px; font-weight: 500; }
.xs-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--xs-accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--xs-accent) 18%, transparent); }
.xs-more { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--xs-surface); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.xs-more:hover { color: var(--xs-accent); }
.xs-box { background: var(--xs-surface); border-radius: var(--xs-r-lg); padding: 8px 18px; box-shadow: var(--xs-shadow); min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.xs-empty { color: var(--xs-muted); margin: 0; text-align: center; padding: 20px 0; }

/* ---------- Filter chips (segmented pills) ---------- */
.xs-chips {
	display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--xs-pad); scrollbar-width: none;
	margin: 0 calc(-1 * var(--xs-pad)) 18px; padding: 4px var(--xs-pad);
}
.xs-chips::-webkit-scrollbar { display: none; }
.xs-chip {
	flex: none; scroll-snap-align: start; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
	background: var(--xs-surface); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line);
	font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .15s var(--xs-ease), background .2s, color .2s;
}
.xs-chip:active { transform: scale(.94); }
.xs-chip.is-active { background: var(--xs-text); color: var(--xs-bg); box-shadow: none; }

/* ---------- Cards ---------- */
.xs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.xs-list { display: grid; }
.xs-card {
	position: relative; min-width: 0; display: flex; flex-direction: column;
	background: var(--xs-surface); border-radius: var(--xs-r); overflow: hidden; box-shadow: var(--xs-shadow);
	transition: transform .25s var(--xs-ease), box-shadow .25s;
}
.xs-card:active { transform: scale(.98); }
@media (hover: hover) { .xs-card:hover { transform: translateY(-4px); box-shadow: var(--xs-shadow-lg); } .xs-card:hover .xs-card-media img { transform: scale(1.04); } }
.xs-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--xs-soft); }
.xs-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--xs-ease); }
.xs-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.xs-card-title { font: 650 16.5px/1.35 var(--xs-font-display); letter-spacing: -.015em; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xs-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.xs-card-excerpt { font-size: 15px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xs-card-meta { margin: auto 0 0; font-size: 13px; color: var(--xs-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.xs-card-cat { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--xs-accent) 12%, transparent); color: var(--xs-accent); font-size: 12px; font-weight: 650; }

/* Lead story: big image with the headline over it */
.xs-card.is-feature { grid-column: span 2; grid-row: span 2; min-height: 440px; color: #fff; isolation: isolate; }
.xs-card.is-feature .xs-card-media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.xs-card.is-feature .xs-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.85) 100%); }
.xs-card.is-feature .xs-card-body { margin-top: auto; flex: none; padding: 24px; }
.xs-card.is-feature .xs-card-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.03em; -webkit-line-clamp: 4; color: #fff; }
.xs-card.is-feature .xs-card-excerpt { color: rgba(255,255,255,.85); }
.xs-card.is-feature .xs-card-meta { color: rgba(255,255,255,.8); }
.xs-card.is-feature .xs-card-cat { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Row cards (tips fallback, related) */
.xs-card.is-row { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: var(--xs-r); margin-bottom: 10px; }
.xs-card.is-row:last-child { margin-bottom: 0; }
.xs-card.is-row .xs-card-media { width: 92px; aspect-ratio: 1; flex: none; border-radius: 12px; }
.xs-card.is-row .xs-card-body { padding: 0; }
.xs-card.is-row .xs-card-title { margin-bottom: 6px; }
.xs-box .xs-card.is-row { box-shadow: none; background: transparent; padding: 10px 0; border-bottom: 1px solid var(--xs-line); border-radius: 0; margin: 0; }
.xs-box .xs-card.is-row:last-child { border-bottom: 0; }

/* Loading skeleton while filtering */
.xs-grid.is-loading { pointer-events: none; }
.xs-grid.is-loading .xs-card { opacity: .55; }
.xs-grid.is-loading .xs-card-media { background: linear-gradient(90deg, var(--xs-soft) 0%, var(--xs-surface) 50%, var(--xs-soft) 100%); background-size: 200% 100%; animation: xs-shimmer 1s linear infinite; }
.xs-grid.is-loading .xs-card-media img { opacity: 0; }
@keyframes xs-shimmer { to { background-position: -200% 0; } }
.xs-grid > .xs-card { animation: xs-rise .35s var(--xs-ease) both; }
@keyframes xs-rise { from { opacity: 0; transform: translateY(8px); } }

.xs-loadmore { display: flex; justify-content: center; margin-top: 28px; }
.xs-loadmore .xs-btn { min-width: 240px; }

/* Data saver: drop thumbnails, keep lead image */
.xs-lite .xs-grid .xs-card:not(.is-feature) .xs-card-media,
.xs-lite .xs-card.is-row .xs-card-media { display: none; }

/* ---------- Ads ---------- */
.xs-ad { margin: 32px 0 0; text-align: center; overflow: hidden; }
.xs-ad .widget-title { display: none; }
.xs-ad-inline { margin: 28px 0; }

/* ---------- Article ---------- */
.xs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; }
.has-sidebar .xs-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.xs-article { width: 100%; max-width: 740px; min-width: 0; margin: 0 auto; }
.has-sidebar .xs-article { margin: 0; }
.xs-cat { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--xs-accent) 12%, transparent); color: var(--xs-accent); font-size: 13px; font-weight: 650; margin-bottom: 14px; }
.xs-article-title { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 14px; }
.xs-meta { font-size: 14px; color: var(--xs-muted); margin: 0 0 24px; }
.xs-article-media { margin: 0 0 28px; }
.xs-article-media img { width: 100%; border-radius: var(--xs-r-lg); }

.xs-prose { font-size: 18.5px; line-height: 1.72; min-width: 0; }
.xs-prose.is-wide { font-size: 16px; }
.xs-prose > * { max-width: 100%; }
.xs-prose > * + * { margin-top: 1.15em; }
.xs-prose p { margin-bottom: 0; }
.xs-prose > :first-child { margin-top: 0; }
.xs-prose h2 { font-size: 27px; margin-top: 1.7em; }
.xs-prose h3 { font-size: 21px; margin-top: 1.4em; }
.xs-prose a { color: var(--xs-accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.xs-prose ul, .xs-prose ol { padding-left: 1.3em; }
.xs-prose li::marker { color: var(--xs-accent); }
.xs-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--xs-r); background: var(--xs-surface); box-shadow: var(--xs-shadow); font-size: 1.05em; font-weight: 500; }
.xs-prose figure { margin: 1.6em 0; }
.xs-prose img { border-radius: var(--xs-r); }
.xs-prose figcaption { font-size: 14px; color: var(--xs-muted); margin-top: 8px; }
.xs-prose pre { overflow-x: auto; }
.xs-prose .alignwide, .xs-prose .alignfull { margin-left: 0; margin-right: 0; width: 100%; }

/* Tables */
.xs-prose table, .xs-box table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xs-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--xs-surface); border-radius: var(--xs-r); box-shadow: var(--xs-shadow); }
.xs-prose th, .xs-prose td, .xs-box th, .xs-box td { padding: 12px; border-bottom: 1px solid var(--xs-line); text-align: left; }
.xs-prose tr:last-child td, .xs-box tr:last-child td { border-bottom: 0; }
.xs-prose th, .xs-box th { font-size: 12px; color: var(--xs-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }

/* Phones: wide tables become swipeable cards (JS adds .is-stacked) */
table.is-stacked { display: block; width: auto; background: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
table.is-stacked tbody {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--xs-pad); scrollbar-width: none;
	margin: 0 calc(-1 * var(--xs-pad)); padding: 4px var(--xs-pad) 12px;
}
table.is-stacked tbody::-webkit-scrollbar { display: none; }
table.is-stacked thead, table.is-stacked tr:has(> th) { display: none; }
table.is-stacked tr {
	flex: 0 0 84%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-content: start;
	background: var(--xs-surface); border-radius: var(--xs-r-lg); padding: 18px; box-shadow: var(--xs-shadow);
}
table.is-stacked tr:only-child { flex-basis: 100%; }
table.is-stacked td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; font-size: 15px; line-height: 1.35; }
table.is-stacked td::before { content: attr(data-label); display: block; color: var(--xs-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
table.is-stacked td:nth-child(2) { grid-column: 1 / -1; order: -1; font: 700 19px/1.25 var(--xs-font-display); letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 1px solid var(--xs-line); }
table.is-stacked td:empty { display: none; }
.xs-box:has(table.is-stacked) { background: none; box-shadow: none; padding: 0; overflow: visible; }
.xs-swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.xs-swipe-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--xs-line); transition: width .25s var(--xs-ease), background .25s; }
.xs-swipe-dots span.is-on { width: 18px; background: var(--xs-accent); }

.xs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.xs-tags a { display: inline-flex; align-items: center; min-height: 34px; font-size: 13px; font-weight: 550; padding: 0 14px; border-radius: 999px; background: var(--xs-surface); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line); }
.xs-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.xs-related { margin-top: 44px; }
.xs-related .xs-h { margin-bottom: 14px; font-size: 22px; }

.xs-sidebar-inner { position: sticky; top: 90px; display: grid; gap: 18px; }
.xs-sidebar .widget { background: var(--xs-surface); border-radius: var(--xs-r); padding: 18px; box-shadow: var(--xs-shadow); }
.widget-title { font-size: 17px; margin-bottom: 10px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--xs-line); font-size: 15px; }
.widget li:last-child { border-bottom: 0; }

/* ---------- Comments ---------- */
.xs-comments { margin-top: 44px; }
.xs-comment-list { list-style: none; padding: 0; }
.xs-comment-list .children { list-style: none; padding-left: 18px; }
.xs-comment-list .comment-body { padding: 14px 16px; margin-bottom: 10px; background: var(--xs-surface); border-radius: var(--xs-r); box-shadow: var(--xs-shadow); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--xs-muted); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 14px; border-radius: 14px; border: 0; background: var(--xs-surface); box-shadow: inset 0 0 0 1px var(--xs-line); font-size: 16px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--xs-accent); }
.comment-form label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 6px; }
.comment-form .submit { background: var(--xs-grad); color: #fff; border: 0; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; }

/* ---------- Pagination / 404 ---------- */
.nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--xs-surface); box-shadow: var(--xs-shadow); font-weight: 600; }
.page-numbers.current { background: var(--xs-text); color: var(--xs-bg); }
.xs-404 { text-align: center; padding-top: 72px; }
.xs-404 .xs-searchform { margin: 20px auto; }

/* ---------- Footer ---------- */
.xs-footer { margin-top: 64px; padding: 32px 0; font-size: 14px; color: var(--xs-muted); }
.xs-footer .xs-wrap { background: var(--xs-surface); border-radius: var(--xs-r-lg); padding-top: 24px; padding-bottom: 24px; box-shadow: var(--xs-shadow); max-width: calc(var(--xs-wrap) - 2 * var(--xs-pad)); }
.xs-footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.xs-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; flex: 1; }
.xs-footer-menu a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; }
.xs-footer-menu a:hover { color: var(--xs-text); }
.xs-social { display: flex; gap: 6px; }
.xs-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--xs-soft); color: var(--xs-text); }
.xs-footer-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--xs-line); }
.xs-18 { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #e5484d; color: #e5484d; font-size: 12px; font-weight: 800; }
.xs-footer-copy { margin: 0; font-size: 13px; }

/* ---------- Dock / toast ---------- */
.xs-bottombar { display: none; }
.xs-toast { position: fixed; left: 50%; bottom: calc(var(--xs-bar-h) + 18px); transform: translateX(-50%); background: var(--xs-text); color: var(--xs-bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 200; box-shadow: var(--xs-shadow-lg); animation: xs-pop .2s var(--xs-ease); }

/* ---------- v3.1: placeholders, save, sheet, most read, byline, up next, mode ---------- */
.xs-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	background: linear-gradient(135deg, hsl(var(--xs-ph-h, 150) 55% 38%), hsl(calc(var(--xs-ph-h, 150) + 40) 60% 18%)); }
.xs-ph span { font: 800 clamp(22px, 4vw, 40px)/1 var(--xs-font-display); color: rgba(255,255,255,.55); letter-spacing: -.02em; }
.xs-card.is-feature .xs-ph { align-items: start; justify-items: end; padding: 18px 70px 0 0; }
.xs-card.is-feature .xs-ph span { font-size: 96px; opacity: .3; }

.xs-round-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--xs-soft); color: var(--xs-text); transition: transform .15s var(--xs-ease), background .2s; }
.xs-round-btn:active { transform: scale(.9); }
@media (hover: hover) { .xs-round-btn:hover { background: color-mix(in srgb, var(--xs-accent) 14%, var(--xs-soft)); } }
.xs-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font: 700 11px/18px var(--xs-font); text-align: center; box-shadow: 0 0 0 2px var(--xs-bg); }

.xs-save { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--xs-soft); color: var(--xs-text); transition: transform .15s var(--xs-ease), background .2s, color .2s; }
.xs-save .xs-ico { transition: fill .2s; }
.xs-save.is-saved { color: var(--xs-accent); }
.xs-save.is-saved .xs-ico { fill: currentColor; }
.xs-save.is-pop { animation: xs-bounce .4s var(--xs-ease); }
@keyframes xs-bounce { 40% { transform: scale(1.25); } }
.xs-save.is-on-card { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; background: rgba(0,0,0,.35); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.xs-save.is-on-card.is-saved { background: #fff; color: var(--xs-accent); }
@media (hover: hover) { .xs-card .xs-save.is-on-card { opacity: 0; } .xs-card:hover .xs-save.is-on-card, .xs-save.is-on-card.is-saved, .xs-save.is-on-card:focus-visible { opacity: 1; } }
.xs-card.is-feature .xs-save.is-on-card { top: 16px; right: 16px; }

/* Bottom sheet (Saved) */
.xs-sheet { position: fixed; inset: 0; z-index: 100; background: var(--xs-overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: flex-end; padding: 80px var(--xs-pad) 0; animation: xs-fade .18s ease; }
.xs-sheet-panel { width: 100%; max-width: 420px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--xs-surface); border-radius: var(--xs-r-lg); padding: 8px 16px 16px; box-shadow: var(--xs-shadow-lg); animation: xs-pop .22s var(--xs-ease); }
.xs-sheet-grip { display: none; }
.xs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 8px; }
.xs-sheet-head h2 { font-size: 20px; margin: 0; }
.xs-saved-item { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--xs-line); }
.xs-saved-item a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.xs-saved-item img, .xs-saved-item .xs-ph { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; min-height: 0; }
.xs-saved-item .xs-ph span { font-size: 20px; }
.xs-saved-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; font-weight: 600; }
.xs-saved-item em { display: block; font-style: normal; font-size: 12px; color: var(--xs-accent); font-weight: 600; margin-top: 3px; }
.xs-saved-remove { flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--xs-muted); font-size: 22px; line-height: 1; }
.xs-saved-remove:hover { background: var(--xs-soft); color: var(--xs-text); }
.xs-saved-empty { color: var(--xs-muted); font-size: 15px; margin: 8px 0 4px; }

/* Most read */
.xs-trending { list-style: none; margin: 0; padding: 6px 18px; background: var(--xs-surface); border-radius: var(--xs-r-lg); box-shadow: var(--xs-shadow); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; counter-reset: none; }
.xs-trending li { border-bottom: 1px solid var(--xs-line); }
.xs-trending li:nth-last-child(-n+1) { border-bottom: 0; }
@media (min-width: 601px) { .xs-trending li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.xs-trending a { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.xs-rank { flex: none; width: 34px; font: 800 30px/1 var(--xs-font-display); letter-spacing: -.04em; background: var(--xs-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.xs-trending-text { min-width: 0; }
.xs-trending-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 15.5px/1.35 var(--xs-font-display); letter-spacing: -.01em; }
.xs-trending-cat { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--xs-muted); }
@media (hover: hover) { .xs-trending a:hover .xs-trending-title { color: var(--xs-accent); } }

/* Article byline */
.xs-standfirst { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--xs-muted); margin: 0 0 18px; }
.xs-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 10px 10px 10px 12px; background: var(--xs-surface); border-radius: var(--xs-r); box-shadow: var(--xs-shadow); }
.xs-byline-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.xs-byline-who .xs-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.xs-byline-who strong { display: block; font-size: 15px; line-height: 1.2; }
.xs-byline-meta { display: block; font-size: 13px; color: var(--xs-muted); margin-top: 2px; }
.xs-byline-actions { display: flex; gap: 8px; flex: none; }
.xs-article-media figcaption { font-size: 13px; color: var(--xs-muted); margin-top: 8px; padding: 0 4px; }

/* Up next + more */
.xs-upnext { margin-top: 40px; }
.xs-upnext-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--xs-accent); margin: 0 0 10px; }
.xs-upnext .xs-card.is-feature { min-height: 340px; }
.xs-grid.is-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xs-related .xs-h { margin-bottom: 14px; }

/* Footer bottom + appearance switch */
.xs-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xs-mode { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--xs-soft); }
.xs-mode button { border: 0; background: none; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--xs-muted); }
.xs-mode button[aria-checked="true"] { background: var(--xs-surface); color: var(--xs-text); box-shadow: var(--xs-shadow), inset 0 0 0 1px var(--xs-line); }

/* Compact search + tighter menu */
@media all { /* compact search button at every width: 8-item menus never collide */
	.xs-search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
	.xs-search-label, .xs-search-trigger kbd { display: none; }
	.xs-header-inner { gap: 12px; }
	.xs-nav-list a { padding: 0 10px; font-size: 14px; }
}

/* ==========================================================================
   Tablet & phone (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.xs-header-inner { flex-wrap: wrap; height: auto; column-gap: 8px; }
	.xs-brand { height: 58px; display: flex; align-items: center; }
	.xs-search-trigger { min-width: 0; width: 42px; height: 42px; padding: 0; justify-content: center; }
	.xs-actions { gap: 6px; }
	.xs-search-label, .xs-search-trigger kbd { display: none; }
	.xs-nav {
		order: 3; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--xs-pad);
		margin: 0 calc(-1 * var(--xs-pad)); padding: 0 var(--xs-pad) 10px; flex: 0 0 calc(100% + 2 * var(--xs-pad));
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
		        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	}
	.xs-nav::-webkit-scrollbar { display: none; }
	.xs-nav-list { gap: 6px; padding-right: 24px; }
	.xs-nav-list > li { scroll-snap-align: start; }
	.xs-nav-list a { height: 36px; padding: 0 14px; font-size: 14px; background: var(--xs-soft); color: var(--xs-text); }
	.xs-nav-list .current-menu-item > a, .xs-nav-list .current_page_item > a { background: var(--xs-text); color: var(--xs-bg); box-shadow: none; }
	.xs-nav-list .sub-menu { display: none !important; }

	body.xs-tuck .xs-header { transform: translateY(-100%); }

	.xs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.xs-card.is-feature { grid-row: auto; min-height: 400px; }

	.has-sidebar .xs-layout { grid-template-columns: minmax(0, 1fr); }
	.xs-sidebar { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .xs-header, .admin-bar .xs-progress { top: 0; }
}

/* Phones & small tablets: floating dock */
@media (max-width: 768px) {
	:root { --xs-bar-h: calc(84px + env(safe-area-inset-bottom)); }
	.xs-bottombar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
		height: 64px; padding: 6px; border-radius: 22px;
		background: var(--xs-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
		box-shadow: var(--xs-shadow-lg), inset 0 0 0 1px var(--xs-line);
		transition: transform .3s var(--xs-ease), opacity .3s;
		max-width: 520px; margin: 0 auto;
	}
	.xs-bottombar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; font-size: 10.5px; font-weight: 600; color: var(--xs-muted); min-width: 0; transition: color .2s, background .2s, transform .15s; }
	.xs-bottombar a:active { transform: scale(.9); }
	.xs-bottombar a.is-active { color: var(--xs-accent); background: color-mix(in srgb, var(--xs-accent) 12%, transparent); }
	.xs-bottombar .xs-ico { width: 22px; height: 22px; }
	body.xs-tuck .xs-bottombar { transform: translateY(calc(100% + 24px)); }
	body.xs-typing .xs-bottombar { display: none; }
}

/* Phones */
@media (max-width: 600px) {
	.xs-wordmark { font-size: 23px; }
	.xs-trending { grid-template-columns: minmax(0, 1fr); padding: 2px 16px; }
	.xs-trending li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--xs-line); }
	.xs-sheet { align-items: flex-end; padding: 0; }
	.xs-sheet-panel { max-width: none; border-radius: 24px 24px 0 0; max-height: 82vh; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: xs-up .28s var(--xs-ease); }
	.xs-sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--xs-line); margin: 4px auto 4px; }
	.xs-byline { padding: 8px 8px 8px 10px; }
	.xs-byline-who .xs-avatar { width: 38px; height: 38px; }
	.xs-grid.is-related { grid-template-columns: minmax(0, 1fr); }
	.xs-upnext .xs-card.is-feature { aspect-ratio: 4 / 3; min-height: 0; }
	.xs-footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
	.xs-btn-vip { min-height: 36px; padding: 0 14px; font-size: 14px; }
	.xs-section { padding-top: 26px; }
	.xs-h { font-size: 24px; }
	.xs-box { padding: 4px 14px; border-radius: var(--xs-r); }

	.xs-search { padding: 0; background: var(--xs-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.xs-search-panel { border-radius: 0; box-shadow: none; max-width: none; height: 100%; overflow-y: auto; padding: 12px var(--xs-pad); background: var(--xs-bg); }
	.xs-search-panel .xs-searchform { background: var(--xs-surface); box-shadow: inset 0 0 0 1px var(--xs-line); }

	.xs-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.xs-card.is-feature { grid-column: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 520px; border-radius: var(--xs-r-lg); }
	.xs-card.is-feature .xs-card-body { padding: 20px; }
	.xs-card.is-feature .xs-card-title { font-size: 25px; }
	.xs-grid .xs-card.is-card { flex-direction: row; align-items: stretch; padding: 10px; gap: 12px; }
	.xs-grid .xs-card.is-card .xs-card-media { width: 108px; aspect-ratio: 1; flex: none; border-radius: 12px; order: 2; }
	.xs-grid .xs-card.is-card .xs-card-body { padding: 4px 0 4px 4px; }
	.xs-grid .xs-card.is-card .xs-card-title { font-size: 16px; margin-bottom: 8px; }
	.xs-loadmore .xs-btn { width: 100%; }

	.xs-article-media { margin-left: calc(-1 * var(--xs-pad)); margin-right: calc(-1 * var(--xs-pad)); }
	.xs-article-media img { border-radius: 0; }
	.xs-prose { font-size: 17.5px; }
	.xs-share .xs-btn { flex: 1; }
	.xs-footer { margin-top: 40px; padding-top: 0; }
	.xs-footer .xs-wrap { max-width: none; border-radius: var(--xs-r-lg) var(--xs-r-lg) 0 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after, ::view-transition-group(*) { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.xs-header, .xs-bottombar, .xs-share, .xs-ad, .xs-related, .xs-comments, .xs-footer, .xs-sidebar, .xs-progress { display: none !important; }
}

/* ---------- 3.1.1: XScore Bet Tips board inside the homepage tips box ---------- */
/* The board brings its own cards, so drop the box frame around it (no card-in-a-card). */
.xs-box:has(.xscore-bt) { background: none; box-shadow: none; padding: 0; overflow: visible; border-radius: 0; }
.xs-prose .xscore-bt, .xs-prose .xscore-bt * + * { margin-top: 0; }
.xs-prose .xscore-bt a { text-decoration: none; }

/* =====================================================================
   3.2 — Style presets (Customize → XScore → Site style, or ?xs_style=…)
   Selectors use html.xs-style-X:root so they beat the default and
   dark-mode palettes; light/dark variants are spelled out per style.
   ===================================================================== */

/* ---------- NIGHT: always dark, neon green ---------- */
html.xs-style-night:root, html.xs-style-night:root[data-mode] {
	--xs-accent: #22e07a; --xs-accent-2: #b8f53d;
	--xs-bg: #05070a; --xs-surface: #0f1318; --xs-soft: #1a1f27; --xs-text: #eef2f7; --xs-muted: #8b95a5;
	--xs-line: rgba(255,255,255,.08); --xs-glass: rgba(8,11,15,.78);
	--xs-shadow: 0 0 0 1px rgba(255,255,255,.04); --xs-shadow-lg: 0 20px 60px rgba(0,0,0,.7); --xs-overlay: rgba(0,0,0,.7);
	color-scheme: dark;
}
html.xs-style-night .xs-btn-vip, html.xs-style-night .xs-searchform button, html.xs-style-night .comment-form .submit { color: #04140a; }
html.xs-style-night .xs-mode { display: none; }
html.xs-style-night .xs-card.is-feature .xs-card-media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(5,7,10,.5) 55%, rgba(5,7,10,.95) 100%); }
html.xs-style-night .xs-h, html.xs-style-night .xs-article-title { letter-spacing: -.035em; }
html.xs-style-night .xs-section-head .xs-h::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--xs-grad); }

/* ---------- HARAMBEE: black header, Kenya stripe, red highlights ---------- */
html.xs-style-harambee:root {
	--xs-accent: #c8102e; --xs-accent-2: #ef4444;
	--xs-bg: #f5f3ee; --xs-surface: #ffffff; --xs-soft: #ece8df; --xs-text: #111111; --xs-muted: #5f5a52;
	--xs-line: rgba(17,17,17,.09);
}
@media (prefers-color-scheme: dark) {
	html.xs-style-harambee:root:not([data-mode="light"]) { --xs-bg: #0a0a0a; --xs-surface: #161616; --xs-soft: #232323; --xs-text: #f4f4f4; --xs-muted: #9a9a9a; --xs-line: rgba(255,255,255,.09); }
}
html.xs-style-harambee:root[data-mode="dark"] { --xs-bg: #0a0a0a; --xs-surface: #161616; --xs-soft: #232323; --xs-text: #f4f4f4; --xs-muted: #9a9a9a; --xs-line: rgba(255,255,255,.09); }
html.xs-style-harambee .xs-header {
	background: #0b0b0b; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; color: #fff;
	box-shadow: 0 3px 0 #c8102e, 0 5px 0 #ffffff, 0 8px 0 #0a7a3f;
}
html.xs-style-harambee .xs-wordmark { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ef4444; }
html.xs-style-harambee .xs-wordmark span { color: #fff; -webkit-text-fill-color: #fff; }
html.xs-style-harambee .xs-nav-list a { color: rgba(255,255,255,.72); }
html.xs-style-harambee .xs-nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
html.xs-style-harambee .xs-nav-list .current-menu-item > a, html.xs-style-harambee .xs-nav-list .current_page_item > a { background: #fff; color: #0b0b0b; box-shadow: none; }
html.xs-style-harambee .xs-search-trigger, html.xs-style-harambee .xs-header .xs-round-btn { background: rgba(255,255,255,.1); color: #fff; }
html.xs-style-harambee .xs-badge { box-shadow: 0 0 0 2px #0b0b0b; }
html.xs-style-harambee .xs-h { text-transform: uppercase; letter-spacing: -.01em; font-weight: 850; }
html.xs-style-harambee .xs-section-head .xs-h::before { content: ""; display: inline-block; width: 6px; height: .9em; margin-right: 10px; vertical-align: -2px; border-radius: 2px; background: linear-gradient(#c8102e 0 50%, #0a7a3f 50% 100%); }
html.xs-style-harambee .xs-card-cat { background: rgba(200,16,46,.1); color: #c8102e; }
@media (max-width: 1024px) {
	html.xs-style-harambee .xs-nav-list a { background: rgba(255,255,255,.08); color: #fff; }
	html.xs-style-harambee .xs-nav-list .current-menu-item > a, html.xs-style-harambee .xs-nav-list .current_page_item > a { background: #fff; color: #0b0b0b; }
}

/* ---------- ROYAL: navy & gold ---------- */
html.xs-style-royal:root, html.xs-style-royal:root[data-mode] {
	--xs-accent: #d4af37; --xs-accent-2: #f6d77a;
	--xs-bg: #0a1128; --xs-surface: #111a36; --xs-soft: #1a2547; --xs-text: #eef2ff; --xs-muted: #9aa6c8;
	--xs-line: rgba(255,255,255,.08); --xs-glass: rgba(10,17,40,.8);
	--xs-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.25); --xs-shadow-lg: 0 20px 60px rgba(0,0,0,.6); --xs-overlay: rgba(3,6,18,.7);
	color-scheme: dark;
}
html.xs-style-royal .xs-btn-vip, html.xs-style-royal .xs-searchform button, html.xs-style-royal .comment-form .submit { color: #1a1300; }
html.xs-style-royal .xs-mode { display: none; }
html.xs-style-royal .xs-h, html.xs-style-royal .xs-article-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em; }
html.xs-style-royal .xs-card { box-shadow: var(--xs-shadow), inset 0 0 0 1px rgba(212,175,55,.08); }
html.xs-style-royal .xs-card-cat { background: rgba(212,175,55,.14); color: #f6d77a; }
html.xs-style-royal .xs-header { border-bottom-color: rgba(212,175,55,.18); }

/* ---------- SUNRISE: warm cream, orange to rose ---------- */
html.xs-style-sunrise:root {
	--xs-accent: #ea580c; --xs-accent-2: #f43f5e;
	--xs-bg: #fff8f1; --xs-surface: #ffffff; --xs-soft: #fdeee2; --xs-text: #1c1917; --xs-muted: #78716c;
	--xs-line: rgba(28,25,23,.08); --xs-glass: rgba(255,248,241,.8);
	--xs-r-lg: 28px; --xs-r: 22px;
}
@media (prefers-color-scheme: dark) {
	html.xs-style-sunrise:root:not([data-mode="light"]) { --xs-bg: #120d0a; --xs-surface: #1d1612; --xs-soft: #2a201a; --xs-text: #fbf4ee; --xs-muted: #a8988b; --xs-line: rgba(255,255,255,.08); --xs-glass: rgba(18,13,10,.8); }
}
html.xs-style-sunrise:root[data-mode="dark"] { --xs-bg: #120d0a; --xs-surface: #1d1612; --xs-soft: #2a201a; --xs-text: #fbf4ee; --xs-muted: #a8988b; --xs-line: rgba(255,255,255,.08); --xs-glass: rgba(18,13,10,.8); }
html.xs-style-sunrise .xs-card-cat { background: rgba(234,88,12,.1); color: #ea580c; }

/* ---------- The XScore Bet Tips board (plugin 3.8 Modern) follows the style ---------- */
/* Extra classes in the selector so these win over the plugin's own light/dark rules. */
html.xs-style-night body .xscore-bt.is-modern.xscore-bt {
	--m-card: #0f1318; --m-soft: #1a1f27; --m-soft-2: #252b35; --m-line: rgba(255,255,255,.08);
	--m-ink: #eef2f7; --m-text: #dfe5ee; --m-mute: #8b95a5; --m-faint: #6f7a8c;
	--m-shadow: 0 0 0 1px rgba(255,255,255,.03); --m-shadow-lg: 0 20px 60px rgba(0,0,0,.7);
	--m-won: #4ade80; --m-won-bg: rgba(74,222,128,.12); --m-lost: #f87171; --m-lost-bg: rgba(248,113,113,.12);
	--m-soon: #fbbf24; --m-soon-bg: rgba(251,191,36,.12); --m-banker-bg: rgba(184,245,61,.06);
	--m-acc: #22e07a; --m-grad: linear-gradient(135deg, #059669, #16b364);
}
html.xs-style-harambee body .xscore-bt.is-modern.xscore-bt { --m-acc: #0a7a3f; --m-grad: linear-gradient(135deg, #0a7a3f, #13a05a); }
html.xs-style-harambee body .xscore-bt.is-modern .xscore-bt-days button.active i { background: #c8102e; }
html.xs-style-royal body .xscore-bt.is-modern.xscore-bt {
	--m-card: #111a36; --m-soft: #1a2547; --m-soft-2: #24315a; --m-line: rgba(255,255,255,.08);
	--m-ink: #eef2ff; --m-text: #dde3f7; --m-mute: #9aa6c8; --m-faint: #7884a8;
	--m-shadow: 0 8px 24px rgba(0,0,0,.25); --m-shadow-lg: 0 20px 60px rgba(0,0,0,.6);
	--m-won: #4ade80; --m-won-bg: rgba(74,222,128,.12); --m-lost: #f87171; --m-lost-bg: rgba(248,113,113,.12);
	--m-soon: #f6d77a; --m-soon-bg: rgba(246,215,122,.12); --m-banker-bg: rgba(212,175,55,.08); --m-gold: #d4af37;
	--m-acc: #d4af37; --m-grad: linear-gradient(135deg, #1e3a8a, #3655c8);
}
html.xs-style-royal body .xscore-bt.is-modern .xscore-bt-odds-btn.is-in,
html.xs-style-royal body .xscore-bt.is-modern button.xscore-bt-odds-btn.is-in:hover { background: linear-gradient(135deg, #d4af37, #f6d77a) !important; color: #1a1300 !important; }
html.xs-style-royal body .xscore-bt.is-modern .xscore-bt-odds-btn.is-in .xscore-bt-odds-act { color: #1a1300; }
html.xs-style-royal body .xscore-bt.is-modern .xscore-bt-return-val { color: #f6d77a; }
html.xs-style-sunrise body .xscore-bt.is-modern.xscore-bt { --m-acc: #ea580c; --m-grad: linear-gradient(135deg, #ea580c, #f43f5e); --m-r: 22px; }

/* 4.0: logo mark shows only in the Bookmaker style */
.xs-mark { display: none; }
