/*
 * Refresh: the blog and post category pages (inc/refresh-blog.php), board "Blog B · List + Topics Sidebar" (Aaron, Nov 19, 2026).
 * 01 Page and title band   02 Post rows   03 Topics sidebar   04 Pages   05 Tablets and phones
 */

/* 01 Page and title band */
body.pb-blog-page { background: var(--pb-white); }
body.pb-blog-page #content { padding-top: 0 !important; } /* the band sits right under the header */
body.pb-blog-page .pb-blog { font-family: var(--pb-font); color: var(--pb-ink); font-size: 18px; line-height: 1.7; width: 100%; }
body.pb-blog-page .pb-blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
body.pb-blog-page .pb-blog-band { padding: 84px 0 48px; /* clears the logo hanging below the header */ background: var(--pb-blue); color: var(--pb-white); }
body.pb-blog-page .pb-blog-band h1 { margin: 0; padding: 0; font-family: var(--pb-font); font-weight: 900; font-size: 64px; line-height: 1; text-transform: uppercase; color: var(--pb-white); }
body.pb-blog-page .pb-blog-band h1::after { content: ""; display: block; width: 96px; height: 8px; margin-top: 20px; border-radius: 4px; background: var(--pb-sky); }
body.pb-blog-page .pb-blog-band p { max-width: 760px; margin: 18px 0 0; font-size: 19px; line-height: 1.6; color: var(--pb-white); }
body.pb-blog-page .pb-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
body.pb-blog-page .pb-blog-grid > * { min-width: 0; }
body.pb-blog-page .pb-blog a:focus-visible { outline: 3px solid var(--pb-navy) !important; outline-offset: 3px; border-radius: 4px; }

/* 02 Post rows: photo, topic and date, title, summary, Read more */
body.pb-blog-page .pb-blog-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
body.pb-blog-page .pb-blog-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: center; margin: 0; padding: 0 0 24px; border-bottom: 2px solid var(--pb-pale); }
body.pb-blog-page .pb-blog-row:last-child { border-bottom: 0; }
body.pb-blog-page .pb-blog-thumb { display: block; overflow: hidden; border-radius: 20px; }
body.pb-blog-page .pb-blog-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s ease; }
body.pb-blog-page .pb-blog-row:hover .pb-blog-thumb img { transform: scale(1.03); }
body.pb-blog-page .pb-blog-row__text { min-width: 0; }
body.pb-blog-page .pb-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
body.pb-blog-page .pb-blog-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--pb-pale); color: var(--pb-navy); font-size: 13px; font-weight: 800; line-height: 1.5; }
body.pb-blog-page .pb-blog-date { display: inline-flex; align-items: center; gap: 6px; color: #3d4650; font-size: 14px; font-weight: 600; }
body.pb-blog-page .pb-blog-row h2.entry-title { margin: 0 0 8px; padding: 0; font-family: var(--pb-font); font-weight: 900; font-size: 26px; line-height: 1.2; }
body.pb-blog-page .pb-blog-row h2.entry-title a { color: var(--pb-ink); font: inherit !important; text-decoration: none; }
body.pb-blog-page .pb-blog-row h2.entry-title a:hover { color: var(--pb-blue); text-decoration: underline; text-decoration-color: var(--pb-sky); text-underline-offset: 4px; text-decoration-thickness: 2px; }
body.pb-blog-page .pb-blog-ex { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: #3d4650; }
body.pb-blog-page a.pb-blog-more { font-weight: 900; font-size: 16px; color: var(--pb-blue); text-decoration: underline; text-decoration-color: var(--pb-sky); text-underline-offset: 3px; text-decoration-thickness: 2px; }
body.pb-blog-page a.pb-blog-more:hover { color: var(--pb-navy); }

/* 03 Topics sidebar (stays in view) and the "New to pigs?" box */
body.pb-blog-page .pb-blog-side { position: sticky; top: 20px; display: grid; gap: 18px; }
body.pb-blog-page .pb-blog-side > * { min-width: 0; }
body.pb-blog-page .pb-blog-box { padding: 22px; border-radius: 24px; box-shadow: 0 0 0 2px var(--pb-pale); }
body.pb-blog-page .pb-blog-box__h { margin: 0 0 12px; padding: 0; font-family: var(--pb-font); font-size: 18px; font-weight: 900; line-height: 1.2; text-transform: uppercase; color: var(--pb-navy); }
body.pb-blog-page .pb-blog-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.pb-blog-page .pb-blog-topics li { margin: 0; }
body.pb-blog-page .pb-blog-topics a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--pb-navy); font-weight: 800; font-size: 16px; text-decoration: none; }
body.pb-blog-page .pb-blog-topics a:hover { background: var(--pb-pale); }
body.pb-blog-page .pb-blog-topics a[aria-current="page"] { background: var(--pb-blue); color: var(--pb-white); }
body.pb-blog-page .pb-blog-count { font-size: 14px; font-weight: 700; color: #3d4650; }
body.pb-blog-page .pb-blog-topics a[aria-current="page"] .pb-blog-count { color: #cdeef8; }
body.pb-blog-page .pb-blog-learn { background: var(--pb-pale); box-shadow: none; }
body.pb-blog-page .pb-blog-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--pb-white); color: var(--pb-blue); }
body.pb-blog-page .pb-blog-learn p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }

/* 04 Pages */
body.pb-blog-page .pb-blog-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; }
body.pb-blog-page .pb-blog-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; box-sizing: border-box; padding: 0 12px; border-radius: 14px; box-shadow: 0 0 0 2px var(--pb-pale); color: var(--pb-blue); font-weight: 900; font-size: 16px; text-decoration: none; }
body.pb-blog-page .pb-blog-pager .page-numbers.dots { box-shadow: none; }
body.pb-blog-page .pb-blog-pager .page-numbers.current { background: var(--pb-blue); color: var(--pb-white); box-shadow: none; }
body.pb-blog-page .pb-blog-pager a.page-numbers:hover { background: var(--pb-pale); }
body.pb-blog-page .pb-blog-pager .next { margin-left: auto; padding: 0 18px; }

/* 05 Tablets and phones: topics become a sideways strip above the posts */
@media (max-width: 900px) {
	body.pb-blog-page .pb-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
	body.pb-blog-page .pb-blog-side { position: static; order: -1; }
	body.pb-blog-page .pb-blog-box { padding: 0; box-shadow: none; }
	body.pb-blog-page .pb-blog-box__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	body.pb-blog-page .pb-blog-topics { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; }
	body.pb-blog-page .pb-blog-topics a { white-space: nowrap; box-shadow: inset 0 0 0 2px var(--pb-pale); }
	body.pb-blog-page .pb-blog-learn { display: none; }
}
@media (max-width: 639px) {
	body.pb-blog-page .pb-blog-band { padding: 52px 0 32px; }
	body.pb-blog-page .pb-blog-band h1 { font-size: clamp(30px, 9vw, 44px); overflow-wrap: break-word; }
	body.pb-blog-page .pb-blog-band p { font-size: 17px; }
	body.pb-blog-page .pb-blog-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	body.pb-blog-page .pb-blog-thumb img { aspect-ratio: 16 / 10; }
	body.pb-blog-page .pb-blog-row h2.entry-title { font-size: 22px; }
	body.pb-blog-page .pb-blog-pager .next { margin-left: 0; }
	body.pb-blog-page .pb-blog-grid { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	body.pb-blog-page .pb-blog-thumb img { transition: none; }
	body.pb-blog-page .pb-blog-row:hover .pb-blog-thumb img { transform: none; }
}
