/* en-us-blog.css — US blog (/en/blog/ list and posts), English only. Mobile-first (min-width). */
.ub-page { padding-top: var(--nav-h); }
.ub-wrap { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 96px; }
.ub-h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }

/* list */
.ub-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
.ub-top-item { grid-column: 1 / -1; }
.ub-top { display: grid; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--border-medium); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .2s; }
.ub-top:hover { border-color: #C9D8CE; }
.ub-top img { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.ub-top h2 { margin-top: 12px; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--text); }
.ub-top p { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.ub-top:hover h2, .ub-shelf:hover h2 { text-decoration: underline; text-underline-offset: 6px; }
.ub-list time, .ub-article time { font-size: 14px; color: var(--text-muted); }
.ub-shelf { display: flex; flex-direction: column; gap: 12px; height: 100%; text-decoration: none; color: inherit; }
.ub-shelf img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--border-medium); border-radius: 16px; transition: transform .3s; }
.ub-shelf:hover img { transform: translateY(-4px); }
.ub-shelf time { font-size: 13px; }
.ub-shelf h2 { margin-top: -4px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text); }
.ub-top:focus-visible, .ub-shelf:focus-visible, .ub-back:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* post */
.ub-article { max-width: 680px; margin: 0 auto; }
.ub-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.ub-back:hover { color: var(--text); }
.ub-article > time { display: block; margin-top: 24px; }
.ub-article h1 { margin-top: 12px; font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--text); }
.ub-body { margin-top: 40px; font-size: 18px; line-height: 1.65; color: var(--text-secondary); }
.ub-body p, .ub-body ul { margin-top: 24px; }
.ub-body h2 { margin-top: 48px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.ub-body ul { padding-left: 24px; list-style: disc; display: grid; gap: 8px; }
.ub-body img { display: block; width: 100%; height: auto; margin: 32px 0; }
.ub-sources { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-medium); }
.ub-sources h2 { font-size: 15px; font-weight: 700; color: var(--text); }
.ub-sources ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.ub-sources a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ub-closing { margin-top: 56px; padding: 32px; border-radius: 20px; background: #F0F9F3; }
.ub-closing h2 { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.ub-closing-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.ub-trial { background: #fff; border-color: rgba(16,24,40,.18); border-radius: var(--radius-pill); }

@media (min-width: 768px) {
  .ub-wrap { padding: 80px 24px 160px; }
  .ub-list { margin-top: 56px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .ub-top { grid-template-columns: minmax(0, 1fr) 17rem; padding: 48px; }
  .ub-top img { order: 0; }
  .ub-top h2 { font-size: clamp(36px, 4vw, 52px); }
  .ub-top p { font-size: 18px; }
  .ub-shelf h2 { font-size: 18px; }
  .ub-closing { padding: 40px; }
  .ub-closing h2 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .ub-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ub-top { grid-template-columns: minmax(0, 1fr) 20rem; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ub-shelf img { transition: none; } }

/* Portrait slide images (narrow: true in blog.ts): max 640px, centered; full width on phones */
.ub-body img.ub-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
