/* =============================================
   RECEPTI / CATEGORY PAGE — SHARED LAYOUT
   Loaded on page-recepti.php AND category.php (both body-class-scoped,
   safe on either template) — see ADR-0004 rule 3 judgment note.
   ============================================= */

/* Guarantees page is always tall enough for a scrollbar,
   preventing layout shift when filter returns no results */
#sc-recepti,
#sc-category {
    min-height: calc(100vh + 1px);
}

/* Match category page background to recepti page */
body.category,
body.category #page,
body.category .site-content,
body.category #content,
body.category .ast-container {
    background-color: var(--color-white) !important;
}

/* Prevent horizontal scroll from the 100vw hero trick on short/empty pages */
body.category {
    overflow-x: hidden;
}

/* Astra layout override — full width, no sidebar for category pages */
body.category #primary,
body.category .content-area,
body.category #content > .ast-container,
body.category .site-content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
}
body.category #secondary,
body.category .widget-area {
    display: none !important;
}

/* Astra layout override — full width, no sidebar for recepti page */
body.sc-page-recepti #primary,
body.sc-page-recepti .content-area,
body.sc-page-recepti #content > .ast-container,
body.sc-page-recepti .site-content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
}
body.sc-page-recepti #secondary,
body.sc-page-recepti .widget-area {
    display: none !important;
}


/* Pagination moved to components/listing.css — also used by search.php and tag.php */

