/* Blog styles. Uses the main site's tokens (defined in site.css :root). Plain CSS only, so nothing here
   depends on which Tailwind classes happened to be compiled into site.css. */
html.tmw-root { --font-display: "Poppins", "Poppins Fallback", system-ui, sans-serif; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tmw-main { min-height: 70vh; }

/* Page hero (mirrors PageHero) */
.tmw-hero { border-bottom: 1px solid rgb(var(--rule)); }
.tmw-hero__inner { padding-block: 3.5rem; }
@media (min-width: 640px) { .tmw-hero__inner { padding-block: 5rem; } }
.tmw-hero h1 { max-width: 48rem; font-size: 2.25rem; }
@media (min-width: 640px) { .tmw-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .tmw-hero--post h1 { font-size: 3.25rem; } .tmw-hero:not(.tmw-hero--post) h1 { font-size: 3.75rem; } }
.tmw-hero__intro { margin-top: 1.25rem; max-width: 42rem; font-size: 1.25rem; line-height: 1.6; color: rgb(var(--ink-soft)); }
.tmw-crumbs { margin-bottom: 1rem; font-size: .9rem; font-weight: 600; }
.tmw-crumbs a { color: rgb(var(--sky-700)); text-decoration: underline; text-underline-offset: 3px; }
.tmw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .75rem; font-size: .9rem; color: rgb(var(--ink-soft)); }
.tmw-404__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Card grid */
.tmw-list { padding-block: 3rem 1rem; }
.tmw-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tmw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tmw-grid { grid-template-columns: repeat(3, 1fr); } }
.tmw-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tmw-card:hover { box-shadow: 0 2px 6px rgb(15 38 86 / .08), 0 12px 24px -12px rgb(15 38 86 / .18); transform: translateY(-2px); }
.tmw-card__media { display: block; aspect-ratio: 3 / 2; background: rgb(var(--cream-deep)); overflow: hidden; }
.tmw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmw-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgb(var(--leaf-100)), rgb(var(--ember-100))); }
.tmw-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.4rem 1.6rem; }
.tmw-card__title { margin-top: .25rem; font-size: 1.3rem; line-height: 1.25; }
.tmw-card__title a { color: rgb(var(--navy-900)); text-decoration: none; }
.tmw-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tmw-card__excerpt { margin-top: .75rem; flex: 1; color: rgb(var(--ink-soft)); font-size: .98rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tmw-card__cta { margin-top: 1.25rem; align-self: flex-start; min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .95rem; }
.tmw-empty { padding-block: 3rem; font-size: 1.15rem; color: rgb(var(--ink-soft)); }

/* Pagination */
.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.navigation.pagination .page-numbers { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: .4rem .9rem; border: 2px solid rgb(var(--navy-900)); border-radius: .5rem; font-weight: 700; color: rgb(var(--navy-900)); text-decoration: none; }
.navigation.pagination a.page-numbers:hover, .navigation.pagination .page-numbers.current { background: rgb(var(--navy-900)); color: #fff; }

/* Single post */
.tmw-post__wrap { max-width: 52rem; padding-block: 2.5rem 1rem; }
.tmw-post__figure { margin: 0 0 2.25rem; }
.tmw-post__figure img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.tmw-post__figure figcaption { margin-top: .6rem; font-size: .9rem; color: rgb(var(--ink-soft)); }
.tmw-prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; color: rgb(var(--ink-soft)); }
.tmw-prose > * + * { margin-top: 1.1rem; }
.tmw-prose h2 { margin-top: 2.75rem; font-size: 1.85rem; }
.tmw-prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.tmw-prose a { font-weight: 600; color: rgb(var(--sky-700)); text-decoration: underline; text-underline-offset: 2px; }
.tmw-prose ul, .tmw-prose ol { padding-left: 1.5rem; }
.tmw-prose ul { list-style: disc; } .tmw-prose ol { list-style: decimal; }
.tmw-prose li + li { margin-top: .5rem; }
.tmw-prose img { max-width: 100%; height: auto; border-radius: var(--radius-card); }
.tmw-prose blockquote { border-left: 4px solid rgb(var(--sun)); padding: .25rem 0 .25rem 1.25rem; font-style: italic; color: rgb(var(--ink)); }
.tmw-prose figure { margin-block: 1.75rem; }
.tmw-prose figcaption { font-size: .9rem; margin-top: .5rem; }
.tmw-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(var(--rule)); }
.tmw-share { font-weight: 600; color: rgb(var(--ink)); }
.tmw-share a { display: inline-block; margin-left: .9rem; padding-block: .5rem; color: rgb(var(--sky-700)); text-decoration: underline; text-underline-offset: 3px; }

/* CTA band (mirrors CtaBand) */
.tmw-cta { margin-top: 4rem; }
.tmw-cta__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .tmw-cta__grid { grid-template-columns: 1fr auto; } }
.tmw-cta__title { max-width: 42rem; font-size: 1.875rem; color: #fff; }
@media (min-width: 640px) { .tmw-cta__title { font-size: 2.25rem; } }
.tmw-cta__text { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; color: rgb(255 255 255 / .8); }
.tmw-cta__btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Consent banner (mirrors ConsentBanner) */
.tmw-consent { position: fixed; z-index: 50; left: .75rem; right: .75rem; bottom: 5rem; padding: 1rem; background: #fff; border-top: 4px solid rgb(var(--sun)); border-radius: .5rem; box-shadow: 0 2px 6px rgb(15 38 86 / .08), 0 12px 24px -12px rgb(15 38 86 / .18); }
@media (min-width: 768px) { .tmw-consent { left: 1rem; right: auto; bottom: 1rem; max-width: 24rem; } }
.tmw-consent h2 { font-size: 1.125rem; }
.tmw-consent p { margin-top: .25rem; font-size: .875rem; color: rgb(var(--ink-soft)); }
.tmw-consent p a { font-weight: 600; color: rgb(var(--sky-700)); text-decoration: underline; text-underline-offset: 2px; }
.tmw-consent__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tmw-consent__btns .btn { min-height: 2.75rem; padding-block: .5rem; }

/* Dropdown + mobile menu are built by site-nav.js with the main site's own classes */
body.tmw-menu-open { overflow: hidden; }
.alignwide { max-width: 64rem; } .alignleft { float: left; margin: 0 1.25rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1.25rem; }
.wp-caption { max-width: 100%; }
