/* Single post, related posts, tags, share, comments. */

.section--post-header { padding: calc(var(--section-y) * 0.6) 0 48px; background: linear-gradient(170deg, #F7F8FA 0%, #EEF2F7 100%); }
.post-single__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.post-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.post-single__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.08; color: var(--navy-deep); }
.post-single__standfirst { margin-top: 20px; font-size: 1.2rem; line-height: 1.6; color: var(--muted); }
.post-single__byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.post-single__avatar { width: 40px; height: 40px; border-radius: 50%; }

.post-single__hero { position: relative; margin: 0 auto; max-width: var(--container-wide); }
/* Hero straddles the header band rather than butting against its edge. */
.section--post-header:has(+ .container .post-single__hero) { padding-bottom: 168px; }
.section--post-header + .container .post-single__hero { margin-top: -120px; }
.post-single__hero img { display: block; margin-inline: auto; width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.post-single__hero--framed .post-single__hero-media { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: clamp(260px, 36vw, 460px); padding: clamp(20px, 3vw, 40px); border-radius: var(--radius-xl); background: #EEF2F7; box-shadow: var(--shadow-card); }
.post-single__hero--framed .post-single__hero-media::before { content: ""; position: absolute; inset: -60px; background: var(--hero-bg) center / cover; filter: blur(40px) saturate(1.2); opacity: 0.7; }
.post-single__hero--framed img { position: relative; width: auto; max-width: 100%; height: auto; max-height: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.post-single__hero figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); text-align: center; }

.section--post-body { padding-top: 64px; }
.post-single__hero + .section--post-body { padding-top: 56px; }
.section--post-body .prose { font-size: 1.12rem; line-height: 1.8; }
.section--post-body .prose > p:first-of-type { font-size: 1.2rem; color: var(--navy-deep); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.post-tags a { display: inline-block; padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--navy); background: rgba(27, 58, 92, 0.06); }
.post-tags a:hover { background: var(--navy); color: #fff; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-share__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.post-share a { font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--navy); }
.post-share a:hover { border-color: var(--teal-text); color: var(--teal-text); }

.section--related { background: #fff; border-top: 1px solid var(--border); }
.section--related .section-header { margin-bottom: 40px; }

.page-links { margin-top: 2em; font-weight: 600; }
.page-links a, .page-links > span { display: inline-block; margin-right: 6px; padding: 6px 12px; border-radius: var(--radius-sm); background: rgba(27, 58, 92, 0.06); text-decoration: none; }

/* Comments (kept minimal; comments are likely off) */
.section--comments { padding-top: 0; }
.comment-list { display: grid; gap: 24px; margin-top: 32px; }
.comment-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--muted); margin: 6px 0 12px; }
.comment-form { display: grid; gap: 16px; margin-top: 32px; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid rgba(27, 58, 92, 0.18); border-radius: var(--radius); font: inherit; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(91, 164, 201, 0.2); }
.comment-form .submit { display: inline-flex; padding: 14px 28px; background: var(--orange); color: #fff; border-radius: var(--radius); font-weight: 600; border: 0; cursor: pointer; }

@media (max-width: 768px) {
  .section--post-header { padding-bottom: 32px; }
  .section--post-header:has(+ .container .post-single__hero) { padding-bottom: 80px; }
  .section--post-header + .container .post-single__hero { margin-top: -48px; }
  .section--post-body { padding-top: 40px; }
  .post-single__hero img, .post-single__hero--framed .post-single__hero-media { border-radius: var(--radius); }
}
