/**
 * PTST Blog — archive (home.php + archive.php) + single (single.php).
 *
 * Loaded on:
 *   - The page set as `page_for_posts` (WP renders home.php)
 *   - Any category / tag / author / date archive (archive.php)
 *   - Any single post (single.php)
 *
 * The hero scrim + drop-shadow patterns are inherited from
 * ptst-content-pages.css — keep that bundle enqueued first so the
 * base styles apply.
 */

/* ────────────────────────────────────────────────────────────────────── *
 * BLOG ARCHIVE                                                            *
 * ────────────────────────────────────────────────────────────────────── */

.ptst-blog-archive .blog-archive__hero {
    background-color: var(--brand-blue-deep, #08316B);
    color: #fff;
}
.ptst-blog-archive .blog-archive__hero .page-hero__scrim {
    background: linear-gradient(105deg,
        rgba(11,27,51,0.90) 0%, rgba(11,27,51,0.75) 45%, rgba(11,27,51,0.5) 100%);
}
.ptst-blog-archive .blog-archive__hero .container {
    position: relative; z-index: 2;
    padding-top: 70px; padding-bottom: 64px;
}
.ptst-blog-archive .blog-archive__eyebrow {
    display: inline-block;
    color: var(--brand-gold, #F2B500);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}
.ptst-blog-archive .blog-archive__eyebrow--light {
    color: var(--brand-blue-700, #08528F);
    text-shadow: none;
}
.ptst-blog-archive .blog-archive__hero h1 {
    color: #fff;
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
    max-width: 26ch;
    margin: 0 0 14px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.4);
}
.ptst-blog-archive .blog-archive__hero .lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1.55;
    max-width: 62ch;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Breadcrumb */
.ptst-blog-archive .blog-archive__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-3);
    padding: 18px 0 6px;
}
.ptst-blog-archive .blog-archive__crumb a { color: var(--ink-3); text-decoration: none; }
.ptst-blog-archive .blog-archive__crumb a:hover { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.ptst-blog-archive .blog-archive__crumb-sep { color: var(--ink-4, #889AB7); }
.ptst-blog-archive .blog-archive__crumb-current { color: var(--ink); }

/* Filter bar — search + category buttons */
.ptst-blog-archive .blog-archive__filters-section { padding: 32px 0 8px; }
.ptst-blog-archive .blog-archive__filter-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.ptst-blog-archive .blog-archive__searchbar {
    position: relative;
    flex: 1 1 320px;
    max-width: 520px;
}
.ptst-blog-archive .blog-archive__search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--ink-3);
    pointer-events: none;
    stroke: currentColor;
    fill: none;
}
.ptst-blog-archive .blog-archive__search {
    width: 100%;
    font: inherit;
    font-size: 15px;
    padding: 13px 16px 13px 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    outline: none;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.ptst-blog-archive .blog-archive__search::placeholder { color: var(--ink-3); }
.ptst-blog-archive .blog-archive__search:focus {
    border-color: var(--brand-blue-500, #2E8FD0);
    box-shadow: 0 0 0 4px rgba(46, 143, 208, 0.25);
}

/* Category buttons — pill row, right-aligned on wider viewports */
.ptst-blog-archive .blog-archive__cat-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}
.ptst-blog-archive .blog-archive__cat-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.ptst-blog-archive .blog-archive__cat-btn:hover {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
    border-color: var(--brand-blue-100, #D6E7F4);
}
.ptst-blog-archive .blog-archive__cat-btn.is-active {
    background: var(--brand-blue, #0E4A9C);
    color: #fff;
    border-color: var(--brand-blue, #0E4A9C);
}
.ptst-blog-archive .blog-archive__cat-count {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}
.ptst-blog-archive .blog-archive__cat-btn.is-active .blog-archive__cat-count { opacity: 0.9; }

/* Topic chips — gold accent for the active chip */
.ptst-blog-archive .blog-archive__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}
.ptst-blog-archive .blog-archive__topics-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 4px;
}
.ptst-blog-archive .blog-archive__topic-chip {
    appearance: none;
    padding: 5px 12px;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.ptst-blog-archive .blog-archive__topic-chip:hover {
    background: var(--bg-soft, #F4F6FB);
    color: var(--ink-2);
    border-color: var(--line-strong, #D8DEEA);
}
.ptst-blog-archive .blog-archive__topic-chip.is-active {
    background: var(--brand-gold, #F5A823);
    color: var(--ink, #0B1B33);
    border-color: var(--brand-gold, #F5A823);
}

/* Featured card */
.ptst-blog-archive .blog-archive__featured-section { padding: 24px 0 0; }
.ptst-blog-archive .post-featured {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.ptst-blog-archive .post-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ptst-blog-archive .post-featured__cover {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}
.ptst-blog-archive .post-featured__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 6px 14px;
    background: var(--brand-gold, #F5A823);
    color: var(--ink, #0B1B33);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ptst-blog-archive .post-featured__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}
.ptst-blog-archive .post-featured__eyebrow {
    color: var(--brand-blue-700, #08528F);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.ptst-blog-archive .post-featured__title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.016em;
    color: var(--ink, #0B1B33);
}
.ptst-blog-archive .post-featured__title a {
    color: inherit;
    text-decoration: none;
}
.ptst-blog-archive .post-featured__title a:hover { color: var(--brand-blue, #0E4A9C); }
.ptst-blog-archive .post-featured__excerpt {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2, #2A3D5C);
    margin: 0;
}
.ptst-blog-archive .post-featured__cta {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 800px) {
    .ptst-blog-archive .post-featured {
        grid-template-columns: 1fr;
    }
    .ptst-blog-archive .post-featured__cover {
        min-height: 220px;
    }
    .ptst-blog-archive .post-featured__body {
        padding: 28px;
    }
}

/* Grid head */
.ptst-blog-archive .blog-archive__grid-section { padding: 32px 0 80px; }
.ptst-blog-archive .blog-archive__grid-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.ptst-blog-archive .blog-archive__grid-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    margin: 0;
    letter-spacing: -0.012em;
}
.ptst-blog-archive .blog-archive__meta {
    font-size: 13px;
    color: var(--ink-3);
}

/* Grid */
.ptst-blog-archive .blog-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) {
    .ptst-blog-archive .blog-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ptst-blog-archive .blog-archive__grid { grid-template-columns: 1fr; }
}

/* Post card */
.ptst-blog-archive .post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ptst-blog-archive .post-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--brand-blue-100, #D6E7F4);
}
.ptst-blog-archive .post-card__cover {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    position: relative;
}
.ptst-blog-archive .post-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ptst-blog-archive .post-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.ptst-blog-archive .post-card__cat {
    color: var(--brand-blue-700, #08528F);
}
.ptst-blog-archive .post-card__sep { color: var(--brand-gold, #F5A823); }
.ptst-blog-archive .post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink, #0B1B33);
    margin: 2px 0 0;
    letter-spacing: -0.008em;
}
.ptst-blog-archive .post-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3, #5A6B86);
    margin: 0;
    /* Two-line clamp keeps cards a consistent height. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ptst-blog-archive .post-card__tags {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ptst-blog-archive .post-card__tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
}

/* Empty state */
.ptst-blog-archive .blog-archive__empty {
    padding: 60px 40px;
    text-align: center;
    color: var(--ink-3);
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: var(--bg-soft, #F4F6FB);
}
.ptst-blog-archive .blog-archive__empty p {
    margin: 0 0 16px;
    font-size: 15px;
}

/* Pagination — shares the same shell as the course archive */
.ptst-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 36px 0 8px;
    flex-wrap: wrap;
}
.ptst-blog-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-2, #2A3D5C);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.ptst-blog-pagination__item:hover:not(.is-current):not(.is-disabled) {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
}
.ptst-blog-pagination__item.is-current {
    background: var(--brand-blue, #0E4A9C);
    color: #fff;
    cursor: default;
}
.ptst-blog-pagination__item.is-disabled {
    color: var(--ink-4, #889AB7);
    cursor: not-allowed;
    opacity: 0.55;
}
.ptst-blog-pagination__item--ellipsis { cursor: default; }
.ptst-blog-pagination__item svg { stroke: currentColor; fill: none; }

/* Loading state — fade list + meta while the AJAX fetch runs */
.ptst-blog-archive.is-loading .blog-archive__grid,
.ptst-blog-archive.is-loading .blog-archive__meta,
.ptst-blog-archive.is-loading .ptst-blog-pagination {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity .15s;
}

/* Post-meta block (avatar + name + date · read time) */
.ptst-blog-archive .post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}
.ptst-blog-archive .post-meta__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    display: flex;
    align-items: center;
    justify-content: center;
}
.ptst-blog-archive .post-meta__avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ptst-blog-archive .post-meta__initials {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
}
.ptst-blog-archive .post-meta__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #0B1B33);
}
.ptst-blog-archive .post-meta__sub {
    font-size: 13px;
    color: var(--ink-3, #5A6B86);
    margin-top: 1px;
}
.ptst-blog-archive .post-meta__dot { color: var(--brand-gold, #F5A823); margin: 0 4px; }


/* ────────────────────────────────────────────────────────────────────── *
 * SINGLE POST                                                             *
 * ────────────────────────────────────────────────────────────────────── */

.ptst-blog-single .blog-single__hero {
    background-color: var(--brand-blue-deep, #08316B);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.ptst-blog-single .blog-single__hero .page-hero__scrim {
    background: linear-gradient(105deg,
        rgba(11,27,51,0.90) 0%, rgba(11,27,51,0.75) 50%, rgba(11,27,51,0.5) 100%);
}
.ptst-blog-single .blog-single__hero-bg {
    background-size: cover;
    background-position: center;
}
.ptst-blog-single .blog-single__hero .container {
    position: relative; z-index: 2;
    padding-top: 56px; padding-bottom: 80px;
}

.ptst-blog-single .blog-single__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 22px;
}
.ptst-blog-single .blog-single__crumb a { color: inherit; text-decoration: none; }
.ptst-blog-single .blog-single__crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ptst-blog-single .blog-single__crumb-sep { color: rgba(255,255,255,0.4); }
.ptst-blog-single .blog-single__crumb-cat { color: #fff; font-weight: 600; }

.ptst-blog-single .blog-single__eyebrow {
    display: inline-block;
    color: var(--brand-gold, #F2B500);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}
.ptst-blog-single .blog-single__title {
    color: #fff;
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
    max-width: 24ch;
    margin: 0 0 14px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.4);
}
.ptst-blog-single .blog-single__lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.55;
    max-width: 62ch;
    margin: 0 0 22px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Hero-context post meta — light text on dark bg. */
.ptst-blog-single .post-meta--dark .post-meta__name { color: #fff; }
.ptst-blog-single .post-meta--dark .post-meta__sub  { color: rgba(255,255,255,0.75); }
.ptst-blog-single .post-meta--dark .post-meta__dot  { color: var(--brand-gold, #F5A823); }
.ptst-blog-single .post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.ptst-blog-single .post-meta__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    display: flex; align-items: center; justify-content: center;
}
.ptst-blog-single .post-meta__avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ptst-blog-single .post-meta__initials {
    color: #fff; font-weight: 800; font-size: 15px;
}

/* Body layout */
.ptst-blog-single .blog-single__body-section { padding: 56px 0 64px; }
.ptst-blog-single .blog-single__layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 64px;
    align-items: start;
}
@media (max-width: 1000px) {
    .ptst-blog-single .blog-single__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Prose — article column. Inherits the page typography and adds the
   editorial niceties (lead, pullquote, numbered lists). */
.ptst-blog-single .ptst-prose {
    max-width: 72ch;
}
.ptst-blog-single .ptst-prose p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2, #2A3D5C);
    margin: 0 0 1.1em;
}
.ptst-blog-single .ptst-prose h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink, #0B1B33);
    margin: 40px 0 12px;
    letter-spacing: -0.014em;
    line-height: 1.2;
    scroll-margin-top: 120px;   /* TOC anchor lands clear of the sticky header */
}
.ptst-blog-single .ptst-prose h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    margin: 28px 0 10px;
    line-height: 1.25;
}
.ptst-blog-single .ptst-prose blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    border-left: 4px solid var(--brand-gold, #F5A823);
    background: var(--warning-50, #FEF4DF);
    border-radius: 0 12px 12px 0;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ink, #0B1B33);
    font-style: italic;
    text-wrap: balance;
}
.ptst-blog-single .ptst-prose ul,
.ptst-blog-single .ptst-prose ol {
    margin: 0 0 18px;
    padding-left: 26px;
}
.ptst-blog-single .ptst-prose li {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2, #2A3D5C);
}
.ptst-blog-single .ptst-prose a {
    color: var(--brand-blue, #0E4A9C);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ptst-blog-single .ptst-prose img,
.ptst-blog-single .ptst-prose figure {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}
.ptst-blog-single .ptst-prose figure img { margin: 0; }   /* avoid double margin when wrapped */

/* WP editor's Align toolbar emits these standard classes (alignleft /
   alignright / aligncenter / alignnone) on either an <img> or a wrapping
   <figure>. Give them real horizontal breathing room so text doesn't
   crash into the image edge. */
.ptst-blog-single .ptst-prose img.alignleft,
.ptst-blog-single .ptst-prose figure.alignleft {
    float: left;
    margin: 6px 28px 16px 0;
    max-width: 50%;
}
.ptst-blog-single .ptst-prose img.alignright,
.ptst-blog-single .ptst-prose figure.alignright {
    float: right;
    margin: 6px 0 16px 28px;
    max-width: 50%;
}
.ptst-blog-single .ptst-prose img.aligncenter,
.ptst-blog-single .ptst-prose figure.aligncenter {
    display: block;
    clear: both;
    margin: 24px auto;
}
.ptst-blog-single .ptst-prose img.alignnone,
.ptst-blog-single .ptst-prose figure.alignnone {
    display: block;
    margin: 24px 0;
}
/* New sections start clean below any floated image */
.ptst-blog-single .ptst-prose h2,
.ptst-blog-single .ptst-prose h3 { clear: both; }

/* Mobile — drop the floats so images don't squeeze text into a thin column */
@media (max-width: 640px) {
    .ptst-blog-single .ptst-prose img.alignleft,
    .ptst-blog-single .ptst-prose img.alignright,
    .ptst-blog-single .ptst-prose figure.alignleft,
    .ptst-blog-single .ptst-prose figure.alignright {
        float: none;
        display: block;
        max-width: 100%;
        margin: 24px auto;
    }
}

.ptst-blog-single .ptst-prose figcaption {
    font-size: 13px;
    color: var(--ink-3, #5A6B86);
    margin-top: 8px;
    text-align: center;
}

/* ── About / contact closing band (rendered from Site Settings) ── */
.ptst-blog-single .blog-single__closing-section { padding: 0 0 56px; }
.ptst-blog-single .blog-closing {
    background: var(--bg-soft, #F4F7FB);
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 16px;
    padding: 40px;
    max-width: 72ch;   /* match the article column so it flows on from the prose */
    margin: 0;          /* left-aligned, not centered */
}
.ptst-blog-single .blog-closing__heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink, #0B1B33);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.ptst-blog-single .blog-closing p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2, #2A3D5C);
    margin: 0 0 14px;
}
.ptst-blog-single .blog-closing__contact {
    margin: 22px 0 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line, #E2E8F2);
    border-radius: 12px;
}
.ptst-blog-single .blog-closing__company { margin: 0 0 6px; font-size: 16px; }
.ptst-blog-single .blog-closing__address { margin: 0 0 12px; font-size: 14px; color: var(--ink-2, #2A3D5C); }
.ptst-blog-single .blog-closing__lines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    font-size: 14px;
    color: var(--ink-2, #2A3D5C);
}
.ptst-blog-single .blog-closing__lines span { white-space: nowrap; }
.ptst-blog-single .blog-closing__lines a { color: var(--brand-blue, #0E4A9C); text-decoration: none; }
.ptst-blog-single .blog-closing__lines a:hover { text-decoration: underline; }
.ptst-blog-single .blog-closing__accreds {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #E2E8F2);
}
.ptst-blog-single .blog-closing__accreds p {
    font-size: 12.5px;
    font-style: italic;
    color: var(--ink-3, #5A6B86);
    margin: 0 0 6px;
}
.ptst-blog-single .blog-closing__accreds p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
    .ptst-blog-single .blog-closing { padding: 28px 22px; }
}

/* Tags row at the end of the article */
.ptst-blog-single .blog-single__tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.ptst-blog-single .blog-single__tags-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 4px;
}
.ptst-blog-single .blog-single__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.ptst-blog-single .blog-single__tag:hover {
    background: var(--brand-blue, #0E4A9C);
    color: #fff;
}

/* Author card */
.ptst-blog-single .blog-single__author-card {
    margin-top: 40px;
    background: var(--bg-soft, #F4F6FB);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.ptst-blog-single .blog-single__author-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    display: flex; align-items: center; justify-content: center;
}
.ptst-blog-single .blog-single__author-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ptst-blog-single .blog-single__author-initials {
    color: #fff;
    font-weight: 800;
    font-size: 22px;
}
.ptst-blog-single .blog-single__author-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-blue, #0E4A9C);
}
.ptst-blog-single .blog-single__author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink, #0B1B33);
    margin-top: 2px;
}
.ptst-blog-single .blog-single__author-role {
    font-size: 13px;
    color: var(--ink-3, #5A6B86);
    margin-top: 4px;
    line-height: 1.45;
}

/* Share row */
.ptst-blog-single .blog-single__share {
    margin-top: 28px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.ptst-blog-single .blog-single__share-label {
    font-size: 13px;
    color: var(--ink-3, #5A6B86);
    font-weight: 600;
    margin-right: 6px;
}
.ptst-blog-single .blog-single__share-btn {
    appearance: none;
    font: inherit;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
}
.ptst-blog-single .blog-single__share-btn:hover {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue);
    border-color: var(--brand-blue-100, #D6E7F4);
}
.ptst-blog-single .blog-single__share-btn.is-copied {
    background: var(--success-50, #E6F4EC);
    color: var(--success, #1F8A5B);
    border-color: var(--success, #1F8A5B);
}

/* Sticky sidebar — TOC + CTA */
.ptst-blog-single .blog-single__side {
    position: sticky;
    top: 110px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 1000px) {
    .ptst-blog-single .blog-single__side { position: static; }
}

.ptst-blog-single .blog-single__toc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}
.ptst-blog-single .blog-single__toc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
}
.ptst-blog-single .blog-single__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ptst-blog-single .blog-single__toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2, #2A3D5C);
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background .12s, color .12s, border-color .12s, font-weight .12s;
}
.ptst-blog-single .blog-single__toc-link:hover {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
}
.ptst-blog-single .blog-single__toc-link.is-active {
    background: var(--brand-blue-50, #EEF4FB);
    color: var(--brand-blue, #0E4A9C);
    font-weight: 700;
    border-left-color: var(--brand-gold, #F5A823);
}
.ptst-blog-single .blog-single__toc-num {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: var(--ink-3, #5A6B86);
    flex-shrink: 0;
}
.ptst-blog-single .blog-single__toc-link.is-active .blog-single__toc-num { color: var(--brand-blue, #0E4A9C); }

/* CTA card — sticky-sidebar dark callout */
.ptst-blog-single .blog-single__cta {
    background: var(--brand-blue-deep, #08316B);
    color: #fff;
    border-radius: 14px;
    padding: 22px;
}
.ptst-blog-single .blog-single__cta-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-gold, #F5A823);
}
.ptst-blog-single .blog-single__cta-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
}
.ptst-blog-single .blog-single__cta-body {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 10px 0 14px;
}

/* Related posts */
.ptst-blog-single .blog-single__related-section {
    background: var(--bg-soft, #F4F6FB);
    padding: 64px 0;
}
.ptst-blog-single .blog-single__related-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.ptst-blog-single .blog-single__related-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink, #0B1B33);
    margin: 8px 0 0;
    letter-spacing: -0.014em;
}
.ptst-blog-single .blog-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) {
    .ptst-blog-single .blog-single__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ptst-blog-single .blog-single__related-grid { grid-template-columns: 1fr; }
}

/* Hover transition on related cards — inherit the post-card styles
   from .ptst-blog-archive scope so we don't have to duplicate them. */
.ptst-blog-single .blog-single__related-grid .post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ptst-blog-single .blog-single__related-grid .post-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--brand-blue-100, #D6E7F4);
}
.ptst-blog-single .blog-single__related-grid .post-card__cover {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
}
.ptst-blog-single .blog-single__related-grid .post-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ptst-blog-single .blog-single__related-grid .post-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.ptst-blog-single .blog-single__related-grid .post-card__cat {
    color: var(--brand-blue-700, #08528F);
}
.ptst-blog-single .blog-single__related-grid .post-card__sep {
    color: var(--brand-gold, #F5A823);
}
.ptst-blog-single .blog-single__related-grid .post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink, #0B1B33);
    margin: 2px 0 0;
}
.ptst-blog-single .blog-single__related-grid .post-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3, #5A6B86);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
