:root {
    --pp-blog-bg: #080f18;
    --pp-blog-surface: #0e1824;
    --pp-blog-card: #111d2a;
    --pp-blog-line: rgba(255, 255, 255, .1);
    --pp-blog-text: #f6f8fb;
    --pp-blog-muted: #9ba8b8;
    --pp-blog-red: #f1352a;
    --pp-blog-red-dark: #be211b;
}

body.productpilot-blog-experience {
    background: var(--pp-blog-bg);
    color: var(--pp-blog-text);
}

/* The existing Diana footer is nested inside a theme wrapper that is hidden. */
body.productpilot-blog-experience .site-footer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #061019 !important;
}
body.productpilot-blog-experience .site-footer .ds-footer {
    display: block !important;
    width: 100% !important;
}

/* Single editorial posts use the site's existing article template. */
body.productpilot-blog-post .site-footer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #061019 !important;
}
body.productpilot-blog-post .site-footer .ds-footer {
    display: block !important;
    width: 100% !important;
}
body.productpilot-blog-post .ds-blog-title {
    max-width: 760px !important;
    font-size: clamp(34px, 3.7vw, 46px) !important;
    line-height: 1.09 !important;
    letter-spacing: -.03em !important;
}
body.productpilot-blog-post .ds-blog-article-content {
    font-size: 16px !important;
    line-height: 1.72 !important;
}
body.productpilot-blog-post .ds-blog-article-content h2 {
    font-size: clamp(27px, 2.6vw, 34px) !important;
    line-height: 1.16 !important;
}
body.productpilot-blog-post .ds-blog-article-content h3 {
    font-size: clamp(22px, 2vw, 27px) !important;
    line-height: 1.2 !important;
}

.productpilot-blog-experience .site-content,
.productpilot-blog-experience .content-area,
.productpilot-blog-experience .site-main,
.productpilot-blog-experience .inside-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.pp-blog,
.pp-blog * { box-sizing: border-box; }

.pp-blog { overflow: hidden; background: var(--pp-blog-bg); color: var(--pp-blog-text); }
.pp-blog__wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.pp-blog__hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 360px;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--pp-blog-line);
    background:
        linear-gradient(110deg, rgba(8,15,24,.98) 5%, rgba(14,24,36,.96) 55%, rgba(44,15,20,.88) 100%),
        repeating-linear-gradient(115deg, transparent 0 58px, rgba(255,255,255,.025) 59px 60px);
}

.pp-blog__hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 78% 45%, rgba(241,53,42,.2), transparent 32%);
}

.pp-blog__hero-glow {
    position: absolute;
    right: 9%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(241,53,42,.17);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(241,53,42,.1), inset 0 0 60px rgba(241,53,42,.05);
}

.pp-blog__hero-inner { position: relative; z-index: 1; text-align: center; padding-block: 76px; }
.pp-blog__eyebrow { margin: 0 0 18px; color: var(--pp-blog-red); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.pp-blog__eyebrow span { display: inline-block; width: 34px; height: 2px; margin: 0 10px 3px 0; background: var(--pp-blog-red); }
.pp-blog__hero h1 { max-width: 900px; margin: 0 auto; color: #fff; font-size: clamp(34px, 4.2vw, 52px) !important; font-weight: 800; line-height: 1.04 !important; letter-spacing: -.04em !important; }
.pp-blog__lead { max-width: 690px; margin: 22px auto 0; color: #b4bfcc; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }

.pp-blog__archive { min-height: 600px; padding: 54px 0 88px; background: linear-gradient(180deg, #0a121d 0, var(--pp-blog-bg) 100%); }
.pp-blog__topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.pp-blog__topics a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid var(--pp-blog-line);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #c4ced9;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.pp-blog__topics a:hover,
.pp-blog__topics a:focus-visible { border-color: rgba(241,53,42,.65); color: #fff; transform: translateY(-1px); }
.pp-blog__topics a.is-active { border-color: var(--pp-blog-red); background: var(--pp-blog-red); color: #fff; }

.pp-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pp-blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--pp-blog-line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20,33,47,.98), rgba(12,22,33,.98));
    box-shadow: 0 16px 38px rgba(0,0,0,.18);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pp-blog-card:hover { border-color: rgba(241,53,42,.35); transform: translateY(-5px); box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.pp-blog-card__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #182331; }
.pp-blog-card__image::after { position: absolute; inset: auto 0 0; height: 45%; content: ""; background: linear-gradient(transparent, rgba(7,13,21,.42)); pointer-events: none; }
.pp-blog-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pp-blog-card:hover .pp-blog-card__image img { transform: scale(1.035); }
.pp-blog-card__fallback { display: grid; width: 100%; height: 100%; place-content: center; text-align: center; background: radial-gradient(circle at 70% 30%, rgba(241,53,42,.28), transparent 32%), linear-gradient(135deg, #172332, #0b131e); }
.pp-blog-card__fallback strong { color: #fff; font-size: 54px; letter-spacing: -.08em; }
.pp-blog-card__fallback small { color: var(--pp-blog-red); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.pp-blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.pp-blog-card__category { align-self: flex-start; margin-bottom: 12px; color: var(--pp-blog-red); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.pp-blog-card h2 { margin: 0 0 13px; color: #fff; font-size: clamp(20px, 1.65vw, 24px) !important; font-weight: 780; line-height: 1.2 !important; letter-spacing: -.018em !important; }
.pp-blog-card h2 a { color: inherit; text-decoration: none; }
.pp-blog-card h2 a:hover { color: #ff5a50; }
.pp-blog-card__body > p { margin: 0 0 22px; color: var(--pp-blog-muted); font-size: 14px; line-height: 1.65; }
.pp-blog-card__meta { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--pp-blog-line); color: #7f8d9e; font-size: 11px; }

.pp-blog__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pp-blog__pagination .page-numbers { display: grid; min-width: 42px; height: 42px; padding: 0 10px; place-items: center; border: 1px solid var(--pp-blog-line); border-radius: 9px; background: var(--pp-blog-surface); color: #c8d1dc; font-weight: 750; text-decoration: none; }
.pp-blog__pagination .page-numbers:hover { border-color: var(--pp-blog-red); color: #fff; }
.pp-blog__pagination .page-numbers.current { border-color: var(--pp-blog-red); background: var(--pp-blog-red); color: #fff; }
.pp-blog__pagination .dots { background: transparent; }

.pp-blog__empty { padding: 70px 30px; border: 1px solid var(--pp-blog-line); border-radius: 16px; background: var(--pp-blog-surface); text-align: center; }
.pp-blog__empty h2 { margin: 0 0 10px; color: #fff; }
.pp-blog__empty p { color: var(--pp-blog-muted); }
.pp-blog__empty a { display: inline-flex; margin-top: 12px; padding: 12px 20px; border-radius: 8px; background: var(--pp-blog-red); color: #fff; font-weight: 750; text-decoration: none; }

@media (max-width: 980px) {
    .pp-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .pp-blog__wrap { width: min(100% - 28px, 1180px); }
    .pp-blog__hero { min-height: 310px; }
    .pp-blog__hero-inner { padding-block: 60px; }
    .pp-blog__hero-glow { right: -100px; width: 230px; height: 230px; }
    .pp-blog__archive { padding: 34px 0 64px; }
    .pp-blog__topics { flex-wrap: nowrap; margin-right: -14px; padding: 0 14px 10px 0; overflow-x: auto; scrollbar-width: thin; }
    .pp-blog__topics a { flex: 0 0 auto; }
    .pp-blog__grid { grid-template-columns: 1fr; gap: 18px; }
    .pp-blog-card__body { padding: 21px; }
    .pp-blog-card__meta { font-size: 10px; }
    body.productpilot-blog-post .ds-blog-title { font-size: clamp(30px, 9vw, 38px) !important; }
}
