/* Oman Verified public token bridge.
 * Theme presets win when available; brand values are the standalone fallback.
 * Selectors belong to active Tools outputs or known Knowledge/Services roots.
 * Unrelated theme and dormant calculator markup stay outside these adapters;
 * authored popup HTML keeps its colors.
 */
:is(.ovas-finder, .ovt-cr-lookup, .ovt-advisor-card, .ovt-qb-wrap, .ov-related-article-card, .ov-service-cards, .ovt-tools-cta, .ov-mobile-table, .ovt-popup, #ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) {
	--ovt-color-primary: var(--wp--preset--color--accent-1, #173E3A);
	--ovt-color-mint: var(--wp--preset--color--accent-2, #EDF5EF);
	--ovt-color-ink: var(--wp--preset--color--accent-4, #252B28);
	--ovt-color-accent: var(--wp--preset--color--contrast-midtone, #B8560F);
	--ovt-color-surface: var(--wp--preset--color--base, #FFFFFF);
	--ovt-color-muted: #56625C;
	--ovt-surface-radius: 14px;
	--ovt-surface-shadow: var(--wp--preset--shadow--natural, 0px 10px 26px 0 #00000012);
	--ovt-font-body: var(--wp--preset--font-family--karla, var(--wp--preset--font-family--body, inherit));
	--ovt-font-heading: var(--wp--preset--font-family--heading, var(--ovt-font-body));
	font-family: var(--ovt-font-body);
}
.ovt-qb-wrap.ovt-qb-wrap,
.ovt-tools-cta.ovt-tools-cta,
.ov-related-article-card.ov-related-article-card,
.ov-service-cards.ov-service-cards { font-family: var(--ovt-font-body); }

/* Local token aliases retain the individual modules' markup and behavior. */
.ovas-finder.ovas-finder {
	font-family: var(--ovt-font-body);
	--ovas-bg: var(--ovt-color-mint);
	--ovas-navy: var(--ovt-color-primary);
	--ovas-green: var(--ovt-color-primary);
	--ovas-gold: var(--ovt-color-accent);
	--ovas-text: var(--ovt-color-ink);
	--ovas-muted: var(--ovt-color-muted);
	--ovas-white: var(--ovt-color-surface);
}
.ovt-advisor-card.ovt-advisor-card {
	font-family: var(--ovt-font-body);
	--ovt-ui-teal: var(--ovt-color-primary);
	--ovt-ui-green: var(--ovt-color-primary);
	--ovt-ui-gold: var(--ovt-color-accent);
	--ovt-ui-ink: var(--ovt-color-ink);
	--ovt-ui-body: var(--ovt-color-ink);
	--ovt-ui-muted: var(--ovt-color-muted);
	--ovt-ui-surface: var(--ovt-color-surface);
}

:is(.ovas-finder, .ovt-cr-lookup) :is(h2, h3),
.ov-related-article-card .ov-related-article-card__title,
.ov-service-cards .ov-service-card__title,
.ovt-advisor-card .ovt-advisor-card__headline,
.ovt-tools-cta .ovt-tools-cta__copy h3 {
	font-family: var(--ovt-font-heading);
}

/* Editorial H3/body/small scale from the Oman Verified design reference.
 * Compact buttons, status badges and utility controls retain their own sizing.
 */
.ov-related-article-card .ov-related-article-card__title,
.ov-service-cards .ov-service-card__title,
.ovt-advisor-card .ovt-advisor-card__headline,
.ovt-tools-cta .ovt-tools-cta__copy h3 {
	font-size: 21px;
	font-weight: 500;
	line-height: 1.35;
}
.ovt-advisor-card .ovt-advisor-card__headline strong { font-weight: inherit; }
.ov-service-cards .ov-service-card__description,
.ovt-advisor-card .ovt-advisor-card__invite,
.ovt-tools-cta .ovt-tools-cta__copy p {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
}
.ov-related-article-card :is(.ov-related-article-card__label, .ov-related-article-card__cta),
.ov-service-cards :is(.ov-service-card__label, .ov-service-card__cta, .ov-service-cards__heading),
.ovt-advisor-card :is(.ovt-advisor-card__kicker, .ovt-advisor-card__meta) {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

/* Flat, quiet surfaces. Inputs and status indicators retain functional outlines. */
.ovas-finder .ovas-finder__intro {
	border: 0;
	border-radius: var(--ovt-surface-radius) var(--ovt-surface-radius) 0 0;
	background: var(--ovt-color-primary);
}
.ovas-finder .ovas-finder__eyebrow { color: #FFFFFF; }
.ovas-finder .ovas-finder__form {
	border: 0;
	border-radius: 0 0 var(--ovt-surface-radius) var(--ovt-surface-radius);
}
.ovas-finder.ovas-finder--embedded .ovas-finder__form,
.ovas-finder .ovas-finder__card,
.ovas-finder .ovas-finder__empty,
.ovas-finder .ovas-finder__disclaimer,
.ovas-finder .ovas-finder__filters {
	border: 0;
	border-radius: var(--ovt-surface-radius);
}
.ovas-finder .ovas-finder__card { box-shadow: var(--ovt-surface-shadow); }
.ovas-finder .ovas-finder__card:hover { box-shadow: var(--ovt-surface-shadow); transform: none; }
.ovas-finder .ovas-finder__submit { color: #FFFFFF; }
.ovas-finder .ovas-finder__badge--sector { background: var(--ovt-color-mint); }
.ovas-finder .ovas-finder__shortlist { border: 0; background: var(--ovt-color-primary); }
.ovas-finder .ovas-finder__dialog { border-radius: var(--ovt-surface-radius); }

.ovt-cr-lookup.ovt-cr-lookup { color: var(--ovt-color-ink); font-family: var(--ovt-font-body); }
.ovt-cr-lookup :is(.ovt-cr-lookup__form, .ovt-cr-metric-card, .ovt-cr-record) { background: var(--ovt-color-mint); }
.ovt-cr-lookup :is(.ovt-cr-lookup__form, .ovt-cr-overview, .ovt-cr-detail, .ovt-cr-metric-card, .ovt-cr-record, .ovt-cr-hero, .ovt-cr-hero__legal, .ovt-cr-hero__meta-card) {
	border: 0;
	border-radius: var(--ovt-surface-radius);
}
.ovt-cr-lookup :is(.ovt-cr-overview, .ovt-cr-detail) { background: var(--ovt-color-surface); box-shadow: var(--ovt-surface-shadow); }
.ovt-cr-lookup .ovt-cr-hero { background: var(--ovt-color-primary); }
.ovt-cr-lookup :is(.ovt-cr-lookup__intro h2, .ovt-cr-lookup__label, .ovt-cr-section-heading__english, .ovt-cr-record__title) { color: var(--ovt-color-ink); }
.ovt-cr-lookup :is(.ovt-cr-lookup__intro .ovt-cr-lookup__eyebrow, .ovt-cr-metric-card__value, .ovt-cr-pairs dd) { color: var(--ovt-color-primary); }
.ovt-cr-lookup :is(.ovt-cr-lookup__button, .ovt-cr-verify-prompt__primary, .ovt-cr-record__index, .ovt-cr-lookup__progress-bar) { background: var(--ovt-color-primary); }
.ovt-cr-lookup .ovt-cr-lookup__progress.is-error .ovt-cr-lookup__progress-bar { background: #8A2424; }
.ovt-cr-lookup .ovt-cr-verify-prompt__primary { border-color: var(--ovt-color-primary); }
.ovt-cr-lookup .ovt-cr-verify-prompt__secondary { color: var(--ovt-color-primary) !important; background: var(--ovt-color-surface); }

.ov-related-article-card.ov-related-article-card,
.ov-service-cards .ov-service-card,
.ovt-advisor-card.ovt-advisor-card {
	border: 0;
	border-radius: var(--ovt-surface-radius);
	background: var(--ovt-color-surface);
	box-shadow: var(--ovt-surface-shadow);
}
.ov-related-article-card .ov-related-article-card__link { background: var(--ovt-color-surface); }
.ov-related-article-card .ov-related-article-card__image,
.ov-service-cards .ov-service-card__image { background: var(--ovt-color-mint); }
.ov-related-article-card .ov-related-article-card__title,
.ov-service-cards .ov-service-card__title { color: var(--ovt-color-ink); }
.ov-related-article-card :is(.ov-related-article-card__label, .ov-related-article-card__cta),
.ov-service-cards :is(.ov-service-card__label, .ov-service-card__cta, .ov-service-cards__heading) { color: var(--ovt-color-primary); }
.ov-service-cards .ov-service-cards__heading { border: 0; padding-bottom: 0; }

.ovt-tools-cta.ovt-tools-cta {
	padding: 22px;
	border: 0;
	border-radius: var(--ovt-surface-radius);
	background: var(--ovt-color-mint);
}
.ovt-tools-cta .ovt-tools-cta__copy h3 { color: var(--ovt-color-ink); }
.ovt-tools-cta .ovt-tools-cta__copy p { color: var(--ovt-color-muted); }
.ovt-tools-cta .ovt-tools-cta__button {
	border: 0;
	background: var(--ovt-color-primary);
	color: #FFFFFF !important;
}

.ovt-qb-wrap .ovt-qb__action,
.ovt-qb-wrap .ovt-qb__ai-menu { border: 0; border-radius: var(--ovt-surface-radius); box-shadow: var(--ovt-surface-shadow); }
.ovt-qb-wrap.ovt-qb-wrap { max-width: calc(100vw - 28px); }
.ovt-qb-wrap .ovt-qb { max-width: 100%; }
.ovt-qb-wrap .ovt-qb__ai { flex: 0 1 auto; min-width: 0; }
.ovt-qb-wrap .ovt-qb__action { max-width: 100%; }
.ovt-qb-wrap .ovt-qb__label { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.ovt-qb-wrap .ovt-qb__action--ai { color: var(--ovt-color-primary) !important; background: var(--ovt-color-surface); }
.ovt-qb-wrap .ovt-qb__ai-mark { font-family: var(--ovt-font-body); background: var(--ovt-color-mint); color: var(--ovt-color-primary); }
.ovt-qb-wrap .ovt-qb__ai-menu { background: var(--ovt-color-surface); }
.ovt-qb-wrap .ovt-trust-ai-btn { color: var(--ovt-color-primary); background: var(--ovt-color-surface); }
.ovt-qb-wrap .ovt-trust-ai-btn--primary:not(.is-icon-only) { color: #FFFFFF; border-color: var(--ovt-color-primary); background: var(--ovt-color-primary); }
.ovt-qb-wrap .ovt-qb__toast { background: var(--ovt-color-primary); }
.ovt-qb-wrap .ovt-qb__shine { display: none; animation: none; }

@media (max-width: 600px) {
	.ovt-qb-wrap .ovt-qb__action { height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
	.ovt-qb-wrap .ovt-qb__label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ovt-qb-wrap .ovt-qb__ai { flex: 0 1 55%; min-width: 0; }
	.ovt-qb-wrap .ovt-qb__action--whatsapp { flex: 0 1 auto; min-width: 0; }
	.ovt-qb-wrap .ovt-qb__ai-actions { flex-wrap: wrap; }
}

/* Popup shell only: campaign HTML and its inline styling are intentionally excluded. */
.ovt-popup .ovt-popup__dialog,
.ovt-popup .ovt-popup__content > img,
.ovt-popup .ovt-popup__image-link > img { border-radius: var(--ovt-surface-radius); }
.ovt-popup .ovt-popup__close:focus-visible { outline: 3px solid var(--ovt-color-accent); outline-offset: -4px; }

.ov-mobile-table .ov-mobile-table-card { border: 0; border-radius: var(--ovt-surface-radius); background: var(--ovt-color-mint); }
.ov-mobile-table .ov-mobile-table-card__title { background: var(--ovt-color-primary); }
.ov-mobile-table .ov-mobile-table-card__label { color: var(--ovt-color-muted); }
.ov-mobile-table .ov-mobile-table-card__value { color: var(--ovt-color-ink); text-align: start; }
.wp-block-table.ov-mobile-scroll:focus-visible { outline: 2px solid var(--wp--preset--color--contrast-midtone, #B8560F); outline-offset: 4px; }

:is(.ovas-finder, .ovt-cr-lookup, .ovt-qb-wrap, .ovt-tools-cta, .ovt-advisor-card) :is(button, a, input, select, summary):focus-visible,
.ov-related-article-card .ov-related-article-card__link:focus-visible,
.ov-service-cards .ov-service-card:focus-visible {
	outline: 2px solid var(--ovt-color-accent) !important;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.ovas-finder :is(.ovas-finder__card, .ovas-finder__submit) { transition: none; }
}

/* Knowledge and Services navigation adapters. The repeated scoped ID in :is()
 * outranks their shared legacy Centre stylesheet within known component roots.
 * Path connectors, labels, real links, focus and [hidden] state remain intact.
 */
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) {
	--ink: var(--ovt-color-primary);
	--muted: var(--ovt-color-muted);
	--paper: var(--ovt-color-mint);
	--accent: var(--ovt-color-accent);
	font-family: var(--ovt-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ovt-color-ink);
	background: var(--ovt-color-mint);
	border: 0;
	border-radius: var(--ovt-surface-radius);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) h1 {
	font: 500 clamp(36px, 4vw, 48px)/1.15 var(--ovt-font-heading);
	letter-spacing: normal;
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) h2 {
	font: 500 32px/1.25 var(--ovt-font-heading);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) :is(h3, .ovic-card-title, .ovic-card-button strong) {
	font: 500 21px/1.35 var(--ovt-font-heading);
	color: var(--ovt-color-ink);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) h3 a { color: var(--ovt-color-ink); }
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) :is(p, article p, .ovic-card-button > span:not(.ovic-arrow)) {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ovt-color-muted);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) :is(small, .ovic-eyebrow, .ovic-progress, .ovic-path-heading, .ovic-path-hint, .ovic-path-action, .ovic-resource-count, .ovic-scope, .ovic-card-action, .ovic-path-caption, .ovic-path-caption strong, .ovic-path-caption span, .ovic-reading-controls a, .ovic-mobile-hint, .ovic-list-controls, #ovic-count, [data-ovsn-count]) {
	font-size: 15px;
	line-height: 1.5;
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) :is(article, a.ovic-card-button, button.ovic-card-button, .ovic-empty, .ovsn-empty, summary.ovsn-category-card, .ovic-path-card) {
	border: 0;
	border-radius: var(--ovt-surface-radius);
	background: var(--ovt-color-surface);
	box-shadow: var(--ovt-surface-shadow);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) .ovic-path-card {
	height: auto;
	min-height: 88px;
	color: var(--ovt-color-primary);
	box-shadow: none;
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) .ovic-path-card strong {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) .ovic-path-card.is-current {
	background: var(--ovt-color-surface);
	box-shadow: inset 0 0 0 2px var(--ovt-color-accent);
}
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) .ovic-card-kind { border: 0; padding: 0; background: transparent; }
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) :is(.ovic-hero, #ovic-breadcrumb, .ovsn-path, #ovic-step-navigation, #ovic-step-navigation-top, .ovic-list-controls, .ovic-scope) { border: 0; }
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"]) :is(.ovic-goal-icon, .ovic-card-button > .ovic-arrow) { display: none; }
:is(#ovic#ovic, .ov-navigation-home[data-ov-knowledge-mode="home"], .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"], aside.ovic-return-path) :is(button, a):focus-visible {
	outline: 3px solid var(--ovt-color-accent);
	outline-offset: 4px;
}

/* Service counts remain useful text, including any inseparable plain-text arrow.
 * Only explicitly decorative group SVGs and separately wrapped arrows disappear.
 * Real service CTAs, native details, screen-reader status and URL state are intact.
 */
:is(.ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]):is(.ov-investor-ui, .ovic-v7) .ovic-card-button > svg[aria-hidden="true"],
:is(.ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]):is(.ov-investor-ui, .ovic-v7) .ovic-arrow > span[aria-hidden="true"] { display: none; }
:is(#ovsn#ovsn, .ovsn[data-ov-services-navigator], .ov-navigation-home[data-ov-services-mode="home"]) :is(.ovic-arrow, .ovsn-service-cta, .ovic-text-button) {
	font-family: var(--ovt-font-body);
	font-size: 15px;
	line-height: 1.5;
}
:is(#ovsn#ovsn, .ovsn[data-ov-services-navigator]) .ovsn-category-fallback > summary.ovsn-category-card { height: auto; min-height: 0; }
:is(#ovsn#ovsn, .ovsn[data-ov-services-navigator]) .ovsn-category-fallback[open] > summary.ovsn-category-card,
:is(#ovsn#ovsn, .ovsn[data-ov-services-navigator]) article[data-ov-service-selected] { box-shadow: inset 0 0 0 2px var(--ovt-color-accent); }
