/* HSCie – transaction listing: filters, year on the tombstone, empty-row suppression.
   Loaded by inc/hscie-transactions.php (moved out of the HSCie Fix plugin). */

.hscie-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:0 0 24px}
.hscie-filters .hscie-filter{display:flex;flex-direction:column;gap:4px;min-width:210px}
.hscie-filters .hscie-filter__label{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
.hscie-filters .hscie-filter__select{width:100%;padding:.6em 2.2em .6em .8em;border:1px solid currentColor;border-radius:2px;background-color:transparent;color:inherit;font:inherit;line-height:1.2;cursor:pointer;-webkit-appearance:none;appearance:none;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='currentColor' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
	background-repeat:no-repeat;background-position:right .8em center;background-size:10px 6px}
.hscie-filters .hscie-filter__select:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.hscie-filters .hscie-filter__submit{padding:.6em 1.2em;font:inherit;cursor:pointer}
.hscie-filters .hscie-filter__reset{align-self:center;font-size:.85rem;text-decoration:underline;opacity:.75}
.hscie-filters .hscie-filter__reset:hover{opacity:1}

/* year badge – only positioned when injected by the tool; [hscie_year] in the
   loop template inherits the template's own styling instead */
.hscie-year{font-size:.75rem;letter-spacing:.06em;opacity:.75}
.e-loop-item,.elementor-post{position:relative}
.hscie-year--badge{position:absolute;top:.6rem;right:.8rem;z-index:2;padding:.15em .5em;border-radius:2px;background:rgba(0,0,0,.06);pointer-events:none}

@media (max-width:600px){
	.hscie-filters{flex-direction:column;align-items:stretch}
	.hscie-filters .hscie-filter{min-width:0}
}

/* A Post-Info widget is omitted by Elementor when its taxonomy has no terms, which would
   leave the row's heading standing alone as a label with no value ("Unternehmen:" on deals
   with no company terms, "Branche:" on posts outside the client list). Hide any row that is
   left with nothing but its heading. Exactly-one-child keeps this from touching real rows. */
.e-loop-item [data-element_type="container"]:has(> .elementor-widget-heading):not(:has(> :nth-child(2))) {
	display: none !important;
}

/* Compact tombstone tile (task 09.09., Task 7 - per Eric 10.09.: drop only the excerpt, keep
   logo / title / all meta rows / button, gain space via smaller type, image and spacing).
   !important on purpose: Elementor prints per-element rules with responsive overrides
   (.elementor-2425 .elementor-element.elementor-element-xxx ...) that would otherwise win. */
.e-loop-item .elementor-widget-theme-post-title .elementor-heading-title{font-size:17px!important;line-height:1.25!important}
.e-loop-item .elementor-widget-heading:not(.elementor-widget-theme-post-title) .elementor-heading-title{font-size:12px!important;line-height:1.3!important}
.e-loop-item .elementor-widget-post-info .elementor-icon-list-text,
.e-loop-item .elementor-post-info__item,
.e-loop-item .elementor-post-info__terms-list-item{font-size:12px!important;line-height:1.3!important}
.e-loop-item .elementor-widget-button .elementor-button{font-size:13px!important;padding:8px 16px!important}
.e-loop-item .elementor-widget-theme-post-excerpt{display:none!important}


/* Slim tiles (task C3, 27.10.): the two remaining rows ("Sektor:" / "Art der Transaktion:") are
   label + value side by side in a 216px column, which split words ("Unternehmensverkau|f").
   Let the row wrap: label first, value flows next to it when it fits and below it when not. */
.e-loop-item [data-element_type="container"]:has(> .elementor-widget-heading + .elementor-widget-post-info){
	flex-wrap:wrap!important;align-items:baseline!important;row-gap:0!important;column-gap:6px!important}
.e-loop-item [data-element_type="container"]:has(> .elementor-widget-heading + .elementor-widget-post-info) > .elementor-widget-heading{
	flex:0 0 auto!important;width:auto!important;max-width:100%!important}
.e-loop-item [data-element_type="container"]:has(> .elementor-widget-heading + .elementor-widget-post-info) > .elementor-widget-post-info{
	flex:1 1 auto!important;width:auto!important;min-width:0!important}
.e-loop-item .elementor-widget-post-info .elementor-icon-list-items,
.e-loop-item .elementor-widget-post-info .elementor-icon-list-item{justify-content:flex-start!important;text-align:left!important}
.e-loop-item .elementor-widget-post-info .elementor-icon-list-text{word-break:normal!important;overflow-wrap:normal!important;hyphens:manual!important;text-align:left!important}


/* Detail page meta block (Sektor · Subsektor · Art · Jahr · Unternehmen · Land), task B4 */
.hscie-meta{margin:0 0 28px;padding:0 0 18px;border-bottom:1px solid #CCCCDC}
.hscie-meta p{margin:0 0 6px!important;font-size:15px;line-height:1.4}
.hscie-meta p:last-child{margin-bottom:0!important}
.hscie-meta strong{color:#15212C;font-weight:600;margin-right:4px}
