/* Base recipe: Zakra 2.x → 4.x default differences (2.x theme / Pro 1.x defaults that 4.x changed). The first block
   was verified on the 13 CTH sites; the rest were measured on collegeofthebcbt.ca against stock Zakra 2.0.1 CSS
   (2026-12-02) and still need a second site to confirm them.
   Loads BEFORE the site's Additional CSS (zakra4-compat.php, wp_head priority 100), so the site's own rules and
   recipes/sites/<domain>/zakra4-site.css win over it. */

/* 2.x: no letter-spacing, no break-word; 4.x: 0.01em + break-word. (2.x's 14.4px body size is printed by
   zakra4-compat.php unless the 2.x site set its own body size.) */
body { letter-spacing: normal; overflow-wrap: normal; }

/* 2.x had html{font-size:90%} (14.4px) so its 1.6rem list indent was 23.04px; 4.x's html is 10px → 16px. */
ul, ol { margin: 0 0 23.04px 23.04px; }
li > ul, li > ol { margin-bottom: 0; margin-left: 23.04px; }

/* 2.x paragraph spacing 1.6em; 4.x uses 2rem (= 20px). */
p { margin-bottom: 1.6em; }

/* 2.x scroll-to-top button: 50px square, 28.8px arrow; 4.x is smaller. */
#zak-scroll-to-top { width: 50px; height: 50px; font-size: 14.4px; }
#zak-scroll-to-top i { font-size: 28.8px; line-height: 1; }

/* 2.x content width stepped like Bootstrap 3 (.tg-container max-width 720px ≥768, 940px ≥992, then the site's own
   container width ≥1200); 4.x is fluid up to that width. Same content box: 4.x keeps its 16px padding (content-box). */
@media (min-width: 768px) and (max-width: 991px) { .zak-container { max-width: 720px; } }
@media (min-width: 992px) and (max-width: 1199px) { .zak-container { max-width: 940px; } }

/* "Keep menu items on one line" (2.x zakra_primary_menu_extra): 4.x moves overflowing items into the ⋮ submenu like
   2.x, but its width check (navigation.js: (items − 1) × 24px) never removes the ⋮ when nothing overflowed.
   2.x showed ⋮ only when items were moved; hide it while its list is empty. */
#zak-primary-menu .zak-menu-extras-wrap:not(:has(#zak-menu-extras > li)) { display: none; }

/* 2.x footer: widget areas were plain blocks with 2.5rem (36px) under each widget; 4.x columns are flex with a 32px gap. */
.zak-footer .zak-footer-col { display: block; }
.zak-footer .zak-footer-col .widget { margin-bottom: 36px; }
/* 2.x footer widget titles had no underline or bottom padding; 4.x adds a 30px primary-colour line (::before) + 10px. */
.zak-footer .widget-title { padding-bottom: 0; }
.zak-footer .widget-title::before { content: none; }
/* 2.x footer lists were plain blocks; 4.x makes widget lists flex columns with an 8px gap. */
.zak-footer .widget ul { gap: 0; }

/* 2.x breadcrumb separator: themegrill-icons chevron (\f103, 12px, 7px padding); 4.x prints "/". Zakra 4 still ships
   and declares the icon font. */
.breadcrumbs .trail-items li:not(.trail-end)::after { content: "\f103"; font-family: themegrill-icons; font-size: 12px; padding: 7px; margin: 0; vertical-align: middle; }

/* 2.x ≤600px: page header (title + breadcrumbs) and footer bar sections stack, centred; 4.x keeps them side by side. */
@media (max-width: 600px) {
	.zak-page-header .zak-row { flex-direction: column; align-items: center; row-gap: 0; }
	.zak-footer-bar .zak-row { flex-direction: column; row-gap: 11.52px; }
	.zak-footer-bar__1, .zak-footer-bar__2 { width: 100%; text-align: center; margin: 0; }
}

/* 4.x underlines breadcrumb and content links; 2.x didn't (its `a` rule is text-decoration: none everywhere). */
.breadcrumbs .trail-items a, .zak-breadcrumbs .trail-items a, .entry-content a { text-decoration: none; }
/* 4.x draws a 1px #E4E4E7 line under widget titles; 2.x footer titles had none. */
.zak-footer .widget .widget-title, .zak-footer .widget .wp-block-heading { border-bottom: 0; }

/* 2.x .site-content had 80px above and below (pagebuilder template: none) and articles 72px under them; 4.x pads the
   content area 60px and articles get no margin. */
/* Page Builder template: zakra4-compat.php renames its wrapper class (pagebuilder-content → zak4-pagebuilder) so Zakra 4's
   link colours for it don't apply; this is Zakra 4's own layout rule for that wrapper. */
.page-template-pagebuilder .zak-primary.zak4-pagebuilder { flex: 1; max-width: inherit; padding: 0; }
body:not(.page-template-pagebuilder) .zak-primary { padding-top: 80px; padding-bottom: 80px; }
body:not(.page-template-pagebuilder) .zak-primary > article { margin-bottom: 72px; }
/* 2.x breadcrumb items were 16px (the trail itself 14.4px); 4.x uses 14.4px for both. */
.breadcrumbs .trail-items li { font-size: 16px; }

/* ---- 2.x default off-canvas mobile menu (live collegeofthebcbt, 2026-12-02) ----
   300px wide (≤480px: full width minus 60px), full height, white (fix-base-mods sets the background), 50/20/20 padding;
   the close button is a Font Awesome × (18px) in a 50px box 20px from the right; the list starts under a 1px divider;
   submenu toggles are a 12px Font Awesome +; no underline on the current item. 4.x: auto height, header row above the
   list, thin SVG icons, 14px/16px link padding. Font Awesome 6 is loaded by Zakra 4 itself. */
.zak-mobile-nav { width: 300px; max-width: 100%; height: 100vh; overflow-y: auto; padding: 50px 20px 20px; box-sizing: border-box; }
@media (max-width: 480px) { .zak-mobile-nav { width: calc(100% - 60px); } }
.zak-mobile-nav__header { position: absolute; top: 0; right: 0; height: 50px; margin: 0; padding: 0; border: 0; }
#zak-mobile-nav-close { position: absolute; top: 0; right: 20px; width: 50px; height: 50px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
#zak-mobile-nav-close svg { display: none; }
#zak-mobile-nav-close::before { content: "\f00d"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 18px; line-height: 1; }
#zak-mobile-menu { border-top: 1px solid #e9ecef; padding-top: 14.4px; }
#zak-mobile-menu li a { padding: 7.2px 30px 7.2px 7.2px; text-decoration: none; }
#zak-mobile-menu .zak-submenu-toggle { width: 32px; padding: 0; margin-right: 8px; display: flex; align-items: center; justify-content: center; }
#zak-mobile-menu .zak-submenu-toggle svg { display: none; }
#zak-mobile-menu .zak-submenu-toggle::before { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; line-height: 1; }
#zak-mobile-menu .submenu--show > .zak-submenu-toggle::before { content: "\f068"; }
/* Below 992px 4.x pads the content row 54px top/bottom, and below 768px Zakra Pro drops the content container's side
   padding; 2.x had neither, and its container kept 15px sides on phones (default template; pagebuilder pages match). */
@media (max-width: 991px) {   /* stacked: 4.x row gap 54px; 2.x #primary margin-bottom 60px */
	body:not(.page-template-pagebuilder) .zak-content .zak-row { padding-top: 0; padding-bottom: 0; row-gap: 0; }
	body:not(.page-template-pagebuilder) .zak-primary { margin-bottom: 60px; }
}
@media (max-width: 767px) {   /* #page: beats the 4.x stretched-layout rule; Pro also pads .zak-primary 16px on contained layouts */
	body:not(.page-template-pagebuilder) #page .zak-content > .zak-container { padding-left: 15px; padding-right: 15px; }
	body:not(.page-template-pagebuilder) #page .zak-content .zak-primary { padding-left: 0; padding-right: 0; }
}
/* 4.x sets b/strong to 600; 2.x left the browser default (bolder → 700). Narrower bold text re-wraps headings. */
b, strong { font-weight: bolder; }

/* 2.x (Pro 1.x) "thumbnail" blog archive → 4.x thumbnail style-4: 2.x posts had 36px under them, a 1px divider and
   36px margin, a 30%-wide image with a 2rem (28.8px) gap, and 16.2px under the title; 4.x: 30px padding, 20px gap. */
.zak-posts .zak-post.zak-thumbnail--style-4 { padding: 0 0 36px; margin-bottom: 36px; gap: 28.8px; border-bottom: 1px solid #e9ecef; }
@media (min-width: 768px) { .zak-posts .zak-post.zak-thumbnail--style-4 .zak-entry-thumbnail { flex: 0 0 30%; max-width: 30%; } }   /* phones: stacked, full width */
.zak-posts .zak-post.zak-thumbnail--style-4 .entry-title { margin-bottom: 16.2px; }
/* Empty sidebar (see zakra4-compat.php): 2.x printed no #secondary, so no divider line beside the content. */
.zak4-empty-sidebar .zak-secondary { border: 0; }
