/* The Busy Book blog (/blog/), on top of the public site's look (static/front/site.css). */
.blog-hero { position: relative; padding: 56px 0 30px; background:
  radial-gradient(800px 420px at 85% 0%, rgba(45, 212, 191, .16), transparent 62%),
  radial-gradient(640px 380px at 0% 100%, rgba(15, 118, 110, .07), transparent 60%), var(--cloud); border-bottom: 1px solid var(--line); }
.blog-hero h1 { margin: 16px 0 14px; font-size: clamp(2.2rem, 4.8vw, 3.5rem); max-width: 16em; }
.blog-hero .lead { margin-bottom: 26px; }
.blog-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.blog-crumbs a { font-weight: 600; }
.blog-crumbs i { font-size: .62rem; opacity: .6; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-topics a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: .92rem; }
.blog-topics a i { color: var(--teal); font-size: .85rem; }
.blog-topics a:hover { border-color: var(--teal); color: var(--ink); }
.blog-topics a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-topics a.is-on i { color: var(--mint); }

.blog-list { padding-top: 40px; padding-bottom: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(11, 27, 43, .04); transition: box-shadow .18s, transform .18s, border-color .18s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--tint-2); }
.blog-card-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--ink); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.blog-card-body .tag { align-self: flex-start; }
.blog-card h2, .blog-card h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.02em; }
.blog-card h2 a, .blog-card h3 a { color: var(--ink); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--teal); }
.blog-card p { color: var(--body); font-size: .96rem; line-height: 1.55; }
.blog-meta { margin-top: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }
.blog-card-big { grid-column: span 3; flex-direction: row; }
.blog-card-big .blog-card-img { flex: 0 0 56%; }
.blog-card-big .blog-card-img img { height: 100%; }
.blog-card-big .blog-card-body { padding: 32px; justify-content: center; }
.blog-card-big h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
.blog-card-big p { font-size: 1.05rem; }
.blog-foot-cta { padding-bottom: 72px; }

/* One post */
.post-head { padding: 44px 0 28px; background: var(--cloud); border-bottom: 1px solid var(--line); }
.post-narrow { max-width: 860px; }
.post-head h1 { margin: 16px 0 14px; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; }
.post-head .lead { max-width: 40em; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 22px; font-size: .92rem; }
.post-byline b { display: block; color: var(--ink); }
.post-byline small { display: block; color: var(--muted); }
.post-dates { color: var(--muted); font-weight: 600; }
.post-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.post-avatar-big { width: 56px; height: 56px; font-size: 1.05rem; }

.post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.post-toc details { position: sticky; top: 96px; }
.post-toc summary { font-weight: 800; color: var(--ink); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; margin-bottom: 12px; list-style: none; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc ol { display: grid; gap: 4px; border-left: 2px solid var(--line); }
.post-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); font-size: .92rem; line-height: 1.35; }
.post-toc a:hover, .post-toc a.is-on { color: var(--teal); border-left-color: var(--teal); }

.post-cover { width: 100%; height: auto; border-radius: var(--r); margin-bottom: 28px; box-shadow: var(--shadow); }
.post-body { min-width: 0; font-size: 1.08rem; line-height: 1.75; color: var(--body); }
.post-body > p, .post-body > ul, .post-body > ol, .post-body > blockquote { margin: 0 0 1.2em; }
.post-body h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.2; margin: 1.8em 0 .6em; scroll-margin-top: 96px; }
.post-body h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; scroll-margin-top: 96px; }
.post-body strong { color: var(--ink); }
.post-body a:not(.btn):not(.yt) { text-decoration: underline; text-decoration-color: var(--tint-2); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.post-body a:not(.btn):not(.yt):hover { text-decoration-color: var(--teal); }
.post-body ul { list-style: disc; padding-left: 1.3em; }
.post-body ol { list-style: decimal; padding-left: 1.4em; }
.post-body li { margin: .35em 0; padding-left: .2em; }
.post-body li::marker { color: var(--teal); font-weight: 700; }
.post-body blockquote { border-left: 4px solid var(--teal-bright); background: var(--tint); padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.post-body blockquote p { margin: 0; }
.post-box { display: flex; gap: 14px; margin: 1.6em 0; padding: 18px 20px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--tint-2); }
.post-box > i { color: var(--teal); margin-top: 6px; }
.post-box strong { display: block; margin-bottom: 4px; }
.post-box p { margin: 0; font-size: 1rem; line-height: 1.6; }
.post-box-warn { background: var(--sun-bg); border-color: #FDE68A; }
.post-box-warn > i { color: #B45309; }
.post-box-note { background: var(--cloud); border-color: var(--line); }
.post-box-note > i { color: var(--muted); }
.post-table { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: var(--r-sm); }
.post-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.post-table th, .post-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.post-table tbody th { color: var(--ink); font-weight: 700; background: var(--cloud); }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }

.post-video { margin: 1.8em 0; }
.post-video .yt { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.post-video .yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.post-video .yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(15, 118, 110, .94); color: #fff; display: grid; place-items: center; font-size: 1.5rem; padding-left: 5px; box-shadow: 0 12px 34px rgba(11, 27, 43, .4); transition: transform .18s; }
.post-video .yt:hover .yt-play { transform: scale(1.06); }
.post-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); display: block; }
.post-video figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.post-video figcaption i { color: #E11D48; margin-right: 4px; }

.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; margin: 2.4em 0 0; padding: 28px 30px; border-radius: var(--r-lg); background:
  radial-gradient(520px 260px at 100% 0%, rgba(45, 212, 191, .22), transparent 62%), var(--ink); color: #CBD5E1; }
.post-cta h2 { color: #fff; font-size: 1.5rem; margin: 12px 0 8px; line-height: 1.2; }
.post-cta p { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 34em; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta-inline { margin: 2em 0; }
.post-cta-inline h2 { margin-top: 12px; }

.post-author { display: flex; gap: 16px; margin-top: 2.4em; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cloud); }
.post-author b { color: var(--ink); font-size: 1.05rem; }
.post-author p { margin: 4px 0 0; font-size: .98rem; line-height: 1.6; }
.post-author-links { display: flex; gap: 16px; font-weight: 700; }
.post-related { padding-top: 16px; padding-bottom: 72px; }
.post-related h2 { font-size: 1.8rem; margin-bottom: 20px; }

@media (max-width: 1020px) {
  .post-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .post-toc details { position: static; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cloud); }
  .post-toc summary { margin-bottom: 0; }
  .post-toc details[open] summary { margin-bottom: 12px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card-big { grid-column: span 2; }
}
@media (max-width: 680px) {
  .blog-hero { padding-top: 36px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card-big { grid-column: auto; flex-direction: column; }
  .blog-card-big .blog-card-body { padding: 20px; }
  .post-head { padding-top: 28px; }
  .post-body { font-size: 1.02rem; }
  .post-cta { padding: 24px 22px; }
  .post-table table { font-size: .88rem; }
}
