/* Q4 Workspace: blog index and article styles (loaded after site.css) */

/* ---------- Shared ---------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: #8b9594; }
.crumbs a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(111, 184, 174, 0.35); }
.crumbs a:hover { border-bottom-color: var(--accent); }
.crumbs [aria-current] { color: #b4bdbc; }

/* ---------- Blog index: the latest article featured, then a plain list ---------- */
.crumbs--left { justify-content: flex-start; }
.bl-wrap { max-width: 1040px; margin: 0 auto; padding: 150px 16px 110px; }
.bl-head { padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.bl-head h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: #fff; }
.bl-head p { max-width: 560px; margin-top: 16px; font-size: 18px; line-height: 1.6; color: #a3acab; }
.bl-meta { font-size: 13.5px; color: #8b9594; letter-spacing: .01em; }
.bl-sum { margin-top: 10px; font-size: 16px; line-height: 1.6; color: #b4bdbc; }
.bl-feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.bl-feat__img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.bl-feat h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.bl-feat .bl-meta:last-child { margin-top: 18px; }
.bl-feat h2 a, .bl-row h3 a { color: #fff; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.bl-feat h2 a:hover, .bl-row h3 a:hover { background-size: 100% 1px; }
.bl-more { padding-top: 40px; }
.bl-more > h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b9594; }
.bl-rows { list-style: none; margin-top: 8px; }
.bl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.bl-row h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.bl-row .bl-sum { max-width: 640px; }
.bl-dot { display: none; }
.bl-row .bl-sum + .bl-meta { margin-top: 10px; }
@media (max-width: 760px) {
  .bl-wrap { padding-top: 120px; }
  .bl-feat { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
  .bl-row { grid-template-columns: 1fr; gap: 6px; }
  .bl-row .bl-br { display: none; }
  .bl-row .bl-dot { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .bl-feat h2 a, .bl-row h3 a { transition: none; } }

/* ---------- Article ---------- */
.post { padding: 160px 16px 40px; }
.post__head { max-width: 820px; margin: 0 auto; text-align: center; }
.post__tag { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.post__head h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; color: #fff; text-wrap: balance; }
.post__lede { max-width: 660px; margin: 20px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #a3acab; text-wrap: balance; }
.post__by { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 26px; font-size: 14px; color: #8b9594; }
.post__by a { color: #e6ecec; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.post__by a:hover { border-bottom-color: var(--accent); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #06231f; background: var(--accent); flex: none; }
.post__cover { max-width: 1000px; margin: 44px auto 0; }
.post__cover img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1); }
.post__layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 56px; max-width: 1040px; margin: 56px auto 0; }
.post__toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.post__toc p { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b9594; margin-bottom: 12px; }
.post__toc ol { list-style: none; display: grid; gap: 10px; border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 14px; }
.post__toc a { color: #b4bdbc; text-decoration: none; line-height: 1.4; }
.post__toc a:hover { color: var(--accent); }

/* the article text */
.prose { font-size: 18px; line-height: 1.75; color: #d4dcdb; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(25px, 2.4vw, 31px); font-weight: 700; line-height: 1.18; letter-spacing: -0.03em; color: #fff; scroll-margin-top: 100px; text-wrap: balance; }
.prose h3 { margin-top: 1.7em; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: #fff; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #9fd8cf; }
.prose strong { color: #fff; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: #b4bdbc; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th:nth-child(2), .prose th:nth-child(3), .prose td:nth-child(2), .prose td:nth-child(3) { text-align: center; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: top; }
.prose th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8b9594; white-space: nowrap; }
.prose td:first-child { color: #fff; font-weight: 600; }

/* the end of an article: a signature and more to read, in the text column, no boxes */
.post__foot { margin-top: 56px; padding: 28px 0 100px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 15.5px; line-height: 1.65; color: #a3acab; }
.post__sign { display: flex; gap: 16px; align-items: flex-start; }
.post__sign .avatar { width: 44px; height: 44px; margin-top: 2px; }
.post__sign strong { color: #fff; }
.post__foot a { color: var(--accent); }
.post__more { margin-top: 18px; padding-left: 60px; }
@media (max-width: 960px) {
  .post__layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .post__toc { position: static; margin-bottom: 36px; padding: 18px 20px; border-radius: 16px; background: rgba(10, 13, 13, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 560px) {
  .post { padding-top: 130px; }
  .prose { font-size: 17px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 9px 7px; }
  .prose th { white-space: normal; font-size: 10.5px; letter-spacing: .06em; }
  .post__more { padding-left: 0; }
}
