/* Volume Node — main stylesheet. Colours and fonts come from theme.json presets. */
:root {
	--vn-bg: #0F0F0F;
	--vn-card: #141414;
	--vn-band: #121212;
	--vn-line: #242424;
	--vn-line-2: #3A3A3A;
	--vn-text: #FFFFFF;
	--vn-muted: #A3A3A3;
	--vn-accent: #F5A623;
	--vn-bull: #089981;
	--vn-bear: #F23645;
	--vn-radius: 14px;
	--vn-head: 'Space Grotesk', Inter, 'Noto Sans Arabic', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar), [lang="ar"] { font-family: 'Noto Sans Arabic', Inter, system-ui, sans-serif; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: 'Noto Sans Arabic', system-ui, sans-serif; letter-spacing: 0; }
::selection { background: var(--vn-accent); color: #0F0F0F; }
:focus-visible { outline: 2px solid var(--vn-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.vn-header { border-bottom: 1px solid var(--vn-line); background: var(--vn-bg); position: sticky; top: 0; z-index: 50; }
.admin-bar .vn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vn-header { top: 0; position: relative; } }
.vn-header__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.vn-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--vn-text) !important; text-decoration: none !important; font-family: var(--vn-head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.vn-brand img { width: 36px; height: 36px; }
.vn-header .wp-block-navigation { font-size: 15px; font-weight: 500; gap: 22px; }
.vn-header .wp-block-navigation a { color: #E8E8E8; text-decoration: none; }
.vn-header .wp-block-navigation a:hover { color: var(--vn-accent); }
.vn-header__tools { display: flex; align-items: center; gap: 14px; }
.vn-lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; }
.vn-lang a { padding: 6px 8px; border-radius: 6px; color: var(--vn-muted); text-decoration: none !important; }
.vn-lang a:hover { color: var(--vn-text); }
.vn-lang a.is-current { background: #1C1C1C; color: var(--vn-text); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--vn-bg) !important; color: var(--vn-text) !important; }

/* ---------- Buttons ---------- */
.vn-btn, .wp-block-button__link { display: inline-block; background: var(--vn-accent); color: #0F0F0F !important; font-weight: 700; padding: 14px 24px; border-radius: 10px; text-decoration: none !important; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 1.2; }
.vn-btn:hover, .wp-block-button__link:hover { background: #FFB940; }
.vn-btn--sm { padding: 11px 18px; font-size: 15px; border-radius: 8px; }
.is-style-outline .wp-block-button__link, .vn-btn--ghost { background: transparent !important; color: var(--vn-text) !important; border: 1px solid var(--vn-line-2) !important; }
.is-style-outline .wp-block-button__link:hover, .vn-btn--ghost:hover { border-color: var(--vn-accent) !important; }

/* ---------- Sections ---------- */
.vn-section { max-width: 1200px; margin-inline: auto !important; padding: 72px 24px 24px !important; }
.vn-section > h2 { margin: 0 0 10px; }
.vn-lead { color: var(--vn-muted); font-size: 17px; margin: 0 0 32px !important; }
.vn-kicker { color: var(--vn-accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 !important; }
:lang(ar) .vn-kicker { letter-spacing: 0; }
.vn-muted { color: var(--vn-muted); }
.vn-more { color: var(--vn-accent); font-weight: 600; text-decoration: none; }
.vn-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.vn-head-row h2 { margin: 0 0 10px; }
.vn-head-row p { margin: 0; color: var(--vn-muted); font-size: 17px; }

/* Hero */
.vn-hero { max-width: 1200px; margin-inline: auto !important; padding: 72px 24px 56px !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.vn-hero__text { display: flex; flex-direction: column; gap: 22px; }
.vn-hero__text h1 { margin: 0; }
.vn-hero__text > p { margin: 0; }
.vn-hero__sub { color: var(--vn-muted); font-size: 19px; max-width: 540px; }
.vn-hero__note { color: var(--vn-muted); font-size: 14px; }
.vn-hero .wp-block-buttons { gap: 12px; margin-top: 6px; }
.vn-chart { margin: 0; background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: 16px; padding: 20px; }
.vn-chart__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--vn-muted); margin-bottom: 10px; }
.vn-chart__top b { color: var(--vn-text); }
.vn-chart svg { width: 100%; height: auto; display: block; }
.vn-chart figcaption { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; font-size: 13px; color: var(--vn-muted); }
.vn-chart figcaption i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: -1px; }

/* Trust strip */
.vn-strip { border-top: 1px solid var(--vn-line); border-bottom: 1px solid var(--vn-line); background: var(--vn-band); }
.vn-strip ul { max-width: 1200px; margin: 0 auto; padding: 18px 24px; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--vn-muted); font-weight: 500; }

/* Cards */
.vn-grid { display: grid !important; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.vn-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.vn-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: var(--vn-radius); padding: 24px; transition: border-color .15s, transform .15s; }
.vn-card:hover { border-color: #4A4A4A; transform: translateY(-2px); }
.vn-card > * { margin: 0 !important; }
.vn-card h3 { font-family: Inter, 'Noto Sans Arabic', sans-serif; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.vn-card h3 a { color: var(--vn-text); text-decoration: none !important; }
.vn-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vn-card p { color: var(--vn-muted); font-size: 15px; }
.vn-card .vn-num { font-family: var(--vn-head); font-size: 28px; font-weight: 700; color: var(--vn-accent); }
.vn-card .vn-ticker { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--vn-bull); font-weight: 600; }
.vn-card .vn-tag { font-size: 13px; color: var(--vn-muted); font-weight: 600; }
.vn-card .vn-cta { color: var(--vn-accent); font-weight: 600; margin-top: 4px !important; }
.vn-card--market h3 { font-size: 21px; }

/* Specialty block */
.vn-panel { background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: 20px; padding: clamp(24px, 5vw, 48px) !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: center; }
.vn-panel h2 { margin: 0; }
.vn-panel > div { display: flex; flex-direction: column; gap: 18px; }
.vn-panel p { margin: 0; }
.vn-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.vn-links a { color: #E8E8E8; text-decoration: none; }
.vn-links a:hover { color: var(--vn-accent); }
.vn-profile { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--vn-muted); }
.vn-profile div { display: flex; align-items: center; gap: 12px; }
.vn-profile span:first-child { width: 40px; flex: none; }
.vn-profile span:last-child { height: 14px; border-radius: 3px; background: #2E2E2E; }
.vn-profile .is-va span:last-child { background: #4A4A4A; }
.vn-profile .is-poc span { color: var(--vn-accent); font-weight: 700; }
.vn-profile .is-poc span:last-child { background: var(--vn-accent); }

/* Calculator */
.vn-split { max-width: 1200px; margin-inline: auto !important; padding: 72px 24px 24px !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: center; }
.vn-split > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.vn-split h2, .vn-split p { margin: 0; }
.vn-calc { background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vn-calc__title { grid-column: 1 / -1; font-family: var(--vn-head); font-weight: 700; font-size: 20px; }
.vn-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--vn-muted); font-weight: 600; }
.vn-calc input, .vn-calc select { background: var(--vn-bg); border: 1px solid var(--vn-line-2); border-radius: 8px; padding: 12px; color: var(--vn-text); font-size: 16px; font-family: inherit; width: 100%; box-sizing: border-box; }
.vn-calc input:focus, .vn-calc select:focus { border-color: var(--vn-accent); outline: none; }
.vn-calc__result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--vn-line); padding-top: 16px; }
.vn-calc__result > div { display: flex; flex-direction: column; gap: 2px; }
.vn-calc__label { font-size: 13px; color: var(--vn-muted); }
.vn-calc__label b { color: var(--vn-text); font-weight: 600; }
.vn-calc__lots { font-family: var(--vn-head); font-size: 30px; font-weight: 700; color: var(--vn-bull); }
.vn-calc__note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--vn-muted); }
@media (max-width: 480px) { .vn-calc { grid-template-columns: 1fr; padding: 20px; } }

/* Prop band */
.vn-band { border: 1px solid var(--vn-line); border-radius: 20px; padding: clamp(24px, 4vw, 40px) !important; display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; background: var(--vn-band); }
.vn-band > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.vn-band h2 { font-size: 30px; margin: 0; }
.vn-band p { margin: 0; color: var(--vn-muted); }

/* Videos */
.vn-video { display: flex; flex-direction: column; gap: 12px; }
.vn-video > * { margin: 0 !important; }
.vn-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--vn-line); display: block; }
.vn-video h3 { font-family: Inter, 'Noto Sans Arabic', sans-serif; font-size: 17px; letter-spacing: 0; }
.vn-video h3 a { color: var(--vn-text); }
.vn-soon { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px dashed var(--vn-line-2); display: flex; align-items: center; justify-content: center; color: var(--vn-muted); font-size: 15px; background: var(--vn-band); }

/* Risk note */
.vn-risk { border: 1px solid var(--vn-line-2); border-radius: var(--vn-radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; background: var(--vn-card); }
.vn-risk strong { color: var(--vn-bear); font-size: 15px; }
.vn-risk p { margin: 0; color: #D4D4D4; font-size: 15px; }
.vn-risk .vn-risk__aff { color: var(--vn-muted); font-size: 14px; }
.vn-risk a { color: var(--vn-muted); text-decoration: underline; }
.vn-risk-wrap { max-width: 1200px; margin-inline: auto !important; padding: 72px 24px !important; }

/* ---------- Footer ---------- */
.vn-footer { border-top: 1px solid var(--vn-line); background: #0B0B0B; font-size: 15px; }
.vn-footer__grid { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.vn-footer__grid > div { display: flex; flex-direction: column; gap: 10px; }
.vn-footer__grid p { margin: 0; }
.vn-footer h2 { font-family: Inter, 'Noto Sans Arabic', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; margin: 0 0 2px; }
.vn-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vn-footer a { color: var(--vn-muted); text-decoration: none; }
.vn-footer a:hover { color: var(--vn-accent); }
.vn-footer .vn-brand { font-size: 18px; }
.vn-footer .vn-brand img { width: 30px; height: 30px; }
.vn-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px 36px !important; border-top: 1px solid #1C1C1C; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--vn-muted); font-size: 13px; }
.vn-footer__bottom p { margin: 0; }

/* ---------- Articles ---------- */
.vn-article { padding-top: 48px; padding-bottom: 24px; }
.vn-article .wp-block-post-title { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 12px; }
.vn-meta { color: var(--vn-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vn-meta a { color: var(--vn-muted); }
.rank-math-breadcrumb, .vn-crumbs { font-size: 14px; color: var(--vn-muted); }
.rank-math-breadcrumb a, .vn-crumbs a { color: var(--vn-muted); }
.wp-block-post-content { font-size: 18px; line-height: 1.7; }
.wp-block-post-content h2 { margin-top: 2.2em; font-size: clamp(26px, 3vw, 32px); }
.wp-block-post-content h3 { margin-top: 1.8em; }
.wp-block-post-content p a, .wp-block-post-content li a { text-decoration: underline; text-underline-offset: 3px; }
.wp-block-post-content ul, .wp-block-post-content ol { padding-inline-start: 1.3em; }
.wp-block-post-content li { margin-bottom: 6px; }
.wp-block-post-content blockquote { background: var(--vn-card); padding: 16px 20px; border-radius: 0 10px 10px 0; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.wp-block-post-content th, .wp-block-post-content td { border: 1px solid var(--vn-line); padding: 10px 12px; text-align: start; }
.wp-block-post-content th { background: var(--vn-card); }
.wp-block-post-content code { background: var(--vn-card); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.wp-block-post-content figure img { border-radius: 12px; }
.wp-block-post-content figcaption { color: var(--vn-muted); font-size: 14px; }
/* Info boxes inside articles: add class vn-note / vn-warning to a Group block */
.vn-note, .vn-warning { border: 1px solid var(--vn-line); border-inline-start: 3px solid var(--vn-accent); background: var(--vn-card); border-radius: 10px; padding: 18px 22px !important; }
.vn-warning { border-inline-start-color: var(--vn-bear); }
.vn-note > *:first-child, .vn-warning > *:first-child { margin-top: 0; }
.vn-note > *:last-child, .vn-warning > *:last-child { margin-bottom: 0; }

/* Lists of posts */
.vn-postlist .wp-block-post { background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: var(--vn-radius); padding: 24px; position: relative; }
.vn-postlist .wp-block-post-title { font-family: Inter, 'Noto Sans Arabic', sans-serif; font-size: 19px; letter-spacing: 0; margin: 0 0 8px; }
.vn-postlist .wp-block-post-title a { color: var(--vn-text); text-decoration: none; }
.vn-postlist .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.vn-postlist .wp-block-post-excerpt { color: var(--vn-muted); font-size: 15px; margin: 0; }
.wp-block-query-pagination a, .wp-block-query-pagination span { color: var(--vn-muted); }
.wp-block-search__input { background: var(--vn-card); border: 1px solid var(--vn-line-2); color: var(--vn-text); border-radius: 8px; padding: 12px; }
.wp-block-search__button { background: var(--vn-accent); color: #0F0F0F; border: 0; border-radius: 8px; font-weight: 700; }

/* RTL details */
[dir="rtl"] .vn-cta, [dir="rtl"] .vn-links a, [dir="rtl"] .vn-more { unicode-bidi: plaintext; }
[dir="rtl"] .vn-card:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .vn-card { transition: none; } .vn-card:hover { transform: none; } }

/* Layout fixes: grid/flex containers must not get WordPress flow margins */
.vn-grid > *, .vn-hero > *, .vn-panel > *, .vn-split > *, .vn-band > *, .vn-head-row > *,
.vn-hero__text > *, .vn-panel__text > *, .vn-split__text > *, .vn-band__text > *, .vn-head-row__text > *,
.vn-footer__grid > *, .vn-footer__grid > div > *, .vn-footer__bottom > *, .vn-header__inner > *, .vn-header__tools > * { margin-block: 0 !important; }
.vn-panel__text, .vn-split__text, .vn-band__text { display: flex; flex-direction: column; gap: 18px; }
.vn-head-row__text h2 { margin-bottom: 10px !important; }
.wp-block-post-content ul.vn-links, ul.vn-links { padding: 0 !important; margin: 0 !important; }
ul.vn-links li { margin: 0 !important; }
.wp-block-post-content .vn-links a, .vn-links a { text-decoration: none !important; color: #E8E8E8; }
.wp-block-post-content .vn-links a:hover, .vn-links a:hover { color: var(--vn-accent); }
.wp-block-post-content .vn-card a, .wp-block-post-content .vn-video a, .wp-block-post-content .vn-more { text-decoration: none !important; }
.wp-block-post-content .vn-card h3 { margin: 0; }
.vn-video h3 { margin: 0 !important; }
.vn-hero .wp-block-buttons { margin-top: 6px !important; }
.vn-strip ul { margin: 0 auto !important; }

/* Fluent Forms in the dark theme */
.fluentform .ff-el-form-control { background: var(--vn-bg) !important; border: 1px solid var(--vn-line-2) !important; color: var(--vn-text) !important; border-radius: 8px !important; padding: 12px !important; font-size: 16px !important; }
.fluentform .ff-el-form-control:focus { border-color: var(--vn-accent) !important; box-shadow: none !important; }
.fluentform .ff-el-form-control::placeholder { color: #6B6B6B; }
.fluentform .ff-el-input--label label { color: var(--vn-text) !important; font-weight: 600; font-size: 15px; }
.fluentform .ff-btn-submit { background: var(--vn-accent) !important; color: #0F0F0F !important; border: 0 !important; border-radius: 10px !important; font-weight: 700 !important; padding: 14px 26px !important; font-size: 16px !important; }
.fluentform .ff-btn-submit:hover { background: #FFB940 !important; }
.fluentform .ff-message-success { background: var(--vn-card) !important; border: 1px solid var(--vn-bull) !important; color: var(--vn-text) !important; border-radius: 10px; }
.fluentform .error { color: var(--vn-bear) !important; }

/* Lead paragraph inside regular pages */
.wp-block-post-content > .vn-hero__sub { max-width: var(--wp--style--global--content-size, 760px); margin-inline: auto !important; font-size: 20px; }

/* Footer risk warning (all pages) */
.vn-footer-risk { max-width: 1200px; margin: 0 auto !important; padding: 0 24px 28px !important; box-sizing: border-box; }
.vn-footer-risk p { margin: 0 0 6px; color: var(--vn-muted); font-size: 13px; line-height: 1.6; }
.vn-footer-risk strong { color: var(--vn-bear); }
.vn-footer-risk a { color: var(--vn-muted); text-decoration: underline; }

/* Language-specific fixes */
:lang(ar) .vn-card .vn-ticker { font-family: 'Noto Sans Arabic', Inter, sans-serif; letter-spacing: 0; }
.vn-band .vn-kicker { color: var(--vn-accent); }
.vn-close .vn-band__text { max-width: 760px; }

/* Header: one row on desktop, compact language dropdown */
@media (min-width: 1000px) {
	.vn-header__inner { flex-wrap: nowrap !important; }
	.vn-header .wp-block-navigation { flex: 1 1 auto; justify-content: center; }
	.vn-header .wp-block-navigation__container { gap: clamp(12px, 1.6vw, 22px) !important; flex-wrap: nowrap; }
	.vn-header .wp-block-navigation-item__content { white-space: nowrap; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
	.vn-header .wp-block-navigation { font-size: 14px; }
	.vn-brand span { display: none; }
}
.vn-lang { position: relative; font-size: 14px; font-weight: 600; }
.vn-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: #E8E8E8; cursor: pointer; border: 1px solid var(--vn-line); user-select: none; }
.vn-lang summary::-webkit-details-marker { display: none; }
.vn-lang summary:hover, .vn-lang[open] summary { border-color: var(--vn-line-2); color: var(--vn-text); }
.vn-lang summary i { font-style: normal; font-size: 10px; color: var(--vn-muted); }
.vn-lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 170px; background: var(--vn-card); border: 1px solid var(--vn-line-2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.vn-lang__menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 6px; color: #E8E8E8 !important; font-weight: 500; text-decoration: none !important; }
.vn-lang__menu a b { width: 24px; color: var(--vn-muted); font-weight: 600; font-size: 12px; }
.vn-lang__menu a:hover { background: #1C1C1C; color: var(--vn-text) !important; }
.vn-lang__menu a.is-current { background: #1C1C1C; }
.vn-lang__menu a.is-current b { color: var(--vn-accent); }

/* ---------- Article template with sidebar (templates/page-article.html) ---------- */
.vn-art { max-width: 1164px; margin: 0 auto; padding: 36px 24px 32px; box-sizing: border-box; }
.vn-art > *, .vn-art__grid > *, .vn-art__main > * { margin-block: 0; }
.vn-art__head { max-width: 760px; margin-bottom: 28px !important; }
.vn-art .vn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; }
.vn-art .vn-crumbs i { font-style: normal; opacity: .6; }
.vn-art .vn-crumbs span { color: var(--vn-text); opacity: .8; }
.vn-art .wp-block-post-title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.vn-art .vn-meta { margin: 0; }
.vn-art .vn-meta { gap: 4px 18px; }
.vn-art__grid { display: block; }
.vn-art__main { min-width: 0; }
.vn-art__main .wp-block-post-content > :first-child { margin-top: 0; }
.vn-art__main .wp-block-post-content h2, .vn-art__main .wp-block-post-content h3 { scroll-margin-top: 96px; }
@media (min-width: 1000px) {
	.vn-art__grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; align-items: start; }
	.vn-art__grid > .vn-side { align-self: stretch; }
	.vn-side__sticky { height: 100%; }
	.vn-side__toc { position: sticky; top: 92px; }
	.admin-bar .vn-side__toc { top: 124px; }
	.vn-toc-m { display: none !important; }
}
@media (max-width: 999px) {
	.vn-side { margin-top: 48px !important; }
	.vn-side__toc { display: none !important; }
	.vn-side__sticky { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.vn-side__sticky > * + * { margin-top: 16px; }
@media (max-width: 999px) { .vn-side__sticky > * + * { margin-top: 0; } }
.vn-side__box { background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: var(--vn-radius); padding: 18px 20px; }
.vn-side__title { font-family: var(--vn-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 12px; }
:lang(ar) .vn-side__title { font-family: 'Noto Sans Arabic', sans-serif; letter-spacing: 0; }
.vn-side__toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 200px); overflow-y: auto; }
.vn-side__toc li { margin: 0; }
.vn-side__toc a { display: block; padding: 6px 0 6px 12px; border-inline-start: 2px solid var(--vn-line); color: var(--vn-muted); font-size: 14px; line-height: 1.35; text-decoration: none; }
.vn-side__toc a:hover { color: var(--vn-text); }
.vn-side__toc a.is-active { color: var(--vn-text); border-inline-start-color: var(--vn-accent); }
.vn-pip__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vn-pip label { display: grid; gap: 6px; font-size: 13px; color: var(--vn-muted); }
.vn-pip input { width: 100%; box-sizing: border-box; background: var(--vn-bg); border: 1px solid var(--vn-line-2); color: var(--vn-text); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 15px; }
.vn-pip input:focus { border-color: var(--vn-accent); outline: none; }
.vn-pip__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.vn-pip__out div { background: var(--vn-bg); border-radius: 8px; padding: 9px 10px; }
.vn-pip__out span { display: block; font-size: 12px; color: var(--vn-muted); }
.vn-pip__out b { font-family: var(--vn-head); font-size: 19px; color: var(--vn-accent); }
.vn-pip__note { font-size: 12px; color: var(--vn-muted); margin: 10px 0 0; }
.vn-side__start p { font-size: 14px; color: var(--vn-muted); margin: 0 0 14px; line-height: 1.5; }
.vn-toc-m { background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: 12px; margin-bottom: 28px !important; }
.vn-toc-m summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.vn-toc-m summary::-webkit-details-marker { display: none; }
.vn-toc-m summary::after { content: "+"; color: var(--vn-accent); font-size: 20px; line-height: 1; }
.vn-toc-m[open] summary::after { content: "−"; }
.vn-toc-m ol { margin: 0; padding: 0 18px 16px 38px; font-size: 15px; }
.vn-toc-m li { margin: 6px 0; }
.vn-toc-m a { color: var(--vn-muted); text-decoration: none; }

/* ---------- Article components ---------- */
.vn-answer { background: var(--vn-card); border: 1px solid var(--vn-line); border-top: 3px solid var(--vn-accent); border-radius: 12px; padding: 20px 24px !important; font-size: 19px; line-height: 1.6; }
.vn-answer > * { margin: 0; }
.vn-answer > * + * { margin-top: 10px; }
.vn-label { display: block; font-family: var(--vn-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vn-accent); margin-bottom: 8px; }
:lang(ar) .vn-label { font-family: 'Noto Sans Arabic', sans-serif; letter-spacing: 0; }
.vn-keys { border: 1px solid var(--vn-line); border-radius: 12px; padding: 20px 24px !important; }
.vn-keys ul { list-style: none; padding: 0 !important; margin: 0; }
.vn-keys li { position: relative; padding-inline-start: 28px; }
.vn-keys li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--vn-bull); border-bottom: 2px solid var(--vn-bull); transform: rotate(-45deg); }
.vn-try { border: 1px solid var(--vn-line); border-inline-start: 3px solid var(--vn-bull); background: var(--vn-card); border-radius: 10px; padding: 18px 22px !important; }
.vn-try .vn-label { color: var(--vn-bull); }
.vn-note .vn-label { color: var(--vn-accent); }
.vn-warning .vn-label { color: var(--vn-bear); }
.vn-try > :last-child, .vn-keys > :last-child { margin-bottom: 0; }
.vn-try > :first-child, .vn-keys > :first-child { margin-top: 0; }
.vn-fig { margin: 32px 0 !important; }
.vn-fig svg { display: block; width: 100%; height: auto; background: var(--vn-bg); border: 1px solid var(--vn-line); border-radius: 12px; }
.vn-fig figcaption { margin-top: 10px; text-align: center; }
.wp-block-post-content .wp-block-table { overflow-x: auto; }
.wp-block-post-content .wp-block-table table { min-width: 520px; }
.wp-block-post-content td b, .wp-block-post-content td strong { color: var(--vn-text); }
.vn-num { font-family: var(--vn-head); font-variant-numeric: tabular-nums; }
.vn-up { color: var(--vn-bull); } .vn-down { color: var(--vn-bear); }
.vn-faq { border-top: 1px solid var(--vn-line); }
.vn-faq__item { border-bottom: 1px solid var(--vn-line); }
.vn-faq__item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
:dir(rtl) .vn-faq__item summary, [dir="rtl"] .vn-faq__item summary { padding: 18px 0 18px 36px; }
.vn-faq__item summary::-webkit-details-marker { display: none; }
.vn-faq__item summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; color: var(--vn-accent); font-size: 24px; font-weight: 400; }
.vn-faq__item[open] summary::after { content: "−"; }
.vn-faq__item > div { padding: 0 0 18px; color: #D6D6D6; }
.vn-faq__item > div > :first-child { margin-top: 0; } .vn-faq__item > div > :last-child { margin-bottom: 0; }
.vn-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.vn-next__card { display: block; background: var(--vn-card); border: 1px solid var(--vn-line); border-radius: 12px; padding: 16px 18px; color: var(--vn-text) !important; text-decoration: none !important; }
a.vn-next__card:hover { border-color: var(--vn-accent); }
.vn-next__card small { display: block; color: var(--vn-muted); font-size: 13px; margin-bottom: 4px; }
.vn-next__card b { font-weight: 600; line-height: 1.35; }
span.vn-next__card { opacity: .6; }
.vn-pending { color: inherit; border-bottom: 1px dotted var(--vn-muted); cursor: default; }
span.vn-next__card.vn-pending { border-bottom: 1px solid var(--vn-line); }
.vn-sources { font-size: 14px; color: var(--vn-muted); }
.vn-sources a { color: var(--vn-muted); }
.vn-video { margin: 32px 0 !important; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--vn-line); background: var(--vn-card); }
.vn-video button, .vn-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.vn-video button { background: var(--vn-card) center / cover no-repeat; cursor: pointer; position: relative; color: var(--vn-text); }
.vn-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--vn-accent); }
.vn-video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #0F0F0F; }
.vn-video__title { position: absolute; left: 20px; right: 20px; bottom: 18px; text-align: center; font-weight: 600; }
.vn-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.vn-video.has-poster button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 45%); }
.vn-video.has-poster .vn-video__title { z-index: 2; }
.vn-video .vn-video__play { z-index: 2; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .15s; }
.vn-video button:hover .vn-video__play { transform: scale(1.06); }
.vn-video.has-poster .vn-video__play { left: 18px; top: auto; bottom: 14px; margin: 0; width: 56px; height: 56px; }
.vn-video.has-poster .vn-video__play::after { left: 22px; top: 16px; border-width: 12px 0 12px 18px; }
.vn-video.has-poster .vn-video__title { left: 88px; right: 18px; bottom: 30px; text-align: start; }
[dir="rtl"] .vn-video.has-poster .vn-video__play { left: auto; right: 18px; }
[dir="rtl"] .vn-video.has-poster .vn-video__title { left: 18px; right: 88px; }

/* Latest YouTube videos on the homepage */
.vn-ytcard { display: flex; flex-direction: column; gap: 12px; color: var(--vn-text) !important; text-decoration: none !important; }
.vn-ytcard__img { position: relative; display: block; }
.vn-ytcard__play { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--vn-accent); opacity: .92; transition: transform .15s; }
.vn-ytcard__play::after { content: ""; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #0F0F0F; }
.vn-ytcard:hover .vn-ytcard__play { transform: scale(1.08); }
.vn-ytcard__title { font-weight: 600; font-size: 17px; line-height: 1.35; }
.vn-ytcard:hover .vn-ytcard__title { color: var(--vn-accent); }

.vn-ytgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .vn-ytgrid { grid-template-columns: 1fr; } }


/* ===== Broker reviews & rankings (vn-bk) ===== */
.vn-bk-hero,.vn-bk-card{background:var(--vn-card);border:1px solid var(--vn-line);border-radius:var(--vn-radius);padding:22px 24px;margin:20px 0}
.vn-bk-hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.vn-bk-hero h2,.vn-bk-card h3{margin:0 0 6px}
.vn-bk-score{text-align:center;min-width:110px}
.vn-bk-score b{display:block;font-family:var(--vn-head);font-size:44px;line-height:1}
.vn-bk-score span{font-size:13px;color:var(--vn-muted)}
.vn-bk-stars{color:var(--vn-accent);letter-spacing:2px;font-size:14px}
.vn-bk-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.vn-bk-sub{color:var(--vn-muted);font-size:14px;margin:0}
.vn-bk-bars{display:grid;gap:8px;margin:6px 0 4px}
.vn-bk-bar{display:grid;grid-template-columns:200px 1fr 36px;gap:12px;align-items:center;font-size:14px}
.vn-bk-bar i{display:block;height:6px;border-radius:4px;background:var(--vn-line);overflow:hidden}
.vn-bk-bar i em{display:block;height:100%;background:var(--vn-bull)}
.vn-bk-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.vn-bk-facts div{background:var(--vn-bg);border:1px solid var(--vn-line);border-radius:8px;padding:10px 12px}
.vn-bk-facts small{display:block;font-size:11px;color:var(--vn-muted);text-transform:uppercase;letter-spacing:.04em}
.vn-bk-pc{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.vn-bk-pc ul{list-style:none;margin:0;padding:0}
.vn-bk-pc li{position:relative;padding-inline-start:22px;margin:6px 0;font-size:15px}
.vn-bk-pc .pro li::before{content:"+";position:absolute;inset-inline-start:0;color:var(--vn-bull);font-weight:800}
.vn-bk-pc .con li::before{content:"–";position:absolute;inset-inline-start:0;color:var(--vn-bear);font-weight:800}
.vn-bk-rank{font-family:var(--vn-head);color:var(--vn-muted);font-size:20px}
.vn-bk-table{width:100%;border-collapse:collapse;font-size:15px}
.vn-bk-table th,.vn-bk-table td{padding:12px 14px;border-bottom:1px solid var(--vn-line);text-align:start;vertical-align:middle}
.vn-bk-table th{color:var(--vn-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.vn-bk-note{font-size:12px;color:#8a8a8a;margin-top:8px}
.vn-bk-disc{background:var(--vn-card);border:1px solid var(--vn-line);border-inline-start:3px solid var(--vn-accent);border-radius:8px;padding:12px 16px;font-size:14px;color:#cfcfcf;margin:18px 0}
.vn-bk-tip{border-inline-start-color:var(--vn-bull)}
.vn-bk-wrap{overflow-x:auto}
@media (max-width:760px){.vn-bk-hero{grid-template-columns:1fr}.vn-bk-facts{grid-template-columns:1fr 1fr}.vn-bk-pc{grid-template-columns:1fr}.vn-bk-bar{grid-template-columns:130px 1fr 32px;font-size:13px}}

.vn-bk-table .vn-btn,.vn-bk-actions .vn-btn{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;line-height:1.2;text-align:center}
.vn-bk-table .vn-btn{padding:9px 16px;font-size:14px;min-width:120px}
.vn-bk-table td:has(> .vn-btn){width:1%;white-space:nowrap}

/* Broker review sticky card */
.vn-bk-side{background:var(--vn-card);border:1px solid var(--vn-line);border-radius:var(--vn-radius);padding:22px;text-align:center;position:sticky;top:92px}
.admin-bar .vn-bk-side{top:124px}
.vn-bk-side__top{display:flex;flex-direction:column;align-items:center;gap:10px}
.vn-bk-side__badge{width:72px;height:72px;border-radius:16px;background:var(--vn-bg);border:1px solid var(--vn-line);display:flex;align-items:center;justify-content:center;font-family:var(--vn-head);font-weight:700;font-size:16px}
.vn-bk-side__name{font-family:var(--vn-head);font-size:26px;font-weight:700;margin:0;line-height:1.1}
.vn-bk-side__tag{color:var(--vn-muted);font-size:14px;margin:4px 0 0}
.vn-bk-side__score{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:14px 0 10px;padding-top:12px;border-top:1px solid var(--vn-line)}
.vn-bk-side__score b{font-family:var(--vn-head);font-size:34px;line-height:1}
.vn-bk-side__score small{color:var(--vn-muted);font-size:13px}
.vn-bk-side__rows{list-style:none;margin:0 0 16px;padding:12px;background:var(--vn-bg);border:1px solid var(--vn-line);border-radius:10px;text-align:start;font-size:14px}
.vn-bk-side__rows li{padding:5px 0}
.vn-bk-side__rows li+li{border-top:1px solid var(--vn-line)}
.vn-bk-side__cta{display:flex!important;width:100%;box-sizing:border-box;justify-content:center;align-items:center;white-space:nowrap;margin-top:8px}
.vn-bk-side__note{font-size:12px;color:#8a8a8a;margin:12px 0 0}
.vn-bk-bar-m{display:none}
@media (max-width:999px){
.vn-bk-aside{display:none!important}
.vn-bk-bar-m{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:rgba(15,15,15,.96);border-top:1px solid var(--vn-line);font-size:15px}
.vn-bk-bar-m .vn-btn{white-space:nowrap}
body:has(.vn-bk-bar-m){padding-bottom:64px}
}

.vn-bk-side__logo{display:flex;flex-direction:column;align-items:center;gap:6px}
.vn-bk-side__logo img{display:block;max-width:150px;height:auto;border-radius:12px}
.vn-bk-side__logo small{font-size:11px;color:var(--vn-muted);text-transform:uppercase;letter-spacing:.05em}

/* sticky broker card: the geo wrapper must be the sticky element */
.vn-bk-aside > [data-vn-broker]{position:sticky;top:92px}
.admin-bar .vn-bk-aside > [data-vn-broker]{top:124px}
.vn-bk-aside .vn-bk-side{position:static}

/* === Broker blocks: layout polish (v2) === */
.vn-bk-head{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;margin-bottom:14px}
.vn-bk-head__main{min-width:0}
.vn-bk-title{font-family:var(--vn-head);font-size:22px;font-weight:700;margin:0 0 4px;line-height:1.25}
.vn-bk-rank{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--vn-bg);border:1px solid var(--vn-line);font-family:var(--vn-head);font-weight:700;font-size:16px;line-height:1;color:var(--vn-accent);flex:none}
.vn-bk-score--sm{min-width:0}
.vn-bk-score--sm b{font-size:34px}
.vn-bk-score .vn-bk-stars{white-space:nowrap;margin-top:4px}
.vn-bk-facts{grid-auto-rows:1fr}
.vn-bk-facts div{display:flex;flex-direction:column;gap:6px}
.vn-bk-facts b{font-size:16px;line-height:1.3}
.vn-bk-actions{align-items:stretch}
.vn-bk-card .vn-bk-actions .vn-btn{min-width:210px}
.vn-bk-hero .vn-bk-actions .vn-btn{min-width:190px}
.vn-bk-top th{white-space:nowrap}
.vn-bk-top td:nth-child(1){width:1%;color:var(--vn-muted);font-family:var(--vn-head);font-weight:700}
.vn-bk-top td:nth-child(3),.vn-bk-top td:nth-child(5){white-space:nowrap}
.vn-bk-top td:nth-child(3) .vn-bk-stars{display:block;margin-top:2px}
@media (max-width:760px){
.vn-bk-hero{grid-template-columns:1fr auto;gap:10px 16px;align-items:start}
.vn-bk-hero > div:first-child{display:contents}
.vn-bk-hero > div:first-child > p:first-child{grid-column:1;grid-row:1;align-self:center}
.vn-bk-hero .vn-bk-sub{grid-column:1 / -1;grid-row:2}
.vn-bk-hero .vn-bk-actions{grid-column:1 / -1;grid-row:3}
.vn-bk-hero .vn-bk-score{grid-column:2;grid-row:1;min-width:0;text-align:end}
.vn-bk-hero .vn-bk-score b{font-size:34px}
}
@media (max-width:700px){
.vn-bk-wrap:has(.vn-bk-top){overflow:visible}
.vn-bk-top thead{display:none}
.vn-bk-top,.vn-bk-top tbody{display:block;width:100%}
.vn-bk-top tr{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"r n s" "p p p" "d d d" "b b b";gap:10px 12px;align-items:center;background:var(--vn-card);border:1px solid var(--vn-line);border-radius:var(--vn-radius);padding:16px;margin:0 0 12px}
.vn-bk-top td{display:block;border:0;padding:0;width:auto!important;white-space:normal}
.vn-bk-top td:nth-child(1){grid-area:r;display:inline-flex;align-items:center;justify-content:center;width:32px!important;height:32px;border-radius:50%;background:var(--vn-bg);border:1px solid var(--vn-line);color:var(--vn-accent);font-size:14px}
.vn-bk-top td:nth-child(2){grid-area:n}
.vn-bk-top td:nth-child(3){grid-area:s;text-align:end;white-space:nowrap}
.vn-bk-top td:nth-child(4),.vn-bk-top td:nth-child(5){display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px;padding-top:10px;border-top:1px solid var(--vn-line)}
.vn-bk-top td:nth-child(4){grid-area:p}
.vn-bk-top td:nth-child(5){grid-area:d}
.vn-bk-top td:nth-child(4)::before,.vn-bk-top td:nth-child(5)::before{content:attr(data-label);color:var(--vn-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;flex:none}
.vn-bk-top td:nth-child(4){text-align:end}
.vn-bk-top td:nth-child(6){grid-area:b}
.vn-bk-top td:nth-child(6) .vn-btn{display:flex;width:100%;box-sizing:border-box;min-width:0}
}
@media (max-width:600px){
.vn-bk-hero,.vn-bk-card{padding:18px}
.vn-bk-head{grid-template-columns:auto 1fr;grid-template-areas:"r s" "m m";gap:12px}
.vn-bk-head .vn-bk-rank{grid-area:r}
.vn-bk-head .vn-bk-score{grid-area:s;justify-self:end;display:flex;align-items:center;gap:10px}
.vn-bk-head .vn-bk-score .vn-bk-stars{margin:0}
.vn-bk-head__main{grid-area:m}
.vn-bk-title{font-size:20px}
.vn-bk-actions{flex-direction:column}
.vn-bk-actions .vn-btn,.vn-bk-card .vn-bk-actions .vn-btn,.vn-bk-hero .vn-bk-actions .vn-btn{width:100%;min-width:0;box-sizing:border-box}
.vn-bk-facts b{font-size:15px}
}

/* centred cells: top picks table + fact tiles */
.vn-bk-top th,.vn-bk-top td{text-align:center}
.vn-bk-facts div{align-items:center;justify-content:center;text-align:center}
@media (max-width:700px){
.vn-bk-top td:nth-child(4),.vn-bk-top td:nth-child(5){flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
}

/* centred cells in all content tables (all languages) */
html:not([data-vn-x]) .wp-block-post-content table th,
html:not([data-vn-x]) .wp-block-post-content table td{text-align:center}
