
  @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

  .blog-theme-shell {
    position: relative;
    isolation: isolate;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    --blog-ink-strong: var(--public-text-strong, #0f172a);
    --blog-ink-muted: var(--public-text-muted, #475569);
    --blog-ink-soft: var(--public-text-soft, #94a3b8);
  }

  .blog-theme-shell .public-display,
  .blog-theme-shell .public-title,
  .blog-theme-shell .public-lead,
  .blog-theme-shell .public-button,
  .blog-theme-shell .public-button-secondary,
  .blog-theme-shell .public-button-ghost,
  .blog-theme-shell input,
  .blog-theme-shell button {
    font-family: inherit;
  }

  .blog-theme-shell .public-display {
    letter-spacing: -0.03em;
    line-height: 1.06;
    text-wrap: balance;
  }

  .blog-theme-shell .public-title {
    letter-spacing: -0.025em;
    line-height: 1.1;
  }

  .blog-theme-shell .public-lead {
    max-width: 44rem;
    line-height: 1.8;
  }

  .blog-theme-shell .blog-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--public-panel-border, rgba(148, 163, 184, 0.24)) 92%, transparent);
    background: color-mix(in srgb, var(--public-panel-bg, rgba(255, 255, 255, 0.84)) 88%, transparent);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(20px) saturate(150%);
  }

  .blog-theme-shell .blog-search-input {
    width: 100%;
    padding: 1.15rem 4.75rem 1.15rem 1.5rem;
    border: 0;
    background: transparent;
    color: var(--blog-ink-strong);
    font-size: 1rem;
    font-weight: 600;
  }

  .blog-theme-shell .blog-search-input::placeholder {
    color: var(--blog-ink-soft);
  }

  .blog-theme-shell .blog-search-input:focus {
    outline: none;
  }

  .blog-theme-shell .blog-search-submit {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    transform: translateY(-50%);
    box-shadow: 0 16px 28px rgba(var(--theme-primary-rgb), 0.24);
  }

  .blog-theme-shell .blog-hero-meta {
    display: grid;
    gap: 0.9rem;
  }

  .blog-theme-shell .blog-hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid color-mix(in srgb, var(--public-panel-border, rgba(148, 163, 184, 0.18)) 90%, transparent);
    background: color-mix(in srgb, var(--public-subcard-bg, rgba(255, 255, 255, 0.78)) 84%, transparent);
  }

  .blog-theme-shell .blog-hero-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blog-ink-soft);
  }

  .blog-theme-shell .blog-hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--blog-ink-strong);
  }

  .blog-theme-shell .blog-action-bar,
  .blog-theme-shell .blog-filter-panel,
  .blog-theme-shell .blog-empty-state,
  .blog-theme-shell .blog-pagination-shell {
    border: 1px solid var(--public-panel-border, rgba(148, 163, 184, 0.18));
    background: color-mix(in srgb, var(--public-panel-bg, rgba(255, 255, 255, 0.9)) 88%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
  }

  .blog-theme-shell .blog-pill,
  .blog-theme-shell .blog-filter-chip,
  .blog-theme-shell .blog-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
    transition: 180ms ease;
  }

  .blog-theme-shell .blog-filter-chip,
  .blog-theme-shell .blog-tag-chip {
    padding: 0.65rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--public-divider-color, rgba(148, 163, 184, 0.18)) 90%, transparent);
    background: color-mix(in srgb, var(--public-subcard-bg, rgba(255, 255, 255, 0.82)) 88%, transparent);
    color: var(--blog-ink-muted);
  }

  .blog-theme-shell .blog-filter-chip:hover,
  .blog-theme-shell .blog-tag-chip:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--theme-primary) 26%, white);
    color: var(--blog-ink-strong);
  }

  .blog-theme-shell .blog-filter-chip.is-active,
  .blog-theme-shell .blog-tag-chip.is-active,
  .blog-theme-shell .blog-pill.is-active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 16px 28px rgba(var(--theme-primary-rgb), 0.18);
  }

  .blog-theme-shell .blog-read-link {
    color: color-mix(in srgb, var(--theme-primary) 86%, #1d4ed8);
    font-weight: 700;
  }

  .blog-theme-shell .blog-read-link:hover {
    color: color-mix(in srgb, var(--theme-primary) 96%, #ffffff 4%);
  }

  body.theme-dark .blog-theme-shell .blog-read-link,
  body.ui-mode-dark .blog-theme-shell .blog-read-link,
  body.preset-mode-dark .blog-theme-shell .blog-read-link {
    color: color-mix(in srgb, var(--theme-primary) 72%, #dbeafe 28%);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.001);
  }

  body.theme-dark .blog-theme-shell .blog-read-link:hover,
  body.ui-mode-dark .blog-theme-shell .blog-read-link:hover,
  body.preset-mode-dark .blog-theme-shell .blog-read-link:hover {
    color: color-mix(in srgb, var(--theme-primary) 54%, #ffffff 46%);
  }

  .blog-theme-shell .blog-result-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--public-subcard-bg, rgba(255, 255, 255, 0.88)) 88%, transparent);
    color: var(--blog-ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .blog-theme-shell .blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.7rem;
    border: 1px solid var(--public-card-border, rgba(148, 163, 184, 0.16));
    background: linear-gradient(
      160deg,
      color-mix(in srgb, var(--theme-primary) 10%, rgba(255, 255, 255, 0.56)),
      color-mix(in srgb, var(--theme-primary) 5%, rgba(248, 250, 252, 0.36))
    );
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }

  .blog-theme-shell .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
    border-color: color-mix(in srgb, var(--theme-primary) 24%, white);
  }

  .blog-theme-shell .blog-card-cover {
    position: relative;
    min-height: 11.5rem;
    padding: 1.25rem;
    color: var(--blog-ink-strong);
    background: color-mix(in srgb, var(--theme-primary) 14%, rgba(255, 255, 255, 0.30));
  }

  .blog-theme-shell .blog-readtime-badge {
    color: var(--blog-ink-strong);
    border-color: color-mix(in srgb, var(--theme-primary) 22%, rgba(15, 23, 42, 0.18));
    background: color-mix(in srgb, var(--theme-primary) 16%, rgba(255, 255, 255, 0.55));
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell {
    --blog-ink-strong: var(--public-text-strong, #f8fafc);
    --blog-ink-muted: var(--public-text-muted, rgba(226, 232, 240, 0.88));
    --blog-ink-soft: var(--public-text-soft, rgba(203, 213, 225, 0.72));
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-search-shell,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-action-bar,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-filter-panel,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-empty-state,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-pagination-shell {
    background: var(--public-panel-bg, rgba(6, 12, 24, 0.94));
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.28);
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-card {
    background: var(--public-card-bg, rgba(10, 18, 34, 0.96));
    border-color: var(--public-card-border, rgba(96, 165, 250, 0.16));
    box-shadow: 0 28px 58px rgba(2, 6, 23, 0.24);
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-hero-stat,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-filter-chip,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-tag-chip,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-result-chip,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-pagination-link {
    background: var(--public-subcard-bg, rgba(16, 28, 52, 0.94));
    border-color: var(--public-divider-color, rgba(96, 165, 250, 0.12));
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-card-cover {
    opacity: 0.96;
  }

  .blog-theme-shell .blog-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  }

  .blog-theme-shell .blog-card-body {
    position: relative;
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .blog-theme-shell .blog-card-title {
    color: var(--blog-ink-strong);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }

  .blog-theme-shell .blog-card-excerpt {
    color: var(--blog-ink-muted);
    line-height: 1.7;
  }

  .blog-theme-shell .blog-card-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent, var(--theme-primary)) 20%, var(--public-divider-color, rgba(148, 163, 184, 0.28)));
    background: color-mix(in srgb, var(--theme-accent, var(--theme-primary)) 8%, var(--public-subcard-bg, rgba(255, 255, 255, 0.94)) 92%);
    color: color-mix(in srgb, var(--theme-accent, var(--theme-primary)) 36%, var(--blog-ink-strong) 64%);
  }

  .blog-theme-shell .blog-card-chip-count {
    background: color-mix(in srgb, var(--theme-accent, var(--theme-primary)) 12%, var(--public-subcard-bg, rgba(255, 255, 255, 0.94)) 88%);
    color: color-mix(in srgb, var(--theme-accent, var(--theme-primary)) 28%, var(--blog-ink-strong) 72%);
  }

  .blog-theme-shell .blog-meta-divider {
    border-top: 1px solid var(--public-divider-color, rgba(148, 163, 184, 0.18));
  }

  .blog-theme-shell .blog-pagination-link,
  .blog-theme-shell .blog-pagination-current,
  .blog-theme-shell .blog-pagination-gap {
    display: inline-flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    font-weight: 700;
  }

  .blog-theme-shell .blog-pagination-link {
    border: 1px solid var(--public-divider-color, rgba(148, 163, 184, 0.18));
    background: color-mix(in srgb, var(--public-subcard-bg, rgba(255, 255, 255, 0.82)) 90%, transparent);
    color: var(--public-text-muted, #475569);
  }

  .blog-theme-shell .blog-pagination-link:hover {
    color: var(--public-text-strong, #0f172a);
    border-color: color-mix(in srgb, var(--theme-primary) 26%, white);
  }

  .blog-theme-shell .blog-pagination-current {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    box-shadow: 0 14px 26px rgba(var(--theme-primary-rgb), 0.2);
  }

  .blog-theme-shell .blog-pagination-gap {
    color: var(--public-text-soft, #94a3b8);
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-search-input,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-card-title,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-hero-stat-value {
    color: var(--public-text-strong, #f8fafc);
  }

  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .blog-card-excerpt,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .text-slate-500,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .text-slate-600,
  :is(body.theme-dark, body.ui-mode-dark, body.public-site-body.preset-mode-dark) .blog-theme-shell .text-slate-700 {
    color: var(--public-text-muted, rgba(226, 232, 240, 0.88)) !important;
  }

  @media (max-width: 1024px) {
    .blog-theme-shell .public-hero-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .blog-theme-shell .blog-search-input {
      padding-left: 1.15rem;
      padding-right: 4.25rem;
    }

    .blog-theme-shell .blog-card-body {
      min-height: auto;
    }
  }
