/* Tab Content Line — aum-tab */
.aum-tab-wrap { width: 100%; }

/* ── Top nav layout ── */
.aum-tab-pos--top .aum-tab-nav-wrap {
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.1));
    margin-bottom: 0;
}
.aum-tab-pos--top .aum-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-end;
}

/* ── Left nav layout ── */
.aum-tab-pos--left {
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.aum-tab-pos--left .aum-tab-nav-wrap {
    flex-shrink: 0;
    width: 200px;
    border-right: 1px solid var(--border, rgba(0,0,0,0.1));
    border-bottom: none;
    padding-right: 0;
}
.aum-tab-pos--left .aum-tab-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.aum-tab-pos--left .aum-tab-panels { flex: 1; min-width: 0; }

/* ── Nav button ── */
.aum-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #6f6e69);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
    outline: none;
    line-height: 1.4;
}
.aum-tab-btn:hover { color: var(--text-on-bg, #111110); }
.aum-tab-btn--active { color: var(--primary, #3b82f6); }

/* Bottom line indicator (top position) */
.aum-tab-pos--top .aum-tab-btn--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary, #3b82f6);
    border-radius: 2px 2px 0 0;
}
/* Left line indicator (left position) */
.aum-tab-pos--left .aum-tab-btn--active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    height: auto;
    background-color: var(--primary, #3b82f6);
    border-radius: 2px 0 0 2px;
}

.aum-tab-btn-icon { display: inline-flex; align-items: center; font-size: 1em; line-height: 1; }
.aum-tab-btn-icon i, .aum-tab-btn-icon svg { width: 1em; height: 1em; }

/* ── Panels ── */
.aum-tab-panel {
    display: block;
    padding: 28px 0 0;
    color: var(--text-on-bg, #111110);
    line-height: 1.7;
    animation: aum-tab-fadein 0.2s ease;
}
.aum-tab-panel[hidden] { display: none; }

.aum-tab-pos--left .aum-tab-panel { padding: 0 0 0 28px; }

@keyframes aum-tab-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Rich text content reset ── */
.aum-tab-panel p  { margin: 0 0 1em; }
.aum-tab-panel ul, .aum-tab-panel ol { padding-left: 1.4em; margin: 0 0 1em; }
.aum-tab-panel li { margin-bottom: 0.4em; }

@media (max-width: 767px) {
    .aum-tab-pos--left { flex-direction: column; }
    .aum-tab-pos--left .aum-tab-nav-wrap { width: 100%; border-right: none; border-bottom: 1px solid var(--border, rgba(0,0,0,0.1)); }
    .aum-tab-pos--left .aum-tab-nav { flex-direction: row; flex-wrap: wrap; }
    .aum-tab-pos--left .aum-tab-btn--active::after { right: auto; top: auto; bottom: -1px; left: 0; width: 100%; height: 2px; }
    .aum-tab-pos--left .aum-tab-panel { padding: 20px 0 0; }
}
