/*
Theme Name: EggMatic Blog
Theme URI: https://eggmatic.net
Author: EggMatic
Description: Editorial blog theme for technology, AI, design and development. Floating pill navigation, featured hero, card grid, three-column article layout with sticky table of contents and sidebar card, built-in SEO / AEO / GEO structured data, social sharing and speed optimisations. Everything is editable from the standard WordPress editor and Customizer. Elementor and Elementor Pro Theme Builder compatible.
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: eggmatic-blog
*/

:root {
  --em-bg: #fdfaf6;
  --em-panel: #f5f4ed;
  --em-nav: #f9f5f0;
  --em-text: #333333;
  --em-heading: #000000;
  --em-muted: #585857;
  --em-faint: #8f8f8c;
  --em-line: #c6c6c1;
  --em-line-soft: #e7e4dc;
  --em-accent: #6e30f7;
  --em-link: #6629de;
  --em-black: #000000;
  --em-footer-text: #fbfaf2;
  --em-max: 1280px;
  --em-gutter: 24px;
  --em-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--em-bg);
  color: var(--em-text);
  font-family: var(--em-font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--em-heading); font-weight: 500; margin: 0; }
button { font: inherit; }
.em-wrap { max-width: calc(var(--em-max) + var(--em-gutter) * 2); margin: 0 auto; padding: 0 var(--em-gutter); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.em-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #000; color: #fff; padding: 10px 16px; border-radius: 8px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--em-accent); outline-offset: 2px; }

/* Buttons */
.em-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 8px; font-size: 16px; font-weight: 400; line-height: 24px;
  border: 1px solid var(--em-line); background: transparent; color: var(--em-text); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.em-btn:hover { border-color: var(--em-text); }
.em-btn--dark { background: var(--em-black); color: #fff; border-color: var(--em-black); border-radius: 12px; }
.em-btn--dark:hover { background: #222; border-color: #222; }

/* Announcement bar */
.em-announce { background: var(--em-announce-bg, #7b4fdb); color: var(--em-announce-fg, #fff); text-align: center; font-size: 14px; font-weight: 400; padding: 7px 16px; }
.em-announce a { color: inherit; }
.em-announce a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Floating pill header */
.em-header { position: sticky; top: 0; z-index: 50; padding: 16px var(--em-gutter) 0; }
.admin-bar .em-header { top: 32px; }
.em-header__bar {
  max-width: var(--em-max); margin: 0 auto; min-height: 56px;
  background: var(--em-nav); border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 12px 6px 22px;
}
.em-logo { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--em-black); display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.em-logo img { max-height: 36px; width: auto; }
.em-logo .em-mark { flex-shrink: 0; border-radius: 9px; }
.em-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.em-nav li { position: relative; }
.em-nav a { display: block; padding: 8px 14px; border-radius: 100px; font-weight: 500; font-size: 16px; color: var(--em-text); }
.em-nav a:hover, .em-nav .current-menu-item > a { background: rgba(0,0,0,.05); }
.em-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); flex-direction: column; align-items: stretch;
}
.em-nav li:hover > .sub-menu, .em-nav li:focus-within > .sub-menu { display: flex; }
.em-header__cta { display: flex; align-items: center; gap: 10px; }
.em-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.em-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--em-black); margin: 5px 0; }

/* Topic strip */
.em-topics { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 0; flex-wrap: wrap; }
.em-topics__label { font-size: 14px; text-transform: uppercase; color: var(--em-muted); }
.em-topics ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.em-topics a { font-size: 14px; font-weight: 500; color: var(--em-text); }
.em-topics a:hover, .em-topics .is-active a { color: var(--em-accent); }

.em-pill { display: inline-block; background: #ece9e1; color: var(--em-text); font-size: 12px; font-weight: 400; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.em-date { font-size: 14px; font-weight: 400; color: var(--em-muted); }

/* Blog index: featured hero */
.em-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; padding: 64px 0 96px; }
.em-hero h1 { font-size: 48px; line-height: 1.15; letter-spacing: -.02em; font-weight: 400; margin: 20px 0 28px; }
.em-hero h1 a:hover { color: var(--em-accent); }
.em-hero .em-btn { margin-top: 24px; }
.em-hero__img { background: var(--em-panel); border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; display: block; }
.em-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.em-sechead { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.em-sechead h2 { font-size: 40px; font-weight: 400; letter-spacing: -.02em; }
.em-search { position: relative; width: 320px; max-width: 100%; }
.em-search input {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 18px 11px 42px;
  border: 1px solid var(--em-line); border-radius: 12px; background: #fff; color: var(--em-text);
}
.em-search input:focus { outline: none; border-color: var(--em-accent); }
.em-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--em-muted); }

/* Cards */
.em-card { display: block; }
.em-card__img { background: var(--em-panel); border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; }
.em-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.em-card:hover .em-card__img img { transform: scale(1.03); }
.em-card h3 { font-size: 22px; line-height: 1.3; font-weight: 400; margin-bottom: 8px; color: var(--em-heading); }
.em-card:hover h3 { color: var(--em-accent); }
.em-card__cat { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--em-accent); margin-bottom: 8px; }
.em-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 400; color: var(--em-muted); }
.em-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; color: #474643; margin-bottom: 16px; }
.em-post-meta a { color: var(--em-accent); font-weight: 500; }

.em-lead { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; margin-bottom: 64px; }
.em-lead .em-card--big .em-card__img { aspect-ratio: 16/9; }
.em-lead .em-card--big h3 { font-size: 26px; }
.em-lead__side { display: flex; flex-direction: column; gap: 32px; }
.em-lead__side .em-card h3 { font-size: 19px; }
.em-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 40px; }
.em-grid .em-card h3 { font-size: 24px; }
.em-more { text-align: center; margin: 72px 0 112px; }
.em-pagination { display: flex; gap: 8px; justify-content: center; margin: 56px 0 112px; }
.em-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--em-line); border-radius: 8px; }
.em-pagination .current { background: var(--em-black); color: #fff; border-color: var(--em-black); }
.em-js .em-pagination { display: none; }
.em-archive-head { padding: 56px 0 48px; }
.em-archive-head h1 { font-size: 48px; letter-spacing: -.02em; font-weight: 400; margin-top: 16px; }
.em-archive-head p { font-size: 20px; color: var(--em-muted); max-width: 720px; margin: 16px 0 0; }

/* Single: hero */
.em-article { padding-top: 64px; }
.em-post-hero { display: flex; gap: 60px; align-items: flex-start; margin-bottom: 40px; }
.em-post-hero__main { flex: 0 0 624px; max-width: 624px; }
.em-post-hero__main .em-date { display: block; font-size: 16px; color: #474643; margin-bottom: 16px; }
.em-post-hero h1 { font-size: 44px; line-height: 1.146; letter-spacing: -.02em; font-weight: 500; }
.em-post-hero__aside { flex: 1; padding-top: 40px; }
.em-post-hero__aside p { font-size: 20px; line-height: 28px; margin: 0 0 16px; color: var(--em-text); }
.em-author { display: flex; align-items: center; gap: 0; }
.em-author img { width: 48px; height: 48px; border-radius: 100px; margin-right: 16px; object-fit: cover; }
.em-author small { display: block; color: var(--em-faint); font-size: 16px; font-weight: 400; }
.em-author span { font-size: 16px; font-weight: 400; color: var(--em-text); }
.em-post-cover { border-radius: 16px; overflow: hidden; margin-bottom: 60px; background: var(--em-panel); }
.em-post-cover img { width: 100%; max-height: 720px; object-fit: cover; }

/* Single: three-column layout */
.em-layout { display: grid; grid-template-columns: minmax(0, 277fr) minmax(0, 693fr) minmax(0, 277fr); gap: 16px; align-items: start; }
.em-left { position: sticky; top: 140px; display: flex; flex-direction: column; padding-right: 4px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: none; }
.em-left::-webkit-scrollbar { display: none; }
.em-right { position: sticky; top: 120px; }
.admin-bar .em-left { top: 172px; }
.admin-bar .em-right { top: 152px; }

.em-toc { margin: 0 0 40px; padding: 0; list-style: none; }
.em-toc a { display: block; padding: 0 10px; margin: 4px 0 12px; border-radius: 10px; font-size: 16px; line-height: 24px; color: var(--em-muted); transition: color .2s; }
.em-toc a:hover, .em-toc a.is-current { color: var(--em-accent); }
.em-toc .em-toc__h3 a { padding-left: 24px; font-size: 15px; }

.em-share__title { font-size: 16px; font-weight: 500; color: var(--em-text); }
.em-share__sub { font-size: 16px; color: var(--em-muted); margin-bottom: 20px; }
.em-share__row { display: flex; gap: 16px; flex-wrap: wrap; }
.em-share__btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--em-line); border-radius: 16px; color: var(--em-text); background: transparent; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.em-share__btn:hover { border-color: var(--em-accent); color: var(--em-accent); }
.em-share__btn svg { width: 22px; height: 22px; }
.em-share__btn.is-copied { border-color: var(--em-accent); color: var(--em-accent); }

.em-side-card { background: var(--em-panel); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.em-side-card__title { font-size: 16px; font-weight: 400; color: #1c1c1b; margin-bottom: 12px; }
.em-side-card__text { font-size: 16px; color: var(--em-muted); margin-bottom: 20px; }
.em-side-card .em-btn { margin-top: auto; width: 100%; }
.em-right > * + * { margin-top: 16px; }

.em-main { min-width: 0; }

/* Article body */
.em-content { font-size: 18px; line-height: 27px; font-weight: 300; color: var(--em-text); min-width: 0; }
.em-content p { margin: 0 0 12px; }
.em-content h2 { font-size: 32px; line-height: 1.29; font-weight: 500; color: var(--em-text); margin: 48px 0 16px; scroll-margin-top: 120px; }
.em-content > h2:first-child, .em-content > .em-summary:first-child h2 { margin-top: 0; }
.em-content h3 { font-size: 24px; line-height: 30px; font-weight: 500; color: var(--em-text); margin: 32px 0 10px; scroll-margin-top: 120px; }
.em-content h4 { font-size: 20px; font-weight: 500; margin: 24px 0 8px; color: var(--em-text); }
.em-content a { color: var(--em-link); text-decoration: underline; text-underline-offset: 3px; }
.em-content strong { font-weight: 600; }
.em-content ul, .em-content ol { margin: 0 0 16px; padding-left: 32px; }
.em-content li { margin: 0 0 8px; }
.em-content img { border-radius: 24px; }
.em-content figure { margin: 32px 0; }
.em-content figcaption { font-size: 14px; color: var(--em-faint); margin-top: 10px; text-align: center; }
.em-content blockquote { margin: 32px 0; padding: 24px 28px; background: var(--em-panel); border-radius: 20px; font-size: 20px; line-height: 30px; color: var(--em-heading); }
.em-content blockquote p:last-child { margin-bottom: 0; }
.em-content blockquote cite { display: block; font-size: 15px; font-style: normal; color: var(--em-muted); margin-top: 12px; }
.em-content pre { background: #1c1c1b; color: #f5f4ed; padding: 20px 24px; border-radius: 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 24px 0; }
.em-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #ece9e1; padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.em-content pre code { background: none; padding: 0; color: inherit; }
.em-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 24px 0; }
.em-content .wp-block-table { overflow-x: auto; }
.em-content th, .em-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--em-line-soft); }
.em-content th, .em-content thead td { font-weight: 600; background: var(--em-panel); }
.em-content hr { border: 0; border-top: 1px solid var(--em-line-soft); margin: 40px 0; }

.em-summary { background: var(--em-panel); border-radius: 20px; padding: 28px 32px 20px; margin-bottom: 40px; }
.em-summary h2 { font-size: 24px !important; margin: 0 0 14px !important; }
.em-summary ul { margin-bottom: 0; }

.em-faq h2 { margin-top: 56px; }
.em-faq details { border-bottom: 1px solid var(--em-line-soft); padding: 18px 0; }
.em-faq summary { cursor: pointer; font-size: 19px; font-weight: 500; color: var(--em-heading); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after { content: "+"; font-weight: 300; font-size: 24px; line-height: 1; color: var(--em-muted); }
.em-faq details[open] summary::after { content: "–"; }
.em-faq details > div { margin-top: 12px; }

.em-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.em-tags a:hover { background: #e2ddd2; }
.em-bio { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 28px; border: 1px solid var(--em-line-soft); border-radius: 20px; }
.em-bio img { width: 64px; height: 64px; border-radius: 100px; flex-shrink: 0; }
.em-bio h3 { font-size: 18px; margin: 0 0 6px; }
.em-bio p { font-size: 16px; line-height: 24px; color: var(--em-muted); margin: 0; }
.em-updated { font-size: 14px; color: var(--em-faint); margin-top: 32px; }

/* Similar articles */
.em-similar { padding: 120px 0; }
.em-similar h2 { font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 60px; }
.em-similar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.em-similar .em-card__img { aspect-ratio: 3/2; }
.em-similar .em-card h3 { font-size: 18px; line-height: 26px; font-weight: 400; margin-bottom: 12px; }

/* Newsletter CTA */
.em-cta { background: var(--em-panel); border-radius: 24px; margin: 0 auto 112px; padding: 72px 24px; text-align: center; }
.em-cta h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.02em; font-weight: 400; max-width: 640px; margin: 0 auto 14px; }
.em-cta p { color: var(--em-muted); margin: 0 auto 32px; max-width: 520px; font-size: 18px; }
.em-cta form { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; }
.em-cta input[type=email] { flex: 1; font: inherit; padding: 12px 18px; border: 1px solid var(--em-line); border-radius: 12px; background: #fff; min-width: 0; }

/* Footer */
.em-footer { background: var(--em-footer-bg, #000); color: var(--em-footer-text); padding: 80px 0 36px; }
.em-footer a { color: var(--em-footer-text); }
.em-footer__headline { font-size: 38px; line-height: 1.15; font-weight: 400; color: var(--em-footer-text); max-width: 560px; margin: 0 0 64px; }
.em-footer__top { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid rgba(251,250,242,.14); }
.em-footer__brand p { font-size: 15px; line-height: 1.6; color: rgba(251,250,242,.68); max-width: 300px; margin: 18px 0 24px; }
.em-footer__menus { display: grid; grid-template-columns: repeat(var(--em-cols, 3), minmax(0, 1fr)); gap: 32px; }
.em-footer__title { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: rgba(251,250,242,.5); margin: 4px 0 18px; }
.em-footer__col ul { list-style: none; margin: 0; padding: 0; }
.em-footer__col li { margin-bottom: 12px; }
.em-footer__col li a { font-size: 15px; color: rgba(251,250,242,.88); transition: color .2s; }
.em-footer__col li a:hover { color: #fff; }
.em-footer .em-logo { color: var(--em-footer-text); }
.em-social { display: flex; gap: 10px; align-items: center; }
.em-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(251,250,242,.18); border-radius: 12px; color: rgba(251,250,242,.85); transition: border-color .2s, color .2s; }
.em-social a:hover { border-color: rgba(251,250,242,.5); color: #fff; }
.em-social svg { width: 16px; height: 16px; }
.em-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(251,250,242,.6); }
.em-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 20px; flex-wrap: wrap; }
.em-footer__bottom a { font-size: 13px; color: rgba(251,250,242,.6); }
.em-footer__bottom a:hover { color: #fff; }
.em-footer__note::before { content: "·"; margin: 0 6px 0 2px; }
.em-footer__legal { font-size: 12px; line-height: 1.6; color: rgba(251,250,242,.45); max-width: 720px; margin: 16px 0 0; }

/* Reading progress */
.em-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--em-accent); z-index: 100; pointer-events: none; }
.admin-bar .em-progress { top: 32px; }

/* About page */
.em-about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 72px 0 80px; }
.em-about-hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.025em; font-weight: 500; margin: 20px 0 24px; }
.em-about-hero p { font-size: 20px; line-height: 30px; color: var(--em-text); margin: 0 0 32px; max-width: 520px; }
.em-about-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.em-about-hero__img { border-radius: 20px; overflow: hidden; background: var(--em-panel); aspect-ratio: 16/11; }
.em-about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.em-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 96px; }
.em-stat { background: var(--em-panel); border-radius: 20px; padding: 28px; }
.em-stat strong { display: block; font-size: 44px; line-height: 1; font-weight: 500; color: var(--em-heading); letter-spacing: -.02em; margin-bottom: 10px; }
.em-stat span { color: var(--em-muted); font-size: 15px; }
.em-about-body { display: grid; grid-template-columns: minmax(0, 277fr) minmax(0, 693fr) minmax(0, 277fr); gap: 16px; margin-bottom: 96px; }
.em-about-body__label { font-size: 14px; text-transform: uppercase; color: var(--em-muted); padding-top: 10px; }
.em-section { margin-bottom: 112px; }
.em-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.em-section__head h2 { font-size: 40px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.em-section__head p { color: var(--em-muted); font-size: 18px; margin: 10px 0 0; max-width: 560px; }
.em-topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.em-topic { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--em-line-soft); transition: border-color .2s, transform .2s; min-height: 240px; }
.em-topic:hover { border-color: var(--em-accent); transform: translateY(-2px); }
.em-topic__dot { width: 40px; height: 40px; border-radius: 12px; background: var(--em-accent); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px; }
.em-topic h3 { font-size: 22px; font-weight: 500; }
.em-topic p { color: var(--em-muted); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.em-topic__count { font-size: 14px; color: var(--em-accent); font-weight: 500; }
.em-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.em-value { padding: 28px; border-radius: 20px; background: var(--em-panel); }
.em-value h3 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.em-value p { margin: 0; color: var(--em-muted); font-size: 16px; line-height: 1.6; }
.em-value__num { font-size: 14px; color: var(--em-accent); font-weight: 600; margin-bottom: 18px; display: block; }
.em-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.em-person { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--em-line-soft); border-radius: 20px; background: #fff; }
.em-person img { width: 64px; height: 64px; border-radius: 100px; flex-shrink: 0; }
.em-person h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.em-person small { display: block; color: var(--em-accent); font-size: 14px; margin-bottom: 8px; }
.em-person p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--em-muted); }
.em-band { background: var(--em-panel); border-radius: 24px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 112px; }
.em-band h2 { font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; max-width: 620px; }
.em-band p { color: var(--em-muted); margin: 12px 0 0; font-size: 18px; }

/* Generic page / 404 */
.em-page { max-width: 760px; margin: 0 auto; padding: 72px var(--em-gutter) 112px; }
.em-page h1 { font-size: 44px; letter-spacing: -.02em; font-weight: 500; margin-bottom: 32px; }
.em-empty { text-align: center; padding: 112px 0; }
.em-empty h1 { font-size: 44px; font-weight: 400; margin-bottom: 16px; }

/* Mobile-only share bar inside article */
.em-share--mobile { display: none; margin-top: 40px; }

/* Responsive */
@media (max-width: 1180px) {
  .em-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .em-left { display: none; }
  .em-share--mobile { display: block; }
  .em-post-hero__main { flex-basis: 55%; }
}
@media (max-width: 960px) {
  .em-hero, .em-lead { grid-template-columns: 1fr; gap: 32px; }
  .em-hero h1 { font-size: 36px; }
  .em-lead__side { flex-direction: row; }
  .em-lead__side > * { flex: 1; }
  .em-post-hero { flex-direction: column; gap: 20px; }
  .em-post-hero__main { flex-basis: auto; max-width: none; }
  .em-post-hero__aside { padding-top: 0; }
  .em-post-hero h1 { font-size: 34px; }
  .em-layout { grid-template-columns: 1fr; }
  .em-right { position: static; }
  .em-similar__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .em-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .em-about-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .em-about-hero h1 { font-size: 40px; }
  .em-stats, .em-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .em-about-body { grid-template-columns: 1fr; }
  .em-about-body > :last-child { display: none; }
  .em-values, .em-team { grid-template-columns: 1fr; }
  .em-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .em-section__head { flex-direction: column; align-items: flex-start; }
  .admin-bar .em-progress { top: 46px; }
  .em-menu-toggle { display: block; }
  .em-nav { display: none; position: absolute; top: 76px; left: var(--em-gutter); right: var(--em-gutter); background: var(--em-nav); border-radius: 16px; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .em-nav.is-open { display: block; }
  .em-nav ul { flex-direction: column; align-items: stretch; }
  .em-nav .sub-menu { position: static; display: flex; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
}
@media (max-width: 640px) {
  :root { --em-gutter: 16px; }
  .em-grid, .em-similar__grid { grid-template-columns: 1fr; }
  .em-lead__side { flex-direction: column; }
  .em-sechead { flex-direction: column; align-items: stretch; }
  .em-sechead h2, .em-similar h2 { font-size: 32px; line-height: 1.2; margin-bottom: 32px; }
  .em-search { width: 100%; }
  .em-cta form { flex-direction: column; }
  .em-cta h2, .em-footer__headline { font-size: 30px; }
  .em-post-hero h1, .em-archive-head h1 { font-size: 30px; }
  .em-content h2 { font-size: 26px; }
  .em-footer__menus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-stats, .em-topic-grid { grid-template-columns: 1fr; }
  .em-about-hero h1 { font-size: 34px; }
  .em-section__head h2, .em-band h2 { font-size: 30px; }
  .em-band { padding: 28px; }
  .em-summary { padding: 22px 20px 14px; }
  .em-similar { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
