/* ============================================
   BLOG.CSS — Field Notes styles
   ============================================ */

/* ── BLOG NAV ────────────────────────────── */
.blog-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 72px;
    background: rgba(10,10,10,0.85); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border); z-index: 1000;
}
.blog-nav .nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 40px; }
.blog-nav .nav-left { display: flex; align-items: center; gap: 20px; }
.blog-nav .nav-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); transition: opacity 0.2s; }
.blog-nav .nav-name:hover { opacity: 0.7; }
.blog-nav-tag { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); }

/* ── BLOG HERO ───────────────────────────── */
.blog-hero {
    min-height: 40vh; display: flex; align-items: center; justify-content: center;
    padding: 140px 40px 60px; text-align: center; position: relative; overflow: hidden;
}
.blog-hero-content { max-width: 600px; position: relative; z-index: 2; }
.blog-tag {
    font-size: 13px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; display: block;
}
.blog-title {
    font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 16px;
}
.blog-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.blog-hero-glow {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%);
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--element-rgb, 228,255,26),0.03) 0%, transparent 70%);
    pointer-events: none; z-index: 1;
}

/* ── BLOG CONTENT ────────────────────────── */
.blog-content { max-width: 900px; margin: 0 auto; padding: 0 40px 80px; }

/* ── BLOG FILTERS ────────────────────────── */
.blog-filters {
    display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.blog-filter {
    padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.blog-filter:hover { border-color: rgba(var(--element-rgb, 228,255,26),0.15); }
.blog-filter.active { background: rgba(var(--element-rgb, 228,255,26),0.08); border-color: rgba(var(--element-rgb, 228,255,26),0.25); color: var(--accent); }

/* ── BLOG CARD GRID ──────────────────────── */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.blog-card {
    padding: 28px; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    transition: all 0.3s; text-decoration: none; display: block;
}
.blog-card:hover {
    border-color: rgba(var(--element-rgb, 228,255,26),0.15); background: rgba(255,255,255,0.04);
    transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.blog-card-cover { margin: -28px -28px 16px; border-radius: 14px 14px 0 0; overflow: hidden; height: 180px; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card.featured { border-color: rgba(var(--element-rgb, 228,255,26),0.12); }
.blog-card-emoji { font-size: 32px; margin-bottom: 16px; }
.blog-card-cat {
    font-size: 11px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.blog-card-source {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    vertical-align: middle;
}
.blog-card.is-external:hover .blog-card-source {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
}
/* "Originally published on Substack" notice on syndicated post pages */
.post-attribution {
    margin: 0 0 32px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: rgba(167, 139, 250, 0.07);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}
.post-attribution a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.post-attribution a:hover { text-decoration: underline; }
/* Substack-authored HTML embedded in the post body. Make images responsive
   and align Substack's typography with the rest of the blog. */
#post-body img,
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}
#post-body iframe,
.post-body iframe {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    margin: 24px 0;
    border: 0;
}
#post-body figure,
.post-body figure { margin: 24px 0; }
#post-body figcaption,
.post-body figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}
#post-body blockquote,
.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 18px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}
#post-body hr,
.post-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 36px 0;
}

/* ── INLINE SUBSCRIBE CTA AT END OF EACH POST ── */
.post-substack-cta {
    margin: 56px 0 8px;
    padding: 36px 32px 28px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 16px;
    background:
        radial-gradient(80% 50% at 0% 0%, rgba(167, 139, 250, 0.10) 0%, transparent 60%),
        rgba(167, 139, 250, 0.04);
    text-align: center;
}
.psc-h {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.psc-p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 22px;
    line-height: 1.65;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.psc-form {
    max-width: 480px;
    margin: 0 auto 16px;
}
.psc-secondary {
    margin: 12px 0 0;
    font-size: 13px;
}
.psc-secondary-link {
    color: var(--text-muted) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.psc-secondary-link:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
    text-decoration: none;
}

/* ── ARCHIVE PAGE ─────────────────────────── */
.archive-hero { padding-bottom: 24px; }
.archive-counts {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.85;
}
.archive-content { max-width: 760px; padding-top: 8px; }
.archive-list { display: flex; flex-direction: column; gap: 32px; }
.archive-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

/* Subscribe banner at top of archive */
.archive-subscribe {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 360px);
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 14px;
    background: rgba(167, 139, 250, 0.06);
    margin-bottom: 12px;
}
@media (max-width: 700px) { .archive-subscribe { grid-template-columns: 1fr; gap: 14px; } }
.as-h {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.as-p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Year groups */
.archive-year {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.archive-year-h {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.archive-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Each archive row */
.archive-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    padding: 16px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, transform 0.15s;
    align-items: baseline;
}
.archive-item:hover {
    background: rgba(167, 139, 250, 0.06);
    text-decoration: none;
    transform: translateX(2px);
}
@media (max-width: 600px) {
    .archive-item { grid-template-columns: 1fr; gap: 4px; padding: 12px 10px; }
}
.ai-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding-top: 2px;
}
.ai-body { display: flex; flex-direction: column; gap: 6px; }
.ai-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.005em;
}
.archive-item:hover .ai-title { color: var(--accent); }
.ai-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ai-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}
.ai-source { color: rgba(167, 139, 250, 0.7); }

/* Subtle "view archive / view as cards" toggle in nav */
.blog-nav .nav-right { margin-left: auto; }
.blog-nav-back {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: color 0.15s, border-color 0.15s;
}
.blog-nav-back:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ── BLOG HERO ACTIONS (subscribe form + archive link) ── */
.blog-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    max-width: 640px;
}
.blog-hero-form { flex: 1 1 360px; min-width: 280px; }
.blog-hero-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    /* Match the visual height of the sibling .sub-row so subscribe input
       and archive button center on the same line. .sub-row is 4px+12px
       padding + ~25px line-height = ~57px tall; matching here with
       16px+1px-border vertical padding around 14px text. */
    padding: 16px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
    box-sizing: border-box;
}
.blog-hero-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.blog-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    text-decoration: none;
}
@media (max-width: 600px) {
    .blog-hero-actions { flex-direction: column; align-items: stretch; }
    .blog-hero-form { width: 100%; }
    .blog-hero-btn { justify-content: center; }
}
.blog-card-title {
    font-size: 20px; font-weight: 700; color: var(--text);
    letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px;
}
.blog-card-excerpt {
    font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
    display: flex; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 500;
}

/* ── POST PAGE ───────────────────────────── */
.post-hero {
    min-height: 35vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 140px 40px 60px; text-align: center; position: relative;
}
.post-hero-content { max-width: 700px; }

/* Hero cover image — sits above the post title. */
.post-hero-cover {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.post-hero-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

/* Inline figure inside post body — full-width image with optional caption. */
.post-body .post-figure {
    margin: 36px 0;
    text-align: center;
}
.post-body .post-figure img {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.post-body .post-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.post-body img.post-inline-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

/* Tables in post body — render the markdown pipe-table cleanly. */
.post-body .post-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.post-body .post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.post-body .post-table th,
.post-body .post-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.post-body .post-table thead th {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.post-body .post-table tbody tr:last-child td {
    border-bottom: 0;
}
.post-body .post-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.015);
}

/* Block-quote inside post body. */
.post-body blockquote {
    margin: 24px 0;
    padding: 12px 20px;
    border-left: 3px solid rgba(var(--element-rgb, 228,255,26), 0.45);
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255,255,255,0.015);
    border-radius: 0 8px 8px 0;
}
.post-category {
    font-size: 13px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; display: block;
}
.post-title {
    font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.15; color: var(--text); margin-bottom: 16px;
}
.post-meta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; color: var(--text-muted); margin-bottom: 16px;
}
.post-dot { opacity: 0.3; }
.post-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.post-tag {
    padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.04); color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ── POST BODY (READING-OPTIMIZED TYPOGRAPHY) ── */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 60px;
    /* 18px body w/ 1.85 line-height is the sweet-spot for long-form reading
       on desktop. Slight off-white (#E8E8EA) reduces glare vs full-white. */
    font-size: 18px;
    color: #E8E8EA;
    line-height: 1.85;
    font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
    text-rendering: optimizeLegibility;
}
.post-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 56px 0 18px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}
.post-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 14px;
    letter-spacing: -0.005em;
    line-height: 1.3;
}
.post-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--accent);
}
.post-body p { margin-bottom: 22px; }
.post-body p:has(+ p) + p { /* tighter spacing between consecutive paragraphs */ }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin-bottom: 10px; line-height: 1.7; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body em { color: rgba(255, 255, 255, 0.95); }
.post-body code {
    font-size: 0.88em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(167, 139, 250, 0.12);
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
    border: 1px solid rgba(167, 139, 250, 0.2);
}
.post-body pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 28px 0;
    font-size: 14px;
    line-height: 1.6;
}
.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.post-body a:hover { color: #C4B5FD; text-decoration-color: #C4B5FD; opacity: 1; }

/* Drop cap: oversized first letter on the first paragraph after the
   attribution. Magazine-feel reading entry point. Skips short paragraphs
   (single-line first paragraphs look weird with a drop cap). */
.post-body .post-attribution + p:first-letter,
.post-body > p:first-of-type:first-letter {
    font-size: 4.2em;
    font-weight: 800;
    float: left;
    line-height: 0.9;
    margin: 8px 12px 0 0;
    color: var(--accent);
    font-feature-settings: "kern" 1;
}

/* Substack-emitted body images get a subtle hover lift. */
#post-body img { transition: transform 0.4s, box-shadow 0.4s; }
#post-body img:hover { transform: scale(1.01); box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15); }

/* ── INLINE SHARE ROW (TOP OF EACH POST) ──── */
.post-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.psr-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 6px;
}
.psr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}
.psr-btn:hover {
    transform: translateY(-1px);
    background: rgba(167, 139, 250, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}
.psr-btn.is-copied {
    background: rgba(74, 222, 128, 0.12);
    border-color: #4ADE80;
    color: #4ADE80;
}
.psr-status {
    font-size: 12px;
    color: var(--accent);
    margin-left: 8px;
    font-weight: 600;
}

/* ── POST FOOTER NAVIGATION ──────────────── */
/* Container holds three blocks (in order):
     .post-related  – three thematically related posts
     .post-prevnext – chronological prev/next
     .post-back-row – links back to listing/archive */
.post-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Related posts block */
.post-related {
    border-top: 1px solid var(--border);
    padding-top: 36px;
}
.post-related-header {
    text-align: center;
    margin-bottom: 24px;
}
.post-related-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.post-related-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}
.post-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.rp-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.rp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--element-rgb, 228, 255, 26), 0.35);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.rp-cover {
    aspect-ratio: 16 / 9;
    background: rgba(167, 139, 250, 0.06);
    overflow: hidden;
    position: relative;
}
.rp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.rp-card:hover .rp-cover img { transform: scale(1.04); }
.rp-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    opacity: 0.4;
}
.rp-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.rp-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
}
.rp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
}
.rp-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.rp-card-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Chronological prev/next strip */
.post-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.post-prevnext-spacer { display: block; }
.post-prevnext-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.post-prevnext-btn:hover {
    border-color: rgba(var(--element-rgb, 228, 255, 26), 0.25);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transform: translateY(-2px);
}
.post-prevnext-btn.next {
    justify-content: flex-end;
    text-align: right;
}
.ppn-arrow {
    font-size: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.post-prevnext-btn:hover .ppn-arrow { color: var(--accent); }
.ppn-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ppn-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ppn-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Back-to-listing row */
.post-back-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}
.post-back-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.post-back-link:hover { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .blog-hero { padding: 120px 20px 40px; min-height: 30vh; }
    .blog-content { padding: 0 20px 60px; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-hero { padding: 120px 20px 40px; }
    .post-body { padding: 0 20px 40px; }
    .post-nav { padding: 24px 20px 60px; gap: 28px; }
    .post-related-grid { grid-template-columns: 1fr; }
    .post-prevnext { grid-template-columns: 1fr; }
    .post-prevnext-btn.next { justify-content: flex-start; text-align: left; }
}
