/* blog-specific overrides — site.css provides header, nav, variables */
html, body { height: 100%; }
body { overflow: hidden; display: flex; flex-direction: column; }
.site-header { flex: 0 0 auto; }
.site-footer { flex: 0 0 auto; }

.blog-layout { width: 100%; flex: 1 1 0; min-height: 0; margin: 0; display: grid; grid-template-columns: 23% 54% 23%; grid-template-rows: auto minmax(0, 1fr); gap: 0; background: #e3e3e3; }
.post-feed { display: contents; }
.feed-intro { grid-column: 2; grid-row: 1; padding: 2.5rem 5rem 1rem; background: #fff; }
h1 { margin: 0 0 .5rem; color: var(--muted); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
.feed-intro p { margin: 0 0 1.5rem; font-size: 1.1rem; }
.post { display: none; scroll-margin-top: 1rem; }
.post.is-selected { display: contents; }
.post > img { position: sticky; top: 2rem; grid-column: 1; grid-row: 2; align-self: start; display: block; width: 75%; aspect-ratio: 1 / 1; margin: 0 auto; object-fit: cover; border-radius: 50%; border: 1px solid #555; background: #fff; }
.post-body { grid-column: 2; grid-row: 2; overflow-y: auto; height: 100%; padding: 1.5rem 5rem 5rem; background: #fff; scrollbar-width: none; -ms-overflow-style: none; }
.post-body::-webkit-scrollbar { display: none; }
.post-image-central { display: block; width: 100%; max-height: 430px; margin: 1.75rem 0 2rem; object-fit: contain; background: #f5f5f5; }
.post h2 { margin: 0 0 .55rem; color: #555; font-size: clamp(1.7rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.25; }
.post time { display: block; margin-bottom: 1.4rem; color: var(--muted); font-size: .9rem; }
.post p { margin: 0 0 1.1rem; font-size: 1.125rem; line-height: 1.65; }
.post ul { list-style-type: disc; margin: 0 0 1.1rem 0; padding-left: 2.25rem; font-size: 1.125rem; line-height: 1.65; }
.post li { margin-bottom: .4rem; }
.post-figure { margin: 1.5rem 0; }
.post-inline-img { display: block; width: auto; max-width: 75%; margin: 0 auto; object-fit: contain; background: #fff; }
.post-nav { grid-column: 3; grid-row: 1 / span 2; position: sticky; top: 0; overflow-y: auto; height: 100%; padding: 2.5rem .75rem; background: #e3e3e3; scrollbar-width: none; -ms-overflow-style: none; }
.post-nav::-webkit-scrollbar { display: none; }
.post-nav h2 { margin: 0 0 1rem; color: var(--muted); font-size: 1.3rem; font-weight: 400; }
.post-nav a { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border-left: 3px solid transparent; text-decoration: none; line-height: 1.2; }
.post-nav a:hover, .post-nav a:focus, .post-nav a[aria-current="true"] { border-left-color: var(--accent); color: var(--accent); background: #f7f7f7; }
.post-nav time { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .78rem; }
.post-nav-text { flex: 1 1 0; min-width: 0; }
.post-nav-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: 0 0 44px; border: 1px solid #555; }
.post-nav-placeholder { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 4px; border: 1px solid #555; background: #fff; }
@media (max-width: 760px) {
  body { overflow: auto; display: block; }
  .blog-layout { height: auto; display: block; padding: 0 1rem; flex: none; }
  .post-feed { display: block; }
  .feed-intro { padding: 2rem 0 1rem; }
  .post-nav { position: static; order: -1; height: auto; padding: 1.5rem 0; }
  .post-nav a { display: inline-block; width: 49%; vertical-align: top; }
  .post.is-selected { display: block; }
  .post > img { position: static; width: 60%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
  .post-image-central { max-height: 300px; }
  .post-body { height: auto; overflow: visible; padding: 0 1rem 3rem; }
}
