/* Blog (Insights) pages */
.nav a[aria-current="page"] { color: var(--green); }

/* Hero: New York and Tokyo side by side */
.blog-hero { position: relative; padding: 0 0 8px; overflow: hidden; background: #fff; }
.blog-hero-photos { display: grid; grid-template-columns: 1fr 1fr; height: 400px; }
.blog-hero-photos figure { margin: 0; position: relative; overflow: hidden; }
.blog-hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.blog-hero-photos figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26, 43, 76, 0) 70%, rgba(26, 43, 76, 0.35) 100%); }
.blog-hero-photos figcaption { position: absolute; right: 20px; top: 16px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.blog-hero-photos figure:first-child figcaption { right: auto; left: 20px; }
.blog-hero .wrap { position: relative; margin-top: -64px; }
.blog-hero-card { background: rgba(255, 255, 255, 0.96); border-radius: var(--radius); padding: 32px 36px; max-width: 620px; box-shadow: 0 12px 40px rgba(26, 43, 76, 0.18); border-top: 4px solid var(--lime); }
.blog-hero-card h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; margin: 8px 0 12px; }
.blog-hero-card .lead { color: var(--muted); margin: 0; font-size: 17px; }
.blog-hero-card .eyebrow span { letter-spacing: 0.04em; }

.blog-feed { padding: 48px 0 88px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--sage-line); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.chip:hover { background: var(--sage); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-chips .chip { cursor: default; display: inline-block; padding: 4px 12px; min-height: 0; font-size: 13px; background: var(--sage); }

.feed-status, .post-status { color: var(--muted); margin: 0 0 16px; }
.feed-status:empty, .post-status:empty { display: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e6e6; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--sage-line); box-shadow: 0 6px 24px rgba(26, 43, 76, 0.08); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sage); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; letter-spacing: 0.02em; }
.post-card .post-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--navy); margin: 0 0 10px; }
.post-excerpt { color: var(--muted); font-size: 15px; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-cover-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sage) 0%, #f7f9f3 55%, var(--sage-line) 100%); color: var(--navy); }
.post-cover-fallback span { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.post-cover-fallback small { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.post-more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--green); }
.feed-more { text-align: center; margin-top: 36px; }
.feed-more .btn[hidden] { display: none; }

/* Single post */
.post-page { padding: 48px 0 88px; }
.post-page .wrap { max-width: 780px; }
.back { margin: 0 0 28px; font-size: 14px; }
.back a { color: var(--green); text-decoration: none; font-weight: 700; }
.post-page h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.2; margin: 6px 0 16px; }
html[lang="ja"] .post-page h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.45; }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.post-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 0 0 32px; }
@media (max-width: 760px) { .post-hero { max-height: 220px; } }
.post-body { font-size: 18px; }
html[lang="ja"] .post-body { font-size: 17px; }
.post-body h2 { font-family: var(--serif); font-size: 30px; margin: 40px 0 12px; }
.post-body h3 { font-size: 20px; margin: 32px 0 8px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 18px; }
.post-body li { margin: 6px 0; }
.post-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 3px solid var(--lime); background: var(--sage); border-radius: 8px; }
.post-body img { border-radius: 10px; margin: 24px 0; height: auto; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); font-weight: 700; }
.post-body a { color: var(--green); }

.post-band { display: grid; grid-template-columns: 1fr 1fr; height: 160px; overflow: hidden; }
.post-band img { width: 100%; height: 100%; object-fit: cover; }
.post-cta { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; margin: 48px 0 0; padding: 28px 32px; background: var(--sage); border: 1px solid var(--sage-line); border-radius: var(--radius); }
.post-cta-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(26, 43, 76, 0.12); }
.post-cta h2 { font-size: 28px; margin: 0 0 8px; }
.post-cta p { color: var(--muted); margin: 0 0 18px; }

.related { padding: 56px 0 0; }
.related h2 { font-size: 30px; margin: 0 0 20px; }
.related .post-grid { grid-template-columns: repeat(3, 1fr); }
.related .post-card .post-title { font-size: 20px; margin: 0; }

@media (max-width: 960px) { .post-grid, .related .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .blog-hero-photos { height: 220px; }
  .blog-hero .wrap { margin-top: -40px; padding-bottom: 24px; }
  .blog-hero-card { padding: 24px 22px; }
  .post-band { height: 90px; }
  .post-cta { grid-template-columns: 1fr; gap: 16px; }
  .post-cta-photo { width: 96px; height: 96px; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 22px 20px; }
}
/* NY color */
.blog-hero-photos figure:first-child img, .post-band img:first-child, .post-cta-photo { filter: saturate(1.45) contrast(1.06) brightness(1.02); }

/* Link to the same article in the other language */
.lang-link { margin: 40px 0 0; padding: 16px 20px; background: var(--sage); border: 1px solid var(--sage-line); border-radius: var(--radius); font-weight: 700; }
.lang-link[hidden] { display: none; }
.lang-link a { color: var(--green); text-decoration: none; }
.lang-link a:hover { text-decoration: underline; }

/* The site stylesheet sets display on images; make the hidden attribute win (post cover shown twice otherwise). */
[hidden] { display: none !important; }
