@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Titillium Web JHMB';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/TitilliumWeb-Italic.ttf') format('truetype');
}

/*
 * JHMB plugin design system
 *
 * Every public shortcode/widget output carries the .jhmb-plugin class. Use
 * the active Elementor Site Kit colors when they are available and keep the
 * original JHMB palette as a fallback for shortcode-only installations.
 */
.jhmb-plugin {
	--jhmb-color-primary: var(--e-global-color-primary, #151036);
	--jhmb-color-secondary: var(--e-global-color-secondary, #BBB8B8);
	--jhmb-color-text: var(--e-global-color-text, #686672);
	--jhmb-color-accent: var(--e-global-color-accent, #C2272C);
	--jhmb-color-heading: #151036;
	--jhmb-color-border: #E5E5E6;
	--jhmb-color-light-background: #F6F6F6;
	--jhmb-radius: 10px;
	--jhmb-border: 1px solid var(--jhmb-color-border);
	--jhmb-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	--jhmb-transition: all .3s;
	--jhmb-hover-opacity: .7;
	--jhmb-company-snaga: #73B643;
	--jhmb-company-marprom: #D71920;
	--jhmb-company-jhmb: #C2272C;
	--jhmb-company-pogrebno: #E50688;
	--jhmb-company-energetika: #962F7A;
	--jhmb-company-nigrad: #0072BC;
	--jhmb-company-vodovod: #2BABE2;
	--jhmb-company-sport: #00AEEF;
	--jhmb-company-mestne-nepremicnine: #888786;
	--jhmb-company-zum: #A6CE39;

	color: var(--jhmb-color-text);
	font-family: 'Titillium Web JHMB', 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.jhmb-plugin,
.jhmb-plugin *,
.jhmb-plugin *::before,
.jhmb-plugin *::after {
	box-sizing: border-box;
}

.jhmb-plugin img,
.jhmb-plugin svg {
	display: block;
	max-width: 100%;
}

.jhmb-plugin a {
	color: var(--jhmb-color-accent);
	text-decoration: none;
}

.jhmb-plugin .meta-text {
	color: var(--jhmb-color-secondary);
	font-size: 14px;
	line-height: 1.4;
	text-transform: uppercase;
}

.jhmb-plugin .post__title {
	color: var(--jhmb-color-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.jhmb-plugin .single-post__title {
	color: var(--jhmb-color-primary);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.jhmb-plugin.single-post-container > .single-post__title {
	font-size: clamp(32px, 4vw, 40px);
	line-height: 1.2;
}

.jhmb-plugin .btn--primary,
.jhmb-plugin button.btn--primary {
	appearance: none;
	background-color: var(--jhmb-color-accent);
	border: 1px solid var(--jhmb-color-accent);
	border-radius: 30px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 20px;
	transition: var(--jhmb-transition);
}

.jhmb-plugin .btn--primary:hover,
.jhmb-plugin .btn--primary:focus-visible {
	background-color: var(--jhmb-color-accent);
	color: #fff;
	opacity: var(--jhmb-hover-opacity);
}

.jhmb-plugin .btn--primary:focus-visible,
.jhmb-plugin .category-link:focus-visible,
.jhmb-plugin a:focus-visible {
	outline: 2px solid var(--jhmb-color-accent);
	outline-offset: 3px;
}

.jhmb-plugin .single-post__content :where(ol, ul) {
	list-style: none;
	padding-left: 25px;
}

.jhmb-plugin .single-post__content ol {
	counter-reset: jhmb-list-counter;
}

.jhmb-plugin .single-post__content :where(ol, ul) li {
	margin-bottom: 10px;
	position: relative;
}

.jhmb-plugin .single-post__content ol li {
	counter-increment: jhmb-list-counter;
}

.jhmb-plugin .single-post__content :where(ol, ul) li::before {
	align-items: center;
	background: var(--jhmb-color-accent);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	height: 17px;
	justify-content: center;
	left: -25px;
	line-height: 1;
	position: absolute;
	top: 4px;
	width: 17px;
}

.jhmb-plugin .single-post__content ol li::before {
	content: counter(jhmb-list-counter);
}

.jhmb-plugin .single-post__content ul li::before {
	content: '✓';
}

.jhmb-plugin .single-post__content :where(p, ol, ul, blockquote, table) {
	margin-bottom: 1em;
}

.jhmb-plugin .single-post__content a {
	color: var(--jhmb-color-accent);
	text-decoration: underline;
}

.jhmb-plugin .single-post__content table {
	border-collapse: collapse;
	width: 100%;
}

.jhmb-plugin .single-post__content :where(th, td) {
	border-bottom: var(--jhmb-border);
	padding: 10px;
	text-align: left;
}

.jhmb-plugin .single-post__content th {
	background: var(--jhmb-color-light-background);
	color: var(--jhmb-color-primary);
	font-weight: 700;
}

.jhmb-plugin.jhmb-message,
.jhmb-plugin .jhmb-message {
	background: var(--jhmb-color-light-background);
	border: var(--jhmb-border);
	border-radius: var(--jhmb-radius);
	color: var(--jhmb-color-text);
	margin: 0;
	padding: 15px 20px;
}

/* posts grid */
.jhmb-all-posts-instance,
.posts-container.posts-load-more {
	width: 100%;
}

.posts-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
	/* grid-row-gap: 30px; */
}

.post--card {
	background: #fff;
	border: var(--jhmb-border);
	border-radius: var(--jhmb-radius);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	position: relative;
	height: 480px;
}

.post--card > img {
	height: 100%;
	object-fit: cover;
}

.post__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 20px;
}

.post__content-wrapper,
.single-post__body {
	min-width: 0;
}

.post__meta-data {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.post__meta-data > span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__title {
	margin:	15px 0;
}

.post__title, .post__excerpt {
	overflow: hidden;
	display: -webkit-box;
	line-clamp: 4; 
	-webkit-line-clamp: 4; 
	-webkit-box-orient: vertical;
}

.jhmb-plugin .post__title a,
.jhmb-plugin .post__title a:hover,
.jhmb-plugin .post__title a:focus {
	color: inherit;
}

.post__excerpt {
	color: var(--jhmb-color-text);
}

.post__excerpt.no-image {
	-webkit-line-clamp: 6;
	line-clamp: 6;
}

.post--card.cat-obvestila .post__icon.warning {
	opacity: .1;
}

.post__footer {
	margin-top: 20px;
	display: none;
}

.post__footer .post__button {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--jhmb-color-accent);
	color: #fff !important;
	width: 33px;
	height: 33px;
	border-radius: 100%;
	padding: 0;
}

.post__thumbnail img {
	height: 170px;
	width: 100%;
	object-fit: cover;
	margin-bottom: -10px;
}

.post--card .post__icon  {
	fill: var(--jhmb-color-accent);
	opacity: 0.07;
	position: absolute;
	bottom: 0;
	right: -60px;
	width: 180px;
	pointer-events: none;
}

.post--card .post__icon.warning {
	fill: var(--jhmb-color-accent);
}

.post--card .post__icon.calendar path {
	fill: var(--jhmb-color-accent);
	stroke: var(--jhmb-color-accent);
}

.post__link {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.load-more-container {
	text-align: center;
	margin-top: 50px;
}

.load-more__btn {
	min-width: 140px;
}

@media only screen and (max-width: 1200px) {
	.posts-container {
	    display: flex;
	    flex-wrap: nowrap;
		overflow-x: scroll;
		-ms-overflow-style: none;
		scrollbar-width: none;
		margin: 0 -20px;
	}	
	
	.posts-container::-webkit-scrollbar {
		display: none;
	}

	.post--card {
		height: auto;
		max-height: 100%;
		width: 300px;
		min-width: 300px;
	}
	
	.post--card:not(.banner--large) {
        min-height: 400px;
	}

	.post--card:first-child {
		margin-left: 20px;
	}

	.post--card:last-child {
		margin-right: 20px;
	}

	.disable-mobile-x-scroll .posts-container {
		overflow-x: hidden;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		margin: 0;
	}

	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.disable-mobile-x-scroll .post--card {
		margin: 0 !important;
		width: auto;
		min-width: auto;
	}
}

@media only screen and (max-width: 768px) {
	.disable-mobile-x-scroll .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}	
}

@media only screen and (max-width: 480px) {
	.disable-mobile-x-scroll .posts-container,
	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: 100%;
	}
}

/* post categories filter */
.categories-filter {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	overflow-y: clip;
	-ms-overflow-style: scroll;
	scrollbar-width: none;
	margin: 0 -20px 80px;
}

.categories-filter::-webkit-scrollbar {
	display: none;
}

.categories-filter .category-link:first-child {
	margin-left: 20px;
}

.categories-filter .category-link:last-child {
	margin-right: 20px;
}

.jhmb-plugin.categories-filter a,
.jhmb-plugin .categories-filter a {
	color: var(--jhmb-color-secondary);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5em;
	margin-right: 30px;
	min-width: fit-content;
	cursor: pointer;
}

.jhmb-plugin.categories-filter :is(a.active, a:hover),
.jhmb-plugin .categories-filter :is(a.active, a:hover) {
	color: var(--jhmb-color-accent);
}

/* post banners  */
.post-banner a  {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
}

.post-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-banner.banner--large {
	max-width: 100%;
}

@media only screen and (max-width: 1200px) {
	.post-banner.banner--large {
		height: 70vw;
	}
}

@media only screen and (max-width: 768px) {
	.post-banner {
		height: 550px;
	}
}

@media only screen and (max-width: 480px) {
	.post-banner {
		height: 140vw;
	}
}

@media only screen and (min-width: 481px) {
	.post-banner.banner--large {
		grid-column: 1/span 2;
		grid-row-start: 1;
	}
}

/* posts slider */
.swiper-slide article,
.swiper-slide article > div {
    height: 100%;
}

/* single post */
.single-post__meta-text {
	margin-bottom: 20px;
}

.single-post__meta-text span:not(:last-child) {
	margin-right: 20px;
}

.single-post__title {
	margin: 0 0 25px;
}

.single-post__thumbnail,
.jhmb-plugin .single-post__content figure {
	margin: 30px 0;
}

.single-post__content .wp-block-gallery {
	margin: 30px 0 !important;
}

.single-post__content .wp-block-gallery figure {
	margin: 0 !important;
	min-width: 0;
}

/* Match the editor's responsive images and captions below the media. */
.jhmb-plugin .single-post__content img {
	height: auto;
	margin-inline: auto;
}

.jhmb-plugin .single-post__content img:not([width]) {
	width: 100%;
}

.jhmb-plugin .single-post__content figure.wp-block-image {
	margin-inline: 0;
}

.jhmb-plugin .single-post__content figcaption {
	background: none !important;
	color: #64748b;
	display: block;
	font-size: .875em;
	line-height: 1.5;
	margin: .5em auto 0;
	max-height: none !important;
	padding: 0 !important;
	position: static !important;
	text-align: center !important;
	width: 100%;
}

.jhmb-plugin .single-post__content figcaption * {
	text-align: inherit !important;
}

.jhmb-plugin .single-post__content .wp-block-gallery > figcaption {
	grid-column: 1 / -1;
}

@media only screen and (min-width: 768px) {
	.single-post__thumbnail,
	.jhmb-plugin .single-post__content figure {
		margin-left: -10px;
		margin-right: -10px;
	}
		
	.single-post__thumbnail span {
	    margin: 0 10px;
	}
}

.single-post__thumbnail img,
.single-post__content .wp-block-image img {
	border-radius: var(--jhmb-radius);
}

.single-post__thumbnail span {
    font-size: 14px;
    font-style: italic;
}

.single-post__content,
.single-post__content .wp-block-image {
	color: var(--jhmb-color-text);
}

.single-post__content .wp-block-gallery {
    display: grid;
	gap: 10px !important;
}

.single-post__content .wp-block-gallery.columns-1 {
    grid-template-columns: 100%;
}
.single-post__content .wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.single-post__content .wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.single-post__content .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 767px) {
	.single-post__content .wp-block-gallery.columns-3,
	.single-post__content .wp-block-gallery.columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* share buttons */
.elementor-widget-share-buttons--vertical .elementor-grid {
	display: flex;
	flex-direction: column;
}

.elementor-widget-share-buttons .elementor-share-btn {
	width: 36px !important;
	height: 36px !important;
}

.elementor-widget-share-buttons .elementor-share-btn__icon {
	font-size: 12px;
	padding: 1px 0 0 2px;
}

@media only screen and (max-width: 767px) {
	.elementor-widget-share-buttons--vertical .elementor-grid {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* single post - companies tags */
.jhmb-post-location { margin-top: 32px; }
.jhmb-location-wrap { position: relative; }
.jhmb-location-canvas { isolation: isolate; z-index: 0; width: 100%; height: 380px; overflow: hidden; border: var(--jhmb-border); border-radius: var(--jhmb-radius); background: var(--jhmb-color-light-background); font: inherit; }
.jhmb-location-canvas:focus-visible { outline: 2px solid var(--jhmb-color-accent); outline-offset: 2px; }
.jhmb-location-canvas .leaflet-control-zoom { border: var(--jhmb-border); border-radius: 7px; overflow: hidden; box-shadow: var(--jhmb-shadow); }
.jhmb-location-canvas .leaflet-control-zoom a { width: 32px; height: 32px; line-height: 32px; color: var(--jhmb-color-heading); }
.jhmb-location-canvas .leaflet-control-zoom a:hover { color: var(--jhmb-color-accent); }
.jhmb-location-canvas .leaflet-control-attribution { color: var(--jhmb-color-text); font-size: 11px; }
.jhmb-location-marker { color: var(--jhmb-color-accent); }
.jhmb-location-marker svg { filter: drop-shadow(0 2px 2px rgba(21, 16, 54, .25)); }
.jhmb-location-hint { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 28px; margin: 0; padding: 10px 12px; border-radius: 7px; background: rgba(21, 16, 54, .88); color: #fff; font-size: 13px; text-align: center; pointer-events: none; }
.jhmb-location-status { margin: 10px 0 0; font-size: 14px; }
.jhmb-location-status:empty { display: none; }
@media (max-width: 767px) { .jhmb-location-canvas { height: 300px; } }

.single-post__companies {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.single-post__companies > span {
	color: #fff;
	background: var(--jhmb-color-accent);
    padding: 4px 10px;
    border-radius: 5px;
}

.single-post__companies > :is(.company--energetika, .company--energetika-maribor) {
    background-color: var(--jhmb-company-energetika);
}

.single-post__companies > :is(.company--skupina-jhmb, .company--jhmb, .company--javni-holding-maribor) {
    background-color: var(--jhmb-company-jhmb);
}

.single-post__companies > :is(.company--snaga, .company--javno-podjetje-snaga) {
    background-color: var(--jhmb-company-snaga);
}

.single-post__companies > :is(.company--vodovod, .company--mariborski-vodovod) {
    background-color: var(--jhmb-company-vodovod);
}

.single-post__companies > .company--marprom {
    background-color: var(--jhmb-company-marprom);
}

.single-post__companies > .company--mestne-nepremicnine {
    background-color: var(--jhmb-company-mestne-nepremicnine);
}

.single-post__companies > .company--nigrad {
    background-color: var(--jhmb-company-nigrad);
}

.single-post__companies > :is(.company--pogrebno-podjetje, .company--pogrebno-podjetje-maribor) {
    background-color: var(--jhmb-company-pogrebno);
}

.single-post__companies > .company--sport-maribor {
    background-color: var(--jhmb-company-sport);
}

.single-post__companies > .company--zum {
    background-color: var(--jhmb-company-zum);
}


/* facilities special notices */
.special-notice-container {
    background: var(--jhmb-color-accent);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    margin-bottom: 20px;
}

.special-notice-container .post__icon svg {
    fill: #fff;
    width: 36px;
}

.special-notice-container .single-post__content * {
    color: #fff;
}

.special-notice-container .single-post__content *:not(.single-post__title) {
    opacity: .9;
}

.special-notice-container .single-post__content a {
    color: inherit;
}

.special-notice-container .single-post__title {
    margin: 0 0 10px 0;
}
 
.special-notice-container .single-post__content p:last-child {
    margin-bottom: 0;
}

/* Standalone shortcode: supply the layout that previously came from Elementor. */
.jhmb-plugin.jhmb-all-posts-instance {
	max-width: 1280px;
	width: calc(100% - 48px);
	margin-inline: auto;
	padding-block: 40px;
}

.jhmb-all-posts-instance .categories-filter {
	margin: 0 0 80px;
	gap: 30px;
}

.jhmb-all-posts-instance .categories-filter .category-link {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
}

.jhmb-all-posts-instance .posts-container {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jhmb-all-posts-instance .post--card {
	min-width: 0;
	height: 480px;
}

.jhmb-all-posts-instance .post__content {
	flex: 1;
	min-height: 0;
}

.jhmb-all-posts-instance .post__thumbnail {
	flex: 0 0 168px;
}

.jhmb-all-posts-instance .post__thumbnail img {
	height: 168px;
	margin: 0;
}

.jhmb-all-posts-instance .post-banner > a {
	inset: 0;
	display: block;
}

.jhmb-all-posts-instance .post__meta-data {
	gap: 12px;
}

.jhmb-all-posts-instance .post__meta-data > span:last-child {
	flex-shrink: 0;
}

.jhmb-all-posts-instance .post__link {
	inset: 0;
	z-index: 1;
}

.jhmb-all-posts-instance .post--card:has(.post__link:hover),
.jhmb-all-posts-instance .post--card:focus-within {
	box-shadow: var(--jhmb-shadow);
}

.jhmb-all-posts-instance .btn--primary:disabled {
	cursor: wait;
	opacity: .6;
}

@media (max-width: 1200px) {
	.jhmb-all-posts-instance.disable-mobile-x-scroll .posts-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.jhmb-all-posts-instance.disable-mobile-x-scroll .posts-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.jhmb-all-posts-instance .categories-filter {
		margin-bottom: 40px;
	}
}

@media (max-width: 480px) {
	.jhmb-plugin.jhmb-all-posts-instance {
		width: calc(100% - 32px);
		padding-block: 24px;
	}
	.jhmb-all-posts-instance.disable-mobile-x-scroll .posts-container {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* A readable article column, independent of the active theme's page layout. */
.jhmb-plugin.jhmb-single-post-instance {
    width: calc(100% - 24px);
    max-width: 669px;
    margin-inline: auto;
    padding-block: 40px;
}

.jhmb-single-post-instance .single-post__thumbnail img {
    width: 100%;
    height: auto;
}

.jhmb-single-post-instance .single-post__content {
    overflow-wrap: break-word;
}

.jhmb-single-post-instance .single-post__content > :first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    .jhmb-plugin.jhmb-single-post-instance {
        padding-block: 24px;
    }
}

/* Compact search below the category menu; only the magnifier starts visible. */
.jhmb-plugin [hidden] { display: none !important; }
.jhmb-all-posts-instance:has(.jhmb-content-filters) .categories-filter { margin-bottom: 20px; }
.jhmb-content-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 28px;
}
.jhmb-company-filter { position: relative; flex: 0 0 44px; width: 44px; min-width: 0; }
.jhmb-plugin .jhmb-company-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--jhmb-color-heading);
    font: inherit;
    cursor: pointer;
    transition: color 160ms ease;
}
.jhmb-company-toggle:hover,
.jhmb-company-toggle.has-selection,
.jhmb-company-toggle[aria-expanded="true"] { color: var(--jhmb-color-accent); }
.jhmb-company-toggle:disabled { opacity: .55; cursor: default; }
.jhmb-company-icon { flex-shrink: 0; }
.jhmb-plugin .jhmb-company-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    min-width: min(240px, calc(100vw - 48px));
    max-width: min(360px, calc(100vw - 48px));
    max-height: min(360px, 60vh);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--jhmb-color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(21, 16, 54, .12);
}
.jhmb-content-filters:has(.jhmb-search-form.is-open) .jhmb-company-menu { left: 0; right: auto; }
.jhmb-plugin .jhmb-company-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 7px;
    color: var(--jhmb-color-heading);
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
}
.jhmb-company-option:hover { background: var(--jhmb-color-light-background); }
.jhmb-company-option:has(input:checked) { color: var(--jhmb-color-accent); background: #fcf4f4; font-weight: 600; }
.jhmb-company-choice { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.jhmb-company-check { flex-shrink: 0; opacity: 0; }
.jhmb-company-choice:checked ~ .jhmb-company-check { opacity: 1; }
.jhmb-company-toggle:focus-visible,
.jhmb-company-option:has(input:focus-visible),
.jhmb-filter-retry:focus-visible { outline: 2px solid var(--jhmb-color-accent); outline-offset: 3px; }
.jhmb-company-error { display: block; margin-top: 4px; font-size: 14px; }
.jhmb-filter-status { margin: 0 0 16px; }
.jhmb-filter-status:empty { display: none; }
.jhmb-filter-retry { margin-bottom: 20px; border: 0; background: none; color: var(--jhmb-color-accent); font: inherit; cursor: pointer; }
.jhmb-plugin .category-link[aria-disabled="true"] { opacity: .5; cursor: wait; }
.jhmb-all-posts-instance .jhmb-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 44px;
    width: 44px;
    justify-content: flex-end;
    max-width: 480px;
    margin: 0;
    min-width: 0;
    transition: flex-basis 260ms ease, width 260ms ease;
}
.jhmb-all-posts-instance .jhmb-search-form.is-open { flex: 0 1 480px; width: 480px; }
.jhmb-all-posts-instance .jhmb-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--jhmb-color-heading);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: color 180ms ease, opacity 140ms ease, flex-basis 260ms ease, width 260ms ease, visibility 260ms;
}
.jhmb-all-posts-instance .jhmb-search-toggle:hover { color: var(--jhmb-color-accent); }
.jhmb-all-posts-instance .is-open .jhmb-search-toggle {
    flex-basis: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.jhmb-all-posts-instance .jhmb-search-panel {
    flex: 1;
    min-width: 0;
    max-width: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(8px);
    transition: max-width 260ms ease, max-height 260ms ease, opacity 180ms ease, transform 260ms ease, visibility 260ms;
}
.jhmb-all-posts-instance .is-open .jhmb-search-panel {
    max-width: 480px;
    max-height: 160px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.jhmb-all-posts-instance .jhmb-search-label,
.jhmb-plugin .jhmb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.jhmb-search-controls { display: flex; gap: 8px; align-items: center; padding: 4px; }
.jhmb-plugin input.jhmb-search-input {
    appearance: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    border: var(--jhmb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--jhmb-color-heading);
    font: inherit;
    padding: 10px 12px;
}
.jhmb-search-input:focus-visible,
.jhmb-search-toggle:focus-visible {
    outline: 2px solid var(--jhmb-color-accent);
    outline-offset: 2px;
}
.jhmb-search-controls .btn--primary { padding: 10px 16px; flex-shrink: 0; }
.jhmb-all-posts-instance .jhmb-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--jhmb-color-heading);
    cursor: pointer;
}
.jhmb-search-close:hover { color: var(--jhmb-color-accent); }
.jhmb-search-close:focus-visible { outline: 2px solid var(--jhmb-color-accent); outline-offset: 2px; }
.jhmb-search-status { margin: 0 0 20px; }
.jhmb-search-status:empty { display: none; }
.jhmb-results-message { padding: 24px 0; margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .jhmb-all-posts-instance .jhmb-search-form,
    .jhmb-all-posts-instance .jhmb-search-panel,
    .jhmb-all-posts-instance .jhmb-search-toggle,
    .jhmb-company-toggle { transition: none; }
}
