/* ==========================================================================
   Blog listing + article. Heading levels follow the old blog 1:1
   (H1 blog title, H2 section, H3 article title, H4 listing titles / Categories).
   ========================================================================== */
.rm-blog { padding: var(--rm-section) var(--rm-gutter); }
.rm-blog > * { max-width: var(--rm-wide); margin-inline: auto; }
.rm-blog__title { font-size: clamp(1.8rem, 3.2vw, 2.8rem) !important; margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.rm-blog__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rm-blog__layout > * { margin: 0 !important; }
.rm-post .rm-blog__layout { grid-template-columns: minmax(0, 1fr) 240px; }
.rm-blog__aside { position: sticky; top: 120px; display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--rm-r-card); background: var(--rm-paper); }
.rm-blog__aside > * { margin: 0 !important; }
.rm-blog__aside h4 { font-size: 1.1rem; }
.rm-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-cats a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--rm-ink); text-decoration: none; font-weight: 500; }
.rm-cats a:hover { background: #fff; color: var(--rm-orange-text); }

/* Listing card (reese/post-card) */
.rm-post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.rm-post-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: var(--rm-r-card); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--rm-line); text-decoration: none; color: inherit; transition: box-shadow .3s var(--rm-ease), transform .3s var(--rm-ease); }
.rm-post-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--rm-line), var(--wp--custom--shadow--raised); color: inherit; }
.rm-post-card__media { display: block; overflow: hidden; }
.rm-post-card__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--rm-ease); }
.rm-post-card:hover .rm-post-card__img { transform: scale(1.04); }
.rm-post-card__body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.rm-post-card__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rm-orange-text); }
.rm-post-card__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin: 0; }
.rm-post-card__title a { color: inherit; text-decoration: none; }
.rm-post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rm-post-card__body > * { margin: 0; }
.rm-post-card__excerpt { color: var(--rm-steel); }
.rm-post-card__more { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--rm-ink); display: inline-flex; align-items: center; gap: 10px; }
.rm-post-card__more::after { content: ""; width: 18px; height: 18px; background: var(--rm-orange-deep); -webkit-mask: var(--rm-arrow) center / contain no-repeat; mask: var(--rm-arrow) center / contain no-repeat; transition: transform .3s var(--rm-ease); }
.rm-post-card:hover .rm-post-card__more::after { transform: translateX(4px); }
.wp-block-query-pagination { margin-top: 2rem; gap: 12px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; }

/* Article */
.rm-post__article { display: grid; gap: 1.25rem; }
.rm-post__article > * { margin: 0 !important; }
.rm-post__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--rm-ink); }
.rm-post__back a::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--rm-arrow) center / contain no-repeat; mask: var(--rm-arrow) center / contain no-repeat; transform: rotate(180deg); }
.rm-post__title { font-size: clamp(2rem, 4.2vw, 3.4rem) !important; line-height: 1.05; letter-spacing: -.04em; max-width: 20ch; }
.rm-post__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rm-orange-text); }
.rm-post__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rm-r-media); }
.rm-post__content { max-width: 720px; font-size: 1.125rem; line-height: 1.8; color: var(--rm-steel); }
.rm-post__content > * + * { margin-top: 1.4em !important; }
/* Old article uses bold lead-ins followed by a line break as sub-titles: style them, not other bold text. */
.rm-post__content p > strong:has(+ br), .rm-post__content p > strong:only-child { display: inline-block; font-family: var(--rm-display); font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .35em; }
.rm-share { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--rm-line); max-width: 720px; }
.rm-share p { font-weight: 600; color: var(--rm-ink); }
.rm-share ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.rm-share a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--rm-paper); color: var(--rm-ink); text-decoration: none; font-size: .875rem; font-weight: 600; }
.rm-share a:hover { background: var(--rm-orange); }

@media (max-width: 900px) {
	.rm-blog__layout, .rm-post .rm-blog__layout { grid-template-columns: 1fr; }
	.rm-blog__aside { position: static; }
	.rm-blog .rm-blog__layout > .rm-blog__aside { order: 2; }
	.rm-post-card { grid-template-columns: 1fr; }
}
