/* ==========================================================================
   CQI Press — Frontend Stylesheet
   Themeless layout engine for CQIP Catalogue deployments.
   All design tokens use CSS custom properties — override on :root.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
    --cqi-max-width:      1400px;
    --cqi-gutter:         1.5rem;
    --cqi-font:           inherit;
    --cqi-text:           #1f2937;
    --cqi-muted:          #6b7280;
    --cqi-bg:             #ffffff;
    --cqi-border:         #e5e7eb;
    --cqi-radius:         4px;

    /* Buttons */
    --cqi-btn-primary-bg:      #000000;
    --cqi-btn-primary-color:   #ffffff;
    --cqi-btn-primary-border:  #000000;
    --cqi-btn-outline-bg:      transparent;
    --cqi-btn-outline-color:   #000000;
    --cqi-btn-outline-border:  #000000;
    --cqi-btn-radius:          4px;
    --cqi-btn-font-size:       .9rem;
    --cqi-btn-font-weight:     600;
    --cqi-btn-padding:         .65rem 1.4rem;

    /* Nav */
    --cqi-nav-bg:              #ffffff;
    --cqi-nav-color:           #1f2937;
    --cqi-nav-hover-color:     #000000;
    --cqi-nav-height:          64px;
    --cqi-nav-border:          #e5e7eb;
    --cqi-nav-dropdown-bg:     #ffffff;
    --cqi-nav-dropdown-shadow: 0 8px 24px rgba(0,0,0,.12);
    --cqi-nav-mobile-bg:       #ffffff;

    /* Header */
    --cqi-header-bg:           var(--cqi-nav-bg);
    --cqi-header-padding:      0;

    /* Footer */
    --cqi-footer-bg:           #111827;
    --cqi-footer-color:        #d1d5db;
    --cqi-footer-padding:      3rem 0;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cqi-press-site {
    margin: 0;
    font-family: var(--cqi-font, system-ui, sans-serif);
    color: var(--cqi-text);
    background: var(--cqi-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- Site structure ----------------------------------------------------- */
.cqi-press-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cqi-press-header {
    background: var(--cqi-header-bg);
    padding: var(--cqi-header-padding);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cqi-press-main {
    flex: 1;
}

.cqi-press-footer {
    background: var(--cqi-footer-bg);
    color: var(--cqi-footer-color);
    padding: var(--cqi-footer-padding);
}

.cqi-press-footer a {
    color: inherit;
    text-decoration: none;
    opacity: .8;
    transition: opacity .15s;
}

.cqi-press-footer a:hover { opacity: 1; }

/* ---- Section element ---------------------------------------------------- */
.cqi-section {
    width: 100%;
    position: relative;
}

.cqi-section__inner {
    max-width: var(--cqi-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--cqi-gutter);
    padding-right: var(--cqi-gutter);
}

.cqi-section__inner--full {
    max-width: 100%;
}

/* ---- Heading element ---------------------------------------------------- */
.cqi-heading {
    margin-top: 0;
    line-height: 1.2;
}

.cqi-heading--1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; }
.cqi-heading--2 { font-size: clamp(1.4rem, 3vw, 2rem);    font-weight: 700; }
.cqi-heading--3 { font-size: clamp(1.1rem, 2vw, 1.4rem);  font-weight: 700; }
.cqi-heading--4 { font-size: 1.15rem; font-weight: 600; }
.cqi-heading--5 { font-size: 1rem;    font-weight: 600; }
.cqi-heading--6 { font-size: .9rem;   font-weight: 600; }

/* ---- Text element ------------------------------------------------------- */
.cqi-text {
    line-height: 1.7;
}

.cqi-text p:first-child { margin-top: 0; }
.cqi-text p:last-child  { margin-bottom: 0; }

/* ---- Image element ------------------------------------------------------ */
.cqi-image-wrap { display: block; }
.cqi-image      { max-width: 100%; height: auto; }
.cqi-image-link { display: block; }

/* ---- Button element ----------------------------------------------------- */
.cqi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: var(--cqi-btn-padding);
    border-radius: var(--cqi-btn-radius);
    font-size: var(--cqi-btn-font-size);
    font-weight: var(--cqi-btn-font-weight);
    font-family: var(--cqi-font);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
    line-height: 1.2;
    white-space: nowrap;
}

.cqi-btn--primary {
    background: var(--cqi-btn-primary-bg);
    color: var(--cqi-btn-primary-color);
    border-color: var(--cqi-btn-primary-border);
}
.cqi-btn--primary:hover {
    opacity: .85;
}

.cqi-btn--outline {
    background: var(--cqi-btn-outline-bg);
    color: var(--cqi-btn-outline-color);
    border-color: var(--cqi-btn-outline-border);
}
.cqi-btn--outline:hover {
    background: var(--cqi-btn-outline-color);
    color: #fff;
}

.cqi-btn--ghost {
    background: transparent;
    color: var(--cqi-text);
    border-color: transparent;
}
.cqi-btn--ghost:hover {
    background: rgba(0,0,0,.06);
}

.cqi-btn--sm { padding: .4rem .9rem;  font-size: .8rem; }
.cqi-btn--lg { padding: .85rem 2rem;  font-size: 1rem; }

/* ---- Utilities ---------------------------------------------------------- */
.cqi-spacer  { display: block; }
.cqi-divider { border: none; border-top: 1px solid var(--cqi-border); margin: 0; }

[x-cloak] { display: none !important; }

/* ---- Navigation --------------------------------------------------------- */
.cqi-nav {
    display: flex;
    align-items: center;
    height: var(--cqi-nav-height);
    background: var(--cqi-nav-bg);
    padding: 0 var(--cqi-gutter);
    max-width: var(--cqi-max-width);
    margin: 0 auto;
    position: relative;
}

.cqi-nav--horizontal .cqi-nav__desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Desktop nav list */
.cqi-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cqi-nav__list a {
    display: block;
    padding: .5rem .75rem;
    color: var(--cqi-nav-color);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 3px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.cqi-nav__list a:hover,
.cqi-nav__list .current-menu-item > a,
.cqi-nav__list .current-menu-ancestor > a {
    color: var(--cqi-nav-hover-color);
    background: rgba(0,0,0,.05);
}

/* Dropdown */
.cqi-nav__list .menu-item-has-children {
    position: relative;
}

.cqi-nav__list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: .4rem;
    vertical-align: middle;
    opacity: .6;
}

.cqi-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--cqi-nav-dropdown-bg);
    border: 1px solid var(--cqi-border);
    border-radius: var(--cqi-radius);
    box-shadow: var(--cqi-nav-dropdown-shadow);
    min-width: 200px;
    padding: .4rem 0;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.cqi-nav__list .menu-item-has-children:hover > .sub-menu,
.cqi-nav__list .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.cqi-nav__list .sub-menu a {
    border-radius: 0;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 400;
}

/* Icons */
.cqi-nav__icons {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cqi-nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--cqi-nav-color);
    text-decoration: none;
    transition: background .15s, color .15s;
    position: relative;
}

.cqi-nav__icon-btn:hover {
    background: rgba(0,0,0,.06);
    color: var(--cqi-nav-hover-color);
}

/* Wishlist count badge */
.cqi-nav__wishlist-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #000;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Hamburger */
.cqi-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--cqi-radius);
    transition: background .15s;
}

.cqi-nav__hamburger:hover { background: rgba(0,0,0,.06); }

.cqi-nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cqi-nav-color);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform .2s, opacity .2s;
}

.cqi-nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cqi-nav__hamburger--open span:nth-child(2) { opacity: 0; }
.cqi-nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile bar */
.cqi-nav__mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Mobile drawer */
.cqi-nav__mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(85vw, 320px);
    height: 100%;
    background: var(--cqi-nav-mobile-bg);
    border-right: 1px solid var(--cqi-border);
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.cqi-nav__mobile-drawer .cqi-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.cqi-nav__mobile-drawer .cqi-nav__list a {
    padding: .75rem 1.25rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--cqi-border);
}

.cqi-nav__mobile-drawer .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: #f9fafb;
}

/* Backdrop */
.cqi-nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
}

/* Search overlay */
.cqi-nav__search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem var(--cqi-gutter);
    border-bottom: 1px solid var(--cqi-border);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cqi-nav__search-overlay .cqi-search-form { flex: 1; }
.cqi-nav__search-close {
    background: none; border: none; cursor: pointer;
    padding: .4rem; color: var(--cqi-muted);
    border-radius: var(--cqi-radius);
}

/* ---- Search form -------------------------------------------------------- */
.cqi-search-form__inner {
    display: flex;
    align-items: center;
    border: 1px solid var(--cqi-border);
    border-radius: var(--cqi-radius);
    overflow: hidden;
    background: #f9fafb;
}

.cqi-search-form__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .6rem .75rem;
    font-size: .9rem;
    font-family: var(--cqi-font);
    color: var(--cqi-text);
    outline: none;
}

.cqi-search-form__btn {
    border: none;
    background: none;
    padding: .6rem .75rem;
    cursor: pointer;
    color: var(--cqi-muted);
    display: flex;
    align-items: center;
    transition: color .15s;
}

.cqi-search-form__btn:hover { color: var(--cqi-text); }

/* ---- Breadcrumb --------------------------------------------------------- */
.cqi-breadcrumb { font-size: .85rem; color: var(--cqi-muted); }
.cqi-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cqi-breadcrumb__item { display: flex; align-items: center; gap: .35rem; }
.cqi-breadcrumb__item a { color: var(--cqi-muted); text-decoration: none; }
.cqi-breadcrumb__item a:hover { color: var(--cqi-text); text-decoration: underline; }
.cqi-breadcrumb__sep { opacity: .5; }

/* ---- Site logo ---------------------------------------------------------- */
.cqi-site-logo { display: inline-flex; align-items: center; }
.cqi-site-logo__img { height: auto; }
.cqi-site-logo--text {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--cqi-text);
}

/* ---- Inline nav style --------------------------------------------------- */
.cqi-nav--inline .cqi-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem;
}

/* ---- Vertical nav style ------------------------------------------------- */
.cqi-nav--vertical .cqi-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* ---- Mobile responsive -------------------------------------------------- */
@media (max-width: 900px) {
    .cqi-nav__desktop { display: none !important; }
    .cqi-nav__mobile-bar { display: flex !important; }
    .cqi-nav__hamburger  { display: flex !important; }

    .cqi-nav {
        padding: 0 1rem;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    :root {
        --cqi-gutter: 1rem;
        --cqi-nav-height: 56px;
    }
}

/* ---- 404 page ----------------------------------------------------------- */
.cqi-404 {
    text-align: center;
    padding: 5rem var(--cqi-gutter);
    max-width: 540px;
    margin: 0 auto;
}

.cqi-404__code {
    font-size: clamp(5rem, 20vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: #e5e7eb;
    margin-bottom: .5rem;
}

.cqi-404__title {
    margin-bottom: .75rem;
}

.cqi-404__message {
    color: var(--cqi-muted);
    margin-bottom: 2rem;
}

.cqi-404__actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page content — full width by default, constrained only inside post wrap */
.cqi-page-content {
    width: 100%;
}

.cqi-post-wrap .cqi-page-content {
    max-width: 740px;
}

.cqi-page-content h1, .cqi-page-content h2,
.cqi-page-content h3, .cqi-page-content h4 {
    margin-top: 1.75em;
    margin-bottom: .5em;
}

.cqi-page-content p  { margin-bottom: 1em; }
.cqi-page-content ul,
.cqi-page-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.cqi-page-content img { max-width: 100%; border-radius: var(--cqi-radius); }

/* ====================================================================
   Boot And Bag — Site-specific styles
   ==================================================================== */

/* ---- Top bar -------------------------------------------------------- */
.bab-topbar {
    background: #1a1a1a;
    padding: .3rem 0;
    width: 100%;
}

.bab-topbar__inner {
    max-width: var(--cqi-max-width);
    margin: 0 auto;
    padding: 0 var(--cqi-gutter);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    font-size: .72rem;
    letter-spacing: .04em;
    line-height: 1;
}

.bab-topbar__link {
    color: #888;
    text-decoration: none;
    transition: color .15s;
}

.bab-topbar__link:hover { color: #ccc; }

.bab-topbar__sep { color: #444; }

.bab-topbar__active {
    color: #ffffff;
    font-weight: 600;
}

/* Strip cqi-page-content constraints from press_html wrapper in header */
.cqi-press-header .cqi-page-content {
    max-width: none;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* ---- Header nav — logo left, menu grouped beside it, icons right --- */
.bab-header-nav.cqi-nav {
    height: auto;
    min-height: var(--cqi-nav-height);
    padding: .75rem var(--cqi-gutter);
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    max-width: 100%;
}

.bab-header-nav .cqi-nav__desktop {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 2.5rem;
}

.bab-header-nav .cqi-nav__logo-wrap {
    flex-shrink: 0;
    margin-right: 0;
}

.bab-header-nav .cqi-nav__logo-img {
    width: 160px !important;
    height: auto;
}

.bab-header-nav .cqi-nav__list {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0;
}

.bab-header-nav .cqi-nav__icons {
    margin-left: auto;
}

.bab-header-nav .cqi-nav__list a {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---- Footer --------------------------------------------------------- */
.bab-footer {
    background: #111111;
    color: #9ca3af;
    padding: 2.5rem 0 1.5rem;
    font-size: .875rem;
}

.bab-footer__inner {
    max-width: var(--cqi-max-width);
    margin: 0 auto;
    padding: 0 var(--cqi-gutter);
}

.bab-footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
    margin-bottom: 1.5rem;
}

.bab-footer__tagline {
    font-size: .8rem;
    color: #6b7280;
    margin: .75rem 0 0;
    line-height: 1.6;
}

.bab-footer__heading {
    color: #ffffff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 .75rem;
}

/* ---- Footer nav overrides ------------------------------------------- */
.bab-footer .cqi-nav {
    background: transparent;
    height: auto;
    min-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Always show the nav list in footer regardless of screen width */
.bab-footer .cqi-nav__desktop {
    display: block !important;
}

.bab-footer .cqi-nav__mobile-bar,
.bab-footer .cqi-nav__hamburger,
.bab-footer .cqi-nav__mobile-drawer,
.bab-footer .cqi-nav__backdrop,
.bab-footer .cqi-nav__icons {
    display: none !important;
}

.bab-footer .cqi-nav--vertical .cqi-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: transparent;
}

.bab-footer .cqi-nav__list a {
    color: #9ca3af;
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    padding: .25rem 0;
    border-radius: 0;
    background: transparent;
}

.bab-footer .cqi-nav__list a:hover {
    color: #ffffff;
    background: transparent;
}

.bab-footer__link {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: .82rem;
    padding: .25rem 0;
    transition: color .15s;
}

.bab-footer__link:hover { color: #ffffff; }

.bab-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .72rem;
    color: #4b5563;
    flex-wrap: wrap;
    gap: .5rem;
}

.bab-footer__bottom a {
    color: #4b5563;
    text-decoration: none;
    transition: color .15s;
}

.bab-footer__bottom a:hover { color: #9ca3af; }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 768px) {
    .bab-footer__cols {
        grid-template-columns: 1fr 1fr;
    }

    .bab-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .bab-footer__cols {
        grid-template-columns: 1fr;
    }

    .bab-topbar__inner {
        justify-content: center;
    }
}

/* ---- Nav logo ----------------------------------------------------------- */
.cqi-nav__logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.cqi-nav__logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cqi-nav-color);
    white-space: nowrap;
}

/* ---- Brand section (above footer) ----------------------------------- */
.bab-brand-section {
    background: #ffffff;
    padding: 2.5rem var(--cqi-gutter);
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.bab-brand-section__inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.bab-brand-section__logo {
    display: block;
    margin: 0 auto;
}

.bab-brand-section__name {
    font-size: .9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: .02em;
    margin: 0;
}

.bab-brand-section__tagline {
    font-size: .8rem;
    color: #6b7280;
    margin: 0;
}

/* ---- Suppress WP nav fallback search form in footer ----------------- */
.bab-footer .cqi-nav input[type="search"],
.bab-footer .cqi-nav .search-form,
.bab-footer .cqi-nav form {
    display: none !important;
}

/* ---- Blog post ---------------------------------------------------------- */
.cqi-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .82rem;
    color: var(--cqi-muted);
    margin-bottom: 1.5rem;
}

.cqi-post-meta a {
    color: var(--cqi-muted);
    text-decoration: none;
}

.cqi-post-meta a:hover {
    color: var(--cqi-text);
    text-decoration: underline;
}

.cqi-post-meta__sep {
    color: #d1d5db;
}

/* Post content prose styles */
.cqi-post-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 2rem var(--cqi-gutter);
}

.cqi-post-wrap .cqi-page-title {
    margin-bottom: .5rem;
}

.cqi-post-wrap .cqi-page-content img {
    border-radius: var(--cqi-radius);
    margin: 1.5rem 0;
}

.cqi-post-wrap .cqi-page-content blockquote {
    border-left: 3px solid var(--cqi-border);
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    color: var(--cqi-muted);
    font-style: italic;
}

/* Featured image */
.cqi-post-featured {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--cqi-radius);
    margin-bottom: 2rem;
    display: block;
}

/* ---- Post archive grid -------------------------------------------------- */
.cqi-post-archive {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

.cqi-post-archive--cols-1 { grid-template-columns: 1fr; }
.cqi-post-archive--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cqi-post-archive--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cqi-post-archive--cols-4 { grid-template-columns: repeat(4, 1fr); }

.cqi-post-archive--empty {
    color: var(--cqi-muted);
    padding: 2rem 0;
}

/* ---- Post card ---------------------------------------------------------- */
.cqi-post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cqi-border);
    border-radius: var(--cqi-radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
}

.cqi-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.cqi-post-card__image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.cqi-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}

.cqi-post-card:hover .cqi-post-card__image {
    transform: scale(1.03);
}

.cqi-post-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .5rem;
}

.cqi-post-card__meta {
    font-size: .75rem;
    color: var(--cqi-muted);
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}

.cqi-post-card__cat {
    color: var(--cqi-muted);
    text-decoration: none;
}

.cqi-post-card__cat:hover { color: var(--cqi-text); }

.cqi-post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cqi-post-card__title a {
    color: var(--cqi-text);
    text-decoration: none;
}

.cqi-post-card__title a:hover { color: #000; }

.cqi-post-card__excerpt {
    font-size: .875rem;
    color: var(--cqi-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cqi-post-card__read-more {
    font-size: .8rem;
    font-weight: 600;
    color: var(--cqi-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .25rem;
    transition: gap .15s;
}

.cqi-post-card__read-more:hover { gap: .5rem; }

/* Pagination */
.cqi-post-archive__pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.cqi-post-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .75rem;
    border: 1px solid var(--cqi-border);
    border-radius: var(--cqi-radius);
    font-size: .85rem;
    color: var(--cqi-text);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.cqi-post-archive__pagination .page-numbers:hover,
.cqi-post-archive__pagination .page-numbers.current {
    background: var(--cqi-text);
    color: #fff;
    border-color: var(--cqi-text);
}

/* Responsive */
@media (max-width: 900px) {
    .cqi-post-archive--cols-4,
    .cqi-post-archive--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cqi-post-archive--cols-4,
    .cqi-post-archive--cols-3,
    .cqi-post-archive--cols-2 { grid-template-columns: 1fr; }
}

/* ---- Archive header (post and product archives) ------------------------- */
.cqi-archive-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cqi-border);
}

.cqi-archive-header__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--cqi-text);
    line-height: 1.2;
}

.cqi-archive-header__desc {
    font-size: .9rem;
    color: var(--cqi-muted);
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

.cqi-archive-header__desc p:last-child { margin-bottom: 0; }
