/* ============================================================
   MightyPaint Tools — Color Format Converter Styles
   Scoped under .mp-color-converter-tool
   ============================================================ */

.mp-color-converter-tool {
	--mp-converter-bg: #eef5fc;
	--mp-converter-surface: #ffffff;
	--mp-converter-soft: #f8fbff;
	--mp-converter-ink: #071a3d;
	--mp-converter-text: #10233f;
	--mp-converter-muted: #5f718e;
	--mp-converter-border: #dbe7f4;
	--mp-converter-blue: #1368d8;
	--mp-converter-blue-dark: #0f4fb0;
	--mp-converter-teal: #0f766e;
	--mp-converter-green: #16a34a;
	--mp-converter-orange: #f59e0b;
	--mp-converter-red: #ef4444;
	--mp-converter-purple: #8b5cf6;
	--mp-converter-radius: 14px;
	--mp-converter-radius-lg: 18px;
	--mp-converter-shadow-soft: 0 6px 24px rgba(7, 26, 61, 0.07);
	--mp-converter-shadow-medium: 0 8px 32px rgba(7, 26, 61, 0.10);
	--mp-converter-gap: clamp(18px, 2vw, 28px);

	background: var(--mp-converter-bg);
	padding: clamp(18px, 2vw, 32px) 0 clamp(40px, 4vw, 80px);
	font-size: 17px;
}

.mp-tool-app,
.mp-tool-app *,
.mp-tool-app *::before,
.mp-tool-app *::after {
	box-sizing: border-box;
}

/* ---------- Wide Shell ---------- */
.mp-converter-inner {
	width: min(100% - clamp(24px, 4vw, 96px), 1920px);
	margin-inline: auto;
}

/* ---------- Hero ---------- */
.mp-converter-hero {
	display: block;
	max-width: 900px;
	margin-bottom: clamp(18px, 2vw, 28px);
}

.mp-converter-eyebrow {
	display: inline-block;
	font-size: clamp(0.7rem, 0.75vw, 0.82rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-converter-blue);
	background: var(--mp-converter-soft);
	padding: 6px 12px;
	border-radius: 999px;
	margin: 0 0 10px;
}

.mp-converter-hero h1 {
	font-size: clamp(2rem, 3.2vw, 3.6rem);
	font-weight: 900;
	line-height: 1.1;
	color: var(--mp-converter-ink);
	margin: 0 0 10px;
}

.mp-converter-hero p {
	font-size: clamp(1rem, 1.1vw, 1.2rem);
	color: var(--mp-converter-muted);
	line-height: 1.6;
	margin: 0 0 14px;
	max-width: 780px;
}

.mp-converter-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}

.mp-converter-trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: clamp(0.78rem, 0.85vw, 0.9rem);
	color: var(--mp-converter-muted);
}

.mp-converter-trust-row span::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231368d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex-shrink: 0;
}

/* ---------- Hide static hero preview ---------- */
.mp-converter-preview-card {
	display: none !important;
}

/* ---------- Workbench ---------- */
.mp-converter-workbench {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.85fr);
	gap: var(--mp-converter-gap);
	align-items: start;
	margin-top: clamp(14px, 1.5vw, 22px);
}

@media (min-width: 1800px) {
	.mp-converter-workbench {
		grid-template-columns: minmax(0, 1.9fr) minmax(380px, 0.8fr);
	}
}

/* ---------- Panels ---------- */
.mp-converter-panel {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	box-shadow: var(--mp-converter-shadow-soft);
	padding: clamp(18px, 1.4vw, 28px);
}

.mp-converter-panel-title {
	font-size: clamp(1.35rem, 1.25vw, 1.65rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 18px;
}

/* ---------- Input Card ---------- */
.mp-converter-input-card {
	background: var(--mp-converter-soft);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius);
	padding: clamp(14px, 1.1vw, 18px);
	margin-bottom: 12px;
}

.mp-converter-input-label {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	font-weight: 700;
	color: var(--mp-converter-ink);
	margin: 0 0 10px;
}

.mp-converter-input-row {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.mp-converter-universal-input {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1rem, 0.95vw, 1.12rem);
	font-weight: 600;
	color: var(--mp-converter-ink);
	background: #fff;
	border: 1px solid var(--mp-converter-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mp-converter-universal-input:focus {
	outline: none;
	border-color: var(--mp-converter-blue);
	box-shadow: 0 0 0 3px rgba(19, 104, 216, 0.12);
}

.mp-converter-native-picker {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mp-converter-border);
	border-radius: 10px;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
}

.mp-converter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.08s, box-shadow 0.15s;
}

.mp-converter-btn:active {
	transform: translateY(1px);
}

.mp-converter-btn-primary {
	background: var(--mp-converter-blue);
	color: #fff;
	border-color: var(--mp-converter-blue);
}

.mp-converter-btn-primary:hover {
	background: var(--mp-converter-blue-dark);
	border-color: var(--mp-converter-blue-dark);
	box-shadow: 0 4px 12px rgba(19, 104, 216, 0.25);
}

.mp-converter-btn-secondary {
	background: var(--mp-converter-surface);
	color: var(--mp-converter-ink);
	border-color: var(--mp-converter-border);
}

.mp-converter-btn-secondary:hover {
	background: var(--mp-converter-soft);
	color: var(--mp-converter-blue);
	border-color: var(--mp-converter-blue);
}

.mp-converter-error {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	color: #dc2626;
	margin: 0 0 8px;
	font-weight: 700;
}

/* ---------- Recognizer Chips ---------- */
.mp-converter-chips-label {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	color: var(--mp-converter-muted);
	margin: 0 0 8px;
}

.mp-converter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.mp-converter-chip {
	appearance: none;
	border: 1px solid var(--mp-converter-border);
	background: #fff;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--mp-converter-blue);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.mp-converter-chip:hover {
	border-color: var(--mp-converter-blue);
	background: var(--mp-converter-soft);
}

/* ---------- Current Output Strip ---------- */
.mp-converter-current-strip {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	margin: 14px 0 18px;
	border: 1px solid var(--mp-converter-border);
	border-radius: 18px;
	background: linear-gradient(135deg, #ffffff, #f5f9ff);
}

.mp-converter-current-swatch {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	border: 1px solid var(--mp-converter-border);
	background: var(--mp-current-color, #2E8B57);
	flex-shrink: 0;
}

.mp-converter-current-label {
	display: block;
	color: var(--mp-converter-muted);
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mp-converter-current-hex {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: clamp(1.25rem, 1.4vw, 1.65rem);
	color: var(--mp-converter-ink);
	margin: 0;
}

.mp-converter-current-mini {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.mp-converter-current-mini span {
	padding: 7px 10px;
	border-radius: 999px;
	background: #eaf3ff;
	color: var(--mp-converter-blue);
	font-size: 0.92rem;
	font-weight: 800;
}

/* ---------- Converted Values ---------- */
.mp-converter-values-title {
	font-size: clamp(1.12rem, 1.05vw, 1.3rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 18px 0 10px;
}

.mp-converter-values-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mp-converter-format-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 74px;
	padding: 12px 14px;
	border: 1px solid var(--mp-converter-border);
	border-radius: 16px;
	background: linear-gradient(135deg, #ffffff, #f8fbff);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-converter-format-row:hover {
	border-color: var(--mp-converter-blue);
	box-shadow: 0 2px 8px rgba(19, 104, 216, 0.08);
}

.mp-converter-format-badge {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	height: 38px;
	padding: 0 10px;
	border-radius: 12px;
	background: #eaf3ff;
	color: var(--mp-converter-blue);
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.mp-converter-format-value {
	display: block;
	color: var(--mp-converter-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: clamp(1rem, 0.95vw, 1.12rem);
	overflow-wrap: anywhere;
	margin: 0 0 2px;
}

.mp-converter-format-help {
	display: block;
	margin-top: 4px;
	color: var(--mp-converter-muted);
	font-size: clamp(0.88rem, 0.85vw, 0.95rem);
	line-height: 1.35;
}

.mp-converter-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid var(--mp-converter-border);
	background: var(--mp-converter-surface);
	color: var(--mp-converter-muted);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mp-converter-copy-btn:hover {
	background: var(--mp-converter-soft);
	color: var(--mp-converter-blue);
	border-color: var(--mp-converter-blue);
}

/* ---------- Extras ---------- */
.mp-converter-extras-title {
	font-size: clamp(1.12rem, 1.05vw, 1.3rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 18px 0 10px;
}

.mp-converter-extras-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.mp-converter-extra-card {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius);
	padding: 12px 14px;
}

.mp-converter-extra-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--mp-converter-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 4px;
}

.mp-converter-extra-value {
	font-size: clamp(0.95rem, 0.9vw, 1.05rem);
	font-weight: 600;
	color: var(--mp-converter-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	margin: 0;
}

/* ---------- Preview Panel ---------- */
.mp-converter-preview-panel {
	align-self: start;
}

.mp-converter-preview-panel .mp-converter-panel-title {
	margin-bottom: 6px;
}

.mp-converter-preview-subtitle {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	color: var(--mp-converter-muted);
	margin: 0 0 18px;
	line-height: 1.55;
}

.mp-converter-big-swatch {
	border-radius: var(--mp-converter-radius);
	padding: 22px;
	margin-bottom: 14px;
	position: relative;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.mp-converter-big-swatch-hex {
	font-size: clamp(1.6rem, 1.8vw, 2.2rem);
	font-weight: 900;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	margin: 0 0 2px;
	line-height: 1.1;
}

.mp-converter-big-swatch-name {
	font-size: clamp(1rem, 1.05vw, 1.2rem);
	font-weight: 700;
	margin: 0 0 10px;
}

.mp-converter-big-swatch-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mp-converter-big-swatch-chip {
	font-size: 0.82rem;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(4px);
}

.mp-converter-preview-actions {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.mp-converter-preview-actions .mp-converter-btn {
	width: 100%;
}

/* ---------- Code Block ---------- */
.mp-converter-code-block {
	position: relative;
	background: #071a3d !important;
	border-radius: var(--mp-converter-radius);
	padding: 16px;
	margin-bottom: 14px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.12);
}

.mp-converter-code-block pre,
.mp-converter-code-block code,
.mp-converter-code-block pre *,
.mp-converter-code-block code * {
	color: #eaf3ff !important;
	background: transparent !important;
	text-shadow: none !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #eaf3ff !important;
}

.mp-converter-code-block pre {
	margin: 0;
	font-size: clamp(0.9rem, 0.85vw, 1rem);
	line-height: 1.55;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	white-space: pre;
	overflow-x: auto;
	max-width: 100%;
}

.mp-converter-code-copy {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.8);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mp-converter-code-copy:hover {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

/* ---------- Feedback ---------- */
.mp-converter-feedback {
	font-size: clamp(0.98rem, 0.92vw, 1.06rem);
	font-weight: 700;
	color: #16a34a;
	margin: 8px 0 0;
	text-align: center;
	line-height: 1.55;
}

.mp-converter-feedback.is-error {
	color: #dc2626;
}

/* ---------- Content Sections ---------- */
.mp-converter-content {
	margin-top: clamp(32px, 4vw, 56px);
	font-size: 18px;
}

.mp-converter-content h2 {
	font-size: clamp(1.55rem, 1.7vw, 2.2rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: var(--mp-converter-ink);
	margin: 0 0 18px;
}

.mp-converter-content > * + * {
	margin-top: clamp(28px, 3vw, 48px);
}

.mp-converter-content p,
.mp-converter-highlight-card p,
.mp-converter-step-card p,
.mp-converter-use-card p,
.mp-converter-tip-card p,
.mp-converter-related-card p,
.mp-converter-faq-section p,
.mp-converter-closing p {
	font-size: clamp(1.02rem, 0.95vw, 1.12rem);
	line-height: 1.68;
	color: #43546f;
}

.mp-converter-content h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	line-height: 1.25;
}

/* Step cards */
.mp-converter-step-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-converter-step-card {
	background: #f8fbff;
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-converter-shadow-soft);
}

.mp-converter-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mp-converter-blue);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	margin-bottom: 10px;
}

.mp-converter-step-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 6px;
}

/* Highlight cards */
.mp-converter-highlight-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-converter-highlight-card {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-converter-shadow-soft);
	position: relative;
	overflow: hidden;
}

.mp-converter-highlight-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--mp-converter-blue);
}

.mp-converter-highlight-card:nth-child(2)::before { background: var(--mp-converter-teal); }
.mp-converter-highlight-card:nth-child(3)::before { background: var(--mp-converter-orange); }
.mp-converter-highlight-card:nth-child(4)::before { background: var(--mp-converter-purple); }
.mp-converter-highlight-card:nth-child(5)::before { background: var(--mp-converter-red); }
.mp-converter-highlight-card:nth-child(6)::before { background: var(--mp-converter-green); }

.mp-converter-highlight-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 8px;
}

/* Use cards */
.mp-converter-use-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-converter-use-card {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-converter-shadow-soft);
}

.mp-converter-use-card:nth-child(1) { background: #f0f9f6; border-color: #d0e8e0; }
.mp-converter-use-card:nth-child(2) { background: #f0f5ff; border-color: #d0ddee; }
.mp-converter-use-card:nth-child(3) { background: #fff5f5; border-color: #eed0d0; }
.mp-converter-use-card:nth-child(4) { background: #fff8f0; border-color: #eedcc0; }

.mp-converter-use-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 8px;
}

/* Tips */
.mp-converter-tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-converter-tip-card {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius);
	padding: clamp(18px, 1.35vw, 24px);
	position: relative;
	overflow: hidden;
}

.mp-converter-tip-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--mp-converter-blue);
}

.mp-converter-tip-card:nth-child(2)::before { background: var(--mp-converter-teal); }
.mp-converter-tip-card:nth-child(3)::before { background: var(--mp-converter-orange); }
.mp-converter-tip-card:nth-child(4)::before { background: var(--mp-converter-purple); }

.mp-converter-tip-card h4 {
	font-size: clamp(1.05rem, 1vw, 1.22rem);
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 4px;
}

/* CTA Banner */
.mp-converter-cta-banner {
	background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(24px, 3vw, 40px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
}

.mp-converter-cta-banner h3 {
	font-size: clamp(1.3rem, 1.6vw, 1.8rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
}

.mp-converter-cta-banner p {
	font-size: clamp(1rem, 1.1vw, 1.15rem);
	color: rgba(255,255,255,0.92);
	margin: 0;
	max-width: 520px;
}

.mp-converter-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--mp-converter-blue);
	font-size: 0.92rem;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.08s, box-shadow 0.15s;
	flex-shrink: 0;
}

.mp-converter-cta-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Related tools */
.mp-converter-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}

.mp-converter-related-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, #ffffff, #f5f9ff);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(18px, 1.35vw, 24px);
	box-shadow: var(--mp-converter-shadow-soft);
	text-decoration: none;
	color: inherit;
	transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
	min-height: 190px;
}

.mp-converter-related-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mp-converter-shadow-medium);
	border-color: var(--mp-converter-blue);
}

.mp-converter-related-chips {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.mp-converter-related-chip {
	width: 22px;
	height: 22px;
	border-radius: 6px;
}

.mp-converter-related-card h4 {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--mp-converter-ink);
	margin: 0 0 6px;
}

.mp-converter-related-arrow {
	margin-top: auto;
	display: inline-flex;
	width: fit-content;
	padding: 7px 12px;
	border-radius: 999px;
	background: #e7f1ff;
	color: #2563eb;
	font-weight: 800;
	font-size: 0.85rem;
}

.mp-converter-related-card:hover .mp-converter-related-arrow {
	background: #2563eb;
	color: #ffffff;
}

/* FAQ */
.mp-converter-faq-grid {
	display: grid;
	gap: 10px;
}

.mp-converter-faq-section .mp-converter-faq-item {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius);
	box-shadow: var(--mp-converter-shadow-soft);
	overflow: hidden;
}

.mp-converter-faq-section summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--mp-converter-ink);
}

.mp-converter-faq-section summary::-webkit-details-marker {
	display: none;
}

.mp-converter-faq-q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mp-converter-soft);
	color: var(--mp-converter-blue);
	font-size: 0.8rem;
	font-weight: 800;
	flex-shrink: 0;
}

.mp-converter-faq-section .mp-converter-faq-item p {
	padding: 0 20px 18px 54px;
	margin: 0;
	font-size: clamp(1.02rem, 0.95vw, 1.12rem);
	color: #43546f;
	line-height: 1.68;
}

.mp-converter-faq-section details[open] {
	border-color: #bcd4f2;
	background: #ffffff;
}

/* Closing */
.mp-converter-closing {
	background: var(--mp-converter-surface);
	border: 1px solid var(--mp-converter-border);
	border-radius: var(--mp-converter-radius-lg);
	padding: clamp(22px, 2vw, 34px);
	text-align: center;
	box-shadow: var(--mp-converter-shadow-soft);
}

.mp-converter-closing p {
	font-size: clamp(1rem, 1.1vw, 1.15rem);
	color: #43546f;
	line-height: 1.68;
	margin: 0 auto;
	max-width: 700px;
}

.mp-converter-related-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
	margin-top: 18px;
}

.mp-converter-related-link {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--mp-converter-blue);
	text-decoration: none;
}

.mp-converter-related-link:hover {
	text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mp-converter-workbench {
		grid-template-columns: 1fr;
	}

	.mp-converter-values-grid {
		grid-template-columns: 1fr;
	}

	.mp-converter-extras-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.mp-color-converter-tool {
		padding-top: 18px;
	}

	.mp-converter-hero {
		margin-bottom: 16px;
	}

	.mp-converter-hero h1 {
		font-size: clamp(2.15rem, 10vw, 3rem);
		line-height: 1.04;
		margin-bottom: 10px;
	}

	.mp-converter-hero p {
		font-size: 1.05rem;
		line-height: 1.55;
		margin-bottom: 14px;
	}

	.mp-converter-eyebrow {
		margin-bottom: 10px;
	}

	.mp-converter-trust-row {
		gap: 8px 14px;
		margin-bottom: 0;
	}

	.mp-converter-inner {
		width: min(100% - 24px, 100%);
	}

	.mp-converter-workbench {
		gap: 18px;
	}

	.mp-converter-panel {
		padding: 18px;
		border-radius: 18px;
	}

	.mp-converter-panel-title {
		margin-bottom: 14px;
	}

	.mp-converter-values-grid {
		grid-template-columns: 1fr;
	}

	.mp-converter-extras-grid {
		grid-template-columns: 1fr;
	}

	.mp-converter-input-row {
		flex-direction: column;
	}

	.mp-converter-preview-actions .mp-converter-btn {
		width: 100%;
	}

	.mp-converter-cta-banner {
		grid-template-columns: 1fr;
	}

	.mp-converter-current-strip {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.mp-converter-current-mini {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.mp-converter-format-row {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.mp-converter-copy-btn {
		grid-column: 1 / -1;
		width: 100%;
	}
}
