/* ==========================================================================
   Blog: listing (/blog, /blog/categories/*), post cards, article, Recent Posts.
   Old Wix blog: H1 "All Posts", cover cards with H2 titles; article = cover, H1, byline
   (author · date · read time), body, Recent Posts.
   ========================================================================== */
.tr-blog-head { background: var(--tr-ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) var(--tr-gutter); text-align: center; }
.tr-blog-head > * { margin: 0 auto !important; max-width: var(--tr-wide); }
.tr-blog-head h1 { color: #fff; font-size: var(--wp--preset--font-size--heading-xl); }
.tr-blog-head h1::after { content: ""; display: block; width: 56px; height: 4px; margin: .4em auto 0; background: var(--tr-yellow); }

.tr-post-list { max-width: var(--tr-wide); margin-inline: auto; }
.tr-post-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; list-style: none; margin: 0 !important; padding: 0 !important; }
.tr-post-grid > li { margin: 0 !important; }
.tr-post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .tr-post-grid--three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tr-post-grid--three { grid-template-columns: 1fr; } }

.tr-post-card { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border-radius: var(--tr-r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--tr-line); transition: transform .35s var(--tr-ease), box-shadow .35s var(--tr-ease); }
.tr-post-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--tr-line), var(--tr-shadow); }
.tr-post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tr-mist); }
.tr-post-card__img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--tr-ease); }
.tr-post-card:hover .tr-post-card__img { transform: scale(1.04); }
.tr-post-card__body { display: grid; align-content: start; gap: .6rem; padding: 20px 22px 24px; }
.tr-post-card__body > * { margin: 0; }
.tr-post-card__meta { font-size: .8125rem; color: var(--tr-muted); }
.tr-post-card__title { font-size: 1.375rem; line-height: 1.25; }
.tr-post-card__title a { color: var(--tr-ink); text-decoration: none; }
.tr-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.tr-post-card:has(a:focus-visible) { outline: 2px solid var(--tr-ink); outline-offset: 3px; }
.tr-post-card__excerpt { font-size: .9375rem; line-height: 1.6; }
.tr-blog .wp-block-query-pagination { margin-top: 2.5rem; gap: 10px; }
.tr-blog .wp-block-query-pagination a, .tr-blog .wp-block-query-pagination .current { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--tr-ink); color: var(--tr-ink); text-decoration: none; }
.tr-blog .wp-block-query-pagination .current { background: var(--tr-ink); color: #fff; }

/* Article */
.tr-article { max-width: 880px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--tr-gutter) var(--tr-section); display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.tr-article > * { margin: 0 !important; }
.tr-article__cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tr-r-media); }
.tr-article__head { display: grid; gap: .9rem; }
.tr-article__head > * { margin: 0 !important; }
.tr-article__title { font-size: var(--wp--preset--font-size--heading-xl); line-height: 1.12; }
.tr-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .9375rem; color: var(--tr-muted); margin: 0; }
.tr-post__meta > * + *::before { content: "·"; margin-right: 18px; color: var(--tr-line); }
.tr-post__author { font-weight: 600; color: var(--tr-ink); }
.tr-article__content { font-size: 1.125rem; line-height: 1.75; }
.tr-article__content > * { max-width: none; padding-inline: 0; }
.tr-article__content .wp-block-embed { margin: 1rem 0; }
.tr-article__content .wp-block-embed-tiktok .wp-block-embed__wrapper { display: flex; justify-content: center; }

/* Recent Posts */
.tr-recent__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tr-recent__head > * { margin: 0 !important; }
.tr-recent__all a { font-weight: 600; }

/* Category menu (old Wix "Category Header") */
.tr-cats { max-width: var(--tr-wide); margin: 0 auto 2rem; }
.tr-cats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tr-cats li { margin: 0; }
.tr-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--tr-line); color: var(--tr-ink); text-decoration: none; font-size: .9375rem; }
.tr-cats a:hover, .tr-cats a[aria-current] { background: var(--tr-yellow); box-shadow: inset 0 0 0 1.5px var(--tr-ink); }
.tr-article .tr-cats { margin: 0 0 .5rem; }
.tr-article .tr-cats ul { justify-content: flex-start; }
.tr-empty__title { font-family: var(--tr-display); font-size: 1.75rem; color: var(--tr-ink); text-align: center; }
.tr-blog .wp-block-query-no-results p { text-align: center; }
