/* ==========================================================================
   Guides index (Blog.dc.html) + guide post (BlogPost.dc.html)
   ========================================================================== */

/* Index header ----------------------------------------------------------- */
.blog-head { padding: clamp(28px, 4vw, 56px) 0 0; }
.blog-head__inner { display: flex; flex-direction: column; gap: 14px; }
.blog-head__title { font-family: var(--font-display); font-size: clamp(48px, 6.4vw, 96px); line-height: 0.88; }
.blog-head__intro { margin: 0; font-size: clamp(16px, 1.4vw, 19px); max-width: 34em; }

/* Featured --------------------------------------------------------------- */
.featured { padding: clamp(28px, 4vw, 48px) 0; }
.featured__card {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: var(--yellow); border-radius: 24px; overflow: hidden;
}
@media (max-width: 859.98px) { .featured__card { grid-template-columns: minmax(0, 1fr); } }
.featured__img { display: block; min-height: 280px; }
.featured__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured__tag {
	align-self: flex-start; background: var(--navy); color: var(--white); border-radius: var(--r-pill);
	padding: 2px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.featured__title { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 68px); line-height: 0.9; text-wrap: balance; }
.featured__title a { text-decoration: none; }
.featured__title a:hover { text-decoration: underline; }
.featured__text { margin: 0; font-size: 17px; max-width: 30em; }
.featured__read { font-size: 15px; font-weight: 600; }
.featured__cta { align-self: flex-start; min-height: 52px; padding: 0 28px; }

/* Grid ------------------------------------------------------------------- */
.posts { padding: clamp(16px, 3vw, 32px) 0 clamp(56px, 7vw, 104px); }
.posts--no-featured { padding-top: clamp(28px, 4vw, 48px); }
.posts__inner { display: flex; flex-direction: column; gap: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--yellow); }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-card__title { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 34px); line-height: 0.95; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__text { margin: 0; max-width: 28em; }
.pagination .nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: var(--border); border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.pagination .current { background: var(--navy); color: var(--white); }

/* Post ------------------------------------------------------------------- */
.post-head { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.post-head__inner { display: flex; flex-direction: column; gap: 16px; }
.post-head__meta { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.post-head__title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 104px); line-height: 0.86; text-wrap: balance; }
.post-head__lede { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; max-width: 34em; }
.post-hero__img {
	display: block; width: 100%; height: auto; aspect-ratio: 21 / 8;
	object-fit: cover; border-radius: 20px;
}
@media (max-width: 959.98px) { .post-hero__img { aspect-ratio: 4 / 3; } }

.post-body {
	max-width: var(--container); margin: 0 auto;
	padding: clamp(36px, 5vw, 72px) 20px clamp(56px, 7vw, 104px);
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start;
}
.post-body--solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 959.98px) { .post-body { grid-template-columns: minmax(0, 1fr); } }

.post-content { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; max-width: 40em; }
.post-content > * { margin: 0; }
.post-content h2 { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); line-height: 0.95; margin-top: 12px; }
.post-content h3 { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); line-height: 0.95; margin-top: 8px; }
.post-content a { font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.2em; }
.post-content img { border-radius: 16px; height: auto; }
.table-wrap { overflow-x: auto; border: var(--border); border-radius: 16px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 520px; }
.post-content thead tr { background: var(--yellow); }
.post-content th, .post-content td { text-align: left; padding: 14px 16px; }
.post-content th { font-weight: 700; }
.post-content tbody tr { border-top: 1px solid var(--hair-18); }
.post-content .num { text-align: right; }
.post-content .price { font-weight: 700; color: var(--red); white-space: nowrap; }
.pull-quote { margin: 8px 0 !important; background: var(--yellow); border-radius: 16px; padding: 24px 28px; }
.pull-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); line-height: 1; }
.pull-quote blockquote p { margin: 0; }

.post-aside {
	position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px;
	border: var(--border); border-radius: 20px; padding: 20px;
}
.post-aside__title { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 0.95; }
.post-aside__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.post-aside__thumb { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--yellow); }
.post-aside__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-aside__info { display: flex; flex-direction: column; }
.post-aside__name { font-weight: 700; }
.post-aside__price { color: var(--red); font-weight: 700; }
.post-aside__cta { min-height: 52px; }
