/* News / blog pages (generated by tools/blog-build.js) */
.blog-page { background: var(--surface); }
.blog-bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.blog-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.blog-brand img { height: 44px; width: auto; display: block; }
.blog-nav { display: flex; align-items: center; gap: 22px; }
.blog-nav a:not(.btn) { color: var(--navy); font-weight: 700; text-decoration: none; }
.blog-nav a:not(.btn):hover, .blog-nav a.is-active { color: var(--cyan); }

.blog-head { padding-block: 56px 28px; max-width: 760px; margin-inline: auto; text-align: center; }
.blog-head h1 { font-family: var(--font-display); color: var(--navy); font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 10px; line-height: 1.15; }
.blog-head p { color: var(--muted); margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: 72px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease-out), box-shadow .35s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pc-img { aspect-ratio: 16 / 10; background: var(--line); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.pc-body time { font-size: .82rem; color: var(--muted); }
.pc-body strong { font-family: var(--font-display); color: var(--navy); font-size: 1.12rem; line-height: 1.3; }
.pc-ex { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post { max-width: 760px; margin-inline: auto; padding-block: 40px 72px; }
.post-back { display: inline-block; margin-bottom: 22px; color: var(--navy); font-weight: 700; text-decoration: none; }
.post-back:hover { color: var(--cyan); }
.post > time { color: var(--muted); font-size: .9rem; }
.post h1 { font-family: var(--font-display); color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 6px 0 24px; }
.post-cover { margin: 0 0 28px; }
.post-cover img, .post-body figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.post-cover img { max-height: 620px; object-fit: contain; background: #fff; }
.post-body { font-size: 1.05rem; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.3; margin: 1.6em 0 .5em; }
.post-body figure { margin: 24px 0; }
.post-body a { color: var(--blue); }
.post-video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 24px; border-radius: var(--radius); overflow: hidden; background: #000; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-pager a { display: grid; gap: 4px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); font-weight: 700; text-decoration: none; }
.post-pager a span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-pager a.next { text-align: right; }
.post-pager a:hover { border-color: var(--cyan); }

.blog-foot { border-top: 1px solid var(--line); background: #fff; padding-block: 24px; color: var(--muted); font-size: .9rem; }
.blog-foot a { color: var(--navy); font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .blog-nav a:not(.btn):not(.is-active) { display: none; }
  .blog-brand img { height: 36px; }
  .post-pager { grid-template-columns: 1fr; }
  .post-pager a.next { text-align: left; }
}
