/* The blog. Loaded after styles.css and built from its tokens: the same blocks, edges and type, at reading width.
   Blog pages run no script, so nothing here depends on js/main.js. */
.nav-links a[aria-current] { color: var(--ink); background: var(--card) }

.blog-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px) }
.blog-head h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; max-width: 16em }
.blog-head .lede { margin-top: 20px }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; padding-bottom: clamp(60px, 8vw, 110px) }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--raised); border-radius: var(--r-lg); padding: 26px 24px 24px; box-shadow: var(--block); transition: transform .14s var(--ease), box-shadow .14s var(--ease) }
.post-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--stroke), 0 6px 0 var(--edge) }
.post-card h2, .post-card h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; font-weight: 750 }
.post-card p { color: var(--soft); font-size: 16px }
.post-card .more { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--blue-ink) }
.kicker { font-size: 13px; font-weight: 700; color: var(--muted) }
@media (max-width: 940px) { .posts { grid-template-columns: 1fr; max-width: 560px } }

/* ---------- one post ---------- */
.post { width: min(760px, 100% - 40px); margin-inline: auto; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 70px) }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px }
.crumbs a:hover { color: var(--ink) }
.post h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.04em }
.post .byline { margin-top: 18px; font-size: 14.5px; color: var(--muted) }
.post .lede { margin-top: 22px; max-width: none }
.post h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; margin: 56px 0 16px }
.post h3 { margin: 34px 0 10px }
.post p { margin: 0 0 18px; color: #26272c; text-wrap: pretty }
.post p a, .post li a, .post td a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px }
.post ul, .post ol { margin: 0 0 20px; padding-left: 0; display: grid; gap: 9px }
.post ul li { position: relative; padding-left: 22px }
.post ul li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue) }
.post ol { counter-reset: n }
.post ol li { counter-increment: n; position: relative; padding-left: 34px }
.post ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--stroke); font: 700 13px/24px var(--body); text-align: center; color: var(--soft) }

.tldr { background: var(--card); border-radius: var(--r-lg); padding: 22px 24px; margin: 30px 0 8px; box-shadow: 0 4px 0 var(--edge) }
.tldr strong { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px }
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0 }

.tbl { overflow-x: auto; margin: 24px 0 26px; border-radius: var(--r-lg); box-shadow: var(--block) }
.tbl table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--stroke) }
.tbl thead th { border-top: 0; background: var(--card); font-size: 13.5px; color: var(--soft) }
.tbl tbody th { font-weight: 700; white-space: nowrap }
.tbl tr.us td, .tbl tr.us th { background: #f3f8ff }
.note { font-size: 14.5px; color: var(--muted) }

.faq details { border-top: 1px solid var(--stroke); padding: 16px 0 }
.faq details:last-child { border-bottom: 1px solid var(--stroke) }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 600 }
.faq details[open] summary::after { content: "\2212" }
.faq details p { margin: 12px 0 0 }

.cta { margin: 56px 0 0; text-align: center; color: #fff; border-radius: 20px; padding: clamp(34px, 5vw, 54px) 24px; background-color: var(--blue); background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 44px 44px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), 0 8px 0 var(--blue-edge) }
.cta h2 { margin: 0 auto 12px; font-size: clamp(26px, 3.4vw, 38px); max-width: 16em }
.cta p { color: #fff; opacity: .92; margin-bottom: 26px }
.cta .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px }

.related { width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 20px 0 clamp(50px, 7vw, 90px) }
.related > h2 { font-size: 26px; margin-bottom: 22px }
.related .posts { padding-bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (max-width: 760px) { .related .posts { grid-template-columns: 1fr } }
