/* SME content header optimisation (Thump, 16 Oct 2026). Overlay on the Elementor templates for the single pages of every content type.
   Live look kept: Roboto, navy #0A2C3D, maroon #9C1C1F, blush. Only the header area changes. Rollback: option smesa_header_opt = off. */
body.smesa-ho {
	--ho-navy: #0A2C3D; --ho-maroon: #9C1C1F; --ho-line: #E5EAEF; --ho-muted: #64748B;
}

/* ---- breadcrumb block: one line, ancestors only (the current page title is the heading right below) ---- */
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) {
	min-height: 0 !important; padding-top: 4px !important; padding-bottom: 0 !important;
	margin-bottom: 0 !important; /* background deliberately NOT set: the strip keeps the template/production colour (Joel 16 Oct) */
}
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) .elementor-icon-list-items {
	display: flex !important; flex-wrap: nowrap !important; align-items: center; overflow: hidden; margin: 0 !important; min-height: 40px;
}
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) .elementor-icon-list-item { flex: 0 0 auto; margin: 0 !important; padding: 0 !important; white-space: nowrap; }
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) .elementor-icon-list-item a { min-height: 40px; display: inline-flex; align-items: center; }
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) .elementor-icon-list-item:last-child { display: none !important; }

body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-icon-list):not(:has(.elementor-widget-theme-post-title)) .elementor-icon-list-item:nth-last-child(2)::after { display: none !important; content: none !important; }

/* ---- header band: title, meta, actions ---- */
body.smesa-ho .e-parent:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con > .e-con-inner > .elementor-widget-theme-post-title) {
	padding: 14px 0 16px !important; min-height: 0 !important; margin: 0 !important;
}
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-theme-post-title) { padding: 0 16px !important; min-height: 0 !important; }
body.smesa-ho .e-con:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con-inner > .elementor-widget-theme-post-title) > .e-con-inner {
	display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "r"; align-items: center; gap: 12px; padding: 0 !important; width: 100% !important;
}
body.smesa-ho .elementor-widget-theme-post-title:not(.jet-listing-grid__item *):not(.jet-popup *) { grid-area: t; margin: 0 !important; }
body.smesa-ho .elementor-widget-theme-post-title:not(.jet-listing-grid__item *):not(.jet-popup *) .elementor-heading-title { font-size: 27px !important; line-height: 1.14 !important; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
/* the original Save / date / reading time / Google widgets are replaced by the one row below (header.js moves the real Save button into it) */
body.smesa-ho .e-con-inner:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .elementor-widget-theme-post-title) > div:not([class]):not(.smesa-ho-row) { display: none !important; }
body.smesa-ho .e-con-inner:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .elementor-widget-theme-post-title) > .e-con { display: none !important; }

/* ---- the one row: byline + date + reading time on the left, Save and Share on the right ---- */
body.smesa-ho .smesa-ho-row { grid-area: r; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
body.smesa-ho .smesa-ho-by { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-decoration: none !important; color: var(--ho-navy) !important; min-height: 44px; }
body.smesa-ho .smesa-ho-by .av { flex: none; width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, #9C1C1F, #C2473F); color: #fff; font: 700 13px Roboto, sans-serif; display: grid; place-items: center; letter-spacing: .02em; }
body.smesa-ho .smesa-ho-by .nm { min-width: 0; display: block; line-height: 1.25; }
body.smesa-ho .smesa-ho-by .nm b { display: block; font: 700 15px Roboto, sans-serif; color: var(--ho-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.smesa-ho .smesa-ho-by:hover .nm b, body.smesa-ho .smesa-ho-by:focus-visible .nm b { color: var(--ho-maroon); text-decoration: underline; }
body.smesa-ho .smesa-ho-by .nm small { display: block; font: 400 13px Roboto, sans-serif; color: var(--ho-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.smesa-ho .smesa-ho-act { display: flex; align-items: center; gap: 8px; flex: none; }
body.smesa-ho .smesa-ho-act > div:not(.smesa-ho-share) { margin: 0 !important; padding: 0 !important; width: auto !important; }
body.smesa-ho .smesa-ho-act button.svx-save { height: 44px !important; min-width: 44px; margin: 0 !important; }
/* a header with no template row to hide (events, podcast, funding, help): the row sits under the heading as it is */
body.smesa-ho .smesa-ho-row--solo { margin: 12px 0 8px; padding: 0 16px; width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; align-self: stretch; justify-content: space-between; }
body.smesa-ho .smesa-ho-share { position: relative; }
body.smesa-ho .smesa-ho-share > button { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--ho-navy); background: transparent; color: var(--ho-navy); display: grid; place-items: center; padding: 0; cursor: pointer; }
body.smesa-ho .smesa-ho-share > button:hover, body.smesa-ho .smesa-ho-share > button:focus-visible { border-color: var(--ho-maroon); color: var(--ho-maroon); background: transparent; outline: none; }
body.smesa-ho .smesa-ho-share svg { width: 20px; height: 20px; }
body.smesa-ho .smesa-ho-pop { position: absolute; right: 0; top: 52px; z-index: 50; width: 230px; background: #fff; border: 1px solid var(--ho-line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(10, 44, 61, .3); }
body.smesa-ho .smesa-ho-pop[hidden] { display: none; }
body.smesa-ho .smesa-ho-pop a, body.smesa-ho .smesa-ho-pop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font: 500 15px Roboto, sans-serif; color: var(--ho-navy); text-decoration: none; cursor: pointer; text-align: left; }
body.smesa-ho .smesa-ho-pop a:hover, body.smesa-ho .smesa-ho-pop button:hover { background: #F7E9E9; color: var(--ho-maroon); }
body.smesa-ho .smesa-ho-pop svg { width: 18px; height: 18px; flex: none; }
/* the author card at the bottom of the article is gone (header.js hides it; Joel removes it from the Elementor template on live) */
body.smesa-ho .smesa-ho-gone { display: none !important; }
/* Google preferred-source link, after the article */
body.smesa-ho .smesa-ho-source { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--ho-line); display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 14px; color: var(--ho-muted); }
body.smesa-ho .smesa-ho-source a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ho-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ho-navy); text-decoration: none; }

@media (max-width: 767px) {
	/* Save as an icon on phones: the label would not fit the row */
	body.smesa-ho .svx-save--pill { width: 44px !important; min-width: 44px; height: 44px !important; padding: 0 !important; border-radius: 999px !important; justify-content: center !important; gap: 0 !important; }
	body.smesa-ho .svx-save--pill .svx-lab { display: none !important; }
	/* less empty space between the header and the first picture */
	body.smesa-ho .elementor-widget-theme-post-content > .smesa-ad:first-child { margin-top: 0 !important; min-height: 0 !important; }
	body.smesa-ho .e-parent:has(.elementor-widget-theme-post-content) { padding-top: 0 !important; }
	body.smesa-ho .e-parent:has(.elementor-widget-theme-post-content) > .e-con, body.smesa-ho .e-parent:has(.elementor-widget-theme-post-content) > .e-con-inner { padding-top: 0 !important; row-gap: 0 !important; }
	body.smesa-ho .e-parent:has(.elementor-widget-theme-post-content) > .e-con-inner > .e-con { padding-top: 12px !important; }
}
@media (min-width: 768px) {
	body.smesa-ho .e-parent:not(.jet-listing-grid__item *):not(.jet-popup *):has(> .e-con > .e-con-inner > .elementor-widget-theme-post-title) { padding: 10px 0 30px !important; }
	body.smesa-ho .elementor-widget-theme-post-title:not(.jet-listing-grid__item *):not(.jet-popup *) .elementor-heading-title { font-size: 40px !important; }
}
@media (prefers-reduced-motion: reduce) { body.smesa-ho * { scroll-behavior: auto !important; } }
