/* Sidebar, related posts and topic links shared by every blog article,
   including pages that carry their own stylesheet instead of article.css. */
/* The global aside rule adds a left rule and padding for the homepage; the
   article sidebar separates itself with whitespace instead. */
.article-aside { margin: 40px 0 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
/* The site-wide nav rule is a flex row; these lists read top to bottom. */
.popular-posts, .recent-posts, .aside-topics, .related-posts { display: block; }
.popular-posts, .recent-posts, .aside-topics { margin: 0 0 36px; }
.article-aside > :last-child { margin-bottom: 0; }
.popular-posts-title, .recent-posts-title, .aside-topics-title, .related-posts-title { margin: 0 0 14px; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.popular-posts ol, .recent-posts ul, .aside-topics ul, .related-posts ol { margin: 0; padding: 0; list-style: none; }
.popular-posts li, .recent-posts li, .related-posts li { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.popular-posts a, .recent-posts a, .related-posts a { color: var(--ink); text-decoration: none; }
.popular-posts a:hover, .recent-posts a:hover, .related-posts a:hover { color: var(--accent, #38553e); }
.popular-posts a:hover span, .recent-posts a:hover, .related-posts a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.popular-posts li { margin: 0 0 14px; }
.popular-posts li:last-child, .recent-posts li:last-child { margin-bottom: 0; }
.popular-posts li a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.popular-posts img { display: block; width: 64px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
/* Months fold with a native <details>, so the archive works without script.
   Pages with their own details/summary styles must not leak into it. */
.article-aside details { margin: 0; padding: 0; border: 0; }
.recent-month + .recent-month { margin-top: 6px; }
.article-aside .recent-month summary { display: flex; align-items: center; gap: 8px; margin: 0 0 0 -2px; padding: 6px 2px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; border-radius: 3px; }
.recent-month summary::-webkit-details-marker { display: none; }
.article-aside .recent-month summary::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin: 0 3px 0 1px; }
.article-aside .recent-month[open] summary::before { transform: rotate(45deg); margin-top: -3px; }
.article-aside .recent-month summary:hover { color: var(--accent, #38553e); }
.article-aside .recent-month summary:focus-visible { outline: 2px solid var(--accent, #38553e); outline-offset: 2px; }
.recent-month-count { margin-left: auto; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent-month ul { padding: 6px 0 4px; }
.recent-posts li { position: relative; padding-left: 16px; }
.recent-posts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: #b9b8ae; }
.recent-posts [aria-current="page"] { color: var(--accent, #38553e); font-weight: 600; }
.recent-posts li:has([aria-current="page"])::before { background: var(--accent, #38553e); }
.aside-topics ul { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-topics a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.3; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.aside-topics a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.aside-topics a:hover, .aside-topics a[aria-current] { border-color: var(--accent, #38553e); color: var(--accent, #38553e); }
.aside-topics a:focus-visible { outline: 2px solid var(--accent, #38553e); outline-offset: 2px; }
.related-posts { margin: 44px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.related-posts ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-posts li { margin: 0; }
.related-posts li a { display: grid; gap: 10px; }
.related-posts img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
@media (max-width: 700px) { .related-posts ol { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .article-aside .recent-month summary::before, .aside-topics a { transition: none; } }
