/* Blog: index and article pages. Loaded after style.css. */

.post-hero { padding-bottom: clamp(3rem, 8vh, 5rem); }
.post-hero .ind-crumbs { margin-bottom: 1.4rem; }
.post-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.post-hero .hero-sub { margin-top: 1.3rem; }
.post-meta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.post-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-light); margin-right: 0.55rem; vertical-align: middle; }

/* At-a-glance strip */
.post-glance { margin-top: clamp(2.4rem, 6vh, 3.6rem); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.post-glance div { padding: 1.3rem 1.4rem; }
.post-glance div + div { border-left: 1px solid var(--hairline); }
.post-glance dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.post-glance dd { margin-top: 0.45rem; font-size: 1.02rem; line-height: 1.4; color: var(--text); }
.post-glance dd b { display: block; font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; color: var(--blue-light); }

/* Article body */
.post-body { max-width: 68ch; margin-inline: auto; color: var(--light-text); }
.post-body h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; margin: 2.8rem 0 0.9rem; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
.post-body p, .post-body li { line-height: 1.7; color: #2A3247; }
.post-body p + p { margin-top: 1rem; }
.post-body a { color: var(--blue); text-underline-offset: 3px; }
.post-body ul.post-list { margin-top: 1rem; display: grid; gap: 0.6rem; }
.post-body ul.post-list li { position: relative; padding-left: 1.4rem; }
.post-body ul.post-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.post-body code { font-family: var(--font-mono); font-size: 0.88em; background: #EEF1F7; border-radius: 5px; padding: 0.1em 0.35em; }

.post-timeline { margin: 1.4rem 0 0.4rem; border-left: 2px solid var(--light-hairline); }
.post-timeline li { position: relative; padding: 0 0 1.15rem 1.4rem; }
.post-timeline li::before { content: ""; position: absolute; left: -6px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--light-bg); border: 2px solid var(--blue); }
.post-timeline li.is-hot::before { background: var(--blue); }
.post-timeline time { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--light-muted); }

.post-callout { margin: 1.8rem 0; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: #EEF4FD; border: 1px solid #D3E3F8; }
.post-callout p { color: var(--light-text); }

.post-checks { margin-top: 1rem; counter-reset: chk; display: grid; gap: 0.75rem; }
.post-checks li { counter-increment: chk; display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.2rem 0.6rem; }
.post-checks li::before { content: counter(chk, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); padding-top: 0.25rem; }

.post-sources { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--light-hairline); font-size: 0.9rem; }
.post-sources h2 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-muted); margin: 0 0 0.7rem; }
.post-sources li { line-height: 1.55; color: var(--light-muted); }
.post-sources li + li { margin-top: 0.35rem; }

/* PVT commitment band */
.post-promise-grid { margin-top: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.post-promise { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); }
.post-promise-tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); }
.post-promise h3 { margin-top: 0.7rem; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; letter-spacing: -0.015em; }
.post-promise p { margin-top: 0.8rem; color: var(--text-muted); line-height: 1.65; }
.post-promise ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.post-promise li { position: relative; padding-left: 1.3rem; color: var(--text); line-height: 1.55; }
.post-promise li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 4px; border-left: 2px solid var(--blue-light); border-bottom: 2px solid var(--blue-light); transform: rotate(-45deg); }
.post-promise-hot { background: linear-gradient(160deg, #13306A 0%, var(--surface) 70%); border-color: rgba(95, 178, 255, 0.35); }
.post-promise-note { margin-top: 1.6rem; color: var(--text-muted); font-size: 0.95rem; max-width: 70ch; }

/* Blog index */
.blog-list { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
.blog-card a { display: block; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius-lg); border: 1px solid var(--light-hairline); background: #fff; color: var(--light-text); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.blog-card a:hover { border-color: var(--blue); transform: translateY(-2px); }
.blog-card a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.blog-card-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--light-muted); }
.blog-card h2 { margin-top: 0.6rem; font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.22; letter-spacing: -0.015em; }
.blog-card p { margin-top: 0.7rem; color: var(--light-muted); line-height: 1.6; max-width: 70ch; }
.blog-card-more { display: inline-block; margin-top: 1rem; color: var(--blue); font-weight: 500; }

@media (max-width: 860px) {
  .post-glance { grid-template-columns: 1fr 1fr; }
  .post-glance div:nth-child(3) { border-left: 0; }
  .post-glance div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .post-promise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .post-glance { grid-template-columns: 1fr; }
  .post-glance div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card a { transition: none; }
  .blog-card a:hover { transform: none; }
}

.post-body ul + p, .post-body ol + p { margin-top: 1.2rem; }
