/* ============================================================
   nr-blog.css — Ascone-style polish for the blog
   Loaded by index.php (blog index / archives / search) and
   single-post.php, AFTER nr-page-sections.css, so the rules
   here override the legacy blog styling without touching it.

   Palette: pine #1C3F3A, mint #E0EAE8, bone #EBE8D8,
   ink #0A0C29, cloud #F1F2EF, line #E2E3DC.
   ============================================================ */

/* ── 0) Counter a too-greedy nr26.css rule ──
   nr26.css ships `[class*="article-hero"] { padding-top:
   clamp(96px, 10vw, 128px) !important }` meant to push full-bleed
   hero SECTIONS below the sticky header. The attribute selector
   also matches every child whose class contains "article-hero"
   (__inner, __title, __meta, __crumbs), stacking up to 3x128px of
   dead space inside the blog hero and the single-post card. Keep
   the section padding, zero the children. */
.nr-blog-hero .nr-kb-article-hero__inner,
.nr-blog-hero .nr-kb-article-hero__title,
.nr-blog-hero .nr-kb-article-hero__meta,
body.single-post .nr-kb-article-page .nr-kb-article-hero__title,
body.single-post .nr-kb-article-page .nr-kb-article-hero__meta,
body.single-post .nr-kb-article-page .nr-kb-article-hero__crumbs {
    padding-top: 0 !important;
}
/* Inside the single-post white card the hero is NOT behind the
   sticky header (the grey gutter above the card is), so the
   section + inner keep their own compact padding. */
body.single-post .nr-kb-article-page .nr-kb-article-hero {
    padding-top: 0 !important;
    /* late nr26.css paints .nr-kb-article-hero cloud-grey !important;
       inside the white card the hero must stay white. */
    background: transparent !important;
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__inner {
    padding-top: clamp(36px, 5vw, 64px) !important;
}

/* ── 1) Blog hero (index + category / tag / author / search) ── */
.nr-blog-hero.nr-kb-article-hero {
    background:
        radial-gradient(ellipse 60% 90% at 85% 10%, rgba(224, 234, 232, 0.9), transparent 60%),
        radial-gradient(ellipse 50% 80% at 10% 100%, rgba(235, 232, 216, 0.55), transparent 60%),
        #F1F2EF;
    border-bottom: 1px solid #E2E3DC;
    padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 5vw, 60px);
}
.nr-blog-hero .nr-kb-article-hero__inner {
    max-width: 1280px;
    color: #0A0C29;
}
/* Eyebrow: bare caps per the nr26 design law ("sectie-eyebrows:
   altijd kale caps, nooit een chip" — [class*="__eyebrow"] in
   nr26.css force-strips any chip styling, so we don't fight it). */
.nr-blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}
.nr-blog-hero__eyebrow a {
    color: #1C3F3A !important;
    text-decoration: none !important;
}
.nr-blog-hero__eyebrow a:hover { text-decoration: underline !important; }
.nr-blog-hero__eyebrow .nr-blog-hero__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(28, 63, 58, 0.4);
    display: inline-block;
}
.nr-blog-hero .nr-kb-article-hero__title {
    color: #0A0C29;
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    max-width: 18em;
}
.nr-blog-hero .nr-kb-article-hero__title em,
.nr-blog-hero__accent {
    font-family: "NR Serif Accent", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #1C3F3A;
    letter-spacing: 0;
}
.nr-blog-hero .nr-kb-article-hero__meta {
    color: #6B7470;
    font-size: 16px;
    line-height: 1.6;
    max-width: 560px;
    display: block;
}

/* Category pills under the hero copy */
.nr-blog-hero__cats {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nr-blog-hero__cats a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid #E2E3DC;
    border-radius: 999px;
    color: #1C3F3A !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 160ms ease-out, background 160ms ease-out, color 160ms ease-out;
}
.nr-blog-hero__cats a:hover {
    border-color: #1C3F3A;
    background: #E0EAE8;
}
.nr-blog-hero__cats a.is-active {
    background: #1C3F3A;
    border-color: #1C3F3A;
    color: #FFFFFF !important;
}

/* ── 2) List section + search ── */
html body section.nr-blog-list {
    background: #FFFFFF !important;
}
.nr-blog-list__inner {
    max-width: 1280px;
    padding-top: clamp(36px, 5vw, 56px);
}
.nr-blog-list__inner .nr-kb__search--hero {
    margin: 0 0 36px;
    max-width: 460px;
    border-radius: 999px !important;
    border: 1px solid #E2E3DC !important;
    background: #F1F2EF !important;
    box-shadow: none !important;
    padding: 12px 22px !important;
}
.nr-blog-list__inner .nr-kb__search--hero:focus-within {
    border-color: #1C3F3A !important;
    background: #FFFFFF !important;
}

/* ── 3) Cards ── */
.nr-blog-list__grid {
    gap: 28px 24px;
}
html body .nr-blog-list .nr-press-list__card.nr-blog-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E3DC !important;
    /* !important: nr26.css forces border-radius var(--nr26-r-md) on
     * press-list cards; the Ascone leaf corner needs to win. */
    border-radius: 20px 56px 20px 20px !important;
    overflow: hidden;
    box-shadow: none;
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}
html body .nr-blog-list .nr-press-list__card.nr-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 63, 58, 0.35) !important;
    box-shadow: 0 24px 48px -28px rgba(10, 12, 41, 0.25);
}
.nr-blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #E0EAE8 0%, #EBE8D8 100%);
}
.nr-blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.nr-blog-card:hover .nr-blog-card__media img { transform: scale(1.045); }

/* Placeholder when a post has no featured image: mint/bone wash
   with the serif N mark, so the grid never shows an empty gap. */
.nr-blog-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.65), transparent 50%),
        linear-gradient(135deg, #E0EAE8 0%, #EBE8D8 100%);
}
.nr-blog-card__media--placeholder::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(28, 63, 58, 0.22);
    border-radius: 14px;
    border-top-right-radius: 44px;
}
.nr-blog-card__mark {
    font-family: "NR Serif Accent", Georgia, serif;
    font-style: italic;
    font-size: 64px;
    line-height: 1;
    color: rgba(28, 63, 58, 0.45);
}
.nr-blog-card__pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    color: #1C3F3A !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nr-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
    gap: 10px;
}
html body .nr-blog-list .nr-blog-card__meta {
    margin: 0;
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    color: #6B7470 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
html body .nr-blog-list .nr-blog-card .nr-blog-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #0A0C29 !important;
    transition: color 160ms ease-out;
}
html body .nr-blog-list .nr-blog-card:hover .nr-blog-card__title { color: #1C3F3A !important; }
html body .nr-blog-list .nr-blog-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6B7470 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
}
html body .nr-blog-list .nr-blog-card__cta {
    margin: auto 0 0;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1C3F3A !important;
    font-size: 13.5px;
    font-weight: 600;
}
.nr-blog-card__cta svg {
    transition: transform 200ms ease-out;
}
.nr-blog-card:hover .nr-blog-card__cta svg { transform: translateX(4px); }

/* ── 4) Pagination: light pills ── */
html body .nr-blog-list__pagination { margin-top: clamp(40px, 5vw, 56px); }
html body .nr-blog-list__pagination .nav-links { gap: 8px; }
html body .nr-blog-list__pagination .page-numbers {
    background: #FFFFFF !important;
    border: 1px solid #E2E3DC !important;
    border-radius: 999px !important;
    color: #0A0C29 !important;
    min-width: 42px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1;
}
html body .nr-blog-list__pagination .page-numbers:hover {
    border-color: #1C3F3A !important;
    color: #1C3F3A !important;
    background: #E0EAE8 !important;
}
html body .nr-blog-list__pagination .page-numbers.current {
    background: #1C3F3A !important;
    border-color: #1C3F3A !important;
    color: #FFFFFF !important;
}
html body .nr-blog-list__pagination .page-numbers.dots {
    background: transparent !important;
    border-color: transparent !important;
    color: #6B7470 !important;
}
.nr-kb__empty { padding: 32px 0 8px; }

/* ── 5) Single post: reading column + card ── */
body.single-post .nr-kb-article-page {
    background:
        radial-gradient(ellipse 55% 70% at 88% 0%, rgba(224, 234, 232, 0.85), transparent 60%),
        linear-gradient(180deg, #F1F2EF 0%, #E0EAE8 100%);
}
body.single-post .nr-kb-article-page__card {
    /* 1200px card on the 1280px site container: reads as a full,
     * generous editorial surface instead of a narrow strip. */
    max-width: 1200px;
    border: 1px solid #E2E3DC;
    border-radius: 24px;
    border-top-right-radius: 72px;
    box-shadow: 0 30px 60px -40px rgba(10, 12, 41, 0.30);
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 32px) clamp(8px, 1.5vw, 14px);
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__crumbs {
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: #6B7470;
    margin-bottom: 18px;
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__crumbs a {
    color: #1C3F3A !important;
    font-weight: 600;
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0A0C29;
}
body.single-post .nr-kb-article-page .nr-kb-article-hero__meta {
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #6B7470;
    padding-bottom: 22px;
    border-bottom: 1px solid #E2E3DC;
}

/* Reading column: generous ~980px measure inside the 1200px card,
   18.5px body type keeps the line length comfortable. */
body.single-post .nr-kb-article-page .nr-kb-article__body {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 32px) clamp(36px, 5vw, 60px);
    font-size: 18.5px;
    line-height: 1.75;
    color: #3E4742;
}
body.single-post .nr-kb-article-page .nr-kb-article__body p,
body.single-post .nr-kb-article-page .nr-kb-article__body li {
    font-size: 18.5px;
    line-height: 1.75;
    color: #3E4742;
}
body.single-post .nr-kb-article-page .nr-kb-article__body p { margin: 0 0 20px; }
body.single-post .nr-kb-article-page .nr-kb-article__body h2 {
    margin: 44px 0 14px;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #0A0C29;
}
body.single-post .nr-kb-article-page .nr-kb-article__body h3 {
    margin: 30px 0 10px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    color: #0A0C29;
}
body.single-post .nr-kb-article-page .nr-kb-article__body h4 {
    margin: 24px 0 8px;
    font-size: 18px;
    color: #0A0C29;
}
body.single-post .nr-kb-article-page .nr-kb-article__body a {
    color: #1C3F3A;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(28, 63, 58, 0.30);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}
body.single-post .nr-kb-article-page .nr-kb-article__body a:hover {
    color: #142D29;
    text-decoration-color: currentColor;
}

/* Imagery inside the content */
body.single-post .nr-kb-article-page .nr-kb-article__body img {
    border-radius: 16px;
    border: 1px solid #E2E3DC;
    box-shadow: 0 16px 36px -24px rgba(10, 12, 41, 0.30);
    margin: 8px 0;
}
body.single-post .nr-kb-article-page .nr-kb-article__body figure {
    margin: 28px 0;
}
body.single-post .nr-kb-article-page .nr-kb-article__body figcaption,
body.single-post .nr-kb-article-page .nr-kb-article__body .wp-caption-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #6B7470;
    text-align: center;
}

/* Inline figures from the content pipeline. The lead figure ships
   with an inline float:right + max-width:550px, which crushes the
   text column at our 760px reading width; render it as a full-width
   cover under the byline instead. */
body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-featured-figure {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 28px !important;
    border-radius: 16px !important;
}
/* Mid-article image rows (inline flex, image at 45%): cap the image
   a bit lower so the text half keeps a readable measure. */
body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-inline-row {
    gap: 24px !important;
    align-items: flex-start;
    margin-bottom: 1.4em !important;
}
body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-inline-row .netrouting-inline-figure {
    flex: 0 1 40% !important;
    max-width: 40% !important;
    margin: 4px 0 0 !important;
    border-radius: 14px !important;
}
@media (max-width: 700px) {
    body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-inline-row {
        display: block !important;
    }
    body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-inline-row .netrouting-inline-figure {
        max-width: 100% !important;
        margin: 14px 0 18px !important;
    }
    body.single-post .nr-kb-article-page .nr-kb-article__body .netrouting-inline-figure[style*="float"] {
        float: none !important;
        max-width: 100% !important;
        margin: 14px 0 18px !important;
    }
}

/* Blockquote: mint panel with serif accent */
body.single-post .nr-kb-article-page .nr-kb-article__body blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    background: #E0EAE8;
    border-left: 3px solid #1C3F3A;
    border-radius: 0 16px 16px 0;
    color: #1C3F3A;
}
body.single-post .nr-kb-article-page .nr-kb-article__body blockquote p {
    font-family: "NR Serif Accent", Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #1C3F3A;
    margin: 0 0 8px;
}
body.single-post .nr-kb-article-page .nr-kb-article__body blockquote p:last-child { margin-bottom: 0; }
body.single-post .nr-kb-article-page .nr-kb-article__body blockquote cite {
    font-family: inherit;
    font-style: normal;
    font-size: 13px;
    color: #2E6B5E;
}

/* Tables: clean lines, pine header */
body.single-post .nr-kb-article-page .nr-kb-article__body table {
    width: 100%;
    margin: 28px 0;
    font-size: 14.5px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #E2E3DC;
    border-radius: 14px;
    overflow: hidden;
}
body.single-post .nr-kb-article-page .nr-kb-article__body th,
body.single-post .nr-kb-article-page .nr-kb-article__body td {
    border: 0;
    border-bottom: 1px solid #E2E3DC;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}
body.single-post .nr-kb-article-page .nr-kb-article__body tr:last-child td { border-bottom: 0; }
body.single-post .nr-kb-article-page .nr-kb-article__body th {
    /* !important: a legacy stylesheet forces a light table header;
     * pin it to the mint token so it is deterministic. */
    background: #E0EAE8 !important;
    color: #142D29 !important;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}
body.single-post .nr-kb-article-page .nr-kb-article__body tbody tr:nth-child(even) td {
    background: #F7F8F5;
}

/* Code: dark pine blocks, mint inline tokens */
body.single-post .nr-kb-article-page .nr-kb-article__body pre {
    background: #142D29;
    border: 1px solid rgba(28, 63, 58, 0.5);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
    color: #DCE9E4;
    font-size: 13.5px;
    line-height: 1.6;
}
body.single-post .nr-kb-article-page .nr-kb-article__body :not(pre) > code {
    background: #E0EAE8;
    border: 0;
    border-radius: 6px;
    padding: 2px 7px;
    color: #142D29;
    font-size: 0.9em;
}
body.single-post .nr-kb-article__copy {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #E0EAE8;
    border-radius: 999px;
    padding: 4px 12px;
}
body.single-post .nr-kb-article__copy:hover { background: rgba(255, 255, 255, 0.20); }

/* ── 5b) Inline-styled content blocks (palette normalization) ──
   Some posts (e.g. the npm / LiteLLM security write-ups) carry
   hand-built HTML with inline styles in a foreign palette: pastel
   rainbow callouts, slate terminals, gradient buttons. We cannot
   edit post_content from the theme, but `!important` declarations
   in a stylesheet DO override inline styles, so we repaint them
   into the pine / mint / bone system here. Selectors match on the
   exact inline hex values, scoped to the article body only. */

/* Pastel callout + panel backgrounds → cloud */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #ecfeff"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #eef2ff"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #eef6ff"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #eff6ff"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #f0fdf4"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #f0fdf9"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #f5f3ff"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #fdf2f8"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #fef2f2"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #fefce8"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #fff1f2"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #fff7ed"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #f8fafc"] {
    background: #F7F8F5 !important;
}
/* Slate borders → line token (full shorthand; the border-left
   accent is re-pinned right after, so order matters here) */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="#e2e8f0"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="#e5e7eb"] {
    border-color: #E2E3DC !important;
}
/* Any inline left-accent border → pine (matches our blockquote) */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="border-left"] {
    border-left-color: #1C3F3A !important;
}
/* Rainbow accent text (callout headings, labels) → pine */
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #22c55e"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #a855f7"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #6366f1"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #0ea5e9"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #3b82f6"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #8b5cf6"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #f59e0b"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #ef4444"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #b91c1c"],
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="color: #ff6600"] {
    color: #1C3F3A !important;
}
/* Numbered red bullets (mini circles) → mint chip */
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="#fee2e2"] {
    background: #E0EAE8 !important;
    color: #1C3F3A !important;
}
/* Slate terminal mock-ups → dark pine, like our pre blocks */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #0f172a"] {
    background: #142D29 !important;
    border: 1px solid rgba(28, 63, 58, 0.5) !important;
}
/* Terminal command text needs to stay light on the dark surface
   (extra attribute selector = higher specificity than the pine
   recolor above) */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="background: #0f172a"] [style*="color: #22c55e"] {
    color: #B6F5D3 !important;
}
/* Gradient buttons (fake copy buttons, CTA pills) → pine pill */
body.single-post .nr-kb-article-page .nr-kb-article__body [style*="linear-gradient"] {
    background: #1C3F3A !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
}
/* Cramped fixed-width wrappers → full reading column */
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="max-width: 420px"],
body.single-post .nr-kb-article-page .nr-kb-article__body div[style*="max-width: 700px"] {
    max-width: 100% !important;
}

/* hr inside content */
body.single-post .nr-kb-article-page .nr-kb-article__body hr {
    border: 0;
    border-top: 1px solid #E2E3DC;
    margin: 36px 0;
}

/* Tags: light pills */
body.single-post .nr-kb-article__tags {
    border-top: 1px solid #E2E3DC;
    margin-top: 36px;
    padding-top: 24px;
}
html body.single-post .nr-kb-article-page .nr-kb-article__tag-link {
    background: #F1F2EF;
    border: 1px solid #E2E3DC;
    border-radius: 999px;
    color: #1C3F3A !important;
    font-size: 12.5px;
    padding: 6px 14px;
    text-decoration: none !important;
    transition: background 160ms ease-out, border-color 160ms ease-out;
}
html body.single-post .nr-kb-article-page .nr-kb-article__tag-link:hover {
    background: #E0EAE8;
    border-color: #1C3F3A;
}

/* Author card: soften into the palette */
body.single-post .nr-author-card,
body.single-post .wp-block-post-author {
    background: #F7F8F5;
    border: 1px solid #E2E3DC;
    border-left: 3px solid #1C3F3A;
    border-radius: 18px;
    box-shadow: none;
}

body.single-post .nr-author-card__linkedin {
    background: #FFFFFF !important;
    border: 1px solid #E2E3DC !important;
    border-radius: 999px !important;
    color: #1C3F3A !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 160ms ease-out, border-color 160ms ease-out;
}
body.single-post .nr-author-card__linkedin:hover {
    background: #E0EAE8 !important;
    border-color: #1C3F3A !important;
}

/* Comments area */
body.single-post .nr-kb-article__comments {
    border-top: 1px solid #E2E3DC;
    color: #3E4742;
}

/* ── 6) Related reading ── */
body.single-post .nr-kb-related {
    background: transparent;
    padding-top: clamp(36px, 5vw, 56px);
}
body.single-post .nr-kb-related__inner { max-width: 1200px; }
body.single-post .nr-kb-related__heading {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    letter-spacing: -0.015em;
}
body.single-post .nr-kb-related__heading em {
    font-family: "NR Serif Accent", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: #1C3F3A;
}
body.single-post .nr-kb-related__card {
    border: 1px solid #E2E3DC;
    border-radius: 18px;
    border-top-right-radius: 44px;
}
body.single-post .nr-kb-related__card:hover {
    border-color: rgba(28, 63, 58, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -28px rgba(10, 12, 41, 0.25);
}
body.single-post .nr-kb-related__thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #E0EAE8 0%, #EBE8D8 100%);
}
body.single-post .nr-kb-related__cat {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 11px;
    background: #E0EAE8;
    border-radius: 999px;
    color: #1C3F3A;
    font-size: 11px;
    letter-spacing: 0.05em;
}
body.single-post .nr-kb-related__title { font-weight: 600; }
body.single-post .nr-kb-related__date { color: #6B7470; }
@media (max-width: 880px) {
    body.single-post .nr-kb-related__grid { grid-template-columns: 1fr; }
}

/* Progress bar in palette */
body.single-post .nr-kb-progress { background: rgba(28, 63, 58, 0.08); }
body.single-post .nr-kb-progress__bar {
    background: #1C3F3A;
    box-shadow: none;
}

/* ── 7) Mobile ── */
@media (max-width: 540px) {
    .nr-blog-hero .nr-kb-article-hero__title { font-size: 30px; }
    .nr-blog-list__grid { gap: 20px; }
    html body .nr-blog-list .nr-press-list__card.nr-blog-card { border-radius: 18px 44px 18px 18px !important; }
    .nr-blog-card__body { padding: 18px 18px 20px; }
    body.single-post .nr-kb-article-page { padding-left: 14px; padding-right: 14px; }
    body.single-post .nr-kb-article-page__card {
        border-radius: 18px;
        border-top-right-radius: 48px;
    }
    body.single-post .nr-kb-article-page .nr-kb-article-hero__title { font-size: 27px; }
    body.single-post .nr-kb-article-page .nr-kb-article__body,
    body.single-post .nr-kb-article-page .nr-kb-article__body p,
    body.single-post .nr-kb-article-page .nr-kb-article__body li {
        font-size: 16.5px;
    }
    body.single-post .nr-kb-article-page .nr-kb-article__body table {
        display: block;
        overflow-x: auto;
    }
}
