/* Blog: the index, archives, search, single posts, and the post cards the
   front page's "From the blog" band shares. Loaded on those views only (see
   functions.php); the front page loads it for the band. Same card language as
   the rest of the site — white, 20 px radius, hairline border, soft shadow. */

/* ------------------------------------------------------------ page-head extras */
.page-head .eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--sub);
}
.page-head .eyebrow a { color: var(--manual); text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.page-head.blog-head { max-width: 1280px; }   /* the listing's column, so heading and cards share a left edge */
.page-head.post-head { max-width: 860px; }
.page-head.post-head h1 { max-width: 20ch; }
.page-head .post-meta { margin: 0 0 14px; }
.blog-band { padding: 26px 26px 80px; }
.blog-empty { color: var(--sub); font-size: 16px; margin: 30px 0 0; }

/* ------------------------------------------------------------ meta */
.post-meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 12.5px; color: var(--sub); font-weight: 600; margin: 0;
}
.post-meta .post-crumb { color: var(--manual); text-decoration: none; }
.post-meta .post-crumb:hover { text-decoration: underline; }
.post-meta .post-crumb::after { content: '/'; margin-left: 10px; color: rgba(0, 0, 0, .18); }
.post-meta .post-meta-sep { color: rgba(0, 0, 0, .22); }
.post-category-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: rgba(10, 132, 255, .09); color: var(--manual);
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; text-decoration: none;
}
.post-category-chip:hover { background: rgba(10, 132, 255, .16); }

/* ------------------------------------------------------------ cards */
.post-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 24, 28, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(22, 24, 28, .1); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f6f3ec; }
.post-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card-body .post-title {
  font-size: 17px; font-weight: 750; letter-spacing: -.3px; line-height: 1.3; color: var(--ink); text-decoration: none;
}
.post-card-body .post-title:hover { color: var(--manual); }
.post-card-body .post-excerpt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.post-card-body .post-meta { font-size: 12px; }

/* the branded tile a post without a featured image gets */
.pgt-tile { position: relative; display: block; width: 100%; height: 100%; }
.pgt-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pgt-tile.flip svg { transform: scaleX(-1); }
.pgt-tile-pin {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background-size: cover;
  box-shadow: 0 0 0 3px var(--ring, var(--certain)), 0 4px 12px rgba(0, 0, 0, .3); transform: translate(-50%, -50%);
}
.post-hero .pgt-tile-pin { width: 52px; height: 52px; border-width: 4px; }

/* ------------------------------------------------------------ single */
.post-hero { margin: 0 0 30px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 12px 34px rgba(22, 24, 28, .07); }
.post-hero img { width: 100%; height: auto; display: block; }
.post-hero.is-placeholder { aspect-ratio: 16 / 7; }
.post-body { padding-top: 24px; }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.post-body figure { margin: 26px 0; }
.post-body figcaption { font-size: 13px; color: var(--sub); text-align: center; margin-top: 8px; }
.post-body blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--likely); color: #3a4048; font-style: italic; }
.post-body pre { background: #16181c; color: #e9eaec; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: 13.5px; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin: 34px 0; }
.post-body .wp-block-image, .post-body .wp-caption { max-width: 100%; }
.post-pages { font-size: 14px; color: var(--sub); }

/* share row */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(0, 0, 0, .08); }
.share-row-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--sub); margin-right: 4px; }
.share-btn {
  position: relative; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  color: #3a4048; background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 999px;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.share-btn:hover, .share-btn.copied { border-color: var(--manual); color: var(--manual); transform: translateY(-1px); text-decoration: none; }
.share-btn.copied::after {
  content: 'Copied!'; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--pill); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}

/* related */
.related-section { padding-top: 0; max-width: 860px; }   /* the article's column */
.related-section .post-grid { gap: 18px; }
@media (min-width: 960px) { .related-section .post-grid { grid-template-columns: repeat(3, 1fr); } }
.related-section .post-card-body { padding: 14px 16px 18px; }
.related-section .post-card-body .post-title { font-size: 15.5px; }
.related-section .post-card-body .post-excerpt { display: none; }
.related-section h2 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.6px; }

/* ------------------------------------------------------------ pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 44px; font-size: 14px; font-weight: 650; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 11px; color: #3a4048; text-decoration: none; background: #fff;
  transition: border-color .16s ease, color .16s ease;
}
.pagination .page-numbers:hover, .nav-links .page-numbers:hover { border-color: var(--manual); color: var(--manual); }
.pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--manual); border-color: var(--manual); color: #fff; }
.pagination .page-numbers.dots, .nav-links .page-numbers.dots { border-color: transparent; background: none; color: var(--sub); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ front page band */
#blog .post-grid { margin-top: 0; }
#blog .band-lede { margin-bottom: 30px; }
