/**
 * Tsunagi: Frontend CSS
 */

/* Virtual post inside the Loop Grid */
.tsunagi-virtual-post {
    /* No forced styles: let the Loop Item Template handle appearance */
}

/* Utility class to target repeater items via CSS or JS */
.type-tsunagi-repeater {}

/* ------------------------------------------------------------------------
 * Dynamic List widget
 *
 * Every rule below is a structural default that matches the default value of
 * the matching widget control. The values chosen in Elementor are generated
 * with a higher specificity and always win, so a stale or missing generated
 * CSS file can never leave the list without spacing.
 * --------------------------------------------------------------------- */

/* Rows: same defaults as "Space between" (8px, half above and half below). */
.elementor-widget-tsunagi-relationship-list .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) {
    padding-block-end: 4px;
}
.elementor-widget-tsunagi-relationship-list .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child) {
    margin-block-start: 4px;
}

/* Marker: image. ".elementor" prefix beats the global ".elementor img" reset. */
.tsunagi-list-media {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-inline-end: 8px; /* "Marker spacing > Gap" default */
}
.elementor .tsunagi-list-image {
    display: block;
    width: 40px;  /* "Image > Size" default */
    height: 40px;
    max-width: none;
    object-fit: cover;
}

/* Text block: title + secondary text. Flex + gap instead of whitespace, so the
   result does not depend on how the HTML is formatted or minified. */
.tsunagi-list-body {
    display: flex;
    min-width: 0;
}
.tsunagi-list-body > .elementor-icon-list-text,
.tsunagi-list-body > .tsunagi-list-extra {
    margin: 0;
    padding: 0;
}
.tsunagi-list-body--stack {
    flex-direction: column;
    align-items: flex-start;
}
.tsunagi-list-body:not(.tsunagi-list-body--stack) {
    flex-flow: row wrap;
    align-items: baseline;
    column-gap: 0.3em;
}
.tsunagi-list-body--stack .tsunagi-list-extra {
    display: block;
}
