/* Blog pages. Loaded after company-20261114.css and uses its colours. */
:root { --text: #d7d7db; --code: #131315; }
@media (prefers-color-scheme: light) {
  :root { --text: #2b2b30; --code: #f3f3f5; }
}
html.reading { scroll-padding-top: 24px; }
.reading .site-header { position: static; }
main.blog { justify-content: flex-start; align-items: stretch; padding-block: clamp(56px, 8vh, 92px) 96px; }
.blog > * { width: min(100%, 720px); margin-inline: auto; }

/* Post list */
.blog-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.post-list { list-style: none; padding: 0; margin-top: 36px; }
.post-list li { padding-block: 28px; border-top: 1px solid var(--line); }
.post-list time, .post-header time { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.post-list h2 { margin-top: 8px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
.post-list h2 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-list p { margin-top: 8px; color: var(--secondary); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.empty { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }

/* Post */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font-size: 13px; transition: color .15s; }
.back:hover { color: var(--foreground); }
.post-header h1 { margin-top: 18px; font-size: clamp(29px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
.post-header time { margin-top: 16px; }
.post-body { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); color: var(--text); font-size: 16.5px; line-height: 1.75; overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body p, .post-body ul, .post-body ol, .post-body pre, .post-body blockquote, .post-body .table { margin: 0 0 1.35em; }
.post-body h2 { margin: 2.1em 0 .7em; color: var(--foreground); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.post-body h3 { margin: 1.8em 0 .6em; color: var(--foreground); font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.post-body a { text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body strong { color: var(--foreground); font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.35em; }
.post-body li { margin: .35em 0; }
.post-body li > ul, .post-body li > ol { margin: .35em 0 0; }
.post-body code { padding: .12em .36em; border: 1px solid var(--line); border-radius: 5px; background: var(--code); font: 400 .86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
.post-body pre { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow-x: auto; font-size: 13px; line-height: 1.65; tab-size: 4; }
.post-body pre code { padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; }
.post-body blockquote { padding-left: 18px; border-left: 2px solid var(--line); color: var(--secondary); }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body hr { height: 0; margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; filter: none; }
.post-body .table { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.post-body th, .post-body td { padding: 9px 18px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th:last-child, .post-body td:last-child { padding-right: 0; }
.post-body th { color: var(--foreground); font-weight: 500; }

@media (max-width: 600px) {
  main.blog { padding-block: 44px 64px; }
  .post-list { margin-top: 28px; }
  .post-list li { padding-block: 24px; }
  .post-list h2 { font-size: 20px; }
  .post-body { margin-top: 30px; padding-top: 28px; font-size: 16px; }
  .post-body h2 { font-size: 22px; }
  .post-body h3 { font-size: 18px; }
  .post-body pre { padding: 14px; border-radius: 10px; font-size: 12.5px; }
}
@media (forced-colors: active) {
  .post-body img { background: none; }
}

/* Collapsible sections and long values in tables */
.post-body details { padding-block: 14px; border-top: 1px solid var(--line); }
.post-body details:last-of-type { margin-bottom: 1.35em; border-bottom: 1px solid var(--line); }
.post-body summary { color: var(--foreground); font-size: 15px; font-weight: 500; cursor: pointer; }
.post-body summary:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-body details[open] > summary { margin-bottom: 16px; }
.post-body details > :last-child { margin-bottom: 0; }
.post-body td code { overflow-wrap: anywhere; }
