/*
Theme Name: SpellMistake
Theme URI: https://spellmistake.io
Author: SpellMistake
Description: Free online spell and grammar checker theme. Includes the [spellmistake_checker] and [spellmistake_contact] shortcodes and creates Home, Services, About and Contact pages on activation.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: spellmistake
*/

:root {
	--sm-ink: #16131f;
	--sm-muted: #5d5870;
	--sm-paper: #fbfaf7;
	--sm-card: #ffffff;
	--sm-line: #e8e4dc;
	--sm-accent: #4b3bff;
	--sm-accent-soft: #eeecff;
	--sm-spelling: #ff4f5e;
	--sm-grammar: #2f80ff;
	--sm-punct: #f5a524;
	--sm-style: #17a673;
	--sm-radius: 18px;
	--sm-shadow: 0 1px 2px rgba(22, 19, 31, .04), 0 12px 32px -12px rgba(22, 19, 31, .12);
	--sm-wide: 1160px;
	--sm-content: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--sm-paper);
	color: var(--sm-ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Header ---------- */
.sm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 247, .86);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--sm-line);
}
.sm-header-inner {
	max-width: var(--sm-wide);
	margin: 0 auto;
	padding: 14px 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sm-logo, .sm-logo a {
	margin: 0;
	font-family: Fraunces, Georgia, serif;
	font-weight: 700; font-size: 1.35rem;
	color: var(--sm-ink); text-decoration: none;
	letter-spacing: -.01em;
}
.sm-logo a::after {
	content: ""; display: inline-block;
	width: 7px; height: 7px; margin-left: 3px;
	border-radius: 50%; background: var(--sm-spelling);
}
.sm-nav a, .sm-footer-nav a {
	color: var(--sm-ink); text-decoration: none;
	font-weight: 500; font-size: .96rem;
}
.sm-nav a:hover { color: var(--sm-accent); }
.sm-nav .wp-block-navigation__container { gap: 28px; }

/* ---------- Layout ---------- */
.sm-main { padding: 0 20px 80px; }
.sm-main > *, .sm-main .wp-block-post-content > * {
	max-width: var(--sm-content);
	margin-left: auto; margin-right: auto;
}
.sm-front > .wp-block-post-content { max-width: none; }
.sm-front .wp-block-post-content > *,
.sm-main .sm-cards,
.sm-main .sm-checker { max-width: var(--sm-wide); }
.sm-page .wp-block-post-content > .sm-cards { max-width: 980px; }

.sm-page-head { padding: 64px 0 8px; }
.sm-page-head h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin: 0; letter-spacing: -.02em;
}
.sm-lead { font-size: 1.2rem; color: var(--sm-muted); }

h2.wp-block-heading { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.015em; margin-top: 2.2em; }
h3.wp-block-heading { font-size: 1.2rem; font-family: Inter, system-ui, sans-serif; font-weight: 700; margin: 0 0 .4em; }

/* ---------- Hero (dark band) ---------- */
.sm-front {
	position: relative;
	background:
		radial-gradient(60% 50% at 15% 0%, rgba(124, 92, 255, .45), transparent 70%),
		radial-gradient(45% 40% at 90% 10%, rgba(255, 79, 140, .28), transparent 70%),
		linear-gradient(180deg, #0c0a1d 0, #141033 560px, var(--sm-paper) 560px);
}
.sm-front::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 80%);
	mask-image: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 80%);
}
.sm-front > * { position: relative; }
.sm-hero { text-align: center; padding: 76px 0 40px; color: #fff; }
.sm-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 22px; padding: 7px 16px 7px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.14);
	color: #d9d4ff; font-size: .85rem; font-weight: 600;
	backdrop-filter: blur(6px);
}
.sm-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62,224,143,.2); }
.sm-hero-title {
	font-size: clamp(2.4rem, 6.5vw, 4.5rem);
	line-height: 1.04; letter-spacing: -.03em;
	margin: 0 auto 18px; max-width: 15ch; color: #fff;
}
.sm-squiggle {
	background: linear-gradient(90deg, #a996ff, #ff7eb3);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-decoration: underline wavy #ff5c8a; text-decoration-thickness: 3px; text-underline-offset: 12px;
}
.sm-hero-sub { font-size: 1.15rem; color: #b9b4d6; max-width: 580px; margin: 0 auto; }

/* ---------- Checker ---------- */
.sm-checker {
	--k-grammar: #4f7cff; --k-spelling: #ff4f6d; --k-punctuation: #f5a524; --k-style: #12b886;
	position: relative;
	background: rgba(255,255,255,.98);
	border: 1px solid rgba(255,255,255,.6);
	border-radius: 26px;
	box-shadow: 0 30px 80px -20px rgba(12,10,29,.45), 0 0 0 1px rgba(22,19,31,.04);
	padding: 14px;
	margin: 0 auto 48px;
}
.sm-checker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sm-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 4px 14px; }
.sm-tabs { display: inline-flex; padding: 4px; background: #f1eff8; border-radius: 14px; gap: 2px; }
.sm-tabs button {
	display: inline-flex; align-items: center; gap: 8px;
	font: inherit; font-size: .92rem; font-weight: 600; color: var(--sm-muted);
	padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
	transition: background .15s, color .15s, box-shadow .15s;
}
.sm-tabs button:hover { color: var(--sm-ink); }
.sm-tabs button.is-active { background: #fff; color: var(--sm-accent); box-shadow: 0 1px 3px rgba(22,19,31,.12); }
.sm-lang { display: inline-flex; align-items: center; gap: 8px; color: var(--sm-muted); padding: 0 6px 0 12px; border: 1px solid var(--sm-line); border-radius: 12px; background: #fff; }
.sm-lang select { appearance: none; font: inherit; font-size: .92rem; font-weight: 600; color: var(--sm-ink); border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235d5870' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center; padding: 10px 26px 10px 0; cursor: pointer; }
.sm-lang select:focus { outline: none; }

.sm-panes { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }

.sm-editor { position: relative; display: flex; flex-direction: column; border: 1px solid var(--sm-line); border-radius: 18px; background: #fff; overflow: hidden; }
.sm-editor-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #f0ede6; background: #fcfbf8; }
.sm-dots { display: inline-flex; gap: 6px; }
.sm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e7e3da; }
.sm-dots i:nth-child(1) { background: #ff8a8a; } .sm-dots i:nth-child(2) { background: #ffd36e; } .sm-dots i:nth-child(3) { background: #6edc9c; }
.sm-doc-title { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-tools { display: inline-flex; gap: 2px; }
.sm-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--sm-muted); cursor: pointer; transition: background .15s, color .15s; }
.sm-icon:hover:not(:disabled) { background: #f1eff8; color: var(--sm-ink); }
.sm-icon:disabled { opacity: .35; cursor: default; }
.sm-icon.is-done { color: var(--k-style); background: #e7f8f0; }

.sm-input, .sm-view {
	flex: 1; width: 100%; min-height: 380px; max-height: 620px;
	padding: 22px 24px; border: 0; background: #fff;
	font: 400 1.08rem/1.8 Inter, system-ui, sans-serif; color: var(--sm-ink);
}
.sm-input { resize: none; display: block; }
.sm-input:focus { outline: none; }
.sm-input::placeholder { color: #a7a2b8; }
.sm-view { overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; cursor: text; }
.sm-view[hidden], .sm-input[hidden] { display: none; }

.sm-err { background: transparent; color: inherit; border-radius: 3px; padding: 1px 1px 0; cursor: pointer; border-bottom: 2.5px solid; transition: background .15s, opacity .15s; }
.sm-err.k-grammar { border-color: var(--k-grammar); background: rgba(79,124,255,.09); }
.sm-err.k-spelling { border-color: var(--k-spelling); background: rgba(255,79,109,.09); }
.sm-err.k-punctuation { border-color: var(--k-punctuation); background: rgba(245,165,36,.12); }
.sm-err.k-style { border-color: var(--k-style); background: rgba(18,184,134,.09); }
.sm-err.is-muted { border-bottom-color: transparent; background: transparent; }
.sm-err.is-active, .sm-err:focus { outline: none; box-shadow: 0 0 0 2px currentColor; background: rgba(75,59,255,.14); }

.sm-progress { position: absolute; left: 0; right: 0; top: 52px; height: 3px; overflow: hidden; background: #efecff; }
.sm-progress[hidden] { display: none; }
.sm-progress i { position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, #7c5cff, #ff5c8a); animation: sm-load 1.1s ease-in-out infinite; }
@keyframes sm-load { 0% { left: -40%; } 100% { left: 100%; } }

.sm-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 12px 12px 18px; border-top: 1px solid #f0ede6; background: #fcfbf8; }
.sm-metrics { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--sm-muted); }
.sm-metrics b { color: var(--sm-ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: inherit; font-size: .93rem; font-weight: 600;
	padding: 10px 16px; border-radius: 12px;
	border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink);
	cursor: pointer; transition: transform .1s, background .15s, border-color .15s, box-shadow .15s;
}
.sm-btn:hover { border-color: #c9c4d8; }
.sm-btn:active { transform: translateY(1px); }
.sm-btn[hidden] { display: none; }
.sm-btn-fix { color: #12805f; border-color: #bfeedb; background: #effbf5; }
.sm-btn-fix:hover { border-color: #12b886; }
.sm-btn-primary { color: #fff; border: 0; padding: 11px 18px; background: linear-gradient(135deg, #5b45ff, #8a5cff); box-shadow: 0 8px 20px -8px rgba(91,69,255,.7); }
.sm-btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(91,69,255,.85); }
.sm-btn-primary:disabled { opacity: .75; cursor: progress; }
.sm-btn kbd { font: 600 .7rem Inter, sans-serif; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.2); }

/* Side panel */
.sm-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; max-height: 720px; }
.sm-score-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #17133a, #2a1f66); color: #fff; }
.sm-gauge { position: relative; width: 92px; height: 92px; flex: none; }
.sm-gauge svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.sm-gauge circle { fill: none; stroke-width: 10; }
.sm-gauge-track { stroke: rgba(255,255,255,.12); }
.sm-gauge-bar { stroke: #8a7bff; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1), stroke .3s; }
.is-good .sm-gauge-bar { stroke: #3ee08f; }
.is-ok .sm-gauge-bar { stroke: #ffc35c; }
.is-bad .sm-gauge-bar { stroke: #ff6b86; }
.sm-gauge-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.sm-gauge-num b { font-family: Fraunces, Georgia, serif; font-size: 1.9rem; }
.sm-gauge-num span { font-size: .7rem; color: #b9b4d6; margin-top: 3px; }
.is-busy .sm-gauge-num b { animation: sm-pulse 1s ease-in-out infinite; }
@keyframes sm-pulse { 50% { opacity: .35; } }
.sm-score-title { font-weight: 700; font-size: 1rem; }
.sm-score-status { font-size: .86rem; color: #cfcae8; margin-top: 2px; line-height: 1.45; }
.sm-score-status.is-clean { color: #7ef0b5; }
.sm-score-status.is-warn { color: #ffd27a; }
.sm-read { margin-top: 8px; font-size: .78rem; color: #cfcae8; }
.sm-read span { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.sm-read b { color: #fff; }

.sm-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-filters button {
	display: inline-flex; align-items: center; gap: 6px;
	font: inherit; font-size: .8rem; font-weight: 600; color: var(--sm-muted);
	padding: 6px 8px 6px 10px; border: 1px solid var(--sm-line); border-radius: 999px; background: #fff; cursor: pointer;
}
.sm-filters button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9c4d8; }
.sm-filters .k-grammar::before { background: var(--k-grammar); }
.sm-filters .k-spelling::before { background: var(--k-spelling); }
.sm-filters .k-punctuation::before { background: var(--k-punctuation); }
.sm-filters .k-style::before { background: var(--k-style); }
.sm-filters button span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #f1eff8; color: var(--sm-ink); font-size: .74rem; text-align: center; }
.sm-filters button.is-active { border-color: var(--sm-ink); color: var(--sm-ink); background: #faf9ff; }

.sm-issues { list-style: none; margin: 0; padding: 2px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sm-issue {
	position: relative; padding: 12px 14px 12px 16px;
	border: 1px solid var(--sm-line); border-radius: 14px; background: #fff;
	cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sm-issue::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k, #c9c4d8); }
.sm-issue.k-grammar { --k: var(--k-grammar); } .sm-issue.k-spelling { --k: var(--k-spelling); }
.sm-issue.k-punctuation { --k: var(--k-punctuation); } .sm-issue.k-style { --k: var(--k-style); }
.sm-issue:hover { border-color: #d6d1e4; box-shadow: 0 6px 18px -10px rgba(22,19,31,.25); }
.sm-issue.is-active { border-color: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 18%, transparent); }
.sm-issue-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-chip { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--k); }
.sm-issue-short { flex: 1; min-width: 0; font-size: .8rem; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-dismiss { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: #a7a2b8; cursor: pointer; }
.sm-dismiss svg { width: 14px; height: 14px; }
.sm-dismiss:hover { background: #f1eff8; color: var(--sm-ink); }
.sm-accept {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%;
	font: inherit; font-size: .98rem; padding: 7px 12px; border-radius: 10px;
	border: 1px solid #d3f2e4; background: #effbf5; color: var(--sm-ink); cursor: pointer; text-align: left;
	transition: background .15s, border-color .15s;
}
.sm-accept:hover { background: #12b886; border-color: #12b886; color: #fff; }
.sm-accept:hover s, .sm-accept:hover svg { color: rgba(255,255,255,.75); }
.sm-accept s { color: #9a94ad; }
.sm-accept svg { width: 15px; height: 15px; color: #12b886; }
.sm-accept b { font-weight: 700; }
.sm-noreps s { color: #9a94ad; }
.sm-issue-msg { margin: 8px 0 0; font-size: .84rem; line-height: 1.5; color: var(--sm-muted); }
.sm-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .78rem; color: #a7a2b8; }
.sm-alt { font: inherit; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink); cursor: pointer; }
.sm-alt:hover { border-color: #12b886; color: #12805f; }

.sm-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 26px 18px; border: 1px dashed #dcd7e8; border-radius: 16px; color: var(--sm-muted); font-size: .9rem; }
.sm-empty[hidden] { display: none; }
.sm-empty svg { width: 46px; height: 46px; color: #c3bdd8; stroke-width: 1.5; }
.sm-empty p { margin: 0; max-width: 250px; }
.sm-empty.is-clean { border-style: solid; border-color: #c9efdc; background: #f3fcf8; color: #12805f; }
.sm-empty.is-clean svg { color: #12b886; }

/* ---------- Content sections ---------- */
.sm-section { padding-top: 40px; }
.sm-cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 28px;
}
.sm-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-card {
	background: var(--sm-card);
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	padding: 26px;
	margin: 0 !important;
}
.sm-card p { color: var(--sm-muted); margin: 0; }
.sm-card ul { color: var(--sm-ink); padding-left: 1.1em; margin: 14px 0 18px; }
.sm-card li { margin: 4px 0; }
.sm-services .sm-card { display: flex; flex-direction: column; }
.sm-services .wp-block-buttons { margin-top: auto; }
.sm-tag {
	display: inline-block;
	align-self: flex-start;
	font-size: .75rem !important; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
	color: var(--sm-accent) !important;
	background: var(--sm-accent-soft);
	padding: 4px 10px; border-radius: 999px;
	margin-bottom: 14px !important;
}

.sm-steplist { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.sm-steplist li {
	counter-increment: s;
	position: relative;
	padding: 18px 20px 18px 70px;
	background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: var(--sm-radius);
	color: var(--sm-muted);
}
.sm-steplist li strong { color: var(--sm-ink); }
.sm-steplist li::before {
	content: counter(s);
	position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--sm-accent); color: #fff; font-weight: 700;
}

.sm-faq .wp-block-details {
	background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 14px;
	padding: 16px 20px; margin-top: 10px;
}
.sm-faq summary { font-weight: 600; cursor: pointer; }
.sm-faq .wp-block-details p { color: var(--sm-muted); margin: 10px 0 0; }

.wp-block-button__link { padding: 12px 24px; text-decoration: none; }

/* ---------- Contact form ---------- */
.sm-form { display: grid; gap: 16px; margin-top: 24px; background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: 28px; }
.sm-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.sm-form input, .sm-form select, .sm-form textarea {
	font: inherit; font-weight: 400;
	padding: 12px 14px;
	border: 1px solid var(--sm-line); border-radius: 12px;
	background: var(--sm-paper); color: var(--sm-ink);
	width: 100%;
}
.sm-form input:focus, .sm-form select:focus, .sm-form textarea:focus { outline: none; border-color: var(--sm-accent); box-shadow: 0 0 0 4px var(--sm-accent-soft); }
.sm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-form .sm-btn { justify-self: start; }
.sm-hp { position: absolute; left: -9999px; }
.sm-notice { padding: 14px 18px; border-radius: 12px; margin-top: 20px; font-weight: 500; }
.sm-notice-ok { background: #e6f7ef; color: #0d6b47; }
.sm-notice-err { background: #ffecee; color: #a8182a; }

/* ---------- Footer ---------- */
.sm-footer { border-top: 1px solid var(--sm-line); padding: 48px 20px 28px; background: #f4f2ec; }
.sm-footer-inner {
	max-width: var(--sm-wide); margin: 0 auto;
	display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sm-footer-brand p { color: var(--sm-muted); margin: 6px 0 0; }
.sm-footer-brand .wp-block-site-title a { color: var(--sm-ink); text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.sm-footer-nav .wp-block-navigation__container { gap: 22px; }
.sm-copy { max-width: var(--sm-wide); margin: 32px auto 0; font-size: .85rem; color: var(--sm-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.sm-panes { grid-template-columns: 1fr; }
	.sm-side { max-height: none; }
	.sm-issues { max-height: 460px; }
	.sm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.sm-main { padding: 0 16px 60px; }
	.sm-checker { padding: 10px; border-radius: 20px; }
	.sm-input, .sm-view { min-height: 220px; padding: 16px; font-size: 1rem; }
	.sm-tabs { width: 100%; }
	.sm-tabs button { flex: 1; justify-content: center; padding: 9px 10px; }
	.sm-lang { width: 100%; justify-content: space-between; }
	.sm-editor-foot { padding: 12px; }
	.sm-actions { width: 100%; }
	.sm-btn-primary { flex: 1; justify-content: center; }
	.sm-btn kbd { display: none; }
	.sm-front { background: radial-gradient(80% 40% at 20% 0%, rgba(124,92,255,.45), transparent 70%), linear-gradient(180deg, #0c0a1d 0, #141033 520px, var(--sm-paper) 520px); }
	.sm-cards, .sm-cards-2, .sm-form-row { grid-template-columns: 1fr; }
	.sm-hero { padding: 48px 0 24px; }
	.sm-btn { padding: 10px 16px; }
}

/* Dark header on the front page so it blends into the hero */
body.home .sm-header { background: rgba(12, 10, 29, .82); border-bottom-color: rgba(255, 255, 255, .08); }
body.home .sm-logo a, body.home .sm-nav a { color: #fff; }
body.home .sm-nav a:hover { color: #b9a9ff; }
body.home .sm-nav .wp-block-navigation__responsive-container-open { color: #fff; }

/* ---------- Tool landing pages ---------- */
.sm-has-tool .sm-page {
	background:
		radial-gradient(55% 45% at 15% 0%, rgba(124, 92, 255, .42), transparent 70%),
		radial-gradient(40% 35% at 90% 5%, rgba(255, 79, 140, .25), transparent 70%),
		linear-gradient(180deg, #0c0a1d 0, #141033 440px, var(--sm-paper) 440px);
}
.sm-has-tool .sm-page-head { text-align: center; padding-top: 64px; }
.sm-has-tool .sm-page-head h1 { color: #fff; max-width: 18ch; margin: 0 auto; }
.sm-has-tool .wp-block-post-content > .sm-tool-intro { color: #b9b4d6; text-align: center; font-size: 1.12rem; margin-top: 14px; margin-bottom: 30px; }
.sm-main > .wp-block-post-content:has(> .sm-checker) { max-width: none; }
.sm-page .wp-block-post-content > .sm-checker { max-width: var(--sm-wide); }
body.sm-has-tool .sm-header { background: rgba(12, 10, 29, .82); border-bottom-color: rgba(255, 255, 255, .08); }
body.sm-has-tool .sm-logo a, body.sm-has-tool .sm-nav a { color: #fff; }
.sm-nav .current-menu-item > a { color: var(--sm-accent); }
body.home .sm-nav .current-menu-item > a, body.sm-has-tool .sm-nav .current-menu-item > a { color: #b9a9ff; }

/* ---------- Link grids, callouts, tables ---------- */
.sm-linkgrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0 !important; list-style: none; }
.sm-linkgrid li { margin: 0; }
.sm-linkgrid a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--sm-line); border-radius: 14px; background: #fff; color: var(--sm-ink); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s; }
.sm-linkgrid a:hover { border-color: var(--sm-accent); transform: translateY(-2px); }
.sm-linkgrid a span { display: block; margin-top: 4px; font-weight: 400; font-size: .88rem; color: var(--sm-muted); }
.sm-answer { padding: 18px 22px !important; border-radius: 16px; background: #eeecff; border-left: 4px solid var(--sm-accent); }
.sm-answer p { margin: 0; }
.sm-cta { padding: 26px !important; border-radius: 20px; background: linear-gradient(135deg, #17133a, #2a1f66); color: #fff; text-align: center; }
.sm-cta h2, .sm-cta h3 { color: #fff; margin-top: 0; }
.sm-cta p { color: #cfcae8; }
.wp-block-table table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.wp-block-table th, .wp-block-table td { padding: 12px 14px; border: 1px solid var(--sm-line); text-align: left; vertical-align: top; }
.wp-block-table th { background: #f4f2ec; }
.sm-page .wp-block-post-content h2 { margin-top: 1.8em; }
.sm-page .wp-block-post-content ul, .sm-page .wp-block-post-content ol { padding-left: 1.2em; }

/* Navigation colors (WordPress nav styles use inherit, so color the container) */
.sm-main { margin-top: 0 !important; }
.sm-nav { color: var(--sm-ink); }
body.home .sm-nav, body.sm-has-tool .sm-nav { color: #fff; }
.sm-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content.wp-block-navigation-item__content { color: var(--sm-accent); }
body.home .sm-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content.wp-block-navigation-item__content,
body.sm-has-tool .sm-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content.wp-block-navigation-item__content { color: #b9a9ff; }
.sm-nav .wp-block-navigation__responsive-container.is-menu-open { color: var(--sm-ink); }

/* CTA alignment and FAQ cards on inner pages */
.sm-cta .wp-block-buttons { justify-content: center; }
.sm-page .wp-block-details { background: #fff; border: 1px solid var(--sm-line); border-radius: 14px; padding: 16px 20px; margin-top: 10px; }
.sm-page .wp-block-details summary { font-weight: 600; cursor: pointer; }
.sm-page .wp-block-details p { color: var(--sm-muted); margin: 10px 0 0; }

/* ---------- Blog ---------- */
.sm-blog .sm-page-head { text-align: center; padding-bottom: 12px; }
.sm-blog .sm-page-head h1 { max-width: 20ch; margin: 0 auto; }
.sm-blog .sm-page-head .sm-lead { max-width: 560px; margin: 14px auto 0; }
.sm-eyebrow-light { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--sm-accent-soft); color: var(--sm-accent); font-size: .85rem; font-weight: 600; }
.sm-main.sm-blog > .sm-blog-query { max-width: var(--sm-wide); }
.sm-post-grid { list-style: none; padding: 0 !important; margin: 28px 0 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sm-post-grid > li { margin: 0 !important; }
.sm-post-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px; margin: 0 !important; background: #fff; border: 1px solid var(--sm-line); border-radius: 20px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.sm-post-card:hover { transform: translateY(-3px); border-color: #d6d1e4; box-shadow: 0 18px 40px -20px rgba(22, 19, 31, .3); }
.sm-post-card .wp-block-post-title { font-size: 1.32rem; line-height: 1.25; margin: 0; }
.sm-post-card .wp-block-post-title a { color: var(--sm-ink); text-decoration: none; }
.sm-post-card .wp-block-post-title a:hover { color: var(--sm-accent); }
.sm-post-card .wp-block-post-excerpt { flex: 1; display: flex; flex-direction: column; margin: 0; color: var(--sm-muted); }
.sm-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.sm-post-card .wp-block-post-excerpt__more-text { margin: auto 0 0; padding-top: 14px; }
.sm-post-card .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
.sm-post-date, .sm-post-date time { font-size: .82rem; color: #9a94ad; }
.sm-post-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sm-post-cat a { color: var(--sm-accent); text-decoration: none; }
.sm-pagination { margin-top: 32px; justify-content: center; gap: 12px; font-weight: 600; }
.sm-single .sm-page-head { padding-top: 56px; }
.sm-single .sm-page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 8px 0 16px; }
.sm-post-meta { display: flex !important; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--sm-muted); font-size: .92rem; padding-bottom: 22px; border-bottom: 1px solid var(--sm-line); }
.sm-post-meta p { margin: 0; }
.sm-post-meta .wp-block-post-date::before { content: "·"; margin-right: 14px; color: #c9c4d8; }
.sm-single .wp-block-post-content { font-size: 1.07rem; line-height: 1.8; }
.sm-single .wp-block-post-content h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.sm-single .sm-cta { margin-top: 48px; }
.sm-back { margin-top: 28px; font-weight: 600; }
.sm-back a { text-decoration: none; }
.sm-nav .wp-block-navigation__container, .sm-nav .wp-block-page-list { gap: 22px; }
