/* Peak City Web Design: v2 articles, news, and hub pages (small additions to v2.css) */

/* The sidebar is loaded into this container, which has to fill the row for the sticky aside to travel */
#sidebar-container { align-self: stretch; }
.aside-box > .eyebrow { margin-bottom: 10px; }
.aside-box .ticks { margin-bottom: 0; }
.aside-box .ticks li + li { margin-top: 4px; }
.aside-box .more { margin-top: 14px; }

/* Callouts and table of contents inside article text */
.prose .callout > :first-child { margin-top: 0; }
.prose .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding-left: 0; list-style: none; }
.prose .stat strong { font-weight: 900; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* News articles: full-width text with the review image floated beside it */
.news-article { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.news-article .prose { max-width: 880px; }
.news-article .prose h2 { clear: both; }
.news-article .prose h2 ~ p { max-width: 74ch; }
.prose .float-img ~ blockquote { display: flow-root; }

/* Screenshots inside articles */
.prose .shot { max-width: 640px; }
.prose .shot--narrow { max-width: 420px; }
.prose figure img { width: 100%; border: 1px solid var(--rule); background: #fff; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.shot-pair figure + figure { margin-top: 0; }
@media (max-width: 640px) {
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
}

/* Hub page cards */
.card__media { display: block; }
.card__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card > .eyebrow { margin: 0 0 12px; }
.card > h2 { margin-top: 10px; }
.card > h2.h4 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.card > h2 a { text-decoration: none; }
.card > h2 a:hover { color: var(--red); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; width: 100%; margin-top: auto; padding-top: 18px; }

@media (max-width: 640px) {
  .prose .toc ol { grid-template-columns: minmax(0, 1fr); }
}
