/*
 * The card/sidebar CSS shared by src/templates/site/blog.php (every
 * listing route: /blog/, /category/<c>/, /author/<a>/, /tag/<t>/) and
 * post.php (a single post's "You May Also Like" cards and its own copy of
 * the same sidebar) — plan 3 task 3 review: this used to be pasted into
 * both files' own <style> blocks verbatim; edit it here from now on, not
 * in either template. blog.php keeps its own <style> for .pager and
 * .page-hero .kind (post.php uses neither), and post.php keeps its own
 * <style> for everything from .page-hero.post-hero down (the post-only
 * hero/byline/feature/entry/like/share/prevnext/related rules).
 */
.blog { padding: 72px 0 88px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.posts .post img { aspect-ratio: 3 / 2; }
.posts .post > div { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 22px; }
.posts .post h3 { font-size: 22px; line-height: 1.2; }
.posts .post p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.post .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.post .meta .arrow { font: 700 14px/1 var(--ui); color: var(--plum); white-space: nowrap; }
.side { display: grid; gap: 24px; }
.widget { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.widget h2 { font: 700 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 16px; }
.widget.book { padding: 24px 0 8px; overflow: hidden; }
.widget.book h2, .widget.book .tabs { padding: 0 24px; }
.tabs { display: flex; gap: 8px; margin: 0 0 6px; }
.tabs button { font: 600 14px/1 var(--ui); color: var(--plum); background: var(--wash); border: 0; padding: 10px 16px; border-radius: var(--pill); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--plum); color: #fff; }
.widget.book iframe { display: block; width: 100%; height: 600px; border: 0; }
.widget.book [hidden] { display: none; }
.widget .search { display: flex; align-items: center; gap: 8px; border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px var(--line); padding: 4px 4px 4px 16px; color: var(--muted); }
.widget .search:focus-within { box-shadow: inset 0 0 0 1.5px var(--violet); }
.widget .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px var(--body); color: var(--ink); padding: 8px 0; }
.widget .search button { border: 0; background: var(--plum); color: #fff; border-radius: var(--pill); font: 700 14px/1 var(--ui); padding: 11px 16px; cursor: pointer; }
.catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.catlist a { display: block; padding: 9px 15px; border-radius: var(--pill); background: var(--wash); color: var(--plum); text-decoration: none; font: 600 14px/1 var(--ui); }
.catlist a:hover, .catlist a.on { background: var(--plum); color: #fff; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.recent a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.recent img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.recent .cats { display: block; font: 700 11px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.recent b { display: block; font: 700 16px/1.25 var(--ui); color: var(--ink); margin: 3px 0 2px; }
.recent a:hover b { color: var(--plum); }
.recent small { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 800px) {
  .blog { padding: 44px 0 64px; }
  .side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* The CHALICE card under Recent Posts (Michael, Sept 27: the app's feature graphic, links to /chalice/). */
.side .chalice { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.side .chalice:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.side .chalice img { display: block; width: 100%; height: auto; }

/* Jean's photo in the post title band: a thin plum ring, not white (Michael, Sept 27). */
.post-hero .byline img { box-shadow: 0 0 0 2px var(--plum), 0 2px 8px rgba(40,5,40,.4); }
