/* fix-auto-layout.css — layout safety net for anything added in the future.
 *
 * Companion to inc/areas/fix-auto-layout.php. The PHP side decides the layout (no sidebar on pages,
 * posts and the blog; the filter panel stays on shop archives; no author box). These rules make that
 * decision hold even if the markup ever appears anyway — a widget dropped into "Main sidebar" or
 * "Blog sidebar", a WoodMart update, a theme re-import.
 *
 * Every selector here matches NOTHING on the site today (checked against the logged-in HTML
 * snapshots), so this file changes nothing now. It exists so a future click cannot break a page.
 *
 * The shop sidebar (.area-sidebar-shop) is the child theme's own filter panel — never touched.
 */

/* ---------------------------------------------------------------------------
 * 1. Pages, single posts and the blog never grow a sidebar.
 *
 * Today WoodMart already renders <div class="site-content col-lg-12 col-12 col-md-12"> on pages and
 * posts, because the Main sidebar happens to be empty. The moment a widget is added there, WoodMart
 * would switch to col-lg-9 plus a sidebar column. These two rules keep the page at full width.
 * ------------------------------------------------------------------------- */
.yb.page .content-layout-wrapper > .sidebar-container:not(.area-sidebar-shop),
.yb.single-post .content-layout-wrapper > .sidebar-container:not(.area-sidebar-shop),
.yb.blog .content-layout-wrapper > .sidebar-container:not(.area-sidebar-shop),
.yb.search:not(.woocommerce-page) .content-layout-wrapper > .sidebar-container:not(.area-sidebar-shop),
.yb.archive:not(.woocommerce-page) .content-layout-wrapper > .sidebar-container:not(.area-sidebar-shop) {
	display: none;
}

.yb.page .content-layout-wrapper > .site-content:not(.shop-content-area),
.yb.single-post .content-layout-wrapper > .site-content:not(.shop-content-area),
.yb.blog .content-layout-wrapper > .site-content:not(.shop-content-area),
.yb.search:not(.woocommerce-page) .content-layout-wrapper > .site-content:not(.shop-content-area),
.yb.archive:not(.woocommerce-page) .content-layout-wrapper > .site-content:not(.shop-content-area) {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * 2. The author box never reaches public output.
 *
 * WoodMart's blog_author_bio option is served as "0" by fix-auto-layout.php, so the box is not
 * printed at all. This is the belt-and-braces rule for any other route that could print it: the
 * owner's name must never appear publicly, and privacy-brand.php only masks the name, not the box.
 * ------------------------------------------------------------------------- */
.yb .author-info,
.yb .author-box,
.yb .wd-author-box,
.yb .author-bio,
.yb .entry-author,
.yb .post-author-info {
	display: none !important;
}

/* ---------------------------------------------------------------------------
 * 3. Hook for future navigation styling — deliberately no rules.
 *
 * fix-auto-layout.php adds `yb-al-nav-item` to every item of a menu printed from a theme location,
 * and `yb-al-nav-item--top` at depth 0. Nothing in the child theme's CSS targets a menu item by id
 * or by nth-child, so a menu item added tomorrow already inherits the navigation styling and needs
 * no rule here. The classes exist so that any rule written later can be positional-safe by default:
 * use `.yb .yb-al-nav-item--top > a { … }` instead of `:nth-child(n)` or `#menu-item-1234`.
 * ------------------------------------------------------------------------- */
