/* Blog pages and the article cards on the landing page. Builds on site.css (.legal layout, tokens). */

/* Article cards */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post-card {
  display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: rgba(46, 204, 113, 0.5); transform: translateY(-2px); }
.post-card .date { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card h3 { font-size: 22px; line-height: 1.2; text-wrap: balance; }
.post-card p { color: var(--muted); font-weight: 600; font-size: 15px; margin: 0; }
.posts-all { margin-top: 24px; font-weight: 800; }
.posts-all a { text-decoration: none; }
.posts-all a::after { content: " →"; }

/* Article */
.post .crumbs { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 20px; }
.post .crumbs a { color: var(--muted); text-decoration: none; }
.post .crumbs a:hover { color: var(--fg); }
.post h1 { text-wrap: balance; }
.post h2 { font-size: 26px; margin-top: 48px; text-wrap: balance; }
.post h3 { font-size: 20px; margin-top: 30px; }
.post p, .post li { font-size: 17px; line-height: 1.7; }
.post .lede { font-size: 19px; color: var(--fg); margin-top: 24px; }
.post ol { padding-left: 22px; }
.post li { margin-top: 10px; }
.post a { text-underline-offset: 3px; }
.post .updated { margin-top: 12px; }
/* Comparison tables: scroll sideways on phones instead of squeezing */
.post .table { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.post table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.post th, .post td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; line-height: 1.5; }
.post tr:last-child td, .post tr:last-child th { border-bottom: 0; }
.post thead th { color: var(--fg); font-weight: 800; background: var(--surface); }
.post tbody th { color: var(--fg); font-weight: 800; white-space: nowrap; }
.post td.us, .post th.us { background: rgba(46, 204, 113, 0.06); color: var(--fg); }
.post .src { font-size: 14px; }
.post .note {
  margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0;
  background: var(--surface); color: var(--fg);
}

/* Download box */
.get {
  margin-top: 56px; padding: 28px; border-radius: 24px; text-align: center;
  background: radial-gradient(circle at 50% -40%, rgba(46, 204, 113, 0.28), rgba(46, 204, 113, 0) 70%), var(--surface);
  border: 1px solid var(--border);
}
.get h2 { margin-top: 0; font-size: 28px; }
.get p { margin-top: 8px; }
.get .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.post .get a { text-decoration: none; }
.post .more-h { margin-bottom: 20px; }
.post .post-card h3 { margin-top: 0; }
.post .posts .post-card p { font-size: 15px; line-height: 1.6; margin: 0; }
.blog-index .posts { margin-top: 36px; }

/* Header button at the landing page's size */
.top .nav .btn { height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* The blog header keeps its links on phones (site.css hides plain nav links there) */
@media (max-width: 900px) {
  .top .nav .btn { display: none; }
  .post ~ footer a, .top .nav a:not(.btn) { display: inline-block; }
}
@media (max-width: 480px) {
  .get .cta { flex-direction: column; align-items: stretch; }
}
