/* Marketing Metrics Calculator — visual design (violet #570AEF & white theme, matching Calcvertise brand)
   Tokens:
   --mc-ink       #0F172A  (headers, primary text)
   --mc-slate     #5C6B84  (secondary text, labels)
   --mc-line      #E3D6FA  (borders, violet-tinted)
   --mc-violet-50   #F6F1FE  (lightest tint — panel backgrounds)
   --mc-violet-100  #EDE1FE  (chips, readout panel)
   --mc-violet-500  #7C3AED  (mid accent)
   --mc-violet-600  #570AEF  (primary accent — links, focus, numbers)
   --mc-violet-700  #44079B  (darker accent — headings, strong text)
*/

.mc-widget {
	--mc-ink: #0F172A;
	--mc-slate: #5C6B84;
	--mc-line: #E3D6FA;
	--mc-violet-50: #F6F1FE;
	--mc-violet-100: #EDE1FE;
	--mc-violet-500: #7C3AED;
	--mc-violet-600: #570AEF;
	--mc-violet-700: #44079B;

	max-width: 640px;
	margin: 1.75em 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mc-widget-inner {
	background: linear-gradient(180deg, #ffffff 0%, #FBF9FE 100%);
	border: 1px solid var(--mc-line);
	border-radius: 18px;
	padding: 26px 26px 24px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(87, 10, 239, 0.03), 0 20px 40px -20px rgba(87, 10, 239, 0.25);
}

/* signature bezel strip along the top */
.mc-widget-inner::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 5px;
	background: linear-gradient(90deg, #C4A5FA, var(--mc-violet-600) 50%, #C4A5FA);
	box-shadow: 0 1px 8px rgba(87, 10, 239, 0.35);
}

.mc-formula-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--mc-line);
	flex-wrap: wrap;
}

.mc-formula-tag {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mc-violet-700);
	background: var(--mc-violet-100);
	padding: 3px 8px;
	border-radius: 5px;
	white-space: nowrap;
}

.mc-formula-text {
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--mc-ink);
}

.mc-top-controls {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.mc-top-controls .mc-solve-row {
	margin-bottom: 0;
	flex: 1 1 200px;
	min-width: 0;
	flex-wrap: nowrap;
}

.mc-currency-row {
	flex: 1 1 200px;
	min-width: 0;
}

.mc-currency-select {
	width: 100%;
	min-width: 0;
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 34px 10px 12px;
	font-size: 14px;
	font-family: inherit;
	font-weight: 500;
	border: 1.5px solid var(--mc-line);
	border-radius: 8px;
	background: var(--mc-violet-50);
	color: var(--mc-ink);
	cursor: pointer;
	transition: border-color 0.15s ease;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.mc-currency-select:focus {
	outline: none;
	border-color: var(--mc-violet-600);
	box-shadow: 0 0 0 3px rgba(87, 10, 239, 0.15);
}

.mc-currency-row .mc-select-wrap::after {
	border-right: 2px solid var(--mc-violet-600);
	border-bottom: 2px solid var(--mc-violet-600);
}

.mc-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.mc-input-group .mc-currency-symbol {
	position: absolute;
	left: 13px;
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 15px;
	font-weight: 600;
	color: var(--mc-slate);
	pointer-events: none;
}

.mc-input-group .mc-input.mc-has-currency {
	padding-left: 34px;
}

.mc-readout-value-wrap {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.mc-solve-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.mc-solve-row label {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mc-slate);
	white-space: nowrap;
}

.mc-select-wrap {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}

.mc-select-wrap::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--mc-violet-600);
	border-bottom: 2px solid var(--mc-violet-600);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.mc-solve-for {
	width: 100%;
	min-width: 0;
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 36px 10px 14px;
	font-size: 14.5px;
	font-family: inherit;
	font-weight: 500;
	border: 1.5px solid var(--mc-line);
	border-radius: 8px;
	background: var(--mc-violet-50);
	color: var(--mc-ink);
	cursor: pointer;
	transition: border-color 0.15s ease;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.mc-solve-for:focus {
	outline: none;
	border-color: var(--mc-violet-600);
	box-shadow: 0 0 0 3px rgba(87, 10, 239, 0.15);
}

.mc-fields {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.mc-field {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 150px;
}

.mc-field label {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mc-slate);
}

.mc-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	font-size: 16px;
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	border: 1.5px solid var(--mc-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--mc-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-input:focus {
	outline: none;
	border-color: var(--mc-violet-600);
	box-shadow: 0 0 0 3px rgba(87, 10, 239, 0.15);
}

.mc-field.mc-disabled:not(.mc-readout) {
	opacity: 0.55;
}

.mc-field.mc-disabled:not(.mc-readout) .mc-input {
	background: var(--mc-violet-50);
	cursor: not-allowed;
}

/* The readout: the one deliberate signature element — a premium,
   centered "hero" display for the calculated value, distinct from
   the plain input fields above it. */
.mc-readout {
	position: relative;
	background: linear-gradient(155deg, #F6F1FE 0%, #EDE1FE 55%, #F5EEFE 100%);
	border: 1.5px solid #DCC8FB;
	border-radius: 14px;
	padding: 22px 20px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 24px -16px rgba(87, 10, 239, 0.35);
}

.mc-readout-glow {
	position: absolute;
	top: -60%;
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 70%);
	pointer-events: none;
}

.mc-readout-label {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mc-violet-700);
	position: relative;
}

.mc-readout .mc-readout-value-wrap {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 5px;
	position: relative;
}

.mc-readout-currency-symbol {
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 26px;
	font-weight: 600;
	color: var(--mc-violet-600);
}

.mc-readout .mc-input.mc-readout-input {
	background: transparent;
	border: none;
	color: var(--mc-violet-700);
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 40px;
	font-weight: 700;
	text-align: center;
	padding: 0;
	width: auto;
	max-width: 100%;
	flex: 0 0 auto;
	letter-spacing: -0.01em;
}

.mc-readout .mc-input.mc-readout-input:focus {
	box-shadow: none;
	outline: none;
}

@media (max-width: 480px) {
	.mc-fields {
		flex-direction: column;
	}
	.mc-readout .mc-input.mc-readout-input {
		font-size: 32px;
	}
}

/* Grid (homepage overview) — matches the widget's visual language */
.mc-grid-wrap {
	margin: 1.75em 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mc-grid-group {
	margin-bottom: 28px;
}

.mc-grid-group-title {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #1E0A4D;
	margin: 0 0 20px;
	padding-bottom: 0;
	border-bottom: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.mc-grid-group-title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, #7C3AED, #570AEF);
	flex-shrink: 0;
	box-shadow: 0 2px 6px -1px rgba(87, 10, 239, 0.5);
}

.mc-grid-group-title::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, #E3D6FA, transparent);
	margin-left: 4px;
}

.mc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.mc-grid-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #FBF9FF 100%);
	border: 1.5px solid #E9DDFB;
	border-radius: 18px;
	padding: 22px 22px 20px;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 24px -14px rgba(87, 10, 239, 0.28), 0 2px 6px -2px rgba(87, 10, 239, 0.1);
	transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mc-grid-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #C4A5FA, #570AEF 50%, #C4A5FA);
	opacity: 0.55;
	transform: scaleX(1);
	transform-origin: center;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.mc-grid-card:hover {
	transform: translateY(-5px) scale(1.012);
	box-shadow: 0 22px 40px -18px rgba(87, 10, 239, 0.4), 0 6px 14px -6px rgba(87, 10, 239, 0.2);
	border-color: #570AEF;
	background: linear-gradient(180deg, #ffffff 0%, #FAF7FE 100%);
}

.mc-grid-card:hover::before {
	opacity: 1;
	transform: scaleX(1);
}

.mc-grid-card:active {
	transform: translateY(-1px) scale(1.005);
}

.mc-grid-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, #7C3AED, #570AEF);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-weight: 700;
	font-size: 17px;
	font-style: italic;
	box-shadow: 0 6px 14px -4px rgba(87, 10, 239, 0.55);
	flex-shrink: 0;
}

.mc-grid-card-formula {
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 11px;
	font-weight: 600;
	color: #7C3AED;
	line-height: 1.4;
	background: #F6F1FE;
	padding: 5px 10px;
	border-radius: 7px;
	width: fit-content;
	transition: background 0.2s ease, color 0.2s ease;
}

.mc-grid-card:hover .mc-grid-card-formula {
	background: #EDE1FE;
}

.mc-grid-card-label {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #0F172A;
	line-height: 1.3;
	transition: color 0.2s ease;
}

.mc-grid-card:hover .mc-grid-card-label {
	color: #44079B;
}

.mc-grid-card-cta {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	color: #570AEF;
	background: #F6F1FE;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 8px 14px;
	border-radius: 100px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mc-grid-card:hover .mc-grid-card-cta {
	background: #570AEF;
	color: #ffffff;
	box-shadow: 0 6px 14px -4px rgba(87, 10, 239, 0.5);
}

.mc-grid-card-arrow {
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: inline-block;
}

.mc-grid-card:hover .mc-grid-card-arrow {
	transform: translateX(5px);
}

.mc-disclaimer {
	font-size: 12.5px;
	color: #5C6B84;
}

/* ============================================================
   Single Calculator Page — Content Styling
   Applies globally to standard WordPress/Kadence blocks (Table,
   List, Heading) so pages built with the native block editor
   automatically match the Calcvertise violet brand, without
   needing any custom HTML or classes.
   ============================================================ */

/* Benchmark tables ("What is a good X?" section) */
.entry-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0 28px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px -12px rgba(87, 10, 239, 0.25);
	border: 1px solid #E9DDFB;
}

.entry-content table th,
.wp-block-table table th {
	background: linear-gradient(135deg, #570AEF, #7C3AED);
	color: #ffffff;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: left;
	padding: 12px 16px;
}

.entry-content table td,
.wp-block-table table td {
	padding: 12px 16px;
	border-bottom: 1px solid #F0E9FC;
	font-size: 14.5px;
	color: #2A2140;
}

.entry-content table tr:last-child td,
.wp-block-table table tr:last-child td {
	border-bottom: none;
}

.entry-content table tr:nth-child(even) td,
.wp-block-table table tr:nth-child(even) td {
	background: #FBF9FF;
}

/* Tips lists ("How to improve" sections) */
.entry-content ul:not(.mc-grid):not(.cv-related),
.wp-block-list {
	list-style: none;
	padding-left: 0;
	margin: 16px 0 24px;
}

.entry-content ul:not(.mc-grid):not(.cv-related) li,
.wp-block-list li {
	position: relative;
	padding: 10px 0 10px 34px;
	font-size: 15px;
	color: #2A2140;
	border-bottom: 1px solid #F3EEFC;
}

.entry-content ul:not(.mc-grid):not(.cv-related) li:last-child,
.wp-block-list li:last-child {
	border-bottom: none;
}

.entry-content ul:not(.mc-grid):not(.cv-related) li::before,
.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: linear-gradient(135deg, #7C3AED, #570AEF);
}

.entry-content ul:not(.mc-grid):not(.cv-related) li::after,
.wp-block-list li::after {
	content: "\2713";
	position: absolute;
	left: 3px;
	top: 14px;
	font-size: 11px;
	color: #ffffff;
	font-weight: 700;
}

/* FAQ-style Q&A blocks: a Heading (H3) immediately followed by a
   Paragraph reads as a question/answer pair — style the heading
   like a question and add spacing that visually groups the pair. */
.entry-content h3 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 700;
	color: #1E0A4D;
	margin-top: 26px;
	margin-bottom: 6px;
}

.entry-content h3 + p {
	color: #4A4360;
	margin-top: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #F3EEFC;
}

/* General content links (e.g. "Related Calculators" links pasted
   as plain paragraph links) get a clear branded hover state. */
.entry-content p a,
.entry-content li a {
	color: #570AEF;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #DCC8FB;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.entry-content p a:hover,
.entry-content li a:hover {
	color: #44079B;
	text-decoration-color: #570AEF;
}
