/* Email Meter blog theme — brand-matched to emailmeter.com
   Palette + type lifted from the live site (Inter; primary #2e72f3). */

:root {
    --primary:        #2e72f3;
    --primary-600:    #2157d0;
    --primary-700:    #1740ae;
    --navy:           #0a1b3e;
    --ink:            #1d1e20;   /* headings */
    --body:           #333333;   /* body text */
    --muted:          #6b7280;
    --secondary:      #374151;
    --bg:             #ffffff;
    --bg-soft:        #f9fafb;
    --border:         #e5e7eb;
    --dark:           #1f2631;
    --radius:         8px;
    --radius-lg:      14px;
    --maxw:           1160px;
    --maxw-narrow:    720px;
    --sans: "Inter", -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;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,.12); }
.btn--primary:hover { background: var(--primary-600); color: #fff; }
.btn--primary:active { background: var(--primary-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn--lg { font-size: 18px; padding: 16px 26px; }

/* ---------- Header ---------- */
.announcement-bar { background: #1d2433; color: #fff; }
.announcement-bar--hidden { display: none; }
.announcement-bar__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 11px 48px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.announcement-bar__text { margin: 0; font-size: 15px; line-height: 1.4; color: #fff; text-align: center; }
.announcement-bar__text a { color: #fff; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.announcement-bar__text a:hover { text-decoration: underline; color: #fff; }
.announcement-bar__close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; opacity: .85; }
.announcement-bar__close:hover { opacity: 1; }
.site-top { position: sticky; top: 0; z-index: 60; }

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 80px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 44px; width: auto; }
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1;
}
.site-nav a {
    color: #1d1e20;
    font-weight: 600;
    font-size: 15px;
}
.site-nav a:hover { color: var(--primary); }
.site-header__cta { display: flex; align-items: center; gap: 14px; }
.site-header__login { color: var(--secondary); font-weight: 500; font-size: 15px; }
.site-header__login:hover { color: var(--ink); }
.site-header__phone { display: inline-flex; align-items: center; gap: 7px; color: #1d1e20; font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-header__phone:hover { color: #1d1e20; }
/* Header buttons matched to emailmeter.com */
.site-header__cta .btn { font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: 4px; line-height: 1.3; box-shadow: none; }
.site-header__cta .btn--ghost { border: 1px solid #e7eaee; background: #fff; color: #1d1e20; }
.site-header__cta .btn--ghost:hover { background: #f9fafb; color: #1d1e20; }
.site-header__cta .btn--primary { background: var(--primary); color: #fff; }
.site-header__cta .btn--primary:hover { background: var(--primary-600); color: #fff; }

/* Topics dropdown (native <details>, no JS) */
.nav-dropdown { align-self: stretch; display: flex; align-items: center; }
.nav-dropdown__label {
    cursor: pointer; color: #1d1e20; background: none; border: 0; padding: 0;
    font-family: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown__label::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -2px; transition: transform .15s; }
.nav-dropdown:hover .nav-dropdown__label, .nav-dropdown:focus-within .nav-dropdown__label { color: var(--primary); }
.nav-dropdown:hover .nav-dropdown__label::after, .nav-dropdown:focus-within .nav-dropdown__label::after { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0,0,0,.08); z-index: 60;
    display: none;
}
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
.mega-inner { max-width: 1200px; margin: 0 auto; padding: 30px 24px; }
.nav-dropdown__menu a {
    padding: 9px 12px; border-radius: var(--radius); font-size: 15px;
    color: var(--secondary); white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: var(--bg-soft); color: var(--ink); }

/* Mega-menu (Product) - full width, content centered via .mega-inner */
.mega-menu__eyebrow { display: block; font-size: 17px; font-weight: 600; color: #374151; margin: 2px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mega-menu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mega-menu .mega-card { display: block; padding: 10px; border-radius: var(--radius); white-space: normal; }
.mega-menu .mega-card:hover { background: var(--bg-soft); }
.mega-card__icon { width: 40px; height: 40px; display: block; margin-bottom: 12px; }
.mega-card__title { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.mega-card__desc { display: block; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mega-menu .mega-menu__demo { display: inline-block; margin: 16px 0 0 4px; padding: 0; font-weight: 700; font-style: italic; color: #1d1e20; white-space: nowrap; }
.mega-menu .mega-menu__demo:hover { background: none; color: var(--primary); }

/* Customers mega-menu */
.mega-cols { display: grid; max-width: 1200px; margin: 0 auto; padding: 30px 24px; }
.mega-cols--cust { grid-template-columns: 1.5fr 1fr; gap: 36px; }
.mega-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.mega-menu .mega-story { display: block; white-space: normal; padding: 0; }
.mega-menu .mega-story:hover { background: none; }
.mega-story__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; display: block; }
.mega-menu .mega-story:hover .mega-card__title { color: var(--primary); }
.mega-col--logos { border-left: 1px solid var(--border); padding-left: 36px; }
.mega-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; align-items: center; justify-items: center; margin-top: 24px; }
.mega-logos img { height: 34px; width: auto; max-width: 100%; opacity: .85; object-fit: contain; }

/* Resources mega-menu */
.mega-cols--res { grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; }
.mega-menu .mega-link { display: block; white-space: normal; padding: 9px 4px; }
.mega-menu .mega-link:hover { background: none; }
.mega-menu .mega-link:hover .mega-card__title { color: var(--primary); }
.mega-col--featured { border-left: 1px solid var(--border); padding-left: 32px; }
.mega-menu .mega-featured { display: block; white-space: normal; padding: 0; margin-top: 14px; }
.mega-menu .mega-featured:hover { background: none; }
.mega-featured img { width: 100%; border-radius: 10px; display: block; margin-bottom: 14px; }
.mega-featured__title { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 12px; }
.mega-featured__cta { font-weight: 700; color: #1d1e20; }
.mega-menu .mega-featured:hover .mega-featured__cta { color: var(--primary); }

/* Mobile accordion menu */
.mobile-group { border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 600; font-size: 16px; color: #1d1e20; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; flex: 0 0 auto; }
.mobile-group[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.mobile-nav .mobile-group a { display: block; padding: 9px 4px 9px 16px; color: var(--secondary); font-weight: 500; font-size: 15px; }
.mobile-nav .mobile-group a:hover { color: var(--primary); }
.mobile-nav .mobile-link { font-weight: 600; color: #1d1e20; }

/* ---------- Blog hero ---------- */
.blog-hero {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 56px;
    text-align: center;
}
.blog-hero__title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 14px;
}
.blog-hero__sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 19px;
    color: var(--muted);
}

/* ---------- Post grid (index / tag / author) ---------- */
.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-top: 48px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
    padding: 56px 0;
}
.post-latest { border-top: 1px solid var(--border); margin-top: 16px; }
.post-grid--latest { grid-template-columns: repeat(2, 1fr); padding-top: 28px; }

/* ---------- Home sections ---------- */
.home-section { padding: 8px 0 24px; }
.section-title a { color: inherit; }
.section-title a:hover { color: var(--primary); }

/* Latest: 1 feature (left, spans) + 4 list (right) */
.latest-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px 44px; margin-top: 22px; align-items: start; }
.latest-feature { grid-column: 1; grid-row: 1 / span 4; display: block; }
.latest-feature__image { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); margin-bottom: 16px; }
.latest-feature__image img { width: 100%; height: 100%; object-fit: cover; }
.latest-feature__title { font-size: 26px; font-weight: 600; line-height: 1.25; margin: 10px 0 10px; color: var(--ink); }
.latest-feature:hover .latest-feature__title { color: var(--primary-600); }
.latest-feature__excerpt { color: var(--muted); font-size: 16px; line-height: 1.55; }
.latest-feature__date { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }
.latest-item { grid-column: 2; display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border); }
.latest-item__image { flex: 0 0 132px; width: 132px; height: 88px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.latest-item__image img { width: 100%; height: 100%; object-fit: cover; }
.latest-item__label { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary); background: #eaf1fe; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.latest-item__title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-item:hover .latest-item__title { color: var(--primary-600); }
.latest-item__date { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Category sections */
.home-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.home-cat .section-title { margin-top: 28px; }
.home-cat__viewall { font-weight: 600; font-size: 15px; white-space: nowrap; }
.home-cat .post-grid { padding: 22px 0 0; }

/* Header search icon */
.site-search { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--secondary); cursor: pointer; }
.site-search:hover { background: var(--bg-soft); color: var(--ink); }

/* Mobile hamburger menu */
.nav-burger { display: none; align-items: center; justify-content: center; margin-left: auto; padding: 4px; color: var(--secondary); cursor: pointer; }
.mobile-nav { display: none; }

/* Hero search bar */
.hero-search { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); margin: 0; padding: 7px 7px 7px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; text-align: left; }
.hero-search:hover { border-color: var(--primary); }
.hero-search > svg { color: var(--muted); flex: 0 0 auto; }
.hero-search__placeholder { flex: 1; color: var(--muted); font-size: 16px; }
.hero-search__btn { background: var(--primary); color: #fff; font-weight: 600; padding: 11px 24px; border-radius: var(--radius); font-size: 15px; white-space: nowrap; }
.hero-search:hover .hero-search__btn { background: var(--primary-600); }

/* Browse bar (chips) */
.browse-bar { padding: 40px 0 32px; }
.browse-bar .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { padding: 10px 18px; border: 1px solid var(--primary); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: #fff; background: var(--primary); }
.chip:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.browse-search { display: inline-flex; align-items: center; gap: 10px; width: min(520px, 100%); padding: 13px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--muted); font-size: 15px; cursor: pointer; text-align: left; }
.browse-search:hover { border-color: var(--primary); }
.browse-search span { flex: 1; }

/* Latest size bump (Kaspr-like) */
.latest-item { gap: 22px; padding: 22px 0; }
.latest-item__image { flex: 0 0 152px; width: 152px; height: 100px; }
.latest-item__title { font-size: 17px; }
.latest-feature__title { font-size: 28px; }

/* Customer stories */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 22px; }
.story-card { display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.story-card:hover { border-color: var(--primary); }
.story-card__logo { height: 34px; width: 150px; object-fit: contain; object-position: left center; align-self: flex-start; }
.story-card__company { font-size: 19px; font-weight: 700; color: var(--ink); }
.story-card__result { font-size: 16px; color: var(--secondary); line-height: 1.5; margin: 0; flex: 1; }
.story-card__link { font-weight: 600; color: var(--primary); font-size: 15px; }

/* Promo banners */
.promo { margin: 48px 0; }
.promo--cta { margin: 56px 0 72px; }
.promo__inner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%); border-radius: var(--radius-lg); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; }
.promo__inner--center { flex-direction: column; text-align: center; padding: 56px 32px; }
.promo__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.promo__title { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0; color: #fff; }
.promo__inner--center .promo__title { font-size: 34px; max-width: 780px; }
.promo__sub { margin: 12px 0 0; font-size: 17px; line-height: 1.5; opacity: .92; max-width: 640px; }
.promo__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #eef3ff; color: var(--primary-700); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10,27,62,.10);
    border-color: #d8deea;
}
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__image { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__image-fallback {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #eef2fb, #e3e9f7);
}
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__label {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #eaf1fe;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.post-card__title { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.post-card__link:hover .post-card__title { color: var(--primary-600); }
.post-card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.post-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--muted);
}
.post-card__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card__author { font-weight: 500; color: var(--secondary); }
.post-card__date::before { content: "·"; margin-right: 9px; color: var(--border); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 0 72px;
    color: var(--muted);
    font-size: 15px;
}
.pagination a {
    font-weight: 600;
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius);
    color: var(--ink);
}
.pagination a:hover { background: var(--bg-soft); }

/* ---------- Single post ---------- */
.post { padding-top: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--border); }

/* Article 2-column layout: sticky aside (share + TOC) + content */
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); gap: 56px; justify-content: center; align-items: start; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }
.post-aside { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 28px; }
.post-main { min-width: 0; }
.post-share__label, .post-toc__title { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--secondary); margin-bottom: 14px; }
.post-share__links { display: flex; gap: 10px; }
.post-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--secondary); cursor: pointer; }
.post-share__btn:hover { border-color: var(--primary); color: var(--primary); }
.post-copy.copied { border-color: var(--primary); color: var(--primary); }
.post-toc { border-top: 1px solid var(--border); padding-top: 24px; }
.post-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); max-height: calc(100vh - 280px); overflow-y: auto; }
.post-toc__item a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.4; }
.post-toc__item a:hover { color: var(--secondary); }
.post-toc__item a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.post-toc__item--h3 a { padding-left: 26px; font-size: 13px; }
.post__header { text-align: left; }
.post__label,
.post__tag {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    color: var(--primary); background: #eaf1fe; padding: 5px 12px; border-radius: 999px;
}
.post__title { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.post__lead { font-size: 20px; color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.post__meta {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 10px; color: var(--muted); font-size: 15px; flex-wrap: wrap;
}

/* Article hero (text left, image right) */
.post-hero { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; margin-top: 8px; }
.post-hero--noimage { grid-template-columns: 1fr; max-width: 760px; }
.post-hero__media { margin: 0; }
.post-hero__media img { width: 100%; border-radius: var(--radius-lg); display: block; }
.post-hero__media figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.post__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post__author { font-weight: 600; color: var(--secondary); }
.post__readtime::before,
.post__meta time::before { content: "·"; margin-right: 10px; color: var(--border); }
.post__feature { margin: 40px 0; }
.post__feature img { width: 100%; border-radius: var(--radius-lg); }
.post__feature figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Ghost content typography */
.gh-content { font-size: 19px; line-height: 1.7; color: var(--body); }
.gh-content > * { margin: 0 0 1.5rem; }
.gh-content h2 { font-size: 30px; margin: 2.2rem 0 1rem; }
.gh-content h3 { font-size: 24px; margin: 2rem 0 .9rem; }
.gh-content a { text-decoration: underline; text-underline-offset: 2px; }
.gh-content img,
.gh-content figure img { border-radius: var(--radius); }
.gh-content figure { margin: 2rem 0; }
.gh-content figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.gh-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 2rem 0; padding: 4px 0 4px 22px;
    color: var(--secondary); font-size: 21px; font-style: italic;
}
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin-bottom: .5rem; }
.gh-content pre {
    background: var(--dark); color: #f2f4f8; padding: 18px 20px;
    border-radius: var(--radius); overflow: auto; font-size: 15px;
    font-family: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gh-content code {
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: .1em .4em; border-radius: 4px; font-size: .9em;
    font-family: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gh-content pre code { background: none; border: 0; padding: 0; }
.gh-content hr { border: 0; border-top: 1px solid var(--border); }

/* Koenig editor wide / full-width cards (images, galleries, embeds) */
.gh-content .kg-width-wide {
    position: relative;
    width: 75vw;
    min-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
}
.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.gh-content .kg-width-full img { max-width: 100vw; border-radius: 0; }
.gh-content .kg-card { margin: 2rem 0; }

.post__tags { margin: 36px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Post-end CTA */
.post-cta {
    margin-top: 64px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 64px 0;
    text-align: center;
}
.post-cta h2 { font-size: 30px; }
.post-cta p { max-width: 540px; margin: 0 auto 26px; color: var(--muted); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
    background: #000205;
    padding: 64px 0 36px;
    margin-top: 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 22px; }
.footer-col a, .footer-col p {
    display: block; color: #7b838e; font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0 0 18px;
}
.footer-col a:hover { color: #fff; }
.footer-available__label { display: block; color: #fff; font-weight: 600; margin: 24px 0 12px; }
.footer-badge img { display: block; max-width: 190px; height: auto; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; background: #1d1e20; border: none; color: #fff; margin: 0; }
.footer-social a:hover { background: #2c2f34; color: #fff; }
.site-footer__legal {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding-top: 28px; color: #ccd4e0; font-size: 15px; font-weight: 400;
}
.site-footer__legal a { color: #ccd4e0; font-weight: 400; }
.site-footer__legal a:first-of-type { margin-left: auto; }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 100px 24px; }
.error-page__code { font-size: 64px; font-weight: 700; color: var(--primary); margin: 0; }
.error-page__title { font-size: 28px; margin: 8px 0 12px; }
.error-page__text { color: var(--muted); margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .site-nav { display: none; }
    .site-logo { margin-right: auto; }
    .site-header__cta { display: flex; }
    .site-header__cta .btn--ghost { display: none; }
    .nav-burger { display: inline-flex; margin-left: 14px; }
    #nav-toggle:checked ~ .mobile-nav { display: flex; }
    .mobile-nav { flex-direction: column; gap: 2px; padding: 10px 20px 22px; border-top: 1px solid var(--border); background: var(--bg); }
    .mobile-nav a, .mobile-nav__search { display: block; width: 100%; text-align: left; padding: 12px 4px; color: var(--secondary); font-weight: 500; font-size: 16px; border: 0; background: none; cursor: pointer; }
    .mobile-nav a:hover, .mobile-nav__search:hover { color: var(--primary); }
    .mobile-nav__login { border-top: 1px solid var(--border); margin-top: 6px; }
    .mobile-nav__cta { display: block; text-align: center; color: #fff; margin-top: 12px; padding: 13px; }
    .post-hero { grid-template-columns: 1fr; gap: 26px; }
    .post-layout { grid-template-columns: 1fr; gap: 24px; }
    .post-aside { position: static; flex-direction: row; align-items: center; gap: 16px; }
    .post-toc { display: none; }
    .post-share__label { margin-bottom: 0; }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .post-grid { grid-template-columns: 1fr; padding: 40px 0; }
    .post-grid--latest { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: 1fr; }
    .latest-feature, .latest-item { grid-column: 1; grid-row: auto; }
    .latest-feature__title { font-size: 22px; }
    .promo__inner { flex-direction: column; text-align: center; align-items: center; padding: 32px 24px; }
    .promo__title { font-size: 24px; }
    .promo__inner--center .promo__title { font-size: 26px; }
    .blog-hero { padding: 48px 0 40px; }
    .blog-hero__title { font-size: 34px; }
    .section-title { font-size: 28px; }
    .post__title { font-size: 32px; }
    .gh-content { font-size: 18px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-header__phone { display: none; }
}
