/* Blog: the article list (blog/index.html), each article (blog/<slug>/), and the "From the blog" block on the
   homepage. Pages are built by tools/blog.py. Builds on the tokens in styles.css and the page pieces in pages.css. */

/* ---------- Hero ---------- */
.post-hero { padding-bottom: 40px; }
.post-hero h1 { font-size: clamp(2.25rem, 4.8vw, 3.75rem); max-width: 22ch; line-height: 1.06; }
.post-hero .lede { max-width: 40em; }
.post-hero .chips-row li { font-size: .875rem; }

/* ---------- Article: text column + sticky side column ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-bottom: 40px; }
.post-side { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-side { position: static; order: -1; margin-bottom: 28px; }
  .post-cta-side { display: none; }
}

.post-toc { padding: 20px 22px; border-radius: 18px; }
.post-toc b { display: block; margin-bottom: 10px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.post-toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--hair); font-size: .9rem; line-height: 1.4;
  color: var(--fg-2); text-decoration: none; transition: border-color .2s, color .2s; }
.post-toc a:hover { border-left-color: var(--teal); color: var(--white); }
@media (max-width: 1000px) { .post-toc ol { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ---------- The article text ---------- */
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.75; color: var(--fg-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; color: var(--white); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--white); }
.prose a:hover { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--teal); }
.prose hr { border: 0; height: 1px; background: var(--hair); margin: 2.4em 0; }
.prose code { font-size: .9em; padding: .12em .4em; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--white); }
.prose pre { padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); overflow-x: auto; }
.prose pre code { padding: 0; background: none; font-size: .9rem; }

/* > Quote blocks are used for tips and examples */
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(20,163,158,.35);
  background: rgba(20,163,158,.09); color: var(--fg); }
.prose blockquote > * + * { margin-top: .6em; }

.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .975rem; line-height: 1.5;
  border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair-2); }
.prose th { background: var(--surface-2); color: var(--white); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--white); font-weight: 500; }

/* ---------- Service box (in the text and in the side column) ---------- */
.post-cta { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 18px;
  border-color: rgba(20,163,158,.4); font-size: 1rem; line-height: 1.55; }
.prose .post-cta { margin: 2.2em 0; }
.post-cta .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(20,163,158,.15); color: var(--teal); }
.post-cta .ico svg { width: 22px; height: 22px; }
.post-cta b { display: block; color: var(--white); font-size: 1.0625rem; }
.post-cta b em { font-style: normal; font-weight: 500; color: var(--teal); margin-left: 6px; font-size: .9375rem; }
.post-cta p { margin-top: 4px; font-size: .9375rem; color: var(--fg-2); }
.post-cta .btn { white-space: nowrap; }
.post-cta-side { grid-template-columns: 44px minmax(0, 1fr); }
.post-cta-side .btn { grid-column: 1 / -1; justify-content: center; }
@media (max-width: 640px) { .post-cta { grid-template-columns: 44px minmax(0, 1fr); } .post-cta .btn { grid-column: 1 / -1; justify-content: center; } }

/* ---------- Article cards (list, "keep reading", homepage) ---------- */
.post-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { border-radius: 20px; transition: border-color .25s, transform .25s var(--ease); }
.post-card:hover { border-color: rgba(20,163,158,.6); transform: translateY(-3px); }
.post-card a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: var(--fg-2); }
.post-card h3 { font-family: var(--display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--white); }
.post-card p { font-size: .9375rem; line-height: 1.55; }
.post-cat { font: 600 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.post-meta { margin-top: auto; padding-top: 8px; font-size: .8125rem; color: var(--fg-3); }
.post-card[hidden] { display: none; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.blog-list { padding-top: 8px; }
.blog-list .post-grid { margin-top: 24px; }
.post-empty { padding: 28px; border-radius: 18px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter button { font: 500 .9375rem/1 var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  color: var(--fg-2); background: transparent; border: 1px solid var(--hair); transition: border-color .2s, color .2s, background-color .2s; }
.cat-filter button:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.cat-filter button[aria-pressed="true"] { color: #16191D; background: var(--teal); border-color: var(--teal); }

.post-more { padding-top: 64px; padding-bottom: 32px; }

/* ---------- Homepage block ---------- */
.home-blog-all { margin-top: 28px; }

/* ---------- The LinkedIn starter guide, featured at the top of the list ---------- */
.guide-feature { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 24px;
  padding: 24px 26px; border-radius: 20px; text-decoration: none; color: var(--fg-2); border-color: rgba(20,163,158,.4);
  transition: border-color .25s, transform .25s var(--ease); }
.guide-feature:hover { border-color: rgba(20,163,158,.8); transform: translateY(-2px); }
.guide-feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(20,163,158,.15); color: var(--teal); }
.guide-feature .ico svg { width: 26px; height: 26px; }
.guide-feature b { display: block; font: 600 1.375rem/1.2 var(--display); color: var(--white); }
.guide-feature p { margin-top: 4px; font-size: .9375rem; }
.guide-feature > svg { width: 22px; height: 22px; color: var(--teal); }
@media (max-width: 640px) { .guide-feature { grid-template-columns: 44px minmax(0, 1fr); } .guide-feature > svg { display: none; } }

/* ---------- Article pages: a plain, still, light reading page ----------
   Each article's <body> has class="post-page" (set by tools/blog.py). No turning ring behind the text,
   the header is always solid, and the content sits on light paper with dark text. Header and footer stay dark. */
.post-page { background: var(--paper); }
.post-page .dial { display: none; }
.post-page .site-head { background: rgba(31,35,40,.98); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.post-page main {
  background: var(--paper); color: var(--fg-2);
  --fg: #1F2328; --fg-2: #33383F; --fg-3: #686D75; --white: #1F2328;
  --hair: rgba(31,35,40,.13); --hair-2: rgba(31,35,40,.08);
  --surface: #FFFFFF; --surface-2: #EEEDE9; --glass: #FFFFFF;
  --teal-ink: #0B7470;      /* turquoise dark enough for small text on paper */
}
.post-page main .glass { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 2px rgba(31,35,40,.05); }
.post-page .crumbs li + li::before { color: rgba(31,35,40,.3); }
.post-page .chips-row li { background: #FFFFFF; }
.post-page .chips-row svg, .post-page .post-cat, .post-page .post-cta b em,
.post-page .post-cta .ico { color: var(--teal-ink); }
.post-page .prose a:hover, .post-page .post-toc a:hover { color: var(--teal-ink); }
.post-page .prose code { background: rgba(31,35,40,.07); }
.post-page .prose blockquote { background: #E6F3F1; border-color: rgba(20,163,158,.45); }
.post-page .btn-ghost { color: var(--ink); border-color: rgba(31,35,40,.3); }
.post-page .btn-ghost:hover { border-color: var(--ink); }
.post-page .site-foot { margin-top: 0; }
