/* Shared landing-page alignment; editorial type and article content stay intact. */
html { font-size: 12px; }
body { zoom: 1; }
.site-header {
  position: static;
  width: 100%;
  max-width: 1120px;
  height: 106px;
  margin: 0 auto;
  padding: 0 36px;
  align-items: center;
  pointer-events: auto;
}
.site-logo { width: 188px; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 14px; color: #17191a; }
.demo-link {
  display: inline-flex;
  padding: 15px 22px;
  background: #1b1d1e;
  color: white;
  border: 1px solid #1b1d1e;
  border-radius: 5px;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.demo-link:hover { color: white; opacity: .7; }
.blog-index, .article-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px 36px 84px;
}
.index-header, .article-hero { text-align: left; }
.article-hero { width: 100%; margin: 0 0 64px; }
.article-title-block h1 { margin: 0; max-width: 18ch; }
.article-dek { margin: 21px 0 0; }
.article { width: min(100%, 680px); margin: 0 auto; }
.blog-footer { width: calc(100% - 72px); max-width: 1048px; }
@media (max-width: 700px) {
  .site-header { display: flex; flex-wrap: wrap; height: auto; gap: 20px; padding: 24px 22px; }
  .site-logo { width: 148px; }
  .site-header nav { gap: 18px; }
  .demo-link { padding: 10px 12px; font-size: 12px; }
  .blog-index, .article-shell { padding: 40px 22px 60px; }
  .article-hero { margin-bottom: 40px; }
  .blog-footer { width: calc(100% - 44px); }
}

.reading-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--title-font);
  font-size: 13px;
  line-height: 1.5;
}
.reading-progress {
  position: fixed;
  right: 12px;
  top: 25vh;
  height: 50vh;
  width: 3px;
  background: #e9e9e9;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #365845;
  transform: scaleY(0);
  transform-origin: top;
}
@media (max-width: 700px) {
  .reading-progress { right: 5px; width: 2px; }
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.article-layout .article { grid-column: 2; width: 100%; }
.toc-sidebar { position: sticky; top: 32px; }
.article-toc { font-family: var(--title-font); font-size: 12px; }
.article-toc summary { color: #333; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc nav { display: grid; border-left: 1px solid #e3e6e3; }
.article-toc nav a { display: block; padding: 9px 0 9px 13px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: #777; line-height: 1.5; }
.article-toc nav a:hover { color: #17191a; }
.article-toc nav a[aria-current="location"] { border-left-color: #365845; color: #365845; }
.article h2[id], #article-introduction { scroll-margin-top: 32px; }
.article h2:focus, #article-introduction:focus { outline: none; }
@media (max-width: 1000px) {
  .article-layout { display: block; }
  .article-layout .article { width: min(100%, 680px); }
  .toc-sidebar { position: static; max-width: 680px; margin: 0 auto 32px; }
  .article-toc { border-top: 1px solid #e3e6e3; border-bottom: 1px solid #e3e6e3; padding: 16px 0; }
  .article-toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; }
  .article-toc summary::after { content: '+'; }
  .article-toc[open] summary::after { content: '−'; }
  .article-toc nav { margin-top: 14px; }
}

.post-meta time { display: block; }
.post-reading-time { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
