/* Ventis blog (theme 1.1.2): posts index, archives, search, single posts, 404 extras.
   Uses the tokens and components from global.css / components.css. */

/* ---- Hero ---- */
.ventis-blog-hero__inner { padding-block: var(--ventis-space-6) var(--ventis-space-8); }
.ventis-blog-hero h1 { max-width: 24ch; }
.ventis-blog-hero .ventis-page-hero__lead { max-width: 60ch; margin-bottom: 0; }
.ventis-blog-hero__page { display: inline-block; font-size: 0.5em; vertical-align: middle; color: var(--ventis-muted); font-weight: 700; }
.ventis-blog-hero__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ventis-space-3) var(--ventis-space-5); margin-top: var(--ventis-space-5); }
.ventis-blog-hero__tools .search-form { margin: 0; flex: 1 1 20rem; max-width: 30rem; }
.ventis-blog-hero__tools .search-form label { flex: 1; display: flex; }
.ventis-blog-hero__tools .search-field, .ventis-404__more .search-field { min-height: 3.1rem; border: 2px solid var(--ventis-border-strong); background: var(--ventis-white); font-size: 1.0625rem; }
.ventis-blog-hero__tools .search-submit, .ventis-404__more .search-submit { min-height: 3.1rem; font-family: var(--ventis-font-heading); font-weight: 800; }
.search-field:focus { outline: none; border-color: var(--ventis-focus) !important; box-shadow: 0 0 0 3px rgb(31 110 156 / 0.3); }
.ventis-blog-rss { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--ventis-blue-text); text-decoration: none; min-height: 2.75rem; }
.ventis-blog-rss .ventis-icon { color: var(--ventis-gold-text); }
.ventis-blog-rss:hover { text-decoration: underline; }

/* Search forms: never wider than their container */
.ventis-blog .search-form, .ventis-404 .search-form { display: flex; gap: 0.5rem; width: 100%; }
.ventis-blog .search-form label, .ventis-404 .search-form label { flex: 1 1 auto; min-width: 0; display: flex; }
.ventis-blog .search-form .search-field, .ventis-404 .search-form .search-field { width: 100%; min-width: 0; }
.ventis-blog .search-form .search-submit, .ventis-404 .search-form .search-submit { flex: none; }

/* ---- Category filter row ---- */
.ventis-blog-filter { margin-bottom: var(--ventis-space-6); }
.ventis-blog-filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ventis-space-2) var(--ventis-space-3); }
.ventis-blog-filter li { margin: 0; }
.ventis-blog-filter a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.45rem 1rem;
  border: 2px solid var(--ventis-border); border-radius: var(--ventis-radius-pill); background: var(--ventis-white);
  color: var(--ventis-navy); font-family: var(--ventis-font-heading); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: border-color var(--ventis-speed), background var(--ventis-speed), color var(--ventis-speed);
}
.ventis-blog-filter a .ventis-icon { width: 1.05rem; height: 1.05rem; color: var(--ventis-blue-text); }
.ventis-blog-filter a:hover { border-color: var(--ventis-navy); }
.ventis-blog-filter a[aria-current="page"] { background: var(--ventis-navy); border-color: var(--ventis-navy); color: var(--ventis-white); box-shadow: inset 0 -3px 0 var(--ventis-gold); }
.ventis-blog-filter a[aria-current="page"] .ventis-icon { color: var(--ventis-gold); }
@media (max-width: 37.49em) {
  .ventis-blog-filter ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; scroll-snap-type: x proximity; margin-inline: calc(var(--ventis-gutter) * -1); padding-inline: var(--ventis-gutter); }
  .ventis-blog-filter li { flex: none; scroll-snap-align: start; }
}

/* ---- Cards ---- */
.ventis-blog-grid { align-items: stretch; }
.ventis-post-card .ventis-card__media { aspect-ratio: 16 / 10; }
.ventis-post-card__title { font-size: var(--ventis-fs-h4); line-height: var(--ventis-lh-heading); margin: 0; }
.ventis-post-card__title a { color: var(--ventis-navy); text-decoration: none; }
.ventis-post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ventis-post-card .ventis-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.ventis-post-card__facts { font-weight: 600; }
.ventis-post-fallback {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(120% 120% at 85% 0%, #17406F 0%, var(--ventis-navy) 55%, var(--ventis-navy-dark) 100%);
  color: var(--ventis-gold);
}
.ventis-post-fallback::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--ventis-gold), var(--ventis-blue)); }
.ventis-post-fallback .ventis-icon { width: 3.25rem; height: 3.25rem; transition: transform 400ms var(--ventis-ease); }
.ventis-card--image:hover .ventis-post-fallback .ventis-icon { transform: scale(1.08); }
.ventis-post-fallback__brand { position: absolute; left: 1rem; bottom: 0.9rem; font-family: var(--ventis-font-heading); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8125rem; color: var(--ventis-muted-on-dark); }
.ventis-blog-count { color: var(--ventis-muted); font-weight: 600; margin: 0 0 var(--ventis-space-4); }

/* ---- Pagination ---- */
.ventis-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.ventis-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; min-height: 2.9rem; padding: 0.4rem 0.9rem; border: 2px solid var(--ventis-border); border-radius: var(--ventis-radius-sm); background: var(--ventis-white); color: var(--ventis-navy); font-family: var(--ventis-font-heading); font-weight: 800; text-decoration: none; }
.ventis-pagination a.page-numbers:hover { border-color: var(--ventis-navy); }
.ventis-pagination .page-numbers.current { background: var(--ventis-navy); border-color: var(--ventis-navy); color: var(--ventis-white); box-shadow: inset 0 -3px 0 var(--ventis-gold); }
.ventis-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ---- Empty state ---- */
.ventis-blog-empty { max-width: 44rem; margin-inline: auto; text-align: center; padding: var(--ventis-space-7) var(--ventis-space-5); border: 1px solid var(--ventis-border); border-top: 6px solid var(--ventis-gold); border-radius: var(--ventis-radius-lg); background: var(--ventis-white); box-shadow: var(--ventis-shadow-sm); }
.ventis-blog-empty .ventis-icon-tile { margin-inline: auto; }
.ventis-blog-empty h2 { font-size: var(--ventis-fs-h3); margin: var(--ventis-space-4) 0 var(--ventis-space-2); }
.ventis-blog-empty .ventis-widget__links { text-align: left; margin: var(--ventis-space-5) 0; }
.ventis-blog-empty__call { margin: 0; color: var(--ventis-muted); }
.ventis-blog-empty__call a { font-weight: 700; }

/* ---- Single post ---- */
.ventis-article__cat { margin: 0 0 var(--ventis-space-3); }
.ventis-article__cat .ventis-post-card__tag { text-decoration: none; }
.ventis-article__cat .ventis-post-card__tag:hover { background: var(--ventis-navy); color: var(--ventis-white); }
.ventis-article__header h1 { max-width: 28ch; }
.ventis-article__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: var(--ventis-space-4) 0 0; color: var(--ventis-muted); font-weight: 600; font-size: 1rem; }
.ventis-article__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ventis-article__meta .ventis-icon { width: 1.05rem; height: 1.05rem; color: var(--ventis-gold-text); }
.ventis-article__section { padding-top: var(--ventis-space-7); }
.ventis-article__main { min-width: 0; max-width: 48rem; }
.ventis-article__image { margin: 0 0 var(--ventis-space-6); }
.ventis-article__image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--ventis-radius-lg); box-shadow: var(--ventis-shadow); }
.ventis-article__image figcaption { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ventis-muted); }

.ventis-toc { margin: 0 0 var(--ventis-space-7); padding: var(--ventis-space-5); border: 1px solid #BFDDF0; border-left: 5px solid var(--ventis-gold); border-radius: var(--ventis-radius-lg); background: linear-gradient(160deg, var(--ventis-blue-soft), var(--ventis-white)); }
.ventis-toc__title { display: flex; align-items: center; gap: 0.5rem; font-size: var(--ventis-fs-h4); margin: 0 0 var(--ventis-space-3); }
.ventis-toc__title .ventis-icon { color: var(--ventis-blue-text); }
.ventis-toc ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.ventis-toc li::marker { color: var(--ventis-gold-text); font-weight: 800; }
.ventis-toc a { color: var(--ventis-navy); font-weight: 600; text-decoration-color: rgb(11 36 71 / 0.3); text-underline-offset: 0.2em; }
.ventis-toc a:hover { color: var(--ventis-blue-text); text-decoration-color: currentColor; }

.ventis-prose { font-size: 1.1875rem; line-height: 1.75; color: var(--ventis-charcoal); overflow-wrap: break-word; }
.ventis-prose > * { margin-block: 0 1.25em; }
.ventis-prose h2 { font-size: var(--ventis-fs-h2); margin-top: 2em; margin-bottom: 0.6em; scroll-margin-top: calc(var(--ventis-header-h) + 5rem); }
.ventis-prose h2::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 0.6rem; border-radius: 2px; background: var(--ventis-gold); }
.ventis-prose h3 { font-size: var(--ventis-fs-h3); margin-top: 1.6em; margin-bottom: 0.5em; scroll-margin-top: calc(var(--ventis-header-h) + 5rem); }
.ventis-prose h4 { margin-top: 1.4em; margin-bottom: 0.4em; }
.ventis-prose > :first-child { margin-top: 0; }
.ventis-prose a { color: var(--ventis-blue-text); font-weight: 600; text-underline-offset: 0.2em; }
.ventis-prose a:hover { color: var(--ventis-navy); }
.ventis-prose ul, .ventis-prose ol { padding-left: 1.35em; }
.ventis-prose li { margin-bottom: 0.45em; }
.ventis-prose ul li::marker { color: var(--ventis-gold-text); }
.ventis-prose ol li::marker { color: var(--ventis-navy); font-weight: 800; }
.ventis-prose blockquote, .ventis-prose .wp-block-quote { margin-inline: 0; padding: var(--ventis-space-4) var(--ventis-space-5); border-left: 5px solid var(--ventis-gold); background: var(--ventis-off-white); border-radius: 0 var(--ventis-radius) var(--ventis-radius) 0; font-size: 1.1875rem; color: var(--ventis-navy); }
.ventis-prose blockquote p:last-child { margin-bottom: 0; }
.ventis-prose blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.9375rem; font-style: normal; color: var(--ventis-muted); }
.ventis-prose img, .ventis-prose video, .ventis-prose iframe { max-width: 100%; height: auto; border-radius: var(--ventis-radius-lg); }
.ventis-prose figure { margin-inline: 0; }
.ventis-prose figcaption { font-size: 0.9375rem; color: var(--ventis-muted); margin-top: 0.5rem; }
.ventis-prose .wp-block-table { overflow-x: auto; margin-inline: 0; }
.ventis-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ventis-prose th, .ventis-prose td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--ventis-border); text-align: left; vertical-align: top; }
.ventis-prose thead th { background: var(--ventis-navy); color: var(--ventis-white); font-family: var(--ventis-font-heading); }
.ventis-prose tbody tr:nth-child(even) { background: var(--ventis-off-white); }
.ventis-prose code { font-size: 0.9em; background: var(--ventis-off-white); padding: 0.1em 0.35em; border-radius: 4px; }
.ventis-prose hr { margin-block: 2.5em; }
.ventis-prose .wp-block-image.alignwide, .ventis-prose .alignwide { margin-inline: 0; }

.ventis-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--ventis-space-6) 0 0; }
.ventis-article__tags a { padding: 0.25rem 0.75rem; border-radius: var(--ventis-radius-pill); background: var(--ventis-off-white); border: 1px solid var(--ventis-border); color: var(--ventis-navy); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }

.ventis-article__cta { margin-top: var(--ventis-space-7); padding: var(--ventis-space-6) var(--ventis-space-5); border-radius: var(--ventis-radius-lg); background: var(--ventis-navy); color: var(--ventis-muted-on-dark); border-top: 6px solid var(--ventis-gold); }
.ventis-article__cta h2 { color: var(--ventis-white); font-size: var(--ventis-fs-h3); margin: 0 0 var(--ventis-space-2); }
.ventis-article__cta p { margin: 0 0 var(--ventis-space-4); }
.ventis-article__cta .ventis-btn--outline { --_fg: var(--ventis-white); --_bd: var(--ventis-white); color: var(--ventis-white); border-color: rgb(255 255 255 / 0.85); background: transparent; }
.ventis-article__cta .ventis-btn--outline:hover { background: var(--ventis-white); color: var(--ventis-navy); }

.ventis-author-box { display: flex; gap: var(--ventis-space-4); align-items: flex-start; margin-top: var(--ventis-space-6); padding: var(--ventis-space-5); border: 1px solid var(--ventis-border); border-radius: var(--ventis-radius-lg); background: var(--ventis-white); }
.ventis-author-box__avatar { flex: none; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--ventis-blue-soft); }
.ventis-author-box__avatar--logo { padding: 1rem; background: var(--ventis-navy); object-fit: contain; }
.ventis-author-box p { margin: 0; }
.ventis-author-box__label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ventis-gold-text); }
.ventis-author-box__name { font-family: var(--ventis-font-heading); font-weight: 800; font-size: 1.1875rem; color: var(--ventis-navy); }
.ventis-author-box__bio { margin-top: 0.35rem !important; font-size: 1rem; }
.ventis-author-box .ventis-link-arrow { display: inline-flex; margin-top: 0.5rem; font-weight: 700; }

.ventis-blog-sidebar .ventis-widget--cta .ventis-btn { margin-top: var(--ventis-space-2); }
.ventis-blog-sidebar .ventis-widget__links a[aria-current="true"] { background: var(--ventis-blue-soft); box-shadow: inset 4px 0 0 var(--ventis-gold); padding-left: 0.75rem; font-weight: 800; }
.ventis-blog-sidebar .widget_search .search-form { margin: 0; }
.ventis-blog-sidebar .ventis-widget ul:not(.ventis-widget__links) { padding-left: 1.1rem; margin: 0; }

.ventis-related .ventis-section__header { margin-bottom: var(--ventis-space-6); }
.ventis-comments { max-width: 48rem; }

/* ---- 404 extras ---- */
.ventis-404__more .search-form { max-width: none; margin: var(--ventis-space-3) 0 var(--ventis-space-5); }
.ventis-404__more .ventis-widget__links { background: var(--ventis-white); border: 1px solid var(--ventis-border); border-radius: var(--ventis-radius-lg); padding: 0 var(--ventis-space-4); }

@media (max-width: 37.49em) {
  .ventis-author-box { flex-direction: column; }
  .ventis-article__cta .ventis-btn { width: 100%; }
  .ventis-prose { font-size: 1.125rem; }
}
@media print {
  .ventis-blog-filter, .ventis-blog-hero__tools, .ventis-related, .ventis-article__cta, .ventis-cta-band { display: none !important; }
}
