/*
Theme Name: Flatsome Vaobong888
Description: Flatsome child for vaobong888.net — contrast, reading measure, flatter cards (wave 4 UI pass). Brand colours kept; only shades adjusted for contrast.
Template: flatsome
Version: 1.0.0
Text Domain: flatsome-vaobong
*/

/* Selectors carry a leading "body" so the result does not depend on the order the CSS files end up in
   (mu-plugin CSS vs. Flatsome vs. this file, combined or not). */

/* ---------- Header / footer (Flatsome customizer colours, darker shade for 4.5:1) ---------- */
body .header-top { background-color: #4169b0; }
body .header-top .nav > li > a,
body .header-top .nav > li.html strong { color: #fff; }
body .header-button .button.secondary:not(.is-outline) { background-color: #ad4f2c; color: #fff; }
body .header-button .button.secondary.is-outline { border-color: #ad4f2c; color: #ad4f2c; }
body .header-button .button.secondary.is-outline:hover { background-color: #ad4f2c; color: #fff; }
/* Mobile: the buttons sit on the dark bottom bar (#023b6d). */
body .header-bottom .header-button .button.secondary.is-outline { border-color: #fff; color: #fff; }
body .absolute-footer,
body .copyright-footer,
body .copyright-footer strong { color: #e8e8e8; }

/* ---------- Shared ---------- */
body .b8-button-primary,
body .b8-article-content .wp-block-button__link { color: #17212b !important; box-shadow: none; }
body .b8-homepage p,
body .b8-content-page p,
body .b8-content-page li { text-wrap: pretty; }
body .b8-homepage h2,
body .b8-homepage h3,
body .b8-content-page h2,
body .b8-content-page h3 { text-wrap: balance; }

/* ---------- Front page ---------- */
/* Flat background: the two radial glows are decoration. */
body.b8-landing,
body .b8-homepage { background: linear-gradient(180deg, #08141d 0%, #0c1c28 42%, #07141d 100%); }

body .b8-hero-points li { display: block; position: relative; padding-left: 26px; }
body .b8-hero-points li::before { position: absolute; left: 4px; top: 0.6em; box-shadow: none; }
body .b8-hero-frame::before { display: none; }
body .b8-mini-card strong { display: block; }

body .b8-chip-title {
	color: #fff7e3;
	font-family: var(--b8-title-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	text-wrap: balance;
}

/* ---------- Content pages (single + archive) ---------- */
/* The template is built for a dark page; Flatsome paints #main white behind the hero (h1 #00ffcc on white = 1.3:1). */
body main.b8-content-page { background: linear-gradient(180deg, #08141d 0%, #0c1b27 45%, #07141d 100%); }

/* Cards inside cards: keep the outer card, flatten what sits inside it. */
body .b8-article-card .b8-inline-cta {
	background: none;
	border: 0;
	border-top: 1px solid var(--b8-content-border);
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}
body .b8-article-card .b8-post-card,
body .b8-archive-card .b8-post-card {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	overflow: visible;
}
body .b8-post-card-media img { border-radius: 14px; }
body .b8-post-card-body { padding: 14px 0 0; }
body .b8-sidebar-card,
body .b8-archive-card {
	background: none;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
	padding: 0;
	overflow: visible;
}
body .b8-related-posts .b8-section-head h2 { color: #00ffcc; }

/* Reading measure ~70 characters; media and tables keep the full column. */
body .b8-article-content { font-size: 1.0625rem; }
body .b8-article-content > p,
body .b8-article-content > ul,
body .b8-article-content > ol,
body .b8-article-content > blockquote,
body .b8-article-content > h2,
body .b8-article-content > h3,
body .b8-article-content > h4 { max-width: 68ch; }
body .b8-article-content figure,
body .b8-article-content .wp-caption { max-width: 100% !important; }
body .b8-article-content img { max-width: 100%; height: auto; }

/* Table of contents box (plugin default is a light grey panel inside the dark card). */
body .b8-article-content #toc_container {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--b8-content-border);
}
body .b8-article-content #toc_container .toc_title { color: #00ffcc; }
body .b8-article-content #toc_container .toc_toggle a,
body .b8-article-content #toc_container .toc_list a { color: #ffcf6a; }

body .b8-article-content table td,
body .b8-article-content table th { color: var(--b8-content-muted); }

/* ---------- Mobile: 16px side margins ---------- */
@media (max-width: 780px) {
	body .b8-shell,
	body .b8-content-shell { width: calc(100% - 32px); }
}
