/* Blog posts and blog index */
.post-wrap { max-width: 1180px; margin: 14px auto 40px; padding: 0 16px; }
.post {
  background: rgba(18, 26, 34, .95); border-radius: 12px; padding: 34px 40px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.post-head { max-width: 820px; }
.chip-cat { display: inline-block; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: 3px 12px; text-decoration: none; }
.post h1 { font-size: 38px; line-height: 1.2; margin: 14px 0 12px; font-weight: normal; }
.post-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post-meta b { color: var(--text); font-weight: normal; }
.post-feature { margin: 22px 0 0; }
.post-feature img, .post-body figure img { width: 100%; height: auto; display: block; border-radius: 10px; }

.post-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 30px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.toc b { display: block; font-weight: normal; color: var(--text); font-size: 15px; margin-bottom: 8px; letter-spacing: .3px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(255,255,255,.1); }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--muted); text-decoration: none; line-height: 1.4; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--teal); border-left-color: var(--teal); }

.post-body { max-width: 760px; overflow-wrap: anywhere; min-width: 0; font-size: 17px; line-height: 1.8; color: #d9e1e7; }
.post-body .lede { font-size: 19px; color: #eef3f6; }
.post-body h2 { font-size: 27px; line-height: 1.3; margin: 44px 0 12px; font-weight: normal; color: var(--text); scroll-margin-top: 80px; }
.post-body h3 { font-size: 20px; margin: 30px 0 8px; font-weight: normal; color: var(--teal); scroll-margin-top: 80px; }
.post-body a { color: var(--teal); }
.post-body strong { color: #fff; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 6px 0; }
.post-body code { background: #0f171e; border: 1px solid #2c3a46; border-radius: 4px; padding: 1px 6px; font-size: 15px; }
.post-body kbd { display: inline-block; background: #e3e5e6; color: #1b2630; border-radius: 4px; padding: 0 6px; font: 14px/1.6 Consolas, Menlo, monospace; box-shadow: inset 0 -2px 0 #aab4bb; }
.post-body figure { margin: 30px 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; }
.post-body th { color: var(--teal); font-weight: normal; background: rgba(255,255,255,.03); }
.post-body table.compact td { padding: 7px 10px; }
.takeaways { background: rgba(31,199,160,.07); border: 1px solid rgba(31,199,160,.35); border-radius: 10px; padding: 6px 22px 10px; margin: 26px 0; }
.takeaways h2 { font-size: 20px !important; margin: 14px 0 6px !important; color: var(--teal) !important; }
.callout { border-radius: 10px; padding: 14px 18px; margin: 22px 0; font-size: 16px; }
.callout.warn { background: rgba(229,83,75,.1); border: 1px solid rgba(229,83,75,.45); }
ol.checks li::marker { color: var(--teal); font-weight: 600; }

.post-cta { margin: 40px 0 0; padding: 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(31,199,160,.16), rgba(31,199,160,.04)); border: 1px solid rgba(31,199,160,.35); }
.post-cta h2 { margin: 0 0 4px !important; font-size: 22px !important; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.author-box img { width: 60px; height: 60px; border-radius: 12px; flex: none; }
.author-box b { color: var(--text); font-weight: normal; font-size: 17px; }
.author-box p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 26px; font-size: 14px; color: var(--muted); }
.share a { border: 1px solid #3a4956; color: var(--text); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 14px; }
.share a:hover { border-color: var(--teal); color: var(--teal); }

/* blog index */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; margin-top: 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; overflow: hidden; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.post-card img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .pc-body { padding: 16px 18px 20px; }
.post-card .pc-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); }
.post-card h2, .post-card h3 { font-size: 20px; line-height: 1.35; margin: 6px 0 8px; font-weight: normal; color: var(--text); }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-card .pc-meta { margin-top: 12px; font-size: 13px; color: #8796a3; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .toc { position: static; max-height: none; background: rgba(255,255,255,.03); border-radius: 10px; padding: 14px 16px; }
}
@media (max-width: 600px) {
  .post { padding: 22px 18px 28px; }
  .post h1 { font-size: 28px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 23px; }
  .post-wrap { padding: 0 10px; }
}
