:root {
  --blog-blue: #2563eb;
  --blog-blue-dark: #1d4ed8;
  --blog-blue-soft: #eff6ff;
  --blog-blue-border: #bfdbfe;
  --blog-ink: #111827;
  --blog-body: #374151;
  --blog-muted: #64748b;
  --blog-line: #e5e7eb;
  --blog-card: #fff;
  --blog-page: #fafafa;
  --blog-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
  --blog-shadow-hover: 0 18px 34px -18px rgba(15, 23, 42, .28);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blog-page); color: var(--blog-body); font-family: 'Inter', sans-serif; font-weight: 400; font-synthesis: none; }
.blog-skip { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; border-radius: .75rem; background: #111827; color: #fff; font-weight: 700; }
.blog-skip:focus { top: 1rem; }
.blog-shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.blog-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: #6b7280; font-size: .8rem; }
.blog-breadcrumbs a { color: inherit; text-decoration: none; }
.blog-breadcrumbs a:hover { color: var(--blog-blue-dark); }
.blog-hero { border-bottom: 1px solid #f1f5f9; background: linear-gradient(180deg, #eff6ff, #fafafa); }
.blog-hero__inner { padding-block: 1rem 2.5rem; }
.blog-eyebrow { margin-top: 2rem; color: var(--blog-blue-dark); font-size: .75rem; font-weight: 700; letter-spacing: .07em; }
.blog-hero h1 { max-width: 45rem; margin: .65rem 0 0; color: var(--blog-ink); font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.blog-hero h1, .blog-featured h2, .blog-grid-card h2, .blog-grid-heading h2 { font-weight: 700; }
.blog-hero p { max-width: 40rem; margin: .9rem 0 0; color: #475569; font-size: 1.05rem; line-height: 1.65; }
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }
.blog-search { position: relative; flex: 1 1 17.5rem; max-width: 24rem; }
.blog-search svg { position: absolute; left: .9rem; top: 50%; width: 1.1rem; height: 1.1rem; color: #94a3b8; transform: translateY(-50%); pointer-events: none; }
.blog-search input { width: 100%; min-height: 2.85rem; padding: .7rem 1rem .7rem 2.7rem; border: 1px solid #d1d5db; border-radius: .75rem; background: #fff; color: var(--blog-ink); font: inherit; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.blog-search input:focus { outline: 3px solid rgba(37, 99, 235, .16); border-color: #93c5fd; }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-filter { min-height: 2.25rem; padding: .45rem .9rem; border: 1px solid var(--blog-line); border-radius: 999px; background: #fff; color: var(--blog-body); font: 600 .875rem/1.2 'Inter', sans-serif; cursor: pointer; }
.blog-filter:hover { border-color: #93c5fd; color: var(--blog-blue-dark); }
.blog-filter[aria-pressed="true"] { border-color: var(--blog-blue); background: var(--blog-blue); color: #fff; }
.blog-list { padding-block: 2rem 4rem; }
.blog-featured { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .95fr); overflow: hidden; border: 1px solid var(--blog-blue-border); border-radius: 1.5rem; background: #fff; color: inherit; text-decoration: none; box-shadow: var(--blog-shadow); transition: .2s ease; }
.blog-featured:hover { border-color: #93c5fd; box-shadow: var(--blog-shadow-hover); transform: translateY(-3px); }
.blog-featured__copy { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.blog-featured__media { display: grid; place-items: center; min-height: 20rem; padding: 1rem; border-left: 1px solid #dbeafe; background: #eff6ff; }
.blog-featured__media img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.blog-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-badge { display: inline-flex; align-items: center; gap: .35rem; width: max-content; padding: .32rem .65rem; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: .75rem; font-weight: 700; }
.blog-badge--solid { background: var(--blog-blue); color: #fff; }
.blog-featured h2 { margin: 0; color: var(--blog-ink); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.blog-featured p { margin: 0; color: #4b5563; line-height: 1.65; }
.blog-byline { display: flex; align-items: center; gap: .65rem; color: #6b7280; font-size: .85rem; line-height: 1.5; }
.blog-byline img { width: 2.25rem; height: 2.25rem; border: 1px solid var(--blog-line); border-radius: 999px; object-fit: cover; }
.blog-byline strong { color: var(--blog-ink); }
.blog-read-button { display: inline-flex; align-items: center; gap: .5rem; width: max-content; min-height: 2.75rem; margin-top: auto; padding: .65rem 1.1rem; border-radius: .75rem; background: var(--blog-blue); color: #fff; font-size: .875rem; font-weight: 700; }
.blog-read-button svg { width: 1rem; height: 1rem; }
.blog-empty { display: none; padding: 3rem 1.5rem; border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; text-align: center; }
.blog-empty h2 { margin: 0; color: var(--blog-ink); font-size: 1.1rem; }
.blog-empty p { margin: .5rem 0 0; color: #6b7280; }
.blog-grid-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.blog-grid-heading h2 { margin: 0; color: var(--blog-ink); font-size: 1.35rem; }
.blog-grid-heading span { color: #6b7280; font-size: .875rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.blog-grid-card { min-width: 0; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; box-shadow: var(--blog-shadow); transition: .2s ease; }
.blog-grid-card:hover { border-color: #bfdbfe; box-shadow: var(--blog-shadow-hover); transform: translateY(-3px); }
.blog-grid-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-grid-card > a > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eff6ff; }
.blog-grid-card__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.25rem; }
.blog-grid-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #6b7280; font-size: .75rem; }
.blog-grid-card h2 { margin: 0; color: var(--blog-ink); font-size: 1.12rem; line-height: 1.4; text-wrap: balance; }
.blog-grid-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #4b5563; font-size: .92rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-grid-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #f1f5f9; color: #6b7280; font-size: .8rem; }
.blog-grid-card__foot strong { display: inline-flex; align-items: center; gap: .35rem; color: var(--blog-blue); }
.blog-grid-card__foot svg { width: .9rem; height: .9rem; }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; color: #64748b; font-size: .875rem; }
.blog-pagination a, .blog-pagination button { padding: .55rem .9rem; border: 1px solid var(--blog-line); border-radius: .65rem; background: #fff; color: var(--blog-blue-dark); font: 700 .875rem/1.2 'Inter', sans-serif; text-decoration: none; cursor: pointer; }
.blog-loading { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.blog-loading[hidden] { display: none; }
.blog-loading:not([hidden]) { display: grid; }
.blog-loading span { height: 12rem; border-radius: 1rem; background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 400% 100%; animation: blog-pulse 1.4s ease infinite; }
@keyframes blog-pulse { from { background-position: 100% 0; } to { background-position: 0 0; } }
.blog-cta { background: var(--blog-blue); color: #fff; }
.blog-cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 3rem; }
.blog-cta h2 { max-width: 39rem; margin: 0; color: #fff; font-size: clamp(1.6rem, 4vw, 1.9rem); line-height: 1.2; }
.blog-cta p { margin: .6rem 0 0; color: #dbeafe; }
.blog-cta a { display: inline-flex; align-items: center; gap: .5rem; min-height: 3.1rem; padding: .75rem 1.25rem; border-radius: .75rem; background: #fff; color: #1e40af; font-weight: 700; text-decoration: none; }
.blog-cta small { display: block; max-width: 24rem; margin-top: .55rem; color: #dbeafe; line-height: 1.45; }
body[data-blog-page] > main ~ .shared-site-footer { margin-top: 0 !important; }

.post-progress { position: fixed; top: 0; left: 0; z-index: 80; width: 0; height: 3px; background: var(--blog-blue); }
.post-main { width: min(100% - 2rem, 80rem); margin-inline: auto; padding-block: 1rem 4rem; }
.post-header { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; box-shadow: var(--blog-shadow); }
.post-header__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.post-header__copy { flex: 1 1 50rem; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: #6b7280; font-size: .82rem; }
.post-header h1 { max-width: 72rem; margin: .75rem 0 0; color: var(--blog-ink); font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.post-author { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.post-author img { width: 2.3rem; height: 2.3rem; border: 1px solid var(--blog-line); border-radius: 999px; object-fit: cover; }
.post-author strong, .author-card strong { display: block; color: var(--blog-ink); font-size: .875rem; }
.post-author span, .author-card span { display: block; color: #6b7280; font-size: .8rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.post-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.3rem; padding: .45rem .75rem; border: 1px solid #d1d5db; border-radius: .6rem; background: #fff; color: var(--blog-body); font: 600 .8rem/1.2 'Inter', sans-serif; cursor: pointer; text-decoration: none; }
.post-action:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.post-action svg { width: 1rem; height: 1rem; }
.post-share { position: relative; }
.post-share__panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30; width: 12.5rem; padding: .4rem; border: 1px solid var(--blog-line); border-radius: .75rem; background: #fff; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .28); }
.post-share__panel[hidden] { display: none; }
.post-share__panel a, .post-share__panel button { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.5rem; padding: .55rem .65rem; border: 0; border-radius: .5rem; background: transparent; color: var(--blog-body); font: 600 .85rem/1.2 'Inter', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.post-share__panel a:hover, .post-share__panel button:hover { background: var(--blog-blue-soft); color: var(--blog-blue-dark); }
.post-share__panel svg { width: 1rem; height: 1rem; }
.post-layout { display: grid; grid-template-columns: minmax(14.5rem, 17rem) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.post-featured-image { display: block; width: 100%; max-height: 34rem; margin-top: 1rem; border: 1px solid var(--blog-line); border-radius: 1rem; object-fit: cover; background: #eff6ff; box-shadow: var(--blog-shadow); }
.post-toc { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; padding: 1rem; border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; box-shadow: var(--blog-shadow); }
.post-toc__title { display: flex; align-items: center; gap: .5rem; color: var(--blog-ink); font-size: .875rem; font-weight: 700; }
.post-toc__title svg { width: 1rem; height: 1rem; color: var(--blog-blue); }
.post-toc nav { display: flex; flex-direction: column; gap: .12rem; margin-top: .75rem; }
.post-toc a { padding: .48rem .6rem; border-radius: .5rem; color: #4b5563; font-size: .8rem; line-height: 1.4; text-decoration: none; }
.post-toc a[data-level="2"] { padding-left: 1.5rem; color: #6b7280; }
.post-toc a:hover, .post-toc a[aria-current="location"] { background: #eff6ff; color: #1d4ed8; }
.post-toc a[aria-current="location"] { font-weight: 700; }
.post-article { min-width: 0; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; color: #1f2937; box-shadow: var(--blog-shadow); font-size: 1rem; line-height: 1.72; }
.post-article__content { max-width: 45rem; }
.post-article h2 { margin: 2rem 0 .72rem; color: #0f172a; font-size: clamp(1.35rem, 2.6vw, 1.5rem); font-weight: 600; line-height: 1.28; scroll-margin-top: 5.5rem; }
.post-article h2:first-child { margin-top: 0; }
.post-article h2:not(:first-child) { padding-top: 2rem; border-top: 1px solid var(--blog-line); }
.post-article h3 { margin: 1.55rem 0 .55rem; color: #0f172a; font-size: 1.2rem; font-weight: 600; line-height: 1.35; scroll-margin-top: 5.5rem; }
.post-article h3 + p { margin-top: 0; }
.post-article p { margin: 0 0 1rem; }
.post-article ul, .post-article ol { display: block; margin: 0 0 1.05rem; padding-left: 1.55rem; }
.post-article ul { list-style: disc outside; }
.post-article ol { list-style: decimal outside; }
.post-article li { display: list-item; margin: .38rem 0; padding-left: .12rem; }
.post-article li::marker { color: #2563eb; font-weight: 700; }
.post-article strong { color: var(--blog-ink); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 { color: var(--blog-ink); line-height: 1.3; scroll-margin-top: 5.5rem; }
.blog-content h1, .blog-content h2, .blog-content h3 { font-weight: 700; }
.blog-content h1 { font-size: 1.8rem; }.blog-content h2 { font-size: 1.5rem; }.blog-content h3 { font-size: 1.18rem; }.blog-content h4 { font-size: 1rem; }
.blog-content p { margin: 0 0 1rem; }
.blog-content ol, .blog-content ul { margin: 0 0 1.05rem; padding-left: 1.55rem; }
.blog-content blockquote { margin: 1.5rem 0; padding: .9rem 1.1rem; border-left: 4px solid var(--blog-blue); background: #eff6ff; color: #1e3a8a; }
.blog-content img { display: block; max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: .75rem; }
.post-table-wrap { width: 100%; margin: 1.5rem 0; overflow-x: auto; border: 1px solid #dbe3ee; border-radius: .8rem; background: #fff; -webkit-overflow-scrolling: touch; }
.blog-content table { width: 100%; min-width: 34rem; margin: 0; border-collapse: separate; border-spacing: 0; }
.blog-content th, .blog-content td { padding: .72rem .9rem; border: 0; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.blog-content th:last-child, .blog-content td:last-child { border-right: 0; }
.blog-content tr:last-child td { border-bottom: 0; }
.blog-content th { background: #eff6ff; color: #0f172a; font-size: .9rem; font-weight: 700; }
.blog-content tbody tr:nth-child(even) td { background: #f8fafc; }
.blog-content tbody tr:hover td { background: #eff6ff; }
.blog-content a { color: var(--blog-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.blog-content hr { height: 0; margin: 2rem 0; border: 0; border-top: 1px solid var(--blog-line); background: transparent; }
.blog-content iframe, .blog-content embed, .blog-content object, .blog-content video { display: block; width: 100% !important; max-width: 50rem; height: auto !important; max-height: 28.125rem; margin: 1.5rem auto; border: 0; border-radius: .8rem; background: #0f172a; box-shadow: 0 8px 24px -14px rgba(15, 23, 42, .45); }
.blog-content iframe[src*="youtube.com"], .blog-content iframe[src*="youtube-nocookie.com"], .blog-content iframe[src*="youtu.be"] { position: relative !important; inset: auto !important; aspect-ratio: 16 / 9; }
.post-divider { height: 1px; margin: 2.5rem 0; background: #f1f5f9; }
.post-video { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid #e2e8f0; border-radius: .75rem; background: #f1f5f9; color: #475569; text-align: center; }
.post-video span { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto .75rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: var(--blog-blue); }
.post-video svg { width: 1.75rem; height: 1.75rem; }
.post-video p { margin: 0; font-size: .875rem; font-weight: 600; }
.post-example { margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid #e2e8f0; border-radius: .75rem; background: #f8fafc; }
.post-example strong { display: block; font-size: .875rem; }
.post-example p { margin: .35rem 0 0; font-size: .94rem; }
.post-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.post-compare > div { padding: 1rem 1.2rem; border: 1px solid var(--blog-line); border-radius: .75rem; }
.post-compare h3 { margin: 0; font-size: .94rem; }
.post-compare ul { margin: .65rem 0 0; font-size: .94rem; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; }
.post-tags > span:first-child { color: #6b7280; font-size: .8rem; font-weight: 600; }
.post-tag { padding: .3rem .6rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .75rem; font-weight: 700; }
.post-below { display: grid; gap: 1rem; margin-top: 1rem; }
.post-resources, .author-card, .post-notice { padding: 1.25rem 1.5rem; border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; box-shadow: var(--blog-shadow); }
.post-resources h2 { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--blog-ink); font-size: .94rem; font-weight: 700; }
.post-resources h2 span { color: var(--blog-blue); }
.post-resources h2 svg { width: 1.1rem; height: 1.1rem; color: var(--blog-blue); }
.post-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .9rem; }
.post-resource { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--blog-line); border-radius: .75rem; color: inherit; text-decoration: none; }
.post-resource:hover { border-color: #93c5fd; background: #eff6ff; }
.post-resource > span:first-child { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #dbeafe; color: var(--blog-blue); }
.post-resource svg { width: 1.2rem; height: 1.2rem; }
.post-resource strong { display: block; color: var(--blog-ink); font-size: .85rem; }
.post-resource small { color: #6b7280; }
.post-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.author-card__head { display: flex; align-items: center; gap: .9rem; }
.author-card img { width: 3.5rem; height: 3.5rem; border: 1px solid var(--blog-line); border-radius: 999px; object-fit: cover; }
.author-card strong { font-size: 1.05rem; }
.author-card .author-role { color: var(--blog-blue); font-size: .86rem; font-weight: 600; }
.author-card p { margin: .9rem 0 0; color: #4b5563; font-size: .875rem; line-height: 1.62; }
.related-card { padding: 1.25rem 1.5rem; border: 1px solid var(--blog-line); border-radius: 1rem; background: #fff; box-shadow: var(--blog-shadow); }
.related-card h2 { margin: 0; color: var(--blog-ink); font-size: 1.05rem; font-weight: 700; }
.related-list { margin-top: .5rem; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-inline: -.5rem; padding: .75rem .5rem; border-bottom: 1px solid #f1f5f9; border-radius: .5rem; color: inherit; text-decoration: none; }
.related-list a:last-child { border-bottom: 0; }
.related-list a:hover { background: #f8fafc; }
.related-list a > span { min-width: 0; }
.related-list strong { display: block; color: var(--blog-ink); font-size: .9rem; line-height: 1.4; }
.related-list small { display: block; margin-top: .15rem; color: #6b7280; font-size: .76rem; }
.related-list svg { flex: 0 0 1rem; width: 1rem; height: 1rem; color: #94a3b8; }
.related-empty { margin: .75rem 0 0; color: #6b7280; font-size: .875rem; }
.post-notice { display: flex; gap: .75rem; border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.post-notice svg { flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; margin-top: .1rem; }
.post-notice strong { display: block; }
.post-notice p { margin: .2rem 0 0; font-size: .85rem; line-height: 1.55; }

.dark body { background: #09090b; }
.dark .blog-hero { border-color: #27272a; background: linear-gradient(180deg, rgba(30, 58, 138, .35), #09090b); }
.dark .blog-hero h1, .dark .blog-featured h2, .dark .blog-empty h2, .dark .post-header h1, .dark .post-author strong, .dark .author-card strong, .dark .post-toc__title, .dark .post-article h2, .dark .post-article h3, .dark .post-article strong, .dark .post-resource strong, .dark .post-resources h2 { color: #f4f4f5; }
.dark .blog-hero p, .dark .blog-featured p, .dark .blog-byline, .dark .post-article, .dark .author-card p { color: #a1a1aa; }
.dark .blog-featured, .dark .blog-empty, .dark .post-header, .dark .post-toc, .dark .post-article, .dark .post-resources, .dark .author-card, .dark .related-card, .dark .post-share__panel { border-color: #27272a; background: #18181b; }
.dark .blog-grid-card { border-color: #27272a; background: #18181b; }
.dark .blog-grid-card h2, .dark .blog-grid-heading h2, .dark .blog-content h1, .dark .blog-content h2, .dark .blog-content h3, .dark .blog-content h4 { color: #f4f4f5; }
.dark .related-card h2, .dark .related-list strong { color: #f4f4f5; }
.dark .blog-grid-card p { color: #a1a1aa; }
.dark .blog-featured__media { border-color: #1e3a8a; background: rgba(30, 58, 138, .25); }
.dark .blog-search input, .dark .blog-filter, .dark .post-action { border-color: #3f3f46; background: #18181b; color: #d4d4d8; }
.dark .post-example, .dark .post-video { border-color: #3f3f46; background: #27272a; }
.dark .post-compare > div, .dark .post-resource { border-color: #3f3f46; }
.dark .post-divider, .dark .post-tags { border-color: #27272a; background-color: #27272a; }
.dark .post-article h2:not(:first-child), .dark .blog-content hr { border-color: #3f3f46; }
.dark .post-table-wrap { border-color: #3f3f46; background: #18181b; }
.dark .blog-content th { background: #1e3a5f; color: #f4f4f5; }
.dark .blog-content th, .dark .blog-content td { border-color: #3f3f46; }
.dark .blog-content tbody tr:nth-child(even) td { background: #202024; }
.dark .blog-content tbody tr:hover td { background: #27272a; }

@media (max-width: 820px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__media { grid-row: 1; min-height: 0; border-left: 0; border-bottom: 1px solid #dbeafe; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; max-height: none; }
  .post-resource-grid { grid-template-columns: 1fr; }
  .post-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-shell, .post-main { width: min(100% - 1.25rem, 80rem); }
  .blog-hero__inner { padding-bottom: 2rem; }
  .blog-eyebrow { margin-top: 1.5rem; }
  .blog-filters { flex-wrap: nowrap; width: 100%; padding-bottom: .25rem; overflow-x: auto; }
  .blog-featured__copy { padding: 1.25rem; }
  .blog-featured__media { padding: .75rem; }
  .blog-byline { align-items: flex-start; }
  .post-compare, .post-columns { grid-template-columns: 1fr; }
  .post-article { padding: 1.2rem; font-size: 1rem; }
  .blog-loading { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blog-featured { transition: none; }
}
