/**
 * SSL tools page — checker-style layout (scoped to .ssl-tools-wrap).
 * Typography: Source Sans 3 (Google Fonts), comfortable sizes for reading.
 *
 * @package sslfirm
 */

/* Typography tokens for the whole SSL tools page (title + intro + tools). */
.ssl-tools-page {
	--ssl-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ssl-font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
	--ssl-text: #1a2e1a;
	--ssl-text-muted: #3d4f3d;
}

.ssl-tools-wrap {
	--ssl-bg-page: #eef2ef;
	--ssl-card: #ffffff;
	--ssl-border: #d8e0d8;
	--ssl-border-strong: #b8c4b8;
	--ssl-text: #1a2e1a;
	--ssl-text-muted: #3d4f3d;
	--ssl-green: #1e7b3a;
	--ssl-green-hover: #16632e;
	--ssl-green-soft: #e8f5eb;
	--ssl-red-soft: #fdecea;
	--ssl-red: #b42318;
	--ssl-amber-soft: #fff8e6;
	--ssl-amber: #8a5b00;
	--ssl-blue-soft: #eef4fc;
	--ssl-radius: 10px;
	--ssl-shadow: 0 2px 8px rgba(15, 40, 20, 0.08);
	--ssl-shadow-lg: 0 8px 28px rgba(15, 40, 20, 0.12);
	font-family: var(--ssl-font);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ssl-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	max-width: 760px;
	margin: 0 auto 2.5rem;
}

.ssl-tools-wrap *,
.ssl-tools-wrap *::before,
.ssl-tools-wrap *::after {
	box-sizing: border-box;
}

/* Page title + intro: same font, readable size (matches tools) */
.ssl-tools-page.post-listing .post-title.entry-title {
	font-family: var(--ssl-font);
	font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.125rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--ssl-text);
}

.ssl-tools-page .ssl-tools-intro,
.ssl-tools-page .ssl-tools-intro p {
	font-family: var(--ssl-font);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--ssl-text);
}

.ssl-tools-page .ssl-tools-intro {
	margin-bottom: 1.5rem;
	max-width: 65ch;
}

/* Hero / checker panel */
.ssl-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(165deg, #f4faf5 0%, #e8f2ea 45%, #dfece2 100%);
	border: 1px solid var(--ssl-border);
	border-radius: var(--ssl-radius);
	box-shadow: var(--ssl-shadow-lg);
	padding: 1.75rem 1.5rem 2rem;
	margin-bottom: 2rem;
}

.ssl-hero--visual {
	padding-top: 2rem;
}

.ssl-hero-decor {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 72px;
	height: 72px;
	opacity: 0.22;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath fill='%231e7b3a' d='M32 4L8 14v18c0 14 10 26 24 30 14-4 24-16 24-30V14L32 4z'/%3E%3Cpath stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M24 32l6 6 12-14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ssl-hero-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ssl-green);
}

.ssl-hero-title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ssl-text);
	letter-spacing: -0.02em;
}

.ssl-hero-desc {
	margin: 0 0 1.35rem;
	font-size: 1.0625rem;
	color: var(--ssl-text-muted);
	max-width: 38em;
}

.ssl-check-form {
	margin: 0;
}

.ssl-field-label {
	display: block;
	font-weight: 700;
	font-size: 1.0625rem;
	margin-bottom: 0.5rem;
	color: var(--ssl-text);
}

.ssl-check-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
	margin-bottom: 1rem;
}

.ssl-input-host-wrap {
	flex: 1 1 220px;
	min-width: 0;
}

.ssl-input-host {
	width: 100%;
	padding: 0.85rem 1rem;
	font-size: 1.125rem;
	border: 2px solid var(--ssl-border-strong);
	border-radius: 8px;
	background: var(--ssl-card);
	color: var(--ssl-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ssl-input-host:focus {
	outline: none;
	border-color: var(--ssl-green);
	box-shadow: 0 0 0 3px rgba(30, 123, 58, 0.2);
}

.ssl-input-host::placeholder {
	color: #8a9a8a;
}

.ssl-port-group {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ssl-port-group .ssl-field-label {
	margin-bottom: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ssl-text-muted);
}

.ssl-input-port {
	width: 5.5rem;
	padding: 0.85rem 0.65rem;
	font-size: 1.125rem;
	text-align: center;
	border: 2px solid var(--ssl-border-strong);
	border-radius: 8px;
	background: var(--ssl-card);
}

.ssl-input-port:focus {
	outline: none;
	border-color: var(--ssl-green);
}

.ssl-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 280px;
	margin-top: 0.25rem;
	padding: 0.9rem 1.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff !important;
	background: linear-gradient(180deg, var(--ssl-green) 0%, #186b30 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 0 #0f4a1f, 0 4px 12px rgba(30, 123, 58, 0.35);
	transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ssl-btn-primary:hover {
	color: #fff !important;
	filter: brightness(1.05);
	box-shadow: 0 2px 0 #0f4a1f, 0 6px 16px rgba(30, 123, 58, 0.45);
}

.ssl-btn-primary:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 #0f4a1f;
}

.ssl-hint {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	color: var(--ssl-text-muted);
	line-height: 1.65;
}

.ssl-hint code {
	font-family: var(--ssl-font-mono);
	font-size: 0.9em;
	background: rgba(255, 255, 255, 0.7);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.ssl-mt-1 {
	margin-top: 1rem;
}

.ssl-mt-125 {
	margin-top: 1.25rem;
}

/* Results panel */
.ssl-results-panel {
	position: relative;
	background: var(--ssl-card);
	border: 1px solid var(--ssl-border);
	border-radius: var(--ssl-radius);
	box-shadow: var(--ssl-shadow);
	padding: 1.35rem 1.35rem 1.5rem;
	margin-top: 1.25rem;
	overflow: hidden;
}

.ssl-results-panel::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ssl-green) 0%, #2d9a4f 40%, #6bbf7a 100%);
}

.ssl-results-head {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--ssl-border);
}

.ssl-results-head-badge {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ssl-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.75'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat;
	box-shadow: inset 0 0 0 1px rgba(30, 123, 58, 0.15);
}

.ssl-results-title {
	margin: 0;
	flex: 1;
	font-size: 1.3125rem;
	font-weight: 700;
	color: var(--ssl-text);
	line-height: 1.3;
}

/* Summary cards with status icons (SSL Shopper–style) */
.ssl-summary-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin-bottom: 1.15rem;
}

@media (max-width: 560px) {
	.ssl-summary-cards {
		grid-template-columns: 1fr;
	}
}

.ssl-summary-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
	border: 1px solid var(--ssl-border);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(15, 40, 20, 0.06);
}

.ssl-summary-card-badge {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 28px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.ssl-summary-card--pass .ssl-summary-card-badge {
	background-color: #d4edda;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23d4edda' stroke='%231e7b3a' stroke-width='1.5'/%3E%3Cpath stroke='%231e7b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 12.5l2.5 2.5 5.5-5.5'/%3E%3C/svg%3E");
}

.ssl-summary-card--fail .ssl-summary-card-badge {
	background-color: #f8d7da;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23f8d7da' stroke='%23b42318' stroke-width='1.5'/%3E%3Cpath stroke='%23b42318' stroke-width='2' stroke-linecap='round' d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E");
}

.ssl-summary-card--warn .ssl-summary-card-badge {
	background-color: #fff3cd;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23fff3cd' stroke='%23a07800' stroke-width='1.5' d='M12 1L21 21H3L12 1z'/%3E%3Cpath stroke='%23a07800' stroke-width='.2' d='M12 8v5M12 16h.01'/%3E%3C/svg%3E");
	background-size: 26px;
}

.ssl-summary-card-main {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.ssl-summary-label {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ssl-text-muted);
}

.ssl-summary-value {
	font-size: 1.125rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ssl-summary-value.ssl-ok {
	color: var(--ssl-green);
}

.ssl-summary-value.ssl-bad {
	color: var(--ssl-red);
}

.ssl-summary-value.ssl-warn {
	color: var(--ssl-amber);
}

.ssl-icon {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	line-height: 1;
	font-size: 1.1em;
}

.ssl-alert-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	margin-bottom: 0.75rem;
	font-size: 1.0625rem;
	font-weight: 500;
}

.ssl-alert-banner.ok {
	background: var(--ssl-green-soft);
	border: 1px solid #b8dcc4;
	color: #0d4a1f;
}

.ssl-alert-banner.warn {
	background: var(--ssl-amber-soft);
	border: 1px solid #e8d49a;
	color: var(--ssl-amber);
}

.ssl-alert-banner.bad {
	background: var(--ssl-red-soft);
	border: 1px solid #f0c4c0;
	color: var(--ssl-red);
}

.ssl-alert-banner--with-icon {
	position: relative;
	padding-left: 3.25rem;
	min-height: 3rem;
}

.ssl-alert-banner--with-icon::before {
	content: "";
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px;
}

.ssl-alert-banner.ok.ssl-alert-banner--with-icon::before {
	background-color: rgba(30, 123, 58, 0.15);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.ssl-alert-banner.warn.ssl-alert-banner--with-icon::before {
	background-color: rgba(160, 120, 0, 0.15);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a07800' stroke-width='2'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.2L1.8 19c-.5 1 .1 2.2 1.2 2.2h18c1.1 0 1.7-1.2 1.2-2.2L13.7 3.2c-.5-1-1.9-1-2.4 0z'/%3E%3C/svg%3E");
	background-size: 18px;
}

.ssl-alert-banner.bad.ssl-alert-banner--with-icon::before {
	background-color: rgba(180, 35, 24, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E");
}

.ssl-issue-list {
	margin: 0.5rem 0 0;
	padding-left: 1.35rem;
	color: var(--ssl-red);
	font-size: 1.0625rem;
}

/* Fact rows with icons (similar to sslshopper.com checker) */
.ssl-facts {
	margin: 1rem 0 1.25rem;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.ssl-fact-row {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	margin-bottom: 0.5rem;
	background: #fafcfb;
	border: 1px solid var(--ssl-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 40, 20, 0.04);
}

.ssl-fact-row:last-child {
	margin-bottom: 0;
}

.ssl-fact-row--muted {
	opacity: 0.92;
}

.ssl-fact-row--bad {
	border-color: #f0c4c0;
	background: #fffbfb;
}

.ssl-fact-row--expired .ssl-fact-icon {
	background-color: #fdecea !important;
}

.ssl-fact-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background-color: var(--ssl-green-soft);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
	box-shadow: inset 0 0 0 1px rgba(30, 123, 58, 0.12);
}

.ssl-fact-row--dns .ssl-fact-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.75'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.ssl-fact-row--server .ssl-fact-icon {
	background-color: var(--ssl-blue-soft);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='1.65'%3E%3Crect x='2' y='3' width='20' height='7' rx='1'/%3E%3Crect x='2' y='14' width='20' height='7' rx='1'/%3E%3Cpath d='M6 7h.01M6 18h.01' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ssl-fact-row--trust .ssl-fact-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.65'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ssl-fact-row--calendar .ssl-fact-icon {
	background-color: #fff8e6;
	box-shadow: inset 0 0 0 1px rgba(160, 120, 0, 0.2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a07800' stroke-width='1.65'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.ssl-fact-row--hostname .ssl-fact-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.65'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M10 13h4M10 17h4M8 13h.01M8 17h.01'/%3E%3C/svg%3E");
}

.ssl-fact-content {
	flex: 1;
	min-width: 0;
}

.ssl-fact-line {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ssl-text);
}

.ssl-fact-line--title {
	margin: 0 0 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ssl-text-muted);
}

.ssl-fact-line:last-child {
	margin-bottom: 0;
}

.ssl-fact-ip {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.9em;
}

.ssl-fact-code {
	display: inline-block;
	margin: 0;
	padding: 0.2rem 0.45rem;
	font-size: 1rem;
	background: #fff;
	border: 1px solid var(--ssl-border);
	border-radius: 6px;
	color: var(--ssl-text);
}

.ssl-fact-muted {
	color: var(--ssl-text-muted);
	font-size: 1rem;
}

.ssl-fact-bad {
	color: var(--ssl-red);
	font-weight: 600;
}

.ssl-fact-trust {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ssl-text);
}

.ssl-fact-hostname {
	font-weight: 600;
}

.ssl-leaf-card {
	margin-top: 0.75rem;
	padding: 1rem 1.1rem;
	background: linear-gradient(135deg, #f8fdf9 0%, #ffffff 60%);
	border: 1px solid #c5e6cd;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(30, 123, 58, 0.08);
}

.ssl-leaf-card-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.ssl-leaf-card-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--ssl-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.65'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h5' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

.ssl-leaf-card-title {
	font-size: 0.9375rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ssl-green);
}

.ssl-dl {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) 1fr;
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
	font-size: 1rem;
}

.ssl-dl dt {
	margin: 0;
	font-weight: 700;
	color: var(--ssl-text-muted);
}

.ssl-dl dd {
	margin: 0;
	word-break: break-word;
	color: var(--ssl-text);
}

.ssl-dl-leaf-snippet {
	padding-top: 0;
	border-top: none;
	margin-top: 0;
}

@media (max-width: 520px) {
	.ssl-dl {
		grid-template-columns: 1fr;
	}
	.ssl-dl dt {
		margin-top: 0.35rem;
	}
	.ssl-dl dt:first-child {
		margin-top: 0;
	}
}

.ssl-cert-block {
	margin: 1rem 0 1.35rem;
	padding: 1rem 1rem 1.15rem;
	border: 1px solid var(--ssl-border);
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
	box-shadow: 0 2px 10px rgba(15, 40, 20, 0.06);
	border-left: 4px solid var(--ssl-green);
}

.ssl-cert-block--last {
	border-left-color: #6b7280;
}

.ssl-cert-block--mid {
	border-left-color: #3b82a8;
}

.ssl-cert-block-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--ssl-border);
}

.ssl-cert-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px;
}

.ssl-cert-icon--leaf {
	background-color: var(--ssl-green-soft);
	box-shadow: inset 0 0 0 1px rgba(30, 123, 58, 0.15);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7b3a' stroke-width='1.65'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

.ssl-cert-icon--mid {
	background-color: #e8f4f8;
	box-shadow: inset 0 0 0 1px rgba(59, 130, 168, 0.2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82a8' stroke-width='1.65'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.ssl-cert-icon--last {
	background-color: #f3f4f6;
	box-shadow: inset 0 0 0 1px rgba(107, 114, 128, 0.25);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.65'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M8 12h8M12 8v8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: 20px;
}

.ssl-cert-role {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ssl-text);
	letter-spacing: -0.01em;
	flex: 1;
	min-width: 0;
}

.ssl-dl-wrap {
	padding: 0.5rem 0.35rem 0;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 8px;
}

.ssl-pem-toggle,
.ssl-cert-json {
	margin-top: 0.65rem;
	border: 1px solid var(--ssl-border);
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	background: #fafcfb;
}

.ssl-pem-toggle summary,
.ssl-cert-json summary {
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ssl-text-muted);
}

.ssl-certs-heading {
	margin: 1.5rem 0 0.85rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--ssl-border);
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--ssl-text-muted);
}

.ssl-pre {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: var(--ssl-font-mono);
	font-size: 0.9375rem;
	line-height: 1.6;
	max-height: 280px;
	overflow: auto;
	padding: 0.85rem 1rem;
	background: #f8faf8;
	border: 1px solid var(--ssl-border);
	border-radius: 6px;
	margin: 0;
}

.ssl-tools-wrap code,
.ssl-tools-wrap .ssl-fact-code {
	font-family: var(--ssl-font-mono);
	font-size: 0.9375em;
}

/* Secondary section (CSR) */
.ssl-section-card {
	background: var(--ssl-card);
	border: 1px solid var(--ssl-border);
	border-radius: var(--ssl-radius);
	box-shadow: var(--ssl-shadow);
	padding: 1.5rem 1.35rem 1.75rem;
	margin-top: 2rem;
}

.ssl-section-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #2563eb;
}

.ssl-section-title {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--ssl-text);
}

.ssl-section-desc {
	margin: 0 0 1.15rem;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ssl-text-muted);
}

.ssl-textarea {
	width: 100%;
	min-height: 180px;
	font-family: var(--ssl-font-mono);
	font-size: 1rem;
	line-height: 1.55;
	padding: 0.85rem 1rem;
	border: 2px solid var(--ssl-border-strong);
	border-radius: 8px;
	resize: vertical;
	background: #fafcfb;
}

.ssl-textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.ssl-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.85rem;
	padding: 0.75rem 1.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #fff !important;
	background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 0 #1e3a8a, 0 3px 10px rgba(37, 99, 235, 0.3);
	transition: filter 0.15s ease;
}

.ssl-btn-secondary:hover {
	color: #fff !important;
	filter: brightness(1.06);
}

.ssl-csr-meta {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--ssl-blue-soft);
	border: 1px solid #c7d9f0;
	border-radius: 8px;
	font-size: 1.0625rem;
}

.ssl-csr-meta code {
	font-family: var(--ssl-font-mono);
	word-break: break-all;
	font-size: 0.9375rem;
}

.ssl-subheading {
	margin: 1rem 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ssl-text);
}

.ssl-ec-curve {
	margin-top: 0;
}

.ssl-pk-details {
	margin-top: 0.75rem;
}

/* Optional link between the two tools (URLs via filters in theme). */
.ssl-cross-link {
	margin-top: 1.5rem;
	padding-top: 1.1rem;
	border-top: 1px dashed var(--ssl-border);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.ssl-cross-link a {
	font-weight: 600;
	color: var(--ssl-green);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ssl-cross-link a:hover {
	color: var(--ssl-green-hover);
}

.ssl-csr-checker-page .ssl-section-card--csr-hero {
	margin-top: 0;
}
