/*
Theme Name: CMBRAE
Description: Child theme of Twenty Twenty-Five reproducing the former The7 look (colours, Georgia typography, header, footer, sidebars) with core blocks only.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: cmbrae
*/

/* ---------- Header ---------- */
.cmbrae-header { color: #fff; }
.cmbrae-header a { color: #fff; text-decoration: none; }
.cmbrae-topbar { background: rgba(84, 191, 197, .78); font-family: var(--wp--preset--font-family--georgia); font-size: 12px; line-height: 1.6; }
.cmbrae-topbar p { margin: 0; }
.cmbrae-topbar .cmbrae-ico { opacity: .9; margin-right: 6px; }
.cmbrae-header .wp-block-navigation { font-family: var(--wp--preset--font-family--georgia); font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.cmbrae-logo { flex-shrink: 0; }
.cmbrae-logo img { width: 146px; height: auto; }
/* no gap between header, title band and main (The7 stacked them flush) */
.wp-site-blocks > * { margin-block-start: 0; }
.cmbrae-header .wp-block-navigation .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 2px solid transparent; }
.cmbrae-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.cmbrae-header .wp-block-navigation .wp-block-navigation-item__content:hover { border-bottom-color: #fff; }
.cmbrae-header .wp-block-navigation__submenu-container { color: #3a3a3a; text-transform: none; font-size: 14px; }
.cmbrae-header .wp-block-navigation__submenu-container a { color: #3a3a3a; }
.cmbrae-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { border-bottom-color: transparent; background: #f2f6fb; }
.cmbrae-header .wp-block-navigation__responsive-container.is-menu-open { color: #3a3a3a; }
.cmbrae-header .wp-block-navigation__responsive-container.is-menu-open a { color: #3a3a3a; }
@media (min-width: 782px) { .cmbrae-sticky { position: sticky; top: 0; z-index: 50; } }

/* ---------- Page title band ---------- */
.cmbrae-titleband { background: #f7f7f8; }
.cmbrae-titleband h1 { font-family: var(--wp--preset--font-family--georgia); font-weight: 400; }

/* ---------- Sidebar (The7 "with dividers") ---------- */
.cmbrae-sidebar { font-family: var(--wp--preset--font-family--georgia); font-size: 14px; line-height: 25px; color: #4e3ea3; }
.cmbrae-sidebar a { color: #4e3ea3; text-decoration: none; }
.cmbrae-sidebar a:hover { text-decoration: underline; }
.cmbrae-sidebar h4, .cmbrae-sidebar h4 a { color: #1b00a3; }
.cmbrae-sidebar .wp-block-latest-posts { padding-left: 0; }
.cmbrae-sidebar .wp-block-latest-posts li { margin-bottom: .9em; line-height: 25px; }
.cmbrae-sidebar .wp-block-calendar table { font-size: 14px; }
.cmbrae-sidebar .wp-block-calendar caption { color: #1b00a3; }
.cmbrae-sidebar-left { border-right: 1px solid #e3e3e3; padding-right: 40px; }
.cmbrae-sidebar-right { border-left: 1px solid #e3e3e3; padding-left: 40px; }
@media (max-width: 781px) { .cmbrae-sidebar-left, .cmbrae-sidebar-right { border: 0; padding: 0; } }

/* ---------- Content details carried over from The7 / WPBakery ---------- */
.entry-content a { color: #4d71da; }
.cmbrae-list ul { list-style: none; padding-left: 0; }
.cmbrae-list li { position: relative; padding-left: 24px; margin-bottom: .6em; }
.cmbrae-list li::before {
	/* The7 list bullet: 13px gradient circle with a white chevron, centred on the 27px line */
	content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='white'%3E%3Cpolygon points='5.159,2.802 8.841,6.57 5.314,10.291 4.237,9.254 6.897,6.51 4.159,3.833'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
		linear-gradient(135deg, #4d71da 30%, #35c4f4 100%);
}
.wp-block-video { margin-top: 12px; }
.hidden { display: none; }
.marginTop { margin-top: 14px; }

/* ---------- Footer ---------- */
.cmbrae-footer h4 { color: #1e73be; font-family: var(--wp--preset--font-family--georgia); }
.cmbrae-footer a { color: #4d71da; }
.cmbrae-cards figure { margin: 0; }
.cmbrae-bottombar { background: #2bbfc8; color: #fff; font-family: var(--wp--preset--font-family--georgia); font-size: 13px; }
.cmbrae-bottombar p { margin: 0; }

/* Menu centred in the space next to the logo (both rows), no submenu arrows */
.cmbrae-header .cmbrae-main-nav { flex: 1 1 auto; }
.cmbrae-header .cmbrae-main-nav .wp-block-navigation__container { justify-content: center; }
.cmbrae-list-plain li { padding-left: 0; }
.cmbrae-list-plain li::before { content: none; }
.cmbrae-list-numbered ul { list-style: decimal; padding-left: 1.5em; }
.cmbrae-list-numbered li { padding-left: 0; }
.cmbrae-list-numbered li::before { content: none; }
/* Embedded maps/videos with fixed pixel widths must not overflow their column */
.entry-content iframe, .entry-content embed, .entry-content object, .entry-content video { max-width: 100%; }
.entry-content .wp-block-column { min-width: 0; }

cmbrae-content { display: contents; }

/* ---------- NOUTATI (posts page) — as The7 blog list ---------- */
.cmbrae-news-filter { gap: 30px; font-size: 14px; margin-bottom: 40px; }
.cmbrae-news-filter p { margin: 0; }
.cmbrae-news-filter a { color: #3a3a3a; text-decoration: none; padding-bottom: 8px; }
.cmbrae-news-filter .is-current a { border-bottom: 2px solid #2a83ed; }
.cmbrae-news-cats { display: flex; flex-wrap: wrap; gap: 30px; list-style: none; margin: 0; padding: 0; }
.cmbrae-news .wp-block-post-title a { color: #333; text-decoration: none; }
.cmbrae-news .wp-block-post-title { margin-top: 30px; }
.cmbrae-news-meta { font-size: 13px; gap: 6px; color: #000; }
.cmbrae-news-meta a { color: #000; text-decoration: none; }
.cmbrae-news-meta .wp-block-post-date::before { content: "•"; margin-right: 6px; }
.cmbrae-news .wp-block-separator { margin: 30px 0 0; }
.cmbrae-news .wp-block-query-pagination { margin-top: 40px; font-weight: bold; }
.cmbrae-news-meta, .cmbrae-news-meta a, .cmbrae-news-meta .wp-block-post-date, .cmbrae-news-meta .wp-block-post-date a { color: #000; font-weight: 400; }
/* Self-hosted [video] players have a fixed pixel width; long URLs/words must wrap */
.entry-content .wp-video, .entry-content .mejs-container { max-width: 100% !important; }
.entry-content .wp-video video, .entry-content .mejs-container video { max-width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
/* Raw-HTML iframes with fixed inline widths (YouTube 560px etc.) */
.entry-content iframe { max-width: 100% !important; box-sizing: border-box; }
/* Author-typed fixed-width boxes (e.g. <div style="width:560px">) must not exceed the column */
.entry-content div[style*="width"], .entry-content table[style*="width"], .entry-content img { max-width: 100%; }

/* ---------- Download Monitor buttons: WordPress' default dark pill, as on the old site ---------- */
.entry-content a.dlm-download-link.wp-block-button__link {
	display: inline-block; background: #32373c; color: #fff; border-radius: 9999px;
	padding: .7em 1.5em; font-size: 12px; line-height: 1.6; text-decoration: none; border: 0;
}
.entry-content a.dlm-download-link.wp-block-button__link:hover { background: #1e73be; color: #fff; }

/* ---------- Former WPBakery tabs/accordions (core/details) styled like The7 tabs ---------- */
.entry-content .wp-block-details { margin: 0 0 4px; border: 0; }
.entry-content .wp-block-details > summary {
	background: #6aa1ec; color: #fff; padding: 10px 16px; cursor: pointer; list-style: none;
	font-size: 14px; text-transform: uppercase;
}
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: bold; }
.entry-content .wp-block-details[open] > summary { background: #f7f7f8; color: #333; }
.entry-content .wp-block-details[open] > summary::before { content: "–"; }
.entry-content .wp-block-details[open] > :not(summary) { background: #f7f7f8; margin: 0; padding: 4px 16px; }
.entry-content .wp-block-details[open] { padding-bottom: 12px; background: #f7f7f8; }
