/*
Theme Name: Vibrance
Theme URI: https://vibrancegui.ph/
Author: VibranceGUI.ph
Description: Fast, long-form guide theme for VibranceGUI. Dark header with a gradient highlight bar, styled headings, tables, code blocks, notes, FAQ, pros/cons, download box and automatic table of contents. Colors and app details are editable under Appearance > Customize > Vibrance Theme.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: vibrance
*/

/* ---------- Tokens ---------- */
:root {
	--vg-primary: #1e3a8a;
	--vg-accent: #2563eb;
	--vg-accent2: #0ea5e9;
	--vg-header: #0b1220;
	--vg-green: #0f9d58;
	--vg-blue: #2563eb;
	--vg-cyan: #38bdf8;
	--vg-text: #0f172a;
	--vg-muted: #475569;
	--vg-bg: #f5f7fb;
	--vg-surface: #ffffff;
	--vg-tint: #eef3fd;
	--vg-border: #dde4ee;
	--vg-gradient: linear-gradient(90deg, var(--vg-primary), var(--vg-accent));
	--vg-radius: 10px;
	--vg-shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 22px rgba(11, 18, 32, .07);
	--vg-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--vg-wide: 1200px;
	--vg-narrow: 980px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--vg-bg);
	color: var(--vg-text);
	font-family: var(--vg-font);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--vg-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vg-accent); }
:focus-visible { outline: 3px solid var(--vg-accent); outline-offset: 2px; }
.vg-icon { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }
.screen-reader-text, .vg-skip:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.vg-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
.vg-container { width: 100%; max-width: var(--vg-wide); margin: 0 auto; padding: 0 20px; }
.vg-narrow { max-width: var(--vg-narrow); }
.vg-center { text-align: center; }

/* ---------- Progress bar ---------- */
.vg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.vg-progress span { display: block; height: 100%; width: 0; background: var(--vg-gradient); }
.admin-bar .vg-progress { top: 32px; }

/* ---------- Header ---------- */
.vg-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(11, 18, 32, .18); }
.admin-bar .vg-header { top: 32px; }
.vg-topbar { background: var(--vg-header); color: #fff; }
.vg-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.vg-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.vg-brand:hover { color: #fff; }
.vg-logo-img { max-height: 46px; width: auto; }
.vg-brand-name span { color: #60a5fa; }
.vg-mark { border-radius: 11px; box-shadow: 0 2px 10px rgba(37, 99, 235, .35); }
.vg-mark { display: block; flex: none; }

.vg-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.vg-nav-primary .vg-menu { gap: 4px; }
.vg-nav-primary .vg-menu > li { position: relative; }
.vg-nav-primary a {
	display: block; padding: 8px 12px; border-radius: 8px;
	color: rgba(255, 255, 255, .92); font-size: .94rem; font-weight: 500; text-decoration: none;
}
.vg-nav-primary a:hover, .vg-nav-primary .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .1); }
.vg-nav-primary .sub-menu {
	display: none; position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px;
	background: var(--vg-header); border-radius: 10px; box-shadow: var(--vg-shadow);
}
.vg-nav-primary li:hover > .sub-menu, .vg-nav-primary li:focus-within > .sub-menu { display: block; }
.vg-nav-primary .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.vg-nav-primary .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; }
.vg-nav-primary .sub-menu { border: 1px solid rgba(255, 255, 255, .08); }
.vg-nav-primary .sub-menu a { padding: 10px 12px; }
.vg-nav-primary .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.vg-navbar { background: var(--vg-gradient); }
.vg-menu--bar { justify-content: space-around; gap: 4px 10px; min-height: 42px; }
.vg-menu--bar a {
	display: block; padding: 6px 14px; border-radius: 999px;
	color: #fff; font-size: .9rem; font-weight: 500; text-decoration: none;
}
.vg-menu--bar a:hover, .vg-menu--bar .current-menu-item > a { background: rgba(255, 255, 255, .18); color: #fff; }

.vg-menu-toggle {
	display: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
	width: 44px; height: 44px; border-radius: 10px; font-size: 1.35rem; cursor: pointer; align-items: center; justify-content: center;
}
.vg-mobile-nav { background: var(--vg-header); border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 16px 16px; max-height: calc(100vh - 66px); overflow-y: auto; }
.vg-mobile-nav[hidden] { display: none; }
.vg-menu--mobile { flex-direction: column; align-items: stretch; }
.vg-menu--mobile + .vg-menu--mobile { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; padding-top: 6px; }
.vg-menu--mobile .sub-menu { list-style: none; padding-left: 14px; }
.vg-menu--mobile a { display: block; padding: 11px 6px; color: #fff; text-decoration: none; font-weight: 500; }

/* ---------- Article ---------- */
.vg-main { padding: 26px 0 56px; min-height: 50vh; }
.vg-breadcrumbs { font-size: .85rem; color: var(--vg-muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.vg-breadcrumbs a { color: var(--vg-muted); text-decoration: none; }
.vg-breadcrumbs a:hover { color: var(--vg-accent); }
.vg-entry-header { text-align: center; margin: 8px 0 22px; }
.vg-entry-title {
	margin: 0 0 10px; color: var(--vg-primary);
	font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.25rem); line-height: 1.3; font-weight: 700; letter-spacing: -.015em;
	text-wrap: balance;
}
.vg-entry-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--vg-muted); }
.vg-entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vg-entry-meta .vg-icon { color: var(--vg-accent); }
.vg-featured { margin: 0 0 24px; }
.vg-featured img { border-radius: var(--vg-radius); display: block; width: 100%; }

.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content strong { color: #0b1220; font-weight: 600; }
.entry-content :where(a:not(.vg-btn)) { font-weight: 600; color: var(--vg-primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--vg-accent) 55%, transparent); }
.entry-content :where(a:not(.vg-btn)):hover { color: var(--vg-accent); }

/* Code */
.entry-content code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .88em; background: var(--vg-tint); color: #1e3a8a; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.entry-content pre, .entry-content .wp-block-code {
	margin: 0 0 1.4em; padding: 14px 18px; border-radius: var(--vg-radius); background: var(--vg-header); color: #f3eaff;
	border-left: 4px solid var(--vg-accent); overflow-x: auto; font-size: .92rem; line-height: 1.6; box-shadow: var(--vg-shadow);
}
.entry-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image { margin: 1.4em 0 1.6em; }
.entry-content .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--vg-border); box-shadow: var(--vg-shadow); background: #fff; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { text-align: center; font-size: .85rem; color: var(--vg-muted); margin-top: 8px; }
.entry-content hr { border: 0; height: 2px; background: var(--vg-gradient); opacity: .35; margin: 2em 0; }
.entry-content blockquote {
	margin: 1.5em 0; padding: 16px 22px; background: var(--vg-tint); border-left: 4px solid var(--vg-accent);
	border-radius: 0 var(--vg-radius) var(--vg-radius) 0; font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* H2: framed card with icon (like the reference, recolored) */
.entry-content h2 {
	position: relative; margin: 2.1em 0 .9em; padding: 14px 20px;
	background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: var(--vg-radius);
	box-shadow: var(--vg-shadow); color: var(--vg-primary);
	font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); line-height: 1.35; font-weight: 600; text-align: center; text-wrap: balance;
	overflow: hidden;
}
.entry-content h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--vg-gradient); }
.entry-content h3 { letter-spacing: .005em; }
.entry-content h2::before, .entry-content h3::before { display: none; }
.vg-unused-icon {
	content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .45em; vertical-align: -0.08em;
	background: currentColor;
	-webkit-mask: var(--vg-spark) center / contain no-repeat; mask: var(--vg-spark) center / contain no-repeat;
}
.entry-content h2::before { background: var(--vg-accent); }
:root {
	--vg-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 7.9 7.9 2.6-7.9 2.6L12 22.5l-2.6-7.9L1.5 12l7.9-2.6z'/%3E%3C/svg%3E");
}

/* H3: solid bar */
.entry-content h3 {
	margin: 1.8em 0 .8em; padding: 9px 16px; border-radius: 10px;
	background: var(--vg-primary); color: #fff;
	font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.45; font-weight: 600; text-align: center;
}
.entry-content h4 {
	margin: 1.6em 0 .6em; color: var(--vg-primary); font-size: 1.1rem; font-weight: 600;
	padding-left: 12px; border-left: 4px solid var(--vg-accent);
}
.entry-content h5, .entry-content h6 { margin: 1.4em 0 .5em; font-size: 1rem; color: var(--vg-primary); }

/* Lists */
.entry-content ul:not([class*="vg-"]), .entry-content ol:not([class*="vg-"]) { padding-left: 0; list-style: none; }
.entry-content ul:not([class*="vg-"]) > li, .entry-content ol:not([class*="vg-"]) > li { position: relative; padding-left: 34px; margin-bottom: .55em; }
.entry-content ul:not([class*="vg-"]) > li::before {
	content: ""; position: absolute; left: 10px; top: .68em; width: 8px; height: 8px; border-radius: 50%;
	background: var(--vg-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vg-accent) 18%, transparent);
}
.entry-content ol:not([class*="vg-"]) { counter-reset: vg; }
.entry-content ol:not([class*="vg-"]) > li { counter-increment: vg; }
.entry-content ol:not([class*="vg-"]) > li::before {
	content: counter(vg); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
	background: var(--vg-gradient); color: #fff; font-size: .78rem; font-weight: 600; line-height: 24px; text-align: center;
}
.entry-content li > ul, .entry-content li > ol { margin-top: .5em; }

/* Tables */
.vg-table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--vg-radius); box-shadow: var(--vg-shadow); border: 1px solid var(--vg-border); background: var(--vg-surface); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; margin: 0; }
.entry-content table.has-fixed-layout { table-layout: auto; }
/* Never split words mid-way inside table cells (overrides the block library). */
.entry-content table th, .entry-content table td, .entry-content .wp-block-table .has-fixed-layout th, .entry-content .wp-block-table .has-fixed-layout td { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
.entry-content table code { overflow-wrap: anywhere; }
.vg-table-wrap table:has(tr > :nth-child(3)) { min-width: 560px; }
.vg-table-wrap table:has(tr > :nth-child(4)) { min-width: 720px; }
.vg-table-wrap table:has(tr > :nth-child(5)) { min-width: 860px; }
.entry-content .wp-block-table { margin: 0 0 1.4em; }
.entry-content .wp-block-table .vg-table-wrap { margin: 0; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--vg-border); }
.entry-content thead th, .entry-content thead td,
.entry-content table:not(:has(thead)) tr:first-child > th,
.entry-content table:not(:has(thead)) tr:first-child > td {
	background: var(--vg-primary); color: #fff; font-weight: 600; text-align: center; border-bottom: 0;
}
.entry-content tbody tr:nth-child(even) { background: #f8fafd; }
.entry-content table:not(:has(thead)) tr:nth-child(even) { background: #f8fafd; }
.entry-content tbody tr:hover { background: var(--vg-tint); }
.entry-content td:first-child { font-weight: 600; color: #0b1220; }
.entry-content tr:last-child > td { border-bottom: 0; }

/* ---------- Buttons ---------- */
.vg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 1.6em; }
.vg-btns p { margin: 0; display: contents; }
.vg-btns br { display: none; }
.vg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 10px; border: 0;
	color: #fff !important; font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none !important;
	background: var(--vg-primary); box-shadow: 0 4px 14px rgba(11, 18, 32, .18);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; cursor: pointer;
}
.vg-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 8px 22px rgba(11, 18, 32, .22); }
.vg-btn small { font-weight: 500; opacity: .85; }
.vg-btn--green { background: linear-gradient(135deg, #12b76a, var(--vg-green)); }
.vg-btn--pink { background: linear-gradient(135deg, #ff4d9d, var(--vg-accent)); }
.vg-btn--violet { background: linear-gradient(135deg, var(--vg-accent2), var(--vg-primary)); }
.vg-btn--blue { background: linear-gradient(135deg, var(--vg-cyan), var(--vg-blue)); }
.vg-btn--dark { background: var(--vg-header); }
.vg-btn--lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.vg-btn--block { display: flex; width: 100%; }

/* ---------- APK info card ---------- */
.vg-app-card {
	position: relative; margin: 0 0 1.8em; padding: 22px; border-radius: 16px;
	background: var(--vg-surface); border: 1px solid var(--vg-border); box-shadow: var(--vg-shadow); overflow: hidden;
}
.vg-app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--vg-gradient); }
.vg-app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.vg-app-icon { width: 96px; height: 96px; border-radius: 22px; flex: none; display: block; box-shadow: 0 6px 18px rgba(30, 58, 138, .25); overflow: hidden; }
.vg-app-icon svg { width: 100%; height: 100%; display: block; }
.vg-app-title p { margin: 0 0 4px; }
.vg-app-name { font-size: 1.35rem; font-weight: 700; color: var(--vg-primary); line-height: 1.3; }
.vg-app-ver { font-size: .8rem; font-weight: 600; color: var(--vg-accent); background: color-mix(in srgb, var(--vg-accent) 10%, #fff); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.vg-app-rating { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--vg-muted); }
.vg-app-rating strong { color: var(--vg-text); }
.vg-stars { position: relative; display: inline-block; width: 90px; height: 18px; background: #e3def3; -webkit-mask: var(--vg-star) left / 18px 18px repeat-x; mask: var(--vg-star) left / 18px 18px repeat-x; }
.vg-stars-fill { position: absolute; inset: 0 auto 0 0; background: #ffb703; }
:root { --vg-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E"); }
.vg-app-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vg-app-badges span { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--vg-primary); background: var(--vg-tint); padding: 3px 10px; border-radius: 999px; }
.vg-app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid var(--vg-border); border-radius: 12px; overflow: hidden; }
.vg-app-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--vg-border); border-right: 1px solid var(--vg-border); margin-right: -1px; margin-bottom: -1px; }
.vg-app-grid dt { color: var(--vg-muted); font-size: .88rem; }
.vg-app-grid dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }

/* ---------- Notes ---------- */
.vg-note { margin: 0 0 1.4em; padding: 14px 18px; border-radius: var(--vg-radius); border: 1px solid; border-left-width: 5px; }
.vg-note p:last-child { margin-bottom: 0; }
.vg-note-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 4px !important; }
.vg-note--tip { background: #eff6ff; border-color: #bfdbfe; border-left-color: var(--vg-accent); }
.vg-note--tip .vg-note-title { color: #1d4ed8; }
.vg-note--info { background: #eef3ff; border-color: #c9d6ff; border-left-color: var(--vg-blue); }
.vg-note--info .vg-note-title { color: #2b45c4; }
.vg-note--warning { background: #fff8e8; border-color: #ffe0a3; border-left-color: #f59e0b; }
.vg-note--warning .vg-note-title { color: #a15c00; }

/* ---------- TOC ---------- */
.vg-toc { margin: 0 0 1.8em; background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: var(--vg-radius); box-shadow: var(--vg-shadow); overflow: hidden; }
.vg-toc summary {
	display: flex; align-items: center; gap: 10px; padding: 13px 18px; cursor: pointer; list-style: none;
	font-weight: 600; color: var(--vg-primary); background: var(--vg-tint);
}
.vg-toc summary::-webkit-details-marker { display: none; }
.vg-toc summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--vg-accent); }
.vg-toc[open] summary::after { content: "\2212"; }
.vg-toc-list { margin: 0; padding: 12px 22px 14px 40px; font-size: .94rem; line-height: 1.6; }
.vg-toc-list li { margin: 5px 0; }
.vg-toc-list li::marker { color: var(--vg-accent); font-weight: 600; }
.vg-toc-list ol { list-style: lower-alpha; padding-left: 20px; margin: 4px 0; }
.vg-toc a { color: var(--vg-text) !important; text-decoration: none !important; font-weight: 500 !important; }
.vg-toc a:hover { color: var(--vg-accent) !important; }

/* ---------- Pros / Cons ---------- */
.vg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 1.6em; }
.vg-pros, .vg-cons { background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: var(--vg-radius); box-shadow: var(--vg-shadow); overflow: hidden; }
.vg-pros > p:first-child, .vg-cons > p:first-child { margin: 0; padding: 10px 16px; color: #fff; font-weight: 700; text-align: center; }
.vg-pros > p:first-child { background: linear-gradient(135deg, #12b76a, var(--vg-green)); }
.vg-cons > p:first-child { background: linear-gradient(135deg, #ff5a5f, #d62839); }
.vg-pros ul, .vg-cons ul { margin: 0 !important; padding: 14px 16px 6px !important; }
.vg-pros li::before, .vg-cons li::before { -webkit-mask-image: none !important; mask-image: none !important; border-radius: 50%; }
.vg-pros li::before { background: var(--vg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat !important; }
.vg-cons li::before { background: #d62839 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 9px no-repeat !important; }

/* ---------- FAQ ---------- */
.vg-faq { margin: 0 0 10px; background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: var(--vg-radius); overflow: hidden; }
.vg-faq summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; color: var(--vg-primary); }
.vg-faq summary::-webkit-details-marker { display: none; }
.vg-faq summary::after {
	content: ""; margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--vg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 13px no-repeat;
	transition: transform .2s ease;
}
.vg-faq[open] summary::after { transform: rotate(180deg); }
.vg-faq[open] summary { border-bottom: 1px solid var(--vg-border); }
.vg-faq > :not(summary) { padding: 0 18px; }
.vg-faq > :not(summary):first-of-type { padding-top: 12px; }
.vg-faq > :last-child { padding-bottom: 6px; }

/* ---------- Author box ---------- */
.vg-author {
	display: flex; gap: 18px; align-items: flex-start; margin: 2.2em 0 0; padding: 20px;
	background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: 16px; box-shadow: var(--vg-shadow);
	border-top: 4px solid var(--vg-accent);
}
.vg-author img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--vg-tint); }
.vg-author p { margin: 0; }
.vg-author-name { font-weight: 700; font-size: 1.1rem; color: var(--vg-primary); }
.vg-author-name span { display: block; font-size: .82rem; font-weight: 500; color: var(--vg-accent); }
.vg-author-bio { margin-top: 6px !important; font-size: .94rem; color: var(--vg-muted); }

/* ---------- Video / embeds ---------- */
.entry-content .wp-block-embed iframe, .entry-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--vg-radius); }

/* ---------- Cards (blog) ---------- */
.vg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.vg-card { background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: 14px; overflow: hidden; box-shadow: var(--vg-shadow); display: flex; flex-direction: column; }
.vg-card-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--vg-tint); }
.vg-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vg-card-body { padding: 16px 18px 18px; }
.vg-card-title { font-size: 1.1rem; line-height: 1.4; margin: 0 0 8px; }
.vg-card-title a { color: var(--vg-primary); text-decoration: none; }
.vg-card-body p { font-size: .92rem; color: var(--vg-muted); margin: 0 0 10px; }
.vg-card-date { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--vg-muted); }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--vg-surface); border: 1px solid var(--vg-border); text-decoration: none; }
.nav-links .current { background: var(--vg-primary); color: #fff; border-color: var(--vg-primary); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; padding: 12px 16px; background: var(--vg-surface); border: 1px solid var(--vg-border); border-radius: 10px; text-decoration: none; font-weight: 600; }
.post-navigation span { display: block; font-size: .78rem; color: var(--vg-muted); font-weight: 500; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 11px 14px; border: 1px solid var(--vg-border); border-radius: 10px; font: inherit; }
.search-submit { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--vg-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* 404 */
.vg-404 { text-align: center; padding: 30px 20px; }
.vg-404-code { font-size: 5rem; font-weight: 700; line-height: 1; margin: 0; background: var(--vg-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Contact form spacing (Hostinger shortcode) */
.entry-content form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .entry-content form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--vg-border); border-radius: 10px; font: inherit; background: #fff; }
.entry-content form button, .entry-content form [type=submit] { padding: 12px 24px; border: 0; border-radius: 10px; background: var(--vg-gradient); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.vg-footer { background: var(--vg-header); color: rgba(255, 255, 255, .82); font-size: .93rem; }
.vg-footer-strip { background: var(--vg-primary); color: #fff; text-align: center; padding: 12px 0; font-weight: 500; font-size: .92rem; }
.vg-footer-cols { display: grid; grid-template-columns: 1.25fr 1.35fr 1fr 1fr; gap: 0; padding-top: 34px; padding-bottom: 30px; }
.vg-footer-col { padding: 6px 28px; text-align: center; }
.vg-container.vg-footer-cols { padding-top: 36px; padding-bottom: 32px; }
.vg-footer-col + .vg-footer-col { border-left: 1px solid rgba(255, 255, 255, .14); }
.vg-footer-col .vg-brand { flex-direction: column; gap: 10px; margin-bottom: 10px; }
.vg-footer-col p { margin: 0 0 8px; }
.vg-footer-title { color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin-bottom: 14px !important; }
.vg-footer-menu { list-style: none; margin: 0; padding: 0; }
.vg-footer-menu li { margin: 6px 0; }
@media (min-width: 721px) and (max-width: 1024px) { .vg-footer-menu--cols { columns: 2; column-gap: 24px; } .vg-footer-menu li { break-inside: avoid; } }
.vg-footer-email { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px !important; }
.vg-footer-email .vg-icon { color: #60a5fa; }
.vg-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.vg-footer a:hover { color: var(--vg-cyan); }
.vg-social { list-style: none; display: grid; grid-template-columns: repeat(4, 42px); gap: 10px; margin: 0; padding: 0; justify-content: center; }
.vg-social > li { margin: 0; }
.vg-social a, .vg-social span {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	color: #e2e8f0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.vg-social .vg-icon { width: 18px; height: 18px; }
.vg-social span { cursor: default; }
.vg-social a:hover, .vg-social a:focus-visible, .vg-social span:hover { transform: translateY(-3px); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.vg-social .vg-social--twitter:hover { background: #000; border-color: rgba(255, 255, 255, .35); }
.vg-social .vg-social--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.vg-social .vg-social--email:hover { background: var(--vg-accent); }
.vg-social .vg-social--medium:hover { background: #fff; color: #000; }
.vg-social .vg-social--pinterest:hover { background: #e60023; }
.vg-social .vg-social--youtube:hover { background: #ff0000; }
.vg-social .vg-social--facebook:hover { background: #1877f2; }

.vg-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; text-align: center; font-size: .84rem; }
.vg-footer-bottom p { margin: 2px 0; }
.vg-footer-note { color: rgba(255, 255, 255, .6); }

.vg-totop {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; color: #fff; background: var(--vg-gradient); box-shadow: var(--vg-shadow);
	font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.vg-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.vg-totop:hover { color: #fff; }

/* WP alignment helpers */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--vg-muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.vg-nav-primary { display: none; }
	.vg-menu-toggle { display: inline-flex; }
	.vg-navbar { display: none; }
	.vg-menu--mobile .menu-item-has-children > a { pointer-events: none; opacity: .7; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
}
@media (max-width: 782px) {
	.admin-bar .vg-header { top: 46px; }
	.admin-bar .vg-progress { top: 46px; }
}
@media (max-width: 1024px) and (min-width: 721px) {
	.vg-footer-cols { grid-template-columns: 1fr 1fr; row-gap: 26px; }
	.vg-footer-col:nth-child(3) { border-left: 0; }
}
@media (max-width: 720px) {
	.vg-footer-cols { grid-template-columns: 1fr; gap: 22px; }
	.vg-social { grid-template-columns: repeat(7, 42px); }
	.vg-footer-col + .vg-footer-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; }
	.vg-proscons { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
	.vg-social { grid-template-columns: repeat(4, 42px); }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.vg-container { padding: 0 16px; }
	.vg-main { padding-top: 16px; }
	.vg-header { position: relative; }
	.admin-bar .vg-header { top: 0; }
	.vg-brand { font-size: 1.12rem; }
	.vg-app-card { padding: 16px; }
	.vg-app-head { gap: 14px; }
	.vg-app-icon { width: 72px; height: 72px; border-radius: 18px; }
	.vg-app-name { font-size: 1.15rem; }
	.vg-btns { flex-direction: column; align-items: stretch; }
	.vg-btns .vg-btn { width: 100%; }
	.entry-content h2 { padding: 12px 14px; }
	.entry-content th, .entry-content td { padding: 10px 12px; }
	.vg-author { flex-direction: column; align-items: center; text-align: center; }
	.alignleft, .alignright { float: none; margin: 0 auto 1em; }
}
/* Phones: each table row becomes a card with labelled values. */
@media (max-width: 640px) {
	.vg-table-wrap:has(.vg-stack) { overflow: visible; border: 0; box-shadow: none; background: none; border-radius: 0; }
	.entry-content table.vg-stack, .entry-content table.vg-stack tbody, .entry-content table.vg-stack tr, .entry-content table.vg-stack td { display: block; width: 100%; min-width: 0 !important; }
	.entry-content table.vg-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.entry-content table.vg-stack tr {
		margin: 0 0 12px; background: var(--vg-surface) !important; border: 1px solid var(--vg-border);
		border-radius: 12px; box-shadow: var(--vg-shadow); overflow: hidden;
	}
	.entry-content table.vg-stack tr:hover { background: var(--vg-surface) !important; }
	.entry-content table.vg-stack td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--vg-border); text-align: left; font-size: .94rem; line-height: 1.55; }
	.entry-content table.vg-stack td:last-child { border-bottom: 0; }
	.entry-content table.vg-stack td::before {
		content: attr(data-label); display: block; margin-bottom: 2px;
		font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--vg-accent);
	}
	.entry-content table.vg-stack td:first-child { background: var(--vg-primary); color: #fff; font-weight: 600; font-size: 1rem; }
	.entry-content table.vg-stack td:first-child::before { color: rgba(255, 255, 255, .7); }
	.entry-content table.vg-stack td:first-child a, .entry-content table.vg-stack td:first-child strong, .entry-content table.vg-stack td:first-child em { color: #fff; }
	.entry-content table.vg-stack td[data-label=""]::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
