/* The blog's pictures, Key points box and "Read next" (app/blog/pages.py). Loaded on blog pages only, after site.css. */
.post-figure { margin: 8px 0 32px; }
.post-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.post-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.post-figure-ai { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--dim); letter-spacing: 0.02em; }
.post .post-figure { margin: 28px 0 32px; }
.post-keypoints { margin: 28px 0 8px; padding: 18px 24px 6px; border-left: 2px solid var(--copper); background: var(--panel); }
.legal .post-keypoints h2 { margin-top: 0; font-size: clamp(20px, 2.4vw, 24px); }
.post-keypoints li { margin-bottom: 8px; }
.post-more { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--line); }
.legal .post-more h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.post-more ul { margin: 0; padding-left: 18px; }
.post-more li { margin-bottom: 6px; }
.legal .post-keypoints h3 { margin: 0 0 6px; font-size: 17px; }
/* Following the blog: /blog/follow and the RSS feed shown in a browser (blog-feed.xsl) */
.feed-copy { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.feed-url { flex: 1 1 260px; min-width: 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font: 15px/1.4 var(--sans); }
.legal h2.feed-latest { margin: 40px 0 0; }
.feed-how { color: var(--muted); font-size: 15px; }
.blog-follow { white-space: nowrap; }

/* Post cards in the blog list and the homepage's "From the blog" (pages._card): picture, label and date, title,
   summary and a copper "Read more". The whole card is the link. Phone: picture on top. */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.blog-card:hover, .blog-card:focus-visible { border-color: var(--copper); }
.blog-card-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.blog-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-pic img { transform: scale(1.03); }
.blog-card-pic.is-empty { display: grid; place-items: center; background: radial-gradient(ellipse at 70% 40%, rgba(196, 98, 45, 0.35), transparent 60%), #141210; }
.blog-card-mark svg { width: 64px; height: 64px; }
.blog-card-text { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.legal .blog-card-text p, .blog-card-text p { margin: 0 0 20px; color: var(--muted); }
.blog-card-more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: var(--copper); color: #fff; font-weight: 600; font-size: 15px; transition: background 0.2s; }
.blog-card:hover .blog-card-more, .blog-card:focus-visible .blog-card-more { background: #9e4a1c; }
.legal .blog-list { gap: 22px; }
@media (min-width: 760px) {
  .legal .blog-list .blog-card { flex-direction: row; min-height: 280px; }
  .legal .blog-list .blog-card-pic { flex: 0 0 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .legal .blog-list .blog-card-text { padding: 28px 30px; }
}
@media (prefers-reduced-motion: reduce) { .blog-card-pic img { transition: none; } .blog-card:hover .blog-card-pic img { transform: none; } }
/* The list page is wider than a post's reading column, so the cards are big (posts keep 760px). */
.legal-inner:has(> .blog-list) { max-width: 1040px; }
.legal-inner:has(> .blog-list) > .lead { max-width: 640px; }
@media (min-width: 760px) {
  .legal .blog-list .blog-card { min-height: 320px; }
  .legal .blog-list .blog-card h2 { font-size: clamp(28px, 3vw, 36px); }
}

/* Bas's footer under each post's sign-off: his email signature (app/blog/pages.py SIGNATURE). */
.post-signature { margin: 18px 0 30px; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); max-width: 560px; }
.post-sig-top { display: flex; gap: 16px; align-items: flex-start; }
.post-sig-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.post .post-signature p { margin: 0; }
.post-sig-name { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--text); }
.post .post-signature .post-sig-role { margin-top: 2px; font-size: 14px; color: var(--muted); }
.post .post-signature .post-sig-tag { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--copper); }
.post-sig-tag img { width: 22px; height: 22px; flex: none; }
.post .post-signature .post-sig-links { margin-top: 8px; font-size: 14px; color: var(--muted); }
.post .post-signature .post-sig-join { margin-top: 6px; font-size: 14px; font-weight: 600; }
.post-signature a { color: var(--copper); }
.post-sig-banner { display: block; margin-top: 16px; }
.post-sig-banner img { display: block; width: 100%; max-width: 500px; height: auto; }
@media (max-width: 480px) { .post-signature { padding: 16px; } .post-sig-name { font-size: 18px; } }

/* The mailing list box and its Confirm / Unsubscribe pages (app/blog/pages.py join_box, list_page; blog-list.js). */
.blog-join { margin: 40px 0 8px; padding: 22px 24px; border: 1px solid var(--line); border-left: 2px solid var(--copper); background: var(--panel); max-width: 640px; }
.legal .blog-join h2, .blog-join h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--text); }
.blog-join-line { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.blog-join-line a { color: var(--copper); }
.blog-join-label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.blog-join-row { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-join-email { flex: 1 1 240px; min-width: 0; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: 15px/1.4 var(--sans); }
.blog-join-email:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.blog-join-error { margin: 10px 0 0; color: var(--up); font-size: 14px; }
.blog-join-done { margin: 6px 0 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.blog-list-action { margin: 26px 0 10px; }
.blog-join [hidden], .blog-list-action [hidden] { display: none !important; }
