/**
 * WB Blog — minimal structural CSS.
 *
 * Visual styling (typography, colors, spacing, cards, breadcrumbs) is owned by
 * the theme Vite pipeline: src/themes/wb-theme/_dev/css/blog/.
 * This file keeps only layout primitives so the module remains functional
 * (content readable, links clickable, layout not broken) without theme assets.
 *
 * See specs/modules/wbblog.spec.md § Asset ownership.
 */

/* Neutralise Bootstrap .card chrome on the page shell (theme page.tpl wraps
   #content with .card — the module page should not inherit its background/border). */
body[id^="module-wbblog"] #content.page-content.card {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Box-sizing scope */
.wb-blog,
.wb-blog *,
.wb-blog *::before,
.wb-blog *::after {
    box-sizing: border-box;
}

/* Post grid — bare layout */
.wb-blog__list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Category nav — horizontal track (theme owns chip chrome + Swiper) */
.wb-blog-nav {
    position: relative;
    max-width: 100%;
}

.wb-blog-nav__carousel {
    max-width: 100%;
}

.wb-blog-nav__carousel .swiper-slide {
    width: auto;
}

/* Post card — bare flex column */
.wb-blog-card {
    display: flex;
    flex-direction: column;
}

.wb-blog-card__img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Cover image — responsive */
.wb-blog__cover-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Content images — responsive */
.wb-blog__content img {
    max-width: 100%;
    height: auto;
}
