/* Taxonomy Navigator block styles (editor + frontend) */

/* wrapper */
.tnb-wrapper { box-sizing: border-box; width: 100%; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* IMPORTANT: Make the inner area the flex container in the editor so inspector doesn't break layout */
.tnb-editor-preview .tnb-inner,
.tnb-frontend-inner {
    display: flex;
    /*gap: 20px;*/
    align-items: stretch;
    height: 100%;
}



/* layout variants */
.layout-three-column .tnb-image-col { order: 0; }
.layout-three-column .tnb-parents-col { order: 1; }
.layout-three-column .tnb-children-col { order: 2; }

.layout-image-top .tnb-image-col { order: 0; width: 100%; }
.layout-image-top .tnb-parents-col { order: 1; }
.layout-image-top .tnb-children-col { order: 2; }

.layout-image-right .tnb-image-col { order: 2; }

/* columns */
.tnb-col { box-sizing: border-box; flex: 1; display: flex; flex-direction: column;  /*padding: 8px; background: transparent;*/}
.tnb-image-col { flex: 1; max-width: 420px; padding: 10px; }
.tnb-parents-col { flex: 1; min-width: 180px; max-width: 25%; }
.tnb-children-col { flex: 1; min-width: 180px; }

/* heading */
.tnb-col h4 { display:none; margin: 4px 0 8px 0; font-size: 16px; background-color:red }

/* image */
/* editor image default sizing — inline styles from editor/frontend will override these */
.tnb-image-col img { width: 100%; height: auto; display: block; /*border-radius: 8px;*/ object-fit: cover; }

/* Highlighted background */
.tnb-parent.highlighted
/*.tnb-children-col.highlighted,
.tnb-image-col.highlighted */{
    background-color: var(--highlight-color) !important;
    transition: background-color 0.25s ease;
}

/* Always highlight children column */
.tnb-children-col {
    background-color: var(--highlight-color, #ffffcc) !important;
}

/* Always highlight image column if layout is image-right */
.layout-image-right .tnb-image-col {
    background-color: var(--highlight-color, #ffffcc) !important;
}



/* list */
/* Regular list items except separators */
.tnb-parents li:not(.tnb-separator),
.tnb-children li:not(.tnb-separator) { list-style: none; padding: 12px 20px; align-items: center; justify-content: space-between; /* padding: 8px;*/ margin-top: 1px; /*border-radius: 8px;*/ transition: background .14s ease, transform .08s ease; border: 1px solid transparent;/* only vertical padding */ }
.tnb-parents li:not(.tnb-separator):hover, .tnb-children li:not(.tnb-separator):hover { transform: translateX(5px); /* background: #212a37 */ }

/* Reset separator padding/margins for both frontend and editor */
.tnb-parents .tnb-separator,
.editor-styles-wrapper .tnb-separator {
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none;
  min-height: unset;
  height: unset;
  font-size: 0 !important;
  line-height: 0 !important;
  list-style: none;
}

/* Alignment for frontend and editor */
.tnb-separator.alignleft,
.editor-styles-wrapper .tnb-separator.alignleft { margin-left: 0 !important; margin-right: auto !important; }
.tnb-separator.aligncenter,
.editor-styles-wrapper .tnb-separator.aligncenter { margin-left: auto !important; margin-right: auto !important; }
.tnb-separator.alignright,
.editor-styles-wrapper .tnb-separator.alignright { margin-left: auto !important; margin-right: 0 !important; }
.tnb-separator.alignwide,
.tnb-separator.alignfull,
.editor-styles-wrapper .tnb-separator.alignwide,
.editor-styles-wrapper .tnb-separator.alignfull { width: 100% !important; }



/* links */
.tnb-parent-link, .tnb-child-link { text-decoration: none; color: inherit; padding-right: 10px; display: inline-block; }

/* drill */
.tnb-drill-btn { margin-left: 8px; border: none; background: rgba(0,0,0,0.06); padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.tnb-drill-btn:hover { background: rgba(0,0,0,0.12); }

/* placeholder */
.tnb-placeholder { width: 100%; height: 160px; background: #f6f6f6; display: flex; align-items: center; justify-content: center; color: #888; border-radius: 8px; }

/* editor preview */
.tnb-editor-preview { border: 1px dashed #ddd; padding: 8px; border-radius: 6px; }

/* small utility */
.tnb-none { color: #777; font-style: italic; }

@media (max-width: 880px) {
    .tnb-editor-preview .tnb-inner, .tnb-frontend-inner { flex-direction: column; }
}

/* Hover Effects */
.tnb-hover-zoom img { transition: transform 0.3s ease; }
.tnb-hover-zoom:hover img { transform: scale(1.05); }

.tnb-hover-shadow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.tnb-hover-underline .tnb-parent-link:hover,
.tnb-hover-underline .tnb-child-link:hover {
    text-decoration: underline;
}

/* Use CSS vars for active/inactive/hover colors if needed */
.tnb-wrapper .tnb-parent.tnb-active { color: var(--tnb-active-color); }
.tnb-wrapper .tnb-parent { color: var(--tnb-inactive-color); }
.tnb-wrapper .tnb-parent:hover { color: var(--tnb-hover-color); }

.tnb-wrapper .tnb-child.tnb-active { color: var(--tnb-active-color); }
.tnb-wrapper .tnb-child { color: var(--tnb-inactive-color); }
.tnb-wrapper .tnb-child:hover { color: var(--tnb-hover-color); }

