/* Public Investor Dashboard presentation adapter, packaged by Oman Verified
 * Tools. Namespace-only overrides; no routes, roles, values or workflow changes.
 * The Investor workspace intentionally keeps its navy primary color.
 */
:is(.ovid-page.ovid-page, .ovid-entry-card.ovid-entry-card, .ovid-assessment.ovid-assessment) {
	--ovt-investor-primary: var(--wp--preset--color--accent-3, #132A46);
	--ovt-investor-mint: var(--wp--preset--color--accent-2, #EDF5EF);
	--ovt-investor-ink: var(--wp--preset--color--accent-4, #252B28);
	--ovt-investor-accent: var(--wp--preset--color--contrast-midtone, #B8560F);
	--ovt-investor-white: var(--wp--preset--color--base, #FFFFFF);
	--ovt-investor-font: var(--wp--preset--font-family--karla, var(--wp--preset--font-family--body, inherit));
	--ov-color-brand-900: var(--ovt-investor-primary);
	--ov-color-accent-600: var(--ovt-investor-accent);
	--ov-color-canvas: var(--ovt-investor-mint);
	--ov-color-surface: var(--ovt-investor-white);
	--ov-color-surface-subtle: var(--ovt-investor-mint);
	--ov-color-text: var(--ovt-investor-ink);
	--ov-color-text-muted: #56625C;
	--ov-radius: 14px;
	--ov-radius-sm: 14px;
	--ov-radius-md: 14px;
	--ov-radius-lg: 14px;
	--ov-font-small: 15px;
	--ov-font-large: 21px;
	--ov-shadow-raised: var(--wp--preset--shadow--natural, 0px 10px 26px 0 #00000012);
	--ovid-green: var(--ovt-investor-primary);
	--ovid-green-2: var(--ov-color-brand-700);
	--ovid-warm: var(--ovt-investor-mint);
	--ovid-surface: var(--ovt-investor-white);
	--ovid-text: var(--ovt-investor-ink);
	--ovid-muted: var(--ov-color-text-muted);
	--ovid-border: var(--ov-color-border);
	--ovid-accent: var(--ovt-investor-accent);
	--ovid-accent-soft: var(--ov-color-accent-100);
	--ovid-radius: 14px;
	--ovid-shadow: var(--ov-shadow-raised);
	font-family: var(--ovt-investor-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ovt-investor-ink);
}

/* Scope and specificity compensate for Investor 2.2.4's blanket 14px!important
 * rule. Only prose and headings use the reading scale; controls/data stay 15px.
 */
.ovid-page.ovid-page.ovid-page .ovid-app {
	--ov-font-small: 15px;
	--ov-font-large: 21px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
}
.ovid-page.ovid-page.ovid-page .ovid-app h1 {
	font-size: clamp(36px, 4vw, 48px) !important;
	font-weight: 500 !important;
	line-height: 1.15;
	letter-spacing: normal;
}
.ovid-page.ovid-page.ovid-page .ovid-app h2 {
	font-size: 32px !important;
	font-weight: 500 !important;
	line-height: 1.25;
	letter-spacing: normal;
}
.ovid-page.ovid-page.ovid-page .ovid-app :is(h3, h4, .ovid-tool-card > strong, .ovid-service-card h3, .ovid-section-title),
.ovid-page.ovid-page.ovid-page .ovid-app :is(.ovid-panel, .ovid-result, .ovid-company-card, .ovid-status-card, .ovid-assessment-result) h2 {
	font-size: 21px !important;
	font-weight: 500 !important;
	line-height: 1.35;
	letter-spacing: normal;
}
.ovid-page.ovid-page.ovid-page .ovid-app :is(h1, h2, h3, h4) :is(strong, b) { font-size: inherit !important; font-weight: inherit !important; }
.ovid-page.ovid-page.ovid-page .ovid-app :is(p, .ovid-tool-card > small, .ovid-service-card__description, .ovid-assessment-result__summary) {
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.65;
}
.ovid-page.ovid-page.ovid-page .ovid-app :is(small, .ovid-eyebrow, .ovid-assessment__count, .ovid-field-error, .ovid-field > span, .ovid-form label, .ovid-nav-link, .ovid-table, .ovid-reference-list, .ovid-assessment__disclaimer) {
	font-size: 15px !important;
	line-height: 1.5;
}
.ovid-page.ovid-page.ovid-page .ovid-app :is(input, select, textarea, .ovid-button) { font-family: var(--ovt-investor-font); font-size: 15px !important; }
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-tool-card > small { font-size: 18px !important; font-weight: 400 !important; line-height: 1.65; }
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-business-metrics a { height: auto !important; min-height: 88px !important; }
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-business-metrics .ovid-metric-content > span { font-size: 15px !important; line-height: 1.5 !important; }
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-status-card strong { font-size: 15px !important; }

/* The full tool catalog needs reading width rather than the legacy icon/text/
 * arrow columns. Each existing link keeps its title, description and destination.
 * Compact tool categories outside .ovid-quick-grid retain their own layout.
 */
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px;
	align-items: stretch;
}
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid > .ovid-tool-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	align-items: start;
	align-content: start;
	gap: 12px;
	min-width: 0;
	min-height: 0;
}
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid > .ovid-tool-card > strong {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
}
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid > .ovid-tool-card > small {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
}
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid > .ovid-tool-card > .ovid-tool-card__icon,
.ovid-page.ovid-page.ovid-page .ovid-app .ovid-quick-grid > .ovid-tool-card > small + span:last-child { display: none; }

.ovid-page.ovid-page .ovid-sidebar { background: var(--ovt-investor-primary); }
.ovid-page.ovid-page .ovid-topbar { background: var(--ovt-investor-white); }
.ovid-page.ovid-page :is(.ovid-panel, .ovid-result, .ovid-company-card, .ovid-status-card, .ovid-tool-category, .ovid-auth-inline, .ovid-tool-card, .ovid-service-card, .ovid-home-tool-card, .ovid-business-hero, .ovid-guest-hero, .ovid-funnel-card, .ovid-value-hero, .ovid-service-request, .ovid-support-card, .ovid-assessment__section, .ovid-assessment__step, .ovid-assessment-result) {
	border: 0;
	border-radius: 14px;
	background: var(--ovt-investor-white);
	box-shadow: var(--ov-shadow-raised);
}
.ovid-page.ovid-page :is(.ovid-metric, .ovid-repeater-item, .ovid-addon, .ovid-business-metrics a) {
	border: 0;
	border-radius: 14px;
	background: var(--ovt-investor-mint);
}
.ovid-page.ovid-page .ovid-service-card.is-selected { box-shadow: inset 0 0 0 2px var(--ovt-investor-accent); }
.ovid-page.ovid-page :is(.ovid-button, .ovid-install-button, .ovid-home-tool-card, .ovid-whatsapp-card, .ovid-whatsapp-popover, .ovid-tool-card__icon, .ovid-preview-icon) { border-radius: 14px; }

/* Native public embed cards and standalone assessments inherit the same scale. */
.ovid-entry-card.ovid-entry-card {
	border: 0;
	border-radius: 14px;
	background: var(--ovt-investor-white);
	box-shadow: var(--ov-shadow-raised);
}
.ovid-entry-card.ovid-entry-card h3,
.ovid-assessment.ovid-assessment :is(.ovid-assessment__header h1, .ovid-assessment-result h2, .ovid-assessment-result h3, .ovid-assessment__section > legend) {
	font-family: var(--ovt-investor-font);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.35;
}
.ovid-entry-card.ovid-entry-card p,
.ovid-assessment.ovid-assessment :is(.ovid-assessment__header > p, .ovid-assessment__section > p, .ovid-assessment-result__summary) { font-size: 18px; font-weight: 400; line-height: 1.65; }
.ovid-entry-card.ovid-entry-card :is(small, .ovid-entry-card__label, .ovid-entry-card__benefit, .ovid-entry-card__free, .ovid-button) { font-size: 15px; line-height: 1.5; }
