/* Electron Magazine — main stylesheet. Spacing scale: 4/8/12/16/24/32/48/64. */
:root {
	--navy: #0B1220;
	--primary: #2F6BFF;
	--accent: #00D1FF;
	--offwhite: #F7F9FC;
	--bg: #F7F9FC;
	--surface: #FFFFFF;
	--surface-2: #EEF2F8;
	--fg: #0B1220;
	--muted: #4A5568;
	--border: #D9E0EA;
	--on-primary: #FFFFFF;
	--code-bg: #0B1220;
	--code-fg: #E6ECF5;
	--radius: 12px;
	--shadow: 0 8px 24px -12px rgba(11, 18, 32, .25);
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #0B1220;
	--surface: #111A2E;
	--surface-2: #16213A;
	--fg: #E6ECF5;
	--muted: #A3B1C6;
	--border: #24314D;
	--code-bg: #060B16;
	--shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--font-sans); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
[data-theme="dark"] a { color: #7FA4FF; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s4); font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s4); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { left: var(--s4); top: var(--s4); z-index: 1000; width: auto; height: auto; clip: auto; padding: var(--s3) var(--s4); background: var(--primary); color: var(--on-primary); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mono, code, pre, kbd { font-family: var(--font-mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--font-sans); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { color: var(--on-primary); background: #1E56E6; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--fg); border-radius: 10px; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; }
.em-icon { width: 22px; height: 22px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.site-title { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--fg); font-size: 1.1rem; }
.site-title strong { color: var(--primary); }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--on-primary); font-weight: 800; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.main-nav a { color: var(--fg); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--primary); }
.main-nav .sub-menu { display: none; }
.main-nav.is-open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s4); }
.main-nav.is-open ul { flex-direction: column; gap: var(--s3); }
.menu-toggle { margin-left: auto; }
.header-search { position: relative; flex: 1; max-width: 340px; display: none; }
.header-search input, .search-form input, .hero-search input, .nl-form input, .em-tool input, .em-tool textarea, .em-tool select, .bitshift input[type=number] {
	width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-size: .95rem;
}
.live-results { position: absolute; top: 100%; left: 0; right: 0; margin: var(--s1) 0 0; padding: var(--s1); list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 360px; overflow: auto; }
.live-results a { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3); text-decoration: none; color: var(--fg); border-radius: 8px; }
.live-results a:hover, .live-results a:focus { background: var(--surface-2); }
.live-results small { color: var(--muted); }
@media (min-width: 1024px) {
	.main-nav { display: block; }
	.menu-toggle { display: none; }
	.header-search { display: block; margin-left: auto; }
}

/* Sections */
.section { padding: var(--s8) 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-title { margin-bottom: var(--s5); }
.link-more { font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Hero */
.hero { padding: var(--s8) 0; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), linear-gradient(180deg, var(--navy), #13204A); color: var(--offwhite); }
.hero h1 { max-width: 20ch; color: #fff; }
.hero .lead { max-width: 62ch; font-size: 1.15rem; color: #C9D6EE; }
.hero-search { display: flex; gap: var(--s2); max-width: 620px; margin: var(--s5) 0; }
.hero-search input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.hero-search input::placeholder { color: #9FB2D6; }
.quick-tools { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s6); margin: var(--s6) 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: #9FB2D6; font-size: .9rem; }
.stats dd { margin: 0; font-size: 2rem; font-weight: 800; color: var(--accent); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-tool { padding: var(--s5); gap: var(--s2); }
.card-tool p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-tool .btn { align-self: flex-start; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: var(--s2); }
.card-title { margin: 0 0 var(--s2); }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; align-self: flex-start; padding: 2px 10px; margin-bottom: var(--s2); border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.meta { color: var(--muted); font-size: .85rem; margin-top: auto; }
.meta a { color: inherit; }
.tags a { font-size: .8rem; margin-right: var(--s2); }

/* Category strip */
.cat-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cat-strip { grid-template-columns: repeat(6, 1fr); } }
.cat-strip a { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cat-strip a:hover { border-color: var(--primary); color: var(--primary); }
.cat-strip small { margin-left: auto; color: var(--muted); }
.cat-strip.compact { margin-bottom: var(--s6); }

/* Deep dive */
.deep-dive { display: grid; gap: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.deep-media { aspect-ratio: 16/9; display: block; background: var(--navy); }
.deep-media img, .deep-media svg { width: 100%; height: 100%; object-fit: cover; }
.deep-body { padding: var(--s5); }
.deep-body h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.deep-body h3 a { color: var(--fg); text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: var(--s2); }
@media (min-width: 1024px) { .deep-dive { grid-template-columns: 1.2fr 1fr; align-items: center; } .deep-media { height: 100%; aspect-ratio: auto; min-height: 380px; } .deep-body { padding: var(--s7); } }

/* Popular list */
.popular-list { list-style: none; counter-reset: pop; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .popular-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .popular-list { grid-template-columns: repeat(3, 1fr); } }
.popular-list li { counter-increment: pop; }
.popular-list a { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--fg); font-weight: 600; }
.popular-list a::before { content: counter(pop, decimal-leading-zero); font-family: var(--font-mono); color: var(--primary); }
.popular-list a:hover { border-color: var(--primary); }
.popular-list small { margin-left: auto; color: var(--muted); font-weight: 400; }

/* USP */
.usp { padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.usp .em-icon { color: var(--primary); width: 28px; height: 28px; margin-bottom: var(--s3); }
.usp p { color: var(--muted); margin: 0; }

/* Showcase */
.showcase { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 1024px) { .showcase { grid-template-columns: 1fr 1fr; } }
.bitshift { display: grid; gap: var(--s3); padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.bitshift label { display: flex; align-items: center; gap: var(--s3); font-weight: 600; }
.bitshift input[type=number] { max-width: 120px; }
.bits { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s1); }
.bits span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); font-family: var(--font-mono); font-weight: 700; transition: background .25s; }
.bits span.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.bits-out span.on { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* Code */
pre, .code-demo, .wp-block-code { position: relative; background: var(--code-bg); color: var(--code-fg); padding: var(--s5); border-radius: var(--radius); overflow: auto; font-size: .9rem; line-height: 1.6; margin: 0 0 var(--s5); }
:not(pre) > code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.tok-k { color: #7FA4FF; } .tok-s { color: #8BE9B4; } .tok-c { color: #6B7A99; font-style: italic; } .tok-n { color: #FFB86B; }
.copy-btn { position: absolute; top: var(--s2); right: var(--s2); background: rgba(255,255,255,.08); color: var(--code-fg); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--primary), #1B3FA8); color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #DCE6FF; }
.nl-form { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: 520px; margin: 0 auto; }
.nl-form input { flex: 1 1 220px; }
.nl-msg { flex-basis: 100%; margin: var(--s2) 0 0; min-height: 1.5em; font-weight: 600; }
.sidebar .nl-form { margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: var(--s4) var(--s5); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: var(--s3) 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D6EE; padding: var(--s7) 0 var(--s5); }
.site-footer a { color: #E6ECF5; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .widget-title { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-bottom { border-top: 1px solid #24314D; margin-top: var(--s6); padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; align-items: center; }
.footer-bottom .social, .footer-bottom nav ul { display: flex; gap: var(--s4); flex-wrap: wrap; }
.copyright { margin: 0; font-size: .9rem; }

/* Page layouts */
.site-main { min-height: 60vh; }
.page-header { padding: var(--s6) 0 var(--s5); }
.page-header p { color: var(--muted); max-width: 70ch; }
.lead { font-size: 1.1rem; }
.breadcrumbs ol { list-style: none; padding: var(--s4) 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s2); opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.layout { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
.has-sidebar .layout { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 300px; } .has-sidebar .layout .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.sidebar .widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s5); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.widget-title { font-size: 1rem; margin-bottom: var(--s3); }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--fg); font-size: .9rem; background: var(--surface); }
.pill:hover, .pill.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.search-form { display: flex; gap: var(--s2); max-width: 420px; }
.featured-post { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s5); }
.featured-post h2 { font-family: var(--font-serif); }
.featured-post h2 a { color: var(--fg); text-decoration: none; }
@media (min-width: 768px) { .featured-post { grid-template-columns: 1.3fr 1fr; } .featured-post .card-media { aspect-ratio: auto; height: 100%; } }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: var(--s6) 0 0; }
.pagination a, .pagination span { display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--fg); background: var(--surface); }
.pagination .current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.notice { margin-top: var(--s5); padding: var(--s4); border-left: 4px solid var(--accent); background: var(--surface); }
.no-results { padding-bottom: var(--s7); }
.no-results h3 { margin-top: var(--s6); }
.big-code { font-family: var(--font-mono); font-size: 4rem; font-weight: 800; color: var(--primary); margin: 0; }

/* Single */
.entry-header { padding: var(--s5) 0; }
.entry-header h1 { font-family: var(--font-serif); }
.entry-media { margin: 0 0 var(--s6); border-radius: var(--radius); overflow: hidden; }
.entry-layout { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .entry-layout { grid-template-columns: 240px minmax(0, 760px); justify-content: center; } }
.entry-content { max-width: 70ch; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.75; }
.entry-content h2, .entry-content h3 { font-family: var(--font-sans); margin-top: var(--s6); scroll-margin-top: 90px; }
.entry-content img { border-radius: var(--radius); }
.toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); background: var(--surface); }
.toc h2 { font-size: .95rem; }
.toc ol { margin: 0; padding-left: var(--s4); display: grid; gap: var(--s1); }
.toc .toc-h3 { margin-left: var(--s3); font-size: .85rem; }
.share { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s6) 0; font-family: var(--font-sans); font-size: .95rem; }
.author-box { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-family: var(--font-sans); font-size: 1rem; margin-bottom: var(--s5); }
.author-box img { border-radius: 50%; }
.author-header { margin: var(--s5) 0; }
.h4 { font-weight: 700; margin-bottom: var(--s1); }
.post-navigation .nav-links { display: grid; gap: var(--s3); grid-template-columns: 1fr; font-family: var(--font-sans); }
@media (min-width: 768px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.nav-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.related { padding-top: var(--s6); }
.comments-area { padding: var(--s6) 0; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; }

/* Tool pages */
.tool-grid { display: grid; gap: var(--s6); padding: var(--s6) 0 var(--s7); }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.tool-page .entry-content { font-family: var(--font-sans); font-size: 1rem; }
.steps li { margin-bottom: var(--s2); }
.powered { margin-top: var(--s5); font-weight: 600; color: var(--muted); }
.em-tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.em-tool .row { display: grid; gap: var(--s3); margin-bottom: var(--s3); }
@media (min-width: 768px) { .em-tool .row-2 { grid-template-columns: 1fr 1fr; } .em-tool .row-4 { grid-template-columns: repeat(4, 1fr); } }
.em-tool label { display: grid; gap: var(--s1); font-weight: 600; font-size: .9rem; }
.em-tool textarea { min-height: 180px; font-family: var(--font-mono); resize: vertical; }
.em-tool .actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
.em-tool output, .em-tool .out { display: block; padding: var(--s3); border-radius: 10px; background: var(--surface-2); font-family: var(--font-mono); white-space: pre-wrap; word-break: break-all; min-height: 2.6em; }
.em-tool .status { font-weight: 600; margin: var(--s2) 0 0; }
.em-tool .ok { color: #0E9F6E; } .em-tool .err { color: #E02424; }
[data-theme="dark"] .em-tool .ok { color: #31C48D; } [data-theme="dark"] .em-tool .err { color: #F98080; }
.em-tool mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; border-radius: 3px; }
.em-tool .swatch { height: 80px; border-radius: 10px; border: 1px solid var(--border); }
.em-tool .resistor-viz { display: flex; gap: 6px; align-items: center; justify-content: center; padding: var(--s4); }
.em-tool .resistor-viz span { width: 14px; height: 48px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); }
.em-tool .md-out { font-family: var(--font-sans); white-space: normal; word-break: normal; }
.em-tool .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 768px) { .em-tool .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.em-tool .stat { padding: var(--s3); background: var(--surface-2); border-radius: 10px; }
.em-tool .stat b { display: block; font-size: 1.5rem; }

/* Gutenberg core blocks */
.wp-block-quote, blockquote { border-left: 4px solid var(--primary); margin: var(--s5) 0; padding: var(--s2) var(--s5); font-style: italic; }
.wp-block-table table, .entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .95rem; }
.wp-block-table td, .wp-block-table th, .entry-content td, .entry-content th { border: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; }
.wp-block-table th, .entry-content th { background: var(--surface-2); }
.wp-block-image figcaption, figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: var(--s2); }
.wp-block-gallery { gap: var(--s3); }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--primary); color: var(--on-primary); border-radius: 999px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }
.sticky, .bypostauthor, .gallery-caption, .wp-caption, .wp-caption-text { }
.alignleft { float: left; margin: 0 var(--s5) var(--s4) 0; }
.alignright { float: right; margin: 0 0 var(--s4) var(--s5); }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
